Category Archives: Linux

Stuff about the superior OS

Shrinking a vmdk with VMware Player

It seems VMware has removed the GUI for the disk shrink feature in VMware Tools, but the good news is it’s still available from the console. The following command will shrink the disk image for drive C: C:\Program Files\VMware\VMware Tools\VMwareToolboxCmd.exe disk shrink c:\

Running PulseAudio in system mode with TCP listening on Debian Wheezy

On this thin client I’ve set up, I wanted pulseaudio to run before logging in, and not have any specific users on the machine. System mode was called for. On Wheezy, pulseaudio is by default configured for per-user sessions. To remedy this, edit /etc/default/pulseaudio, putting PULSEAUDIO_SYSTEM_START=1 Then, edit /etc/pulse/system.pa – this is the file that […]

One-time passwords in Debian Wheezy with libpam-otpw

While public and private keys with decent pass-phrases are an excellent way of logging in securely to a remote system, it’s sometimes simply not feasible. Your Android device which normally does the job for you is out of battery, you are in a remote country with only a wired connection in a shady Internet cafĂ©, […]

Using CheckInstall to track custom source downloads on Debian

CheckInstall keeps track of all files installed by a “make install” or equivalent, creates a Slackware, RPM, or Debian package with those files, and adds it to the installed packages database, allowing for easy package removal or distribution. Use CheckInstall instead of just running “sudo make install“, as that will likely put files all over […]

ShellShock – a Bash 3 / Bash 4 spaceshooter!

My weekend project: A top-down space shooter in Bash Note: Bash is SLOW. This requires an Intel Core Solo or better to run well. Comments welcome. Patches twice as welcome. Link: http://www.dhampir.no/stuff/bash/shellshock.bash Update: Since the name “ShellShock” was used as a nickname for a Bash exploit, this game has received a whole lot of attention. […]

Pausing and continuing a process on Linux

If you want to pause a process while you do something else, like for instance stop a heavy file operation while you’re just moving some stuff around quickly, there are two signals to pay attention to: STOP and CONT. STOP will pause a process (not actually stop it – it doesn’t die) CONT continues a […]