Tuesday, March 9, 2010

Rename file with special char in filename

Sometimes you cannot rename a file cause the filename contains a special char that cannot be recognized. In this case you can rename a file by its inode.

Its as simple as this:
ls -il (to get the inode)
find . -type f -inum "inode num goes here" -exec mv {} newfilename \; (find file by inode and rename it)

Sunday, February 21, 2010

speed up amarok

to make amarok faster, just remove all playlists from the collection dirs. You can do this easiely by executing the following command:

find ./ -name \*.m3u -exec rm {} \;

Monday, January 11, 2010

Disable kde 4 debug output

A short tip this time.

In kde 4.* you can disable debug output what speeds up the start time kde apps need.

start
kdebugdialog

and disable all apps.

have fun

Sunday, September 27, 2009

firefox 3.5 with tmpfs

I found this great tutorial to use your firefox profile with tmpfs to make firefox more responsible and faster.

Look here to see how it works: Link

cya

Tuesday, September 22, 2009

make your filesystem faster

i found a tip to speed up your linux filesystem (ext3 and reiserfs) here and here.

To get more infos about this tweak, look at the links above.

You have to do the following steps: (note: you have to change the partition to your needs. In my case its: "/dev/sda8 /")

1) edit your /etc/fstab and add thing marked bold to your mount line.
/dev/sda8 / ext3 defaults,noatime,nodiratime,errors=remount-ro,data=writeback 0 1

2) edit /boot/brub/menu.lst and add the bold marked entry.
kernel /boot/vmlinuz26 root=/dev/sda8 ro vga=865 rootflags=data=writeback

3) it can be necessary to run update-grub after that. But its not necessary on my archlinux system.

4) To prefent errors add the new mode to your filesystem before reboot.
tune2fs -o journal_data_writeback /dev/sda8

5) to see if the changes went right, check it with:
tune2fs -l /dev/sda8
(you should do this again after reboot)

have fun with a faster performing system. ;)

Monday, September 21, 2009

speed up your archlinux system

Found this post with some tips to optimize your archlinux system:
http://tuxtraining.com/2009/09/04/optimize-pacman-and-free-space-on-arch

In short:
pacman -Sc This clears outdated/uninstalled packages.
pacman -Scc This clears the whole folder, not just the packages that are outdated/uninstalled.
pacman-optimize && sync optimizing the archlinux database

Wednesday, September 16, 2009

Browser independent mouse gestures

In kde4 its possible to define desktop wide mouse gestures.
Here is a file to include in systemsettings to get mousegestures in chrome and most other browsers.

(This is a modified version of the script without firefox support cause in firefox i use a extra extension for mousegestures. There are also some more gestures then in the original script)
Link

The original Skript can be found here: Link There is also a more detailed description, what browsers are supported.

cya