Tag: google

get all the urls in html file (local or on server).

To use this, you will need the lynx tool, so install that first.

sudo yum install lynx

Now, to get list of all the URLs in local html file or some URL, just execute this:

lynx -dump -listonly

 

Enhanced by Zemanta

power save mode for battery in Fedora 19.

I was getting really bad battery life on my Fedora 19 system, and did not find much on how to tune it. Finally I found something that just does not need much configuration but works pretty well. So, here is what you need to do:

sudo yum install tuned tuned-adm

The second package, tuned-adm installs additional themes for power saving. It is optional and not mandatory. Once you have installed these, you can do the following:

tuned-adm list #List all the profiles
tuned-adm  # Set the profile.

 

Enhanced by Zemanta

Ubuntu – Really force remove a package.

I was trying to remove a package on one of the Ubuntu installations the other day and was not able to do so. I tried google and tried all the options mentioned in various forums like “-f”, purge, reinstall and few others but nothing helped. I kept getting some errors about some files being already deleted. I also tried “set -e” in the prompt but the only result I got was terminal also getting killed.

Finally I found the only thing that could work for me was to go to directory “/var/lib/dkpg/info”and then delete all files that started with the name of the package. Hope this helps someone.

Ubuntu-Desktop
Ubuntu-Desktop (Photo credit: Kevin Byrom)
Enhanced by Zemanta