I usually have the a set of windows open for each project: Browser, vscode and console, besides a few other. In order to raise/open one of these, instead of ctrl+tab, I wanted to emulate the global shortcut to Yakuake. Yakuake is my favourite app. By pressing F12, it unscrolls from the top, showing the console.…… Continue reading Raise window by Application name in Linux
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