Linux VNC and Mac OS X Screen Sharing

I’ve found that in order to get x11vnc to work with the Mac OS X built-in VNC client (“Screen Sharing Application”), there options are required when starting the VNC server: $ x11vnc -display :0 -rfbauth /home/pi/.vnc/passwd -shared -rfbversion 3.3 -forever -bg The -shared option is key here. Judging by the log on the VNC server, […]

Ubuntu 14.04, ThinkPad W520 and multiple Monitors

Here’s a quick reminder of the commands that I use to switch between a single monitor setup (internal laptop screen) and two external, DVI-attached monitors on my ThinkPad W520 running Ubuntu 14.04 (x86_64). In order to switch to single-screen setup: phs@W520:~$ disper -s -d DP-2 -r auto phs@W520:~$ disper -s -d LVDS-1 -r auto Switching […]

Xilinx USB Cable on Ubuntu

Here’s what I did to install the "Xilinx Platform Cable USB II" on Ubuntu. First, install the following two packages: $ sudo aptitude install fxload libusb-dev Then, download and compile the USB driver for the cable: $ git clone git:// $ cd usb-driver $ make $ make lib32 $ ./setup_pcusb /opt/Xilinx/14.5/ISE_DS/ISE If everything worked, you […]

Programming Avnet Spartan 3A FPGA Eval Board with Linux

I own a small FPGA Board by Avnet with a Spartan 3A FPGA on it. The board is nice, but unfortunately, the flash chips on the board aren’t on the JTAG chain. Instead, there is a small PSoC microcontroller that lets you programm the flashes via UART. There is a Windows tool to perform that […]

Edit Samsung TV Channel List on Linux

Samsung TVs suck when it comes to sorting the channel list. The work-around is to transfer the channel list to a PC and edit/sort it there. To edit the channel list on Linux, I found a tool called "SamyGO ChanEdit" quite useful. Downloadable via this link. The tool requires SWT which is installed in /usr/lib/java […]

Grails, an In-Memory HSQL Database and Squirrel

Starting the HQSL Database java -cp c:grails-1.2.0libhsqldb- org.hsqldb.Server -database.0 mem:devDB -dbname.0 devDB Accessing the DB java -cp c:grails-1.2.0libhsqldb- org.hsqldb.util.DatabaseManager Grails database connection information, in DataSource.groovy dbCreate = “create-drop” url = “jdbc:hsqldb:hsql://localhost:9001/devDB” username = “sa” password = “” Squirrel wouldn’t start until I correctly quote the CLASSPATH environment variable.

Booting a PowerBook from a LiveCD image on an USB-Stick

I have an old Apple PowerBook G4 with a broken CD/DVD drive. For most practical purposes, the broken drive is no issue. However, if you’re going to re-install the laptop, it becomes one. Luckily, the PowerBook is able to boot from USB… At first, I tried following the instructions on "LiveUSB on PPC" found in […]

Ubuntu 11.10 on Lenovo W520

At work, I got a new laptop — a Lenovo W520. It came with Ubuntu 11.10 ("Oneiric Ocelot") pre-installed by the support team. My first impression was that it worked pretty well, but I quickly discovered that I couldn’t change the brightness of the display through the Fn+Home/End keys. The W520 uses this “Optimus” technology […]