Feeds:
Posts
Comments

Archive for the ‘Gnu/Linux’ Category

Geary is a lightweight email client for gnome desktop. To install geary in fedora 17 run the following commands as root

#wget -P /etc/yum.repos.d  http://repos.fedorapeople.org/repos/thm/geary/fedora-geary.repo

#yum install geary

Read Full Post »

With the WA3002G4 wireless router i got recently from my friend i made a wifi hotspot in home. Haven’t been downloading a lot since my script to reboot old teracom router was not working with the new one.Thinking that I should do something on the day which will come only in every four years I modified the old script to work with the new wireless router and I am sharing it here.

#!/usr/bin/env expect

set username admin
set pass admin
set host 192.168.1.1

spawn telnet ${host}

expect -re "Login:"
send "${username}\r"

expect -re "Password:"
send "${pass}\r"

expect -re "Main Menu"
send "13\r"
send "1\r"
expect eof 

Read Full Post »

Yesterday my ubuntu installation went wrong when i misplaced an essential lib. Even the tab completion feature in gnome-terminal and cp, mv commands were not working. Some how i backed up some *important files* i stored in my root filesystem to my usb drive and installed ubuntu again, and moved back the *important files* to root filesystem. But again ubuntu stopped working after i installed some debs. But this time before reinstalling ubuntu i forgot to backup the important files from my root filesystem to the pendrive. I realized this only after the installation process reached 50% . What to do???. Today classes were suspended at 12 because of Ayodhya verdict, so came home earlier, sat in front of the lappy and started googling. While searching i found a tool named ntfsundelete, but really disppointed when i came to know that it works only for ntfs filesystems. My pendrive is having Fat32 filesystem. Again continued searching and found a blog discussing about a component of testdisk application named photorec. I ran apt-get install testdisk and photorec got installed. i ran photorec at the command line and it told me to run it as root. so ran it as root and it asked me to select the disk. i selected my pendrive, it needed some info about parition table and the directory where the recovered files should be stored which was defaulted to home directory. And it started recovering. When the recovery process completed there was about 45 directories in my home directory. After spending some time in searching those directories i found 4 out of 5 *important files*. Four is a lot better than none, isnt it?.. thanks photorec!

Read Full Post »

Older Posts »