home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / INSTALL / SLAKWARE.FAQ < prev    next >
Encoding:
Text File  |  1995-04-20  |  20.4 KB  |  526 lines

  1. Slackware FAQ, last revised: 5 March 1995
  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: When I installed Slackware, the system could see my CD-ROM just fine.  But,
  9.    when I try to boot using LILO or the bootdisk the system doesn't find the
  10.    CD-ROM drive anymore!  How can I fix this?
  11.  
  12. A: The problem is probably that you used a bootkernel disk with support for your
  13.    CD-ROM drive, but didn't install a kernel with support.  If you have a 
  14.    non-SCSI CD-ROM drive, or a SCSI CD-ROM drive on a controller with alpha
  15.    (experimental) support, then you may need to use a kernel from the Q disk
  16.    series that contains the proper support.
  17.  
  18.    You can use the same bootkernel disk you installed the system with to get
  19.    into your machine.  Use a command like this on the LILO prompt, but replace
  20.    the root device name with the one you used on your machine:
  21.  
  22.    mount root=/dev/hda1
  23.  
  24.    Once you're logged in, you need to install a new kernel.  Use pkgtool or
  25.    installpkg to install it:
  26.  
  27.    cd /cdrom/slakware/q4   (or possibly another directory with kernel packages)
  28.    installpkg mitsumi.tgz  (this one has Mitsumi CD support)
  29.  
  30.    You'll need to install LILO, build a bootdisk, or have Loadlin boot the new 
  31.    kernel before it will work.  See the question below about "I just built a 
  32.    new kernel..." (The kernel packages install the kernel as /vmlinuz, not 
  33.    zImage, so use /vmlinuz wherever the answer mentions zImage.)
  34.  
  35.    NOTE: for the best possible results, you need to compile a kernel that only
  36.    contains drivers for the hardware you have.  If you're ready to tackle that
  37.    task, zless /usr/doc/faq/howto/Kernel-HOWTO.gz on your installed system.
  38.  
  39. -----
  40.  
  41. Q: Why isn't my Sony CDU-31/33a detected by Linux anymore?  It used to work!
  42.  
  43. A: From the source code:
  44.  
  45. + * WARNING -   All autoprobes have been removed from the driver.
  46. + *             You MUST configure the CDU31A via a LILO config
  47. + *             at boot time or in lilo.conf.  I have the
  48. + *             following in my lilo.conf:
  49. + *
  50. + *                append="cdu31a=0x1f88,0,PAS"
  51. + *
  52. + *             The first number is the I/O base address of the
  53. + *             card.  The second is the interrupt (0 means none).
  54. + *             The third should be "PAS" if on a Pro-Audio
  55. + *             spectrum, or nothing if on something else.
  56.  
  57. You can also use this option with Loadlin:
  58.  
  59. C:\LOADLIN\LOADLINX C:\LINUX\VMLINUZ root=c: cdu31a=0x1f88,0,PAS
  60.  
  61. Or, on the bootkernel LILO: prompt.  Examples:
  62.  
  63. LILO: ramdisk cdu31a=0x1f88,0,PAS
  64.  
  65. LILO: mount root=/dev/sda1 cdu31a=0x1f88,0,PAS ro
  66.  
  67. -----
  68. Q: I was able to install fine, but the installed system won't boot!
  69.  
  70. A: Slackware uses stripped down kernels to do the actual installation -- in
  71.    other words, the kernels don't have any more drivers than needed to control
  72.    only the device needed to complete the installation.  The kernels that are
  73.    installed to the system are more full featured, with more ethernet, mouse,
  74.    filesystem, and other drivers.  Sometimes this can lead to hangs at boot
  75.    time when the kernel misidentifies an piece of hardware that's unusual or
  76.    at a non-standard port/IRQ.
  77.  
  78.    When this happens, you need to try a different kernel.  First, use the
  79.    bootdisk that worked during installation to get your system started.  To
  80.    do this, boot the disk and enter something like this at the LILO prompt:
  81.  
  82.    mount root=/dev/sda2
  83.  
  84.    (if /dev/sda2 is your root Linux partition, otherwise use the appropriate
  85.    device name for your system)
  86.  
  87.    Once you've got the system running, install or compile a different kernel.
  88.    Try to include only the device drivers you need for your hardware.  
  89.  
  90.    Instructions on compiling the kernel can be found in your kernel source
  91.    directory (if you installed the kernel source, that is).  The kernel
  92.    source is usually found in /usr/src/linux.
  93.  
  94.    Briefly, this is the method for building a new kernel:
  95.  
  96.    cd /usr/src/linux
  97.    make config   (then answer the questions about what you need)
  98.    make dep ; make clean ; make zImage
  99.  
  100.    If the zImage is successfully built, see an answer below which explains
  101.    how to install it with LILO or Loadlin, or make a new bootdisk from it.
  102.    Once you've done that, you might want to clean up /usr/src/linux by cd'ing
  103.    into it and doing another 'make clean'.
  104.  
  105.    Good luck!  If you can handle this, you're well on your way to becoming a
  106.    Linux guru.
  107.  
  108. -----
  109.  
  110. Q: I got a PROBLEM_WITH_INEWS_DOMAIN_FILE!
  111.  
  112. A: Then set your hostname in /etc/NNTP_INEWS_DOMAIN.
  113.  
  114. -----
  115.  
  116. Q: Why do I get "network unreachable" under Slackware?
  117.  
  118. A: There are a couple of possibilities. For most users, things work right out
  119.    of the box. However, if you're running into this problem here are two
  120.    workarounds you can try:
  121.  
  122.    1. Reverse the broadcast and netmask arguments (and their variables)
  123.       in the call to ifconfig in /etc/rc.d/rc.inet1. Make sure you are
  124.       not trying to route your own IP address - you shouldn't have to.
  125.  
  126.    2. Make sure /etc/networks is properly configured.
  127.  
  128.    3. You may want to try the 'netconfig' script (in the package netcfg.tgz).
  129.       It's not perfect, but does a pretty good job. 
  130.  
  131.    4. Make sure the kernel you're using supports your hardware.  Most of the
  132.       kernels provided with Slackware include a /boot/config.in file where you
  133.       can look up the compilation options.
  134.  
  135. -----
  136.  
  137. Q: Why the $%#@! isn't my UltraStor SCSI detected? It works under DOS!
  138.  
  139. A: Set the I/O address to 0x340 instead to 0x330.
  140.  
  141.    For any hardware that doesn't work, a good rule is to try playing around
  142.    with the IRQ and I/O settings on it to see what happens. If your system
  143.    is up and running and you're having problems with a CD-ROM or tape or
  144.    something like this, you can always look around for the driver source in
  145.    /usr/src/linux/drivers... really, it won't bite!  Often, the source 
  146.    contains important documentation, such as the default IRQ settings for
  147.    that type of device, and the major number for the entry in /dev. Also,
  148.    try other bootkernels and see if that helps.
  149.  
  150. -----
  151.  
  152. Q: My large (> 1/2 gig) IDE drive reports more than 16 heads, and as a 
  153.    result Linux won't install on it. What can I do?
  154.  
  155. A: See the file EIDE.TXT for instructions on how to make it work. (Thanks to
  156.    Bob DiMarco for forwarding this to me, and Patrick LoPresti for compiling
  157.    the information in the first place)
  158.  
  159.    Note that newer kernels (> 1.1.40) will do this translation for you 
  160.    automatically, and thus make the workaround unnecessary. Once these new
  161.    kernels make it into the Q series, you should probably use one of them if
  162.    you have an EIDE drive and want to avoid the whole problem.
  163.  
  164. -----
  165.  
  166. Q: How do I make a Slackware bootkernel disk with this new kernel I made?
  167.  
  168. A: OK, well you grab an existing one like the "bare.gz", put it on a floppy,
  169.    and do this:
  170.  
  171.    mount /dev/fd0 /mnt (this mounts it)
  172.    cat zImage > /mnt/vmlinuz (put the new kernel in place)
  173.    rdev -R /mnt/vmlinuz 0    (mount read-write)
  174.    rdev /mnt/vmlinuz /dev/fd0H1440   (use that drive, or /dev/fd0h1200)
  175.    rdev -r /mnt/vmlinuz 1440 (set the ramdisk size, or use 1200 with 1.2 meg)
  176.    lilo -r /mnt  (reinstall lilo)
  177.    umount /mnt   (that's it! you're done! :^)
  178.  
  179.    If you want it to stop and give the message to switch disks, you'll need the
  180.    ramdisk.c patch in /pub/linux/slackware/kernels on ftp.cdrom.com. I have no
  181.    idea if this will still patch into the newest kernels. Otherwise, you don't
  182.    really need it if you're brave enough to just switch the new disk in as soon
  183.    as you see the "Uncompressing Linux..." message. It's always worked for me.
  184.  
  185. -----
  186.  
  187. Q: My backspace is acting strangely under X?  How can I fix it?
  188.  
  189. A: Well, I've never noticed a real problem, but I occasionally hear 
  190.    about this.  You might want to try adding this to your .Xmodmap in
  191.    /usr/X11/lib/X11/xinit or $HOME:
  192.  
  193. keycode 22 = BackSpace
  194.  
  195. -----
  196.  
  197. Q: I just built a new kernel. Now how to I go about replacing my existing
  198.    kernel with this new zImage file?
  199.  
  200. A: First, you must prepare the new kernel. If you're using UMSDOS, you'll want 
  201.    your system to boot read-write. Otherwise, you'll want it to boot read-only
  202.    so your filesystems can be safely checked. So, do this:
  203.  
  204.    For UMSDOS:
  205.       rdev -R zImage 0
  206.    For any other filesystem type:
  207.       rdev -R zImage 1
  208.  
  209.    Then, you'll need to set the root partition. For example, if your root 
  210.    Linux partition is /dev/hda2, you'd do this:
  211.  
  212.       rdev zImage /dev/hda2
  213.  
  214.    Then, you can set a video mode if you like. As an example, this sets normal
  215.    80x25 console mode:
  216.  
  217.       rdev -v zImage -1
  218.  
  219.    Other modes include:  -3 = Prompt, -2 = Extended VGA. You might need to 
  220.    remove a line in your /etc/lilo.conf that forces normal video if you use
  221.    LILO and wish to try an extended video mode.
  222.  
  223.    Next, you need to install the kernel. If you boot from a floppy disk, you
  224.    can simply stick a formatted floppy into your drive and write the zImage
  225.    to it like this:
  226.  
  227.    cat zImage > /dev/fd0
  228.  
  229.    If you use lilo, you should copy the zImage to where your lilo.conf expects
  230.    it to be and then reinstall lilo. This should work if you used Slackware's
  231.    liloconfig script to set up LILO. (this is the script setup uses)
  232.  
  233.    cp zImage /vmlinuz ; lilo
  234.   
  235.    You may wish to back up your existing /vmlinuz first.
  236.  
  237.    If you use Loadlin, copy the kernel to your DOS partition where Loadlin can
  238.    see it (if you use UMSDOS, you won't need to do this).  Then, start Linux
  239.    from DOS like this:  
  240.  
  241.      c:\loadlin\loadlin.exe c:\linux\vmlinuz root=/dev/hda2
  242.  
  243.    That should do it.
  244.    
  245. -----
  246.  
  247. Q: Why can't I cut and paste from elvis (vi) in an xterm?
  248.  
  249. A: Later versions of elvis use the mouse for cursor positioning instead. If
  250.    you want to cut and paste, hold the left shift key down while you use the
  251.    mouse.
  252.  
  253. -----
  254.  
  255. Q: Why doesn't my bus mouse work? The kernel, selection, the
  256.    X server and test-mouse all say "no such device."
  257.  
  258. A: The kernels distributed with Slackware don't have the drivers for
  259.    busmice compiled in. Last time I tried to include all of them there
  260.    were horrible driver conflicts -- better to leave them out if they
  261.    can't coexist.  Obviously, it's not feasible for me to provide 
  262.    versions of every precompiled kernel for each type of busmouse. I 
  263.    only have a 386. ;^)
  264.  
  265.    The solution is to get the kernel sources, configure the kernel to 
  266.    support the your type of mouse and no other mouse devices, and rebuild
  267.    it. Documentation on how to do this is included in the kernel
  268.    source, i.e. the kernel.tgz package found in the D series. You will
  269.    also need at least the gcc.tgz, include.tgz, libc.tgz, and binutils.tgz
  270.    packages from the D series to rebuild the kernel.
  271.  
  272. -----
  273.  
  274. Q: I see my SoundBlaster/Panasonic CD-ROM detected at boot, but I can't
  275.    install from it or mount it. What's going on?
  276.  
  277. A. Try setting to drive's ID to 0. This is expected by the install disks.
  278.    There should be a jumper on the back of the drive that selects this --
  279.    just move it to the leftmost position.
  280.  
  281. -----
  282.  
  283. Q: I'm using UMSDOS and would like to use the same swapspace under Windows
  284.    and Linux. Can this be done?
  285.  
  286. A: If you want to share a Linux-UMSDOS swapfile with MS-Windows, you can
  287.    do the following:
  288.  
  289.    1. Create PERMANENT(!) swap file in MS-Windows with size NNNN kbytes.
  290.    2. In /etc/rc.d/rc.local add the following lines:
  291.  
  292.    rm -f /DOS/windows/spart.par  <--- Needed in order to suppress
  293.                                       Windows complain on next start!
  294.    mkswap /DOS/386spart.par NNNN
  295.    sync
  296.    swapon /DOS/386spart.par
  297.  
  298.    3.In /etc/rc.d/rc.0 add "swapoff" for this file.
  299.  
  300. -----
  301.  
  302. Q: What's the password for root on the install disk?
  303.  
  304. A: There isn't one. If you're asked for one, it usually means that you
  305.    don't have enough memory to install.
  306.  
  307.    To help work around this, look in your CMOS settings and make sure you don't
  308.    have any ROM shadowing enabled. ROM shadowing wastes memory and won't
  309.    improve the performance of Linux. Also, make sure you're using the smallest
  310.    bootkernel disk you can. For example, you don't need to use "scsinet" if
  311.    you're not installing to a SCSI drive via NFS. Use something small -- the
  312.    "bare" disk if you can get away with it. Some people mistakenly think they
  313.    need to use a bootkernel disk with network drivers if they plan to use
  314.    networking after installation. Not so! The drivers on the bootkernel disk
  315.    have no impact on what you can use *after* installation -- in almost all
  316.    cases you won't be running the same kernel on your installed system as
  317.    you used to install it.
  318.  
  319. -----
  320.  
  321. Q: How can I install and remove software now that the Slackware Linux 
  322.    distribution is installed on my machine?
  323.  
  324. A: To remove packages, type "pkgtool" and follow the prompts. Pkgtool will
  325.    also allow you to add packages that are in the current directory.
  326.  
  327.    The preferred way to install software is with the "setup" script.
  328.    When you do your initial installation, setup puts a copy of itself in your 
  329.    /sbin for future use. You can also add software to your machine using the 
  330.    boot/install disk, if you really want to. 
  331.  
  332.    When adding software to a running system via NFS, it is preferable to
  333.    mount the partition yourself and then use the 'install from a mounted
  334.    directory' feature of setup.
  335.  
  336.    There are also command line utilities that allow you to create, install,
  337.    and remove packages. For these, you should refer to the manpages:
  338.    installpkg(8), removepkg(8), makepkg(8), explodepkg(8). A simple example
  339.    of how you would install a package with installpkg:
  340.  
  341.    installpkg package.tgz
  342.  
  343. -----
  344.  
  345. Q.  How do I know what files setup/pkgtool/installpkg is putting where ?
  346.  
  347. A.  Look around in /var/adm/packages.
  348.     Similarly, you can find installation scripts for each package in 
  349.     /var/adm/scripts.
  350.  
  351. -----
  352.  
  353. Q: I set my partitions to "Linux native" but Slackware still won't detect
  354.    them! What can I do?
  355.  
  356. A: This problem is rare and I still don't know what causes it.
  357.  
  358.    [ Note that this is not the same problem that usually affects the IBM PS/1,
  359.    Thinkpad, and similar machines that do not detect the harddrive. If you've
  360.    got one of these machines, and fdisk is giving you problems, your answer is
  361.    still ahead :^) ]
  362.  
  363.    Here's a workaround you can use to install anyway:
  364.  
  365.    1. Start tty12 or tty144 using one of the bootkernel disks.
  366.    2. Make and format partitions for Linux.
  367.    3. Mount the target partitions under /mnt.
  368.    4. Type "setup -target_mounted"
  369.    5. Follow the rest of the instructions to install.
  370.    6. Type "vi /mnt/etc/fstab" and enter an appropriate fstab.
  371.       As an example, here's what mine contains:
  372.  
  373. /dev/hdb2   swap    swap   defaults 
  374. /dev/hda2   /       ext2   defaults
  375. /dev/hda3   /usr    xiafs  defaults 
  376. /dev/hda1   /dos    msdos  defaults 
  377. /dev/hdb1   /os2    msdos  defaults 
  378. none        /proc   proc   defaults
  379.  
  380.    To give you some more info about this file, the first field is the
  381.    partition to be mounted, the second is where it should be mounted, the
  382.    third is the filesystem type, and the last field is the options to use.
  383.    Unless you're a Linux wizard, just set this to "defaults".
  384.  
  385.    Other things to remember about this file:
  386.       - Make sure that you list the root partition before any other partitions
  387.         that are mounted beneath it.
  388.       - Add the /proc line, or "ps", "w", etc, won't work.
  389.       - It's a good idea to put a blank line at the end of the file, as I've
  390.         had reports that partitions listed on the last line might not be 
  391.         mounted.
  392.  
  393.    7. Once you've made and saved this file you can reboot with ctrl-alt-delete.
  394.  
  395. -----
  396.  
  397. Q: I have a (PS/1 || Valuepoint || Thinkpad), and can't install because fdisk
  398.    can't see my hard drive. How can I get around this?
  399.  
  400. A: You'll need to enter your drive parameters at the bootkernel prompt. You
  401.    can even specify the geometry for your second IDE drive by supplying a
  402.    second  hd= parameter right after the first one. 
  403.  
  404.    When you boot the bootkernel disk, you'll see more information about the
  405.    format used to pass your drive parameters to the kernel at the LILO prompt
  406.    and allow your drive to be recognized.
  407.  
  408.    You'll have to edit your lilo.conf file to add a similar hd= flag if you
  409.    want LILO to work. Add this as the TOP line in the file:
  410.  
  411.    append="hd=cyl,hds,secs"
  412.  
  413.    Where "cyl", "hds", and "secs" are the number of cylinders, sectors,
  414.    and heads on the drive.
  415.  
  416.    If you have two IDE drives, specify both drives (like this):
  417.  
  418.    append="hd=967,13,31 hd=944,14,40"
  419.  
  420. -----
  421.  
  422. Q: Why do my /etc/issue and /etc/motd keep resetting themselves at boot time?
  423.  
  424. A: The /etc/rc.d/rc.S resets them out every time you boot after figuring out
  425.    which kernel you're running -- otherwise the kernel version printed at login
  426.    might not stay current.
  427.  
  428.    If you want to write your own /etc/issue and /etc/motd, you need to comment
  429.    out that part of /etc/rc.d/rc.S.
  430.  
  431. -----
  432.  
  433. Q: Emacs dumps core, complains of a missing library, or lacks X11 support! Why?
  434.  
  435. A: The GNU Emacs series includes your choice of a version with X11 support, or
  436.    one without. Make sure you have the right binary for your machine. 
  437.  
  438.    The binary supporting X11 is installed as part of a package on the first 
  439.    disk that you'll need to install whether you want X11 support or not. If
  440.    you DO NOT want X11 support, install the package 'emac_nox.tgz' on the last
  441.    disk of the Emacs series.
  442.  
  443.    If you just install all of the disks, you don't get X11 support. It had to
  444.    be one way or the other, so if you're not paying attention when you install
  445.    at least this way it will run no matter what.
  446.  
  447. -----
  448.  
  449. Q: Why do my compiles sometimes die with 'signal 11: internal compiler error'?
  450.  
  451. A: This indicates a hardware problem in about 99% of the cases. It can usually
  452.    be fixed by increasing the number of wait states in the CMOS settings. It
  453.    can almost always be fixed by turning off the RAM cache, but this should be
  454.    your last resort since it will cause a noticeable slowdown.
  455.  
  456. -----
  457.  
  458. Q: How can I change (or get rid of) the color ls?
  459.  
  460. A: Read the man page, and check out the file /etc/DIR_COLORS. You can
  461.    configure the colors any way you like, or shut them off entirely. Also, you
  462.    can copy /etc/DIR_COLORS into your home directory as '.dir_colors' to 
  463.    override the global defaults on a user by user basis.
  464.  
  465. -----
  466.  
  467. Q: I start X with "openwin" and it works OK, but I can't switch virtual
  468.    consoles. Why?
  469.  
  470. A: On a Linux text screen, you switch virtual consoles with Alt-F1 through 
  471.    Alt-F8. Under XFree-86, you must use Ctrl-Alt-F1 through Ctrl-Alt-F8. 
  472.    Another useful 'secret' key combination is RightShift-PgUp/PgDown for
  473.    scrollback. (a random amount ranging from none to a few pages, depending
  474.    on the state of your video text buffer memory)
  475.  
  476. -----
  477.  
  478. Q: Why can't I use the new ghostscript with X?
  479.  
  480. A: Make sure you have gs_x11.tgz from disk XAP1 installed.
  481.  
  482. -----
  483.  
  484. Q: I can't get anything to work at all! What's the deal?
  485.  
  486. A: If you seem to suffer catastrophic failure (!), then check the file FILE_LIST
  487.    on ftp.cdrom.com in /pub/linux/slackware against the contents of your disks
  488.    and make sure you're not missing any files. 
  489.  
  490.    Also, I've noticed that most of the reports of kernel panics and system 
  491.    hangs have come from people with 4MB. If you're running into these types
  492.    of problems I'd suggest forking over the $$$ for 4 more meg. I have 8 MB of
  493.    RAM and never have crashes. (well, only when I really push my luck)
  494.    If you don't want to do that, then go through your /etc/rc.d/rc.* files and
  495.    get rid of any daemons you don't use, like crond, lpd, or selection.
  496.  
  497.    If you've got 4 MB and you're getting 'virtual memory exceeded in new'
  498.    warnings, make sure you set up and activate a swap partition before running
  499.    setup. If you're really hard up on memory, you can boot a rootdisk using
  500.    'editroot' instead of one of the usual boot kernels. This will mount the 
  501.    floppy in the root drive, and you'll have to install from the other drive
  502.    or from the hard drive. You will also not be able to create any kind of boot
  503.    disk, so you'll have to install LILO and take your chances. I only suggest
  504.    using this approach if a swapfile will not work.
  505.  
  506. -----
  507.  
  508. Q: How do I make a bootkernel disk that uses a custom kernel?
  509.  
  510. A: Look in the ./kernels subdirectory. You'll find complete instructions
  511.    on how to make them in there.
  512.  
  513. -----
  514.  
  515. Also - at ftp.gwdg.de:/pub/linux/install-mount/slack-info are some more
  516. networking hints.
  517.  
  518. In addition, the LDP people have put out an excellent set of manuals that I
  519. may include in a future Slackware release. These are available on
  520. sunsite.unc.edu in /pub/Linux/docs/LDP.
  521.  
  522. ---
  523. Patrick Volkerding
  524. volkerdi@mhd1.moorhead.msus.edu
  525. volkerdi@ftp.cdrom.com
  526.