zero
01-14-2007, 08:57 AM
Part 1
Intro:
--------------------------------------------------------------------------------
Welcome to the Brief Linux FAQ (BLFAQ)!
This document contains a list of some frequently asked Linux questions and their
answers. It is meant to provide general help to Linux users, especially newbies.
I invite you to modify and add to this list but if you do so please be sure to
mail me so that I can include your changes in future releases. Finally, I hope
that this document will prove helpful to all Linux users, newbies especially.
Current releases of this document can be found at:
<ftp://metalab.unc.edu/pub/Linux/docs/faqs/BLFAQ>
FAQs:
--------------------------------------------------------------------------------
Q: I am trying to use the text based ftp program to download some stuff via
anonymous ftp from an ftp site. I have never done this before and the ftp
server doesn't seem to be letting me log in. Do I need a special user name
and password to do this?
A: To use anonymous ftp services log in with user name "anonymous" without
quotations and your full e-mail address as your password.
Some ftp sites will also accept the words "ftp" or "guest" instead of the
word "anonymous" as user name.
--------------------------------------------------------------------------------
Q: I plan to use the FIPS program to shrink a FAT32 partition (such as one used
by MS-Windows 95/9Cool and hence create space for my Linux operating system.
Can this be done?
A: Yes, but in order to do so you will need a version of FIPS at least as recent
as FIPS 1.5c. You can get the latest version of FIPS by anonymous ftp from
the official FIPS web site at <http://www.igd.fhg.de/~aschaefe/fips/>.
--------------------------------------------------------------------------------
Q: I am using the DOS Fdisk utility to destructively repartition my hard drive.
How should I deal with the question pertaining to whether or not I should
"enable large disk support"?
A: That question really has to do with whether you want to use a FAT32 or a
FAT16 file system with your DOS/Windows partition. Linux will coexist equally
well with both file systems except that in order to see a FAT32 file system
from your Linux partition you will need a version of the kernel at least
as recent as 2.0.35 .
--------------------------------------------------------------------------------
Q: I have upgraded to kernel 2.0.35 or later but still can't see my FAT32
partition. What went wrong?
A: You must ensure that you have an entry for your DOS partition in your
/etc/fstab file resembling the line:
/dev/hda1 /dos vfat auto,user,rw 0 0
Once the line is there you can just issue the command "umount -a;mount -a"
to mount your DOS partition under the /dos directory.
--------------------------------------------------------------------------------
Q: I am trying to install Linux via CD-ROM. I have made space for Linux on my
hard drive but inserting the Linux CD into the CD-ROM drive and rebooting
has no effect.
A: You might have to tell your BIOS (Basic I/O System) to enable booting
from CD-ROM by changing the default BIOS settings. On most systems you may
access the BIOS settings by pressing the <del> key on your keyboard shortly
after rebooting. If implemented by the BIOS as a separate feature you may
also have to change the BIOS's boot sequence.
--------------------------------------------------------------------------------
Q: I have completed the installation process but upon reboot I get a LI
prompt or a bunch of zeros and ones.
A: If your machine is somewhat old and you have an IDE (or EIDE) hard drive then
you must install your root partition completely below cylinder 1023
which means below 512 MB of disk space. On SCSI drives this means
your root partition must be contained within approximately one GB.
If your machine is fairly new and your BIOS supports it you may be able to
get around this problem by enabling LBA mode in the BIOS settings.
--------------------------------------------------------------------------------
Q: I can log in and out of my system but how do I shut it down / reboot it?
A: There are various ways. The most popular ones are logging in as root and
issuing the command "/sbin/shutdown -h now" or "/sbin/halt" to shut it
down or "/sbin/shutdown -r now" or "/sbin/reboot" to reboot.
On most systems while using a text based console pressing the <ctrl>, <alt>
and <del> keys simultaneously will also reboot the system.
--------------------------------------------------------------------------------
Q: I have shut down my system with the "halt" command and gotten to a message
saying "System Halted" but why is my computer still on?
A: If you want it to power off on shutdown then you must recompile the kernel to
enable support for that feature by selecting the appropriate entry in the
APM options.
--------------------------------------------------------------------------------
Q: My new video card is listed at <http://www.linux.org/> as a card which the
X Window System supports under Linux but I cannot get it to work.
A: Make sure that you have the newest version of XFree86 and that you installed
the right X Server. If all else fails you might want to try selecting the
generic SVGA server as your X Server.
--------------------------------------------------------------------------------
Q: I have successfully installed the X Window System and use the startx
command to run it from a text based virtual console. How can I have the X
Window System run at all times so that I don't have to use the startx
command?
A: If you are running Red Hat then you can edit the file /etc/inittab on
your system and replace the entry
id:3:initdefault:
with the entry
id:5:initdefault:
and reboot.
On other systems you might have to change the number 5 (the run level) to
another number like 4. How to choose the correct run level should be clear
by reading the comments in the file /etc/inittab . Alternatively, you might
have to change a link in /etc/rc[2345].d . Run levels 2-5 don't have really
strong conventions behind them like 0, 1, and 6 do. It depends on the
distribution.
--------------------------------------------------------------------------------
Q: When I use the X Window system and open multiple windows I find that my
screen size is insufficient. How can I use more virtual screen space?
A: Most window managers running under X Window have a built in feature known as
a pager which allows you to have more virtual screen space.
--------------------------------------------------------------------------------
Q: I would like to have xdm run multiple local displays on my system and switch
back and forth by pressing <ctrl><alt><F*> where * is a number between
1 and 12.
A: If you wanted to run 6 virtual consoles accessible by pressing the keys
<ctrl><alt><F7> through <ctrl><alt><F12> then you could put the following
entries in the file /usr/X11R6/lib/X11/xdm/Xservers
:0 local /usr/X11R6/bin/X vt07 :0
:1 local /usr/X11R6/bin/X vt08 :1
:2 local /usr/X11R6/bin/X vt09 :2
:3 local /usr/X11R6/bin/X vt10 :3
:4 local /usr/X11R6/bin/X vt11 :4
:5 local /usr/X11R6/bin/X vt12 :5
I would limit myself to only a few of these though as X seems to eat up
quite a lot of memory when multiple displays are running.
--------------------------------------------------------------------------------
Q: I hate the sound of the bell. I would prefer to disable it perhaps enabling
the visual bell as an alternative.
A: If you are running X then you can simply type "xset -b" without quotation
marks at the command prompt. Alternatively, if you are running the bash
shell then you can add the command "xset -b 2> /dev/null" without quotation
marks at the end of your .bash_profile file in your home directory to have
the audible bell disabled each time you log in.
For more information see the Visual-Bell-mini-HOWTO at
<http://www.linux.org/>
--------------------------------------------------------------------------------
Q: I have access to a remote Unix machine that has some commercial software that
uses X which I would like to run remotely on my display. How do I do it?
A: First connect to the remote machine using dip or whatever you use. If the
remote machine is called grasshopper.uvw.edu and your machine is called
kiwi.fruit.org then first type
xhost +grasshopper.uvw.edu
from your own machine's shell prompt while running X. If you telnet to the
remote machine and you're using a modem to connect then your machine name
on the Internet may be different from your actual machine name at home
so be sure to use the finger command on the remote machine with your remote
user name as an argument to find out what your machine name is on the
Internet. Assuming your machine name has not changed you must type
export DISPLAY=kiwi.fruit.org:0.0
on the remote machine if it uses the Korn shell or the equivalent if it uses
another shell. You should be now ready to fire up the remote application
from your machine.
Intro:
--------------------------------------------------------------------------------
Welcome to the Brief Linux FAQ (BLFAQ)!
This document contains a list of some frequently asked Linux questions and their
answers. It is meant to provide general help to Linux users, especially newbies.
I invite you to modify and add to this list but if you do so please be sure to
mail me so that I can include your changes in future releases. Finally, I hope
that this document will prove helpful to all Linux users, newbies especially.
Current releases of this document can be found at:
<ftp://metalab.unc.edu/pub/Linux/docs/faqs/BLFAQ>
FAQs:
--------------------------------------------------------------------------------
Q: I am trying to use the text based ftp program to download some stuff via
anonymous ftp from an ftp site. I have never done this before and the ftp
server doesn't seem to be letting me log in. Do I need a special user name
and password to do this?
A: To use anonymous ftp services log in with user name "anonymous" without
quotations and your full e-mail address as your password.
Some ftp sites will also accept the words "ftp" or "guest" instead of the
word "anonymous" as user name.
--------------------------------------------------------------------------------
Q: I plan to use the FIPS program to shrink a FAT32 partition (such as one used
by MS-Windows 95/9Cool and hence create space for my Linux operating system.
Can this be done?
A: Yes, but in order to do so you will need a version of FIPS at least as recent
as FIPS 1.5c. You can get the latest version of FIPS by anonymous ftp from
the official FIPS web site at <http://www.igd.fhg.de/~aschaefe/fips/>.
--------------------------------------------------------------------------------
Q: I am using the DOS Fdisk utility to destructively repartition my hard drive.
How should I deal with the question pertaining to whether or not I should
"enable large disk support"?
A: That question really has to do with whether you want to use a FAT32 or a
FAT16 file system with your DOS/Windows partition. Linux will coexist equally
well with both file systems except that in order to see a FAT32 file system
from your Linux partition you will need a version of the kernel at least
as recent as 2.0.35 .
--------------------------------------------------------------------------------
Q: I have upgraded to kernel 2.0.35 or later but still can't see my FAT32
partition. What went wrong?
A: You must ensure that you have an entry for your DOS partition in your
/etc/fstab file resembling the line:
/dev/hda1 /dos vfat auto,user,rw 0 0
Once the line is there you can just issue the command "umount -a;mount -a"
to mount your DOS partition under the /dos directory.
--------------------------------------------------------------------------------
Q: I am trying to install Linux via CD-ROM. I have made space for Linux on my
hard drive but inserting the Linux CD into the CD-ROM drive and rebooting
has no effect.
A: You might have to tell your BIOS (Basic I/O System) to enable booting
from CD-ROM by changing the default BIOS settings. On most systems you may
access the BIOS settings by pressing the <del> key on your keyboard shortly
after rebooting. If implemented by the BIOS as a separate feature you may
also have to change the BIOS's boot sequence.
--------------------------------------------------------------------------------
Q: I have completed the installation process but upon reboot I get a LI
prompt or a bunch of zeros and ones.
A: If your machine is somewhat old and you have an IDE (or EIDE) hard drive then
you must install your root partition completely below cylinder 1023
which means below 512 MB of disk space. On SCSI drives this means
your root partition must be contained within approximately one GB.
If your machine is fairly new and your BIOS supports it you may be able to
get around this problem by enabling LBA mode in the BIOS settings.
--------------------------------------------------------------------------------
Q: I can log in and out of my system but how do I shut it down / reboot it?
A: There are various ways. The most popular ones are logging in as root and
issuing the command "/sbin/shutdown -h now" or "/sbin/halt" to shut it
down or "/sbin/shutdown -r now" or "/sbin/reboot" to reboot.
On most systems while using a text based console pressing the <ctrl>, <alt>
and <del> keys simultaneously will also reboot the system.
--------------------------------------------------------------------------------
Q: I have shut down my system with the "halt" command and gotten to a message
saying "System Halted" but why is my computer still on?
A: If you want it to power off on shutdown then you must recompile the kernel to
enable support for that feature by selecting the appropriate entry in the
APM options.
--------------------------------------------------------------------------------
Q: My new video card is listed at <http://www.linux.org/> as a card which the
X Window System supports under Linux but I cannot get it to work.
A: Make sure that you have the newest version of XFree86 and that you installed
the right X Server. If all else fails you might want to try selecting the
generic SVGA server as your X Server.
--------------------------------------------------------------------------------
Q: I have successfully installed the X Window System and use the startx
command to run it from a text based virtual console. How can I have the X
Window System run at all times so that I don't have to use the startx
command?
A: If you are running Red Hat then you can edit the file /etc/inittab on
your system and replace the entry
id:3:initdefault:
with the entry
id:5:initdefault:
and reboot.
On other systems you might have to change the number 5 (the run level) to
another number like 4. How to choose the correct run level should be clear
by reading the comments in the file /etc/inittab . Alternatively, you might
have to change a link in /etc/rc[2345].d . Run levels 2-5 don't have really
strong conventions behind them like 0, 1, and 6 do. It depends on the
distribution.
--------------------------------------------------------------------------------
Q: When I use the X Window system and open multiple windows I find that my
screen size is insufficient. How can I use more virtual screen space?
A: Most window managers running under X Window have a built in feature known as
a pager which allows you to have more virtual screen space.
--------------------------------------------------------------------------------
Q: I would like to have xdm run multiple local displays on my system and switch
back and forth by pressing <ctrl><alt><F*> where * is a number between
1 and 12.
A: If you wanted to run 6 virtual consoles accessible by pressing the keys
<ctrl><alt><F7> through <ctrl><alt><F12> then you could put the following
entries in the file /usr/X11R6/lib/X11/xdm/Xservers
:0 local /usr/X11R6/bin/X vt07 :0
:1 local /usr/X11R6/bin/X vt08 :1
:2 local /usr/X11R6/bin/X vt09 :2
:3 local /usr/X11R6/bin/X vt10 :3
:4 local /usr/X11R6/bin/X vt11 :4
:5 local /usr/X11R6/bin/X vt12 :5
I would limit myself to only a few of these though as X seems to eat up
quite a lot of memory when multiple displays are running.
--------------------------------------------------------------------------------
Q: I hate the sound of the bell. I would prefer to disable it perhaps enabling
the visual bell as an alternative.
A: If you are running X then you can simply type "xset -b" without quotation
marks at the command prompt. Alternatively, if you are running the bash
shell then you can add the command "xset -b 2> /dev/null" without quotation
marks at the end of your .bash_profile file in your home directory to have
the audible bell disabled each time you log in.
For more information see the Visual-Bell-mini-HOWTO at
<http://www.linux.org/>
--------------------------------------------------------------------------------
Q: I have access to a remote Unix machine that has some commercial software that
uses X which I would like to run remotely on my display. How do I do it?
A: First connect to the remote machine using dip or whatever you use. If the
remote machine is called grasshopper.uvw.edu and your machine is called
kiwi.fruit.org then first type
xhost +grasshopper.uvw.edu
from your own machine's shell prompt while running X. If you telnet to the
remote machine and you're using a modem to connect then your machine name
on the Internet may be different from your actual machine name at home
so be sure to use the finger command on the remote machine with your remote
user name as an argument to find out what your machine name is on the
Internet. Assuming your machine name has not changed you must type
export DISPLAY=kiwi.fruit.org:0.0
on the remote machine if it uses the Korn shell or the equivalent if it uses
another shell. You should be now ready to fire up the remote application
from your machine.