Some hardware just don’t work with ehci_hcd on Karmic Koala. My memory stick from transcend refused to work no matter what I did. After plugging the device nothing happened, doing dmesg showed me the following error:
Apr 18 10:59:04 dpac-laptop kernel: [73668.388060] usb 1-2: new high speed USB device using ehci_hcd and address 5
Apr 18 10:59:04 dpac-laptop kernel: [73668.473034] hub 1-0:1.0: unable to enumerate USB device on port 2
After searching a lot, I came to a conclusion that my device doesn’t work with USB 2.0. So I disabled the ehci_hcd to make it work.
Since Karmic doesn’t use ehci_hcd as a module, modprobe -r ehci_hcd no longer works. The module is compiled into kernel. To disable it execute the following commands in terminal:
You will see a file with 0000:00:xx.x format. Execute the following command:
sudo sh -c 'echo -n "0000:00:xx.x" > unbind'
Replace the xx.x with the numbers displayed on your file. It should disable the ehci_hcd.
I plugged in my memory stick, and it worked.
Please note that you’ll have to do all this each time you restart.
You can now use the following script to disable ehci_hcd. It is far more simpler since it just needs you copy pasting the commands instead of a manual action. Here it goes:
sudo sh -c 'find ./ -name "0000:00:*" -print| sed "s/\.\///">unbind'
Those of who are bored of the dull themes of Linux, I found 13 cool new themes for Linux.
Bisigi Themes provide 13 free themes, each has its own icon-set, wallpaper, and color scheme. Just a few terminal commands are needed to install them.
Installation instructions of Bisigi Themes
Few people have complained that the link above does not open, so I’ll give the instructions here as well.
Add the key for repository:
gpg --keyserver hkp://keyserver.ubuntu.com:11371 --recv-key 881574DE && gpg -a --export 881574DE | sudo apt-key add –
Add the repository in sources.list. Open the terminal and fire the command:
sudo gedit /etc/apt/sources.list
Copy and paste the following lines at the bottom and save the file and exit.
## Thèmes du projet bisigi
deb http://ppa.launchpad.net/bisigi/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu karmic main
Note:Replace karmic with jaunty or hardy if you are using 9.04 or 8.04 respectively.
Update your software sources and install the themes:
sudo apt-get update
sudo apt-get install bisigi-themes
You’ll be prompted to choose your desktop resolution during installation. Choose the correct one for continuing the installation.
You can access the themes by going to System->Preferences->Appearance
If you are getting the following error while booting into ubuntu, its most likely due to low disk space in root drive:
“The configuration defaults for GNOME Power Manager have not been installed correctly. Please contact your computer administrator.”
After you enter the password on login screen, it takes you back to login screen making you unable to log in.
However, you can still get to terminal. Press Ctrl+Alt+F1 to drop to terminal from login screen. Enter your username and password and execute the following command:
sudo apt-get clean
This will clean up the package cache freeing up lots of disk space. If you don’t have anything in the cache you’ll have to move your files to another partition. You can use mv for the purpose.
mv source destination
mv ./file.zip /media/disk-3/file.zip
This will move the file – file.zip to /media/disk-3.
For people who still have the same error can try some alternate fixes as mentioned below:
- Chmodding /tmp to 0777 have worked for many people.
chmod 0777 /tmp
- Try to reconfigure your packages.Source
sudo dpkg --configure -a
- Manually create the directory /var/lib/gconf/default/. Source
- Reinstall GNOME and dependencies
sudo apt-get --reinstall install ubuntu-desktop
Note that this command will remove some settings. Source
To backup all or some of your MySQL databases, you’ll need mysqldump which comes bundled with mysql. If you have MySQL installed, you probably have mysqldump installed already.
To backup all databases use the following command:
mysqldump -uroot -ppassword --all-databases | gzip > /media/disk-2/db.sql.gz
mysqldump -uroot -ppassword --all-databases > db.sql
This will backup all your databases from a single command.
To backup just a selected few use the following command:
mysqldump -uroot -ppassword --databases db1 db2 | gzip > db1db2.sql.gz
mysqldump -uroot -ppassword --databases db1 db2 > db1db2.sql
Replace db1 and db2 with your database names. You can add more databases separated by a space.
Replace ‘root’ and ‘password’ with your own mysql username and password.
Note that there is no space between ‘u’ and ‘root’ in -uroot, and between ‘p’ and ‘password’ in -ppassword
For more options please check out its man page if you are on linux or mysqldump --help which is available both in linux and windows.
It can’t get any simpler than that.
Latest Google PageRank update was on April 3rd 2010, that is 2 days back. I wanted to check out the PR of all my subpages as well. However, I was too lazy to check one by one. I had 2 solutions for this. Either make a PHP-curl script and put all the links in a loop or find a tool which just did that.
I just googled and found http://pagerank.bthomson.com/
You can check PR for multiple links or all outbound links from a page.