Here a small piece of code which will search for the duplicates in the path you supply. It will generate a new file which contains the commands for deleting those duplicates.
Make sure you double check the resulting file!
The script […] Continue Reading…
Search and remove duplicate files
Karmic Koala Beta on ThinkPad T61
I just installed Ubuntu 9.10 Beta on my LENOVO ThinkPad T61 64608NG.
Here is what I found so far, in two days of intensive usage:
Quadro NVS 140M – 2D and 3D acceleration: tested and works.
Wireless switch: tested and works.
Sound: tested […] Continue Reading…
How to fix menu icons in GNOME 2.28
In the latest release of GNOME, they decided to turn off icons in menus by default. This is ugly and if you ask me, not practical at all.
However, you can get those icons back by going to System → […] Continue Reading…
Remove all settings for Evolution
Here is a small script to remove all your Evolution settings:
1 2 3 4 5 6 |
#!/bin/bash evolution --force-shutdown rm -rf $HOME/.evolution rm -rf $HOME/.gconf/apps/evolution rm -rf $HOME/.gnome2_private/Evolution kill -9 `pidof gconfd-2` |
Next time you open Evolution, you will be prompted to add a new account.
Fix Google Earth 5.0 user interface font on Linux
I installed Google Earth 5.0 and the ugly UI font from the beta is still here.
Based on the comments from Google Earth Help page from here I’ve created the following script wich will fix the user interface font issue.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
#!/bin/bash sudo aptitude -y install libqt4-webkit ge=`which googleearth` if [ -n "$ge" ]; then ## get the path and check if it is a symlink if [ -h "$ge" ]; then real_path=`readlink -e $ge` dir_path=`dirname $real_path` else real_path=`dirname $ge` fi ## backup original Qt4 libraries for i in `ls $dir_path | grep libQt`; do sudo mv -v $dir_path/$i $dir_path/$i"_backup" done ## backup original Qt4 plugins for j in `ls $dir_path/plugins/imageformats | grep libq`; do sudo mv -v $dir_path/plugins/imageformats/$j $dir_path/plugins/imageformats/$j"_backup" done ## create a new qt.conf file cat > $HOME/qt.conf << "EOF" [Paths] Documentation=/usr/share/doc Libraries=/usr/lib Plugins=/usr/lib/qt4/plugins Translations=/usr/lib/qt4/translations EOF sudo mv -v $dir_path/qt.conf $dir_path/qt.conf_backup sudo mv -v $HOME/qt.conf $dir_path elif [ -z "$ge" ]; then echo -e "You don't have Google Earth installed!\n" exit fi exit 0 |
HOWTO Force fsck on the Next Reboot
fsck is used to check and optionally repair one or more Linux file systems.
By creating /forcefsck file you will force the Linux system (or rc scripts) to perform a full file system check.
Create a file called forcefsck:
1 |
sudo touch /forcefsck |
View Config Files Without Comments
Use this grep invocation to trim comments out of config files. Comments are great but can get in your way if you just want to see the currently running configuration. I’ve found files hundreds of lines long which had […] Continue Reading…
Thinkpad HDAPS in Ubuntu 9.04 Jaunty
One of the cool features in a Thinkpad is IBM Active Protection System.
The system consist of two parts. The driver that enables reading the acceleration data and some sort of userspace software that does the actual parking of the […] Continue Reading…
Launchpad is now open source
Launchpad is now open source.
Canonical public announcement is here: http://blog.canonical.com/?p=192
The Canonical launchpad developers will be on IRC in #launchpad-dev on irc.freenode.net.
For real time development discussion, that’s the place to go; for usage questions, #launchpad is still the channel, as […] Continue Reading…
Clear ALT+F2 history in Gnome
Use this command in your terminal to clear the “Run Program” dialogue box invoked by ALT+F2 in Gnome:
1 |
gconftool-2 --set /apps/gnome-settings/gnome-panel/history-gnome-run --type list --list-type string "[]" |