17.07.2010
Category: Linux
using of locate, xargs and rm
This is how to quote filenames correctly when using locate, xargs, rm and you have to deal with files/ directory-names which may contain spaces: locate -i file.txt |grep -i '/home/stuff' |xargs -I '{}' rm '{}' And that's how to do it with find: find . -name "*m3u" -print0 | xargs -0 rm ...
17.07.2010
Category: Linux
ssh trust connection for passwordless login
Execute on the machine from where you want to login: local:~# ssh-keygen -t dsa copy the generated public key file to the remote host and add to the athorized_keys file: local:~# scp ~/.ssh/id_dsa.pub remote_host:/ local:~# ssh remote_host remote_host:~# touch ...
17.07.2010
Category: Linux
Argumentlist too long
chrissie@36252:/opt/steam/cstrike$ mkdir logs2008 chrissie@36252:/opt/steam/cstrike$ mv logs/* logs2008 Argumentlist too long - Here the solution chrissie@36252:/opt/steam/cstrike$ cd logs chrissie@36252:/opt/steam/cstrike$ for i in *; do mv "$i" ../logs2008/; done
17.07.2010
Category: Linux
Use imagemagick to convert all images in one directory for web galleries
Use imagemagick to convert all images in one directory for web galleries for i in *jpg; do convert -size 640 "$i" -resize 640 -quality 85 -strip "$i" ; done
17.07.2010
Category: Linux
cdrom: This disc doesn't have any tracks I recognize!
I recently got this error on all CDs which i tried to acces via my cdrom on my lately updated Gentoo System. Solution: comment out all entries concerning cdrom in /etc/fstab: #/dev/hdd /mnt/cdrom iso9660 user,noauto,ro 0 0 Now it works with the automounter and gets ...
17.07.2010
Category: Linux
Demultiplex/Remultiplex mpeg für das Authoring von DVDs
"ERR: SCR moves backwards, remultiplex input."
17.07.2010
Category: Webdesign
read more