"Installing Slackware Linux Installing Slackware Linux (Post #1)
Slackware Linux is one of the oldest Linux distributions remaining. Over the years, it has stayed Here’s what the author, Patrick Volkerding has to say about it. http://www.slackware.com/info/ The Slackware Philosophy
Since its first release in April of 1993, the Slackware Linux Project has aimed at producing the m
What’s this about "friendly"? You heard that Slackware was too damned hard, didn’t you? If you are The reason it is easy for an experienced user is, first of all the init scripts and configuration
Not only that, you are getting the full, complete, standard releases of software in this distribut The packaging system in Slackware is quick, dirty and simple too. Slackware packages (.tgz files) Slackware also provides an excellent environment for building your own software from sources. I could go on at length about why you should give Slackware an honest try but I’ll let you follow Starting the Installation
First of all, if you intend to dual boot with Windows, take care of that first. If you’re starting
Boot with the first disk in the Slackware CD set. (or the first CD that you created from the ISO f
If your computer is unable to boot from the CDROM for whatever reason, it is also possible to crea Once you boot with the installation media, this is the first screen you will see:
Most people with plain IDE systems, can just hit enter here, to load the bare.i kernel image. The
So press Enter to load bare.i, or type the name of the kernel image you wish to load (e.g. scsi.s) The kernel will boot, and then you will be instructed to log on as root.
Just type root and hit enter. You will not be prompted for a password at this time. Now we must partition the disk. This is probably the trickiest part of Slackware Setup, for there What I did here was, I hooked up a new Western Digital 40 Gb hard disk for this install. I booted
Fdisk must be invoked with the device name of the hard disk you wish to partition. In this case, w /dev/hda /dev/hdb /dev/hdc /dev/hdd Primary Master Primary Slave Secondary Master Secondary Slave
Note that these do not refer to partitions or filesystems, but the hard disk devices themselves. (
SCSI disks are named /dev/sda, /dev/sdb, /dev/sdc and so on, according to which are first enumerat We need to type fdisk /dev/hda
Don’t worry about the informational message about the number of cylinders. Unless you’re installin Now what? Press m to see a list of commands.
The first thing we want to do is press p to print (display) the partition table. We do this after
There’s our 8 Gb NTFS partition, /dev/hda1. The first partition on the disk, and in Windows terms,
The units (for Start and End) are in cylinders of 8225280 bytes. Just remember that each unit is r
Now, how we partition depends greatly on personal preference. All you really need to install and r This is basically how I would allocate this space, for use with Slackware. It’s just the way I do
Using multiple partitions is a bit wasteful, because we have to allow room on each partition for g This is what I would do for my own use:
1 Gb root partition (primary partition) The root filesystem, contains system software and libraries, configuration data (/etc), local stat Extended partition utilizing the rest of the disk We then create logical drives on the extended partition.
1 Gb swap partition (logical drive) Note that you probably don’t need a swap partition that large but I like the extra insurance and I
8 Gb partition for /usr (logical drive) Most all of your software and libraries get installed in /usr. It is useful to have a large partit
2 Gb partition for /opt (logical drive) "Optional" software can be installed here. For example, KDE will be installed to /opt/kde. I insta
18 Gb (roughly) for /home (logical drive) We use what is leftover, for /home. This is where the user directories are, and where users will s Now, we will start creating these partitions. To create a new partition, press n
We are prompted to choose primary, or extended. We want to create a primary partition here. (thoug Press p to create a primary partition.
We then have to give it a partition number. The Windows XP partition is already partition 1, so we
We are then prompted for the starting cylinder. We will be just hitting enter, to accept the defau
Now, press p to display the partition tables, and you’ll see what you’ve done so far. At this poin Now we are going to create an extended partition, to act as a container for our logical drives.
Press n to create a new partition then press e to choose extended. Press 3 when prompted for the p
Note: How the partition numbers work is, partitions 1 to 4 are reserved for primary partitions. (t Press enter when prompted for the first cylinder, to accept the default of the next available.
When prompted for the last cylinder, this time, simply press enter again. It will allocate the res Press p to display the partition tables.
Now we are going to create logical drives until we’ve used up the extended partition, starting wit
You know the drill. Press n to create a new partition, but this time press l for logical. (In our
Note that we are not prompted to choose a partition number for a logical drive, as it will be assi
Press enter to accept the default value of the first cylinder. For the last cylinder, I’ll type +1
Press p to display the partition table, and note that our new partition is /dev/hda5. There will b
Aside: Just so you understand how this works, let’s say that when we created the extended partitio
OK, now, note the Id column in the display of the partition table. By default, when we create part We must change the partition type of the one we just created to 82, Linux Swap.
Press t to "change a partition’s system id" and then press 5 when prompted for the partition numbe
When prompted for the Hex Code (partition ID), if you were to press L, you would see a long list o Type 82 for Linux Swap, and hit enter. When you press p to display, you will see the change. The rest of the partitions we’ll create, will be the default type 83, Linux.
Press n to create a new partition. Choose l for logical. Press enter to accept the default first c
Again, n for a new partition, and l for logical. Press enter for the first cylinder. For the last Now, we’ll allocate the last partition for /home.
When asked for the first and last cylinders, just press enter for both of those this time, as we’r
If satisfied with your changes, press w to write the partition table to disk, and exit the Linux f
If you see a warning like that, restart the system (with the slackware CD). I am seeing that messa
Note: I said I altered the partition tables on a live system. That means, the data on those partit
Take note of which partition devices you created to correspond with your mount points. You’ll need Now we are ready to proceed with the Slackware installation. Now that we have our Linux partitions created, at the root prompt we can type setup
This is the main setup menu. You can read the help if you like, but you can just skip down to ADDS
It will detect your swap partition for you, format it (mkswap) and activate it (swapon)
Note: The hard disk devices in these screenshots are /dev/sda. Don’t pay any attention to that, it
After completing a step, setup automatically takes you to the next step in sequence. Next, is to s
This is where we select our root partition (/). Following our partitioning example, that would be
Now it will prompt you to format the partition. I would choose to check for bad blocks while it’s
Choose your desired filesystem. I like to use ext2 because it’s a simple filesystem that’s well ma
Now it prompts to choose the inode density for the filesystem. Just hit enter to go with the defau
If you just created a root partition and swap, you are done formatting now. If you created other p
Swap doesn’t show up in this list.
We are mounting this partition as /usr.
Continuing on, we are prompted to select, assign mount points and format the rest of our partition
When finished, a summary is displayed
In the next step, you will be prompted to select the source media.
Hit enter to choose a Slackware CDROM, and it should detect it automatically. In the next step, we are prompted to select package categories.
These govern which series of packages will be installed on the system. By default, all categories For your first time installing Slackware, I recommend leaving all package categories enabled. You
Next, we are prompted to choose the "prompt mode", that is, the degree of interaction for installi
Full, installs all packages in the categories you’ve selected, without prompting. This is what I r
Newbie prompts for each package as they are being installed. I do not recommend this, as it is qui Menu is a bit better, as it lets you choose groups of related things.
Expert. If you know what you are doing, the expert prompt mode is an excellent way to choose exact
The custom/tagfile options use tagfiles to automate a custom package selection. I’ve never used th
Choose full and watch the packages install non-interactively. It won’t take very long, even on a r
At some point during the package installation, you will be prompted to insert the second CD. When the package installation stage completes, you are prompted to choose a kernel.
I recommend the CDROM option, and choosing the same kernel that you chose at the initial boot prom
Because I did these screenshots in a virtual machine that uses scsi emulation for the virtual disk Next, you are prompted to create an emergency boot disk.
I highly recommend taking the time to create this disk, for it can be used to start the distributi You will now be prompted to create a symbolic link for your modem device.
If you have a modem, you can do that here. Saying "no modem" doesn’t mean you can’t use a modem, y
Next, you will be prompted to enable the hotplug system. If you have such devices, say Yes, otherw
As you can see, it’s possible for it to cause problems on some systems. Note the information on ho Now we are prompted to install the LILO bootloader.
You will most likely want to choose simple here. Choosing expert, will result in lilo not behaving
Next, you are prompted to choose the VGA (display) mode of your console, either standard VGA, or o
It is nice to have a framebuffer console for when you’re not running XFree86, but if the framebuff
Consider choosing standard for now, to use standard VGA. You can change this parameter in your /et You are now prompted to enter any extra boot parameters, that lilo is to pass to the kernel.
He gives one very common example of why you might need to do this: If you have an IDE CD Writer. I
Next, you are prompted to choose the destination for installing LILO. You will almost certainly wa
He says "possibly unsafe" because there are a few situations where writing to the master boot reco
The "Root" option, to install LILO to the superblock of your root partition, is mainly useful if y Next, you are prompted to create a symbolic link for your mouse.
Even if you don’t intend to use gpm, it’s still useful to have a correct /dev/mouse symbolic link.
I don’t have much use for this (it’s got nothing to do with using a mouse in the GUI), but if you
At this point, you will be asked if you want to Configure your network. If you only have dial up n
If you chose to configure your network now, the first thing you will be prompted for is a hostname
Now you’ll be prompted to enter a domain name.
If you intend to participate as a member of a network that has a nameserver, you will want to ente
Otherwise just enter localdomain. In subsequent steps you can even remove that domain name. (That’ Next, you will be prompted to set up your computer’s IP address.
If your network adapter connects to a cable modem, or a broadband router, or uses a PPPoE connecti
If you choose DHCP, you will be prompted for a DHCP hostname. If you connect directly to a cable m
Otherwise, just leave it blank and hit enter. Next, setup will prompt you to probe for your network adapter.
If it doesn’t detect it, don’t panic. It just means you’ll have to figure out which kernel module
Ok, in this virtual machine, that’s the virtual adapter it detects. It works. However, on the real
If you’ve chosen to use DHCP, a confirmation screen is what you’ll see next. Your network configur
Myself, I just configure my network statically, and I don’t use the DHCP server on my router. So, Enter your IP Address.
Enter your Subnet Mask
Enter your Default Gateway
Enter a Nameserver
Note: I’m just entering the IP address of my router here, it acts as a DNS proxy. The Primary and Now you will be prompted to confirm your network settings.
You can edit these settings from this dialog as well. For example, I want to remove the domain nam This concludes the network portion of setup. After the network configuration, you will be prompted to configure your startup services.
Many of these are network server daemons, and if you are just using your computer as a workstation Next, you will be prompted to configure your clock and timezone.
Next, you will be prompted to choose a default window manager, for when you start XFree86.
If you are new to Linux, select KDE for now, you can try some of the others later. Now you’re prompted to enter a root password.
Say Yes. You’ll be prompted to type a root password twice, for confirmation.
Slackware setup is now complete. You will be prompted to exit setup and press ctrl-alt-del to rebo
After exiting, the CDROM tray will open, so you can remove the CD. You’ll be back at the root prom When the system cycles, you’ll be at the LILO boot prompt. This is still the virtual machine, but
Hit enter to start Slackware Linux, and you’ll be at the logon prompt. Type root as the username,
The first thing you should probably do, is create a user for yourself. You must not use the root u
Type adduser as root, and then you will be prompted to enter a username. Use lower case for the us
For most of the prompts you will just want to hit enter to accept the defaults unless you have a s
You may want to enter a "full name" (I like to pick something humorous). You will then be prompted
The rest of the configuration steps can really be done in any order, according to what is most imp
The first thing I’d want to do is get my network going (if it isn’t already). The netconfig utilit
Now, during setup we configured our network with the exception of the driver module for the networ It is very easy to create this file from the command line. As root, type: echo "/sbin/modprobe sundance" > /etc/rc.d/rc.netdevice
This will redirect the output of the echo command into the specified text file that will get creat Now, set the file executable: chmod 755 /etc/rc.d/rc.netdevice That’s it, on the next reboot your network should initialize.
Alternatively, to load a network adapter module, you could uncomment the appropriate module loadin
Now, I don’t feel like rebooting at the moment, so I’m going to just type a few simple commands to
I’m loading the module, then using the ifconfig utility to specify the interface, IP address of th
You probably will want to attempt to start the XFree86 GUI now. By default, Slackware is set up to
So if you type startx you may have a usable GUI if the settings are compatible with your display h I put the XFree86 configuration for Slackware in a separate tutorial, which you can read here: Configuring XFree86 in Slackware (Opens in new window) Next, I want to get LILO straightened around, so I can boot that Windows XP installation. At this
As root, open the /etc/lilo.conf file with a text editor. I drew a box around the section that I a
Lines that start with # are comments, and are ignored.
This is called "chainloading". What we are doing, is instructing LILO to pass control over to what What you will see in the LILO boot menu, is the label windows.
While you are editing lilo.conf, you probably will want to change the timeout to a more reasonable
After you are finished editing the lilo.conf file, you must run the lilo command (or /sbin/lilo if
As root, type lilo and you should see in the output that it has added both Linux and windows to th I rebooted the machine, and I can start both Linux and windows.
If you ever want to access that NTFS filesystem from within Linux (read-only support for NTFS), yo Create a mount point (an empty directory) mkdir /mnt/windows Load the kernel module. modprobe ntfs Mount the filesystem. mount -t ntfs /dev/hda1 /mnt/windows You access it from /mnt/windows.
Slackware 9.1 ships with the ALSA (Advanced Linux Sound Architecture) system. I had never really u As root, type alsaconf and a curses based configuration utility will appear.
It probes for your sound card.
Offers to set up your modules.conf file for you.
Some nice informational messages.
That should be it, your audio should now work!
If that doesn’t work for you, then it will be manual configuration. Check the Alsa Soundcard Matri http://www.alsa-project.org/alsa-doc/
As for configuration, this is what you’ll want to put in your /etc/modules.conf file. The lines sh quote: # Stuff for the kernel module loader alias char-major-116 snd alias char-major-14 soundcore # Your Driver alias snd-card-0 snd-ens1371 alias sound-slot-0 snd-card-0 # OSS Emulation alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss
Some cards may need additional modules or options. See the "details" section for your card, at the
This is a demo version of txt2pdf PRO v.9.2 Developed by SANFACE Software http://www.sanface.com/ Available at http://www.sanface.com/txt2pdfPRO.html
..."
|
You need to upgrade your Flash Player , or try to enable javascript in order see this document properly.
|
|