Minutes ago, I was looking to see my GTK version on my Ubuntu 8.04.2. So, I googled it and found how to look at. Easy, isn't it? Here's how would you look at it.
write
dpkg -l | grep libgtk
at your terminal. I wrote it and found the following output:
tarif@tarif-desktop:~$ dpkg -l | grep libgtk
ii libgtk-vnc-1.0-0 0.3.4-0ubuntu2 A VNC viewer widget for GTK+ (runtime librar
ii libgtk2-perl 1:1.161-1 Perl interface to the 2.x series of the Gimp
ii libgtk2.0-0 2.12.9-3ubuntu5 The GTK+ graphical user interface library
ii libgtk2.0-bin 2.12.9-3ubuntu5 The programs for the GTK+ graphical user int
ii libgtk2.0-cil 2.12.0-2ubuntu3 CLI binding for the GTK+ toolkit 2.12
ii libgtk2.0-common 2.12.9-3ubuntu5 Common files for the GTK+ graphical user int
ii libgtkhtml2-0 2.11.1-1 HTML rendering/editing library - runtime fil
ii libgtkhtml3.14-19 3.18.3-0ubuntu2 HTML rendering/editing library - runtime fil
ii libgtkhtml3.16-cil 2.20.1-2ubuntu2 CLI binding for GtkHTML 3.16
ii libgtkmm-2.4-1c2a 1:2.12.5-2 C++ wrappers for GTK+ 2.4 (shared libraries)
ii libgtksourceview-common 1.8.5-1 common files for the GTK+ syntax highlightin
ii libgtksourceview1.0-0 1.8.5-1 shared libraries for the GTK+ syntax highlig
ii libgtksourceview2.0-0 2.2.2-0ubuntu1 shared libraries for the GTK+ syntax highlig
ii libgtksourceview2.0-common 2.2.2-0ubuntu1 common files for the GTK+ syntax highlightin
ii libgtkspell0 2.0.10-4 a spell-checking addon for GTK's TextView wi
In fact, it looks better when you copy-paste the output to the Text Editor.
Let me tell you the truth about her before I go. I was watching the "Slumdog: Millionaire" today and I agree with the main buddy there. "She is the most beautiful girl I've ever seen :P
Saturday, February 7, 2009
Wednesday, February 4, 2009
Try formatting!
To do this, I first check all my partitions of my file system using the sudo fdisk -l command. According to man fdisk “fdisk (in the first form of invocation) is a menu driven program for creation and manipulation of partition tables. ” -l will ensure the listing of all the partitions. When I run the command on my pc, I got this output:
tarif@tarif-desktop:~$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5a4fa8c1
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3243 26049366 c W95 FAT32 (LBA)
/dev/sda2 3244 9729 52098795 f W95 Ext'd (LBA)
/dev/sda5 3244 6486 26049366 b W95 FAT32
/dev/sda6 6487 6610 995998+ 82 Linux swap / Solaris
/dev/sda7 6611 9729 25053336 83 Linux
Disk /dev/sdb: 1017 MB, 1017117696 bytes
33 heads, 63 sectors/track, 955 cylinders
Units = cylinders of 2079 * 512 = 1064448 bytes
Disk identifier: 0xf522590c
Device Boot Start End Blocks Id System
/dev/sdb1 1 956 993263 b W95 FAT32
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 0, 33)
Partition 1 has different physical/logical endings:
phys=(217, 32, 63) logical=(955, 17, 42)
You can clearly see that the disturbing part is the pen drive part! Just what we need. Now, what we are actually going to do is to create a linux file system on our device (which is the USB data drive in this case). So, we need to use the mkfs, which “is used to build a Linux file system on a device, usually a hard disk partition”. Before using the command, we need to unmount the USB drive. So we should write in my case,
sudo umount /dev/sdb1
The drive is now unmounted.
Now we need to use the mkfs command, I'll assume that everyone is very careful at this point, because as my genius friend Taskinoor Hasan once said, “mkfs can not make mistakes. But you can only mistakenly vaporize your entire drive using it!”
So, let's format the thing now!
Write sudo mkfs -t vfat /dev/sdb1
The output was
tarif@tarif-desktop:~$ sudo mkfs -t vfat /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
It's done with ease!
All credit goes to Taskinoor Hasan who taught me this little trick while chatting! This guy is a gem, great to have him as a mentor and friend.
Cheers everyone and if not already, prepare to fall in love!
Subscribe to:
Posts (Atom)