In a short line: # mkfs.vfat -vc -F 32 -n “zen stone” -S 2048 /dev/yourdevice The explanation: -v Verbose execution. -c Check the device for bad blocks before creating the file system. -F FAT-size Specifies the type of file allocation tables used (12, 16 or 32 bit). If nothing is specified, mkdosfs will automatically select…… Continue reading How to format a usb pen or mp3 player the right way
By chance, i looked into syslog ( /var/log/syslog ) and saw a ssh attempt to login from a ip outside local network. It was a brute force attack that started 7 days ago.. See down the post how to protect ssh from further attacks. Looking at the logs ( tail -n 200000 /var/log/syslog ) noticed…… Continue reading Yet another ssh brute force attack and how to protect against it with iptables and sshguard
I have two sound cards. One is the inboard and the other is a USB card. I’m toggling often between them so i created this simple script: (see the end for link to files) #!/bin/bash dir=/home/username/ if [[ “$1” = “-l” ]] || [[ ! -n “$1” ]]; then cat /proc/asound/cards exit fi card=`grep “^…… Continue reading How to change sound from two sound cards
Quick, unsafe but effective way to allow a certain user to use your running xserver (xorg). xhost +local:username well.. that’s it really. That user can now open any application that needs a display window.
I’ve played Enemy territory since early 2006 in GNU/Linux and one of the things i missed from the beginning was the lack of a good minimiser. There was a ET minimiser ( ET Switch ) but it didn’t worked very well. So an alternate solution was the even more elegant solution of launching a new…… Continue reading How to start a new X server with Quake wars to work as a minimizer for GNU/Linux
A soft link, or more common, a symlink, is link a shortcut to the targeted file or directory. So when is removed the original target stays present. This is the opposite of a hard link which is a reference to the target and so, if the hard link is removed, so is the target. A…… Continue reading How to create and remove a soft link, symlink or symbolic link
I was having troubles with an album a friend gave to me in mp3 format. Amarok wasn’t figuring out the lenght of the tracks so it wasn’t scrobbling them! It was like i wasn’t listening them at all! :P The solution was simple: convert it to ogg. This is how i did it: First i…… Continue reading Convert mp3 to ogg (to fix bitrate)