Hiren’s BootCD From USB Flash Drive (USB Pen Drive)

Step 1
Put the BootCD 8 or newer in CD Drive

OR
If you want to extract boot files from iso then Download extract-boot-files.zip
Extract and open readme for more instruction. and skip to step 4

Step 2
Start Mini Windows 98

Step 3
Copy Files From A:\ (Floppy Drive) using Explorer to C:\USB and Restart Computer to normal Windows

OR
Note: if you can not see your hard drive from mini windows 98 then you will need a blank floppy disk.
click Start > Turn Off > Exit to Dos and type COPY A:\*.* B:\
Now remove floppy and Restart Computer to your normal Windows and insert your floppy disk
and copy all files from floppy disk to C:\USB

Step 4
Download USB Disk Storage Format USB Disk Storage Format (34KB)
ScreenshotNote: USB Disk Storage Format works on xp, for windows 98 Go to My computer and
Right click on the USB Drive and click on format. You will need a USB Flash Drive 128MB or more

Screenshot
Step 5
Copy All Files From C:\USB to Your USB Flash Drive
Please note: Do not overwrite IO.SYS when it prompts
Delete JO.SYS from USB Drive (NOT IO.SYS)
Step 6
Copy \BOOTCD folder to Your USB Drive

Step 7
Test Your USB Drive

Share/Save/Bookmark

The Anatomy of a Crappy Linux Distro

All Linux distributions are not created equal. Some are superior in quality while others are so full of crap. I hate to sound grumpy like Béranger, but I have tried plenty of distros my entire life and have experienced using those that made my blood boil. I’m naturally a patient man, however, I have to be honest and share to you (based on my own experience) some of the things that can make me think of a distro as a piece of rubbish.

For me, a Linux distro is crappy when:

1. Installation takes hours to completely finish despite using a high-end machine.

2. It fails to install even after using every given boot parameter.

3. The installer fails to configure the boot loader properly.

4. The size of the system installer is more than 1GB but its included or out-of-the-box applications are mostly not what I wanted.

5. Its package manager can mess up the installed applications after a software update.

6. It sacrifices performance for beauty.

7. It tries to look like Mac OS X or Windows Vista.

8. It has a lightweight window manager but it’s slower than a walking turtle.

9. Its project website and help forums treat you like s#!%.

10. It fails to give you necessary updates and security fixes.

11. Its latest distribution version is way buggier than the previous version.

12. Its stability is equal to that of Windows 2000 Me.

13. Have you used a crappy Linux distro? Feel free to add your annoyances here.

I hate those crappy distros, but I still love Linux :)

Share/Save/Bookmark

Using a liveCD as your Linux Desktop

Most of the “Desktop” Linux liveCD distributions (distros) are meant to to be used for trying out or demoing Linux before installing them to your hard drive. Popular distros like Ubuntu, Mepis, and PCLinuxOS are good examples and in my mind are some of the best offerings. I’ve been there and done that. These are great distros, and there are many more! If you’re looking for a Linux distribution to install on your hard drive, these are all great distros, and you won’t be disappointed. Test drive the liveCD, install to your hard disk, and enjoy.

However, many liveCD distros can be used as a day to day desktop without ever installing them to your hard drive. Huh? Wait a minute, everyone installs the OS to a hard disk! Well yes, that’s the way it has always been done, but I am not sure why we should continue in that direction… “ah, but I was so much older then, I’m younger than that now” (Robert Allen Zimmerman).

Why would anyone want to use a Linux liveCD as a basic day to day desktop? Here are some thoughts:

  • Easy to load and update — Easy, because your data (including configurations) are separate from the operating system (OS). The idea of separating data from the OS has always appealed to me. It seems like a very logical and smart thing to do. Even when I partition a system for a hard drive Linux install, I create a separate partition for /home. Doesn’t everybody?
  • It’s portable — You can take it with you and securely boot up from just about any PC. Also, Linux liveCDs can often be installed and booted from a USB drive (thanks to some excellent standards around booting from USB drives). This really beats lugging a laptop around (especially when airport security is involved). The downside is that your Live-CD might not boot on all hardware. The distro might not detect the hardware correctly or the hardware might not be able to boot from CD or USB.
  • Most run on older PC hardware — Not only do they run, they usually run quite fast! (Did you ever notice that you usually cannot upgrade old PCs from Windows 95 to Windows XP?) Some of the older PCs don’t support booting from CD or USB. In such cases, you can usually copy the CD to the hard drive and create a boot floppy to load the image from the hard drive.
  • Security — It’s hard for someone to violate your OS when it resides on a read only CD. And, you can always reboot to a pristine state. This is kind of like going to communion and being forgiven for all past sins. Linux by design is a very secure OS. This just improves on it. Amen.
  • It’s just plain fun! — You can remix if you like. You can do your own. This is one of the great things about open source. I am waiting for the next version of Windows XP liveCD. Don’t get me wrong here, Microsoft does allow generating DOS 3.1 boot disks so you can network stage new XP clients. But that is more of an enterprise moment…

If you like the idea of using a Linux liveCD on a daily basis, there are several features that need to be present to make this an enjoyable experience:

  1. Saving and restoring configuration data from one session to the next. Specifically, changes to /etc, /usr, /root, and…
  2. Saving and restoring your home directory. This includes the configuration files for applications like your browser or word processor.
  3. Adding additional persistent software packages without remixing/re-mastering the CD. Using tools like apt-get or rpm do not meet this need. I cannot download and install applications each time I boot up.
  4. After boot, freeing up the CDROM for other use (like ripping a CD or just playing CD/DVD). This can be accomplished by loading the entire OS into RAM or by copying the CD image to your hard drive and booting and running from there. Loading your OS into RAM creates a very responsive PC. LiveCD distros without this option do not get much playing time in my space.

Four four-star liveCD Linux distros

Considering the above, if I were to award a star for each feature, how many four-star Linux distros would there be? Of the more popular distributions (per Distrowatch hit count), I would like to highlight four four-stars liveCDs — Puppy Linux, Kanotix, Damn Small Linux (DSL), and SLAX.

I really like and use all four. They are all capable of saving and restoring system configuration data and home directories. They also each have an easy mechanism to add persistent software packages and they all can be loaded entirely into RAM. One caveat: Kanotix requires a gigabyte or so of memory to load into RAM; however, memory is cheap, and after you get Kanotix loaded into memory, it screams!

  • Puppy Linux — developed by Barry Kauler, this small 60MB distro is loaded with applications and is one of the easiest distributions to work with after initial setup. When you boot it up for the first time, it looks for a place to put it’s default 250MB file and just does it. It saves everything in this file — configurations, home directory, and added software packages. Next time you boot up, everything just happens. Software packages are downloaded and installed with PupGet and DotPup tools. Really easy with a good selection of packages to choose from. For the size of this distro, it is really surprising how much you get. Also, it loads and executes in RAM by default. That’s a default I can live with!

    Puppy has the option of Booting from writable CD or DVD and saving everything back to the CD/DVD. No hard drive or USB drive is needed to save your data or added packages. I have not tried this feature, but it sounds very interesting. This method seems to create an audit trail of everything you do. When the CD/DVD fills up, it copies your current state to new media and continues.

    One security concern that I have with Puppy is that you boot up as user root. I would prefer booting up as user doggie or fido and using sudo for commands needing root privilege. Ubuntu has implemented their distros in this manner.

  • Kanotix — developed by Joerg “Kano” Sdhirottke, this distro is somewhat larger (~700MB) than the other distros discussed. It is full featured based on Knoppix and Debian-Sid. It contains many of the latest software applications and is optimized for the i586 architecture. It has the backup/restore and persistent home directory features found in Knoppix.

    In addition, Kanotix comes with a software management tool called Klik that allow for easy persistent installation of additional software applications. The Klik agent is installed and ready to use. Each software package from the Klik website consists of one compressed image file (.cmg). After you download this file (of course you put this in your persistent home directory), all you have to do is click on it to load and execute. Simple. If you want to delete the software package, you delete the one file and you are done. The solution is quite flexible and most of the downloaded applications actually work.

  • Damn Small Linux (DSL) — a small (~50MB) distro developed by John Andrews and Robert Shingledecker. DSL’s backup/restore methods are unique in that the user can specify the files or directories to backup and restore. Once done, backup and restore are done automatically by default. A cheat code is provided to allow you to override this feature. In effect, this cheat code allows you to be pure again. Amen. It’s optional to load the entire image into RAM. Needless to say, it’s an option that I always select.

    The DSL philosophy is to start small and add any additional software that you need. To do this there are “extensions” or modules that can be loaded at boot time or when needed. All you have to do is download these extensions to your persistent area and they are there for you use at every boot. Very easy! Actually, you can load extensions at boot with cheat codes or manually after boot.

    DSL has a very small footprint that can then grow to fill your needs… a great Linux distro.

  • SLAX — this distro is based on Slackware, one of the oldest linux distributions. Developed by Thomas Matejicek, it provides scripts (Linux Live Scripts) for others to create their own liveCDs. And, there have been many takers — STUX, Goblinix, Buffalo and Mutagenix to name a few. Note that many of these hacks provide four-star features, as outlined above. Note: if you like gnome, Mutagenix is a worthy distro.

    SLAX uses “modules” to load system components and applications. This is all done at boot time. So, it is very easy to add additional persistent applications. This same module methodology is used to backup and restore user data and configurations. Very clever.

The bottom line

There are many Linux liveCD distros that are not really meant for installation to a hard disk. They can be booted from CD or USB and used as your everyday desktop. They are easy to update, are portable, work on older hardware, are very secure and are great fun. Party on!



Share/Save/Bookmark

Choosing a desktop Linux distro

Probably everyone who reads DesktopLinux.com — and certainly yours truly — encounters the same question over and over again: “What’s the best Linux desktop distribution?” Now, while some people will swear up and down that Slackware or Fedora or even Puppy, for that matter, is the best Linux desktop, I think the answer is more complicated. In fact, I don’t think there is a single answer.

I think the best Linux desktop is the one that’s best for a particular person based on their needs and level of Linux expertise. So, the next time someone asks you that question, I suggest you reply with a couple of questions of your own.

For example, you could ask, “Do you want to replace Windows? For home? For work? Are you interested in Linux because you want to get some new life out of an old system? Do you just want to mess around with Linux?” And so on…

Then, once you know where they’re coming from, you can give the best possible answer.

For what it’s worth, here’s what I’d tell someone today based on some of the more common answers I get to my questions.

  • I want a home Windows replacement.

    For these folks, I have an additional question: “Do you want just the software basics, or do you want to shop around for other open-source software?”

    If they just want the basics, I recommend Xandros Inc.’s eponymous Xandros 3 Desktop. The Xandros line has been meant from the start to persuade Windows users to give Linux a try.

    In my experience, Xandros is the closest to Windows XP you’re going to get with a Linux system. Now, for some of you, I know that’s the last thing you want, but for someone who knows Windows well, it may be exactly what they want and need.

    On the other hand, Xandros doesn’t have a lot of ready-to-use software outside of the basic package. If your friend really wants to try out a lot of Linux software but couldn’t tell apt-get from an RPM, then Linspire Inc.’s Linspire Five-0 is the Linux for you.

    I know it’s fashionable in some Linux purist circles to make fun of Linspire, but it’s well past time to get over that nonsense. Linspire is a good, solid Debian-based Linux, and like Xandros, it goes out of its way to be new-user friendly.

    Linspire also far out-does Xandros with its easy-to-use CNR (click and run) new software installation system. With CNR, even your grandma can install Linux programs.

    If your friend wants more than just something that looks like XP, but looks like a particular Windows set up, they should also check out the combination of Versora’s Progression Desktop and Win4Lin’s Win4Lin Pro.

    Progression Desktop migrates Windows and Windows programs’ settings and data from Windows to many Linuxes, including Xandros and Linspire. For example, you can use it to transfer Outlook on Windows messages to Thunderbird on Linux. Win4Lin enables you to run Windows 2000 or XP as a virtual machine in Linux. The companies have bundled these together to make a single package.

    While I haven’t had a chance to really review this combo, I have tried it out with Xandros and an XP set up, and it does seem to deliver the goods. Look for a real review of the pairing soon, here at DesktopLinux.com.

  • I want Linux, but I also want my Windows games.

    This is a tricky one. I have yet to meet a great solution for this. You can use Win4Lin, but I’ve run into trouble from time to time with it and games that require Internet connectivity.

    TransGaming Technologies Inc.’s Cedega 5.0 claims to run Windows games “out of the box.” Well, no.

    By using WineX technology, you can run many Windows games — such as World of Warcraft — but installing each new game can be a cranky process. Still, with some patience and the right combination of software and hardware, it can work.

    My best advice here is for you, or someone else who knows Linux well, to actually do the initial Cedega and game installations for your Windows buddy. With a two-week free trial of Cedega, you’ll soon know if their favorite games are going to work.

  • I want a replacement for my Windows work desktop.

    You can, of course, use Xandros’ Xandros Business Desktop, but, as much as I like Xandros, it is a small company, and most businesses prefer dealing with a large, well-established vendor.

    For these situations, I recommend either Novell Inc.’s OpenSUSE 10 or one of Red Hat Inc.’s offerings — Red Hat Enterprise Linux WS, or Red Hat Desktop.

    You may notice that OpenSUSE is Novell’s community distribution. That’s right, but support is widely available for the entire SUSE line, and it is very solid. It’s my own business desktop of choice.

    The Red Hat pair are also good. Still, Red Hat CEO Matt Szulik has never been very bullish on the Linux desktop. For Red Hat, the server, and not the desktop, is where the real action is.

    Novell does offer a business desktop, the Novell Linux Desktop 9, but it’s really a thin-client rather than a full-featured desktop. If the question of the day were: “What’s a good thin-client desktop,” then I’d recommend it.

  • I want to make a living from Linux.

    If you want to learn about Linux, and then get a job working with it, Red Hat’s community distribution, Fedora is the desktop, not to mention server, for you.

    Red Hat Linux is, without question, the single most important business Linux. As fond as I am of some of the other distributions, if I had to make a living working on Linux tomorrow, I’d be working toward my RHCE (Red Hat Certified Engineer) certification as soon as possible.

  • I want to run Linux on an older machine.

    There are many great lightweight distributions, but I keep coming back to MEPIS’s MEPISLite. Weighing in at about 640 MB, MEPISLite will run on systems that were slow when Windows 98 was new.

    By using KOffice, instead of OpenOffice.org, and using the optional 2.4.29 kernel, I’ve managed to get MEPISLite working quite nicely on a bargain-basement system with an 800MHz Via processor, 128MB of RAM, and a 20 GB hard drive.

    You can certainly run Linux on even less-powerful systems with distributions like Damn Small Linux, Zenwalk (aka Minislack), or Puppy, but for the best combination of low system demands and features, MEPISLite, and its big brother SimplyMEPIS, is hard to beat.

  • I want a great distribution with GNOME interface.

    Ubuntu, to me, is the best available GNOME desktop system. While I’m not crazy about it as a server, it works well as a desktop.

    I’m hardly the only one who likes it as a desktop. It’s a leading choice in many surveys and, most pragmatically of all, it’s almost always the most downloaded distribution from DistroWatch.

    Why? Well, there are lots of reasons. Foremost, among them is that it’s built upon the strong Debian distribution and its many available software packages. Unlike mainstream Debian, however, Ubuntu quickly adopts newer enhancements. This makes Ubuntu more of a cutting-edge distribution than many of the other Debians.

    It also, in my experience, does an excellent job of making the most of the GNOME interface. While nothing equals the smooth integration of looks and functionality of Mac OS X’s Aqua interface, Ubuntu and GNOME come mighty darn close.

    As for KDE, I find many distributions do well by it. My particular KDE favorites are OpenSUSE and Xandros.

  • I want to use Linux in Spanish.

    In the United States, we still tend to think everyone speaks English. Since I’m married to a wonderful Cuban woman, the ever lovely Clara, I know better. Spanish is quickly becoming America’s second language.

    For those users who are more comfortable with Spanish than English, I think the clear winner is Mandriva’s Mandriva Linux 2006. Spanish-language support has long been in the distribution, and now that Mandriva has partnered up with HP to deliver pre-installed Linux on Latin American HP desktop and laptops (now if only they would do it the States!) it should only consolidate the France-based Linux distributor’s lead.

    My own Spanish is, in a word, awful. I’m told those by friends that BlogDrake is a useful site for Spanish-speaking Mandriva Linux users.

  • I just want to mess around with Linux.

    The distribution to recommend here depends on just how much your pal already knows about Linux or Unix. Xandros is fine for someone who’s brand new to Linux; Ubuntu is a fine “play with” distribution for users with a bit more experience; and OpenSUSE is what I recommend for Linux power users.

Still can’t decide? It’s time to turn your attention to an online Linux Distribution Chooser quiz created by Daniel Eikeland, a project leader at Norwegian open-source consultancy Zegenie Studios. It’s a handy little test, and I’ve found it surprisingly good.

Heck, when I took it, it picked out OpenSUSE for me, so it must have something on the ball.

I could go on, but I think you get the idea.

There is no perfect Linux for everyone, but somewhere out there, once you know what you’re looking for, there’s a perfect Linux for you.

Happy hunting!

Share/Save/Bookmark

All About Linux 2008: Should Microsoft be afraid of Linux?

Does Microsoft fear Linux? Should it fear Linux? Does it fear Linux only in certain sectors, like Web servers, and not others, like the desktop? What exactly does “fear” mean here? Why do I still watch Lost? All important questions that deserve highly developed answers. PBS attempted to answer some of these questions, but that was in 1998. A lot has changed since then. I, for example, now wear a size 11 shoe as opposed to a 7.

I tend to view Linux as two different animals, rightly or wrongly. There’s Linux for the desktop, like Ubuntu, Gentoo, Knoppix and whatever flavor-of-the-month distro gets mentioned on this week’s Tekzilla. (I actually like Tekzilla, being a former TechTV viewer.) The average person, the man or woman who uses the computer at work to create spreadsheets or to order paper, doesn’t know Linux from Adam. At least until this past week, that is. They skip along happily, clicking “start” at the beginning of every day. Desktop Linux, supposedly, is for these folks, and certain distros, most notably Ubuntu, offer an easy-to-use environment, no command line needed. But really, with a 0.65 percent market share, do you really think Microsoft is worried about losing out to Linux? Its biggest competitor is Mac OS X, and that’s still only on 7.5 percent of all computers.

Linux on the server, however, is a whole ‘nother matter. A quick trip to microsoft.com offers a glimpse of how Redmond feels about the free as in freedom OS. There’s all sorts of charts and graphs and mentions of total costs of ownership.

But is that enough to call Microsoft “afraid” of Linux?

Judging by what Microsoft told me yesterday, the company seems as cool as you like and doesn’t view Linux, desktop or otherwise, as any sort of legitimate threat. Hubris? Hardly.

We have always had a very healthy attitude toward competition, knowing that it is always good for customers…. and we are confident that Windows Vista is the platform to enhance the individual digital lives of people around the world…. Windows Vista is on track to be the fastest selling operating system in Microsoft’s history, also thanks to our strong partner ecosystem.

That’s what the company’s rapid response team (well, that’s the name I gave it) told me. Even controlling for PR spin, to me those don’t look like the words of someone’s who’s “afraid” of anything. And why should it? Even though Vista has been universally panned—and some of that may not be specifically Microsoft’s fault—sales of 100 million licenses indicates that, someone, somewhere still takes Microsoft and Windows seriously.

And Linux on the deskop—come on now, really? Yes, Devin’s comments in this week’s Unreasonable Stance were a little on the bombastic side, but his general skeptical tone of Linux “making it,” or however you want to phrase it, looks right to me. Fact is, most people use the OS that ships with their computer. People who bought a mid-range Dell will use Windows XP or Vista for the life of the computer. The incoming college student who got a MacBook for his high school graduation will use Leopard. Do we really think that for all our huffing and puffing about Linux being more secure, which I’m not even disputing, we’ll get the average user to switch over? Convincing your friends to use Firefox instead of IE is trivial compared to asking someone to move away from Windows. I remember when I told one of my relatives that I got a Mac (this was a few years ago) he replied with something like, “Oh what type of Windows does it have?”

The average I-use-computers-to-check-my-e-mail-and-CNN-every-morning user is content with Windows. Tell them to turn on the built-in firewall and not to click strange things and you’ve solved any number of problems right there. Education, not a knee-jerk “switch to Linux!” reaction to the security problem is the best solution.

Not that I don’t like Linux. My experience with the OS sorta mirrored Biggs’. I remember once my high school closed early because of a gas leak or something else equally unsafe. Rather than use the free day to “hang out” with my friends, I installed Red Hat 8 on some old POS Compaq we had. More recently, I’ve been playing around with gOS. If the Wi-Fi support was a little better (read: if it worked on my MacBook), I could see myself taking in-class notes using Google Docs just to stand out. But just because I enjoy screwing around with command line doesn’t mean I’m gonna turn around and tell my uncle to drop his Windows setup.

So, should Microsoft be afraid of Linux? I really doubt it. I honestly can’t see regular users switching away from Windows, pirated or otherwise, to Linux. On the server market, yes, there’s a little more competition, but that just means Microsoft will have to actually try to innovate and convince its customers that a Windows license is worth their while.

Share/Save/Bookmark

Manage Your Synchronization And Backup Easily With Conduit For Linux

Manage Your Synchronization And Backup Easily With Conduit For Linux

Conduit for linux

Let’s face it, with a large bunch of files/folders/playlists/documents etc all over the places in different computers, USB drives, various Web servers, it can really be a tedious task to get everything synchronized and put them all in places. Conduit makes it simple for you to do so.

Conduit is a synchronization application for GNOME. It allows you to synchronize your files, photos, emails, contacts, notes, calendar data and any other type of personal information and synchronize that data with another computer, an online service, or even another electronic device. There is no command line required. You are good to go as long as you know how to drag and drop. Follow along as we show you how to install and configure Conduit in your Ubuntu machine.

Installing Conduit

The latest version (as of this post) of conduit is 0.3.14 while the version found in Ubuntu repo is 0.3.6. To get the latest version working in your Ubuntu, you can do either of the following:

Download the latest version of the Conduit deb file to your desktop. Double click to launch the Gdeb installer.

  • add the following repo to your sources.list (alternative method).

In your terminal, type:

gksu gedit /etc/apt/sources.list

Add the following lines to the end of the file

deb http://ppa.launchpad.net/conduit/ubuntu hardy main
deb-src http://ppa.launchpad.net/conduit/ubuntu hardy main

Save and close.

sudo apt-get update
sudo apt-get install conduit

Running Conduit

Open Conduit (Applications->Accessories-> Conduit Synchronizer)

You will see the screen below:

conduit-screenshot

Conduit-screenshot

The left pane shows a list of data providers that you can use for synchronization while the right pane shows a blank canvas where you can use to create synchronization rules.

Not every entry in the left pane allows two-way sync. You will have to familiarize with the three different kind of options that are represented by the blue arrow.

conduit sync out

– This data provider can only act as a synchronization source. You can’t write file into it.

conduit sync destination

– This data provider can only act as a synchronization destination. You can’t pull data from it.

conduit two way sync

– This data provider can perform a two way sync.

Once you are done, let create our first rules:

In this example, we will illustrate how to synchronize your photos from the Picture folder with Facebook, Picasa and Flickr.

On the left pane under the Files and Folders entry, drag the Folder item to the right canvas.

conduit-screenshot

Double click on the folder to display the folder configuration option. Select the Picture folder and click OK.

conduit select location

Next, we drag Facebook, Picasa and Flickr to the canvas

conduit screenshot

Similarly, double click on each entry to enter your login credential

conduit screenshot

Once you are done, right click on the canvas and select “Synchronize this group“. Synchronization will start. The whole process will depend on the number of files, the file size and the speed of your Internet connection.

The above steps can be repeated for any form of synchronization that are available in the left pane. You are free to mix and match and choose the way that best matches your usage pattern. There are plenty of things that you can do with Conduit. You can sync your Youtube videos to a local folder or to box.net, backup your Tomboy notes, sync your Google contact with Evolution etc. It is really up to your imagination how you want to utilize it.

Although Conduit is still under heavy development, it has already show great potential as the next killer app. Let’s hear your comments, what extra features do you hope to see in the future version?

Share/Save/Bookmark

Fancy a XP on Your Ubuntu?

For those who are too used to Windows XP interface, XPde (XP Desktop Environment) provides a desktop environment that emulates after XP.

The installation guide in the XPde folder does not work.

psychocats has written a simple script to automate the installation.

Download the scripts to your desktop.

In your terminal, type

cd ~/Desktop
chmod +x installxpde.sh
./installxpde.sh

Personally, I don’t find the XPde attractive, nor it is fully functional. But for those who really can’t live without XP, then this desktop environment might help you to get used to Linux easier.

To uninstall, in your terminal, type,

sudo rm -rf /usr/share/xpde
sudo rm /usr/share/xsessions/XPde.desktop

Share/Save/Bookmark

8 Ways to Maintain a Clean, Lean Ubuntu Machine

) Analyze your disk usage

The first thing that you need to do is to find out which files are consuming the large bulk of the storage space in your hard disk. Go to Applications->Accessories->Disk Usage Analyzer and click on the Scan Filesystem at the top to get it to analyze your disk usage pattern. You will be able to see instantly which files/folders are taking up the bulk.

disk-usage-analyzer

Once you have determined the files that are taking up large storage space, you can do the following:

  • decide if you have any use of the files. If not, send them to the trash.
  • If you have no immediate use of the file, but will need to reference to it in the future, either backup to a CD/DVD or to an external hard disk. If the file is too big, you may want to compress and split it to several small files for easier storage.

2) Clear duplicate files and broken symlinks

Over the time, you could have dozen copy of the same file lying in different corners of your system. The best place is to hunt them down and eliminate them before they take control of the hard disk.

FSlint is a utility to find and clean various forms of lint on a filesystem, especially duplicate files and broken symlinks.

Install fslint, or via the terminal:

sudo apt-get install fslint

Go to Applications-> System Tools-> FSlint. Add the file path that you want to search. On the left, click on the Duplicate tab and click Find at the bottom.

FSlint

Other than finding duplicate files, FSlint can also find broken symlinks, empty directories, bad IDs and even redundant temp files, all of which you can delete and recover back your precious disk space.

3) Clean up your package installation

If you have installed and uninstalled a lot of applications, chances are your system is infected with a lot of dependencies files that you have absolutely no use for. Here are some useful commands to get rid of any partial package and remove any unused dependencies:

Cleaning up of partial package:

sudo apt-get autoclean

Cleaning up of the apt cache:

sudo apt-get clean

Cleaning up of any unused dependencies:

sudo apt-get autoremove

A good practice to avoid any left behind is to use the autoremove command whenever you want to uninstall an application.

sudo apt-get autoremove application-name

4) Get rid of old residual config package

When you upgrade a software to a later version, the package of its previous version will still be left behind in the system. You will be able to free up some space by eliminating the old residual config package

Open up your Synaptic Package Manager (System-> Administration-> Synaptic Package Manager). On the left, click on the Status button. You will see a few options appear on the top left pane. If there is a Not Installed (residual config) option, click on it. This will reveal all the residual config package in the system.

synaptic package manager

Check the box beside the package and select “Mark for complete removal”. Click Apply.

synaptic package manager

5) Remove orphaned package

Other than the dependencies files, packages can also become orphaned when you uninstall an application. To get rid of orphan files, we can make use of gtkorphan, a graphical frontend for deborphan.

Install gtkorphan or via the terminal:

sudo apt-get install gtkorphan

Go to System-> Administration-> Removed Orphaned package

gtkorphan

It will analyze the system and show all the orphaned package in the main window. Check those packages that you have no use for and uninstall them.

6) Keep track of what you have installed

Debfoster creates a dependency files to enable you to keep track of what you have installed. When you uninstall an application, it will check for any leave behind dependencies files or orphaned packages and ask you if you want to remove it.

Install debfoster, or via the terminal,

sudo apt-get install debfoster

Creating the initial keeper file:

sudo debfoster -q

Force the system to conform to the keeper file

sudo debfoster -f

If you have some packages that you never want to uninstall and do not want debfoster to handle those packages, you can edit the keeper file and remove those packages from the list.

gksu gedit /var/lib/debfoster/keepers

To see is there is any orphaned package or dependencies files that need to be removed:

sudo debfoster

7) remove locale files

Unless you have a need to switch to various locales all the time, you can uninstall the unused locales and free up some amount of the storage space in your system.

Install localepurge, or via the terminal:

sudo apt-get install localepurge

Once the installation is done, it will remove all locale files from your system that you have no need for.

localepurge

Share/Save/Bookmark

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Share/Save/Bookmark