| By Joshua Drake | Article Rating: |
|
| August 6, 2001 12:00 AM EDT | Reads: |
9,227 |
(LinuxWorld) -- As a Linux consultant and programmer, I find many newcomers to Linux have preconceived ideas of how Linux should work, which leads to confusion and problems.
Whether they are former Macintosh or Windows users, Linux newbies are accustomed to frequent crashes and rebooting. PC users often sport a worldview where the expression of a computer's power is limited to the software loaded on a local hard disk. Some believe all computers should work the way their last computer worked.
Of course, the more technically inclined understand this is simply not the case. Tasks don't, and probably won't, always work on Linux the same way they do in Windows.
Linux newbies may be...
- confused by not needing to reboot their machines daily,
- awed by the ability to format a floppy and access other programs at the same time,
- surprised to find they are denied access to their Linux computer because they forgot their password,
- shocked at some of the e-mail responses they receive when they ask naive questions publicly.
Here are answers to common questions I hear.
- How do I recover my root password?
The problem with this question is usually two-fold. On one hand, the person could be a new Linux user who has become accustomed to just hitting cancel at the login screen and having Microsoft Windows let them access their computer. On the other hand, it could be a regular Linux user who for whatever reason forgot the root password. Either way, the root of the problem (no pun intended) is the user is not reading the documentation.
If you find yourself without the root password of a Linux machine you can recover the machine without trouble. This is done by passing a couple of parameters to
Lilo. Lilo is the Linux boot loader and is the most commonly used loader among all Linux distributions. These are the steps you will have to follow to recover your password.At the
Liloprompt type:(image name) init=/bin/sh rwThe image name is typically
linux. If you wish to find what images are available you press the TAB key.This command will drop you to a single-user mode. One the system has completed the boot process you will be presented with a
#prompt. At this prompt you have complete access to the system. The first thing you will want to do is make sure that all file systems are mounted. (This eases some pain later.) You can do this by typing:mount -a. Once the filesystems have been mounted you can change the root password by using the following command:/sbin/passwd root. Once you have changed your password you should unmount all the filesystems with theumount -acommand and then reboot.When the Linux machine reboots you should be able to log in as root using the new password you chose.
- What is RTFM, and how do I do it?
RTFM stands for Read The Fine Manual. (There is another version of the acronym.) This is probably the most oft overlooked aspect of Linux. The majority of new Linux users are constantly asking questions. As most of the Linux community will tell you, the questions are not the problem. The problem is asking questions that have been answered.
Read The Fine Manual before firing off your question to a forum, fellow user, or webmaster at LinuxWorld. Of course, you have to know where to find the answers first. The following are a good start:
- Linux Documentation Project. This is the largest single repository of Linux documentation in the world. Your humble narrator contributes to this effort, so please forgive his bias.
- Red Hat. The No. 1 version of Linux, based on estimates of users and installations.
- KDE. A popular desktop environment for Linux.
- Gnome. A popular desktop environment for Linux.
- Every time I use a command with a
\, the command doesn't execute. Instead I get a>and nothing happens. What's wrong?Unix is a forward-thinking operating system, as such it requires the use of the forward slash (pun intended), instead of the backslash. For example, in a DOS or Windows command prompt, you type
cd \to get to the root of a directory. In Linux you typecd / - How do I configure networking on my Linux machine?
This answer to this question is huge. Take a look at my Linux Networking HOWTO.
- How do I connect to my ISP using Linux?
- How do I avoid looking like a newbie?
- Which is better, KDE or Gnome?
- Emacs is better than vi, right?
- Should I use Linux or (input favorite anything here)?
- Why not Microsoft NT?
- GNU is Open Source Software
- KDE is better than Gnome
- Gnome is better than KDE
- Open Source Software is better than Free Software
- Free Software is better than Open Source Software
- How do I remove the
Liloprompt?Before proceeding with the following instructions, make sure that you have a Windows Emergency Boot Disk. If you do not have a Windows Emergency Boot Disk, STOP NOW. Do not scroll down. Do not follow the proceeding instructions. If you do have a Windows Emergency Boot Disk, make a copy of it and test both of them. Misuse of the following command may cause your machine to stop booting properly.
If you are in Windows, you will need to enter a command prompt. Press
Startand selectRun. In theRunbox typecommandand hit theenterkey. This will bring up a command window or screen depending on your configuration.To remove
Lilofrom your computer you must erase the master boot record of your boot drive. To do this, at the command line, type the following:fdisk /mbr. Once you have done this, place the Windows Emergency Boot Disk (You did create one, right?) in your floppy drive and reboot.When the machine boots up off the Emergency Boot Disk you will be presented with a command line again. From the command line type:
sys c:. This will place the Windows system back on the master boot record and allow you to boot without fanfare. - How do I add a printer to a Linux computer?
See my four-part series Linux printing made easy, including part 2, part 3, and part 4.
- Can I make my Linux computer a router so that several machines may share a single Internet connection?
Yes. This is called "IP Masquerade." Learn more about it at the Linux IP Masquerade Web site. Here's a link to the IP-MASQ HOWTO at Linuxdoc.
- How do I make my Linux computer secure? Again, Linux Documentation Project is waiting to help you. See the Linux Security HOWTO.
Read my Linux PPP HOWTO and the Linux Modem HOWTO.
Seasoned Linux users know there are certain things you just don't say. Here are topics to avoid and questions not to ask.
Do not ask:
Do not say:
Lilo prompt. How do I get rid of the Lilo prompt?" That said...
In upcoming articles we will cover a variety of topics from how to get commercial support for Linux, to an introduction to Python.
Published August 6, 2001 Reads 9,227
Copyright © 2001 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Joshua Drake
Joshua Drake is the co-founder of Command Prompt, Inc., a PostgreSQL and Linux custom development company. He is also the current author of the Linux Networking HOWTO, Linux PPP HOWTO, and Linux Consultants HOWTO. His most demanding project at this time is a new PostgreSQL book for O'Reilly, 'Practical PostgreSQL'
- Kindle 2 vs Nook
- Is Cloud Computing Like Teenage Sex?
- Confessions of a Ulitzer Addict
- GovIT Expo Highlights Cloud Computing
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Cloud Computing Can Revitalize Your Career as Software Developer
- Ubuntu-based Open Source Linux Mint Tests KDE Version
- Yahoo! SVP Shelton Shugar to Discuss Innovation at Cloud Computing Expo
- Virtualization Journal "Readers' Choice Awards" Voting Is Now Open
- Einstein, Sharks and Clouds: IT Security in the Cloud
- Adobe Flex Developer Earns $100K in New York City
- Amazon Web Services Database in the Cloud
- Kindle 2 vs Nook
- Cloud CEOs, CTOs & SVPs to Speak at 4th International Cloud Computing Expo
- Is Cloud Computing Like Teenage Sex?
- 1st Annual GovIT Expo: Letter from the Technical Chair
- Ulitzer News: Search vs New Media
- The Difference Between Web Hosting and Cloud Computing
- Cloud Computing Expo: Exclusive Q&A with Yahoo! SVP Cloud Computing
- Confessions of a Ulitzer Addict
- GovIT Expo Highlights Cloud Computing
- Twitter, Linked In, Ning and Ulitzer: Easy Personal Branding Strategy
- My Thoughts on Ulitzer
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- The i-Technology Right Stuff
- Linux.SYS-CON.com Exclusive: Linus Discloses *Real* Fathers of Linux
- After Ubuntu, Windows Looks Increasingly Bad, Increasingly Archaic, Increasingly Unfriendly
- Linus' Top Ten SCO Barbs
- A Closer Look at Damn Small Linux
- Netscape Co-Founder's 12 Reasons for Growth of Open Source
- Introducing "Cooperative Linux" - Linux for Windows, No Less
- *POINT - COUNTERPOINT SPECIAL* What's Wrong with the Open Source Community?
- Where Are RIA Technologies Headed in 2008?
- Linux.SYS-CON.com Exclusive: What Would UserLinux Look Like?
- i-Technology Viewpoint: The New Paradigm of IT Buying
- Is Linux Desktop-Ready Yet...or Not?






























