-->
Previous | Table of Contents | Next |
After Linux has been installed, go ahead and reboot. If youve installed LILO, youll see it appear after the PC runs through its BIOS check. As Linux boots, youll see a long Linux-related diagnostic, as Linux checks the system and makes sure everything is where its supposed to be. For the most part, you can ignore any errors messages you see here (such as a proclamation that the name of the machine darkstar does not appear to be supported). After all the diagnostics, youll finally be presented with a command prompt:
Welcome to Linux 2.0.29. darkstar login:
NOTE: If you installed networking capabilities when you installed Slackware96, you were asked the name of your machine. This name should appear in the place of darkstar.
Because there are no users on the system, youll login as the root user, so go ahead and type in root as the login. There will be no prompting for a password.
NOTE: The root user is the supreme being on a UNIX system. Most of the traditional security tools within the UNIX operating system dont apply to the root userwhen logged in as root, you can do just about anything. Its generally not a good idea to use the UNIX system as the root user, however; the proscribed practice is to set up your own account and then save the root login only for those times when youre performing system administration.
After youre logged in, youll see the following command prompt:
darkstar:~#
A command prompt is where you enter commands into the UNIX system. Your first commands will be to change your machine name and to set up a user account for yourself.
Your first action as the Linux supreme being is to set up an account for your daily usage. To do this, type the following at the command prompt:
darkstar:~# adduser Login name for new user (8 characters or less) []: kevinr
The adduser command does exactly what it says: adds a new user to the system. In the previous example, the user kevinr has been added to the system. After specifying the username, youll be asked additional information about the preferences of that user. Unless youre familiar with Linux, youll want to stick with the defaults for now. (The defaults will be listed in brackets. Wherever theres a default, you can go ahead and hit the Enter key instead of typing in the default selection. In our example, well type in the defaults.) The entire sequence will look something like this:
User id for kevinr [defaults to next avaliable]: Initial group for kevinr [users]: users Additional groups for kevinr []: kevinrs home directory [/home/kevinr]: /home/kevinr kevinrs shell [/bin/bash]: /bin/bash kevnirs account expiry date (MM/DD/YY) []: OK, Im about to make a new account. Heres what you entered so far. New login name: kevinr New UID: [Next available] Initial group: users Additional groups: [none] Home directory: /home/kevinr Shell: bin/bash Expiry date: [no expiration] This is it...if you want to bail out, hit Control-C. Otherwise, press ENTER and go ahead and make the new account. Making new account: Changing the user information for kevinr Enter the new value, or press return for the default Full Name []: Kevin Reichard Room Number []: Work Phone []: Home Phone []: Other []: Changing password for kevinr Enter the new password (minimum of 5, maximum of 8 characters) Please use a combination of upper and lower case letters and numbers. New password: <new password1> Re-enter new password: <new password1> Password changed. Done...
If youre not planning on using Linux for anything but a single-user operating system, you dont need to worry about things like group ID and UID (which is short for user ID). And even if you do plan on using Linux on a network, you can change these parameters later.
Additionally, you probably noticed that the name darkstar appears as the name of your machine. You probably dont want to leave this as the name of your machine, so you should change it right off the bat. This name is contained in the file /etc/HOSTNAME, and the default is darkstar.frop.org. To change it, youll use a text editor (in the example, well use vi) and edit this file. To load the vi text editor and the /etc/HOSTNAME file, use the following command line:
darkstar:~# vi /etc/HOSTNAME
Youll see a screen like the one in Figure 2.4.
Figure 2.4 Editing the /etc/HOSTNAME file.
NOTE: You may have to make further changes if youre on a TCP/IP network. For now, you can change the name to anything youd like.
Youll want to edit this file, changing darkstar.frop.org to whatever youd like. If youve never used the vi or elvis text editor, skip ahead to Chapter 4 for a short tutorial.
If your system is configured properly, you should have the following directories in your root directory:
bin/ dev/ home/ mnt/ sbin/ var/ boot/ dos/ lib/ proc/ tmp/ cdrom/ etc/ lost+found/ root/ usr/
If youve installed Slackware from the CD-ROM, and then the system refuses to see the drive when you reboot, youll need to install a new kernel or add the support through loadable kernel modules.
Previous | Table of Contents | Next |