Category Archives: cli

Make MPlayer play h264 video files faster on multicore machines

You can make MPlayer play h264-encoded video files a lot faster on multicore machines if you graft some libraries from the ffmpeg-mt project into the resulting mplayer binary. We need to recompile for this. First, use Subversion to download the code for MPlayer: svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer Then the code for ff-mpeg svn co svn://svn.mplayerhq.hu/mplayer/trunk… Read More »

Know when someone accesses your files in GNOME

Say you want to write a small shell script that locks up your GNOME desktop at specific intervals. What command would you use?In this case, your best bet would be gnome-screensaver-command —lock This has the same effect as you pushing the Lock Screen button in GNOME. You can forge a small shellscript and use this… Read More »

See who’s poking your Linux box

If you’re using SSH and you have your ports wide open to the world, your best bet would be to install fail2ban. If you’re curious though as of whom is trying to get in by bruteforcing your SSH passwords, you might get a clear view with the following command: grep “POSSIBLE BREAK-IN ATTEMPT” /var/log/auth.log This… Read More »

Find out what RAM type you have in Linux

To check what RAM memory type yo have installed (and also see other useful information about your system), do a sudo dmidecode Depending on the version of dmidecode you have installed and the hardware configuration you have, each hardware device will have a certain type number assigned t it. On my machine, the RAM has… Read More »