Pages

Thursday, August 26, 2010

Installed Fedora13 on my laptop

I have to say since the first time I installed Fedora 8,  compared to now, Fedora 13, they are Universes apart. The look and feel of Fedora now is clean, the available packages are spot on also. The thing that impressed me most was how easily it handled my LUKS partition. The installer prompted me for the passphrase and that was it. When I set up my partition table I was able to select the LUKS partition for my /home. This was great compared to the Kung-Fu I had to go through with other distro installers.

Restore Gnome menu icons

On the panel I like using the default main menu applet. Well in Fedora, Mint and Ubuntu some of the icons are not there from Places on down to Shutdown. Well to restore them there are two ways the quickest is to run in a terminal

gconftool-2 --type bool --set  /desktop/gnome/interface/menus_have_icons true

second way is to use gconf-editor and follow the path

desktop>gnome>interface and check the entry menus_have_icons

and that is it the icons are back.

Thursday, August 5, 2010

Rename directroy in linux

I love learning new tricks in cli. I learned to rename a directory I can use the mv command. Say I want to rename I directory called green in my home directory, all I need to do is use
$ mv green brown
 
That will change the directory greens name to brown I did not have to define the path since green was in the working directory of the terminal.  It is when I find little tricks like this I realise some of the wholes in my knowledge of linux. Thats good means there is plenty more to learn!

Fresh install with a LUKS /home partition

I had an LUKS encrypted home partition, I wanted do a fresh install of Mint, but the GUI installer did not seem to support this.  There was no easy straight forward way that I knew to do this. I was faced with backing up all of my info and then restoring it. This seemed like a good excuse to try to find a way to do a fresh install with a previously encrypted home partition. I read post that suggested I should save a copy of  /etc/fstab and /etc/crypttab  from my old install. After that I went about installing Mint 9, when the installer got to the partitioning section I used my  boot and root partitions, but had it install home on a USBdrive and left the encrypted partition alone. The whole install process went fine I disconnected the USBdrive and did a restart. At reboot it came up my /home partition was missing or not ready. So I dropped into a root shell, the first thing I did was to edit /etc/fstab and /etc/crypttab, in fstab I changed the entry for the my /home partition to reflect my encrypted partition. I then just copied all of the info from my old crypttab over since the new one was empty.  I also had to create a dir in /dev/mapper

 cryptsetup -v luksDump /dev/sda3

cryptsetup -v luksOpen /dev/sda3 home #this will create a entry in /dev/mapper called home


After I did this I rebooted it came up to unlock the LUKS partition, only issue I have is it try's to mount all of the partitions before I have finished  imputing the passphrase. So I have to hit M which drops to a option for root console or ctrl+D.  I hit ctrl+D and it open Mint. So I need to figure out how to pause the boot process while I enter the passphrase  and then I will be good.


this blog gave me the biggest clues http://tuxtraining.com/2008/03/05/encrypted-root-file-system-during-install-in-opensuse-103



also some clues from here http://forums.fedoraforum.org/showthread.php?t=234383