<<

Answers to Frequently asked Questions

ab out

FAQ

Version

The Linux Community June

Abstract

Hi Linuxers

The original FAQ st version was p osted on Dec by Rob ert Blum

Most credits of this work to Linus Rob ert and Ted The rst X section was

written byPeter Hawkins the rest was either on the list p osted bymany real

activists not me either in some other news groups or else by direct p osting

to me thanks Humb erto Dan Michael Drew Audoin I havent systematically

copyrighted them so thanks to every one who participated even indirectly to this

FAQ

Since Septemb er the FAQ is cowritten by

Who WHAT EMail

Michael K Johnson METAFAQ johnsonstolafedu

Matt Welsh GENERAL INFO mdwtccornelledu

Zane Healy BBS INFO healyzhholonetnet

Matt Welsh INSTALLATION mdwtccornelledu

Peter MacDonald SLS INFO pmacdonasanjuanuvicca

Mark Komarinski DOS komarimfcraftcampclarksonedu

Drew Eckhardt SCSI drewcscoloradoedu

Rick Miller DEVICE INFO rickeeuwmedu

Hong jiu Lu GCC hlueecswsuedu

Krishna Balasubramanian X balasubcisohiostateedu

RickSladkey EMACS jrsworldstdcom

Philip Cop eland NET INFO pcopelacsdbristolpolyacuk

Brian McCauley LPD BAMcCauleybhamacuk

Dirk Hohndel PROOF READER hohndelinformatikuniwuerzburgdbpde

MarcMichel Corsini FAQ Collector corsinilabrifirmingrecoprogfr

If anyone is interested in participating with this FAQ just send me a note with

your nameemail and the section you want to maintain

Many of the questions could b e avoided if p eople had read the FAQofthe

following newsgroups newsannouncenewusers complangc gnuemacshelp

compunixquestions

The lastchangedate of this p osting is always two minutes ago

a

Early L T X pro cessing byPep e Flores P jfloresdccuchilecl Thanks to

E

him This text is pro cessed by Martin Schulze MartinSchulzeInformatikUniOldenburgDE

with emT X A new copy should at least b e found at ftpInformatikUniOldenburgDE

E

in publinux as faqtextarZz Martin

CONTENTS i

Contents

Intro duction

Future Plan

Where to get the Linux FAQ

Warnings

Linux General Information

Information

What is Linux

Do es Linux supp ort

What is the current state of Linux

Where do I get ist and how do I install it

Is Linux really dicult to install and use

Whats the b est advice you can give to a Linux newbie

How long has Linux b een publicly available

How reliable is Linux anyway

What is the prop er pronounciation for Linux

Whats ab out the copyright of Linux

Should I b e a UNIX andor a DOS wizard

Why cant we split composlinux

Requirements

Do es it run on my computer

Howmuch space will Linux takeuponmy hard drive

Why the suggested MB for Linux

Howwould this op erate in an OS environment

Will Linux run on a PC or AT If not why

Will Linux run on a Laptop

What Linux do es

Do es Linux use TSS segments to provide multitasking

If my PC runs under Linux

Do es Linux do paging

Can I have tasks spanning the full GB

Do es the bigger program sizes mean I can run X

Comparing Linux with other Unices

What are the dierences to Minix

What are the dierences to BSD

Linux useful Addresses

Linux on the Net

Where can I get Linux

I do not have FTP access

Who is oering mailorder Linux kits

Is there a newsgroup or mailinglist ab out Linux

Where can I get my questions answered How ab out bug

rep orts

Could you b e more explicit ab out the multichannel list

HowcanI jointhechannel XXX

HowcanIleavethechannel XXX

m not a hacker what are the channels

Do es there exist a place where the trac is kept

Obtaining Linux from BBSs

I dont have access to FTPhowcanIobtainLinux

ii CONTENTS

I got this FAQ from a lo cal BBS

Do BBSs oer anything that the do es not

What is a BBS

How can I get a list of BBSs that carry Linux

Ihave a phone numberofaBBS

There is a lo cal BBS that carries Linux

What can I do to help Linux

How do I read the data in the Linux BBS List

What are some of the b est BBSs to check out

What are File Requests

Installation and Common Problems

Where to start

Iwant to install Linux on mymachine

Is there some kind of limit

HowcanIbesureIwont b e writing

Linux Packages

Do es there exist a way to get Linux or more

Where can I get these releases of Linux

What les do I need to get for the SLS release

Any other information ab out SLS

What should I do to install the SLS release

When installing SLS

Where do I nd the currrent releases of programs

How do I install HJ Lus b o otable ro otdisk release

Some common Problems

What letyp e is the extension

HowdoI make partitions for Linux

Whydoes fdisk cannot use XXXX sectors

What do es the message from MINIXfs mean

Linux mkfs do esnt accept the size

HowcanIgetmkfsmkefs to check for bad blo cks

Generating a bad blo ck list for mkefs

HowcanIbootLinux o of my hard drive

I tried to install LILO but screwed up somehow

When installing SLS I get an error

When installing SLS creating a b o ot oppy

How can I set the default video mo de

HowelsecanIuserdev

When I login as nonro ot

I have the previous Linux version how can I upgrade it

Whywont the kernel compile correctly

How can I upgrade to the newest version of GCC

Whats the deal with these jump tables

How to upgrade jump tables

HowcanIbesureIwont b e writing over anything imp ortant

I just reb o oted mymachine and now Linux dies

Can I use b oth OS and Linux on mymachine

I use OSs Bo ot Manager on my hard drive

Linuxs fdisk says OPUS for OSs partition

Why do esnt the termcap entry match

There is no includetypesh

What are the dierences b etween the dierent system inits

I cant get the networking to work

CONTENTS iii

Some Classical Problems

Kernel

While running du IgetKernel panic

Drives

How can I partition my harddrive to use Linux

I heard something ab out repartition a hard disk

What must I do to mkfs aoppy

Ihave some trouble with taruntar

I can do this as ro ot but not as nonro ot is it a bug

du rep orts twice the size

Sometimes I get mount cant open lock file

When I try mount devhd user I get error

Since I have upgrade myLinux kernel

Since Linux b I have a lot of core les

I can only login as root is it normal

Sometimes myLinux virtual consoles get messed up

Linux and DOS

General

Is is p ossible to access DOS from Linux

MTo ols

Why use mto ols if you can just mountadrive

How do I get the mto ols package set up correctly

What is the format of the le verbetcmto ols

Where can I nd out more ab out mto ols

How can I install the mto ols package

DOS lesystem

How do I use the DOS le system

When I mount an MSDOS disk

Iwant to use the DOS le system

Where can I nd out more ab out the DOS le system

DOSEmulator

What ab out the dos emulator dosumu

Ihave a Stacker volume on my hard drive Can I access that

Other le systems

How ab out OS HPFS partitions

Additions

Could someone explain howtouserawrite

What is astarZ

Turb o Assembler wont compile the Linux b o ot co de

Miscellaneous Hints

Misc Information

It seems that p orted on Linux dont run correctly

Has b een p orted to Linux

Ive p orted to Linux

Iwant to p ort to Linux what are the ags

MinorMa jor Information

What are the Ma jorMinor device numbers

Could someone give the meaning of the IRQs

Could some one clear up the devices meaning

Sp ecial Serial

Where can I get help with serial communications under Linux

When I run kermit under Linux

iv CONTENTS

What are the ma jor minor numb ers for the serial p orts

A sample etcinittab

How do I set parameters like parity for serial login

Trying to allow login on my terminal

Where are my Calloutmo deserial p orts cuaX

What other p ossibly free IRQs there are than IRQ

Can I use IRQ when not printing

Is pin nearest to the plate or is it

More Hints

Bo oting

How to start Linux from driveB

The program boot b works ne

How can I get Linux to b o ot directly from the harddisk

I use shoelace

Is it p ossible to disable the ngers salute

Could some one explain the information provided at b o ottime

What is the rdev program provided in the images

Miscellaneous

How can I backup my Hd under Linux

Where is which

How to use setterm for the novice

Ive tried clear reset which exist on most of UNIX

Iknow there are VC but where is the setterm stu

Iknow there are shared libraries

When I want to remove a directoryIgetanerror

Im lo oking for some stu where can I nd them

How can I setup a user account other than root

Ive b een trying to get Linux to run on mybox

Do es there exist games languages

Whenever I use uemacs X on a symlink

Uemacs do esnt work anymore with a

I haveanSVGA but Linux detect an EGAcEGAm

HowcanIchange the keyb oard rep eat rate

I compiled fdformatc

What is the meaning of les ended by TZ or taz

hat is the meaning of les ended by Tz or tpz

I have upgraded the kernel from XX to YY

What is doshell go o d for

HowcanIchange the keyb oard language

Do es there exist a p ossibility to trackdown the source

How can I deco de the numb ers in the message

Emacs for Linux

General Information

GNU Emacs for Linux

Do es Linux Emacs use the shared libraries

What version of the compiler was used

Which les do I need

How do I install them

What if I want to compile Emacs myself

What ab out Ep o ch or Lucid Emacs

Do es Linux Emacs supp ort eightbit inputoutput

Howmuch disk space is required

CONTENTS v

Why cant Emacs nd its supp ort les anymore

How do I get Emacs to recognize my cursor keys

What packages are particularly useful under Linux

Do es Linux Emacs supp ort the X Window System

Do I need b oth Emacs if I dont always use X

Why do esnt Emacs use the settings

I read ab out some menu that is supp osed

Sometimes Emacs crashes

Features

Virtual Consoles

Ive read that Linux has virtual consoles

How can I acess to the virtual consoles

Miscellaneous

What kind of shell is binsh

Do es there exist a man page for

Is there a simple man package groff is to o big

I have a MB b ox but free rep orts only MB why

Do es there exist shared libs

Why do I need dynamic linking

How do es dynamic linking work under Linux

Swapping

HowdoI makeswapping work

When I b o ot I get one of the following messages

HowdoI knowifitisswapping

How is it p ossible to removea swap le

How is it p ossible to removea swap device

Howmuchswap space do I need

Could someone explain the swap pro cess on Linux

Is demand paging dierent from paging and how

Is there anyway to tell ab outthe used swap space

Patching

How do es one go ab out applying a patchtoLinux

There are a lot of patches available will they work

I got the patches on some ftp sites are the patches buggy

Software

What are the editors available in Linux

Do es there exist a printer package for Linux

Are USENET news available for Linux

What is VFS

Whats ab out T X

E

Whats ab out LILO

Whats ab out MGR

I have successfully compiled MGR

Any tips for MGR

Whats ab out X

Hardware

What tap e drives work with Linux

Is there only the keyb oard

Some keyb oard keys pro duce wrong characters

Do es Linux work for SCSI drives

Linux is supp osed to work with ESDI drive

Whats ab out Bus Mice

vi CONTENTS

GCC Information

HLU Information

I dont knowhow to install gcc stu

What compiler should I use for Linux

Where is the latest ocial gcc xx for Linux

Where is the latest ocial Linux C library

What are the contents of them

How do I install it

What are the main dierences with the old release

Can I use the old version of gcc

Can I delete the old shared image in lib

Is stdio ANSI compatible

Is g in xx

Where can I get the gcc manual

What options can I use for gcc

How can I debug the C co de

Where is the source co de of the new libca

Why do es g complain even die

How do I generate co de for i

I heard malloc wouldnt work with Linux

Whydoesgccsay xxxxxh not found

I really followed every step in the do cumentation

How do I compile programs under Linux

How can I get bsd style signal

Why do es a program b ecome a CPU hog

When a program is stopp ed and restarted

Others

I seem to b e unable to compile anything with gcc Why

gcc complains ab out not nding crto

I tried to p ort a new version of gnustu

How can I get bsd style signal

How to compile programs whichmay b e debugged with gdb

When compiling some co de cc complains

When compiling

How can I write co des suitable for building shared library

SCSI Sp ecial

General Information

What SCSI hosts are supp orted

What SCSI hosts are not supp orted

Which disks

What ab out SCSI tap es

What ab out CD ROMS

What ab out opticals Bernoulis Sysquests

How do I get SCSI information

Others

I cant make a lesystem on devhd

How do I partition the disk

My partitioning program cant gure out the disk geo emetry

The linux partitioning programs dont work

The sto ck ffpfgdisk programs dont work

Where is the latest version maintained

What are the ma jor minor numb ers for SCSI drives

How do I reduce kernel bloat

CONTENTS vii

I get SCSI timeouts

The driv er do esnt work

My Seagate Future Domain TMCx b oard is not detected

The Seagate Future Domain TMCx driver do esnt work

When using a Seagate Future Domain TMCx

The WDFASST driver do esnt work

My Ultrastor F or F isnt detected

The Adaptec driver do esnt work

My tap e drive isnt recognized at b o ot time

My system is dog slow ie ksec

Bugs

What ab out bugs

What are the known bugs

I get a message saying READ CAPACITY FAILED

What do I do if I nd a bug

Ive found one of the following bugs

X the Maximum and More

X General Information

What is the X release supp orted byLinux

What is Xxfree

Where can I get X XR

Any tips on compiling XR

Hardware Requirements

What VGA b oards are supp orted

What Mouses are supp orted

The MiniDIN mouse on an HP Vectra T

I have trouble with my logitech Pilot mouse and X

What is the currentversion

What Files do I need to download

Where do the X les go What are they

LearningUsing X

Where can I nd the basic help for learningusing X

What do cs are available b esides man pages

How do I start up X

How do I supp ort national keyb oards in X

How do I congure X colors menu keyb oard

Debugging Startup Problems

How do I start up X

I cannot typ e in my xterm

What are some of the common omissions and errors

Why is the server unable to nd some of the fonts

My server hangs Why

When I try to use X I got errors

Whycant I run more than xterms

How do es X start up

How can I see what startx passes to

What devices do es X dep end on

Xconfig and Video Mo de Settings

What do the mo de names mean

How do I compute the numb ers for the video mo des

How can I determine the clo cks on the video chip

What are the settings used with a tridentC

viii CONTENTS

What can I do with a tridentB

Where can I get Xcongles for various hardware

What are common problems with Xconfig

What do I use in my Xconfig le to use the bus mouse

XApplications Compiling X Programs

Do es anyone know where I can nd the libobza library

I get setjmp undefined when linking xv from a les

How do I compile an X application that has an Imakele

How do I compile a program that has no Imakefile

gcc complains the X libraries are not found or links static

When using Makeles generated by xmkmf

I recently compiled XFree A for Linux

What are the development to ols available for X under Linux

SVGA server for ATI b oards

Whats new

What is the ATI SVGA driver

What is the ATI SVGA driver NOT

What cards will the driver work with

What should I put in my Xconfig le

What is the history of the driver

What is the future of the driver

Bugs

Networking and Linux

General

Where can I nd useful information ab out networking for Linux

Everything for printing

General Information

What is the lprlp d package

What is the Linux lprlp d

What are all these diretrories for

Installing

How do I get lpr to work prop erly other than for ro ot

Which devlp is myprinter

When the kernel b o ots it says using polling driver

Whats the dierence b etween p olling and interrupt driver

The Printcap Database

WheredoIgetaprintcap for a xxxxx

What is the contentofverbetcprintcap

What is the format of a etcprintcap

My etcprintcap lo oks identical to someone elses

Whats the minimum etcprintcap

Common Problems

Why do I get errors

How do I prevent the staircase eect

Why do les with a lot of graphics get truncated

Why do esnt lpr i work

Why do esnt lpr p work

Whydoeslprmsay too many users

Whydoes lpc complain that it hasnt stopp ed a daemon

Sp ecial

HowdoIgetmyprintertogoback to the default font

How do I prevent a formfeed at the end of every printout

CONTENTS ix

How do I get burstbanner pages

How do I print text on a ps printer

How do I printover a Network

How do I write lters

Ive written a lter in shell script whichworks OK

When should I dene an of lter

Where do I get lters for given printers

HowdoI getaprogramtoactasalter

The set of lters supp orted by lpd seem strange

What are magic lters

LinuxFAQ UUCPNewsMail for Linux

General Information

What uucp news and mail software works under Linux

So where are the sources

Do I really need the sources

How do I get my system a newsmailuucp feed

UUCP

Why do I get timeout on connections when I upgraded to

uucp

Why do esnt anonymous uucp seem to work

News

What newsreader is b est

with trn why do I get the message dbinit failed

Whyismy nn database getting continuously corrupted

Why cant I p ost to mo derated groups

WhydoIhave problems that app ear to b e p ermissionrelated

Why do esnt SLS havethePerformanceRelease of Cnews

Whydoes doexpire say severe space shortage

How do I set up NNTP

Mail

Whyismy hostnamedomainname not in my headers

Why cant elm write to my mailb ox

Is sendmailIDAavailable for Linux instead of smail

x CONTENTS

Intro duction

This is the intro duction to a list of frequently asked questions FAQ for short ab out

Linux with answers Yeap This article contains a listing of the sections followed

by the questionanswer part

This FAQ is supp osed to reduce the noise level in the composlinux news

group and spare the time of many activists I will crossp ost it eachmonth to

newsanswersThisFAQ is NOT an intro duction to UNIX there are many b o oks

for UNIX and there is also aFAQ for UNIX its the one of compunixquestions

which contains things suchasHow do I remove a le named I DO NOT WANT

TO ADD SUCH THINGS IN THIS FAQ DEVOTED TO LINUX

The FAQ contains a LOT of information and is pretty long p osted as many

parts Everyb o dy should read it cause it really do es contain solutions to the

many common problems It can b e FTPd from at least tsx docsFAQxxx

where xxx is the date and nicfunetfi docFAQxxx Also checkthearchives

at pitmanager send mail to mailserverpitmanagermitedu with the word

help in it

Some b o oks to read

The C Programming Language Kernighan Ritchie

POSIX Programmers Guide D Lewine

UNIX System Administration Handb o ok Nemeth Snyder Seebass

UNIX for the Impatient Abrahams Larson

UNIX System V Release An Intro duction by Rosen Rosinski and Farb er

Publisher Osb orne MacGrawHill

The X Windows System in a Nutshell OReilly

This FAQisavailable at the main Linux sites in the doc directory the addresses

are given in section refsecAddress es of this FAQ There is also an archiveofall

FAQs at rtfmmitedu Have a lo ok in the anonymous ftp directory

pubusenetnewsanswerslinuxfaqIfyou do not have anonymous ftp access

you can access the archiveby mail server Send mail to mailserverrtfmmitedu

with the words help and index in the b o dy on separate lines for more information

The information in this multiparts FAQislikely to change relatively quickly

If this is more than two months old it was released on February then you

should obtain a new copy See the paragraph ab ove for details of where to nd a

more recentversion

Please suggest anychange rephrasing deletions new questions answers

Please include FAQ in the sub ject of messages sent tomeaboutFAQ Please

use linuxnumerogrecoprogfr whatever will b e the From part of this message

Finally discussion ab out the FAQ can b e done on the DOC Channel see section

refsecAddresse s b elow

Thanks in advance Marc

Future Plan

provide FAQ as di to o since it seems to stay stable except for very few

sections

p erform automatic p ost to col cola ca and na every month as I promised long time ago

WARNINGS

Where to get the Linux FAQ

PLEASE EVERYONE read the FAQ for this group b efore p osting questions

Many p eople myself included worked hard to pro duce the FAQ to accurately

answer all of your questions The new version of the FAQ with many up dates

clarications etc will only come out every month So you wont see it p osted that

often In the meantimeyoull have to get it in one of the following ways

ftp to tsxmitedu Its the le publinuxFAQ Its one big ASCI I le

ab out k

ftp to sunsiteuncedu Its the le pubLinuxdocsFAQ Again one big

ASCI I le same thing as on tsxmitedu

If you dont have FTP access you can retrieve it via the mailserver at

pitmanagermiteduSendmailtomailserverpitmanagermitedu

with the word help in the body

If you simply cant nd the FAQ I will mail it to you myself Just send me

mail mdwtccornelledu

The most recentFAQ will b e p osted to composlinux composlinuxannounce

and newsanswers every month if you wanttowait

Warnings

The FAQ contains a lot of information sometimes Ive put it down in dierent

ways b ecause p eople seems not to understand what they read or what I wrote you

know Im just a froggy and english is not my natural language What I mean is

that not all is in the FAQ but many things are there so please just taketimeto

read it this will spare a lot of the other linuxers and if you think I should rephrase

some QA just drop me a note with the corrections

As the Linux kernel changes monthly I dene pseudo variables a la C one for

a

the version and one for the date of the release In the L T Xversion of the FAQ

E

here defs to have text in the FAQ

define CURRENTVERSION the current version

define PATCHLEVEL the patch level

define KERNELDATE May Date of the CURRENTVERSION

In what follows Ill consider CURRENT VERSION as the currentversion

Below is the information provided by Lars Wirzenius on the LINUXNEWS

Channel Linux News a summary Issue

November Linus announced kernel version patchlevel The most imp or

tantchanges are

The ino de caching bug resulting in bad lesystem info when mount

ingumounting devices should b e gone for go o d

Bug x of a racecondition in the lesystem whichmayhave caused

p eople to get o ccasional fsck errors

Math emulator xes mainly for the reentrancy problem

NR OPEN was changed from to this will break GNU Emacs the

term program and p ossibly other programs a recompilation should x things

the pro cess kernel stackisnow on a separate page needed due to

Changes in kernel data structures these require a new ps

System call tracing

Changes to networking tcpip some nfs

FTP nicfunetfi pubOSLinuxPEOPLELinus presumably on

other sites to o bynow les linuxtarZ complete source

linuxpatchZ patches against pl Also psdiZ patches by Li

nus to ps that should x ps to work with

November Linus announced kernel version patchevel

This version xes a swappartition bug in pl The symptoms where

incorrect swapping with a partition eg xterm could dump core when

swapping was enabled and you typ ed at the keyb oard

This version also checks against writing to the text segment ie program

co de This will break some binaries esp ecially some veryvery old ones

that were compiled using the estdio library this library is no longer used

in Linux If previously wellworking programs suddenly start to dump

core this might b e the reason

There are also some other changes

See also announcementabove

FTP nicfunetfi pubOSLinuxPEOPLELinus

May Linus announced kernel version patchevel

I uploaded a new version of the ALPHApl to nicfunetfi this one

contains some more xes for the networking co de along with various other

minor changes including the math emulation x The directory is as b efore

pubOSLinuxPEOPLELinus Id suggest removing any old traces of linux

b efore unpacking this so that you wont have problems with old ob ject les

etc

Also note that Fred put the new networking binaries on tsx the other day

so you should probably get them from publinuxpackagesnetnetId

suggest getting at least the netbase and netstd packages of binaries as

they contain the cong programs as well as all the normal networking binaries

Id b e esp ecially interested to hear comments from the p eople who were unable

to get the previous alphapl working Do es this one work for you If it

do esnt please mail me directly as that problem is now the only thing keeping

me from a real release

To recap pl gives you roughly

new net co de FvK along with the newest drivers from Donald

IPC do esnt need patching Krishna Balasubramanian

various FPUemulation details xed Bill Metzenthen

extfs up dates by Remy Card and Steven Tweedie

dynamic ino de and le allo cation Steven Tweedie with hash tables for

b etter ino de lo okup etc Hop efully no more EMFILE errors

up dated fdomain driver byRikFaith along with some other SCSI changes

by others

LINUX GENERAL INFORMATION

ttychanges byTytso and others

new uname call for extended info ie domain HLU

iBCS signal stacks and stubs for lcall

buer cache co de page sharing Small changes since the last ALPHA

di as p eople with MB rep orted that the old co de didnt relinquish

pages very nicely

up dated clone it didnt actually work with execve b efore and

there may still b e some problems Untested

various other changes Ive probably forgotten half the changes since

pl

Please test it out and if you have problems mail me ab out them so that I

know ab out it Feel free to send them to the mailing list and newsgroup to o

of course but at least include a mail to me Im working on nding the

reason for the b o otup problems that two p ersons have exp erienced the more

data I can get on this the merrier

Linux General Information

This section is maintained by Matt Welsh mdwtccornelledu Mail him if you

have corrections additions other questions etc Last up date was June

Information

What is Linux

Linux is a small UNIX for AT computers that has the added advantage of b e



ing free It is still in b etatesting but is slowly getting useful even for somewhat

real develop ement The currentversion is CURRENT VERSION date KER

DATE NEL

Linux is a freely distributable UNIX clone It implements a subset of System V

and POSIX functionality and contains a lot of BSDisms LINUX has b een written

from scratch and therefore do es not contain anyATT or MINIX co denot in the

kernel the compiler the utilities or the libraries For this reason it can b e made

available with the complete source co de via anonymous FTP LINUX runs only on

ATbus machines p orting to nonIntel architectures is likely to b e dicult

as the kernel makes extensive use of memory management and task primitives

Do es Linux supp ort GCC TCPIP XWindows MGR etc

Linux currently supp orts and uses a large amount of the GNU software ie GCC

bison gro etc so all of that functionality is there XWindows is also available

along with many client applications MGR is there to o TCPIP is in testing and

is available for you to try out

Dirk Hohndel TCPIP is available I use Linux b oxes as Xterminals and my

own asterix has mounted half a Gig via NFS

Mitch DSuoza is running an anonymous FTP server on his Linux b ox This is

denitely more than testing The newest SLS has a TCPIP kernel by default



Free means that you mayuseitchange it redistribute it as long as you dont change the

copyright Free do es not mean public domain

Information

See section

In short Linux supp orts manymany features and programs One of the biggest

questions is

Does work on Linux Does Linux have

The answer usuallyisyes Just check out the rest of this FAQ the newsgroup

as well as the les on the FTP sites

What is the current state of Linux

read the composlinux newsgroup where the InfoSheet is p erio dically p osted

You can also read composlinuxannounce which is a mo derated newsgroup has

a lot less trac and contains all of the important information on Linux

Linux sounds great but where do I get it and howdoIinstallit

FIRST read this FAQ and esp ecially section There is no single ocial re

lease of Linux instead there are several indep endent releases all with their own

advantages and disadvantages The SLS release is the de facto standard

Note that some releases only giveyou the kernel and a few utilities and others

giveyou everything you need including X GCC and more in that latter case

the downloading is close to a douzen of SOFT Just check out section for more

info

Sounds go o d but all of these do cs are very confusing Is Linux

really dicult to install and use

This FAQ as you can see is very large This is mostly b ecause its full of every

single frequently asked question ab out Linux on the net In essence its very simple

to get started with Linux download the SLS release put it onto oppies see section

repartition your drive and install the software

If youre new to the UNIX world Linux as with any UNIX is going to b e

dicult to understand at rst There isnt a lot of real do cumentation other than

this FAQ out there The Linux Do c Pro ject mail mdwtccornelledu for info is

working on a set of Linux manuals which should solve this problem However Linux

is a hackers UNIX in manyways it was develop ed by exp erienced UNIX hacks for

exp erienced UNIX hacks People are working on making it more newbiefriend ly

however keep in mind that this is an afterthought Linux was never meanttobe

the huge p opular free UNIX that it has b ecome and the lack of do cumentation

do esnt b other UNIX wizards who can gure it out from just p oking around

Whats the b est advice you can give to a Linux newbie

Go read a good b o ok on using UNIX b efore you even get started Jumping cold

turkey into the Linux world from DOS is going to b e quite dicult Also remember

that youll b e running the system as well as using it so get a b o ok on UNIX system

administration to o

To o many folks p ost questions to composlinux which arent Linux sp ecic at

all and thus arent covered in this FAQ ie Howtoremove a le cal led i If you

cant gure out something its more than likely a misunderstanding of UNIX con

cepts not a bug in Linux Please read up on UNIX see the compunixquestions

FAQ thats a go o d one b efore you get started

LINUX GENERAL INFORMATION

How long has Linux b een publicly available

Few months v wentoutinNov v in Dec and the currentversion

is available since MayButeven it is pretty recent it is quite reliable

There are very few and small bugs and in its current state it is mostly useful for

p eople who are willing to p ort co de and write new co de As Linux is very close to a

reliablestable system Linus decided that v will b e known as v Believeit

or not the whole story started nearly with two pro cesses that printed AAAA

and BBBB BTW consult the digest Vol for a complete story

How reliable is Linux anyway

Very much so The only real bugs that we see are with alpha drivers thats why

theyre alpha and with some parts of the TCPIP co de For of applications

however Linux is very robust Linux and XWindows is faster on a than on

many Sun workstations with the same amount of RAM running SunOS

What is the prop er pronounciation for Linux

Linus himself said

li is pronounced with a short ee sound compare prInt mInImal etc nux is

also short nondiphtong like in pUt Its partly due to minix Linux was just my

working name for the thing and as I wrote it to replace minix on my system the

result is what it is linus minix b ecame Linux

I originally intended it to b e called freax although buggix was one contender

after I got fed up with some of the more p ersistent bugs and I think the

kernel makeles up to version had something to that eect Makele for the

freax kernel in a comment But arl called the Linux directory at nicfunetfi

pubOSLinux and the name stuck Mayb e just as well freax do esnt sound to o

go o d either freax is obviosly free freak the obligatory x

Ricks note for English sp eakers Linux LIHnuhks

Whats ab out the copyrightofLinux

This is an except of the RELEASE Notes va Linux is NOT public domain soft

ware but is copyrighted byLinus Torvalds The copyright conditions are the same

as those imp osed by the GNU copyleft The GNU GENERAL PUBLIC LICENSE

Version June is part of the source tree

Should I b e a UNIX andor a DOS wizard to installuse Linux

Not at all just follow the install rules of course it will b e easier for you if you know

things ab out UNIX RightnowLinux is used by more than BIGNUM p ersons very

few of them enhance the kernel some addsp orts new soft most of us are only but

USEFUL b eta testers Last but not least various Linuxers work on manpages

newuser help lesystem organization So join us and cho ose your caste

It is even used in pro duction environments Dr GW Wettstein

Why cant we split composlinux

Ian Jackson tells us

There is a pro cedure for creating new newsgroups involving discussion p erio ds and

votes it can b e found in newsannouncenewgroups

In Novemb er I Ian Jackson started a formal discussion under that pro

cedure and duly held a vote for four new groups composlinuxannounce mo der

ated composlinuxquestions composlinuxbugs and composlinuxmisc

Requirements

There was quite a heated argument with many p eople esp ecially from Fidonet

and the newsmail gateway complaining that if the group split they wouldnt b e

able to read it

At the end of the vote the results were as follows culled from the announcement

at the end of the voting p erio d

yes no abs di ratio result why to change

announce PASS

questions FAIL ratio

bugs FAIL ratio

misc FAIL ratio

di number more yes than no votes this must b e for a group to pass

ratio ratio of yes to no votes this must b e for a group to pass

to change the minimum number of votes whichwould have b een required to

change the result if they were all yes or no as appropariate

The guidelines say that unless a group gets at least twice as manyyes as no

votes and at least more yes than no votes it wont b e created Hence all

the new groups except announce failed composlinuxannounce now exists

the submission address is via Matt Welsh linuxannouncetccornelledu

The guidelines also saythatyou havetowait at least months after a failed

vote b efore trying again this to stop the obvious problem of failed groups coming

backover and over again

Hence any more discussion of prop osed splits is futile until at least very late in

June In any case such a discussion should take place in the group reserved for

that purp ose newsgroupsnotin composlinux

Requirements

Do es it run on my computer

Linux has b een written on a clone with IDE drives and a VGA screen It

should work on most similar setups The harddisk should b e ATstandard and the

system must b e ISA though some EISA success has b een rep orted T Ko enig

Linux do esnt take advantage of the EISA structure A high density oppydrive

either or is required

Drews information Linux supp orts anything thats register compatable with a

WD MFM disk controller ie the original PCAT disk controller Most

AT MFM RLL ESDI and IDE setups lo ok likethis

XT compatable disk controllers wont work

Generally the rule is if you have the disk congured into the CMOS setup

of your machine it will work b ecause the BIOS is talking to a WD

compatable b oard otherwise it wont

IDE and MFM seem to work with no problem It works also for some ESDI

driveyou mighthave to comment out the unexpected hd interruptmessage

from hdc There exists a highlevel SCSI driver under whichlowlevel drivers are

placed a STST lowdriver has b een completed see the sections and

Otherwise the requirements seem relatively small a SX DXorany

Any video card of the following Hercules CGA EGA SVGA

It needs at least M to run with SWAP and M is denitely a plus It can

happily use up to M and more if you want

LINUX GENERAL INFORMATION

BTW There are problems with some MAXTOR drives on high sp eed machines

sometimes switching o turb o helps There may also b e a problem with slow

memory under ns on fast machines Again the solution is to turn o turb o

Mixed SIMMs and chip versions have also rep orted to b e problematic

Note It do esnt run yet on a MCA machine such as the IBM PS line

Howmuch space will Linux takeuponmyharddrive

It dep ends on which release you cho ose See the section b elow Usually its

somewhere b etween MB for a nominal systemswap space and MB no

longer MB for everything plus space for user directories etc

BTW the full SLS needs around MB including T X and other go o dies

E

Why the suggested MB for Linux

Linux uses the rst k for kernel text kernel data and buercache Your mother

board may eat up K b ecause of the chipset Moreover there is initlogin a

shell up date p ossibly other daemons Then while compiling there is make and gcc

k So you dont have enough real memory and have to page

Howwould this op erate in an OS environment

Linux will co exist with any other op erating systems which resp ects the standard

PC partionning scheme this includes DOS OS Minix etc

WARNING Linux and OS can coexist on the same machine BUT you

cannot use Linuxs fdisk to makeLinux partitions See the warnings in section

ab out Linux and OS

Will Linux run on a PC or AT If not why

Linux uses the chip protected mo de functions extensively and is a true bit

op erating system Thus x chips x will simply not run it

Will Linux run on a Laptop

It works including X on most of them

What Linux do es

Do es Linux use TSS segments to provide multitasking

Yes

If my PC runs under Linux is it p ossible to ftp rlogin rsh etc

to other UNIX b oxes

Kermit and kaq have b oth b een p orted to Linux Also TCPIP is quite reliable

only a few clients are missing Read section devoted to Ethernet and Linux

Do es Linux do paging Can I have virtual memory on my small

machine

Yes it do es Generally you set up a swap le or partition and enable it with the

swap on command Voila Virtual memory

Comparing Linux with other Unices

Can I have tasks spanning the full GB of addressable mem

ory No more kB limits like in coherent or standard Minix

Since pl it uses GB Pro cess Space for userspace and for the kernel space

Do es the bigger program sizes mean I can run X

Yes See section b elow for details on X

Comparing Linux with other Unices

What are the dierences pros and cons compared to Minix

Cons

Linux only works on and pro cessors

Linux needs MB of memory just to run MB to b e useful

Linux is a more traditional UNIX kernel it do esnt use message passing

Pros

Linux is free and freely distributable BUT copyrighted

Linux has some advanced features such as

Memory paging with copyonwrite

Demand loading of executables

Page sharing of executables

Multithreaded le system

job control and virtual memory virtual consoles and pseudottys

Linux is a more traditional UNIX kernel it do esnt use message passing

What are the pros and cons compared to BSD

Linux and BSD started out as completely dierent pro jects with completely

dierent goals and design criteria in mind Personallymy exp erience with BSD

has shown that

its TCPIP is more stable and seems to work on my NE card which

Linux do esnt supp ort yet but

the interface and feel just werent the same as Linux whichI liked b etter

Youll have to try it out for yourself Heres information from compunixbsd

Septemb er

This is a free BSD for the It do es NFS and X Grab it from

agateberkeleyedu Bill Jolitz is writing a b o ok on it

It has a neat small kernel and is stable enough to run for a week or

more without crashinghanging It works ne with MB RAM and

MB disk Running X however needs MB RAM and supp orts only

vanilla VGA The TCPIP implementation in this is functional but

not optimised This means that FTP throughput is ab out KBsec on

Ethernet when almost anything else gives youaboutKBtoKB

p er second

Read compunixbsd That is almost entirely Jolitzs BSD now

LINUX USEFUL ADDRESSES

Howmuch disk space for

kernel

X

source to kernel

source to X

Binary only M disk swap extraction

Source M bin disk extraction recom

pile

User software M

X Binaries require ab out MB I dont know ab out the sources

To conclude this QA wrt Linux vs BSD you should read the Linux News

Issue of L Wirzenius where a true story of Mark W Eichin is rep orted

There are newsgroups devoted to BSD composbsd

Ihave seen in may the rst attempt for BSD FAQ Nevertheless the Linux

FAQ is not bug free and contains some outdated information

BSD can do POSIX and BSD

Linux can do POSIX SYSV and some BSD stu

Linux was develop ed with p ortability in mind So its not directly System V

nor is it directly BSD Its the b est of b oth worlds a la SunOS

For most of the nix users b oth systems are fairly usable but none of them are

bug free

Linux useful Addresses

Linux on the Net

Where can I get Linux

Linux all the software binaries sources releases and so on can b e retrieved via

anonymous FTP from

EUROPE

nicfunetfi

directory pubOSLinux

ftpinformatiktumuenchende

directory pubLinux

srcdocicacuk

directory pubosLinux

ftpmccacuk

directory publinux

ftpdfvrwthaachende

directory publinux

ftpinformatikrwthaachende

directory pubLinux

ftpibrcstubsde

directory puboslinux

Linux on the Net

US

tsxmitedu

directory publinux

sunsiteuncedu

directory pubLinux

wustlwuarchiveedu

directory pubmirrorslinux

ftpeecsumichedu

directory linux

AUSTRALIA

kirkbuozau

directory pubOSLinux

JAPAN

utsunsutokyoacjp

directory misclinux

kuiskyotouacjp

directory Linux and Linuxmirror for the tsx miror

KOREA

cairkaistackr

directory pubLinux a mirror of sunsite

You mightwanttocheck out which of these is the most uptodate Note that

banjoconcertnet is no longer a Linux FTP site

Lee M J McLoughlin lmjmdocicacuksaid

Wesrcdocicacuk are also on Janet the main UK academic network as

ukacicdocsrc

More useful p erhaps is we are the only big archiveavailable via FTAM the ISO

equivalenttoFTPWe can b e reached either over the internet or janet see ab ove

addresses or via the Europ ean IXI network on

If you have no FTP capabilityyou are in trouble See the next QA Also youll

need the UNCOMPEXE and RAWRITEEXE programs for DOS to makeyour install

disks These are usually found in the Linux directories on the ab ove FTP sites

I do not have FTP access what can I do to get Linux

You can either read the next subsection related to BBSs otherwise read the fol

lowing

The SLS release is distributable by snailmail on oppies for those without net

access see section of this FAQ for more

Try to contact a friend on the net with those access or try mailserverftpmail

server otherwise contact tytsoATHENAMITEDUYou might try mailing

mailservernicfunetfi with help in the b o dy of the mail If you cho ose

ftpmail server example ftpmaildecwrldeccom with help in the b o dythe

server will send back instructions and command list As an exemple to get the list

of les available at tsx in publinux send

LINUX USEFUL ADDRESSES

mail ftpmaildecwrldeccom

subject anything

reply your email

connect tsxmitedu

chdir publinux

dir R

quit

In Europ e ftpinformatiktumuenchende is accessible via email send help

in the b o dy to ftpmailerinformatiktumuenchende

What is a quickway to nd out who is oering mailorder Linux

kits

If you have access to email email bcrphysicspurdueedu a message with the

subject help

Is there a newsgroup or mailinglist ab out Linux Where can I

get my questions answered How ab out bugrep orts

The composlinux newsgroup is literally teeming with p ostings So to the rst

question yes The older newsgroup altoslinux is b eing phased out and

shouldnt b e used anymore

There are other newsgroups b ecause not all problems you encounter while us

ing Linux are Linux sp ecic You mayalsowanttoreadseveral groups in the

compunixhierarchy compsourceswanted altsourceswanted and esp e

cially anyFAQs in these groups

If you dont have news access you can get the digest of p ostings via email

from linuxactivistsrequestnewsdigestsmitedu This list is gatewayed

to the newsgroup as well Only use the request address for subscrib eunsubscrib e

messages dont p ost those to the newsgroup or to the actual mailing list

Questions and bugrep orts can b e sent either to the newsgroup or to Linus

himself at torvaldskruunahelsinkifi dep ending on whichyou nd more ap

propriate

And last but not least there is the original mailinglist whichisnowamulti

channel list Contact linuxactivistsrequestniksulahutfi

Where can I get my questions answered How ab out bugrep ortsWhat

do I put into a p ost to composlinux

Paul Gortmaker pgcainmmtcrmitozausays ab out it

You can p ost your problem to the ab ove group composlinuxBUTBE

FORE YOU DO THIS PLEASE READ THE FOLLOWING GUIDELINES

If you have read the FAQ man pages etc and you still havent solved your

problem then checktomakesureyou have got the latest version of whatever it is

that you are working with Check the dates and revision numb ers of your versions

with the versions on your lo cal ftp site tsxmitedu sunsiteuncedu This

includes most imp ortantly the kernel itself Makesureyou have applied the latest

patches and recompiled the kernel or have got the kernel Image from someone who

has done so And of course check composlinux for info to o If you haveagenuine

problem chances are that you arent the rst one to nd it So it has probably

already b een rep orted and xed For example if you are having trouble with

say Xcong for some strange VGA card and you use nn to read composlinux

then you could invoke nn as follows

Linux on the Net

nn x s config composlinux

and it will nd all the latest articles with the word cong in their sub ject for

you This will b e one of the most up to date sets of information that you can get

DONT OVERLOOK IT You can check the man pages of your news reader to

determine the options that do the same as the ab ove

OK so youve done all the ab ove sp ent hours trying to gure it out have

had a nervous breakdown your girlfriendb oyfriend has stopp ed talking to you

and you decide that you will turn to the Linux community for help Here are some

guidelines on p osting that will ensure that you get a quick resp onse and that you

hop efully dont get amed

Cho osing a Sub ject

It is imp ortant to try and squeeze as much information into as few words as

p ossible If you can manage it try and put the package name version and

problem into the sub ject But dont make it to o long or the middle will get

chopp ed out For example Im having problems with p o eigtarZ on my

with p will probably app ear to everyb o dy as Im having prob

ith p Not very useful What should havebeenusedwas something

like p o eig w p wont compile would b e much b etter and relays that

you are having trouble with getting it to compile Note that this is just an

example I have no knowledge of problems with p o eig Also unless you like

bugs getting amed DONT claim you have found a bug unless you are

ABSOLUTELY SURE Nothing pes develop ers o more than erroneous

bug rep orts

Keywords

If your news p oster program asks for keywords try and put in some useful

descriptivewords so that others can use them for a meaningful search

bf Bo dy of the Article

There are some key things that need to b e included in the b o dy of the article

The name and version of the thing that you are having the problem with

The typ e of problem ie compilation execution etc

versions of related software ie if compilation is the problem then the

versionofGCCyou are runnning is relevant If you are having trouble

with a program that uses X then the version of X you are using is

relevant

The version and patchlevel of the kernel you are using at present ie

p or whatever

the typ e or brand of any related hardware ie if you are having prob

lems with networking then you would wanttosaythatyou are using a

Western Digital SMC Elite or whatever your ethernet card is

Anyrelevant error messages that were rep orted by the system during the

problem

And of course there are some things that one should not put in the article

For example dont p ost a page conguration le and exp ect anyb o dy in

their right mind to lo ok through it And similarly for any HUGE les If

they are relevanttoyour problem then someone will resp ond byaskingyou

something like Did you check line in le such and such And try to

LINUX USEFUL ADDRESSES

avoid negative comments like The do cumentation isnt t for my dog If you

haveabonetopick do it via email so the rest of us dont have to read a ame

war It just adds to the amount of useless noise on composlinux which

already takes to o long to scan through Besides the develop ers are doing this

FOR FREE THEY ARE NOT OBLIGATED TO DO ANYTHING DONT

ABUSE THEM Or they mightjustgoawaywhichhurts us all

Well with all this in mind hop efully you will get a quickresponsetoyour

problem and mayb e somedayyou will b e able to answer someone elses problem

from the exp erience you gain

Could you b e more explicit ab out the multichannel list

Well there are many things to say

these channels are rather devoted to hackers

the ones I am aware of are GCC MGR X SCSI NEWCHANNELS

MSDOS emulator discussion NORMAL KERNEL FTP LAPTOP DOC

NET CONFIGS LINUXNEWS

whenever you want to JOIN or LEAVE a channel you havetocontact the

request address

you have to use sp ecial header XMnKey and XMnAdmin XMnKey is only

for regular p ost the XMnAdmin is for request

Ari Lemmke Nov Hmmm It seems our list has now ab out

users in channels mailing lists without uniq

channel info

user info

failed to join

failed to leave

unknown command

no MailNet eld

left the channel

notice sent

articles to digests

digests sent

users on all channels

uniq users on

echo foo mail linuxactivistsrequestniksulahutfi

to get the MailNet User Guide

How can I join the channel XXX on the linuxactivists mailing

list

just send a mail to the request address with help in the b o dy you will get backa

mail whichgives you the list of channels and the way to joinleave them Basically

you send mail to the request address with the line XMnAdmin join channel

Linux on the Net

HowcanIleavethechannelXXXonthelinuxactivists mailing

list

Same as ab ove basicallyYou send mail to the request address that contains the

line

XMnAdmin leave channel

Im not an hacker what are the channels I could b e interested

in

Probably these are the most interesting for you IMHO

Channel NORMAL Channel normal is the former LinuxActivists mailing list

all the p eople who were on the old LinuxActivists list are moved to this

channel

Channel DOC This channel is for Linux do cument pro ject Discussion ab out

Linux do cuments manuals pap ers etc

Channel CONFIGS This channel will b e devoted to send submissions of systems

that have Linux already running AND those that for any reason cant get

it to work yet

Mainly what its need from all the channel users is to send their hardware

conguration list as complete as p ossible Include anything that you feel

p ertinent for information CPU motherb oard RAM amount HD oppy

controller BIOS monitor video card memorynetwork adapter etc If you

are having trouble with your current system or you nd out that a program

do esnt work prop erly on your system due to a HARDWARE problem it may

b e useful for us to knowyour conguration mayb e you can get a lot of help

Channel LINUXNEWS The LINUXNEWS channel will b e used for distribu

tion of Linux News a weekly if I can nd the time summary of things

that happ en in the Linux community Discussion is not encouraged if you

have complaints or suggestions send them directly to me LarsWirzenius

HelsinkiFI

Channel ANNOUNCE This channel contains the hole trac of composlinuxannounce

Every article you send to this group will b e sent out as mail in the AN

NOUNCE channel This is very usefull for those who do esnt have news

access and those who cant aord to sp end one to three hours p er day reading

news but wanttobeuptodate

Channel NEWCHANNELS On the future users on this channel get the in

formation ab out new channels created

By this wayyou can join the channels you want and do not need to send mail

to MailNet info server or listen rumours

Do es there exist a place where the trac of the newsgroup is

kept

Yes on nic and tsx see the ftp addresses ab ove and since th March a Gopher

server is up at beryldaimiaaudk The archives go backtoNov

Also recently a WAIS server for the Linux mail archive has b een setup

at fgbfgbmwtumuenchendeContact twfgbfgbmwtumuenchende for more info

LINUX USEFUL ADDRESSES

All back issues of the Digest are available on tsxmitedu in

the following places

publinuxmailarchiveVolumexdigestnnnZ

where x is volume x and nnn is issue nnn

Obtaining Linux from BBSs

This section is maintained by Zane Healy healyzhholonetnet

Last Up date June

I dont have access to FTPhow can I obtain Linux

Linux is available from various BBSs around the world

I got this FAQ from a lo cal BBS or a friend and I see there is a

newsgroup called composlinuxIdonthave access to USENET

or mail so how can I get the messages

Some of the BBSs on FidoNet carry composlinux as a FidoNet conference Also

some of the other BBSs carry it in some form or other

Do BBSs oer anything that the Internet do es not

Yes on the information side there are the UNIX conferences on b oth the RIME

network and FidoNet Although they are not dedicated to Linux a large amountof

the messages are Linux related Also at least one software package b eing develop ed

for Linux and also one p ort is available via BBSs long b efore they are available

via anonymous FTP

What is a BBS

A BBS is a it lets you transfer messages and les via your

phone line and all you need is a computer with communications software and a

mo dem Some BBSs transfer messages among each other forming large computer

networks similar to USENET The most p opular of these in the US are FidoNet

and RIME

How can I get a Near complete list of BBSs that carry Linux

I Zane Healy p ost a list of all known BBSs that carry Linux to composlinux

as well as the RIME and Fidonet UNIX conferences on the st and th of each

month

NowthatIhavea phonenumber how do I go ab out accessing a

BBS

You need a computer equipp ed with communications software and a mo dem

For ALMOST all BBSs you will need to set the comm software up for

Data Bits

NParity

Stop Bit

Although certain BBSs and Communication services require that the software b e set for

Obtaining Linux from BBSs

Data Bits

EParity

Stop Bit

You will also need to set the comm software for the correct sp eed either the

top sp eed or the sp eed for your mo dem

Using the comm software call the BBS Once you connect with the BBS this

may takeawhile as other p eople are likely to b e using it you will b e asked

some questions

If you are a registered user of the BBS it will normally only ask for your name

and password However if you are not a registered user it will most likely

require that b efore you do anything you register The metho d of registration

varies from BBS to BBS

Normally the rst thing that will happ en is you sign on to the BBS and tell

it your name It will then check its list of users and see that you are not one

of them Atwhich time it will ask you if you are a new user or if you wish to

reenter your name When you tell it you are a new user it will then ask you

some questions ab out yourself such as where you are calling from and your

phone numb er A lot of BBSs will want some statistical info suchaswhat

typ e of computer you are using your communications software your age etc

etc

After this most BBSs require some sort of validation this is for the System

Op erators SysOps protection One typ e is where you give the BBS software

your phone numb er hang up and the BBS calls your computer to verify that

you gave it legitament phone numb er Some BBSs require that you mail the

SysOp a p ostcard Most however just require that you give the SysOp the

request info and then he upgrades your level of access a couple of days later

For the most part you will nd that the registration pro cess is easy to follow

and well do cumented

There is a lo cal BBS that carries Linux but it isnt on the latest

Linux BBS List How do I go ab out submitting it for inclusionin

the list

Send the following information on the BBS to me

BBS Name

Phone Number

Mo dem Sp eed

City and StateCountry

Whatever Network its on ie FidoNet RIME etc

First Time access to DL Linux Files YN

Free Access to Linux Files YN

Allow File Requests YN

BBS Rating

I can b e reached at one of the following EMail Addresses

LINUX USEFUL ADDRESSES

Internet healyzhholonetnet

CompuServe

Pro digy SCNNA

Fido NetMail Zane Healy at

RIME UNIX Conference Zane Healy

What can I do to help ensure the continued development of Linux

PLEASE FILES TO BBSS

Iwould liketopoint out that a very large numb er of the Linux enthusiasts dont

have FTP access In fact it is p ossible that bynow most of the Linux fans dont

So I would like to suggest that those of us that do nd at least one BBS to p ost the

Linux les to I for one p ost every le that I get to at least one of the lo cal BBSs

and from there they the les tend to nd there way to other lo cal BBSs Ive seen

p osts ab out the future of Linux etc well here is a way to help guarantee it I think

its safe to assume that most p eople with FTP access also haveamodemSohow

ab out doing other Linux fans a favor and nding a BBS to upload the Linux les

to

How do I read the data contained in the Linux BBS List

The list uses the following format

State YYY BBS Name Phone Number Modem Speed

Rating City Other data

The BBSs are rated by the numberofLinux related les that they carry This

is so you can cho ose ones that has a b etter chance of carrying the les you are

lo oking for if you are calling long distance The BBSs are rated on a scale of one

to ve

Only enough the most basic of les

The basics and a little more

So so

A resp ectable amount

Prettymucheverything you need

Information ab out the b oards access p olicies can b e obtained bychecking a three

digit eld

YYY Either a YesNo answer to the question

Free access to Linux files

Allow file requests FidoNet

First time DL of Linux related files

NOTE Just b ecause a b oard has Ns in the rst two elds do es not mean that

it is a b oard to stayaway from A lot of b oards require that you register and b e

veried b efore you can access most of their features hence the rst N The second

eld is to the b est of my knowledge limited to BBSs that are part of FidoNet

Obtaining Linux from BBSs

What are some of the b est BBSs to checkout

In the US

CA YNY hiphop k VbisHST

Sunnyvale Login guest no password

For more Information lo ok at the BBSList

BBS OF THE MONTH

MD Brodmanns Place k

This BBS not only carries an excellent selection of Linux file but

it also has the following Linux related newsgroupsconferences

USENET Fidonet RIME

composlinux Fido UNIX RIME UNIX

composlinuxannounce LinuxLocallocal to Fido area

FORMAT

State YYY BBS Name Phone Number Modem Speed

Rating City Other data

RATING SYSTEM Only enough the most basic of files

The basics and a little more

Soso

A respectable amount

Pretty much everything you need

ADDITIONAL INFO

YYY Either a YesNo answer to the question

Free access to Linux files

Allow file requests FidoNet

First time DL of Linux related files

File Requests

FidoNet BBSs with the right types of frontend mailers can call other

Fido BBSs and request their frontend mailer to send them files that they

want All this can be done automatically File Requests freqs are

basically the FidoNet equivallent to UUCP

UNITED STATES

CA NNY Citrus Grove Public Access ZyXEL

Sacramento citrussaccaus

CA Higher Powered BBS

RIME HIGHER

CA hiphop k

k

LINUX USEFUL ADDRESSES

Sunnyvale USENET

CA YYY Unix Online

Petaluma USENET

CA The Outer Rim

Santa Clarita

CA Programmers Exchange

El Monte Fidonet

CA Micro Oasis k

San Leandro

CA YNY Test Engineering

Sacramento

FL NYY Slut Club USRDS K HSTK

Tampa Fidonet

FL Lost City Atlantis k

Jacksonville Fidonet

FL YYY Acquired Knowledge BBS k vbis

Fort Lauderdale Internet UUCP

GA AVSync

Atlanta

GA YYY Information Overload k ZyXEL

FidoNet

GA Atlanta Radio Club

Atlanta

ID Rebel BBS

Boise

ID YYY Phantasia BBS

Boise Smartnet

ID YYY Rocky Mountain HUB BBS k

Pocatello FidoSLNetCinemaNetetc

IL YYY EchoMania BBS k HST

Belleville Fido freg LINUX

Freqs from unlisted nodes online callback verifire works LD

IL YNY UNIX USER k

Batavia USENET Internet mail

Home of Unix User newsletter

IL NYY PBS BBS Node k vHST

Node

Bloomington Fido

IL Third World v

IN NNY Digital Underground k vbis

USENET News Feed

LA The OA Southern Star

New Orleans Fidonet

MA NN Channel One

Boston RIME CHANNEL

MA YNY VWIS Linux Support BBS

Worcester

MA YYY WayStar k vbis

Marlborough FidoNet

MD NN Programmers Corner

Columbia RIME

Obtaining Linux from BBSs

MD Brodmanns Place k

Waldorf RIME BRODMANN

FidoNet

Carries different message groups dealing with LinuxUNIX

MD Main Frame

Gaithersburg RIME MAINFRAM

MD Zero Cybernet BBS

MD YNY WaterDeep BBS v

Baltimore

ME Harbor Heights BBS

Boothbay Harbor

MN YNY PartTime BBS k vbis

Plymouth

MO NNY The Sole Survivor k vbis

St Louis WWIVnet WWIVlink more

NC MACs Place k DS modem

Dunn RIME MAC

NC YNY Digital Designs kk

Hope Mills

NE Flite Line

Lincoln RIME FLITE DS modem

NE Legend

Lincoln DS modem

NE MegaByte Mansion Vbis

Omaha

NJ Mycroft QNX k

NJ YNY Steve Leons k

Cliffside Park

NJ YYY DwightEnglewood BBS v

Englewood NJ USENET

NJ YNY WEFUNK The Mothership Connection k

Franklin Park NJ

NY YYY The Laboratory k HST k vbis

FidoNet

OR YYY Intermittent Connection k HST vbis

Eugene Ore

freq LINUX for a list CBV not needed to dl linux files

PA NNY Centre Programmers Unit k VbisHST

Bellefonte PA

PA YNY Allentown Technical vvbis

Allentown WWIVNet

PA YYY TacticalOperations k VbisVbis

State College Fidonet tacopsUUCP

TX North Shore BBS

Houston

TX The Annex HST

Fidonet

Fidonet

Files available by freq or by signon with a minute perday limit

TX Walt Fairs

Houston FidoNet

LINUX USEFUL ADDRESSES

TX YYY CyberVille

FidoNet

TX YNY splatooh k

Victoria

TX YNY alaree k

Victoria

TX YNY Ronin BBS HSTDS

Waxahachie Dallas RIMEIntelecSmartnetand more

VA VTBBS

Blacksburg

VA MBT

Blacksburg

VA

Annandale Fidonet

VA RemJem

Fairfax

VA Enlightend k

Alexandria Fidonet

VA YYY My UnKnown BBS k Vbis

Fidonet

VA YN Georgia Peach BBS k

Newport News

WA YYY SQually Holler k USR DS

Renton FidoNet

USENET squallyhalcyoncom

Anon UUCP nuucp nuucp scbbsfilelistz

WA YYY Top Hat BBS k

Fidonet

WA YNY victrolaseawaus k

Federal Way USENET

Commercial Services that carry some of Linux

NNN Compuserve CIS

UnixForum voice number

NNN GENie

voice number

voice number international

NNN BIX

voice number

NNN Delphi

In PC SIG

OUTSIDE US

AUSTRIA

W YYY Galaktische Archive ZYX

Wien fido

AUSTRALIA

NSW YYN LinuxSupportOz vbis k

Sydney InternetUsenet EMailNews

NSW NYY cc Formula BBS Vbis

Obtaining Linux from BBSs

Sydney

CANADA

AB NNN Magic BBS k HSTTelebitMNP

Calgary AB Canada InternetUsenet

AB YY Logical Solutions Baud lines to

K lines to

k USR vbis to

AB YNY VALIS k vbis

Edmonton USENET

ON The Windsor Download vbis

ON YYY rnode

Toronto USENET

QC Synapse

Gatineau RIMESYNAPSE

QC YNY Radio Free Nyongwa vbis ZyXEL

Montreal USENET Fido

GERMANY

The BBSs in the German and Austrian sections are thanks to

Rasca Gmelch who maintains a list of German and Austrian BBSs

He can be reached at rascamariephysiktuberlinde

HB bakuninnorthde

D Bremen kraehebakuninnorthde

NDS DataComm HST

Braunschweig fido LinuxNet

NDS DataComm HST

Braunschweig fido LinuxNet

NDS YYY Linux Server Braukmann ZYX

Oldenburg fido LinuxNet

HH Hub Hamburg trashhh

Hamburg fido LinuxNet

NDS YYY MMs Spielebox ZYX

ClausthalZfd fido SLS SLT

NDS YYY MMs Spielebox ZYX

ClausthalZfd fido SLS SLT

NDS YYY MMs Spielebox

ClausthalZfd fido SLS SLT

NDS YYY BitCompany ZYX MO

ClausthalZfd fido SLS

BW NYY Fractal Zone BBS Maass ZYX h

Karlsruhe fido

NRW Hipposoft M Junius HST

Aachen fido SLSkernel

YYY UBHOFF A Hoffmann ZYX

Duisburg fido SLSkernel

SHL FORMELBox ZYX

Kaltenkirchen fido LinuxNet

boxname ZYX

fido

LINUX USEFUL ADDRESSES

BAY boxname ZYX

Freising fido

BAY BOX ZYX

Muenchen fido info magic LINUX

BAY YYY DBP Line Vb

Passau fido

BAY YYY DBP Line ZYX

Passau fido

BAY YYY DBP Line HST

Passau fido

BAY YYY DBP ISDN k VX

Passau fido

BLN boxname ZYX

fido

BLN YYY CSPort ZYX

Berlin fido SLS

BLN YYY BigBrother R Gmelch Z

Berlin fido SLSkernel

BW YYY Echoblaster BBS HSTVb h

Bietigheim fido LinuxNet

BW YYY Echoblaster BBS Vb

Bietigheim fido LinuxNet

BW NYN LinuxServer HST MO

Stuttgart fido LinuxNet

BW NYY Rising Sun BBS ZYX

Sachsenheim fido LinuxNet

FINLAND

NNY The Field of Inverse Chaos k vbisHST

Helsinki Finland USENET ichaosnullnetfi

FRANCE

NNY Modula BBS HST Vbis

Paris Michel Parlebas no fee for Linux files

NNY Windows Manor NEED MORE INFO PLEASE

Paris Francis Rozange recently relocated

YYY BuBullux semiprivate number by request k Vbis

Paris send requests for number to perrieronerafr

free semiprivate system hours but weekends hours

hours download time per day FREQ for both listed and

unlisted nodes

NYY STDIN BBS Vbis

Lyon Laurent Cas FidoNet

NYY Le Lien HST Vbis

Lyon Pascal Valette FidoNet

YNY Basil Vbis

Paris Laurent Chemla

BBS under Linux xbbs

YNY Cafard Naum Vbis

Nantes Yann Dupont

open between local time BBS under Linux pbbs

IRELAND

NYN TOPPSI HST

Obtaining Linux from BBSs

k vbis

Dublin Ireland Fido Chatnet Fidonet

NNN DUBBS ZyXEL

Dublin Ireland Fidonet

NNN Galway Online k vb

Galway Ireland RIME iolie

NY Nemesis Dungeon or k vbis

Dublin Fidonet

ITALY

NYY nonsolosoftware vbisvbis

Fidonet

ZyXEL k

Fidonet

NETHERLANDS

YNY Koos zn Doos

NEW ZAALAND

YYY Advanced Systems ZyXEL k

Auckland Singet node numbers

INTLnet node numbers

Fidonet Just a pont sorry Hrs Freqs etc

NORWAY

Thunderball Cave

RIME CAVE

NETHERLANDS

YNY DownTown BBS Lelystad k

Lelystad Fido UUCP

YYY MUGNET IntlCistron BBS k

Alphen ad Rijn UUCP

SINGAPORE

YYY The Controversy k VbisHST

Fidonet

SOUTH AFRICA

NYY Pats System k vbisHST

Pretoria Fidonet

SWEDEN

Y Gunship BBS k HST DS

Gothenburg

SWITZERLAND

NNY Atlantis k

ILINK

YYY Baboon BBS k

UNITED KINGDOM

NYN The Purple Tentacle HSTVbis

Reading Fidonet

INSTALLATION AND COMMON PROBLEMS

A BBS k

Herts Fidonet

YYY On The Beach HST

Brighton Fidonet

Commercial Services Outside the US

UNITED KINGDOM

NNN Compulink Info eXchange vbis

What are File Requests

FidoNet BBSs with the righttyp es of frontend mailers can call other Fido BBSs

and request their frontend mailer to send them les that they want All this can

b e done automatically File Requests freqs are basically the FidoNet equivallent

to UUCP

Installation and Common Problems

This FAQ section should b e kept uptodate and should b e the most reliable source

for installation info Please mail any corrections or changes to this sections co or

dinator Matt Welsh mdwtccornelledu Last up date April

Where to start

Iwant to install Linux on my machine Where do I start

The rst thing you should do is read through the various intro ductory les and

ESPECIALLYtheFAQ this le Esp ecially this section A lot of eort has

b een done on these intro les but note that some of them conict with each other

and cover older versions of Linux When in doubt consult this le

These les are all found on tsxmitedu publinuxdocs

FAQ The Linux Frequently Asked Questions list Its sitting in your hands now

This section is probably the b est place to start to get the most uptodate

Linux installation information

InfoSheet Linux Information Sheet by J Winstead This is J Winsteads general

information sheet on Linux and along with this FAQ isagoodplacetostart

for info

READMEkernel Kernel compilation README le by L Wirzenius This is the

README notes for recompiling the Linux kernel from the sources You dont

need it unless youre planning to upgrade your kernel by compiling it yourself

Others Every release of Linux such as MCCinterim SLS HLUs disks etc see

b elow has its own uptodate README les and do cs that explain howto

install that release This FAQ section summarizes but for more info on how

to install Linux read the READMEs and do cs for the release that you cho ose

Old do cs There are a numb er of obsolete old do cs lying around Most of these

tell how to install Linux from the old b o otro ot disk combo IDONOT

SUGGEST that you use these do cs unless you know what youre doing the

b est thing for b eginners to do is read this FAQ and install the SLS release

Linux Packages

using the do cs and READMEs for the SLS release These old do cs are

things like installtxt guidetxt RELNOTES CHANGES and so on and are

all geared towards old versions of the b o otro otdisk They are not relevant

to currentversions of Linux

Is there some kind of limit on how large my Linux partitions

andor lesystems can b e

Theres no limit on partition size just the size of your drive or lesystem size

The Minix lesystem typ e has a limit of megs p er lesystem However most

folks use the Extended lesystem or the Xia lesystem whichhave limits of

terabytes p er partition virtually innite

See section b elow on creating partitions and lesystems for more info

How canI besureIwont b e writing over anything imp ortant

when installing Linux I havetouseDOSonmy machine and I

dont want to lose any les

Backupeverything Just in case As long as your DOS and Linux partitions dont

overlap you should b e okay

Linux Packages

This section contains information ab out some of the currentLinux packages avail

able The information related to the MCC package were written by AV Le Blanc

Do es there exist a way to get all or nearly all of the Linux stu

Yes To install Linux youre going to wanttocho ose one of the releases of Linux

all of whichhave a dierent metho d of installation and set up Each release also

has its own README and installation do cs whichyoull want to read rst But

Ill summarize here The ma jor releases are

The Softlanding Linux System Release Also known as the SLS release consists

of disks for Linux and for X The nice thing ab out this release is that

you can pick and cho ose which disks and packages you want to install The

rst disk must b e rawritten using rawriteexe on a oppy and the rest

of the images are put onto DOS format oppies Contains all of the stu in

the MCC release plus a lot more like mailuucp and includes X on the

last disks Is also very easy to install for newcomers

This is the release that I suggest everyone new to Linux should install Its

the most complete and uptodate package HLUs disks b elow are go o d for

upgrading and unfortunately the MCCinterim is quite dated at this p oint

If you install SLS youll saveyourself a lot of trouble

The TAMU Texas AM University Linux Release This release is supp osedly like

the SLS release but has some dierent softs and a dierent installation pro ce

dure From Dave Saord The installation pro cedure is the main dierence

from SLS A single b o ot diskette is used and it b o ots directly into an auto

mated installation program This installation program asks a few questions

ab out the desired conguration and sets up everything including your lesys

tems b o oting from the hard drive with LILO see section b elow and a

simplied XWindows conguration

This humble author has never installed the TAMU release but Ive heard go o d things ab out it

INSTALLATION AND COMMON PROBLEMS

HJ Lus bootable rootdisk Release This is a release of the Linux kernel and basic

binaries on a single oppy It along with HLUs gccdisk libdisk and so on

are go o d for upgrading or installing basic Linux system by hand Its not

reccommended for newcomers b ecause theres no real install script its mostly

meant as an upgrade of the basic system software Beginners should install

SLS or MCCinterim see b elow instead The images and do cs are found at

tsxmitedu publinux

The MCC Interim Release Manchester Computing Centre Release This is the fa

bled MCCInterim Linux release whichwas originally the de facto standard

Linux distribution After it was dropp ed in favor of SLS but as of

a new MCCInterim has b een released LikeSLSandTAMU it has

an easytoinstall complete set of Linux software including networking and

X

Others but OUTDATED There are other releases and distributions of the Linux

software such as the MJ releas There is also an older b o otro ot disk

comb o whichislike HLUs b o otable ro otdisk ab ove but its no longer

supp orted as far as I know

The MJ release according to Martin Junius is no longer maintained The

last version was

Where can I get these releases of Linux

The b o otdiskro otdisk combo can b e found at tsxmitedu

publinuxINSTALLaswellasatmany mirror sites which is true for ALL

of this software

HJ Lus b o otable ro otdisk Release is found at tsxmitedu

publinuxpackagesGCCaswell as the mirror sites

The MCC Interim Release is at ftpmccacuk publinuxmccinterim

Its also mirrored to nicfunetfi pubOSLinuximagesmccinterim

and tsxmitedu publinuxmirrorsmccinterim

The MJ release discussed more b elow can b e found at ftpdfvrwthaachende

publinuxmjbin

The SLS Release is at tsxmitedu publinuxpackagesSLS

The sctamu versions can b e found at sctamuedu in pubfreeunix

What les do I need to get for the SLS release

This is part of the FAQ written for byPeter MacDonald

Basically all of the releases are alike You need to get the DOS program

rawriteexe or rawriteexe This programs take a binary le and write it

blo ckbyblock to a blank formatted oppy This is the waytotakeaLinux oppy

image and put it onto a disk from DOS rawrite can b e found in tsxmitedu

publinuxdosutils

For the SLS release you need to get the les

SLSREADME and SLSFAQ These les contain further information on the cur

rent release of SLS You should read them in addition to this FAQ

Linux Packages

a or a dep ending on what typ e of oppyyou b o ot from on your system

a is for highdensity oppies and a for highdensity oppies

This le is the image of the SLS a disk You must use rawriteexe ab ove

to rawrite the le to a highdensity formatted MSDOS oppy Once the

le is rawritten the oppy will no longer b e recognized by DOS

The les in the a a and a directories These les must b e copied to MS

DOS formatted oppies using the MSDOS copy command For example

the les in the a directory are copied to a oppy lab eled a and so on

These les make up the a disk set They are required The rest of the les

b elow are optional

The les under the directories bbN ccN xxN ttN and so on These

les are copied to MSDOS oppies just like aa ab ove eg the les in the

b directory are copied to a oppy lab eled b

These oppies contain optional software for SLS

aaN The minimal base system

bbN Base system extras like man pages emacs etc

ccN The compilers gcc g pc fc etc

iiN Interviews do c and idraw

g german keyb oard

ssN sources for some of these utilities

ttN T Xdo cument pro cessing

E

xxN The Xwindows distribution

I suggest getting at least the a b and c disk series If you wanttorunX

Windows get the x series as well When youre making these oppies aa and

so on must all b e the same kind of oppy ie either or The a disk

must b e the oppytyp e that you b o ot from The rest of the disks dont havetobe

the same typ e as the a disk

Any other information ab out SLS

This comes from the le SLSFAQbyPeter MacDonald Please get the most recent

version and read it sunsiteuncedu pubLinuxSLSSLSFAQ

SLS Softlanding Linux System Copywrite Softlanding Software

which is NOT just an image dump of someones Unix system

Also note that in the interest of preventing ftp storms the version of SLS that

app ears on the internet is not quite the same as the version distributed bySoft

landing Softlanding regularly gets a whole new version which has the changes

integrated But the up dates to the Internet version are tailored to minimize the

amount that has to b e downloaded to b ecome current That is why bugs manage

to creep in on me I am not installing and testing the Internet version although

functionally it should b e quite close to the Softlanding one

So why am I telling you this After the next p erio d of stability few changes

to SLS I will b e uploading the Softlanding version of SLS to tsxmitedu

This distribution is freely available if you haveinternet access or an obliging

friend with access to it

The purp oses of the SLS are the following

provide an initial installation program for the queasy

utilities compiled to use minimal disk space

INSTALLATION AND COMMON PROBLEMS

provide a reasonably completeintegrated UNIX system

provide a means to install and uninstall packages

p ermit partial installations for small disk congs

add a menu driven extensible system administration

take the hassle out of collecting and setting up a system

give non internet users access to Linux

provide a distribution that can b e easily up dated

SLS is a binary mostly distribution except for the kernel and is broken into

multiple parts or series eachofwhich is denoted by a letter followed by the disk

numb er as follows

aaN The minimal base system

bbN Base system extras like man pages emacs etc

ccN The compilers gccgpcfc

xxN The Xwindows distribution

iiN Interviews do c and idraw

ttN T Xdo cument pro cessing

E

g german keyb oard

This scheme allows new disks to b e added to the distribution without chang

ing the disk numb ering Also the sysinstall program do esnt havetobechanged

when new disks are added as the last disk is marked by the presence of the le

installend And when interviews is added say as a new series i it can b e

installed with

sysinstall series i

Highlights of the base are gccg emacs kermit elmmailuucp gdb sc

spreadsheet man pages groff elvis zipzoolh and menu Highlights of X

are X programmers libs dpi fonts games spider tetris xvier chess

othello xeyes etc and utilities like xmag xmenu xcolormap and ghostscript

Approximate usage is as follows

Tiny base system MB Series a

Main base system MB Series a b and c

Main base system X MB Series a b c and x

Please read the le COPYING which outlines the GNU copying restrictions The

linux kernel is copywrite Linux B Torvalds Various other copywrites applybut

the upshot is that you may do whatever you like with SLS except restrict others

in anyway from doing likewise and you must leave all copywrites intact and you

can not misrepresentortake credit for others work

Availability

SLS is available from the address

Softlanding Software

Lo dge Ave

Victoria BC Canada

VXA

More details ab out SLS can b e asked to pmacdonasanjuanuvicca

Linux Packages

What should I do to install the SLS release

Basically all of the releases are alike You need to get the DOS program rawriteexe

or rawriteexe This program takes a binary le and writes it blo ckby blo ck

to a blank formatted oppy This is the waytotake a Linux oppy image and put

it onto a disk from DOS

For the SLS release you need to get the les in the a a a and a directories

at least You also need the READMEs there Basicallyyou use rawrite to copy

the a and a images onto oppies Or you can use dd on your UNIX system

to transfer the les directly to oppies assuming you have a oppy driveonyour

UNIX system in place of rawrite

The rest of the les all go onto DOSformatted oppies just using DOS copy

The SLS release is nice b ecause it reads the DOS oppies during installation so

you dont havetorawrite all of those disks

Once you have these disks youre ready to go You can also get all of the les

in the bb directories for extras like man pages and emacs cc directories

for the GCC compiler and libraries the xx directories for Xwindows and so

on but theyre all optional I suggest at least getting the les in the a b and c

directories Rememb er that only the a and a images need to b e rawritten ALL

of the other les just do onto the oppies in DOS format

First you b o ot the a disk It will load up Linux creating a ramdisk and will

ask you to put in the a disk at some p oint Youll b e left with a prompt from

here you want to lo ok at the SLS README le online it tells you how Then

youll run fdisk to create your Linux partitions and then reb o ot the a disk again

putting in the a disk again when asked Then youll run mkfs and mkswap to

makeyour lesystems and swap space Then youre ready to install the software

typ e doinstall devPART

where PART is the main Linux partition you created with fdiskabove From

here on its pretty automatic you simply ip disks while it installs the software

First it will ask you howmuch software you plan to install just cho ose the correct

option dep ending on which sets of disks you got

You will need to have a blank DOSformatted oppy on hand The installation

pro cedure makesaLinux kernel b o ot disk out of it

When installing SLS the installation script creates a boot oppy

for me to b o ot Linux with How can I make these myself or x

problems with them

The SLS install scripts just copythekernel image to a blank oppy for you to b o ot

Linux with When SLS is installed a copyofthekernel is stored in the le Image

on your hard drive since you use the kernel on yourbootoppy to b o ot this le

isnt used during the b o otup pro cess unless you install LILO

Tomakeabootoppyyourself you must do two things

Run rdev aka rootdevonthekernel in the le Image to set the ro ot

partition it uses For example if your ro ot partition is devhda run the

command

rdev Image devhda

Copythekernel to a new oppyYou may need to DOS format the oppy

rst who knows why Then run the command cp Image devfd

INSTALLATION AND COMMON PROBLEMS

if the oppyisindevfd the rst oppydrive You can use a command

like

dd ifImage ofdevfd bsk

as well they should accomplish the same thing

Many folks have problems with their SLS b o ot disks made in this manner b ecause

they forgot to run rdev on the kernel image b efore copying it to the oppy

Where do I nd the currrent releases of programs

New releases and new programs are usually announced in composlinux andor

the mailing lists Other than that you more or less havetocheck the FTP sites

Linus plan contains some information ab out the currentkernel Finger Linus

Torvalds finger torvaldsklaavahelsinkifi It is often quite long

Please try to use the current releases if p ossible at least of the kernel and

compiler If you have a problem please rst makesureyou haveacurrent release

it often helps Dont use alpha test releases unless you like problems

How do I get and install HJ Lus b o otable ro otdisk release

Basically follow the directions ab ove for the disk comb o release ie get the

images rawrite them to highdensity DOS formatted oppies b o ot o the b o ot

disk This release do esnt contain userfriendly installation scripts its meantfor

those who can install the images from the disks byhandtheREADMEscontain

instructions on doing this

Some common Problems

What letyp e is the extension z What ab out taz tpzand

tgz I see these les on the archives but I dont knowhowto

unpackthem

Heres a list of common lename extensions on the archives

tar Tap e ARchive created with tarTo unpacktyp e

tar xvf Archivetar

If you cant access the les b ecause you are not the owner try

tar xvof Archivetar

Or you can do

tar tvf Archivetar

to get an index listing of the tarle

Z This le was compressed with compressYou can uncompress it with uncompress ArchiveZ

Some common Problems

or

zcat Archive file

z gzip is nowusedbymany archive sites instead of compressifyou dont have

gzip on your system get it To uncompress one of these les use

gzip d fooz

tarZ This archive is compressed so you have to uncompress it b efore unpacking

Its faster an uses less diskspace if you use

zcat Archivetar tar xvf

TZtaz This lenames are made for lesystems that dont allow lenames longer than

characters They are renames tarZ archives To unpackthemyou cant

use zcat or uncompress the normally way b ecause they will add a Z to the

lename Use

zcat Archivetaz tar xvf

instead or

tar xvfz footaz

to unpack it some versions of tar dont havethe z option

shar This le is a shellarchive The archive is a shellscript which will unpackthe

les To extract read the header rst Often you have to delete parts of the

header b efore executing with

sh Archiveshar

uue This archive is converted into bitco de with uuencode The les are bigger

than b efore but you can transfer them via mail To restore the les use

uudecode Archiveuue

diff These les are no real archives They include information ab out dierences

to an old version of a le The program patch uses this information

F This archive is compressed by a to ol from the BSDworld called freeze

zip An archive format imp orted from the DOSworld Nowardays its interesting

for UNIX users to o b ecause the Free Software Foundation had made a de

cision to pack their les with this format Thats why there is a GNUZip

program

tpztgz gzipp ed tar le If you have gzip zcat is linked to it so you can do

INSTALLATION AND COMMON PROBLEMS

zcat footpz tar xvf

to unpackit tpz is the old extension all gzipp ed tar les should nowend

in tgz instead

The SLS distribution uses gzipp ed tar les tgz

HowdoImake partitions andor lesystems for Linux

For most Linux installations suchasSLSyoull need at least two partitions one

for swap space used as virtual memory and another for your root lesystem that

is the actual Linux software itself You can also make sep erate partitions for your

usr lesystem etc however the SLS doinstall program at this p oint mounts

your ro ot lesystem for you b efore installing thus you cant have a sep erate usr

lesystem to start out with if you have UNIX exp erience youll b e able to gure

out how to divide software b etween multiple partitions

For most installations simply having one ro ot lesystem and one swap partition

is the b est waytogo

But thats b eside the p oint First thing you need to do is resize the existing

partitions on your drive if any to make space for Linux for example if you have

a DOS partition taking up all of your drive you need to use FDISK under MS

DOS to delete it and recreate it with a smaller size Of course in so doing youll

lose everything on that DOS partition just back it up rst and reinstall after

youve recreated and reformatted the partition Thats life no longer as FIPS

a nondestructive disk partitioner is ALPHA version Jo ey

Nowyou can b o ot up Linux say from SLS or from the b o otro ot disks From

there you use the command fdisk to create partitions for Linux

fdisk drive

where drive is the name of the drive whichyoure installing Linux on Valid

drive names are

devhda rst IDE drive

devhdb second IDE drive

devsda rst SCSI drive

devsdb second SCSI drive

For example to run fdisk on the rst SCSI driveinyour system use the com

mand fdisk devsdaIfyou dont sp ecify a drivenameforfdisk it will assume

devhda

The fdisk command m prints a menu The n command is used to create a

new partition w writes the partition table and exits fdisk q quits without saving

changes The p command displays the current partition table

When creating partitions with fdiskyou may get an error message to the eect

of Warning Linux cannot currently use xxxxx blocks of this partition

This simply means that the Minix lesystem typ e which is the default is limited

to lesystems which are megs in size You can ignore this warning b ecause when

creating your lesystems you can use one of the other lesystem typ es ext ext

or xia whichhave a size limit of terabytes

Just keep in mind that if you create a partition larger than megabytes then

you cannot use the Minix lesystem typ e mkfs when creating the lesystem see

b elow You must use the ext ext or xia lesystem typ e instead

Some common Problems

Extended lesystem do es NOT equal extendedpartition An extended partition

acts as a container for logical partitions whichisnicebecauseyou can havemany

logical partitions inside the extended partition and only use up one of your four

available primary partitions on the drive You can have only one extended partition

per drive Extended partition cant hold data on their own you need to create

logical partitions on top of it rst They are numb ered devhda devhda and

so on

The extended lesystem on the other hand has nothing to do with extended

partitions Its just the name of another lesystem used byLinux which lets you

have larger lesystem sizes and other features

The TYPE of the partition in the rightmost eld when you use the fdisk p

command do es not matter to Linux However it do es matter to other systems

such as OS Just make sure that your Linux partitions haveatyp e suchas

LinuxMINIX to distinguish it from other systems ie It do esnt matter if you

set the typ e of the swap partition to Linux swap All of your Linux partitions

can use the default typ e LinuxMINIX whichisne

WARNING DO NOT use Linux fdisk to manipulate partitions for op erating

systems other than Linux This means dont use Linux fdisk to delete or create

MSDOS partitions for example Use MSDOS fdisk for this instead Linux fdisk

do esnt prop erly knowhow to create partitions for MSDOS and other op erating

systems

When creating partitions write down the names and sizes of the partitions you

create You need this information later on Use the fdisk p command to display

this information

Once youve got your partitions created you need to reb o ot the system so that

changes to your partition table are picked up Then you need to format the par

titions ie create lesystems on them For your swap partition use the com

mand mkswap partition sizeFor example if you haveaswap partition on

devhda with a size of blo cks ab out megs use the command

mkswap devhda

swapon devhda

This will make the swap space and enable it Swap space is used as virtual

memoryifyou have megs of RAM in your machine and a meg swap partition

you have a total of megs of RAM available for Linux

Tomakeyour lesystems use the correct version of the mkfs program dep ending

on the typ e of lesystem you wish to use

Filesystem typ e Command to create lesystem

Minix mkfs c partition size

Extended old mkefs c partition size

Second Extended mkefs c partition size

Xia lesystem mkxfs c partition size

The Minix and Extended lesystem typ es are older and while more robust are

slower and mayeventually b e phased out The most p opular lesystem typ e used

rightnow is the Second Extended fs typ e mkefs The Minix lesystem typ e is

limited to megs and characterlong lenames Its suggested that you use

either mkefs or mkxfs

For example to create a blo ck Second Extended lesystem on devhda

use the command mkefs c devhda

INSTALLATION AND COMMON PROBLEMS

The c option checks for bad blo cks on the lesystem Apparently mkfs and

mkefs do not actually use the bad blo ck information correctly see QA b elow

Nowyoure ready to install the software For SLS this means just using the

doinstall command see section ab ove For other installations you may need

to mount the lesystems rst Just see the relevant READMEs for information

Whydoesfdisk say Linux cannot currently use XXXX sectors of

this partition

See previous question fdisk is an older program which exp ected all lesystems

to b e Minix fs which limited lesystems to megs You can ignore this warning

b ecause the extfs xiafs and extfs dont have this limit

What do es the message MINIXfs Magic match failed on b o otup

mean

Basically this means that youre trying to mount a nonMinix lesystem as a Minix

lesystem and mount is croaking on it b ecause the typ e is wrong If you use a ro ot

lesystem typ e other than Minix fs ie if you use the extfs extfsor xiafs

youll probably see this message the kernel tries to mount ro ot as Minix then

extfs then extfs and so on every time it fails for one typ e it tries the next

typ e

In most situations this can b e ignored if the kernel is able to mountyour ro ot

partition as any one of its known typ es However if you have the ro ot device set

to the wrong partition for example then the kernel should hang at this p ointand

youll have to use rdev to set it correctly

Linux mkfs do esnt accept the size I give the device although I

doublechecked with fdisk and its correct

Be sure you give the size in Linux BLOCKS bytes not sectors Also

make sure that you have the right partition partitions are numbered devhda

devhda and so on and devhdb devhdb for the second hard drive

DONT use devhda or devhdb as they corresp ond to the entire disk not just

single partitions

Also rememb er that SCSI drives use devsda devsda and devsdb

devsdb and so on for their partitions

HowcanIgetmkfsmkefs to check for bad blo cks

Unfortunately the c option on mkefs do es not work it cannot detect bad blo cks

on the drive and thus if you create a lesystem over a part of your hard drivewith

bad blo cks things will eventually go wrong So you need to generate a bad blo ck

list in a le and use the l option on mkefs so it will ag those blo cks when

making a lesystem

mkefs and mkxfs correctly ag bad blo cks so this only applies to mkfs and

mkefs This is also only needed for older RLL and MFM drives SCSI and IDE

drives havebadblock logic onb oard

How to generate a bad blo ck list Since this is only needed for older drives

and older lesystem typ es ie Minix and extfs just mail mdwtccornelledu

or kircherneurotuwienacat if you need instructions on this pro cedure Your

b est b et is to use mkefs or mkxfs anyway

Some common Problems

Generating a bad blo ck list for mkefs

This item was written by Gerhard Kirchner kircherneurotuwienacaton

Nov

Intro duction

First of all the c option check bad blo cks of mkefs do es not work the

co de used cannot detect any bad blo cks Fortunately there is another option

l file to tell mkefs where the bad blo cks are SCSI and IDE drive

users do not need any bad blo ck management the drive logic do es it for

them However users of old MFM or RLL drives do need it

Where are mybadblocks

Every MFM or RLL drive is tested by the manufacturer and the lo cations of

bad blo cks are usually printed directly on the drive case If you cannot nd

any bad blo ck information on your drive you can use the common disk test

software Norton to checkyour drive and obtain a defect list

Lo cations of bad blo cks are given in terms of cylinder and head co ordinates

Cylinder and head together sp ecify a certain track Some manufacturers are

more sp ecic ab out the lo cation of the bad sp ot within the track but if you

knowhow to use this information you probably do not need to read this guide

So if weknow the track where the bad sp ot sits we declare the entire track

as bad even exp erts do this

What wehavenowisatableoftheform

CYLINDER HEAD

Calculating all bad sectors

Each sector on the drive can b e addressed by three cordinates

Cylinder CYLINDERS

Head HEADS

Sector SECTORS

where

CYLINDERS total numb er of cylinders

HEADS total numb er of heads

SECTORS numb er of sectors p er track

The absolute address of a sector on the disk is then calculated according to

the formula

Abssector H E AD S SEC T ORS C y l inder SEC T ORS Head S ector

We can now calculate the absolute addresses of all sectors of every bad track

on our disk according to

for each bad track given by Cylinder and Head do

begin for Sector to SECTORS do

INSTALLATION AND COMMON PROBLEMS

begin

Abssector HEADSSECTORSCylinder SECTORSHead Sector

end

end

obtaining a list of all bad sectors

Converting absolute sectors to partition relative sectors

Partitions are like separate disks that means that sector counting starts with

for each partition So what wehave to do next is to generate a bad sector

list for each partition wewant to use for linux To do that wemust know

where each partition starts and ends We can get this information from fdisk

When we start fdisk and typ e p to view the partition table the b egin start

and end information will b e given in terms of cylinders When wetyp e u to

toggle the units an then again p we get what we need Start and End of each

partition in terms of absolute sectors Here is what I see on my system I use

my second disk for linux

fdisk devhdb

Command m for help p

Disk devhdb heads sectors cylinders

Units cylinders of bytes

Device Boot Begin Start End Blocks Id System

devhdb LinuxMINIX

devhdb Linux swap

Command m for help u

Changing displayentry units to sectors

Command m for help p

Disk devhdb heads sectors cylinders

Units sectors of bytes

Device Boot Begin Start End Blocks Id System

devhdb LinuxMINIX

devhdb Linux swap

Sector counting as counting always should do starts with The rst

partition b egins with sector one as sector is always the b o ot sector

This is howwe calculate the addresses for one partition

a From the list obtained in section cancel all addresses that are not in

the range StartEnd including limits shown by fdisk

b Subtract Start from each remaining entry

Converting to blo cks

A disk sector has a length of bytes this is the usual size BIOSDOS

can handle Linux groups two sectors to an entity called blo ck A blo ck

therefore consists of twophysical sectors and has a size of bytes I read

Some common Problems

somewhere that larger blo cks will b e supp orted in the future The mkefs

program wants to know the addresses of bad blo cks not sectors So we convert

our partition relatve sector addresses to partition relative blo ck addresses by

dividing bytwo and taking the integer part Doing that we certainly get a

lot of duplicate addresses whichwehave to get rid of so we simply delete

redundantentries

What wehavenow is a list of bad blo cks for each partition mkefs likes to

get this information from a le one address p er line one le for each partition

Automating the pro cess

Doing all the calculations by hand is tedious and error prone So wemay

decide to automate the whole thing We can do everything in dos when we

use the prop er utilities see later

The Input File

We need a single le containing the co ordinates of all bad tracks of one

entire disk Each line of the le consists of two elds the rst of which

is the cylinder numb er and the second is the head numb er These are

the rst few lines of the le for my second disk

An AWK script for doing all the calculations

In the following we presentanawk script that do es all the work for

us We just have to plug in the correct values of the partition and

drive parameters and o wego Iuse gawkzip and sortarc

whichIdownloaded from a simtel mirror Sort is used to removethe

duplicates

the awk script starts here

generates linux bad blocks file starting count with

for partition ONE

for micropolis drive heads sectors

input file cyl head n

stdout abs blocks of corresponding partitionn

BEGIN start

end

sectors

heads

secsectorsheadssectors

if secstart secend

for i isectors i print intsecstarti sort mu

the awk script ends here

Supp ose that our input le is named badtracklst and that the awk

le is partawkthenwe can generate a bad blo ck list for mkefs by

typing the command

INSTALLATION AND COMMON PROBLEMS

gawk f partawk badtracklst badblklst

This is the le we need

Making the le system

What wemust do nowistohave this le accessible for linux during instal

lation There are several ways to do this You can either mountyour DOS

partition and copy the le over to Linux or use mtools

as in mcopy cbadblklst userbadblocks

Nowwe can make the le system In this case the bad blo cks le is in

userbadblocks and the partition were making a lesystem on is devhdb

Were making an extended lesystem with a size of blo cks

mkefs l userbadblocks devhdb

Thats it

Bugs

I only tried mkfs but Im rather convinced that it works with mkefs as well

How can I b o ot Linux o of my hard drive

You need to install the LILO program whichchanges the b o ot sector of your hard

drive to allowyou to cho ose b etweenaDOSoraLinux partition to b o ot from These

programs are provided with most ma jor releases or you can get them sep erately

from one of the FTP sites

As of LILO version there is a quick instal l script available whichshouldmake

LILO installation quick and easy See Section VI I for LILO information You can

also see the LILO QUICKSTARTGUIDE byMattWelsh which should b e available

on sunsiteuncedu pubLinuxdocs

Crip es I tried to install LILO but screwed up somehow and

now cant b o ot anything from the hard drive How can I x this

Simple First you need an MSDOS b o otable oppy with FDISKEXE on it Bo ot

it and run the command

FDISK MBR

which will hop efully restore your hard drives master b o ot record to a standard

MSDOS b o ot record Nowyou can go back and reinstall LILO

When installing SLS I get the error You may have inserted the

wrong disk when putting in the next disk in a series Whats

going on

Each disk has a small le on it whichcontains the name of the disk For example

the SLS a disk has a le on it called diska If it do esnt exist or is named

something else like diskaz then just create itrename it

Also the last disk in a series ie the a disk b disk etc has a le on it

called installendYou need this le as well These les are used by the SLS

doinstall program to keep track of where it is

Some common Problems

When installing SLS the installation script creates a boot oppy

for me to b o ot Linux with HowcanImake these myself or x

problems with them

The SLS install scripts just copythekernel image to a blank oppy for you to b o ot

Linux with When SLS is installed a copyofthekernel is stored in the le Image

on your hard drive since you use the kernel on yourbootoppy to b o ot this le

isnt used during the b o otup pro cess unless you install LILO

Tomakeabootoppyyourself you must do two things

Run rdev aka rootdevonthekernel in the le Image to set the ro ot

partition it uses For example if your ro ot partition is devhda run the

command

rdev Image devhda

Copythekernel to a new oppyYou may need to DOS format the oppy

rst who knows why Then run the command

cp Image devfd

if the oppyisindevfd the rst oppy drive You can use a command

like

dd ifImage ofdevfd bsk

as well they should accomplish the same thing

Michael L Kaufman kaufmandeltaeecsnwuedusays Formating the oppy

lays down the tracksector information If you have a completely unformated oppy

dd can fail in interesting ways

Many folks have problems with their SLS b o ot disks made in this manner b ecause

they forgot to run rdev on the kernel image b efore copying it to the oppy

How can I set the default video mo de used byLinux Do I have

to recompile the kernel to do this

No you dont have to recompile the kernel Just use rdev with the v switchtoset

the video mo de in the kernel either on your hard drive if b o oting from LILO or

on your b o ot oppy For example use if b o oting with a oppy disk

rdev devfloppy

This tells you the default ro ot device suchas

Root device devhda

If b o oting o the hard drive then it must b e done on the b o ot device whatever

that maybedevhdax devhdbx devsdax

Note that it is not the Image le which needs to b e changed but the BOOT

device I found out after much hassle and frustration

For swap device use s for video mo de v for ramdisk size r rdev v devfloppy

INSTALLATION AND COMMON PROBLEMS

shows the current video mo de The choices are can b e found out from rdev h

Normal VGA

Extended

Ask on b o otup

mo de as selected bykeypress on b o otup

mo de

mo de

To set b o otup from hard disk Image with video mo de do

rdev v Image

To reset to asking on b o ot do

rdev v Image

Therefore it is changeablereversible and do es not necessarily require recom

piling the kernel

HowelsecanIuserdev

rdev is very handy and also is used to set the ro ot and swap partitions ramdisk

size and more in a compiled kernel It means you dont have to recompile the

kerneltomake these changes Use rdev for a list of options

When I login as nonro ot I get tons of errors ab out shellinit

permission denied Also some things work as ro ot but not as a

normal user Whats the deal

This is a really common problem which comes from not having p ermissions set

right and a misunderstanding of some UNIX terms Some installations won t

have the le p ermissions set correctly on the various directories that normal users

ie nonro ot will use For example if your user directories are in homethen

home must b e of mo de rwxrxrxor chmod home Also a home directory

must b e owned by the user who it b elongs to ie homemdw must b e owned by

mdw just chown mdw homemdw for example Also the p ermissions must b e set

correctly for the ro ot directory Heres a list of p ermissions that should work

although you can use other p ermissions these are just suggestions that shouldnt

cause trouble

p ermissions chmo d owner le

rwxrxrx root

rwxrxrx root home

rwxrxrx mdw homemdw

rwxrr mdw homemdwprofile or other startup les

rwxrr mdw homemdwfoo normal les

In most cases the group of the le do esnt matter but in general most les are

set to group root except for binaries which are group bin and so on and user les

are set to group user or whatever group users are in

In general you want directories that everyone can access to b e rwxrxrx chmo d

Files that everyone can read are rwxrr chmo d and programs that

everyone can run are rwxrxrx chmo d

Thus bin usr usrbin etc and so on should all b e rwxrxrx All

binaries should b e rwxrxrx unless of course theyre setuid programs For

UNIX newbies setuid programs run under the user id of the owner thus programs

owned byrootwhichhave a p ermission of rwsrxrx note the s run as ro ot with

Some common Problems

ro ots priveleges So b efore changing p ermissions on a program check to see if its

setuid rst Tomake a program setuid prep end a to the p ermissions you giveto

chmod ie rwsrxrx is chmod

Heres a list of common uses for p ermissions

p ermission eect on les eect on directories

read lets you lo ok at a le lets lets you see whats in the

you run a shell script directory with ls

write lets you edit a le or copy lets you delete a le from



over it the directory

execute lets you run a binary or lets you cd into the

shell script directory

Ihave the previous Linux version how can I upgrade it

If youvenever done this b efore get the kernel sources from your nearest FTP site in

a le named something like linuxtarZ and unpack them into usrsrclinux

As of Linux there is a script to auto congure your kernel and you need at least

GCC version You unpack these sources in usrsrclinux Make sure you

have the logical links for usrincludelinux and usrincludeasm as describ ed

b elow

First run make config and answer the various questions Then edit usrsrc

linuxMakefile to set the ro ot partition keyb oard etc Finallydoa make dep

to set dep endencies VERY imp ortant and nally make Assuming you have

GCC installed correctly the kernel should compile and youll b e left with a new

Image whichisyour new kernel if you b o ot from harddrive copy the Image to

wherever you told LILO to lo ok for it or if you b o ot from oppy dd the Image

to a new oppy Makesurethatyou run rdev on the Image to makeitlookfor

the correct partition for your ro ot lesystem if you sp ecied this correctly in the

Makele you dont need to do this

Makesureyou read usrsrclinuxREADMEwhich explains in detail what to

do when recompiling the kernel

If you HAVE done this b efore you can just apply the source patches to your old

sources and then recompile ie you dont have to get the entire kernel sources all

over again Use the patch program to do this Before you recompile the kernel do

a make dep to set dep endencies and a make clean

Where is usrincludelinux and usrincludeasmorWhywont

the kernel compile correctly

The les usrincludelinux and usrincludeasm are symb olic links to

usrsrclinuxincludelinux and usrsrclinuxincludeasm resp ectively

In other words all of the Linux include les are actually under usrsrclinuxinclude

but to access them you need twosymb olic links in usrinclude

usrincludelinux usrsrclinuxincludelinux

usrincludeasm usrsrclinuxincludeasm

Tomake these run the commands

ln sf usrsrclinuxincludelinux usrincludelinux

ln sf usrsrclinuxincludeasm usrincludeasm

NOT the other way around If you donthave these links then manycompi lations will surely fail

INSTALLATION AND COMMON PROBLEMS

HowcanIupgradetothenewest version of GCC

See section on GCC for more information but essentially all you need to do

is FTP to sunsiteuncedu or one of the other Linux FTP sites and lo ok in

pubLinuxGCCYoull see a number of tarZ les there often abbreviated TZ

or tpz The names change from time to time you need to get the compiler often

in a le suchasgccTZ header les and library les At this p oint the compiler

lives in usrbin the compilers setup les are under usrlibgcclibilinux

and the libraries shared jump table and static are all in usrlib Its all very

straightforward once you actually unpack the tar les and everything falls into place

Whats the deal with these things called jump tables

Theres more information in sections and but to b e brief There are three

kinds of libraries for Linux As of gcc v they all livein usrlib The les

are

usrliba static nonshared libraries use gcc static

usrlibca classic shared lib stubs use gcc nojump

usrlibsa jump table shared lib stubs use gcc jump

There is an older form of the shared libraries classic shared libraries whichis

no longer widely used Nonetheless you may run across it from time to time

When you compile a program dep ending on the options you give gcc jump is

the default it will link it against one set of these libraries The static libs contain

all of the co de and thus makeyour executable very big no shared co de is used The

classic shared libs are actually stubs which reference the shared co de in

liblibcsoVERSION where VERSION is a numb er like

liblibcsoVERSION is a le whichcontains the actual co de of the library which

is accessed at runtime byyour executable The jumptable library stubs are also

shared libs but they are built in suchawaythatyou can upgrade the liblibcso

VERSION le without having to recompile the programs that use it

So when wesay uses Jump Tables version we mean it uses the actual library

itself liblibcsoTo compile programs that use jump tables version

you need the rightversion of usrlibsa installed but you dont need them to

RUN programs that use jump tables

However programs that are compiled to use for example jump table version

in the le liblibcsowont workifyou only have libcso in

stalled Theyre only backwardscompatible If you get errors ab out cant nd

liblibcso then the executable youre using is lo oking at runtime for a

jump table version that you dont have Basically youre safe if you have the most

recentversion of the

liblibcsoVERSION le installed whichisfoundonsunsiteuncedu pub

verbLinuxGCC and comes with the GCC stu

You should always have a symb olic link with the ma jor version number of the

library in lib b ecause thats whats actually read For instance if you have

liblibcso installed then you need the symb olic link

liblibcso liblibcso

Make this with the command ln s liblibcso liblibcso

Some common Problems

How to upgrade jump tables Without hanging my system

Be careful If you upgrade your liblibcsoVERSION le and either removethe

symlink or delete the old libcsoVERSION le b efore the new one is in place and

the link p oints to it then more than likely all of your binaries like cp mv ls and

ln use the library so theyll all stop working once you kill the link or the library

le So to upgrade the le copythenewversion to lib and switch the link in one

step with a command suchas

ln sf liblibcsoNEWVERSION liblibcso

where NEWVERSION is the new version of the library youre installing This will

switch the link in one step and everything should work You just cant copyover

the old le b ecause the old version is in use by cp mv and so on

How can I b e sure I wont b e writing over anything imp ortant

Ihave to use DOS on mymachine and I dont want toloseany

les

Backupeverything Just in case Then write some easily recognizable pattern

to the partition you have reserved for Linux using some DOS to ol You can then

use cat devhdX under Linux to examine which of the partitions you used

I just reb o oted mymachine and nowLinux dies with a panic

trying to free unused inode Whats going on

You probably forgot to sync b efore reb o oting which stores on the disk physically

the contents of the kernel buers You can either run fsck on the partition to TRY

to correct the problem it might fail or remkfs and reinstall the software on

that partition

The b est waytoshutdown your system is the shutdown command Toshutdown

and reb o ot the system use

shutdown r now

or substitute a numb er of minutes in place of nowLeaveother switchifyou

just wanttoshutdown and not reb o ot

You can now use the reboot command which syncs all disks shuts down the

system and reb o ots it

Can I use b oth OS and Linux on mymachine

Yes See the following two QAs ab out getting your OS Bo ot Manager to work

But b e warned IF YOU USE OS DO NOT USE LINUXs FDISK

TO CREATE LINUX PARTITIONS The problem is with a bugfeature in

OSs fdisk that tries to correct errors in partitions that it do esnt like Linux

partitions included The solution makeyour Linux partitions with OSs fdisk

then use Linuxs fdisk to change the partition IDs to the rightvalues this is

selfexplanatory with Linuxs fdisk

If you made your Linux partitions with Linuxs fdisk and OS sees them it

will think they have errors and end up trashing them

INSTALLATION AND COMMON PROBLEMS

I use OSs Bo ot Manager on my hard drive How can I get it

to recognize Linux

To do this install LILO on your Linux ro ot partition NOT on your hard drives

master b o ot record The lilo command for this would b e if devhda is your

Linux ro ot partition and your Linux kernel is in vmlinux

etclilolilo c b devhda v v vmlinux

Then use OSs fdisk to add it to the Bo ot Manager

Thanks to Thomas Bro dt brodttsminnieinformatikunistuttgartde

When I run Linuxs fdisk it says OPUS for OSs Bo ot Manager

partition Is this right Whats OPUS

Its correct OPUS is BBS software that used partition typ e xA long b efore OS

Why do esnt the termcap entry for VT match the entry for

a VT in a sun termcap

Iwould like a complete termcap but if there isnt one what dierences do I need

to know ab out with regards to Linux if I havetowriteonemyself For example I

tried using the h entry from the sun termcap and it didnt work

Thats b ecause our vt emulation isnt completely done It varies in small

ways from an actual vt You would have to ask someone who worked on it what

the actual dierences are

There is no includetypesh

Thats b ecause its called systypesh

What are the dierences b etween the dierent system inits

And will they work with the gettyps and shadow password pack

ages

Init just do es whatever its told to do in etcinittabSogettyps or any getty for

that matter will work with anyinitifinittab is set up correctly As far as shadow

passwords go thats logins resp onsibility to get correct so it do esnt matter what

init you use

I tried following the do cumentation for TCPIP but I dont

knowmuch more than the basics for networking Currently I just

want to telnet to myself When I try I get a general protection

then a seg fault followed by named No root nameservers

for class

Is this stu part of the kaq package or do I need to get that also

Try reading the Net FAQ It was up dated recently and should help a lot I

currently can Telnet to my Linux b ox from scho ol through the term program and

had no problems setting up the networking stu

Some Classical Problems

Kernel

While running du IgetKernel panic free inode bit already

cleared Also du pro duces a ENOENT error for all the les in certain

of my directories Whats going on

These are b oth consistent with a bad lesystem Thats relatively easy to pro duce

by not syncing b efore reb o oting as Linux usually has MB of buer space held in

memory unless you have MB RAM in which case the buers are only ab out

MB Also Linux do esnt do anything sp ecial ab out the bitmap blo cks and as

they are used often those are the thing most likely to b e in memoryIfyou reb o ot

and they havent b een written to disk

Just do an fsck on the device the a ag might repair it otherwise the only

thing to do is to reinstall the lesystem from the Images

A sync is done only every seconds normally standard UNIX practice so do

one by hand some p eople think you should do syncs after each other but thats

sup erstition or by logging out from the startupshell which automatically syncs

the system Unmounting a lesystem also syncs it but of course you can never

unmount ro ot

Another sad p ossibilityisthatyou havebadblocks on your disk Not very

probable as they would have to b e in the ino detables just a couple of blo cks in

size Again there arent programs available to read a disk for bad sectors and put

them in some kind of badsectorle On IDE drives this is no problem bad sectors

are automatically mapp ed away

Drives

How can I partition my harddrive to use Linux

See section of the FAQ on installation

I heard something ab out repartition a hard disk without deleting

everything on it any clue

Its not a program but a partition pro cedure which requires

a partitionning program

a sector editor

The pro cedure itself can b e found at least in digest Vol

What must I do to mkfs a oppy

Blo cks are of size K so oppy is blo cks The oppy has to b e formatted

b efore this will work eg fdformat can do this from within Linux

Ihave some trouble with taruntar

The tar provided on and latter is Pax dont know for which do not accept

the z ag You can download the GNU tar at tsx in publinuxbinariesusrbin

SOME CLASSICAL PROBLEMS

I can do this as ro ot but not as nonro ot is it a bug

Except for an early make utility the problem is caused by an incorrect p ermis

sion ag The most common problems are ab out tmp which should b e and

devttys which might b e So as ro ot do

chmod tmp

chmod devttys

du rep orts twice the size showed with ls l is it a bug

No it is not the rep ort is bytes multiple due to POSIX requirement for KB

you just add the k ag You can add a du function in your profile whichdoes

this automatically something like du usrbindu k

Sometimes I get mount cant open lock file what do es this

means

This can happ ened for two reasons

You try to mount something as nonro ot In that case you can either retry as

ro ot or set the setuid bit to mount as follows

b e sure that mount b elongs to ro ot if not do chown root binmount

set the setuid bit with chmod us binmount

BTW you have to do the same with umount in order to b e able to unmount

Remark that it is NOT safe to allowanyone to p erform mountumount

You are ro ot mountwants to op en etcmtab and etcmtab the rst

one for reading the second as lo ck le If there is already a mtab remove it

This can happ en if you used once gnuemacs on mtab

To forbid that case just add the following entry in your etcrc le

rm f etcmtab

When I try mount devhd user I get error

Be sure that your mount p oint user do es exist if not p erform a mkdir user

BTW the error numb ering is explained in usrincludeerrnoh

Since I have upgrade myLinux kernel ps wont work anymore

why

Eachtimeyou upgrade or recompile the kernel you should p erform a ps U U

is for up date the etcpsdatabase

Every time you b o ot a new kernel you havetodoaps U to up date the

psdatabase after doing this you can remove the system le or even have to patch

the pssuite

BTW sometimes a patchmakes recompiling ps necessary Sometimes you do a

make clean

NOTE As of there is now a ps package which uses the proc filesystem

This is a metalesystem whichhasanentry for each pro cess thats running create

the directory proc and do a mount t proc proc proc to see it or else add

the following entry in your etcfstab

Drives

none proc proc

You can get the procps package from tsxmitedu in publinuxBETAprocps

The nice thing ab out this is you dont have to upgrade it for every kernel version

and thus ps U is meaningless if you use procps

MKJ wrote in cola

tsxmitedu publinuxBETAprocpsprocpstarZ is the lat

est version of procps Most of the rep orted bugs ie all I can remember

at the moment have b een xed a man page for ps has b een added

and several new programs have b een added andor xed A list of the

stu provided

ps

free a real one from Linus

uptime this needs worktobegoodmineisahack

tload a hack but who cares

xload from drew

fuser p erl script prototyp e hop efully the real thing in a later release

Since Linux b I havea lotofcorelesallover my disk How

can I sweep them away

Use the following command

find name core exec rm

BTW think twice b efore using this command there might b e a John Core user

on your system this command will erase his mail

If you never want to see another core le put this line into your etcrc le

for a user

ulimit c

for a csh or tcsh user

limit coredumpsize

I can only login as rootisitnormal

No add rm f etcnologin in your etcrclocal le

Sometimes my Linux virtual console get messed up when I cat a

binary le The characters shown are ab ove ascii any clue

J Stuckey stuckeymrcnextcsouiucedusays

Its a vt thing I think

echo VO

should x it ControlV is the literalnext character that stty rep orts for me

and ControlO is the magic character that returns you to livability

You can also use

echo VESCc

which also clears the screen

LINUX AND DOS

Linux and DOS

This section is cowritten by Mark Komarinski A V Le Blanc and MM Corsini

The ocial maintainer is Mark if you have any questions critics mail him at

komarimfcraftcampclarksonedu

Last Up date March

General

Is is p ossible to access DOS from Linux

Yes

The MTo ols package allows you to access DOS les it emulates the DOS

commands CD COPY DEL DIR TYPE and others

Since approximately version of the kernel you can mount DOS le sys

tems as part of your Linux directory tree pro

A DOS emulator is in alpha test which will allow some DOS programs and

utilities to run under Linux

MTo ols

Why use mto ols if you can just mounta drive

Mto ols is go o d if you wanttodosomethingquicklyFor example if you wantto

get directories on a bunch of oppies The mount pro cedure requires you to mount

the drive get a directory then umount it Mto ols lets you get the directory with

one command

Mto ols is really fast when copying disks I mount the SLS directory of my SUN

to my Linux b ox and use mcopy to get the les on the disks times faster than

using xcopy under DOS

HowdoIgetthemto ols package set up correctly

The mto ols package is available in source form on most Linux ftp sites The most

recentversion As of Sept is mto olsn and there are linked binaries and

library alesavailable as well for example as part of MCC interim releases

of Linux In the n release of mto ols there is only one executable binary which

works dierently dep ending on its name you can create hard or symb olic links to

it named mcopy mdel mdir mtype etc this is how the Makele in version n of

mto ols do es it and it saves several hundred kilobytes of disk space Finallyyou

need the correct information in the le etcmtoolswhich is describ ed b elow

Mto ols also comes with the SLS release of Linux

What is the format of the le verbetcmto ols

A complete entry in the le etcmtools contains the following elds drive device

fat cylinders heads sectors oset Two examples of entries from etcmtools are

A devfd

C devhda

which denes the DOS disk A as accessible through the device devfdhaving

a bit FAT cylinders heads and sectors p er track DOS disk C is

accessible through the device devhda has a bit FAT and its geometry is

DOS lesystem

simply that of the hard disk where it lives The last three numb ers can b e if

you wish this allows mto ols to try to gure out the disks geometry itself and

p erhaps to fail A bit FAT is common for oppies but may o ccur in small hard

disk partitions A bit FAT is common for hard disks This is an extract of my

etcmtools le

A devfd Meg autodetect

B devfd Meg autodetect

C devhda st partition of my Disk

Where can I nd out more ab out mto ols

There are two detailed README les in the mtoolsn distribu tion These les

treat compiling and using mto ols There is a le READMEmtools which treats only

using mto ols which is a part of the MCC interim version of Linux

This sounds me likea chicken and eggs problem how can I install

the mto ols package at the very b eginning

You havetousetherawrite stu or the mount pro cedure

DOS lesystem

How do I use the DOS le system

The DOS le system is part of the kernel If you haveakernel of level or ab ove

and an appropriate mount command typ e

mount t msdos o convtext devhda dos

to mount the partition devhda as an MSDOS le system on the directory

dosYoull need a recent mount command from at least release or later of the

ro ot disk Recent mount commands also accept the options convbinarytextauto

default is binary to sp ecify that text endoflines in DOS les are to b e converted

to UNIX endoflines by omitting carriage return characters in no cases binary

or in all cases text or in cases that dont havewell known binary extensions eg

EXE or COM auto

When I mount an MSDOS disk I get two lines of what seem

to b e error messages and the message No bmap supp ort Is my

disk bad

No Since the dosfs is still in ALPHA mo de the two lines are used for displaying

information ab out the disk that was mounted just in case you have problems The

No bmap support message means that you cannot run Linux programs from that

disk This has b een xed in the latest release alpha

Iwant to use the DOS le system with either convbinary or

convautobutIwanttoconvert text les from DOS to UNIX

format or from UNIX to DOS format

Use the utility todos fromdos which comes as part of the dosfs package currently

Sept in released in version or use the ip utilityby Rahul Dhesi

LINUX AND DOS

Where can I nd out more ab out the DOS le system

There is a README le included in dosfsXXtarZ the currentvalue of XX is

and an abbreviated version of this in the MCC interim package

DOSEmulator

What ab out the dos emulator dosumu

Dosemu is in alpha testing now so it is very unstable and crashes easilySome

programs such as earlier versions of Turb o Pascal TP to o seem to work ne

but other programs suchasdir p will crash the emulator

Lo ok in your favorite FTP site for the dosemukitFor a semicomplete list of

programs that do and do not work under the emulator get the le pubLinuxdocs

emusucctxt at sunsiteuncedu or tsxmitedu

Ihavea Stacker volume on myharddrive Can I access that

Yes but you will have to do that through the dosemu program For more informa

tion on it check out the le pubLinuxdocsstackerdoc at sunsiteuncedu

Other le systems

How ab out OS HPFS partitions or MacIntoshAmiga oppies

Can I mountany of them

There is no supp ort for any of those lesystems yet

Some guys are working on the amigaffs the Amiga FLoppy File System Lo ok

out for this le

Additions

Could someone explain how to use rawrite

Well rawrite is a DOS util which write sequential sector of a formatted diskoppy

When a oppy has b een rawritten you can under Linux untar it use x v z and

f ags As an example

under DOS use rawrite

rawrite

source kermitz

destination a

b o ot under Linux and p erform a tar

tar zxvf devfd

tar zxvp devfd

You DO NOT NEED TO MOUNT a rawritten disk

What is astarZ

Its the p ort of Bruce Evans minix assembler you need it to b e able to recom

pile Linux at your convenience In fact this is ONLY used for bootsetupS and

bootbootsectS they create x REAL mo de co de

Turb o Microsoft Assembler wont compile the Linux b o ot co de

In fact some of the op co des in these les lo ok completely unfa

miliar Why

The Linux b o ot co des are written in Bruce Evans Minix assembler whichhas

the same op co des as the original Minix assembler p orted to Linux get astarZ

Anyway there are a few dierences b etween these and normal DOS assemblers

Miscellaneous Hints

This section is maintained by Matt Welsh mdwtccornelledu Please mail me

if you haveanychangesup datesquestions Thanks mdw

Sp ecial gcc information are lo cated in section A sp ecial section is devoted to

it since its the compiler of Linux I have subsectionned this part in subsections

Misc Information Ma jorMinor Information and SerialInformation

Misc Information

It seems that p orted on Linux dont run correctlywhatdoI

do ab out rep orting bugs

Its p ossible that either the program itself has a bug or that Linux has a problem that

this program brings out But rst check that the size of the les corresp onds

that of the less on the FTP sites where its available If theyre dierent either

you downloaded them incorrectly ie you forgot to turn on bin or who ever put

them on the FTP site uploaded them incorrectly

If thats not the problem then p ost to composlinux asking ab out the pro

gram to verify that it is a bug PLEASE when p osting p ossible bug reports include

all error and output information from runningcompiling the program Just saying

it doesnt work isnt very helpful Also mention your sp ecic setup Linux version

GCC version etc Some of these things dep end on running under certain versions

and you mayhave missed that information

Note that my mllinuxbugsdgrtpdgcom bug rep orting list has b een phased

out It turns out that Linux has so few bugs most of which are resolved on the

newsgroup or through Linus b efore I can accumulate them and p ost In short

if theres a bug in Linux or in Linuxp orted software it will usually b e xed in the

next patchlevel or version

Has b een p orted to Linux

First check out the FTP sites and read the monthly INFOSHEET as well as the

new Linux News and the METAFAQs all of which are either available on the

FTP sites andor p osted to the newsgroup as theyre written Also checkoutthe

Linux Project Registry p osted to the newsgroup and on the FTP sites which lists

ongoingcurrentLinux pro jects Also lo ok in the old Linux digests and mailing

list archives kept on tsxmitedu and nicfunetfi Also see if theres a



GNU version of the program youre lo oking for which are available everywhere

Since Linux uses GCC as its native compiler most GNU software p orts directly to

Linux without problems If all else fails ask on the mailing list or newsgroup if the

program is p orted and where its available



GNU stands for GNUs Not Unix which b esides b eing a recursive acronym is a pro ject

started bytheFree Software Foundation the FSF to write a freely distributable version of UNIX

The GNU kernel is named HURD and is based on Mach It is currently b eing written and is not

yet done Many of the GNU utilities however are completed and are much more functional than

the original Unix utilities Since they are freely available Linux is using them as well

MISCELLANEOUS HINTS

Ive p orted to Linux what should I do to add it in the stan

dard distribution

First read the previous section then talk to the maintainers of the various releases

MCC interim SLS and so on ab out including your program with those releases

The b est waytomake programs available to the rest of the world is to upload

it to one of the Linux FTP sites suchastsxmitedu pubincoming or

sunsiteuncedu pubLinuxIncoming

BTW Whenever you submit binaries please think that if you link them with

shared libraries this might cause problems for those who gasp dont havethe

shared libraries installed You can either link them using static and if someone

wants to build a shared version on their own machine they can get the sources

whichyou should also makeavailable and build it themself Or else provide the

shared lib

IwanttoporttoLinux what are the ags

Recall that Linux implements subset of SYSV and POSIX so DUSG and DPOSIX

work in general

NOTE SIGBUS is not there and can b e safely commented out in general

NOTE see section for more details

MinorMa jor Information

This section is maintained byRick Miller any comments suggestions remarks

should b e mailed to him at rickeeuwmedu

Last Up date April

What are the Ma jorMinor device numbers

This is a list of the device names along with Ma jor and minor numb ers which

the Linux kernel may currently recognize I say may b ecause some of them may

require patches to your kernel others must b e conguredin using the Linux kernels

make config routine b efore compiling

My profuse thanks to all the writers of device drivers for Linux and to all those

patient folks who to ok the time to explain their devices to me May they b ecome

obscenely rich Until then I hop e this list will help preventdriver collisions and

p erhaps lend a clue to a newbie or two

IF YOU WANT ANY CHANGES OR ADDITIONS TO THIS LIST TELL

ME

DEVICES NOT LISTED HERE SHOULD USE MAJOR NUMBERS ABOVE

UNTIL ALLOCATED A MORE PERMANENT NUMBER IN THE LOWER

RANGE I suggest using a moreorless random number to avoid the chance of

collisions with any other exp erimental drivers

TO HAVE MAJORMINOR NUMBERS ALLOCATED OFFICIALLY FOR

YOUR DEVICE DRIVER SEND EMAIL TO rickeeuwmedu Ma jor Devicees

MinorMa jor Information

Value Name Typ e Used for

Unnamed unknown for pro cfs NFS clients etc

Memory character ram mem kmem null p ort zero core

Floppy blo ck fddhDHfg

ATDisk blo ck hdad

Tty character ttys and ptys

Dialout character tty cua

Parallel character par lp

Unused

SCSIDisk blo ck sdah

SCSITap e character nst or nrmt

Mouse character logibm psaux inp ortbm atibm mouse

CDROM blo ck scd

QICTap e character rmtfgtapefdresetg

XTDisk blo ck xdab

Audio character audio dsp midi mixer sequencer

Joystick js js

So cket character net arp

AF UNIX character unix

AF INET character inet ip icmp tcp udp

WEdriver character we

DPdriver character wd ec ne

SonyCDROM blo ck sonycd

nd IDEAdapter blovk hdab

Mitsumi CDROM blo ck mcd

Link Interface character

Breakdown of minors byMajors

Unnamed Minors

Memory

devram a BLOCK device RAMdisk

devmem

devkmem

devnull

devport

devzero

devcore like devmem but in corele format for gdb

Floppy Minors are drivetyp e where drive AD oppy and

typ e is

Auto detect

k on DD

M on HD

k on DD

k on DD

k on HD

k on HD

M on HD

MISCELLANEOUS HINTS

Value Device Usage

devfd Auto detected rst oppy

devfd Auto detected second oppy

devfd Auto detected third oppy

devfd Auto detected fourth oppy

devfdd k on DD in rst drive

devfdd k on DD in second drive

devfdd k on DD in third drive

devfdd k on DD in fourth drive

devfdh M on HD in rst drive

devfdh M on HD in second drive

devfdh M on HD in third drive

devfdh M on HD in fourth drive

devfdD k on DD in rst drive

devfdH

devfdD k on DD in second drive

devfdH

devfdD k on DD in third drive

devfdH

devfdD k on DD in fourth drive

devfdH

devfdD k on DD in rst drive

devfdH

devfdD k on DD in second drive

devfdD

devfdD k on DD in third drive

devfdH

devfdD k on DD in fourth drive

devfdH

devfdh k on HD in rst drive

devfdh k on HD in second drive

devfdh k on HD in third drive

devfdh k on HD in fourth drive

devfdh k on HD in rst drive

devfdh k on HD in second drive

devfdh k on HD in third drive

devfdh k on HD in fourth drive

devfdH M on HD in rst drive

devfdH M on HD in second drive

devfdH M on HD in third drive

devfdH M on HD in fourth drive

Naming go es like this

fddrivemediasize

where drive Corresp onds to DOSs AD

mediafdhDHg dDouble Density diskette

hHigh Density diskette

DDouble Density diskette

HHigh Density diskette

sizefg kilobytes

Floppies are assumed to b e doublesided DS and drives are assumed to b e

highdensity devices

ATDisk For IDE MFM and RLE drives and controllers

MinorMa jor Information

On the rst ATcontroller card

devhda The whole rst HD including its MBR

devhda

devhda Primary partitions on the rst hard drive

devhda Extended partitions on the rst hard drive

devhdb The whole second HD including its MBR

devhdb

devhdb Primary partitions on the second hard drive

devhdb Extended partitions on the second hard drive

On the second ATcontroller card

devhdc The whole third HD including its MBR

devhdc

devhdc Primary partitions on the third hard drive

devhdc Extended partitions on the third hard drive

devhdd The whole fourth HD including its MBR

devhdd

devhdd Primary partitions on the fourth hard drive

devhdd Extended partitions on the fourth hard drive

Notes BE VERY CAREFUL WITH the four whole drive devices hda

hdb hdcandhdd These four devices emb o dy the entiredrivenot

just one partition The only things that use them are things that need

to readchange the partition table like fdisk

Linux do esnt order anything It p erceives partitions in the order in

which they app ear in the partition table Thus devhd mayfollow

devhd in the cylinder numb ering

The names of the hard drives are not the same as under Minix

Tty

devtty This is the currently active Virtual Console

devtty Sp ecic virtual consoles

devttyS Serial p orts dialin mo de

devptypsf PTY Masters

devttypsf PTY Slaves f abcdef

Notes Notes NOTICE THE NEW NAMING FOR SERIAL LINES Serial

lines will b e named either tty or cua See Ma jor followed by

the onedigit number of the board the line is from and the number of the

line on that b oard The four default lines are considered to b e on b oard

so what DOS calls COM should nowbeknown as devtty

or devcua

For more information on the use of multip ort b oards read the do cu

mentation which accompanies the serial patches

There are several constants set in the kernel sources whichcanbechanged

to compile a more customized kernel Theyre found in usrsrc

linuxincludelinuxttyh

NRCONSOLES The numb er of virtual consoles

NRSERIALS The numb er of serial lines

Dialout

devtty the ttythatowns the pro cess calling it

devcua Serial p orts dialout mo de

See Ma jor for new naming convention

MISCELLANEOUS HINTS

Parallel Parallel printer p orts Increasable in includelinuxlph

devlp

devlp Same as MSDOSs LPT on mymachine

devlp

Notes The numb er of line printers is dened by LPNO which is found in

usrsrclinuxincludelph

Even if you only have one printer p ort Linux may still call it devlp

rather than devlp Watch during b o otup to see how it recognizes

your printer p ort

Unused rst come rst serve This ones getting old No minor numb ers are

yet assigned Its not even in the source co de Mayb e it never will b e

SCSIDisk Minors numb ers are DriveP ar tition where Drive is the

numb er of the physical drive in order of detection and Partition is as follows

is the whole drive

are the DOS primary partitions

are the DOS extended or logical partitions so

devsda The rst detected SCSI drive

devsda

devsda Primary partitions on the rst SCSI drive

devsda Extended partitions on the rst SCSI drive

devsdb The second detected SCSI drive

devsdb

devsdb Primary partitions on the second drive

devsdb Extended partitions on the second drive

devsdc The third detected SCSI drive

devsdc

and so on

SCSITap e

devst First detected SCSI tap e drive rewindonclose

devst Second detected SCSI tap e drive rewindonclose

devnst First detected SCSI tap e no rewindonclose

devnst Second detected SCSI tap e no rewindonclose

Mouse MGR may require that devmouse be linked to one of these

NOTE THE CHANGES TO DIFFERENTIATE MOUSE TYPES Please

implement these in the distributions

devlogibm Logiteccompatible bus mouse

devpsaux PS mouse p ort may not work on some laptops yet

devinportbm MicroSoft InPort bus mouse

devatibm ATI XL bus mouse

CDROM

devscd The rst detected SCSI CDROM

devscd The second detected SCSI CDROM

Theres not much more to it than that says Eric Youngdale

QICTap e I really dont havemuch info on this one

MinorMa jor Information

devrmt QIC

devrmt QIC

devtape

devtaped It has something to do with b eing

devtapereset for resetting only

XTdisk XT bit hard disk controller devices

Minor numb ers are assigned in the same manner as for the normal ATtyp e

Hard Drive devices devhd

Audio

devmixer Mixer and Control Device

devsequencer FMsynthesizer and Midi

devmidi for future use

devdsp Digitized voice DACADC

devaudio Reserved for compatibility with Sun

Joystick

devjs LeftRight joystick

devjs RightLeft joystick

So cket

devnet Generic layer so ckets

devarp Address Resolution Proto col ARP

AF UNIX

devunix AFUNIX proto col layer

AF INET

devinet AFINET proto col layer

devip Internet Proto col IP

devicmp Internet Communications Management Proto col ICMP

devtcp Transmission Control Proto col TCP

devudp Proto col UDP

WEDriver

devwe WE driver

DPDriver

devwd DP driver WD

devec DP driver C

devne DP driver NE

SonyCDROM

devsonycd Sony CDU CDROM I think

nd ATCntrlr

Minor numb ers are like those of the primary ATDisk controller THIS MAY

WORK FOR HARDCARDS Note the in the device name for the sec

ondary controller This is b ecause wemayeventually wish to change the

names of the primarycontroller drives to hdab

Mitsumi CDROM

I dont knowmuch ab out this one

MISCELLANEOUS HINTS

Link Interface

Link Interface for use with Christoph Niemanns driver for the INMOS C

based highsp eed serial link interface card useful for talking to transputers

or video digitizers

NOTE all the numb ers given are in decimal form the one you can see if you

p erform ls l on dev

Could someone give me indication ab out the meaning of the IRQs

This answer comes from alawrencsobecocom

Standard IRQs

IRQ Timer

IRQ Keyb oard

IRQ Slave AT

IRQ COM COM

COM COM IRQ

IRQ XT Hard Disk AT LPT

IRQ Floppy Disk

IRQ LPT

Real Time Clo ckAT only IRQ

IRQ Redirect to IRQ

IRQ Not Dened

IRQ Not Dened

IRQ Not Dened

IRQ

IRQ Hard Disk AT

IRQ Not Dened

Could some one clear up the devices meaning

p ort This allows programs to access the hardware p orts directly Not something

you generally mess around with much

ptypptypatty These are the pseudotty master devices Eachpty connection uses a slave

master set of tty devices

tty tty are the virtual consoles asso ciated with AltF tty is the current

virtual console so writing something to tty go es to the currentvc

tty Ive gured out is the mo dem connection

Yes that would corresp ond to COM under DOS However the tty name

is obsolete ttys should b e used instead

ttypttypa These are the pseudotty slave devices

ttys These are the serial devices ttys corresp onds to COM under DOS ttys

corresp onds to COM etc

Sp ecial Serial

This section is maintained by Jim Giord jgiffordattmailworldstdcom

some addenda were sentby Juha Ursin jussnakemailhutfi

Last up date May

Sp ecial Serial

Douglas E Quale

This has come up a couple of times already including the case of serial mice as

well but for the record stty acts on stdin not stdout Old sttys from V through

BSD used stdout but this is sub optimal and do esnt conform to POSIX The

GNU sttyyou are likely using on Linux uses stdin as do es the stty distributed with

BSD Networking Release Also stty a is more informative ab out p ossible

parameters although its pretty hard for me to remember what

Jim Giord

However there are a few older of mysterious origin sttys that work on stdout I

haveonemyself

Is there a list somewhere where I can get help with serial com

munications under Linux

There is a list for the discussion of serial communications under LinuxItisfor

problems drivers new developments etc with the Linux serial devices The list is

linuxserialstolafedu To join send mail to linuxserialrequeststolafedu

I hop e that this list will prove b enecial to the improvement of Linux This list is

maintained by Michael K Johnson as linuxserialrequeststolafedu

When I run kermit under Linux I get Warning Read access to

lo ck directory denied What am I doing wrong

Nothing you just need to create usrspooluucp kermit or usrspoollocks

this is for the kermitA which is where kermit liketolock les

What are the ma jor minor numb ers for the serial p orts under

linux

devttys com

devttys com

devttys com

devttys com

Can anyone givemeasampleetcinittab entry for login from a

p c attached to serial line devttys

Humb erto sp eaking up dated by Rick Miller

First set up the mo dem to turn o echo and enable auto answer I do this in kermit

by connecting to the mo dem and typing ates followed byenter wo quotes

Then setup inittab to spawn getty on the mo dem

ttysvtetcgetty m ttys

Replace vt with the name of the etctermcap entry for the terminal typ e

you will use or use dumb if you dont haveone

Then it should work Some mo dems can b e p ermanently set to disable echo and

set auto answer see your manual

Jim Weigand says

disable all messages This will preventgetty from hanging up your mo dem

Set For

ATE No echo

ATQ No messages

ATS Answer nd ring

ATS minute to answer shorter if baud

MISCELLANEOUS HINTS

You can use kermit to set these Do an ATW to saveforpowerup

Michael K Johnson says

If you would rather not save these commands as defaults to come up on p owerup

p erhaps b ecause you want to use your current mo dem settings under a DOS com

munications package you can also shove these command out ttys from etcrc

or etcrclocal using the command

echo modemsettings devttys

How do I set parameters like parity for serial login

Use stty and redirect input from the serial line

ex stty parodd devttys

whichgives ttys o dd paritytyp e stty a to get an idea of p ossible parame

ters Or man stty as well

I run SLS pl kernel is pl and I use lib c Trying to allow

login on my terminal on ttyS with only three wires RX TX

GND connected Getty devttyS starts and I get the

login prompt but the password prompt never app ears

Ted Tso

Setting CLOCAL is the correct waytosolve this it is not a bug in the kernel

Since you only have three wires connected it means that the carrier detect line was

left oating and probably oated to ground Thus the devttyS device blo cked

waiting for carrier detect to go high The reason why the login prompt app eared

is that getty op ened devttyS with the NODELAY ag but when devttyS

was reop ened for binlogin it did not havethe NODELAY ag and you ended up

blo cking

Thats what the CLOCAL ag is for it indicates that the serial p ort is ho oked up

to a lo cal hence CLOCAL terminal and so the carrier detect line should b e ignored

In general whenever the carrier detect line is not supp orted by a serial device or

if your RS cable do es not supp ort the CD wire the CLOCAL ag should b e set

Where are my Calloutmo deserial p orts cuaX

When should I use these cuaX p orts Whyonmy system ttys is used instead of

ttyS

Ask the p erson who created the install pro cedure Peter MacDonald in the case

of SLS

When should I use these cuaX ports

When youre dialing out ie kermit cu seyon uucp etc

On my conguration ttyS is named ttys incorrectly why

Again see the p erson who created the install pro cedure Recentversions of SLS

create the serial devices using the new convention ttyS ttys represents an

older convention and some older install pro cedures may not have switched over

What other p ossibly free IRQs there are than IRQ

IRQ is also often free although some networking cares use them

Can I use IRQ when not printing

Its generally a bad idea to havetwocardspluggedinsharinganIRQ address It

happ ens to work with most serial cards but it do esnt always work You can use

IRQ ifyou dont have a parallel p ort plugged into your system If you do have

a parallel p ort plugged in you can try using IRQ it mightwork it mightnot

Be sure to also make sure that the printer works after you plug in your serial card

congured to use IRQ Another alternative If you are using the version of the

parallel printer driver that do esnt use interrupts youcangotoyour parallel p ort

b oard and disable the IRQ thus freeing IRQ

Is pin nearest to the plate or is it

If this is a sample PC ISA card then A is the pin closest the back of the card and

on the top if the pins are held down and the back of the card is to your right

A

A

The BB pins are on the reverse side of the card

More Hints

This part try to keep track of the dierent information that app eared in composlinux

and on the list since b eginning of March I tried to up date it for so there might

b e some mistakes Moreover take care to use the correct library and include stu

and the adho c gcc you use

Bo oting

How to start Linux from driveB

There is a DOS utility called bootbexe lo ok at DOS ftp Another simple way

is to op en the b oxandinvert the cables

b works ne but once the rst disk is read the The program boot

system go es back to the rst drive anyhints

Yes change the b o otimage in just the same way that you change it to b o ot on the

hard drive execept that the ma jorminor pair is dierent All these information are

in the le INSTALLRemember that if you use a sun or other endian machine

you will need to reverse the byte order when you run the lter program also in the same le

MORE HINTS

How can I get Linux to b o ot directly from the harddisk

The b est option rightnow is LILO version ALPHA It has b een generally agreed

that the days of using shoelace are at an end See section of this FAQfor

LILO information

Iuseshoelace but I wanttochange my ro ot partitionwhatis

the pro cess to get rid of it

With Norton utilityyou can put back a standard b o ot sector Another p ossibility

is to restore the old b o ot sector the one you should have backup before installing

shoelace

Is it p ossible to disable the ngers salute ctrlaltdel

Yes in kernelsysc you can read the following

this indicates wether you can reboot with ctrlaltdel the deault is yes

static int CAD

there is also a small utility written byLinus in digest vol

Could some one explain the information provided at b o ottime

serial port at xf is a

serial port at xf is a whats that the uart chip

Right the last numb er should either b e or a and

on the two mo dels it will rep ort that FIFOs have b een disable or

enabled a

virtual consoles thats how many altFs I can get going

but only F actually work

You can get sessions running on AltF but the standard etcinittab only

runs gettylogin on AltF You can start sessions on the other consoles by

using doshell or adding lines to etcinittab

ptys are these the consoles F

No those are pseudo ttys which programs like MGR use to simulate ttycon

nections Thats probably a gross oversimplication but it gives you the general

idea I think

pinit lp exists is that the line printer

Right

What is the rdev program provided in the images

Its a program from Werner Almesb erger of ETH Zurich With no argumentit

prints the rst line of etcmtab With one argument a b o otimage it prints the

device congured as the ro ot device and with two arguments a b o ot image and a device it sets the device as default ro ot in the sp ecied image

Miscellaneous

Miscellaneous

HowcanIbackup my Hd under Linux

I knowatleasttwoways One p ossibilityis tar and mtools another p ossibility

is the diskbackup diskrestore of Diamano Bolla digest vol whichsaves

big hd to oppies using the stdinstdout These utilities have b een uploaded to the

ma jor sites in le disksplittarZ

An example usage Roger Binns is

tar cvf bin dev usr etc compress diskbackup

and to restore

diskrestore uncompress tar xvf

BTW if you are on Ethernet you could send your les via tarrsh tar

or even via NFS to a host which is regularly backed up

Where is which

It dep ends on the sh you are running

in bash type path

in tcsh its a builtin

for rc you can try the following untested by me script from Kevin Brown

binsh

for i in echo PATH sed s g do

for j in do

if test x ij then

echo ij

fi

done

done

How to use setterm for the novice

he setterm utilityprovides access to most of Virtual Consoles VCs functionality

You can set your screen up to blank at minutes using

setterm blank

You can set colors and clear the screen For a full list of commands just typ e

setterm with no arguments

There are a few tricks with the screen dump er can really makeVCs go a long

way Here are a few of the common ones that I use

setterm dump

Dumps the contents of the currentVCto screendump in the current dir

setterm dump

Dumps the contents of VC to screendump

setterm file mydumpfile dump

Dump the contents of VC to the le mydumple

MORE HINTS

setterm file devtty dump

Dumps the contents of VC to the currentVC

setterm file devtty dump

Dumps the contents of the currentVCtoVC

setterm file devttys dump

Dumps the contents of the currentVC to the serial p ort Handy if you are

logged on and want to paste a screen full without having to resort to doing a le

transfer

setterm file mydumpfile append

App ends to instead of overwriting the dump le Useful if you haveseveral

screens you wish to concatenate

Ive tried clear reset which exist on most of UNIX but it do esnt

work have I missed something

setterm clear or setterm reset will solveyour missing For clear you can

also write a small script which use the cl part of etctermcap wrt your TERM

or use bash where ctrll will do it for you

I know there are VC but where is the setterm stu

Its in the current distribution ie on the images the source can b e found in

virtconstarZ at nic

Iknow there are shared libraries do es there exist an easy wayto

check an executable for sharing

Josh Yelon An executable which shares a library is linked with an ordinary

nonshared stub version of the library One of the rst thing this stub do es when

the executable is run is to ask the kernel to load the big shared version of the

library which is usually named liblibXXXX The upshot of this is that in the

co de for the stub part of the executable is the string liblibXXXX which can

b e searched by using strings or grep

HJ Lu If you have gcca or later the shared image is changed to

liblibxxxxvyyzzzAndyou should b etter use nm to nd shared lib nm failed

on stripp ed executable You can also write a function for filewhichcaneven

check the version numb er

Claude Morin There exists at tsx lddtarZIfyou follow the instructions

you will b e able to typ e ldd executable to List the Dynamic Dep endencies of

the executables In other words ldd prints the name of the shared libraries needed

by the executable nothing app ears for static one

Sometimes when I want to remove a directory I get an error

message is it a known bug

No There is no bug at all you probaly have another shell on another VC whose

working directory is either the one you try to remove either a sub directory of it

Miscellaneous

Im lo oking for init getty login passwd stu where can I nd

them

You should nd it in shadowtarZ only sources at least at tsx in the usrbin

directoryManypeoplehave rep orted some troubles with the old shadowpasswd

shadowbintarZ and shadowsrctarZ so do not use them anymore an al

ternative might b e the mccinterim whichcontains standard passwd binary There

is also the Peter Orbaeks admutiltarZ and poeigltarZ which con

tains source for shutdown su chsh passwd and a system V init compatible

How can I setup a user account other than root

You can either use the adduser program either do it manually In the later case

you haveto

edit etcpasswd as ro ot and add a line of the following format

userpasswduidgiduser namehome directorylogin shell

user is the login name

uid is the numeric user id it should b e unique

gid is the numeric group id this numb er should corresp ond to an entry in

etcgroup The passwd eld should b e left blank cause it is stored in

an encrypted form to set this eld just use the passwd program

example

faqMarcMichelhomefaqbinsh

Still as ro ot you shoud now create the home directory and set the correct

ownership

mkdir homefaq

chown faq homefaq

chgrp homefaq

This command is obsolete you havetouse useraddToremove a user there

is the command userdel and mo dications can b e made with usermod

Ive b een trying to get Linux to run on my b ox It cant

even b o ot Any suggestions

The most common errorproblem is writing the b o otimage to a low density disk It

ts but the b o otstrap co de will only recognize high density disk So try to format

explicitely disk as high density

for format a n t

for format a nt

Do es there exist games languages other than C and anything

whichmake the system more friendly

Yes among other things there are rogue and yahtzee T X Prolog Perl but in

E

general if you want some extra to ol p ort it to Linux This is also a go o d b etatesting exercice

MORE HINTS

Whenever I use uemacs X on a symlink the symlink do es not

exist anymore why

Since ue uemacs uses safe save mo de writing the le to a temp orary and

moving it OVER the original In the pro cess this deletes the original Toprevent

this just add the following in your emacs rc le set ssave FALSE

Uemacs do esnt work anymore with a whenever I wantto

save a le what can I do

S and Q are used for owcontrol One solution is XW followed by the lename

or MX savele try also XS it could work for some version not mine Another

p ossibilityifyou havedownload the sttytarZ le is to do stty IXON b efore

you rst use uemacs this can b e included in your profile And the last is to

recompile the Peter Orbaek init package

IhaveanSVGA but Linux detect an EGAcEGAm is it nor

mal

This is correct actuallyYou have an EGA card SVGA with a ColorMono

monitor The only four p ossibilties are EGAc EGAm MDA and CGA according

to the co de in kernelchrdrvconsolec

The true test if Linux detects your video card is if you press RETURN at

the Press RETURN to see SVGA b o ottime message If you haveaSVGA

recognized card it will ask you to cho ose a screen size If not detected the default

is x mo de BTW if you havenoSVGA press the space and you are in x

mo de

If you havedowloaded the kernel you can automatically skip this query at b o ot

time if you set the SVGAMODE variable in the main Makele b efore compiling a new

b o otimage

HowcanIchange the keyb oard rep eat rate

In bootsetupS there are the lines

set the keyboard repeat rate to max

mov axx

mov bxx

int x

If you dont wanttochange the rep eat rate at all just comment out these lines

If you want something in the middle change the

mov bxx

by

mov bxxyy

where yy is determined by Ralf Browns interrupt list bhdelay value

x ms to x ms one sec this is the delay b efore the rep eat is

p erformed blrepeat rate x sec to xfsec xcsec default

Miscellaneous

I compiled fdformatc and ran it on Mb and Mb the

results are unreadable any clue

fdformat only lowlevel formats the disk to use the fdformatted disk with DOS

lesystem run mformat on the disk Mformat writes DOS lesystem information but

is unable to lowformat In order to put a Linux lesystem on a lowformatted

disk you havetomkfs it

What is the meaning of les ended by TZ or taz

The sux Z is for compressed les To uncompress them use the command

uncompress fileZ

The sux T indicates a tar le the usual sux is tar but the chars lename

limit of the Minix lesystem makes it cumb ersome to use tarZ to untarale

ended by T use the command

tar options fileT

see the man page for more details

For the taz le change them as TZ and goahead

hat is the meaning of les ended by Tz or tpz

The sux z is for les compressed with the gzip utility which is b eing used more

frequently b ecause it provides b etter compression These can b e uncompressed with

gzip d filez

Sometimes you have zcat which is a link to gzipThenyou can also use

zcat fileTz tar xvf

Ihave upgraded the kernel from XX to YY XX YY however

the login screen still says YY

Just change the message in one of these les etcissue and etcmotdThe

former contains the message b efore the login the later is the one after you are

logged in

What is doshell go o d for

Its an old program provided in the early Linux version when the gettywas

not already there it spawns a shell on anyttys

Mattew Gream I do this quite often gettyonttyandmy rclocal

spawns a shell on tty as follows

usrbindoshell devtty bintcsh

I dont havethekernel sources howcanIchange the keyb oard

language

You can use the fixkbd program written by Laurent JULLIARD

LaurentJULLIARDgrenoblehpcom Its purp ose is to x the keyb oard map

used in your kernel image It works more or less a la rootdev or rdev It can b e

found on tsxmitedu in publinuxbinariessbinfixkbdtarZ

MORE HINTS

Do es there exist a p ossibilitytotrackdown the source of kernel

pannic messages

Heres info from Linus on how to trackdown the source of kernel panic messages

The values for EIP address and so on are JUST EXAMPLES the EIP EFLAGS

etc can b e anything

Unable to handle kernel paging request at address CA

This means something in the kernel tried to access kernel memory at address

xA the C oset is due to the kernel starting at virtual address

xC The rst page of kernel address space is unmapp ed to nd these

kinds of incorrect references its probably a NULL dereference to a structure

memb er at oset xA

Oops

Error co de This tells you if its a read or write forget which ritgh now and

dont haveany b o oks handy

EIP D

This is where it happ ened segment kernel co de segment and oset

xD into the kernel So to nd this you generally do something like

nm usrsrclinuxtoolssystem sort less

and search for the function that contains the address xD

EFLAGS

fs

Eags and fs when the exception happ ened You usually dont need this

base C limit A

Pid process nr

In what pro cess the exception happ ened This is the swapp er which also

means the thing is fatal other pro cesses you can just kill That its in the

swapp er pro cess probably means that its an interrupt that did it as the

swapp er do esnt really do anything

cc

This is the instruction that resulted in the error I usually disassemble them

by hand and see what it is then I try to nd out exactly where in the func

tion this assembly sequence comes up probably by compiling the c le

to a s le and lo oking around Alternatively you can just run gdb on

usrsrclinuxtoolssystembut gdb has some problems

task swapper killed unable to recover

kernel panic Trying to free up swapper memory space

In swapper task not syncing

This is just to tell you not to exp ect anything from the kernel any more linux

cannot go on without the swapp er task

How can I deco de the numb ers in the message

Also note that sometimes the Unable to handle message is followed bythe

Oops blo ck but the last message is sometimes something else ie not

always a task swapper message but something from the TCP driver in

this case

It dep ends on where it happ ened If its an interrupt it can essentially happ en

in any task all interrupts are handled in the task that happ ens to b e currently

active while normal co de happ ens in the task that calls it

Emacs for Linux

This section is maintained by Rick Sladkey jrsworldstdcom

Last Up date March

General Information

This is a short list of Frequently Asked Questions ab out GNU Emacs under Linux

It do es not address general questions ab out Emacs which are not Linux sp ecic

For general help ab out Emacs

learn to use and read the online do cumentation

read the real Emacs FAQ found in emacsetcFAQ and

read the newsgroup gnuemacshelp

GNU Emacs for Linux

Do es Linux Emacs use the shared libraries

Yes It wasnt easyIfyou haveany problems with them let me know Also contact

me if you would like static binaries

It works ne with the DLL libraries and should not require a new binary when

the C or X libraries are up dated

What version of the compiler was used Which shared libaries

This describ es version of GNU Emacs for Linux and ab ove compiled with

GCC d using the libcso and libXso shared libraries

Which les do I need

emacsatarZ this le sample defaultel and dis for this

version the eightbit patch isolatinel

and eightbitel

emacsetcatarZ emacs supp ort programs and misc info

emacsbinatarZ shared emacs binary and its do c le

xemacsbinatarZ shared xemacs binary and its do c le

How do I install them

According to Linux convention cd to usr and untar the packages

EMACS FOR LINUX

What if I want to compile Emacs myself

It is fairly easy and highly recommended to compile Emacs yourself if you have

the the disk space In this case you only need the standard Emacs distribution

emacstarZ from any GNU archive and the Linux dis and supp ort les

emacsbtarZ from a Linux archive The dis are quite small and mostly

amount to a conguration le

What ab out Ep o ch or Lucid Emacs Are these available for

Linux

Yes Thomas Dunbar has b een maintaining Epoch for Linux and Chipsy Sp erb er

has compiled Lucid Emacs Both of these work well under Linux Lo ok in a Linux

archive index for where to nd them

Do es Linux Emacs supp ort eightbit inputoutput

Yes It is new with this version It uses the socalled ctlarrow patch See the le

READMEbit for more information

Howmuch disk space is required

Anywhere from to Meg Emacs works reasonably well with no supp ort les

at all With a judicious selection from lispelc and etc quite a lot can b e

done using only Meg If you want all of lispelc infoand etc this will

require to Meg If you unpack the whole source you need Meg If you collect

info les like rare coins and install a lot of big lisp packages then Emacs may need

its own partition

Why cant Emacs nd its supp ort les anymore

This is b ecause older versions of Emacs were compiled with usrlocalemacs

based paths The currentversion is compiled with usremacs paths If you havea

previous installation just mv usrlocalemacs usr and youre done If you

cant b ear to part with the usrlocal pathnames b ecause of inertia then do

ln s usrlocalemacs usr and you can have them b oth

How do I get Emacs to recognize my cursor keys

Simple Dont use them Seriously there are as manyways to do this are there

are elisp hackers but the preferred way is to follow the pattern set by the other

terminal denition les in emacslisptermelFor just arrowkeys you can

just copy vtel to consoleel and thats it For function keys and the others

see the sample defaultel included with this le

What packages are particularly useful under Linux

Because info format is the do cumentation standard of the GNU pro ject and just

ab out everything except the kernel comes from FSF you will nd that Dave Gille

spies enhanced info package is very useful It allows multiple info directories space

bar paging and supp orts compressed info les Please learn to use info Imagine

Unix life without man

Others that I highly recommend are Sebastian Kremers enhanced dired direc

tory editor Dave Gillespies calc calculator Masanobu UMEDAs gnus for usenet

news and Kyle Jones vm for mail

All can b e found in the OSU Emacs archive See the real FAQ for more details

Do es Linux Emacs supp ort the X Window System

Yes However there are two binaries One without X supp ort ab out k and

one with X supp ort ab out k

Do I need b oth Emacs if I dont always use X

No The X version works equally well inside or outside of X If you get the message

Check your DISPLAY variable it means that you have dened DISPLAY in your

profile or whatever You can x this by starting Emacs with emacs nw

or byremoving the DISPLAY variable from your profile and putting it in you

xinitrc

Why do esnt Emacs use the settings in my Xdefaults Xresources

le

You are probably using the word emacs and your X version of emacs is called

xemacs Either use the word Emacs in your resource le or rename xemacs to

emacs See ab ove question on why this is reasonable

I read ab out some menu that is supp osed to p op up when I

press some mouse button Do es this work with Linux Emacs

Yes This requires XMenu supp ort to b e compiled in Former versions did not

supp ort it b ecause it did not work correctly

Sometimes Emacs crashes with a SIGALRM message Whats

wrong

You need to upgrade to a newer version of bash Some older versions of bash were

compiled with buggy libraries that caused bash to send a SIGALRM to its parentin

some circumstances Recentversions do not exhibit this problem

Features

Virtual Consoles

Ive read that Linux has virtual consoles what must I do to get

them

Yes there are you can access them with the left alt key together with Fn key

With the Linux Images distribution consoles are available gettyrunsonthem

Notice that they are NOT accessible when running X contrary to some com

mercial unices

When Linux b o ots I get the following message virtual con

soles how can I acess to the vcs

If you want the getty to run on the you should add the corresp onding entries in

etcinittabYou can also just run sh on them by using the doshell soft And

then in either case the ALTF will access the corresp onding vc

FEATURES

Miscellaneous

What kind of shell is binsh

Its the Bourne Again Shell bash and compilation was straightforward just

make thats all or nearly

BTW There do es exist dierent shells for Linux these are bash rc zsh tcsh

and pdksh a korn shell

Do es there exist a man page for

Download mantarZ from your favorite Linux ftp site there is most of the leutils

man page either or g example there is nothing on ld but there is

for gld checkthewhatis database provided The les in the cat dir are

preformatted man pages that the man program can use Quite recently the man

pages for section have b een written thanks Drew and can b e found at least at

tsx in publinuxdocsmanmantarZ

Also manpages are in the SLS on the b disks

BTW there is nroff and groff for Linux Cawf works just ne for simple

man pages and a partial ms supp ort to o

Moreover Michael Johnson is the co ordinator for man pages under Linux he is

lo oking for volunteers so contact the DOC Channel

Is there a simple man package groff is to o big

Cawf man also fm m Al Clark tsx in

publinuxbinariesusrbinfmtarZ

Ihavea MBbox but free rep orts only MB why

free do esnt concern with the memory the kernel has allo cated for itself In other

words what you see is the user memory available The kernel has taken the low Meg

for its use Ko for it and the rest for buer cache and kernel data structures

for big memory machine it could b e even MB

Do es there exist shared libs

HJ Lu hlueecswsuedu writes on

The shared library under Linux started at Peter MacDonald collab orating

with Linus made the rst generation of shared librarywhich is the base of the

current classic shared library

The kernel supp ort of shared library under Linux is system call

extern int uselib const char filename

which loads an executable image with xed entry p ointinto memory just like

the ordinary executables

In crts a function which can nd out if and which shared images are needed

and loads them is invoked b efore main is called if necessaryDavid Engel and I

develop ed a way to tell the loader which shared images have to b e loaded utilizing

the similar technique used in global constructor in g x with the help from GNU

binary utilities

In the classic Linux shared librarywe build a big executable image for several

libraries and make sure no external variables outside of the participating libraries

are referenced Then we can get the absolute addresses of all the global variables

dened in the libraries used to build that executable image After that we makea

Miscellaneous

stub library for each participating library which just has the absolute addresses of

all the global variable in it

For each shared image there must b e one and only one le usually called

sharedowhich denes a global variable containing version name and entry

p oint of the shared image and a dummy global data Among those libraries used

to build the shared image there must b e one library which will always b e refer

enced whenever any other library is referenced Weputsharedo into the stub

library for that library and add a declaration for the dummy global data dened in

sharedo which will makesure sharedo will always b e linked in when any

participating libraries are linked

In gcc d jump table develop ed byDavid Engel was intro duced in the

shared libraryAt the b eginning of each shared image there is a table in which

every library function has a xed entry address and the instruction at that address

is a jump which will lead to the real library function So wecanchange the library

function without changing the corresp onding entry address of the jump table For

the global data we put them at the b eginning of data section of the shared image

Wehave to separate them from text co de and link them in xed order It is very

hard to maintain the same addresses for the global data when library is changed

After the global data are set up prop erly and some spaces are left for p ossible future

changes that is a very tough pro cedure it isnt to o dicult to maintain

In the current implementation only libca libcursesa libdbma

libtermcapa and libma are built with jump table The global data in X li

braries are to o complicated to make jump table such that their addresses wont

change when there is a change in X libraries Its not apparentyet that the

b enets gained from a jump table version of the X libraries would oset the ef

fort required to set it up and maintain it unless we get some co op eration from X

Consortium whichisvery unlikely But they are linked with jump table version of

libca and libma That means they dont have to b e relinked when there is a

mo dication in libca or libma

Why do I need dynamic linking

The b est way to illustrate this is with a simple example of what happ ens without

dynamic linking

include stdioh

int errno

FILE foo

main

foo fopenusrbinfoow

printffoo x errno dnfoo errno

Assume this program is run by a nonro ot user Normally you would exp ect that

the op en will fail b ecause the user do es not have p ermission to write to usrbin

this means that fopen would return NULL and errno would contain which

means EACCESPermission denied If you link this to a normal jump table library

it prints

foo errno

Now consider the following nearly identical program

FEATURES

include stdioh

extern int errno

FILE foo

main

foo fopenusrbinfoow

printffoo x errno dnfoo errno

The results for this program are

foo errno

Why do es this happ en First of all you must realize that in the rst program

errno is not declared external and thus storage will b e allo cated in the data segment

for the variable Unfortunately there is no way to tell lib c this and lib c has its own

storage for errnoThus lib c writes the result in one lo cation and you are lo oking

in the other In the second program errno is declared extern and thus no storage

will b e allo cated The linker will see the need for a denition of errno and it will

nd one in lib c Thus in the second example the user program is reading the same

memory lo cation that the library stored the answer in

This is of course a simple example There are more complicated examples in

volving programs that want to redene a library function and these can lead to

quite bizarre b ehavior which is dicult to debug

With dynamic linking b oth of the ab ove programs yield the same correct

result

How do es dynamic linking work under Linux

Basically to implement dynamic linking we need to route all function calls to global

functions through the jump table Wealsoneedtomake sure that all global data is

accessed indirectly through a p ointer The actual libraries do not really lo ok very

much dierent from the actual jump table libraries that we are currently using but

there are additional p ointers to the global data in the sharable image that are used

internally by the library to access all global data There are also additional symb ols

in the stub library that are dened as the address of the various p ointers and are

used by the linker to help determine whether there is a p ointer or a jmp instruction

that needs to b e xed up

The linker has one new imp ortant task with dynamic linking It watches for

duplicate denitions of symb ols and if the second denition is in a sharable library

it makes a note of it as a conict that needs to b e resolved at run time The linker

puts a list of all of these conicts into a table and makes it available to crt through

the variable SHARABLECONFLICTS

At run time crt through the function dynamicresolve will go through

and x up all of the p ointers that need to b e xed Let us say for example that you

dene your own mallo c function in a program in this case at run time the startup

co de will actually mo dify the jmp instruction in the jump table so that it p oints to

the mallo c function in your program not the one in the library The library will

never refer to the mallo c function directly but it will always b e referenced through

the jump table in this waywe ensure that there will only b e one function named

mallo c that is used byagiven program

If you were to run the rst example program in the Why do I need dynamic

linking answer then the p ointer in the library that corresp onds to the variable

errno will b e mo died so that it p oints to the errno variable that is in your program

Swapping

The library itself will never use errno directly it will always use it via the sp ecial

p ointer variable In this waywe ensure that all references to the variable errno

b oth in your program and in the sharable library will reference the same memory

address

Swapping

How do I makeswapping work

Quite simplyyou need the swapon and the mkswap binaries Then you can cho ose

between a swap partition or a swap le The mkswap is used to write the swap

signature while the swapon binary is to activate the swapping

First of all you need a partition I assume its the second of your rst disk

namely devhda and its MB big

swap partition

you have to indicate its a swap area this is done via mkswap instead of mkfs

which needs the name of the partition and the size in blo cks a blo ckisKo

big the optional c ag is for bad blo ckchecking So for our example you

should p erform

mkswap c devhda

Then you need to indicate that you want Linux to use the swap area this is

done via swapon In general it is set in the etcrc le just put the following

entry

binswapon devhda

It can also b e achieved via the etcfstab le

swap le

The pro cess is quite close you need a partition and a swap le Assume that

Ipreferaswap area of MB I wanttokeep some place in devhda I need

rst to dd the le

dd ifdevhda ofswapfile bs count

bs stands for blo ck size and count is the number of blocks then I have to put

the swap signature on that le

mkswap swapfile

Atthispoint you should sync just to b e sure the signature is eective And

nally add an entry in the rc le

binswapon swapfile

When I b o ot I get one of the following messages Unable to find

swap signature or Bad swapspace bitmap

You probably forgot to makeyour swapdevice use the mkswap command

FEATURES

How do I know ifitisswapping

You will notice it First of all Linux tells you at b o ot time Adding swap XXX

pages of swap space and if you start running out of memoryyou will notice that

the disk will work overtime and things slowdown Generally a Meg RAM will

make the system swap constantly while running gcc Meg will swap o ccasionnaly

when optimizing big les and having other things active suchasmake Also the

command free from the ps package rep orts total enabled swap space and current

swap use

How is it p ossible to removea swap le

Simply p erform a rm on that le and removethe swapon of your etcrc le

How is it p ossible to removea swap device

mkfs the device and removethe swapon of your etcrc le

Howmuchswap space do I need

Linux do es not p erform real swapping its rather paging see b elow for a more

complete explanation The swap area is added to the memory and can b e viewed

as virtual memorysocho ose the size you need example

MB RAM MB swap MB virtual memory

Could someone explain the swap pro cess on Linux Is it swap

ping or paging

Linux uses swap as additional memory one page of the swapspace is used for the

go o dpage bitmap and the swapspace signature

In fact Linux do es only paging no swaping in the meaning write out one whole

process to disk

The reason its called swapping is that Linux used paging for memory manage

mentonalow level since the very b eginning but didnt page to disk at all until

Is demand paging dierent from paging and how

Demandpaging is really demand loading of executables and is totally indep endent

of the pageswapping algorithms although they have similarities When Linux strts

up a pro cess no actual co de space is loaded I let the page exceptions load in the

executable as needed Thus Linux demandloads the co de and initialized data it

needs

Demandloading has very good points

it simplies the exec system call

it means page sharing b etween that have excuted the same le is easy to

implement

it cuts down on the amount of memory required

When Linux runs out of real memory it starts to lo ck for pages it can swap out

but if it notices that the page is clean it just forgets ab out it and demandloads it

when its needed again Thta means that swaple isnt needed as much esp ecially

Patching

when running big binaries such as gcc where the co depages can b e demandloaded

as you wish

Point means that even without anyswap space you can usually run slightly

larger programs that your memory setup would actually p ermit Ive noticed this

while running X and doing a kernel compilation something else wshen Ivefor

gotten to turn on swapping free rep orts page available but things still work

although p erformance is slightly down

Is there anyway to tell howmuchswap space you are using or

haveleft

The free program provided with the ps package handles this

Patching

How do es one go ab out applying a patchtoLinux

In the UNIX world most of distribution are in source form This includes the

op erating system To apply a patch you apply it with the patch program to the

aected sources The patch program takes as input the dierences b etween the old

and the new version After patching you need to recompile the sources

Assume I wanttoapplyapatch enclosed in the le XXX First of all I will

lo ok at the top of XXX where the le aected is identied This mayhave alead

ingpathattached to it Either cd out to the root of the patch ie if I see

linuxkernelblkdrvblkh Iwould cd into usrsrc assuming its the place

where I can nd linuxkernel and then patchasfollows

patch p whateverplaceXXX

or you can sp ecify a numb er of path comp onents to strip from the path If I

am in the blkdrv directory patching would b e

patch p whateverplaceXXX

There are a lot of patches available ps patch NFS patches

CDROM patches can I b e fairly condent the subsequent

patches will work

This is not true yet for the currentversion but it will b e so I kept it

No you cant patching is a real b eta tester art People are not working on

the same patched release so you havetocheck if the patches you already applied

works on the same kernel part if not great just apply them If yes checkifthere

is an order patch creator knows that and should try to warn patch user in other

words b eta tester otherwise you should edit the patch les and p ossibly makea

brief note to others on this listnewsgroup or even a cdiff b efore applying them

another solution is to keep co ol and wait for the next version of Linux where in

general the mo dications have b een done but this b ehavior is not Linux helpful

I got the patches on some ftp sites and applied them to the

kernel and tried to compile It didnt Are the patches buggy

Before remake just do a make clean in the directories involved by the patches This

will force a rebuild of the o and a les

If you havea RCS running on your source tree did you checked a patched version

of the les changed b efore any CO either byyou or make

FEATURES

Finallymake sure the patches succeded Normally failed patches on a le FILE

will leaveaFILE le Moreover you will get a chunk failed message It is p ossible

to capture the output while patching with the following

patch p patchfile patchresult more

Software

What are the editors available in Linux

Rightnow there are uemacs elvis GNU Emacs is there read the

section Also the p ort of mg micro gnu has b een done and can b e found

at least at athosrutgersedu in publinux mg is the binary and

mgtarZ is the sources le You can also nd a PD ed and elvis has an ex mo de

Finnally there are jo e vile elle Elle Lo oks Like Emacs Xedit and aXe

Do es there exist a printer package for Linux

Yes The plp package is currently available under the directory publinuxBETAplp

on tsx and its mirrors You may also print things manually likeso

cat filename devlp

Note that though devlp exists most p eople nd that their printer is on

devlp Use whatever the kernel says that it detects in the b o otup messages

Are uucp mail andor USENET news available for Linux

Yes At this time the following at least have b een p orted to Linux

Version Package name

taylor uucp

elm pl

smail

Cnews

tin pl

trn

nn

coming so on Exp ect an announcement in the near future concerning the

packages ab ove b eing made available in binary form in the SLS distribution and in

source form from sunsiteuncedu and other Linux archive sites

If you are interested in the last uucp features join the UUCP channel see section

for more details ab out the multi channels list

What is VFS

Linux already has Virtual FileSystem which means that it acts as a lesystem

switch It makes it easy for someone to design another lesystem format and include

it in the Linux kernel along with the standard minix lesystem format So it enables

someone to design a robust lesystem whichwould have some nice prop erties no

chars le name limitation nor Meg limit and could b e included in the kernel

in suchaway that b oth the Minix and the new one could b e mounted at the same

time This solves the uncompability problem since the ro ot disk could still use the Minix lesystem while the hardisk could b e using the new one

Software

Whats ab out T X

E

The primary site for Linux T X is this is P Williams site in Australia

E

The stu at tsx was p osted byTDunbar who do es supp ortmaintain the dvilj

stu

Whats ab out LILO

Werner Almesb erger the creator writes ab out LILO a Generic Bo ot Loader for

Linux LInux LOader

This is an ALPHA test release of a new b o ot loader Be sure to havesome

means to b o ot your system from a dierent media if you install LILO on your hard

disk

Features

do es not dep end on the le system Tested with Minix EXT FS and

MSDOS FS

can b e used to b o ot from oppies and from hard disks

can replace the master b o ot record

can b o ot nonLinux systems MSDOS DR DOS OS and un

stripp ed kernels item supp orts up to dierent b o ot images that

can b e selected at b o ot time Ro ot and swap diskpartition can b e set

indep endently for each image

b o ot sector le map and b o ot images can b e all on dierent disks or

partitions

Restrictions and known problems

SCSI disks are not fully supp orted yet Still waiting for some kernel

changes

b o oting other op erating systems do esnt seem to work everywhere If

everything but b o oting a nonLinux OS from LILO works on your system

you should b o ot LILO byBOOTACTV and select the alternate OS with

the latter as a temp orary workaround

b o oting nonLinux systems from the second hard disk D is not yet

supp orted

Please send all bug rep orts to almesbernessiecsidethzch

Whats ab out MGR

There is a MGR channel available contact the request adress with help in the b o dy

linuxactivistsrequestniksulahutfi The stu can b e found at tsx in

publinuxpackagesMGR In brief

MGR provides

multiple overlapping windows

multiple fonts

text and graphics in each windows

a simple p opup menupackage

aclientserver mo del alaX

FEATURES

indep endance from any p eculiar networking technology

MGR consist of a server pro cess and some clients Each client has his own

window and can create subwindows Clients communicate with the server via a

bidirectionnal channel A C library is provided

When a new window starts it is as a terminal emulator running the shell for

more information you can grab the mgrmanout from bellcorecom

The information hereafter app eared on the MGR channel on th Jan

Unpackthe src stu under in srclbinmgr and the usr stu in usrmgr

I splitted things that way for making it easier to ftp them and carry them home

If you dont like these paths then use others but rememb er to edit the Congle

after generating it YOU NEED TO INSTALL ALL FILES FOR COMPILING

This is a b eta release for programmers there are no binaries It makes mywork

available for p eople who either also work on MGR and like to get new sources and

for adventerous b eta testers WARNING I assume using Linux and GCC

There is some new m co de to generate menus It is more p owerful than menu

but a little harder to use

MGR is currently b eing p orted to Coherent but this version do esnt include

everything yet There is already a b eta version running on Coherent although not

to o stable yet

For questions write to the mailing list channel MGR Please b e sure to talk

ab out the latest version of MGR plus having read the README les in the direc

tories containing the problem

You got this stu from ftpthpunikoelnde publinuxmgr or from tsxmitedu

publinuxpackagesMGRwhich is a mirror of the Cologne directory

Ihave successfully compiled MGR but when I try to run the

program I get cant find mouse or already in useany clue

Try the following mgr m devttys if the mouse is on the serial Another

p ossibility is to link devmouse with devttys assuming your mouse is on

serial Or if its a bus mouse mknod devmouse c once

Any tips for MGR

Well I havetrieditonmy SX EGAVGA the screen is Ok but the Logitech

mouse I have is not well recognized

BTW check the ma jorminor number for ptys they should b e character device

with as ma jor and and bigger as minor

ptyp c

ptyp c

ttyp c

ttyp c

Whats ab out X

See the section devoted to X in this FAQ

Hardware

Hardware

What tap e drives workwithLinux

There is a working QIC device driver for Linux supp orting at least Ev

erexWangtek cards

There are additional patches for the QIC to supp ort Archive SCR

You can nd them in publinuxalphaqic at tsx There are some

bugs in the driver but you can backup

Newer drivers are all SCSI so check the SCSI section in this FAQ

Is there only the keyb oard

There are Dannish Finnish French German Uk US and DVORAK keyb oards

Set it in the main Makefile of the kernel sources then recompile the kernel again

Make sure the les in kernelchrdrv directory are recompiled

sp ecial FINNISHUS I b o oteed up with the new image and

everything work except that some keyb oard keys pro duce wrong

characters Do es anyone know what is happ ening

Since a images are US pro duct and so are USkeyb oard oriented BUT Linux

sources are FINNISH pro duct and so the default keyb oard is set to b e FINNISH

The solution is in the previous section

Do es Linux work for SCSI drives

Yes since v At tsxmitedu in publinuxALPHAscsiyou will nd the

last SCSI alphab eta version and also a sp ecial SCSI FAQ read it it contains the

latter information than the one provided in the SCSI section You should also

contact the linuxscsi list or directly drewcscoloradoedu

Linux is supp osed to work with ESDI drive However I have

trouble with my Magtron MTE Joincom controler any

clue

Some harddisk dont like Linux even though they should Mayb e not a bug but a

deciency

I had to remove the printk unexpected hd interrupt statementinhdc be

cause I was getting so many of those messages Be warned that if there is any read

error the system just hangs even the ctrlaltdel wont work You should b e able

to use your ESDI drives if you could live with those nuisances

Whats ab out Bus Mice

Since the Linux vcpl the kernel do es supp ort LOGITECH and BUS MICE If

you are unsure that you have a bus mouse or not check to see if your mouse card

has a selection for a sample rate switchable b etween Hz and Hz or p ossibly

Hz if it do es not then it is NOT a true bus mouse InPort mice for example

will not work with this driver

To create a bus mouse device mknod devmouse c

GCC INFORMATION

GCC Information

HLU Information

This section of the FAQ is maintained byHJLuhlueecswsuedu Please

mail any corrections or changes to him

Last up date March

I dont knowhow to install gcc stu is there sp ecial places

This is the READMEgccdisk

Intro duction

This is GNU CC It is linked with jump table You should use

it with the Linux C library disks since the CC compiler has no shared

images which are required by all the binaries in it It consists of minix

disks which will t on either or oppies

It is on tsxmitedu under publinuxGCCgccdisk

Distribution File Format

There are two les each of which go es on one disk

Disk gccaZ

This contains gcc cpp cc and crto gcrto There are also some

header les in usrlibgcclibilinuxinclude

Disk gccbZ

This disk contains ccplus

Installing on the Hard Drive

uncompress baseZ

rawrite or dd each le to a formatted oppy disk

Nowyou have made a copy of gcc on two oppies Tocopyeach oppy

to your hd you should mount the oppyandcopy its contents to your hard

drive You can do this by

mount devfd mnt

cd mnt

for d in bin dev etc usr

do

if d d then

cp av d

fi

done

Note This mayoverwrite some les on your hard disk

What compiler should I use for Linux

You should only use the same version on tsxmitedu or fgbfgbmwtumuenchende

under publinuxGCCIfyou want to use the testing release rst join the GCC

channel on the Linux mailing list lo ok section and then send a note to

hlueecswsuedu Dont use gcc older than the one on tsxmitedu or

fgbfgbmwtumuenchende

HLU Information

Where is the latest ocial gcc xx for Linux

Its on tsxmitedu under pubLinuxGCC and fgbfgbmwtumuenchende

under publinuxGCCYou may nd it on the other sites Since gcc you can

compile it yourself out of b ox from anygnu ftp sites Just unpackthesourcecode

and do

configure ilinuxilinux

You should follow the instructions in INSTALL

Where is the latest ocial Linux C library

Its on tsxmitedu under pubLinuxGCC and fgbfgbmwtumuenchende

under publinuxGCCYou may nd it on the other sites

What are the contents of them

Please read the current release note and ChangeLog for details

How do I install it

Read README and release notes

What are the main dierences with the old release

Read README and release notes

Can I use the old version of gcc

Please get rid of gcc older than gcc Starting from gcc you can do

gcc V xxxx

where xxxx is the version numb er Please read releasexxxx for detail There

is one catch in gcc d setjmplong jmpischanged so the old header les is not

compatible with gcc Before you install gcc d please do

cp usrincludesetjmph usrlibgcclibilinuxinclude

where usrincludesetjmph is come with gcc

Can I delete the old shared image in lib

Since the Linux C library version wehaveintro duced the dynamically linked

library There is no need to keep old shared images in lib if none of your binaries

are linked with the classic shared library which has b een obsolete You can just

keep one version of the shared image in lib which has the highest ma jor and

minor release numb ers for each shared library The name of the shared image is

xxxxxxxxxxxxxxxsomajorminor

Is stdio ANSI compatible

Yes please test it

Is g in xx

Yes

GCC INFORMATION

Where can I get the gcc manual

You can get man pages and manual come with the gcc source co de on any GNU ftp

sites You should nd gccmantarz on tsx which has man pages for gcc

Read the manual page gccps or gccman in usrinstallgcc

What options can I use for gcc

Read manual page gccps or gccman Also static tells gcc to use the static

libraries nojump forces gcc to use the classic shared libraries The default is the

jump table version of shared libraries The shared libraries for X are linked with

the jump table version of shared C library

How can I debug the C co de

Read the gccgdb manuals The simple waytodois

gcc g foo fooc

gdb foo

Where is the source co de of the new libca

The same place you nd this le It is called libsrcyyxxTZ

Why do es g complain even die

You need exprwhich is in GNU shell utilities echo and sed

How do I generate co de for i

Add m to CFLAGS

I heard mallo c wouldnt work with Linux what should I do

include stdlibh and dont dene NOFIXMALLOC

Whydoesgccsay xxxxxh not found

See section What are the contents of them

I really followed every step in the do cumentation but when I

do makewhydoesitsay dont how to make xxxxxx

The dep endency in Makefile is dated you need to make a new one Please get

some guide on make and read Makele For the kernel sources please do

cd srclinux

make dep

How do I compile programs under Linux

The Linux C library is trying to b e ANSIPOSIX compliant It is also very compat

ible with SYSV and BSD The C library is loaded with SYSV and BSD functions

There are three exceptions

signal in Linux is POSIX

ttyinLinux is POSIX

HLU Information

time functions are POSIX plus a few BSD and SYSV extensions

setjmplongjmp functions are POSIX But you can use DFAVORBSD to

make it BSD or use sigsigjmpsiglongjmp

When you compile a program under Linux your b est b et is include all the

appropriate header les and use Wall All the usable functions and global variables

are declared in the corresp onding header les YOU SHOULD NOT DEFINE ANY

functions or global variables OF THE LINUX C LIBRARY IN YOUR CODE IF

YOU WANT TO USE THE SHARED LIBRARIES

After saying all those you now should knowyou can compile a program with

DPOSIXSOURCE or DGNUSOURCE read featuresh for details With a few

mo dications you can even use DSYSV DUSG or DBSD Some co des need to dene

DSTDCHEADERS for ANSI C compiler like gcc here

To use malloc and calloc safely under Linux please include stdlibh

and dont dene NOFIXMALLOC

BTW gcc traditional should work with gcc d or ab ove

Please also read ChangeLog for the latest enhencement

Please read the header les for details Mayb e you should get a b o ok on POSIX

Any suggestion of the b o ok list Refer to the ultimatze list in section

I like POSIX Programmers Guideby Donald Lewine Its essentially a list

of POSIX functions man pages with a very brief guide in the b eginning of a

few things Its published by OReilly Asso ciates Inc from Steve Robbins

stevenyongwacamorg

How can I get bsd style signal

Use DUSEBSDSIGNAL

Why do es a program that should only p oll for input b ecome a

CPU hog

The select system call The timeout parameter was classically used readonly

by the system Some manual pages already notes three years ago

select should probably return the time remaining from the original

timeout if anyby mo difying the time value in place This maybe

implemented in future versions of the system Thusitisunwise to

assume that the timeout p ointer will b e unmo died bythe select

call

If you do not take this advice seriously you get a zero timeout written backto

your timeout structure which means that future calls to select using the same

timeout structure will immediately return

Fix Put the timeout value into that structure every time you call select

Change co de like

struct timeval timeout

timeouttvsec timeouttvusec

while somecondition

selectnreadfdswritefdsexceptfdstimeout

to

GCC INFORMATION

struct timeval timeout

while somecondition

timeouttvsec timeouttvusec

selectnreadfdswritefdsexceptfdstimeout

When a program is stopp ed using CtrlZ and then restarted or

in other situations that generate signals CtrlC interruption

termination of a child pro cess etc why do es it complain ab out

interrupted system call or write unknown error or things

like that

The system call the program was executing has b een interrupted to pro cess the

signal and then it returned and set errno EINTRTheprogramthenwas

likelytodraw bad conclusions from that

Explanation Your program has signal handlers installed using signal or

sigaction When the signal o ccurred your signal handler was invoked In other

UNIX systems this usually happ ens asynchronously or in a few slow system calls

When a signal is caught during the execution of system calls suchas

read write open or ioctl on a slow device suchasa

terminal but not a le during a pause system call or a wait sys

tem call that do es not return immediately b ecause a previously stopp ed

or zombie pro cess already exists the signalcatching function is executed

and the interrupted system call then returns a to the calling pro cess

with errno set to EINTR

Linux following POSIX checks for signals and may execute signal handlers

asynchronously at a timer tick

on return from any system call

during the execution of the following system calls

select

pause

connect accept

read on terminals or so ckets or pip es or proc les

write on terminals or so ckets or pip es or line printer

open on FIFOs or PTYs or serial lines

ioctl on terminals

fcntl with command FSETLKW

wait

syslog

any TCP or NFS op erations

For other op erating systems you mayhave to include the system calls creat

close getmsg putmsg msgrcv msgsnd recv sendwait

waitpid wait tcdrain sigpause semop to this list

In the last two cases and assuming the programs signal handler returns the

system call returns and sets errno to EINTR

If the SAINTERRUPT ag is not set for the corresp onding signal however in

most cases the system call is automatically restarted continued after execution of

the signal handler and your program wont see any EINTR

Others

You mayaskwhy this is not the default b ehavior when the default Linux

signal is used to install the signal handler This is b ecause POSIX adopted

this As for which one is b etter it is a matter of opinion

Note that in some versions of BSD UNIX the default b ehavior is to restart

system calls To get system calls interrupted you have to use the SAINTERRUPT

ag

Fix Either add DUSEBSDSIGNAL to your CFLAGSOrforevery signal han

dler that you install with signalusesigaction instead without setting

SAINTERRUPT

Note that while this applies to most system calls you must still checkforEINTR

on read write ioctl select pause connectYou may do it like

this

int result

while len

result readfdbufferlen

if result break

buffer result len result

int result

while len

result readfdbufferlen

if result if errno EINTR break

else buffer result len result

and

int result

result ioctlfdcmdaddr

int result

do result ioctlfdcmdaddr

while result errno EINTR

Others

I seem to b e unable to compile anything with gcc Why

If you have only MB RAM gcc will die silently without compiling anything You

must have at least MB to do compilations

BTW Since swapping is p ossible I have heard that compilation works with only

Meg and a lot disk trac Isnt it great

gcc complains ab out not nding crto and the system include

les What am I doing wrong

The include les normal place is in usrinclude liba and o should b e in

usrlib or usrlocallib

GCC INFORMATION

I tried to p ort a new version of gnu stu But in the linking

phase gcc complains ab out the missing libga

Yes this is well known for compiler version earlier than throwaway the ag

g thats all anyway libga is only for debugging purp ose

HowcanIgetbsdstyle signal

Use DUSEBSDSIGNAL

How to compile programs whichmay b e debugged with gdb

There are dierentways to handle this problem If you have the gcc or later

its simple use the g ag Otherwise there are dierent p ossibilities

As there is no libgayou should throwawaythe g ag in link phase

this means that the compilation mustbedoneintwo steps example instead

of gcc g monprogc o monprog use the following gcc g c monprogc

and then gcc o monprog monprogo Alas this metho d is not that go o d if

you are using Makefile

The other way is to create an empty libga as follows Peter MacDonalds

trick

create libfakec containing libgfake

compile it with gcc c libfakec

create the libga with ar r libga libfakeo

The more tricky Humb erto metho d

cd usrlib

ranlib libga

then gcc g monprogc o monprog will pro duce a debuggable monprog

When compiling some co de cc complains ab out some insn co de

whats that

An insn is an internal representation that gcc uses when compiling The main part

ofgccistotake ordinary c or c co de and compile it while doing optimizations

in insn part which is softhard indep endant Then another part which is hardOS

dep endanttakes the insns and translate it in assembly language The x is only to

turn o the optimization ag O

When compiling Ive got some problems with SIGBUS signal

that do esnt exist Anyclue

SIGBUS is a common problem its not needed just comment it all out something

like

ifdef SIGBUS

normal sigbus code endif

How can I write co des suitable for building shared library

There are some guidelines for writing co des suitable for building the shared library

with jump table

Never ever allow library users to access global data directlyAlways always

make them go through access functions That wayyou are free to change

the internal implementation but can easily provide backward compatibility

by simply replacing the access functions

If you do have to dene some global data for library users to access put them

into a separate le Never mix them with other library co de Also make

sure the relative lo cations of the global data will not change very often One

solution is leave some spaces for them to grow

SCSI Sp ecial

This section is written byDrewEckhardt mail him for any information questions

related to this section

Last up date May

General Information

What SCSI hosts are supp orted

The Adaptec x Adaptec x Future Domain xx TMC based b oards

and x Seagate STx Ultrastor F some of the new ALPHA co de makes

attempts to deal with the F and Western Digital are supp orted Various

Adaptec clones from Bustek and Future Domain are known to work in b oth ISA

and EISA avors

There is an alpha driver for the Ultrastor F at tsxmitedu in pubalpha

scsiufdrivertarz

Some of the SCSI drivers will not auto detect your SCSI host if the BIOS is

disabled and there maybeIRQ DRQ address restrictions compiled into the dis

tribution kernel

Virtually all SCSI disks CD ROMS and tap es should work

What SCSI hosts are not supp orted

ANSWER The Adaptec x Always IN DTC Mylex and Ultrastor F

PS SCSI b oards and all SCSI p orts on sound b oards

If you want to run Linux on this hardware youll have to get technical do cs on

it and write a driver yourself or brib e someone to do it Someone is working on a

driver for the IN

Which disks

Anything that works with your host adapter electronically and is new enough

to supp ort a Decemb er draft of SCSII

Sysquest and other removeable hard disks are supp orted

Extended partitions also work with Extended partitions p er disk allowed

in combination with the four real partitions and whole disk sub device

Disks up to two terabytes in size will work since the sd driver switches to

byte reads when necessary

SCSI SPECIAL

What ab out SCSI tap es

Tap es are supp orted You may wish to obtain the utility program mt whichis

usually available from tsxmitedu in publinuxALPHAscsi

What ab out CD ROMS

Yes CDORMs are supp orted and the ISO le system is in included with the

kernel distribution Ro ckridge extensions are supp orted You will havetomake

sure that you have congured the kernel to include the isofs lesystem or otherwise

you will not b e able to use the cdrom

What ab out opticals Bernoulis Sysquests and other remove

able media devices

The normal SCSI disk driver supp orts these Note that prepl versions of Linux

had some bugs handling diskchange

How do I get SCSI information

Subscrib e to the SCSI channel of the linuxactivists mailing list mail

linuxactivistsjokercshutfi And put in the header XMNAdmin join SCSI

Others

I cant make a lesystem on devhd

devhd arent your SCSI disks devsd are See section for approproate

ma jor minor numb ers if they do not exist on your ro ot diskette

How do I partition the disk

Use pfdisk or the DOS parititioning program of your choice

My partitioning program cant gure out the disk geo emetry

The problem with partitioning SCSI disks and Linux is that Linux talks directly to

the SCSI interface Each disk is viewed as the SCSI host sees it N blo cks numb ered

from to N all error free There is no p ortable way to get disk geometry

However DOS do esnt like things like this it demmands that BIOS presentit

with a normal Cylinder Head Sector co ordinates So BIOS do es and it comes

up with some fabrication that ts what DOS wants to see You dont wantto

disagree with what BIOS thinks when you write the partition table

The newest SCSI co de will return the mapp ed geometry for some host adapter

disk combinations Kernel release and later should have this capability

The linux partitioning programs dont work

Some of these default to devhdwhich are disks on WD compatable con

trollers IDE MFM RLL ESDI etc rather than devsd SCSI disks Your

solutions are to

Call the partitioning program with a device name ie

pfdisk devsda

Make links from devhd to devsd

Others

The sto ck ffpfgdisk programs dont work

At least some older versions of these partitioning programs have devhd hard

co ded into them and they dont see devsd

If you want YOU can change the devhd devices to b e links to or other entries

for the SCSI devices

Also pfdisk should b e callable with a device name

Hop efully some one will change the partitioning programs to resp ect the SCSI

devices

Where is the latest version maintained

It is at tsxmitedu in publinuxALPHAscsi but join the list b efore you

grab anything

Eric Youngdale erictantalusnrlnavymil added scattergather supp ort

to the SCSI drivers and changed around the internal structures to get something

that works as version

What are the ma jor minor numb ers for SCSI drives

Because of the large numb er of devices that can b e hung o of a SCSI bus as many

as if you use SCSI fanouts or bridge b oards and the p ossibility of partitions

on a SCSI disk wed run out of minor numb ers if they were statically allo cated

so a dynamic numb ering scheme is used

Blo ck device ma jor is used for SCSI drives for CDROMs Character device

ma jor is used for SCSI tap es

Minors are assigned in increments of to SCSI disks as they are found scaning

from host ID to host n ID excluding the host ID Most hosts use ID for

themselves

A minor where minor mo d is the whole drive where minor mo d is

between and that partition extended partitions dynamically assigned from to

inclusive Note that the gendiskc mo dule prints partition tables on initialization

you should b e able to see them there

Example I have four SCSI disks set up as follows

Seagate ST ID

Seagate ST ID

Ultrastor ID

Adaptec ID

The rst disk on the seagate at ID will b ecome minors inclusive the

second at ID inclusive the disk on the Ultrastor on the Adaptec

How do I reduce kernel bloat and eliminate the drivers I dont

want

For kernel release and later just go to the to directory in the kernel source tree

and typ e make config and answer the questions For older kernel distributions

simply undef CONFIGDISTRIBUTION in includelinuxconfigh and dene the

macros for the SCSI hosts you want enabled

I get SCSI timeouts

Makesureyour b oard has interrupts enabled correctly

SCSI SPECIAL

The driver do esnt work

A source of dicultyisthatyou may b e trying to run the bus to o fast Try turning

o the turb o switch for your machine or check the bus sp eed setting in your CMOS

My Seagate Future Domain TMCx b oard is not detected

The Seagate and Future Domain b oards have memory mapp ed registers To detect

them Linux scans for a signature in the ROM BIOS typicallya copyright message

and sets the register addresses relativetothat

This can fail for two reasons

If the BIOS is disabled

In this case you should edit kernelblkdrvscsiMakefile and add

DOVERIDEx DCONTROLLERy where x is the base address of your controller

the factory default setting is xc note that this is not the segment

ie xc and y is the controller typ e either SEAGATE or FD

If we dont knowaboutyour BIOS yet

Please use DOS and DEBUG to nd us a signature that will detect your b oard

Ieifyour b oard lives at xc do

debug

d c

q

and send me drewcscoloradoedu the nearest convienient ASCI I message

with the length and oset from c or whereever

The Seagate Future Domain TMCx driver do esnt work

There are several p ossibilities

Is the b oard jump ered for IRQ

The factory settings are for MSLOSS and haveinterrupts disabled Interrupts

are controlled by the W ST or JP ST jump er which should have

pins FG shorted See your manual

Cached machines will not have problems IF the Seagates address space typ

ically C CAFFFF is not marked non cacheable This applies to the

i internal cache as well as ii external caches

This can b e set in the XCMOS of most machines If you cant disable cache

for the Seagates area K in size starting at the base address then you

must disable the cache entirely otherwise it wont work

The new seagate drivers not yet released can op erate in a mo de where the

ws ISA bus line is used to synchronize the ISA and SCSI busses This

makes things fast since the alpha Seagate driver can dump SCSI data out

fast enough to swamp the bus However this will only work if the ws jump er

is enabled If this isnt the case the Seagate driver should detect this as an

overunder run condition but it might not Either enable the ws jump er or

undef FAST in seagateh

Others

When using a Seagate Future Domain TMCx whydoes

my system hang when syncing to disk

The Seagate b oards are an incredibly brain dead piece of hardware They can only

generate an interrupt when a target raises the SEL signal So as long as a target

is connected the Seagate driver must spin its wheels waiting for the actual data

transfer Some devices agravate the situation by connecting for long p erio ds of time

while not doing anything

The WDFASST driver do esnt work

According to Keith Smith

There are twodierentversions of the WDFASST One uses a

WDCA the other a WDC Firmware incompatibilities in the

b oard bios could cause a problem as the former chip xes some problems

that were discovered on the latter Were talking BOARD rmware as

well as BIOS rmware

My Ultrastor F or F isnt detected

The Ultrastor F driver wont prob e for an Adapter at address x Either move

it do a dierent address or recompile the kernel adding a rule to kernelblkdrvscsi

Makefile

ultrastoro ultrastorc

CC CFLAGS DOVERIDEPORTx c ultrastorc

The Adaptec driver do esnt work

Older versions of the SCSI drivers required that the Adaptec BIOS b e enabled

b ecause it do es some initialization that aects the driver If the BIOS was disabled

it may fail on your system The new scsi co de do es not require this

A common source of diculty is a conict b etween two dierent b oards forand

IRQlevel a DMA channel or an IO address Check the settings for the b oards you

haveinyour system music b oards are zknown to use similar IRQ or IO addresses

as the Adaptec In the new scsi co de the Adaptec can use anyoftheIRQlevels

that it can b e strapp ed for it can use IO address x or x and it can use

DMA channels or

Older versions of the SCSI drivers ran the x in emulation mo de where

some of these cards have a bug that interferes with reads writes bytes

Older versions of the SCSI drivers ran the x in emulation mo de where

some of these cards have a bug that interferes with reads writes bytes

The new SCSI drivers supp ort the x in native mo de so this isnt a problem

My tap e drive or other removeable media device isnt recog

nized at b o ot time

Try b o oting with a tap e in the drive

My system is dog slow ie ksec

SCSI commands have an incredible amountofoverhead For every command you

T L nexus and send need to arbitrate for the bus select the target establish an I

the command Pro cessing of that command may takeasmuch as ms on older

SCSI SPECIAL

devices Add this overhead to what you already have coming through the le

system buer cache etc and you have a real problem

Towork around this we needed to maximize the amount of data that could b e

transfered in a single command So we implemented scattergather which allows

readswrites fromto contiguous disk sectors to noncontiguous buers

This typically gets you a fold improvement in p erformance

The currentkernel only has scattergather supp ort for the Adaptec Western

Digital and Future Domain xx b oards However Alpha co de that provides

scatter gather for the Seagate is available from headrestwozcoloradoedu

in publinuxpatchesseagateZ for the Ultrastor from tsxmitedu in

publinuxALPHAscsiultrastorfast

Bugs

What ab out bugs

It works on MY hardware It works on Tommy Thorns Adaptec system Dave

Gentzels Ultrastor Thomas Wuensches WD RickFaiths Future Domain

and quite a few other systems

Bugs that are there will mostly b e very hardware sp ecic and nasty to track

down SCSI should b e basically error free consequently the error co de has not

b een heavily tested and there are known bugs in it

If you have found a bug please mail it to the SCSI channel of the mailing

list with sp ecics of your hardware Other p eople mayhave the same problem a

solution etc

If you provide a patch in context di form the bug will b e xed Immediately

If you can provide me with a pro cedure that repro duces the bug on MY system the

bug will b e xed soonYour chances of getting it xed increase exp onentially with

the amount of information provided If I cant repro duce it and your description

gives me no idea as to where in the co de to lo ok it wont get xed byme

What are the known bugs

Many of the drivers cannot ab ort a command that is in progress if something

go es haywire all drives o that controller will hang

I get a message saying READ CAPACITY FAILED What do es this

mean

UPGRADE

What do I do if I nd a bug that still lo oks like a bug after Ive

read the FAQ

Your b est b et is to send it to the SCSI channel of the mailing list where it will b e

seen by all of the p eople whovecontributed to the SCSI drivers

In your bug rep ort please provide as much information as p ossible regarding

your hardware conguration and all of the messages that Linux prints when it

b o ots Your chances of getting the bug xed increase exp onentially with the amount

of information provided

The b ottom line is that if we cant repro duce your bug and you cant p ointat

us whats broken it wont get xed

Ive found one of the following bugs

Icantswap to a SCSI disk or mountoneas

I get a READ CAPACITY FAILED message on b o otup

Ihavea removeable disk ie Sysquest and have problems when I change

media

Ihave a Seagate Future Domain TMCx and the kernel panics with a

kernel paging message

Ihave an Adaptec and am exp eriencing data corruption

Ihave an Insite optical drive and it wont work

IhaveaTANDBERG TDC revision U SONYCDROM CDU

revision d DENON DRDX revision V or a SEAGATE ST revision

and the system hangs or rep orts multiple devices

All of these bugs have b een xed so UPGRADE The rst one was due to a

race condition The fourth was caused byakernel stackoverow The Adaptec

problem was caused byarmware bug in mo de The last twowere caused by

SCSI devices that werent compliant

X the Maximum and More

This section is maintained by Krishna Balasubramanian balasubcisohiostateedu

Mail him if you have corrections additions etc

Last up date May

The X directories are dep ending on your version of X

XLIB usrXlibX or usrlibX

XBIN usrXbin or usrbinX

XDOC XLIBetc

X General Information

What is the X release supp orted byLinux

Its the XR xfree

What is Xxfree

X is the p ort of the X server to System V that was done by Thomas Ro ell

roellinformatiktumuenchende It supp orts a wide varietyofVGA b oards

X is included in MITs XR distribution

The Linux X p ort was based on the sto ck distribution from XR from

MIT and was done by Orest Zb orowski obzsisdkodakcom

It has since moved to b ecoming part of the standard xfree distribution

Where can I get X XR

The X and xfree sources are available at any site that distributes the

XR source to o numerous to list here but includes exportlcsmitedu

X THE MAXIMUM AND MORE

Any tips on compiling XR

Dontdoit

XFree is distributed with a link kit so you can optionally include what you

like in the server

You will need lots of disk space around Meg for the MIT core

Lo ok at mitserverddxxREADMEverb and followany instructions for

your particular platform

Contact the X channel at linuxactivists

Hardware Requirements

Approx at least megs of ram swap slooooww Meg disk for X Another

meg of disk for GCC if you want to compile X programs

What VGA b oards are supp orted

ET ET GVGA PVGAa WDc TVGA ATI ver or

A generic VGA x Mono Xmono xx Xega

Diamond cards are not supp orted and will not b e supp orted If you are the

unfortunate owner of such a card you can probably get the server up by

b o oting in sp ecic mo des or using dos to set your mo des b efore warm b o oting

into linux or using an external clo ck setting program You will havetobear

with these irks until you can convince diamond to alter their p olicy

Standard xv or xfree server

ET for ex GENOA

ET Tricom STB PWR Graph Sigma Legend etc

GVGA Genoa

PVGAA Paradise VGA Professional see BUGS

WDC Paradise VGA

supp orted by xfree

TVGA TRIDENT c supp ort is in xfree

ATI See the ATI section b elow

Those with compatible cards maywant to get the X server for sp eed

x xstones

MONO Any vga card should b e able to use Xmono server At least x

with x virtual Use the vga section of Xcong Supp ort for hercules

mono chrome card usable as nd display

Courtesy Rik Faith faithcsuncedu

The following servers will usually not handle all the options supp orted by xfree

Read the do cumentation that comes with them carefully They will b e merged with

the xfree distribution in some time

ATI graphics ULTRA ATI graphics Vantage Should work with anyVESA

standard A register compatible card Courtesy Kevin Martin

martincsuncedu

Scott Laird lairmidwayuchicagoedu writes I uploaded a new version of

the X X Server to sunsite and tsx It is in pubLinuxXXservers

XXscaletarZ on sunsite Its linked with version of the

Hardware Requirements

jumptable libraries includes TCPIP supp ort supp ort for compressed bitmap

fonts Typ e and Sp eedo scalable fonts Theres a README le in the same

directory that will answer more questions

XS S chipset server Jon Tombs jonrobotsoxacuk Get the FAQon

ftprobotsoxacuk publinuxS check sunsite

Xega Generic xx compatible server originally for laptops This requires

a microsoft mouse at devmouse for now and it do es not use Xcong so use

environmentvariables to dene the font path etc in xinitrc

export FONTPATHusrlibXfontsmiscusrlibXfontsdpi

Works b etter with courier fonts so add to Xresources

Font couriermediumr

or whatever A link kit is available at tsx you need gcc in publinux

ALPHAXegaXegaTZ Obselete Unusable Anyone

Do not try to bring up an Xserver that do es not supp ort your hardware There

have b een cases where damage has resulted from pushing the monitor sp ecially

xed frequency monitors b eyond its sp ecs

What Mouses are supp orted

Serial Logitech Microsoft MouseSystems compatibles

Busmouses Logitech microsoft ATI XL PS aux

Has anyone gotten the MiniDIN mouse on an HP Vectra T

to work The slight info Ive b een able to nd says its PS

compatible

First you need to create an entry in dev for it

mknod devpsaux c

There is no direct PS mouse supp ort in XFree yet so to use the mouse

with X youll havetousethemconv mouse proto col conversion utilitywhichcan

b e found on nicfunetfiin pubOSLinuxutilstoolsmconvc This pro

gram converts the packets sentby the PS mouse into the corresp onding ones

from a Microsoft mouse so you can fo ol X telling it you have a Microsoft serial

mouse instead Instructions for use are included in the source le Johan Myreen

jemcshutfi

Ihave trouble with my logitech Pilot mouse and X under Linux

any clue

Thomas Ro ell There are TWO lines of Logitech mice out there One is the pro

grammable and uses MouseSystems proto col at startup X reprogramms them

to use another proto col If you sp ecify Logitech in the Xconfig X assumes

a mouse like C or S notCM The second line is the MicroSoft compatible

Currently all newer Logitech mice follows this practice like the MouseMan In that

case you havetosay MicroSoft or MouseMan

Jean Liddle jliddlerscmpilstuedujustpurchased a new logitech

mouseman and yes the new XWindows XFree as opp osed to X requires

that you use the microsoft mousetyp e However if you turn Third Button Emu

lation o the middle button WILL work

X THE MAXIMUM AND MORE

Linux Distribution

What is the currentversion

The newest public Linux release is xv It is the Linux release of xfree

It was compiled with gccd and is available for example at tsx in

publinuxpackagesXxfree The SLS distribution stays at

What Files do I need to download

For xv there is a README le in the distribution directory Bring this down

rst and read it Then get xbin xman and xfontsYou need xprog and xlibman

only if you plan to compile X applications You dontneed xkit if you wantto

relink the server

You need the shared images libcso or later and libmso

in lib All the X binaries use these To compile programs you should get

gccd or later and the x libraries

For Other servers see also the notes in the previous section

Where do the X les go What are they

The linux X binary distribution lo oks something like

usrX

lib

libXa X libraries needed for compiling stuff

X

config template files for compiling xmkmf

fonts

misc dpi

etc documentation

bin X Xmono xterm X linked to X

includeX include files needed for compiling

bitmaps icons bitmaps used by some applications

man

man man cat cat

lib

libXso Shared images needed by all X binaries

Its b est you do a tar tvzf on the distribution you get or nd some means

of extracting the distribution le list The supp ort les include defaultexample

Xconfig xinitrc twmrc whichyou could copytoyour HOME directory as Xconfig

xinitrc and twmrc and edit them to dene your hardware and X setup

The directory XLIBetc contains much do cumentation on how to congure video

mo des

Read the les XDOCREADME and XDOCREADMELinux

LearningUsing X

Where can I nd the basic help for learningusingX

Try man X man Xserver man xterm man twm man xinit on any UNIX ma

chine The man pages on xterm and twm will reect b ehaviour on Linux systems

quite accurately The others will giveyou some b earing though not every option

will work These man pages are part of the xfree distribution

LearningUsing X

What do cs are available b esides man pages

The FAQincompwindowsx is extensive and has a bibliography There is also

the XFAQ Both are available from exportlcsmitedu in pubcontrib

How doIstartupX

Typ e startx at the shell prompt Before doing this you should

Untar the xfree distribution from read XDOCREADME XDOCREADMELinux

copy the le Xconfigsample from the XLIB directory to your HOME direc

tory usrrootXconfig or to XLIBXconfig

Edit Xconfig and set the video data for your card and monitor Use the

clo cks appropriate for your card and the mo des appropriate for your monitor

for those clo ckvalues To determine what values are appropriate the Xconfig

section b elow and the les in XDOC

Set the mouse device in Xconfig correctlyUse the busmouse entry for Log

itech onlyFor other busmouses use microsoft try all

Ensure that there is a termcap entry for xterm in etctermcap One is

available in the sub dir doc

Ensure that the X binaries are in the path example add the line PATHPATH

usrXbin to profile or lo ok at bashad in doc

WARNING NONE of the mo des in the Mo des line in Xconfig should use a

clo ckyour monitor cannot handle This can blowupyour exp ensive monitor

Nowtyp e startx

How do I supp ort national keyb oards in X

Put a Xmodmap le into the users home directory sp ecifying whichkeys to use

for what or else replace the usrlibXxinitXmodmap with the national

keyb oard keys customized Do man xmodmap for more details enclosed an excerpt

of mine frenchkeyb oard

keycode

keycode Escape

keycode ampersand

keycode eacute asciitilde

keycode quotedbl numbersign

keycode apostrophe braceleft

keycode parenleft bracketleft

keycode minus bar

keycode egrave grave

keycode underscore backslash

keycode ccedilla asciicircum

keycode agrave at

keycode parenright degree bracketright

keycode equal plus braceright

keycode BackSpace

keycode Tab

keycode A

X THE MAXIMUM AND MORE

How do I congure X colors menu keyb oard

makes me dizzy

server video keyb oard

Xconfig man X man Xserver XDOCVideoModesdoc man Xkeybd

man xset man xmodmap

resources global and application preferences

XLIBxinitXresources or Xresources man xrdb

twm menus title bars colors lo ok and feel

twmrc or XLIBtwmsystemtwmrc man twm

xinit startup

xinitrc or XLIBxinitxinitrc man xinit

applications XLIBappdefaultsXxx also Xresources

man xxx

You can start with les from any X setup Backup the les you change See

the FAQoncompwindowsx

Debugging Startup Problems

How do I start up X

Typ e startx at the shell prompt Before doing this you should

copy the le Xconfigsample from the XLIB directory to your HOME direc

tory usrrootXconfigorto XLIBXconfig

Edit Xconfigverb and set the video data for you card and monitor Use the

clo cks appropriate for your card and the mo des appropriate for your monitor

for those clo ckvalues To determine what values are appropriate read les in

XLIBetc and the Xconfig section b elow

Set the mouse device in Xconfig correctlyUse the busmouse entry for Log

itechonlyFor other busmouses use microsoft

Ensure that there is a termcap entry for xterm in etctermcap One is

available in the sub dir doc

Ensure that the X binaries are in the path example add the line PATHPATHusrXbin

to profile or lo ok at bashad in doc

WARNING NONE of the mo des in the Mo des line in Xconfig should use a

clo ckyour monitor cannot handle Nowtyp e startx

I cannot typ e in my xterm

devconsole must have major minor rm f devconsole ln devconsole devtty

Debugging Startup Problems

What are some of the common omissions and errors

Add usrbinX or usrXbintoyour path

Add the xterm termcap entry to etctermcap

ln s X X in the XBIN directory ln s Xmono X if you wanttouse

the mono server

Run X as ro ot rst This avoids some trivial problems

If you change the font path entry X is nicky ab out the syntax

Makesureyour mouse entry in Xconfig points to a legitimate serial device

or busmouse usually something like microsoft devttys serial devices

have ma jor minor busmouses are ma jor ls l in dev will

showyou the ma jor and minor entries

Need readwriteexec access to tmp directory

Use startx xerr to log your error messages If the server sticks and you

have to reboot youll probably lo ose this stu see notes on hanging below

See Xcong problems and the device list b elow

Haveyou read the X man page

Why is the server unable to nd some of the fonts

First check that the directories listed in the font path exist and havefontlesin

them Some of the servers are not set up to use compressed fonts In such cases

you have to uncompress the fonts in the directory and run mkfontdir Read the

man page on mkfontdir

My server hangs Why

Quite often it isnt a hang If the server grabs the screen and enters graphics

mo de and then dies it mayreturnyou to bash without restoring the screen In

other words just b ecause you see no output dont assume its runninghanging

The waytotestthisistoseeifyou can use a bash command to spin your disk eg

sync ls l bin

Also I suspect that at least for me you can kill the server if you include the

servernum option in the Xconfig

You can kill the server when you wanttobytyping ctrlaltbackspace Then a

couple of ctrlC s in case your stuckinxinit

The two line message

X version

proto col Version

is returned from the X programme itself so if you get this or if the screen

blanks X must b e starting

When I try to use X I got Cannot connect to server or process

does not existany clue

The cause might b e wrong fontpath variable setup in your Xconfig uncomment

and set the correct fontpath variable

X THE MAXIMUM AND MORE

Why cant I run more than xterms How can I have more than

ptys

Set the numb er in the header includelinuxttyh and recompile the kernel Also

makenodes

mknod devptypxx minor where minor xx

mknod devttypxx minor minor xx

This is for b efore linuxpl for later versions you only need to makethe

no des

How do es X start up

The startup involves the server XBINX and some programs like startx and

xinit

Typing startx runs the script XBINstartx Lo ok through startxFor ex

planation of the server arguments try man Xserver startx do es little other than

gather arguments and then call xinit

xinit cal ls X X is linked to X xinit therefore continues to run and quite

often you will receive error messages from xinit rather than X itself If you get the

message giving up it means X has died quite probably it died immediately and

xinit has b een unable to start X applications xinit pro cesses the startup script

xinitrc

How can I see what startx passes to xinitandxinit to X

Add the line set x near the top of startx

To see what xinit passes to X try

rm XBINX yes if you have set it up correctly X should only b e a link so its

safe to remove it Then create a shell script XBINX containing

binsh

echo

and run startxYou should see something like

X

which is all xinit passes to X If you dont see the you maynothaveyour

DISPLAY set correctly THEN RESTORE X

cd XBIN rm X ln s X X

What devices do es X dep end on

Checkyour device numb ers with ls l devYou should have

tty

tty

console

tty etc

mem

ptyp pseudo ttys used by xtermemacs etc

Xconfig and Video Mo de Settings

ptyp etc to talk to unix programs

ttyp

ttyp etc

ttys one of these is the mouse

ttys or you have a busmouse

x mouse busmouse x logitech ps aux

microsoft ATIXL

tmpXunixX socket used by X apps to talk to the server

this is created by X

Xconfig and Video Mo de Settings

What do the mo de names mean

The mo de names like x are used to matchentries in the mo des line with the

modeDB entry which actually denes the mo de You can toggle b etween mo des in

the mo des line with ctrlaltnumericplus If youre exp erimenting with x you

can dene mo des xa xb xc with corresp onding entries under

ModeDB so you can toggle b etween these three mo des Try man X

How do I compute the numb ers for the video mo des

See if there is an entry that matches your chipmonitor in XLIBetcmodeDBtxt

Use the clo ckentries for your chip and the mo de entry for that clo ck appropriate for

your monitor If you cantndamodeentry for a particular clo ck neededclock

but can nd a mo de entry for your monitor for a nearby clo ckvalue foundclock

scale all numb ers in the modeDB entry byneededclock foundclock man X

and read CONFIG and Xconfignotes

How can I determine the clo cks on the video chip Where can

Indclockexe or clockpas

The XFREE Team discourages the use of clocksexe and wants it to b e removed

from all do cs since the new Server is b etter at guessing the clo cks than clocksexe

You can get X to tell you what it nds by commenting the clo cks entry in

Xconfig Use startx xerr to log the output If X starts up this le gets the

clo cks only after you exit

I strongly advise using the modegen spreadsheets to generate the appropriate

settings If I rememb er correctly you can nd them in publinuxpackagesSLSx

called modegentaz or something equally as obvious Go o d luck Andy

asbcsnottacuk

The clo cks entry in Xconfig serves as an index As an example

clocks

ModeDB

x

x

means the rst clo ckonthechip will b e used for the x mo de and so on

Usually one uses the MHz value for the clo ck for convenience instead of you

probably have etc

X THE MAXIMUM AND MORE

What are the settings used with a tridentC

To get XSLSLinux working with a tridentC do the following

From Frank Houston fhnuvacscsVirginiaEDU

vga

Virtual

ViewPort

Modes x x x

Use the VESA monitor timings from the modeDB in the example Xconfig

You do not need to sp ecify the chipset or clo cks

From Henk Vandecasteele henkvcskuleuvenacBE

TRIDENT TVGA C card with BIOS C A cheap color monitor AOC

CM with a maximum horizontal frequence of

vga

Virtual

ViewPort

Modes x x x

This mode drives my monitor to the limit VESA timings for the rest

x

What can I do with a trident B

The answer comes from Drew Eckhardt drewcscoloradoedu

While the B works with the Xfree C driver you must sp ecify a chipset

line for the C in your Xconfig

The tridents are miserably slow in a Color mo de If you dont mind blackand

white you should use Xmono Not only is it faster but it requires less

video memoryandyoull b e able to run a k k virtual desktop Again

you must sp ecify the Chipset line to use the banked mono server for virtual

resolutions

Where can I get Xcongles for various hardware

If you have access to email email bcrphysicspurdueedu a message with the

subject help

If you do create a new Xconfig leorimprove on an old one please mail it to

bcrphysicspurdueedu to save others from having to duplicate your work

An example Xconfig le for the ATI card is available from ftpcsuncedu

pubfaithlinuxx

What are common problems with Xconfig

If X isnt ring at all or even if it clears the screen and crashes see b elow you

almost certainly have a fault in Xconfig

Note that the server X interprets Xconfig not xinit

If you have a fault in Xconfig it is p ossible to crash or hang the server without getting an error message

XApplications Compiling X Programs

leave the two paths at the top of Xconfig commented out when testing

test with only one graphics mo de included one you are most sure of

If you make a mistake in the mouse section you will I understand get an

error message so if you dont get some mouse error try elsewhere rst eg

No such file or directory indicates you have a fault in the devttyxx

line or devttyxx do esnt exist

X lo oks in your home directory rst to nd an Xconfigmake certain its

using the one youvebeenworking on

You need double quotes around your chipset and mo des eg

chipset et

Modes x xa x

and around the devttyxx eg

microsoft devttys

Checkyour VGA section and modeDB rst

Ensure ModeDB clo ck sp eeds matchtheVGA section Comment out anyun

used lines in ModeDB eg

clocks

then you must have and only have lines under modeDB corresp onding to

sp eeds and If you have one with say uncommented out in the

mo deDB section in place of the line you will cause the server to die im

mediately with no error message

A syntax error such as an unrecognised word in Xconfig will cause a death

with no warning

videoram must equal the amount of display ram on your chip

What do I use in my Xconfig le to use the bus mouse Logitech

do esnt work with my Logitech busmouse

Here are the mouse lines from my Xconfig

BusMouse devmouse

You may add a sample rate if you want but chances are unless the mo del

number on your mouse matches mine PCMD it probably will cause your

machine to lo ck up as Ive gotten several rep orts saying that

According to the X do cumentation nonlogitech mice do not supp ort a sam

ple rate

XApplications Compiling X Programs

Do es anyone know where I can nd the libobza library

This library contained the so cket stu when X V was released Meanwhile

it has found its wayinto the kernel so remove lobz from the link step in the

Makefile

X THE MAXIMUM AND MORE

Iget setjmp undefined when linking xv from a les

You are trying to link a program compiled with gcc and setjmp has changed

sice then Recompile xv from the source using the latest gcc

How do I compile an X application that has an Imakele

Typ e xmkmf to generate the Makefilethentyp e make

How do I compile a program that has no Imakefile

Use compiler options generated with programs that do have ImakefilesLookin

XLIBconfig for the linux denitions In particular you need fwritablestrings

gcc complains the X libraries are not found or links static

Check out the nojump static options of GCC read the GCC FAQ You can

tell gcc what directories to search with L

When using Makeles generated by xmkmf whydoIgetmany

error messages

The old xmkmf under Linux do esnt like comments in Imakeles Therefore you

must change the s to XCOMM But b e careful Dont change any precompiler

directives Matthew A Lewis malpoCWRUEdu

XI I Ton van Rosmalen wrote

I recently compiled XFree A for Linux and it compiled ne

with gcc and lib c i I skipp ed the make dep end

Rik Faith

The source for edc is available from Linux binaries are in utilbtaz ftpcsuncedu

pubfaithlinuxutilsutilbsrctarZ This version of edc has a

character line limit and will work correctly when building XFree under Linux

What are the developmenttoolsavailable for X under Linux

Some of the X developmentpackages available on Linux XS sunsiteuncedu

pubLinuxXContact the p eople who distribute them in case of problems

Libraries

Xpm ti are in XSlibs If you are compiling a package that uses

these libraries it is b est to pick up the standard DLLs hooftchemruunl

mitchumdsouzamrcapucamacuk Some older libraries are in XSlibsoldlibs

Interviews SLS package

Shared libraries are not yet available so do c sinMB idraw MB ibuild

KHOROS

This is the second release of my patches KB XSxapps to the Khoros

system for image pro cessing If you want to compile it you need Khoros

patchlevel source distribution and up to MB free disk space including

package

Wolfram Gloger wmglodentmedunimuenchende

SVGA server for ATI b oards

MOTIF XS

Metro Link Inc is pleased to announce the availability of OSFMotif for

Linux at the intro ductory price of for a complete runtime and develop

ment system shared libs UIL source for some demos Orielly b o ok You

can order OSFMotif for Linux by calling Metro LinkInc at

voice or fax or by mailing us at salesmetrolinkcom

SUIT XSdevel

Simple To olkit

Included are shared libs and static libs Compiled with the SLS kit Touse

these shared libs you need libX and lib c Rob Rob ertJan Ko op er

robistwitudelftnl kooperdutiwstwitudelftnl

tktcl XSdevel

Here is tk and tcl sources and libraries Compiled this with gcc I

have also included the wish X binary

Mitchmitchumdsouzamrcapucamacuk mitchmarkabmrcapucamacuk

xview XSdevel

New libxviewa and libolgxa that correct some problems with the ones

found in SLS and mayb e in the other xview releases I dont know

Kenneth Osterb erg

SVGA server for ATI b oards

Last Revised Mayby Rik Faith faithcsuncedu

Whats new

For XFree version and later versions there are twochanges to the

extregPlusXLAndOrMasks table

ERB was changed from x to x In the Linux world this was dis

tributed as a binary patchlongago

ERBE was changed from x but only for cards EARLIER than the

Both of these changes allow more cards to work although either one

may b e sucientforany one card You can nd these changes in the driver by

searching for the Feb timestamps

What is the ATI SVGA driver

The ATI SVGA driver is a color driver for the XFree server The driver was

written for the ATI WONDER series of graphics adapters In general the following

mo des are supp orted for cards with kb of memory

xx

xx

The following mo des are supp orted for cards with kb of memory xx

X THE MAXIMUM AND MORE

What is the ATI SVGA driver NOT

The ATI SVGA driver is NOT a black and white bit driver Therefore it will

NOT work with the XFree monoserver

The ATI SVGA driver is NOT a color driver Even though your manual

says that your graphics adapter has a xx mo de the ATI SVGA driver

will NOT use this mo de If you want to use x you MUST haveMBof

memory on your b oard and use the xx mo de

The ATI SVGA driver will NOT supp ort more than bits of pixel depth

Therefore even though your manual says that your graphics adapter supp orts mo des

using more than colors the ATI SVGA driver will NOT use these mo des

The ATI SVGA driver is NOT an accelerated driver If you haveanATI

GRAPHICS ULTRA series card the ATI SVGA driver will NOT use the acceler

ated hardware It will only use the SVGA hardware This will probably not b e any

faster than a VGA WONDER card unless the card is on a lo cal bus and then it

wont b e faster than a VGA WONDER card on a lo cal bus if a card of this typ e

existed

What cards will the driver work with

This is a dicult question b ecause there are many dierentATI video cards and it

is sometimes dicult to tell them apart The b est wayistolookonthecarditself

for the ATI chip numb ers Here is a partial list of ATI VGA WONDER cards The

MOST IMPORTANT numb er is the CHIP VERSION

Adapter version Dot clo ck Chip version

VGA WONDER V ATI NOT SUPPORTED

VGA WONDER V ATI NOT SUPPORTED

VGA WONDER V ATI ATI NOT SUPPORTED

VGA WONDER V ATI ATI MAYWORK

VGA WONDER MB ATI ATI SUPPORTED

VGA WONDER MB ATI ATI SUPPORTED

VGA WONDER XL ATI ATI SUPPORTED

Note that the ATI SVGA driver co de has ho oks and some supp ort for all of the

cards listed However with the earlier cards there are serious dierences in the

programmers interface The only p eople who haveever worked on the co de have

had and chips so these chips are the only ones that are actually

known to work

The ATI GRAPHICS ULTRA chips seem to haveSVGA supp ort which is equiv

alent to the and a although I can nd no do cumentation

on this in the technical manuals provided byATI The ULTRA PLUS and UL

TRA PRO b oards have b een tested to some extentandseemtowork ne but the

original ULTRA mayhave some problems at greater than x resolution

What should I put in my Xconfig le

THE MOST IMPORTANT LINE IS THE CLOCKS LINE

Clocks

The rst rowofclocks is usable on all VGA Wonder cards The second rowis

usable only on V PLUS and XL cards and However

you should include BOTH rows for ALL cards

The sp ecication is dierent from the sp ecication used with the ET cards

Programs with claim to detect the clo cks usually work only with ET based

SVGA server for ATI b oards

cards No such program exists for the ATI cards since it isnt needed THE

CLOCKS LINE SHOULD NEVER BE CHANGED The order of numb ers in the

clo cks line is signicant

The actual frequencies which can b e used to calculate the Mo deDB lines are

as follows

The Chipset will b e automatically detected The chipset name for this driver is

ati

Here is a sample Xconfig which I use

RGBPath usrlibXrgb

FontPath usrlibXfontsmiscusrlibXfontsdpi

Keyboard

AutoRepeat

ServerNumLock

Microsoft devmouse

MouseSystems devmouse

MMSeries devmouse

Logitech devmouse

MouseMan devmouse

Busmouse devmouse

BaudRate

SampleRate

EmulateButtons

vga

ViewPort

Modes xv xv

Modes xv

Clocks

Displaysize

X THE MAXIMUM AND MORE

ModeDB

From NEC MultiSync FGx manual copied by faithcsuncedu

activearea frontporch pulsewidth backporch for horiz and vert

VESA x at Hz kHz

us us us us ms ms ms ms

I couldnt find a good clock rate for this one

VESA x at Hz kHz

us us us us ms ms ms ms

xv

VESA x at Hz kHz

us us us us ms ms ms ms

xv

What is the history of the driver

The complete history of the driver is cloudyIhave tried to reconstruct the history

from several email messages from a few of the p eople involved Thehistoryis

probably incomplete and inaccurate

ApparentlyPer Lindqvist pgdcompurambbtse rst got an ATI driver work

ing with an early ATI card under X a This original driver mayhave actually

b een based on an nonfunctional ATI driver written by Ro ell Then Doug Evans

djecygnuscom p orted the driver to the ATI XL trying in the pro cess to make

the driver work with all other ATI cards

I Rik Faith obtained the XR driver from Doug Evans in the summer of

and p orted the co de to the X part of XR This subsequently b ecame

part of XFree Per and Doug did the ma jorityofwork making the p ort somewhat

trivial I am grateful for their contribution

The p ort to XR required writing the ATIProb e and ATIEnterLeave routines

and reorganizing the ATISaveandATIRestore routines Someone else added the

op erating system sp ecic co de but I dont know who

The ma jor reference that I used was manual from ATI

VGA WONDER Programmers Reference

ATI Technologies

Release Reference PRG

Part No B

However Chapter ATI ATI VGAWONDER of George Suttyand

Steve Blairs AdvancedProgrammers Guide to SuperVGAs BradySimon Schus

ter was also useful Further someone emailed b e a random do cument

from the ATI BBS whichwas dated Jul and whichmayhave b een named

PROGINFODOC

What is the future of the driver

I no longer use an ATI Wonder card and havenointerest in this driver Since I have

received no bug rep orts or patches for the driver during the past months I think

it is ab out as stable as it is going to get I susp ect that supp ort for the

and chips can b e made more robust but I doubt that the other

chips will ever b e fully supp orted

Ihave absolutely NO intention of p orting the co de to the mono or color

servers If you wantATI supp ort in the mono or color servers they you should

do the p ort Since I no longer use myATI Wonder card please feel free to take

over the current driver as well

Bugs

Bugs

Restoration of the text screen fails on some hardware

You can get the program runx from the vgalib distribution tsx publinux

sourceslibs Rep ort the problem to the xfree team

Cant compile Xaw programs without static in versions xv or older

There is a glitch with the Xaw shared libs I havent seen this in a while

anyway its xed in newer releases

Color problems with Xega xed in latest version on tsx

It is p ossible to run X on a Paradise VGA Plus The X do c le has a

small misprint The Chipset is not pvga Its pvga Anyway under the line

in usrXlibXXconfig VGA add chipset pvgaYou will

need a k b oard There seems to b e a problem with x mo de that

causes pixels to b e misplaced in the center of the screen x works

ne Anyb o dy out there mighthave a x for that You maywanttouse

Xmono with x instead

Fix for missing numlo ckcontrol in xfree use xmo dmap to change the

mapping

clear mod

add mod AltL

keysym AltR Modeswitch

add mod Modeswitch

David Dawes

Sources for XFAQ

Steve Kotsop oulos Peter Hawkins John Morris MM Corsini K Balasubramanian

Direct comments questions complaints to Krishna at balasubcisohiostateedu

Networking and Linux

This section should b e maintained by Philip Cop eland pcopelacsduweacuk

General

Where can I nd useful information ab out networking for Linux

Join the NET channel of the mailing list Also you need to read the NETFAQby

Phil Cop eland its on sunsite and tsx and p osted to col and the NET channel

every couple of weeks

Basically all of the information on networking and TCPIP for Linux is in the

NETFAQ b ecause its maintained sep erately than this do cument and wedont

wanttowaste the space reprinting it all here its big

The NETFAQ has b een completely rewritten as of Feb Get the new

version

Everything for printing

This is the lp d FAQversion this section is maintained by Brian McCauley

Please send any suggestion to BAMcCauleybhamacuk Last up date June

EVERYTHING FOR PRINTING

General Information

What is the lprlp d package

lpr is a utilitythatisusedtoprint les out to lo cal and remote printers As with

all networking there are conguration les whichhavetobetailoredtoyour needs

These les are concerned with access control accounting and page setup of your

printers Now all control of the printer is p erformed by a pro cess called lp d

lpd is a laser printer daemon yes I know an epson isnt a laser printer but

thats b esides the p oint The program lpd is normally started in etcrclocal

in either the forground or the background What happ ens is that lpd will sink

back as a daemon only ever b eing invoked when a printer request is generated lpd

itself has some options which are of p ossible intrest to some p eople chiey that of

the l ag which causes lpd to log requests recieved from the network useful for

debugging The other option is for what p ort lpd should listen for data on and is

generally not used

Note

lp really stands for line printer but as technology has advanced laser printer makes

more sense

What is the Linux lprlp d

Up until th May as far as there is a denitiveLinux version of anything

the Linux lprlp d is Ross Biros birlelandstanfordedu p ort of the BSD

sources dated th Novemb er so if youre used to ATTs youll nd some

dierences Rosss binaries and the dis are found at tsxmitedu in pub

linuxbinariesusrbinlprtarZ and on sunsiteuncedu in pubLinuxsystemDaemonslprtarZ

The SLS le lprtgz on disk b contains the same stu

However this is all ab out to change so from nowonthisversion will b e called

the old binaries As of th May there app ears b e two dierent new releases

of lp d exp ected RSN

In addition to the standard BSD lpr capabilities Ross Biros p ort should have

had b etter supp ort for serial printers but it didnt work in the old binaries

Rosss p ort was not based on the latest BSD sources byaboutyears vs

His new release will also b e based on these sources which can b e found are at

gatekeeperdeccom and afsirstanfordedusrc

Recent BSD sources are all over the place

ftpuunet systemsunixbsdsourcesusrsbinlpr

srcdocicacuk unixbsdsourcesusrsbinlpr

to name but two The BSD sources have unGNU things in their Makeles so they

dont compile outofthebox but havenowbeenportedby waltjeuWaltNLMugnetORG

Fred van Kemp en and will b e available RSN if not now as part of the complete

overhall of the Linux Net stu

Ross agrees that Freds version should b e thoughtofasthe Linux lpd package

IBAMcCauleybhamacukhave not had a chance to lo ok at Freds p ort yet

Im waiting for the full release of pl b efore I up date anything but most of

this FAQ refers to the BSD lpd packageorLinux in general so this is probably not

to o imp ortant

There are some other versions of lpd stu ab out but I havetodraw the line

somewhere If anyone whants to maintain FAQ sections on these they are welcome

to do so The other versions include plp and the kaq lp facility There are also romours of SysV sp o olers b eing p orted

Installing

What are all these diretrories for etc usretc etcinet

usrspool varspool

This is one to which I cant nd a staightanswer

For various reasons including the diculties of fscking some p eople liketo

put all things that arent needed during b o otstrap in usr so that is as small as

p ossible Also some p eople like all their internet stu in etcinetMostLinux

gurus advise keeping it all in etc

If you really want this quirky layout

cd etc

ls s usretc

ls s inet

Make sure the les in usretc and etcinet are not already symlinks into

etc

If you want to spread out your conguration les for the sake of tidiness then a

b etter solution is to have a directory tree called conf and make the les in etc

symlinks into this tree

Toavoid the problem of your usr lesystem lling up as a result of stu in sp o ol

queues some p o eple p erfer to keep their sp o ol queues and suchlike in a separate

lesystem called varIfyou dont haveavar le system then you should make

var a symlink to usrIfyou do havea var lesystem to maywant to make

usrspool a symlink to varspool so that any programs exp ecting to nd

usrspool will not b e dissap ointed

Installing

HowdoIgetlpr to work prop erly other than for ro ot Where

do the les go and what should their p ermissions b e

Put etclpd in your etcrc or etcrclocal usually in etcrclocal after

you start syslogd if you use syslogd

Set the group elds of the le p ermissonsownership as follows

rwxrs root daemon Nov etclpd

rwxsx root daemon Nov usrbinlpc

rwssx root daemon Nov usrbinlpq

rwxsx root daemon Nov usrbinlpr

rwxsx root daemon Nov usrbinlprm

and for each of the sp o ol directories listed in the sd elds of etcprintcap

usrspoollp

total

drwxrwxrx root daemon May

drwxrxrx root root Feb

rwrwr root daemon May seq

rwrwr root daemon May lock

rwrwr root daemon May status

Note these les are created by lpr and lpd so if youvenever run these they

could b e missing so touch them into b eing

Some of these p ermissions maybeoverkill so dont b e surprised if your system

works with dierent p ermissions The fact that lpq needs to b e suid ro ot is inelegant

and maychange in the future

EVERYTHING FOR PRINTING

Alternative approach just make lpc lpr and lprm setuidroot then you can

forget the le p ermissions on the sp o ol queues

Youre free to cho ose dierent directories for the executables on your system

notably lpc is often in etc even though it has commands that are useful to non

ro ot The master lpd lo ck le whichisalways in usrspool so you must have

one of those but you neednt necessarily keep your sp o ol queues there

The main conguration le is etcprintcap although the old binaries lo ok for

it in usretclpdTheREADME says hostsequiv and hostslpd les are lo oked

for in etcinet but again the more accepted convention is to lo cate them in etc

For an simple life

mv i usretcinet etcinet usretc etc

rmdir usretcinet etcinet usretc

ln s etc usretc

ls s etcinet

But make sure the les in usretc and etcinet are not already symlinks

into etc or youll b e in deep water

Eventually youll b e able to delete these symlinks once youve got rid o all the

old stu

Which devlp is myprinter

On an XT bus system LPT b ecomes devlp ma jor minor on an AT

LPT b ecomes devlp ma jor minor To b e more precise

Name Ma jor Minor IO address

lp xb c

lp x

lp x

When the kernel b o ots it says using polling driveristherean

interruptdriven driver

Yes the latest kernels supp ort parrallel p ort IRQs but to enable them you must use

lpcntl The interrupt driver uses less pro cessor time and gives a faster throughput

but sometimes one maycho ose sacrice this to free up an IRQ line If your printer

is devlp using IRQ put

etclpcntl devlp

in your etcrc

If you dont have lpcntl get it from tsxmitedu pubLinuxBETAlp

lpirqtarZ

Whats the dierence b etween the p olling driver and an the in

terrupt driven one

A p olling sits in a lo op rep eatedly reading the p ort hardware to see if it is ready

for another character and then gives it one An interrupt driver go es to sleep and

is woken by the p ort hardware using a hardware interrupt when it wants another

character Polling drivers are easier to write but in multitasking environments they are a bad thing

The Printcap Database

The Printcap Database

Where do I get a printcap for a xxxxx

This question is essentially meaningless see next question

What is the contentofverbetcprintcap

Given the similarity in app earence and name b etween etctermcap and etcprintcap

one could b e forgiven for assuming that they contain analogous infomation This

is not the case Whereas termcap contains informations ab out terminal types

mostly escap e seqences printcap contains information ab out specic printers like

the directory that holds the sp o ol queue and the device name of the printer The

information ab out a printer mo dels escap e sequences and so on are held in the var

ious lters which are programs called by lpd to drive the printer etcprintcap

simply gives the lo cations of these lters Alternatively the NetFAQ has a summary

of some of the more imp ortant leds One last p ointyou should always sp ecify sup

press header sh unless you have text printer and want banners See the banners

question for further expanation

What is the format of a etcprintcap

Ideally lo ok out for the format in etctermcap yes I said em termcap but since

most p eople dont have docs about termcap here are the essentials

Lines starting are comments as you mighthave guessed

For each printer usable from the lpr command on your system there is one

logical line in the le For the sake of readabilityeach logical line may b e spread

over several physical lines by making the last character on all but the last physical

line a backslash

Each logical line has the following format

namenamenamestringcapabilitystring

numericcapabilitynumberbooleancapability

The leading spaces and colon on the second line are for readabilityonly

Aprinter can haveasmany names as you like but conventionally the nal

name is used as a longhand description of the printer Still p eople are free to say

lpr P Fredsgrotty teletyp e if thats the description youvegiven

The list of capabilities can b e as long as needed and the order is not signicant

Each capability is denoted byatwocharacter co de The name capability comes

form the le formats termcap heritage parameter or attribute would b e a more

sensible terms Note from Ross Biro capabilities with character names dont

work prop erly whichiswhy the serial p ort stu in the old binaries failed Capa

bilities having string value and havea delimiter b etween the capability name and

the value while those having a numeric value use a actually they can use either

a or an Bo olean capablilties are true if they app ear in the list and false if they

do not

Sp ecial characters in a string value can b e expressed using escap e sequences

as in C in addition E stands for ESC is also a kind of escap e character

followed by CHAR stands for the controlequivalent of CHAR Thus a stands for

the character controla just like and themselves can b e represented as

and

Example

lpbamBAMs Epson FXlpdevlpsdusrspoollpshmx

dfusrlocallibmagicfilterlpdf

ifusrlocallibmagicfilterlpif

EVERYTHING FOR PRINTING

Name is lp this is the printer that lpr uses by default Its also known as bam

or BAMs Epson FX

The printer is on devlp akaATbus LPT I dont want a burst page

I dont want a le length limit Files queued by lpr d are passed through

usrlocallibmagicfilterlpdf and those queued by lpr through usrlocallibmagicfilterl p

See also the next question

My etcprintcap lo oks identical to someone elses but it do esnt

work why

See if lpc stat rep orts a printer called The last character on a continued line

must b e a If there are whitespace characters after the then it do esnt register

the next line as a continuation

Whats the minimum etcprintcap

This is a silly question but it is frequently asked The answer is lpsh thats

bytes including the linefeed character on the end To use this etcprintcap you

must make devlp a symlink to your printer and create your sp o ol queue directory

as usrspoollpdYou might think that if you wanted banner pages you could

lo ose the sh but the termcap syntax requires at least one charateristic p er entry

Common Problems

Why do I get jobs queued but cannot start daemon or lpc connect

No such file or directory

Firstly this start in the context of this error really means wakeIfps ax do es not

reveal a lpd then you daemon has died or was never started

If you so haveanlpd then you are having trouble with the so cket connection

to lpd I dont really understand this but the problem was common in early days

with the old binaries but developments in the TCPIP co de in the kernel xed it for

most p eople Using the new lpd from the net package without the net kernel

stu sometimes gives this problem

When I get it I nd that kill and restarting lp d a few times will eventually get

rid of the problem There has also b een a suggestion that recompiling your kernel

without TCPIP at all can help If linuxpl with its all new TCPIP stu

do esnt x this then further reserch is probably called for

How do I preventthe staircase eect

Unix terminates each line of a le with a linefeed but not a carriage return so taken

literally a Unix text le printed on an ASCI I device will start each line b elowthe

end of the previous line Some printers can b e set to treat linefeed as carriage

return linefeed others cant If yours can then do simply do that If the printer

cannot b e xed create a shell script lter that reads

binsh

if c then

cat

else

sed e sM

fi echo ne f

Common Problems

where M is a carriage return character not a followed bya MTotyp e M in

emacs use the sequence Cq Cm and in vi use Cv Cm Conventionally this script

is called usrliblpf The test of allows the isertion of carriage returns to b e

switched o by the l switchonlpr

Alternatively your printer mayhave an escap e sequence that will set the way

it handles linefeed characters A simple lter that uses an echo ne command to

send this sequence may b e appropriate

binsh

Filter for HP printers to treat LF as CRLF

echo ne kG

cat

echo ne f

Ross Biros new release will include a lter called lpof that do es this

Why do les with a lot of graphics get truncated

Usually b ecause youve got a limit set on the maximum size le that can sit in the

sp o ol queue Put mx in your printcap

Why do esnt lpr i work

Toget lpr i to work you need a lter istalled as if that implements it The

i switch is simply passed on by lpd to the lter There is such a lter called

usrliblpf that can b e optained from bsd source archives in the directory

bsdsourcelprfilters

Why do esnt lpr p work

Because its broken in the sources from which the old binaries were compiled

lpd always thinks that the printer is characters wide regardless of what printcap

says This is still broken in Rosss new release and Freds p ort of the sources

Lo oking at the sources the x for Freds p ort app ears to b e

printjobcold Sat Feb

printjobc Sun Jun

for i i i

strcpyfontsi ifontsi

strcpywidth

strcpyindent

for i i i

strcpyfontsi ifontsi

sprintfwidth d PW

strcpyindent

EVERYTHING FOR PRINTING

FF DEFFF

if PW pgetnumpw

PW DEFWIDTH

sprintfwidth d PW

if PL pgetnumpl

PL DEFLENGTH

sprintflength d PL

This patchisuntested as I dont have a complete set of net include les on

mymachine yet

One other thing lpd calls pr by full pathname so if you keep pr somewhere

dierent from where lpd lo oks you will need a symlink Where lpd exp ects to nd

pr varies from version to version but I think usrbinpr is the usual place

Whydoeslprmsay too many users

This was a bug in the C library in the scandir function which failed when an

unsorted directory list was requested This has b een xed nowsojustgetanew

libcso Alternatively there is a lprm with a workround by toysohocrdgecom

at sunsiteuncedu in pubLinuxsystemDaemonslprmfixtarz

Whydoes lpc complain that it hasnt stopp ed a daemon

Theres one lpd pro cess that runs all the time and it spawns o children to handle

each printer as needed These children leavelock les lying ab out so lpc thinks

that they are still running and tries to kill them This is probably a bug but its

not serious

Sp ecial

HowdoIgetmyprintertogoback to the default font after each

printout

Dene the tr capability in etcprintcap to b e your printers font reset command

For details of the format of this string see the question on the format of printcap

This may not work if a printout crashes in the middle of an escap e sequence

putting a lot of on the frontmay help but this probably wont b e enough it you

were printing raster graphics when the lter died

How do I prevent a formfeed at the end of every printout

If you dont havean if sp ecied in etcprintcap then lpd will automatically put

a formfeed at the end of eachleIfyoure using a lter then its up to the lter

to decide if it wants to put a formfeed To disable formfeed completely if you dont

havean if put ff in your etcprintcap But please note this suppresses the

formfeed that would usually b e printed if a lter dies If you want formfeeds after

text printouts but not on printouts printed with lpr l then create the following

if lter

binsh

cat

if c then

echo ne f fi

Sp ecial

If you want a formfeed after lpr l to b e optional you can misuse the i switch

to suppress the formfeed with the following trick after all lpr i l would usually

not b e implemented

binsh

cat

use lpr i l to print raw without trailing formfeed

if c o i then

echo ne f

fi

How do I get burstbanner pages

For a simple text printer in particular not p ostscript and a simple text banner

simply take sh out of the printcap record If you wanttoprevent the banner

comming out in whatever fontwas last used on the printer then dene the tr

capability to b e your printers font reset command

If you want a fancy cusomised banner or have a p ostscript printer leave sh in

the printcap and make eachofyour lters print the banner All the information to

put on the banner is included in the lters p ositional parameters RTFMprintcap

for details If youre using myBAMcCauleybhamacuk magicfilter package

then call the co de to print the banners from the cong script

How do I print text on a ps printer

You need a lter based on a program called enscript I dont know where you can

get enscript for Linux

How do I printover a Network

To printontheprinter foo connected to the machine barbaznet from the

machine minebaznet you put an entry likethisinyour etcprintcap on

minebaznet

foolprmbarbaznetrpfoosdusrlpdspoolfoo

and of course create the sp o ol directory usrlpdspoolfoo

Theres no p oint sp ecifying lters and the line in minebaznet etcprintcap

as its the one in barbaznet etcprintcap that will get used

On the machine barbazfooyou need to put minebaznet onalineby

itself in either etchostsequiv or etchostslpd note that putting it in

etchostsequiv will allow for unauthenticated logins as wellasprinting etchostslpd

is printing only

Editors note I realise there are more questions ab out net printing but I dont

know them If you nd any let me know with answers if p ossible See also the

NetFAQ

How do I write lters

In normal Unix terminology lters are just programs so they must have execute

p ermission that read a stream from their standard input and write to their standard

output

lpd lters are lters in the sense that they read from their stdin and write to

their stdout but are not necessarily true lters in that they may assume that their

standard input is a le and p erform lseek op erations on it Im not sure that

such lters are strictly conforming but they seem to work OK

EVERYTHING FOR PRINTING

All lpd lters must conform to a particular command line syntax or more

often simply ignore command line parameters For details of the command line

parameters RTFMprintcap

Its easier to debug lters if you test them in an immediate shell b efore you

install them If your lter make use of its command line arguments youll haveto

sp ecify them to o

mynewfilter file devlp

If you want to write a shell script lter it must haveabinsh header Here

for example is my Epson FX dvi lter

binsh

usrTeXbindvips f

usrbings q sDEVICEepshigh rx dNOPAUSE sOutputFile

Ive written a lter in shell script whichworks OK when I use

it from the shell prompt but fails when I tell lp d to use it

You may need a binsh header You may also need to set PATH within the script

since the daemons PATH may not haveeverything you need

When should I dene an of lter

Never Well strictly sp eaking there are circumstances but youre unlikey to meet

them until youre so familar with lpd that you wont need this FAQ

Where do I get lters for given printers

From BSD source archives I think

Editors note I need a b etter answer here

If you already have a program to printsayDVI on your printer then making

it into a lter is usually a matter of writting trivial shell script see this FAQ

If the program you are using insists on reading a names le as input see the next

question Text mo de lters are trivial to o see this FAQ unless you want lpr to

haveachoice of fonts in which case they are slightly harder than trivial You will

probably want to insert and echo ne command at the b eginning and end of your

lter to set up the font etc to your liking

How do I get a program that wont read from stdin to act as a

lter

For example dviljp insists on a named le as its input and whats more exp ects

one with a dvi sux To make a dvi lter for a laserjet youll have to capture

the stdin into a temp orary le

binsh

cat tmpdvi

dviljp tmp

rm tmpdvi

The problem with this kludge is that is mayhavea very high disk overhead In the long term dviljp should b e xed

The set of lters supp orted by lpd seem strange why arent

there lters for Postscript GIF TIFF and so on

HistoryYou can in fact use any of the lters with the p ossible exception of the

default lter for any reason If youre never going to use Benson Varian raster les

you could use the v switch for GIF les If youareonanetwork remember that

the lter setups go on the print server so you will need to consider other p eoples

needs to o Toavoid running out of p ossible typ es use magic lters

What are magic lters

Magic lters deduce their input les typ es from magic numbers distictivebyte

patterns at particular osets Magic lters are usually p erl scripts shell scripts or

C programs that simply identify the le typ e then call the appropriate nonmagic

lter Blatent plug I BAMcCauleybhamacukhave a generic magic lter

bash script that selects the right lter to use based on the output of the file

command With my magic dvi lter and existing separate dvi and ps lters I can

do things like

lpr d filedvi filedivZ fileps filepsz

This is not yet on any anonftp sites so email me for a copy Once its stable

and Ive had a bit of p ossitive feedback Illuploadit

Magic lters should never sp ecied as of as the output lter only gets called

once if a numb er of les are printed without a gap

Magic lters as if can also b e a problem as they may preventyou say listing

aPostScript or nro le

LinuxFAQ UUCPNewsMail for Linux

This section is an exp ert of the UUCPNEWSMAILFAQ p osted twice monthly

in cola This section and the complete FAQ ab out UUCP and others is written

byVinceSkahan vincevictoriaseawaus mail him for any corrections and

information

Last up date June

General Information

What uucp news and mail software works under Linux

Just ab out everything most with no or minimal patching required

The following is a quick but not allinclusive list of software known to work

under Linux

UUCP

Taylor UUCP

News transp ort

Cnews patchdate no optional sp eedups

Cnews performancerelease needs patching

INN needs patching dynafeed

nntp reference release slurp News readers

LINUXFAQ UUCPNEWSMAIL FOR LINUX

tinp

trn probably also

nn

tass

rn

wae

Mail transp ort

smail

smail

sendmailcIDA

Mail program

elm probably also

pine

pro cmail

deliver

So where are the sources

Atyour friendly neighborhood archive site where you nd sources normally Consult

archie for a list

Cong les for the p ortions of UUCPNewsMail currently in the SLS distribu

tion of Linux can b e found on sunsiteuncedu in the le pubLinuxsystemMailnewspaktar

Do I really need the sources

Yes if you wanttoreal ly understand how the pieces are congured and howthey

t together If you already knowhow probably not unless you wanttochange

the paths used or do custom patching for some reason

There is considerable do cumentation in the sources that do esnt get instal led

that helps ll in the blanks b etween what you need to know and what you can

gure out

How do I get my system a newsmailuucp feed

Please see the how to become a USENET site p erio dic p osting in newsanswers

UUCP

Why do I get timeout on connections when I upgraded to uucp

If you use a Direct device in the Devices le theres now a second timeout

compiled in Make the name of the Device anything other than Direct

News

Why do esnt anonymous uucp seem to work

The SLS anonymous uucp only works in Taylor mo de b ecause its compiled with

HAVETAYLORCONFIGIfyou want to do anon uucp in HDB mo de youll haveto

recompile the sources with just HDB dened

HDB mo de also seems rather particular ab out things like blank spaces and blank

lines in your Permissions le If you get log le entries that indicate no p ermission

for anon uucp a go o d place to start is to make sure that there are no blank lines

comment em out

News

What newsreader is b est

No way Ill op en that can of worms other than to saythatyou denitely want

something with kill les and probably want something with threads

For what little its worth I use nn

with trn why do I get the message dbinit failed

Because you didnt run mthreads from cron to keep the threads database upto

date

Whyismy nn database getting continuously corrupted

If you built it from sources and you asked for the words metho d of building the

database it will denitely get corrupted if your lesystem do esnt handle long le

names iecomposlinuxannounce is more than characters Build it with

the bynumber way of creating the database and youll b e ne

Why cant I p ost to mo derated groups

Probably b ecause the newsreader is trying to call binmail to send the mail and it

do esnt like it Replace the binmail in SLS with the p ort of mailxatarz

from the pubLinuxsystemMail dir on sunsiteuncedu and makeitmode

and group mail like elmandyoull b e all set

Another p ossibilityisthatyou have a mo derated newsgroup set up on your lo cal

system as notmo derated and someb o dy upstream is quietly deleting the article

some systems software not a p erson Makesureyou run a checkgroups every

now and then when the checkgroups article rolls byinnewsadmin every few weeks

WhydoIhave problems that app ear to b e p ermissionrelated

All the stu in usrlocallibnews should b e newsnews except usrlocallibnewssetnewsids

which should b e setuid ro ot

Past versions of SLS had no news group or user by default which caused lots of

problems for p eople if they installed the news software before they added the news

group and user

Why do esnt SLS havethePerformanceRelease of CnewsINN

NNTP

Because SLS cant have everything It has the prep erformance Cnews b ecause its

avery fast and stable implementation for nonnntp sites that ts the needs of a

normal uucponly site If youre that into having the most currentofeverything

you should probably b e building it from the sources

LINUXFAQ UUCPNEWSMAIL FOR LINUX

Whydoesdoexpire say severe space shortage when theres lots

of ro om

Because it cant read etcmtab Makeitmode This happ ens when you

unmountamounted lesystem by ro ot with a umask that do esnt p ermit world

read of les owned by ro ot

How do I set up NNTP

Please see the extended description from Matt Welsh in the UUCPNEWSMAIL

FAQ that app ears routinely in cola

Mail

Whyismy hostnamedomainname notinmy headers and something

funkys there

Because you didnt edit one or more of the following les like the READMElinux

les in the lib directories told you to

usrlocallibsmailpaths

usrlocallibsmailconfig

usrlocallibelmelmrc

Why cant elm write to my mailb ox

You need elm and lter to b e mo de and group mail and also have usrspoolmail

mo de and group mail

Is sendmailIDAavailable for Linux instead of smail

Yes Ive recently switched from smail to sendmailIDA from the binary distri

bution on sunsiteuncedu and it works greatand Im a uucponly site Lo ok in

pubLinuxsystemMail for it