home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1996 February / pcw-0296-cdrom.iso / pc / slakware.faq < prev    next >
Text File  |  1994-06-23  |  10KB  |  256 lines

  1. Slackware FAQ, last revised: 9 June 1994
  2.  
  3. These are questions people ask me quite often. Hopefully now that they're
  4. answered here that won't be the case. :^)
  5.  
  6. -----
  7.  
  8. Q: Why do I get "network unreachable" under Slackware?
  9.  
  10. A: There are a couple of possibilities. For most users, things work right out
  11.    of the box. However, if you're running into this problem here are two
  12.    workarounds you can try:
  13.  
  14.    1. Reverse the broadcast and netmask arguments (and their variables)
  15.       in the call to ifconfig in /etc/rc.d/rc.inet1. Make sure you are
  16.       not trying to route your own IP address - you shouldn't have to.
  17.  
  18.    2. Make sure /etc/networks is properly configured.
  19.  
  20.    3. You may want to try the 'netconfig' script (in the package netcfg.tgz).
  21.       It's not perfect, but does a pretty good job. 
  22.  
  23. -----
  24.  
  25. Q: Why the $%#@! isn't my UltraStor SCSI detected? It works under DOS!
  26.  
  27. A: Set the I/O address to 0x340 instead to 0x330.
  28.  
  29.    For any hardware that doesn't work, a good rule is to try playing around
  30.    with the IRQ and I/O settings on it to see what happens. If your system
  31.    is up and running and you're having problems with a CD-ROM or tape or
  32.    something like this, you can always look around for the driver source in
  33.    /usr/src/linux/drivers... really, it won't bite!  Often, the source 
  34.    contains important documentation, such as the default IRQ settings for
  35.    that type of device, and the major number for the entry in /dev. Also,
  36.    try other bootkernels and see if that helps.
  37.  
  38. -----
  39.  
  40. Q: I'm using UMSDOS and would like to use the same swapspace under Windows
  41.    and Linux. Can this be done?
  42.  
  43. A: If you want to share a Linux-UMSDOS swapfile with MS-Windows, you can
  44.    do the following:
  45.  
  46.    1. Create PERMANENT(!) swap file in MS-Windows with size NNNN kbytes.
  47.    2. In /etc/rc.d/rc.local add the following lines:
  48.  
  49.    rm -f /DOS/windows/spart.par  <--- Needed in order to suppress
  50.                                       Windows complain on next start!
  51.    mkswap /DOS/386spart.par NNNN
  52.    sync
  53.    swapon /DOS/386spart.par
  54.  
  55.    3.In /etc/rc.d/rc.0 add "swapoff" for this file.
  56.  
  57. -----
  58.  
  59. Q: How can I install and remove software now that the Slackware Linux 
  60.    distribution is installed on my machine?
  61.  
  62. A: To remove packages, type "pkgtool" and follow the prompts. Pkgtool will
  63.    also allow you to add packages that are in the current directory.
  64.  
  65.    The preferred way to install software is with the "setup" script.
  66.    When you do your initial installation, setup puts a copy of itself in your 
  67.    /sbin for future use. You can also add software to your machine using the 
  68.    boot/install disk, if you really want to. 
  69.  
  70.    When adding software to a running system via NFS, it is preferable to
  71.    mount the partition yourself and then use the 'install from a mounted
  72.    directory' feature of setup.
  73.  
  74.    There are also command line utilities that allow you to create, install,
  75.    and remove packages. For these, you should refer to the manpages:
  76.    installpkg(8), removepkg(8), makepkg(8), explodepkg(8). A simple example
  77.    of how you would install a package with installpkg:
  78.  
  79.    installpkg package.tgz
  80.  
  81. -----
  82.  
  83. Q: I set my partitions to "Linux native" but Slackware still won't detect
  84.    them! What can I do?
  85.  
  86. A: This problem is rare and I still don't know what causes it.
  87.  
  88.    [ Note that this is not the same problem that usually affects the IBM PS/1,
  89.    Thinkpad, and similar machines that do not detect the harddrive. If you've
  90.    got one of these machines, and fdisk is giving you problems, your answer is
  91.    still ahead :^) ]
  92.  
  93.    Here's a workaround you can use to install anyway:
  94.  
  95.    1. Start tty12 or tty144 using one of the bootkernel disks.
  96.    2. Make and format partitions for Linux.
  97.    3. Mount the target partitions under /mnt.
  98.    4. Type "setup -target_mounted"
  99.    5. Follow the rest of the instructions to install.
  100.    6. Type "vi /mnt/etc/fstab" and enter an appropriate fstab.
  101.       As an example, here's what mine contains:
  102.  
  103. /dev/hdb2   swap    swap   defaults 
  104. /dev/hda2   /       ext2   defaults
  105. /dev/hda3   /usr    xiafs  defaults 
  106. /dev/hda1   /dos    msdos  defaults 
  107. /dev/hdb1   /os2    msdos  defaults 
  108. none        /proc   proc   defaults
  109.  
  110.    To give you some more info about this file, the first field is the
  111.    partition to be mounted, the second is where it should be mounted, the
  112.    third is the filesystem type, and the last field is the options to use.
  113.    Unless you're a Linux wizard, just set this to "defaults".
  114.  
  115.    Other things to remember about this file:
  116.       - Make sure that you list the root partition before any other partitions
  117.         that are mounted beneath it.
  118.       - Add the /proc line, or "ps", "w", etc, won't work.
  119.       - It's a good idea to put a blank line at the end of the file, as I've
  120.         had reports that partitions listed on the last line might not be 
  121.         mounted.
  122.  
  123.    7. Once you've made and saved this file you can reboot with ctrl-alt-delete.
  124.  
  125. -----
  126.  
  127. Q: I have a (PS/1 || Valuepoint || Thinkpad), and can't install because fdisk
  128.    can't see my hard drive. How can I get around this?
  129.  
  130. A: You'll need to enter your drive parameters at the bootkernel prompt. You
  131.    can even specify the geometry for your second IDE drive by supplying a
  132.    second  hd= parameter right after the first one. 
  133.  
  134.    When you boot the bootkernel disk, you'll see more information about the
  135.    format used to pass your drive parameters to the kernel at the LILO prompt
  136.    and allow your drive to be recognized.
  137.  
  138.    You'll have to edit your lilo.conf file to add a similar hd= flag if you
  139.    want LILO to work. Add this as the TOP line in the file:
  140.  
  141.    append="hd=cyl,hds,secs"
  142.  
  143.    Where "cyl", "hds", and "secs" are the number of cylinders, sectors,
  144.    and heads on the drive.
  145.  
  146.    If you have two IDE drives, specify both drives (like this):
  147.  
  148.    append="hd=967,13,31 hd=944,14,40"
  149.  
  150. -----
  151.  
  152. Q: Why do my /etc/issue and /etc/motd keep resetting themselves at boot time?
  153.  
  154. A: The /etc/rc.d/rc.S resets them out every time you boot after figuring out
  155.    which kernel you're running -- otherwise the kernel version printed at login
  156.    might not stay current.
  157.  
  158.    If you want to write your own /etc/issue and /etc/motd, you need to comment
  159.    out that part of /etc/rc.d/rc.S.
  160.  
  161. -----
  162.  
  163. Q: Emacs dumps core, complains of a missing library, or lacks X11 support! Why?
  164.  
  165. A: The GNU Emacs series includes your choice of a version with X11 support, or
  166.    one without. Make sure you have the right binary for your machine. 
  167.  
  168.    The binary supporting X11 is installed as part of a package on the first 
  169.    disk that you'll need to install whether you want X11 support or not. If
  170.    you DO NOT want X11 support, install the package 'emac_nox.tgz' on the last
  171.    disk of the Emacs series.
  172.  
  173.    If you just install all of the disks, you don't get X11 support. It had to
  174.    be one way or the other, so if you're not paying attention when you install
  175.    at least this way it will run no matter what.
  176.  
  177. -----
  178.  
  179. Q: Why do my compiles sometimes die with 'signal 11: internal compiler error'?
  180.  
  181. A: This indicates a hardware problem in about 99% of the cases. It can usually
  182.    be fixed by increasing the number of wait states in the CMOS settings. It
  183.    can almost always be fixed by turning off the RAM cache, but this should be
  184.    your last resort since it will cause a noticeable slowdown.
  185.  
  186. -----
  187.  
  188. Q: How can I change (or get rid of) the color ls?
  189.  
  190. A: Read the man page, and check out the file /etc/DIR_COLORS. You can
  191.    configure the colors any way you like, or shut them off entirely. Also, you
  192.    can copy /etc/DIR_COLORS into your home directory as '.dir_colors' to 
  193.    override the global defaults on a user by user basis.
  194.  
  195. -----
  196.  
  197. Q: I start X with "openwin" and it works OK, but I can't switch virtual
  198.    consoles. Why?
  199.  
  200. A: On a Linux text screen, you switch virtual consoles with Alt-F1 through 
  201.    Alt-F8. Under XFree-86, you must use Ctrl-Alt-F1 through Ctrl-Alt-F8. 
  202.    Another useful 'secret' key combination is RightShift-PgUp/PgDown for
  203.    scrollback. (a random amount ranging from none to a few pages, depending
  204.    on the state of your video text buffer memory)
  205.  
  206. -----
  207.  
  208. Q: Why can't I use the new ghostscript with X?
  209.  
  210. A: Make sure you have gs_x11.tgz from disk XAP1 installed.
  211.  
  212. -----
  213.  
  214. Q: I can't get anything to work at all! What's the deal?
  215.  
  216. A: If you seem to suffer catastrophic failure (!), then check the file FILE_LIST
  217.    on ftp.cdrom.com in /pub/linux/slackware against the contents of your disks
  218.    and make sure you're not missing any files. 
  219.  
  220.    Also, I've noticed that most of the reports of kernel panics and system 
  221.    hangs have come from people with 4MB. If you're running into these types
  222.    of problems I'd suggest forking over the $$$ for 4 more meg. I have 8 MB of
  223.    RAM and never have crashes. (well, only when I really push my luck)
  224.    If you don't want to do that, then go through your /etc/rc.d/rc.* files and
  225.    get rid of any daemons you don't use, like crond, lpd, or selection.
  226.  
  227.    If you've got 4 MB and you're getting 'virtual memory exceeded in new'
  228.    warnings, make sure you set up and activate a swap partition before running
  229.    setup. If you're really hard up on memory, you can boot a rootdisk using
  230.    'editroot' instead of one of the usual boot kernels. This will mount the 
  231.    floppy in the root drive, and you'll have to install from the other drive
  232.    or from the hard drive. You will also not be able to create any kind of boot
  233.    disk, so you'll have to install LILO and take your chances. I only suggest
  234.    using this approach if a swapfile will not work.
  235.  
  236. -----
  237.  
  238. Q: How do I make a bootkernel disk that uses a custom kernel?
  239.  
  240. A: Look in the ./kernels subdirectory. You'll find complete instructions
  241.    on how to make them in there.
  242.  
  243. -----
  244.  
  245. Also - at ftp.gwdg.de:/pub/linux/install-mount/slack-info are some more
  246. networking hints.
  247.  
  248. In addition, the LDP people have put out an excellant set of manuals that I
  249. may include in a future Slackware release. These are available on
  250. sunsite.unc.edu in /pub/Linux/docs/LDP.
  251.  
  252. ---
  253. Patrick Volkerding
  254. volkerdi@mhd1.moorhead.msus.edu
  255. volkerdi@ftp.cdrom.com
  256.