G Harold

Thursday, November 26, 2009

10 Common Mistakes Made by New Linux Administrators

h31. Failing To Use CheckInstall/h3 pLinux uses package managers, which keep everything installed on your system updated and clean. When two or more apps rely on each other, it is imperative that all of them are kept updated, not just a few. Thus, when you install one program via whatever package manager your distro uses but another from source, the package manager will only update the first, which could cause things to stop working properly./p pThe solution to this is to use Checkinstall to build a package for your system that will stay updated along with the other software, which will save you headaches in the future./p h3 2. Refusal to Use the Command Line Interface /h3 pYou just have to learn it. It's that simple. You cannot be a sysadmin in any system while harboring a fear of the command line, but that is doubly true in Linux. While you can manage to do most things with some form of a GUI, it is almost always faster and easier to learn how to do it from the Terminal. Learn some bash already./p h33. Having No or Weak Root Password/h3 pSomeone getting their hands on the root password is like some crony gaining control of Darth Vader's big laser that blew up Alderaan. If you have no root password, then you're either a very ripe sysadmin, or you're an idiot. If you have a weak one, then you're naive. Here is a very big tip: if you don't have a password, set one RIGHT NOW; if it is a simple word, especially a word in the dictionary, change it RIGHT NOW to something at least fourteen characters long with uppercase, lowercase, numbers, and symbols./p ##ADSENSE## h34. Pretending Updates Don't Exist/h3 pFor whatever reason, people don't like updates. That is understandable if you're getting fed them day after day, but really--updates keep things working (most of the time). Sometimes it is laziness--there may be hundreds of updates if you put it off for awhile, and no one likes to pick through those, so they just put it off longer and longer until something stops working. You must update. If you disable auto-updates, then check them every day. Sift through them each time and only install the ones you need. Do this every time. Your install will thank you./p h35. Making Changes Without Backing Up First/h3 pIf you're going to pick through, for example, the resolution config file to try and get your three monitor system running properly, you really should backup the file first. This goes for all changes in tweaks. In fact, just go ahead and create a backup of every major file right now, just so when you forget later, your fore sight will have saved you from FUBAR hell./p h3 6. Not Learning to Trouble Shoot Their System/h3 pEach distro is like a baby--they are similar on the surface, but when you spend time with them, there are noticeable differences. For that reason, it is very important that you spend time with your distro and learn its own peculiarities. Want an example? One user who had messed up his Ubuntu resolution was freaking out because his screen was scrambled, and he was trying to fix it from command line. That seems fine, except that if he'd spent time knowing his system, he'd of simply booted into recovery mode and reset his resolution to default. Knowledge is not only power, but it's a time saver, too./p h37. Ignoring Logs like the Plague/h3 pSee, there's these little things inside /var/logs called LOGS that tell you magical things about your system, like errors and security issues. These things give you valuable information that can be used to correct programs and head off unfortunate issues. Doing so will make your life as admin much, much easier. So then, why do you ignore these? Out of fear? Trepidation? Misplaced respect? Open the system logs once in awhile and see what's up, okay? /ph3 8. Keeping Everything in One Giant Partition/h3 pOf course, this is only valid if you're the one doing the installing. You don't want everything to sit in one partition for many reasons, two of which being performance and convenience. You're probably going to change distros at some point, so to make your life easier, put your home directory in a different partition than the rest. This will make your life easier at some point, trust me. /p h39. Using as Root /h3 p class=img-middle a href=http://media.laptoplogic.com/upload-images/9852/9852_main_sudo comicA.jpg img src=http://media.laptoplogic.com/upload-images/9852/large/9852_main_sudo comicA.jpg alt= //a/p a rel=nofollow href=http://xkcd.com/149/Image from xkcd.com/a pFor you Window's users, that means Admin. You're not supposed to run as admin, nothing good ever comes from it. When using the terminal, simply use 'su' or 'sudo' or whatever your system command is for running as root. This is more than powerful enough for the things you must do. /p h3 10. Asking Help From Random People/h3 If Linux has been thrust upon you and you're left trying to pick your way through things that mean nothing to you, then no one will blame you for seeking help when issues arise. With that said, be careful who you seek help from, and be very weary of what you run through the Terminal. There are people who get their kicks from making your life hell. Get the help of a pro when things go bad. p/p pem*Update: A special thank you to all readers who have brought to our attention that the Sudo image was not attributed correctly to a rel=nofollow href=http://xkcd.com/xkcd.com/a. This has now been rectified. In the future we will ensure all images are attributed to the correct source. - strongLaptoplogic.com team/strong/em/p

No comments:

Post a Comment