Archive for January, 2010

Xubuntu 9.04 + Quick and Dirty VNC Remote Access

Sunday, January 31st, 2010

Xubuntu doesn’t come with the Remote Desktop screen you find in Ubuntu. All the VNC howtos (some which used to work) on the forums seem to come to nothing for me. I am happy to share directly via vnc over my LAN. Here is all I needed to do:

On the “remote” xubuntu machine

sudo apt-get install vino

vino-preferences (to get the screen - as mentioned above) up

Tick boxes as required, I tick the top two and then untick the next but require a password for access.

Add a startup item to Sessions and Startup -> Autostart

usr/lib/vino/vino-server

Reboot (or just start with the command above)

On the local “xubuntu” machine
(you may have other options here)

Install GRDC

sudo apt-get install grdc

Open up Grdc, enter the remote machine details and away you go. Response is a bit slow, but its the one that works!

I don’t need this very often, as I have become more adept at using ssh and ssh -X, but it is handy once in a while.

Firefox 3.5.7 Update killed / crashed / broke Firefox on Windows 7

Sunday, January 31st, 2010

This is more of a news bulletin than anything else.

My new PC has Windows 7 by default, so I am playing with it every now and then when not booting into Xubuntu 9.10. Yesterday Firefox went after an update for itself, from 3.5.6 to 3.5.7. The update went OK, but then firefox flatly refused to start. Not even showing up in Processes or Applications in the Task Manager. A reboot didn’t help either.

The resolution was to download and install Firefox 3.6 (I tried to uninstall first but Windows Control Panel told me that Firefox was already uninstalled! (go figure). Anyway all working good now.

Create GeeXBoX LiveUSB using UnetBootIn on Linux

Monday, January 4th, 2010

I know we have the win32 installer,
I know we can install to USB from CD,
but I wanted to use only Linux to
create a live USB that replicates the CD.

Requirements

UnetBootIn (in Xubuntu repos)
Standard or Custom GeexBox iso ( I used a Custom GeexBox 1.2.3)
USB Flash Drive (Used a Buffalo 1GB)

This all carried out on Xubuntu 9.04

Part I - Create Bootable USB Drive

Insert USB Drive to your PC running Linux (Ubuntu etc)
Start UnetBootIn
Tick the Disk Image Radio Button, ensure ISO is selected in the drop down and then select your GeexBox iso
Select your USB drive from the drop down box
Click OK and Wait until you get the Reboot or Exit buttons appear
Click Exit

Part II - Get the right GEEXBOX directory

Mount the GeexBox iso so you can access files
I use Gmountiso but you can create a directory and issue a command in the terminal

sudo mkdir /media/gb-iso
sudo mount -o loop /path/to/geexbox.iso /media/gb-iso

Go to your root directory of your USB drive and delete (yes, delete!) the entire GEEXBOX directory
Got to /media/gb-iso and copy the GEEXBOX directory, pasting it to the root of your USB drive.

Why have we done this? UnetBootIn does something to the GEEXBOX directory files, you need the unadulterated ones on the iso.

Part III - Edit syslinux.cfg

In a terminal, run the command:

sudo blkid -L

On newer systems (e.g. Karmic) run

sudo blkid

or

sudo blkid -o full

You will get all the UUID’s from your drives and partitions.
Note down the UUID for your USB drive
Mine was 0633-157B

Open up syslinux.cfg on the USB drive in your favourite text editor
Make it look like this:

########################################
default vesamenu.c32
prompt 0
timeout 20

MENU BACKGROUND /GEEXBOX/boot/splash.png
MENU TITLE Welcome to GeeXboX i386 1.2.3 (C) 2002-2009
MENU VSHIFT 11
MENU ROWS 6
MENU TABMSGROW 15
MENU CMDLINEROW 14
MENU HELPMSGROW 16
MENU TABMSG Press [Tab] to edit options, [F1] for boot options.
MENU COLOR sel 7;37;40 #e0000000 #fa833b all
MENU COLOR border 30;44 #00000000 #00000000 none

label ubnentry0
menu label Start GeeXboX …
kernel /GEEXBOX/boot/vmlinuz
append initrd=/GEEXBOX/boot/initrd.gz root=/dev/ram0 rw rdinit=linuxrc boot=UUID=0633-157B lang=en remote=atiusb receiver=atiusb keymap=qwerty splash=silent vga=789 video=vesafb:ywrap,mtrr quiet

label ubnentry1
menu label Start GeeXboX for HDTV …
kernel /GEEXBOX/boot/vmlinuz
append initrd=/GEEXBOX/boot/initrd.gz root=/dev/ram0 rw rdinit=linuxrc boot=UUID=0633-157B lang=en remote=atiusb receiver=atiusb keymap=qwerty splash=silent vga=789 video=vesafb:ywrap,mtrr hdtv quiet

label ubnentry2
menu label Install GeeXboX to disk …
kernel /GEEXBOX/boot/vmlinuz
append initrd=/GEEXBOX/boot/initrd.gz root=/dev/ram0 rw rdinit=linuxrc boot=UUID=0633-157B lang=en remote=atiusb receiver=atiusb keymap=qwerty splash=silent vga=789 video=vesafb:ywrap,mtrr installator quiet

label ubnentry3
menu label Start in debugging mode …
kernel /GEEXBOX/boot/vmlinuz
append initrd=/GEEXBOX/boot/initrd.gz root=/dev/ram0 rw rdinit=linuxrc boot=UUID=0633-157B lang=en remote=atiusb receiver=atiusb keymap=qwerty splash=0 vga=789 video=vesafb:ywrap,mtrr debugging

label ubnentry4
menu label Start HDTV edition in debugging mode …
kernel /GEEXBOX/boot/vmlinuz
append initrd=/GEEXBOX/boot/initrd.gz root=/dev/ram0 rw rdinit=linuxrc boot=UUID=0633-157B lang=en remote=atiusb receiver=atiusb keymap=qwerty splash=0 vga=789 video=vesafb:ywrap,mtrr hdtv debugging

########################################

Make sure you replace my UUID entry with your own for each stanza

Save syslinux.cfg

Part IV - Clean Up

Unmount the iso

sudo umount /media/gb-iso

Delete the directory if you wish

sudo rmdir /media/gb-iso

You are done. Either safely remove your USB drive, or leave it in and reboot.
You may need to edit your bios settings to allow booting from USB.
And there you have it, LiveUSB, just like the CD, but you can edit settings if you wish.

Ubuntu - Installing Sun Java - CLI

Saturday, January 2nd, 2010

Always forget this:

To install Sun Java on your Ubuntu via the command line, emit the following comand:

sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk