Sunday, February 28, 2010

how to view all of my environment variables ?

just type the command set

NB:- tested on ubuntu 9.04

Why partition hard disks ?

why partition ?

overrun protection
easier administration
multiple disks
makes the process of defragmentation easier

Saturday, February 27, 2010

Thursday, February 25, 2010

Install truecrypt on ubuntu

Run a quick update
#apt-get update

You need to install the libgtk2.0-0 package, even though I have no GUI installed. Truecrypt requires this, as it doesn't allow you to install command-line only.
#apt-get install libgtk2.0-0

Once this is done you'll see an error since you don't have any other gtk/gui packages installed. To fix this simeply do:
#apt-get -f install

Now on to actually install truecrypt itself.

download you specific .deb package from truecrypt.org
I'm running the 64bit os so i grabbed:
Ubuntu - x64 (64-bit) .deb

Untar the package.
#tar zxvf truecrypt-6.1a-ubuntu-x64.tar.gz

Simply run the automatic setup
#./truecrypt-6.1a-setup-ubuntu-x64


NB:- tested on ubuntu 9.04

Thursday, February 18, 2010

File creation date not modification date

kent 41

File creation date not modification date

I would like to know the creation date of my files. When I look at properties I only see modification dates. Is there a way to see when a file was created


arndt

No. Unix doesn't keep that information. It keeps three dates: last write, last read and last status change. The last one is involved in permission changes and name changes. To see it, use

Code: ls -lc

see:- http://www.faqs.org/faqs/unix-faq/faq/part3/section-1.html


jnoreiko:-

That FAQ doesn't really help -- it says linux doesn't store creation date, but why on earth not?
It's quite a useful thing to know.


arndt:-


I googled a bit, but didn't find anything clear on the subject (in the news groups comp.unix.*, there have been discussions about it from time to time). Back when Unix was designed, having a fourth date in inodes was probably felt to take too much space. I seem to remember having read something about it in a book about Unix, but that's no big help, I guess.


vivek gite:-


inode data structure limitations is main reason to this kind of limitations.This is done to save disk space and to optimize performance. You can view data strcture by in Linux kernel source tree and fs.h header file.

Tuesday, February 9, 2010

LVM




http://tldp.org/HOWTO/LVM-HOWTO/


Ex:-

pvcreate /dev/hda5 /dev/hda6
vgcreate myvg /dev/hda5 /dev/hda6
vgdisplay
lvcreate -L +1900M -n mylv /dev/myvg
lvdisplay
mkfs -t ext3 /dev/myvg/mylv
mount

reducing the logical volume created:-

resize2fs /dev/myvg/mylv +1500M
e2fsck -f /dev/myvg/mylv
resize2fs /dev/myvg/mylv +1500M
lvreduce -L -1500M /dev/myvg/mylv

extending the logical volume created:-

lvextend -L +1500M /dev/myvg/mylv


adding new patition to the volume group myvg

vgextend myvg /dev/hda7

tested on Centos

Sunday, February 7, 2010

ubuntu repos in india




http://launchpad.net/ubuntu+archivemirrors

Ubuntu to Centos

http://ubuntuforums.org/showthread.php?t=824305
https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora
http://www.jpsdomain.org/linux/apt.html