Wednesday 27 August 2008

Add yourself as a user in Virtual Box

Via command line:



sudo adduser $USER vboxusers
Via GUI:

System>Administration>Users and Groups

Hit "unlock" and then "manage groups". Add yourself as a user to "vboxusers" by clicking on "properties" and ticking next to your name. Hit OK.

Enable USB support in Virtual Box.

Open the mountdevubfs.sh file with a text editor as root:

sudo gedit /etc/init.d/mountdevsubfs.sh

Find the block of text which looks like the following:

#
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb


Now uncomment the last 4 lines above to look like this:

#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb

Tuesday 26 August 2008

Adding Wine HQ to the repositories.

Repository Keys:

wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

For Ubuntu Hardy (8.04):

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
For Debian Etch (4.0):

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/etch.list -O /etc/apt/sources.list.d/winehq.list

What version of Linux am I using? Which kernel?

lsb_release -a


uname -r

Installing WINE (64 Bit)

wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list

sudo aptitude install wine

Install Flash Player (64 Bit)

sudo apt-get install nspluginwrapper flashplugin-nonfree lib32nss-mdns

sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/

sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-3.0.1/plugins/