Skip to content

Recent Articles

9
Apr

Upgrading the CPU in a Dell Studio XPS 1640

While the default Dell Studio XPS 1640 is fast and is a decent work laptop, it needed to do one extra thing, run virtual machines (VMs). I spend a lot of my time debugging, hacking and otherwise trying to make software behave in ways that the developers had not intended.

Tools like VirtualBox, VMWare, Xen and QEMU make this job less tedious. The problem is that with the Intel T7350 CPU, I cannot run 64 bit VMs. Turns out that T7250 is a 64 capable chip, but without the VT-x extension which allows for hardware assisted virtualization.

Look your Intel CPU up to see if it supports the VT-x flag.
Read moreRead more

Written by Bret Curtis

31
Mar

Ubuntu Karmic 9.10 on Dell Studio XPS 1640

The very first thing I did when the company I work for gave me a laptop, a Dell Studio XPS 1640, was to install Ubuntu Karmic on it. No need for windows on this thing, I plan on working, not playing.

Dell is very good about their laptops. Whenever I had a question, everything I ever needed to know about their hardware I could easily look up on the online. The 1640 is no exception with their manual.
Read moreRead more

Written by Bret Curtis

29
Mar

vNES for J2ME on your mobile

If you have ever wanted to play a NES game on your mobile, then you might have heard about vNES. There is a J2ME version which allows it to run on most mobiles available today.

There are however a few rough edges to this application as it requires assembling the necessary files together and running a windows batch file. From a Linux point of view, I have created a replacement shell script that does a better job. It requires unix2dos, rename, and bash.
Read moreRead more

Written by Bret Curtis

5
Feb

SSH Multiplexing: a faster way to SSH

How it works:

By changing the way you ssh to a machine, you can reuse your initial ssh connection to save time when connecting.

Edit your ~/.ssh/config file to have this:

Host *
ControlMaster auto
ControlPath ~/.ssh/sockets/%[email protected]%h:%p

We avoid problems of reusing the default /tmp but storing our connections in their own directory.

Be sure to create the directory:

mkdir -m 700 -p ~/.ssh/sockets

Read moreRead more

Written by Bret Curtis

30
Sep

Batch file and directory rename

I needed a quick way to go through a directory and rename some files and directories to remove a specific bit from the name. By using bash’s parameter expansion feature we can accomplish that in just a few lines.


#!/bin/bash
for i in *something* ; do
echo ${i/-*[something]}
mv $i ${i/-*[something]}
done

This takes all files and directories with something somewhere in their name, and strips it out.

Written by Bret Curtis

Read more from Bash