Showing posts with label intrepid. Show all posts
Showing posts with label intrepid. Show all posts

12 December 2008

VirtualBox host interface networking on Ubuntu

For 99% of my work I can use Ubuntu. But for some bad software I need Windows because that software is even not running in Wine. For that purpose I have set up a Windows virtual machine using VirtualBox.

Installing VirtualBox on Ubuntu is very easy:
sudo apt-get install virtualbox-ose virtualbox-ose-modules-`uname -r`
You can now create virtual machines in GUI mode with VirtualBox. Your virtual machine uses NAT networking by default. Most internet and networking applications can work well with that. But some Windows applications still use NetBIOS functionality instead of TCP/IP and that is not routable. To get NetBIOS work, you need to configure your virtual machine to use host interface networking.

For host interface networking you need to configure a network bridge. Because I am not a network specialist, I have googled around, tried many options and ended in the setup I am describing now. Maybe it is not really the best way to do this, however it is working well.
  • edit /etc/network/interfaces:
    sudo vi /etc/network/interfaces
    • remove all lines referring to eth0 (assuming this is the active NIC) and insert the lines below:
      auto br0
      iface br0 inet dhcp
      bridge_ports eth0
      bridge_fd 9
      bridge_hello 2
      bridge_maxage 12
      bridge_stp off

      auto eth0
      iface eth0 inet manual
  • restart networking:
    sudo /etc/init.d/networking restart

  • create virtual NIC:
    sudo VBoxAddIF vbox1 $USER br0
  • edit VirtualBox interfaces config:
    sudo bash -c "echo \"vbox1 $USER br0\" > /etc/vbox/interfaces"
  • setup your (Windows) guest to use host interface networking with device vbox1 now

29 November 2008

Flash 10 player problems in Ubuntu 8.10 Intrepid

I last upgraded my Ubuntu (Linux) 8.04 laptop to Ubuntu 8.10 Intrepid. As usual it was a problemless upgrade; I only had to setup my VPN connection again because it was all integrated now in NetworkManager. But within a day I saw my browser (Firefox 3.0) did not play Flash anymore.

Firefox served the "plugin install" dialog. I installed the Adobe Flash player, but I was not able to get the Adobe Flash player running. The GNash player was I nightmare; very slow and much content not playing at all. Even a manual download from the Adobe site did not help.

After some googling I seemed to be the only one with this problem. But found a hint: look at ldd output.
Finally I downloaded and installed the deb-package from Adobe again:
    wget -c http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.deb
sudo dpkg -i install_flash_player_10_linux.deb

I ran the ldd command:
    ldd /usr/lib/adobe-flashplugin/libflashplayer.so

The output showed that some libraries were missing. I could fix that by installing a needed package:
    sudo apt-get install libnss3-1d

And creating some symbolic links after that:
    cd /usr/lib
sudo ln -s libnss3.so.1d libnss3.so
sudo ln -s libsmime3.so.1d libsmime3.so
sudo ln -s libssl3.so.1d libssl3.so

And I could again view Flash 10 movies as before!