Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Mar 19, 2012

5 Ways To Make Linux Boot Faster



make linux boot faster
However, the speed addicts who use Linux (and you may be one of them) always need to find new ways to make their system go even faster. If you begin this mission of ultimate speed, looking at your boot speed may be a good place to start.

Turn Off Services

make linux boot faster

Turning off unneeded services and startup applications is a simple tip that works for all operating systems. The less the system has to load upon bootup, the less time it will take until it’s done. It’s quite simple math, really.

Make sure to look at your startup applications to see if you can uncheck any that you don’t immediately need at bootup. If you’re very savvy, you can also disable certain system services and disable kernel drivers that you won’t need. However, if you don’t know how to do this, or don’t know what to do with the Google results, it’s best to just let services and drivers be. The default set should be just fine.

Choose Lightweight Alternatives

how to make linux boot faster

Is there a service that you absolutely need? If this is the case, then you may want to look into more lightweight alternatives to your current program that is giving you the service you need. That way, you don’t have to sacrifice the convenience of that service by disabling it completely, but you can still decrease your boot time.

Common changes including switching your desktop environment to LXDE or other lightweight alternatives.

Keep Track Of Updates

Updates are also very important, and is a great tip for those who haven’t been using Linux for long. As Linux distributions tend to update literally every component of the system (and the installed applications), including the kernel itself, it’s very important to install the updates. These updates can include optimizations or other changes that could decrease boot time.
Microsoft usually wants to touch the Windows kernel as few times as possible in the form of updates to keep the system changes very stable over the course of the OS’s lifetime, but in the Linux world developers are far more ready to add positive changes to any package.

Clean Out Some Crap

make linux boot faster

Cleaning out your system from time to time is just as effective in shaving off seconds in your boot time. Tools such as the command line, Ubuntu Tweak, or BleachBit can all help with this, cleaning out old cache files, unneeded packages, and old backup kernels that you’ll most likely never need again. With less crud on the hard drive, your system can boot faster, and it will be more responsive during regular use. Plus it might keep you more sane as well.

Upgrade Your Hardware

Speaking of hard drives, you may want to consider upgrading your hard drive to one that has a higher RPM rate, a higher SATA data transfer rate (if supported by the motherboard), or a sold state drive. If the hard drive you’re booting off of is faster, Linux will most likely boot faster as well.
If you’d also like to, upgrading other hardware components will be beneficial as well. Sometimes, it’s the hardware which limits the speed, not the software.

Conclusion

Linux is extremely versatile, letting you do virtually whatever you want with it. The modular structure is also very helpful, letting you replace clunky parts of the system with more efficient ones. With these tips, hopefully you can gain a little more speed with this great operating system.
Have you got any more tips to decrease Linux boot time? Do you have any feedback about the tips I have shared here? Let us know in the comments!via[makeuseof]

Mar 1, 2012

Guideline for New Linux Administrators: Part VIII


Before Linux Installation













Which Linux distribution should I use?


Linux distribution is a coherent collection of free software with the Linux kernel (operating system) at its center. To run Linux, you normally need a Linux distribution on a CD.
The differences between the various Linux distributions ("distros") are minor: the installation program, choice of the bundled applications and tools, arrangement of a few things on the hard drive. Regardless of your choice of distro, most of Linux is still at the same, and standard hard drive locations are used for essential items. Whichever distribution you decide to install, you will end up with essentially the same Linux.
We mostly use Mandrake Linux (sometimes called MDK) or Fedora (former known as "Red Hat Linux" "RedHat" or RH) and for the following reasons:
1. They are both very popular (both an advantage for a newbie and a testimony to their quality).
2. They are both general-purpose distributions.
3. They both come with relatively easy setup programs.
4. Both Mandrake and RedHat contributions to Linux are "open software" (this means that all the software written by the packaging corporations and included on the distribution CDs is licensed under the General Public License, GPL, so that it can be legally copied, given away, reused, etc.).
5. Both Mandrake and Fedora can be obtained cheaply or free if you don't care for commercial support. This is a consequence of (4).
6. Mandrake was once originally based on RedHat, so both distributions are quite similar. Software packages for RedHat often work on Mandrake (and vice versa) without problems. However, Mandrake is a bit more automatized and makes a somewhat nicer desktop than RedHat. At the same time, Mandrake sometimes is not as rock stable as RedHat.
In short, as a newbie, you can safely bet on "Mandrake" or "Fedora" unless you like something else or have specialized needs, or your environment suggests using something else (e.g., if you have an experienced guru nearby, or a bunch of friends who are using Linux, you may want to use the same distribution - makes getting help a whole lot easier).
The most recent distributions we recommend (December 2003) is Mandrake 9.2, and "Fedora Core 1" (the predesessor of Fedora was "RedHat 9.0"). These are both excellent distributions. Be sure to specify the most recent version if ordering your software from a dealer--many dealers like to clear their inventory by sending you an older version (this applies not only to Linux). Generally, development under Linux is fast, and you don't want to waste your time with older distributions. The authors of this guide have no connection to Mandrake or RedHat (or any other Linux distributor) whatsoever.
Our recommendation of Mandrake and Fedora for newbies does not mean that other distributions don't offer benefits or unique features which may surpass Mandrake or RedHat in specific areas. We do believe that we benefited from exposure to a different distribution because it helped us understand Linux better.
We tried Debian and we liked it very much. It was probably as easy as RedHat, but Debian seems less common (hence, being newbies, we picked up Mandrake or RedHat). The great benefit of Debian is that it is 100% non-commercial (put together by volunteer hackers, the true Linux way) and it probably most strictly adheres to Linux standards (it probably sets the standards too). Another great benefit is that Debian crams on their numerous distribution CDs thousands of tools and applications--easily much more than any other distribution. All these tools/apps are nicely "packaged" (for ease of installation) and tested for compatibility. This makes Debian distro look monumental, safe, conservative, and always somewhat outdated. So yes, we would not have a problem recommending Debian as a great general-purpose Linux distribution. Debian calls itself "The Universal Operating System" for a good reason. At any time, Debian carries 3 versions. (1) The "stable" version (sometimes called "potato"), and we would not recommend it, unless you are really paranoid on stability and don't mind quite outdated packages. (2) The Debian "testing" version (sometimes called "woody") is probably as stable as the latest RedHat, and more stable than your current Mandrake. It is much more up do date than Debian "stable". Debian Woody is the version we like. (3) If you don't mind occasional trouble, you can also the the third branch called "unstable", which is likely quite up-to-date.
S.u.S.E Linux distribution (http://www.suse.com) is very popular in Europe. It surely looks German--a solid, general-purpose distro with an easy setup and an excellent reputation. Many users swear by SuSe. We couldn't find cheap Suse CDs though but it appears you can download it (I cannot find a link). Their product includes propriatory additions that will satisfy enterprise-level need to interface some popular propriatory applications (MS Exchange, Cross-over office, etc).
Slackware seems to be favorite among "hard-core hackers" who like customizing scripts. We would have trouble recommending Slackware for Linux newbies unless the newbie likes to feel cool. Our reviewer Bill Staehle says: "The real 'reason' for a newbie to avoid Slackware is that it is much more command line oriented, and lacks some of the 'cutsie slick and drool' tools that the other distributions have." We received feedback from Linux newbies who use Slackware and it works very well for them. It seems that Slackware is relatively simple and cool because of the lack of automation. Therefore, with a bit of effort, a computer-literate administrator can actually understand what is going in her operating system (this is not something I can always say about Mandrake, or MS Windows for that matter).
Knoppix Linux (http://www.knoppix.net) is another distribution worth consideration. The main point of Knoppix is that it is a "live distro", i.e., it can be booted from a CD, without installation. This is excellent for trying Linux (if you like it, you can also install Knoppix on the hard drive). It is also makes a perfect disaster-recovery tool (distro on a CD is also safe because no malicious program can do anything to your executables, and non-invasive for the local storage as required for post-mortem analyses). Knoppix is also useful if you have to work under Linux on sombody elses computer: you insert Knoppix CD into the CDdrive, and perhaps exteral storage on the usb port (for personal storage), and you are all set to work in your own environment. When done, you take your chips home. You can mount the local computer resources if you have to. Interesting tool.
Gentoo seems to have some strong following. In Gentoo (hearsay, never used it), they have a cool installation/upgrade system which does anything from sources (a local compilation is required). Long compilations can be joy to watch but, well, they can take time. The resulting executables are taylored to your hardware so they are perhaps smaller or faster than those on a more-standard "already cooked" (binary) Linux distribution.
Corel was once working on their own Linux distribution apparently geared towards a nice and easy platform to run the Corel suite of office applications: WordPerfect wordprocessor, QuattroPro spreadsheet, Corel Presentations, Paradox database, CorelDraw artist package.... The Corel Linux was based on the Debian distribution. It looked initially very promissing, but it is unclear to me what Corel has done with it (was paid by Microsoft to drop it?). In brief, Corel Linux is dead now, and I would never recommend it to anybody because it it a dead-end. The only reason to mention it here is that Corel Linux once received lots of publicity, so you may still hear about it. It seems like a sad story, particularly for Canadians.
Caldera was once another well-known distribution. It was said to be aiming at corporate users, had a fancy (and pricey) configuration tools, and other corporate goodies. In Aug.2000, Caldera purchased SCO Unix (the original trademarked ancient UNIX) which gave them an even more "corporate" look in my eyes. Caldera did not seem to care too much about home Linux users, so I never considered it for my home use. In early 2003, Caldera (renamed SCO) evidently swiched to different, perhaps more profitable, business model ("fire programmers, hire lawyers"). I will surely stay clear of anything that might bear the name SCO or Caldera on it because I do not like the idea of paying US$1399 for the right to run Linux on a single-processor computer or being sued. Caldera/SCO Linux distro certainly does not have any future.
There are "localized" versions of Linux for specific countries or languages (Korean, Chinese, Japanese, Hungarian, French, ... )--they likely contain (on default) all the hacks and docs (documentation) that the users in these countries want to see. Says Bill Staehle: "You may want to mention the Conectiva Linux distribution, loosely based on RH from Brazil. As such, it is in Portugese, and is also available in Spanish. Try:http://www.conectiva.com.br/". I heard several good things about Conectiva, so if Portugese or Spanish was my language, I would probably give it a try.
There are also "special purpose" distributions, e.g. the "real-time" editions of Linux (might be useful if you are in for automation, robotics, fast speed data acquisition, etc.), very small distros (if you like the idea of running Linux from a single floppy which can be useful for system security or recovery), Linux for embedded systems (if you wanted to customize Linux as a small "special purpose" device, which could be good for the next-generation stereo, MP3 player, palm computer, or a fancy cellular phone), parallel computing and clustering systems (might be great if you plan to do your own weather forecasting or at least nuclear explosion simulations, etc. Here the differences will be larger, but these distributions are not meant to be "general purpose". As a newbie, you likely don't want to start with any of these, although you might be tempted to. (They surely show Linux strength and viability--Linux runs on toys, even a wrist watch, as well as computer clusters that make the currently fastest systems in the world.)
The distribution you need is of course specific to the hardware platform you have. This means that for your PC hardware containing an Intel 386 processor, or Intel 486, or Intel Pentium, or Intel 586, or Intel 686, or Cyrix, or K6, AMD, or similar, you need the binary distribution called "Intel" or "386" or x86. [Unless you are prepared to start with your own compilation of the Linux source code, which is not typical for a newbie] . This happens because there are binary distributions for other hardware platforms too: PowerPC, Alpha, Apple, IBM mainframe, "Intel StrongARM", Transmeta, and perhaps a dozen more--you don't want to get those binaries for your PC clone; they surely will not work on a PC machine with an "Intel" or "AMD" processor inside. If you have no-Intel hardware, you may want to search the Internet to find who supports it (chances are Debian does, they seem to support even the most exotic ones. Then, you need to obtain "Debian ARM" or "Debian Motorola 680x0"or "Debian PowerPC" or "Debian SPARC ", ...). In short, although newbies get confused with the multiple Linux distributions, there are reasons to have different distros. They should be viewed as a Linux strength rather than weakness. Linux is simply filling all application and hardware platform niches. The drawback is that there are some "funny" distribution to avoid if you plan your serious business to depend on Linux. This guide concentrates on RedHat and Mandrake for the PC (Intel) platform. Many of the answers will work fine on other distributions or platforms, but we did not try them.


Related post:-Guideline for New Linux Administrators: Part I

Feb 28, 2012

Guideline for New Linux Administrators: Part V


Linux warranty and security

Don't count on suing. Things go wrong on many MS Windows NT machines every day, and there are no damages awarded by courts. Read your MS Windows license agreement to find out that there is no guarantee whatsoever that ANYTHING will work. Trying to sue would be a waste of your money.
Linux also provides no guarantees, although it is far more secure than any version of MS Windows (assuming comparable functionality is installed on both). If you are really security-sensitive , you can use high-security tools built by companies that rely on the availability of the source code to design and test their security features (e.g., Kryptokom in Germany provides high-security firewalls). The "security in obscurity" implemented in MS Windows has repeatedly been demonstrated to be a naive approach.
"Risk aversion is what dictates you use Linux and other open products, rather than NT. The risks with NT are entirely out of your control, and there is nobody you could sue if anything goes wrong. Why people still believe the myth that Windows in any form offers any bit of accountability "more" than Linux remains a complete riddle to me." (David Kastrup, Research Engineer, Bochum, Germany, "Internet Week,"

Feb 27, 2012

Guideline for New Linux Administrators: Part IV


What are the differences between Linux and UNIX/MS Windows?

What are the differences between Linux and UNIX
Command-line-wise, almost none, although this has been changing (for better or worse). Linux has a much larger market appeal and following than any commercial UNIX. GUI-wise there are also no major differences--Linux, as most other UNIXes, uses an X-Windowing system.
The major differences:
  • Linux is free, while many UNICES (this is supposed to be the plural of UNIX), are very expensive. The same for applications--many good applications are available on Linux free. Even the same commercial application (if you wanted to buy one) typically costs much more for a commercial UNIX than for Linux.
  • Linux runs on many hardware platforms, the commodity Intel-x86/IBM-spec personal computers being the most prominent. In contrast, a typical UNIX is proprietary-hardware-bonded (and this hardware tends to be much more expensive than a typical PC clone).
  • With Linux, you are in charge of your computer, whereas on most UNICES you are typically confined to be an "l-user" (some administrators pronounce it "loser").
  • Linux feels very much like DOS/Win in the late 80s/90s, but is much sturdier and richer, while a typical UNIX account feels like a mainframe from the 60s/70s.
  • Some UNICES may be more mature in certain areas (for example, security, some engineering applications, better support of cutting-edge hardware). Linux is more for the average Joe who wants to run his own server or engineering workstation.
What are the differences between Linux and MS Windows
Mouse-click-wise, almost none, once Linux is properly installed. Linux installation can be a challenge though, whereas MS Windows comes, most likely, pre-installed with your computer.
The major differences:
  • Linux is free, whereas MS Windows costs money. Same for applications. If MS Windows or Office comes preinstalled with the computer it is unlikely it is free. Ask in the store to take it off your computer (your run Linux) and you are likely to obtain a discount, at least in smaller stores.
  • Linux file formats are free, so you can access them in a variety of ways. On MS Windows, the common practice is to make you lock your own data in secret formats that can only be accessed with tools leased to you at the vendor's price. How corrupt (or incompetent?) must be the politicians who lock our public records into these formats! "What we will get with Microsoft is a three-year lease on a health record we need to keep for 100 years" [http://news.bbc.co.uk/hi/english/health/newsid_1694000/1694372.stm].
  • With Linux, you are unlikely to violate any licence agreement--all the software is happily yours. With MS Windows you likely already violate all kinds of licenses and you could be pronounced a computer pirate if only a smart lawyer was after you (don't worry, most likely none is after you).
  • MS Windows tries to be the "lowest-common-denominator" operating system (for better or worse), whereas Linux is built for more sophisticated, feature-hungry computer users (for better or worse).
  • MS Windows is based on DOS; Linux is based on UNIX. MS Windows Graphical User Interface (GUI) is based on Microsoft-owned specifications. Linux GUI is based on an industry-standard network-transparent X-Windowing system.
  • Linux beats Windows hands down on network features, as a development platform, in data processing capabilities, and as a scientific workstation. MS Windows desktop has a more polished appearance, smoother general business applications, and many more games for kids (these are not better games though--Linux games tend to be more sophisticated).
  • Linux is more feature-rich than you could imagine. Heard on the Internet: "Two big products came from the University of California: UNIX and LSD. And I don't think it's a coincidence." MS Windows is simpler.

Guideline for New Linux Administrators: Part III

What are the benefits of Linux?
The operating platform that is guaranteed "here-to-stay." Since Linux is not owned, it cannot possibly be put out of business. The Linux General Public License (GPL) insures that development/maintenance will be provided as long as there are Linux users. There are a great number of highly-educated Linux users and tens of thousands of actively developed projects.
A platform which will technically develop at a rapid pace. This is insured by the modern, open-software development model which Linux implements: "build-on-the-back-of-the-previous-developer" and "peer-review-your-code" (as opposed to the anachronistic closed-software model: "always-start-from-scratch" and "nobody-will-see-my-code"). Even if the current "Linux hype" died out, Linux will develop as it did before the media hype started. Open source development does have its peculiarities: the development appears rather slow (vertically) but it proceeds on a very wide front, dangerous security bugs are fixed almost upon discovery, there are typically several alternatives for a program of similar functionality. Linux depth cannot be overestimated.
If you wanted to learn first-hand about the General Public License, check these famous GNU documents:


In a nutshell, the GNU General Public Licence (GPL) allows anybody to:
  • use the software at no charge, without any limitations,
  • copy, and distribute or sell unmodified copies of the software in the source or binary form,
  • use the software with propriatory (e.g., your own) modifications, free of charge, as long as you do not distribute or sell the modified version,
  • modify, and distribute or sell a modified version of the software as long as the source code is included and licenced on the same terms as the original you received (the GPL),
  • sell support for the software, without any limitations.
What the GPL license *does not* allow code recipients to do is to take somebody elses software licenced under GPL, modify the software, and then distrubute a this modified version of the software under a propriatory licence. Speaking plainly, the GPL licence just forbids stealing existing (somebody else's) software for incorporation into a closed, commercial-only product. However, you may incorporate GPL software in a commercial computer program if you obtain permission from the copyrigtht holder. GPL is certainly not more restrictive or imposing than a "typical" propriatory licence. GPL is a licence that grants the recipient right which he otherwise does not have, but takes away none. Excluded from the use of GPL are persons who have violated the GPL.
In general, copyright laws regulates 5 rights: to copy the work, to make derivative works, to distribute the work, to perform the work, and to display the work.
Here is a table which contrasts the licence of Linux with that of MS Windows (put together by a RedHat lawyer, based on http://www.groklaw.net/article.php?story=20031231092027900):
LinuxMS Windows98
Right to copy the workYesNo
Right to make derivative worksYesNo
Right to distribute the workYes, under the same licenceNo
Right to perform the workYesYes
Right to display the workYesYes
The GPL license under which Linux is distributed is probably the most important part of it. It is designed to perpetuate the freedom of information. Other important open-source projects include science and law (hardly a joke). The Linux method is really nothing new--it is simply the application of the scientific method to software: you get information free, you add your ideas and make your living, and finally, you leave it free. However, some big corporations and their lawyers seem to be trying hard to change this, to push us back in time, to the dark ages, when information was kept "proprietary." Hence, you see in newspapers some famous Linux-connected persons involved in all kinds of struggles.
To get a flavour for the value of Linux, here are some prices for commercial software as listed atwww.amazon.com. All prices are in $USA, as listed on 2001-02-03, with discounts. Roughly equivalent Linux software is included on almost any Linux CD set (but with no restrictions on the number of clients). In addition, the hardware for Linux is typically significantly less expensive, since Linux can run all services on a single server:
  • Microsoft Windows 2000 Server (5-client)--$848.99;
  • Microsoft Exchange 2000 Server (5-client)--$1,279.99;
  • Microsoft Outlook 2000 (1-client)--$94.99;
  • Systems Management Server 2.0 (10-Cals)--$994.99;
  • Proxy Server 2.0--$886.99;
  • Microsoft SQL Server 2000 Standard Edition (5-client)--$1,229.99;
  • Microsoft SQL Server 2000 Standard Edition (1-user License)--$4,443.99;
  • Microsoft BackOffice Small Business Server 4.5 NT (Add-On 5-CAL)--$264.99;
  • Windows NT Server Prod Upgrade From BackOffice SBS Small Bus Server (25-client)--$558.99;
  • Microsoft Windows 2000 Advanced Server Upgrade (25-client)--$3,121.99;
  • Microsoft FrontPage 2000--$129.99;
  • Microsoft Internet Security and Acceleration Server --$664.99;
  • Site Server Commerce 3.0 (25-client)--$4,092.99;
  • Visual C++ 6.0 Professional Edition with Plus Pack--$525.99;
  • Microsoft Visual Basic Enterprise 6.0 with Plus Pack--$1,128.99;
  • Microsoft Visual Sourcesafe 6.0 CD--$469.99;
  • Microsoft Office 2000 Standard (1-client)--$384.99;
  • Adobe Photoshop 6.0--$551.99;
  • Microsoft Plus Game Pack--$19.99.
Linux (and thousands of other programs distributed under GPL) is often described as "free software". The word "free" has two quite different meanings in the English language, and it sometimes leads to misconceptions about the free nature of Linux. These two meanings follow the Latin adjective "liber" and the adverb "gratis," and they are often illustrated with the phrases "free speech" and "free (of charge) beer." Most Linux software is free in both senses, but it is only the first sense which is essential to Linux.

Jan 6, 2012

Red Hat Certified Engineer skills


Troubleshooting and System Maintenance

RHCEs must demonstrate the RHCT skills listed above, and should be able to:
  • use the rescue environment provided by first installation CD
  • diagnose and correct boot failures arising from boot loader, module, and file system errors
  • diagnose and correct problems with network services (see Installation and Configuration below for a list of these services)
  • add, remove, and resize logical volumes
  • diagnose and correct networking services problems where SELinux contexts are interfering with proper operation.

Installation and Configuration

RHCEs must demonstrate the RHCT-level skills listed above, and they must be capable of configuring the following network services:
  • HTTP/HTTPS
  • SMB
  • NFS
  • FTP
  • Web proxy
  • SMTP
  • IMAP, IMAPS, and POP3
  • SSH
  • DNS (caching name server, slave name server)
  • NTP
For each of these services, RHCEs must be able to:
  • install the packages needed to provide the service
  • configure SELinux to support the service
  • configure the service to start when the system is booted
  • configure the service for basic operation
  • Configure host-based and user-based security for the service
RHCEs must also be able to:
  • configure hands-free installation using Kickstart
  • implement logical volumes at install-time
  • use iptables to implement packet filtering and/or NAT
  • use PAM to implement user-level restrictions
We will get our hands dirty configuring, troubleshooting and installing a Red Hat system the following days!