Wednesday, 7 December 2011

What is difference between extt2, ext3 and ext4 file-system ?


ext2 File System
1. No Journaling Support
2. Less Speed
3. Less Secure


ext3 File System
1. Journaling Support
2. More Speed
3. More Secure  
The main benefits that ext4 has over ext3 are: 

1- faster time stamping
2- faster file system checking
3- journaling checksums
4- extents (basically automatic space allocation to avoid fragmentation)

Swap Partition And Swap File In RHEL 5


[root@server1 ~]#swapoff –a
[root@server1 ~]# fdisk /dev/hda
Create a new partition of 2*RAM and assign the id 82 which is allocated for swap partition.
[root@server1 ~]#mkswap –v1 /dev/hda15
-v1 switch is used for version number.
Add an entry in /etc/fstab file
[root@server1 ~]# vi /etc/fstab
/dev/hda15 swap swap defaults 0 0
:wq Activate the swap partition using
[root@server1 ~]#swapon –a
(which reads /etc/fstab and turns on all the swap entries in the list.
[root@server1 ~]# swapon –s (is used to check the status of swap partition.)
Creating a swap file
[root@server1 ~]#swapoff –a
[root@server1 ~]#dd if=/dev/zero of=swapfile bs=512M count=1
[root@server1 ~]#mkswap –v1 /root/swapfile
Add an entry in the /etc/rc.local
[root@server1 ~]#vi /etc/rc.local
Swapon /root/swapfile

Friday, 16 September 2011

Installing Linux from an ISO image file

If you are fed up of burning DVDs or Live CDs and want to install your favorite Linux OS straight from the image file which you have just downloaded, you can do it. This is one of the great options of installing Linux to your system.
All you need is:
1. A partition of EXT2/EXT3 or FAT32.
2. An ISO installable image of any Linux Distro.
I am going to give a tutorial for Fedora Distro. For others you can refer to the Table which I have provided below.
First step is to create a directory under root directory "/"
mkdir /fedora mkdir -p /fedora/images
Copy the downloaded image file to /fedora directory.
cp /home/user/Fedora-11-i386-DVD.iso /fedora
Now all you have to do is to copy 3 of the files from this image file. You can either extract this image file and copy both the files or you can mount this file and then copy these 3 files to the /fedora directory.
The three files which are needed to copy are "vmlinuz" "initrd.img" and "image/install.img"
I will go for the mount option, just because it wont take any extra space.
mount -o loop /fedora/Fedora-11-i386-DVD.iso /media/iso
Note you have to create a directory called /media/iso before executing the above command.
Now enter into this directory:
cd /media/iso/isolinux
Copy the files:
cp vmlinuz initrd.img /fedora cp images/install.img /fedora/images
That's all for the setup. Now you have to edit the grub which is responsible to boot image files.
vi /boot/grub/menu.lst
or
vi /boot/grub/grub.conf
Append the following into the file:
title Install Fedora 11 kernel /fedora/vmlinuz initrd /fedora/initrd.img
The title is the title which you want to display in the GRUB menu.
The ‘root’ is the hard disk partition that contains the ISO image.
The ‘kernel’ is the Linux kernel, which we copied into /fedora directory.
The ‘initrd’ is the initial RAM disk image,  which gets into the RAM.
Now you are ready to install your new Linux distro directly from the hard disk without the need for a CD/DVD drive. Reboot your system and select the ‘Install Fedora 11’ entry from your GRUB menu.
Follow the onscreen instruction and you are ready with a new distro without any hassle to burn DVDs.

Table 1: Names of kernel and RAM disk images in some popular distros
DistroKernel pathRAM disk path
Fedora/RHEL/CentOS/isolinux/vmlinuz/isolinux/initrd.img
openSUSE/boot/i386/loader/linux/boot/i386/loader/initrd
Mandriva/i586/isolinux/alt0/vmlinuz/i586/isolinux/alt0/all.rdz
Ubuntu/casper/vmlinuz/casper/initrd.gz
Debian/install.386/vmlinuz/isolinux/initrd.img

Ubuntu 10.04 Lucid Lynx Released


The canonical team has released the much awaited Ubuntu 10.04
Lucid Lynx with Long Term Support (LTS). It has got lots of changes from
previous releases. This release will keep you more updated.
To download your copy, click on any of the following links.
http://www.ubuntu.com/getubuntu/download
http://noncdn.releases.ubuntu.com/10.04/
To order a Free CD via Shipit, click on the link below.
https://shipit.ubuntu.com
Please note: if you have a good Internet connection and a CD/DVD RW,
don't order the CD as someone else might actually need it.
To purchase a CD in and around Bangalore, send a reply to
www.twitter.com/sikku

Installing Conexant full speed modem driver on Fedora 11 and later


I found that some people have problem installing this driver on Fedora 11 (using available guidelines in Internet for Ubuntu), so I decided to try installing it on my system (which has a Conexant HSF modem chipset). I could install and use the driver successfully, but I think its license doesn’t allow me to distribute the final modified RPM package. So, I decided to create a simple shell script to create the package and put it here. (I wonder if we should put such documents inside Fedora wiki or not. Maybe I should communicate with Fedora Documentation people about it or read about contributing there?! Or maybe it is as easy as creating a new Wiki page there…)
Anyway, These are the steps to build a free full speed Conexant modem driver:
1. Download .tar.gz file of the free full speed driver release by dell fromhttp://linux.dell.com/files/ubuntu/hardy/modem-drivers/hsf/ (Download this file for 64 bit Fedora systems(x86_64) and this one for 32 bit(Fedora-i386,i586 or i686) systems)
2. Download the latest modem driver from Linuxant (.tar.gz version)download the latest version from here.
3. Download this script, put it beside those downloaded files and run the script  (If you run it as a regular user – which is recommended – you might need to run rpmdev-setuptree command first).
4. Now, you should be able to find the final RPM in ~/rpmbuild/RPMS/x86_64 (or ~/rpmbuild/RPMS/i586).
5. If you have an HDA modem, you must install Linuxant alsa driver fromhttp://www.linuxant.com/alsa-driver/. *Update: If you did not install this package and encountered sound problems after installing the hsf modem driver, you should probably install this package.
6. Now, you can install the generated rpm package. You might need to restart the system before using your modem. You can check your modem by running minicom to see if it can communicate with your modem.
Update: This script works fine on Fedora 11 and later. It has been successfully tested on Fedora 12 and Fedora 13. I’ll try to make sure that it works on future version of Fedora too.

Thursday, 15 September 2011

Install Screenlets


Screenlets are small applications to represent things such as sticky notes, clocks, calendars around on your desktop. You can launch a pre-installed screenlet from Screenlet Manager, or install a new one into the Manager for launching it. Here are the steps for installing and launching a screenlet, for example, WaterMark System Information.
  1. WaterMark ScreenletInstall Screenlets Manager if it has not been added.
    1. Go to Applications (or Main Menu) > Ubuntu Software Center.
    2. Enter screenlets in the Search Box.
    3. Select Screenlets, click the "Install" button.
  2. Download the screenlet "WaterMark System Information" to a folder.
  3. Go to Applications (or Main Menu) > Accessories > Screenlets.
  4. Click Install, select Install Screenlet and click OK.
  5. Browse to the folder, select the file downloaded and click "Open" to install the screenlet into the Screenlets Manager.
  6. Select the screenlet "WaterMark" and click "Launch/Add". (Tips: you can add more than one WaterMark screenlet and set it to display other system information.)
More screenlets are available for installation from screenlets.org.

Add More Useful Software


Ubuntu Software Center lets you search and get free software. If an application you need is not included in the Center, you can go to System > Administration > Synaptic Package Manager, type in an application name to search and install a software package from the repositories.
Alternatively, you can get the latest freeware applications by clicking the Install this now button from the GetDeb Repository after the getdeb package is installed with the instructions given.