Clean install of Windows XP64 w/ no file sharing

I use a modified version of XP64 called ‘xpertu’ on all of my Windows workstations that have 64bit CPUs.  On most computers it works great. On some I’ve run into a problem where Windows file sharing doesn’t work. To fix this, start this manual service and set it to automatic:

TCP/IP NetBIOS Helper

When trying to mount shares with Samba, I saw these errors:

CIFS VFS: Error connecting to IPv4 socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -111

I noticed in forums there were many complaints about 64bit versions of Windows not being able to share files. This is probably applicable to more than one customized install!

automated ogg to mp3 conversion

UltimateZer0 from www.linuxquestions.org put down the groundwork for this. I’ve modified it somewhat. Usage: CD into a directory and run this script. It’ll create the mp3s for you from the oggs.

sudo apt-get install vorbis-tools lame will get the required tools for this.

The ogg files don’t auto-delete on their own, this is so you can test them.

#!/bin/bash
#credit: UltimateZer0 from www.linuxquestions.org
#sudo apt-get install vorbis-tools lame

oggdec *ogg
for f in *.wav ; do lame –preset 192 -ms -h “$f” ; done
#lame –preset 192 -ms -h *wav
#rm *.ogg
rm *.wav
#the filenames are .wav.mp3, changes to just .mp3
rename -v ’s/\.wav.mp3$/\.mp3/’ *

Customizing wordpress default theme

I’m currently running the default wordpress theme with some minor modifications. The current version can be downloaded here.

SSH Tunneling in Putty

I’ve tried this before but have never been sucessful. With this guide I was able to tunnel VNC over SSH in under 1 minute:

http://martybugs.net/smoothwall/puttyvnc.cgi

Manual NVIDIA graphics driver install

Download the latest driver from nvidia.com/drivers

Log out of Ubuntu, press CTRL+ALT+F1

Login, change to sudo -i and stop /etc/init.d/gdm

Run sh NVidia driver name

Install it saying yes to everything, especially 32bit drivers if it asks (this will prevent Gnome from running in 8.10 with Nvidia 180.22 drivers).

You could probably start the xserver back up but I haven’t experimented with this part enough.

I recently found an issue where a clean install of 64bit ubuntu 8.10 will lose it’s mouse focus in OpenGL fullscreen apps. The workaround is to disable desktop effects. The fix is to manually install the 180.22 driver.

Mouse not working in OpenGL games

I ran into this problem in Ubuntu 8.10 64bit. This doesn’t happen on the same harwdare with Ubuntu 8.10 32bit or 9.04 alpha 3 64bit. In games like Nexuiz and OpenArena I could see my mouse cursor but couldn’t move it. The keyboard worked fine.

A workaround was to disable the Visual Effects under system preferences. Easy enough and I know it’s resolved in 9.04 as I didn’t have this issue there.

Moving /home to it’s own partition

This is an excellent step and really recommended if you make many changes to your system (different distros, distro upgrades). Moving forward, I plan on setting up all new systems with their own /home partitions.

Step 1: Partition the drive
I used the following Scheme:

primary 1 - 40G - ext3 - Ubuntu 8.10 64bit
primary 2 - 40G - ext3 - future OS usage
primary 3 - 8G - swap
primary 4 - * - xfs - remainder used for /home

Step 2: Copy your data
Boot back into your OS, mount the home parition and copy the data over.

find . -depth -print0 | cpio –null –sparse -pvd /media/newhome
source

This works pretty well. It seemed to have missed a gig of data with du -s checking. This needs to be improved on. Also it didn’t get all permissions. I had to do sudo chown -R user:user .* to get all files that start with “.”

After this procedure, I installed my OS on the first primary partition. After booting into my new install, all of my old settings were there. It was sweet.

Ubuntu Manual NVIDIA driver install

In 9.04 The proprietary hardware driver didn’t find my Geforce 8400 GS card that 8.10 detected. I manually installed the driver from NVIDIA’s website (referred to as NVIDIA-driver-file.run).

You need to stop GDM to install this driver:

ctrl+alt+F11 then  ctrl+alt+F1
sudo /etc/init.d/gdm stop
sudo sh ./NVIDIA-driver-file.run
This installer will update your /etc/X11/xorg.conf file. Add the following to the bottom of that file:

Section “ServerFlags”
Option “IgnoreABI” “True”
EndSection

I had ABI errors and the driver wouldn’t load until I added those three lines to the bottom. OpenGL now works great.

upgrading virtualbox to 2.10 on ubuntu

Some significant improvements were made to this version. I was running 2.0x previously. Two biggest improvements for me: 3d acceleration via OpenGL and the removal of the vbox virtual network interfaces: a bridge is all you need!

The upgrade proceedure is painless and fast. Download the latest version from http://download.virtualbox.org/virtualbox/.

Next shut down your virtual boxes and then delete your virtual NIC’s: VBoxDeleteIf vbox0 (use ifconfig to check)

Next remove vbox 2.0x with sudo dpkg -r virtualbox-2.0 (this will keep your configs)

Finally install the new version with dpkg -i (filename you dl’d earlier)

To enable 3d acceleration, check the box for this on existing/new hosts and Install vbox guest addons. If it’s an existing vbox, you need to re-install guest addons.

You’ll notice the VBoxAddIF command doesn’t even exist anymore. Sweet!

renaming ethernet interfaces in ubuntu

ls /etc/udev  — look for persistent-net
This file’s preceding number seems to have changed in the releases

Edit the persistent-net file, you can go to the end of the line to rename the eth1 to whatever you like

Don’t forget to update /etc/network/interfaces when you’re done.