Monthly Archives: December 2008

Subversion Repository on Samba Share

I use a Subversion repository which sits on a Samba share in our LAN. Most of the times I used it from Windows machines where I simply assigned a drive letter (N:) to the filesystem of the network share (//TERASTATION2/share) hosting the repository. A SVN checkout including URL looked like this:

  • svn co file://N:/_repos/projectname/trunk .

Now I have my new Ubuntu/Linux notebook and asked myself how I could use the repository from there too. I tried using smb://terastation2/share/_repos/myproject/trunk – but this did not work in combination with file://.

The solution looks like this:

  • Create a dir to mount the share to: $ sudo mkdir /mnt/terastation2;
  • Mount the filesystem: $ sudo smbmount //TERASTATION2/share /mnt/terastation2 -o lfs;
    (You can create a launcher to do that for you in the future)
  • Then you can do your desired operations: $ svn co file:///mnt/terastation2/_repos/projectname/trunk .;

Using the O2 USB Surf Stick under Ubuntu

I have an o2 surf stick to provide me with connectivity on the go via UMTS. It worked fine so far under Windows and it worked also my MacBook. Now I wanted to use it also from my new Ubuntu (Intrepid Ibex) laptop. The first thing I tried was to start it with wine. But this did not work out… The solution was brought to me through the following links:

The receipe of my setup was:

  • install dependent libraries
  • $ sudo apt-get -f install gcom libusb-dev
  • download usb_modeswitch sources
  • $ tar xjvf usb_modeswitch-0.9.5.tar.bz2
  • $ cd usb_modeswitch-0.9.5/
  • $ ./compile.sh
  • copy the built binary into my bin dir
  • $ sudo cp usb_modeswitch /usr/bin/
  • copy the default config to /etc and uncomment the right device
  • $ sudo cp usb_modeswitch.conf /etc/usb_modeswitch.conf
  • I guessed and uncommented the area with the many ‘Huawei’ device entries
  • now comes what you will have every time you want connect
  • $ sudo usb_modeswitch
  • $ sudo usbmon &
  • starts the small GUI application, enter you PIN and select ‘connect’