Monday, January 26, 2009

Tips of the day

1. Hidden files in linux start with '.'
Example: .Trash is the usual hidden trash folder name. Similarly .themes for the themes and so on.

2. Many files do not have non-administrative user access. You need to be root user to access those files. It might seem easier to sign in as root but not recommended (In ubuntu signing in as root is prevented by default which can be changed.)
So for root access in commands in terminal, type sudo before the command.
In case you have to access a graphical application, type gksudo
Eg. gksudo gedit /boot/grub/menu.lst to edit the menu.lst file

3. Having used Gnome, KDE and Xfce desktop environments in recent past, I got to learn some facts that might be useful while switching among them.
The file manager (program doing the same function as explorer.exe in Windows) in those desktop environments are:
Gnome - nautilus
KDE - dolphin
Xfce - thunar

The basic text editing softwares (corresponding to notepad in Windows) are:
Gnome - gedit
KDE - Kate
Xfce - mousepad

4. Opening the file manager with gksudo might be a good idea to open/edit or cut-copy-paste restricted-access files the graphical way
eg. gksudo nautilus

Monday, January 19, 2009

Backup your installed packages with APTonCD

Gone are the days when you fear to do another clean install of your Linux drive just 'coz you'll lose all the installed software. I've just stumbled upon a software that you'll be looking for once you've broken the system and wanna do a clean install.

First on, some history. Every time I get my hands on Ubuntu CD and install it, I begin a series of tweaking around. This goes on until someday I break the system upto the state of no recovery. Then I give up and don't turn back to linux for some time (maybe even months). Every time I've managed to extend the time for which the system can be rescued (which shows I'm improving on rescuing side :-). But the fact that each time I've to download all those apps that I love haunts me. That lead to the search of some software which could backup all the packages and from which I could retrieve them. The answer to it is APTonCD

APTonCD is a tool with a graphical interface which allows you to create one or more CDs or DVDs (you choose the type of media) with all of the packages you've downloaded via APT-GET or APTITUDE, creating a removable repository that you can use on other computers.
APTonCD will also allow you to automatically create media with all of your .deb packages located in one specific repository, so that you can install them into your computers without the need for an Internet connection.

Just awesome for someone with 1GB data limit for the net. The package in repository (the one available via synaptic) has some bug. It crashes while reading from repositories. A newer version is available at the following link
aptoncd 0.1.98-0ubuntu4 for Intrepid (doesn't work for Jaunty, link to newer working version is aptoncd_0.1-1_all.deb for Jaunty)

PS. I haven't tried reinstalling packages after backing up, but was able to successfully make a CD image containing backup of all my apps. Will update on how well it goes.

Update: The restoration process worked flawlessly. Took me some time to figure out how to make it work directly from the .iso image file. It should be loaded using aptoncd. Then the selected packages would be restored to the cache. So all you have to do is add select the 'add downloaded packages' option from synaptic and add the /var/cache/apt/archives/ folder. (That's where the apt-downloaded packages go before installation). If you burn it to a cd, you can restore the required softwares after adding the cdrom to repositories

For someone who loves keeping the desktop neat, here's mine:

Monday, January 12, 2009

My Desktop

Click to enlarge

Thought I'd upload how my desktop looks like now..

Customisation Details on Ubuntu 8.10 base:
Xfce desktop environment (Xfwm4 compositing window manager)
Gnome applications
Avant window-navigator (that's the dock at the bottom)
Tweaked a lot with themes (not sure how it's mixed up now:-)

All this in AMD Sempron 2800+ processor, no external graphic card, with 768MB of RAM including Integrated Graphics memory.

CPU usage around 50% and memory usage just 384MB with firefox and songbird running.

Saturday, January 10, 2009

Installation Blues - 2

Installation from LiveCD is a breeze. In the newer versions of Ubuntu/Kubuntu (other distros are likely to have similar arrangement), there is an installation icon on the desktop. Just click it and off you go. Otherwise, the option to install would come up while booting with the CD inside.

One of the place where you might get caught up is the partition section. If you are installing it fresh onto a hard disk, there is nothing to worry. Just select the hard disk and everything will be done automatically. Select the manual option if you have to do other things like dual-boot or install the OS only onto a part of hard disk. If you are planning to dual boot, better free around 6GB or more disk space and partition it into a separate drive using Partition Magic or some other in Windows itself. I always have half of my 14 GB IDE hard disk (yes they did exist 10 years ago!) free for this purpose. XP goes into the other half.

Back to partitioning, after selecting manual option, you'll get to a window showing the partitioned drives. If you do not see any of the drives not listed, that's probably because you might have mounted some drive before starting installer. Better exit the installer, unmount all drives (right click and select unmount) and start all over again[1]. Once you reach the partition manager section and see that all drives are listed, you can start the partitioning. Delete the partition you intend to install OS onto. Various suggestions have been made about partitioning the drive. The most consistent one is to have a /home partition (1.5GB+), / partition (4GB+) and swap space (the size of your RAM is recommended). So once you have decided how to do the partitioning, go on to the next steps and finish installation. If everything has gone well, you'll see the grub menu after rebooting.

Troubleshooting:
1. Getting stuck before LiveCD even boots properly.
Soln: the problem is likely with the graphics card not being properly supported by default.
Select the safe graphics mode in modes (F4) when the booting from CD menu comes up.



2. Grub not loading after installation.
Soln: This could happen in systems having two or more physical hard disks. The problem is that grub could be matching the hard disks in the wrong way. The workaround I found is to change the Hard Disk priority in BIOS. In my BIOS menu, I just changed the Hard disk order under boot menu and it worked. (went through a lot of trouble trying to find solution for this one..)

[1]: For those who found what I said confusing. This happens only when you are installing after trying out OS directly from LiveCD. If you try to access files on your computer while doing so, those drives would be mounted. The partition manager requires all the drives to be unmounted before partitioning work is done. Hence if you plan to install the OS onto your system, either do not access files that time or unmount all drives.

Friday, January 9, 2009

Installation Blues - 1

First things first. There are a multitude of things that can go wrong while installing Linux. Driver issues were common in the past. But all that is now gone. In most cases you know beforehand whether the OS would work on your computer or not, thanks to LiveCD.

A live CD or live DVD is a CD or DVD containing a bootable computer operating system. Live CDs are unique in that they have the ability to run a complete, modern operating system on a computer lacking mutable secondary storage, such as a hard disk drive.

A live CD finds it's use in more than one way. So always keep one in hand, it doesn't matter whether it's the newest version or not. I have used it innumerable times to rescue the system- both Windows and Linux.

Most of the starters will be installing linux as dual-boot, ie. Both Windows/Mac and Linux in the same system. Ubuntu and most other distributions have complete support for this and grub (the default bootloader[1]) does it automatically. But one thing- NEVER hibernate the other operating system before you are going to install linux. The problem here is that grub would not be able to read those drives and hence locate the other system. You will have to manually configure grub later which we'd like to avoid. I'll report further on installation as and when they come to mind..

[1]The bootloader typically loads the main operating system for the computer.