Tag Archives: ubuntu

StrongSwan Client with Ubuntu 16.04 LTS

So, I’m a regular user of public WLAN hotspots, those of Deutsche Telekom among others. Being the paranoid digital self-defense person I am, I’ve been using a VPN service for quite some time now. I recently noticed that my PPTP client setup stopped working at hotspot locations run by Deutsche Telekom that I regularly use, when it still worked from home or some other hotspots I use. I embarked on a journey to teach my Ubuntu laptop some more VPN protocols. OpenVPN worked like a charm with just installing the obvious packages for network-manager. StrongSwan, however, didn’t cooperate quite as easily, due to Ubuntu 16.04 having packages in its repository which are known to not work with the version of network-manager also in that version.

OK, use the source, Luke …

But rather than compile from source tarball and clutter my system with stuff, I found the repositories for zesty have the versions I need. So, I decided to backport that:

  1. Edit /etc/apt/sources.list
    1. uncomment all deb-src lines and insert one line: deb-src http://de.archive.ubuntu.com/ubuntu/ zesty main restricted universe multiverse
  2. apt-get update
  3. apt-get install build-essential
  4. mkdir strongswan
  5. cd strongswan
  6. apt-get build-dep strongswan
  7. apt-get source strongswan
  8. export DEB_BUILD_OPTIONS=nocheck
  9. dpkg-buildpackage -us -uc
  10. dpkg -i strongswan-nm_5.5.1-1ubuntu3_amd64.deb libstrongswan_5.5.1-1ubuntu3_amd64.deb strongswan-libcharon_5.5.1-1ubuntu3_amd64.deb
  11. cd ..
  12. mkdir nm-strongswan
  13. apt-get build-dep network-manager-strongswan
  14. apt-get source network-manager-strongswan
  15. dpkg-buildpackage -us -uc
  16. dpkg -i network-manager-strongswan_1.4.1-1_amd64.deb

Then configure as per wiki page.

Now, I only need to find out how to trust the VPN provider’s certificate when their IKEv2 configuration howtos all seem to rely on turning certificate verification off.

Tagged , , , ,

Neverwinter Nights on Ubuntu 12.04 64bit with Nvidia

My NWN install doesn’t see as much action as it used to, but I’m still happy I can run it on my somewhat new install of Ubuntu 12.04 LTS 64bit.

  • I solved the too-much-black issue by “export MESA_EXTENSION_OVERRIDE=-GL_NV_vertex_program”
  • Solved the too-much-white issue by using the 310 experimental driver for my NVIDIA Quadro 2000M from the ubuntu-x-swat ppa
  • Solved the non-starting client by removing the package libtxc-dxtn-s2tc0

Given that, my nwn script looks like this:


# This script runs Neverwinter Nights from the current directory


# If you do not wish to use the SDL library included in the package, remove
# ./lib from LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=./lib:./miles:$LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=./miles:/usr/lib/i386-linux-gnu/mesa
export LD_LIBRARY_PATH=./miles:/usr/lib32/nvidia-experimental-310
export SDL_AUDIODRIVER=pulse
export MESA_EXTENSION_OVERRIDE=-GL_NV_vertex_program

./nwmain $@

Tagged , , ,

Thanks, VirtualBox, for OpenGL support

When an old friend of mine asked whether we wanted to try and play a bit of “Neverwinter Nights” again, I had accidentally just read that the game is available on Mac, too, and I embarked on an odyssey to get this to run.

Of course, I still had my whole old NWN Linux installation backed up. So I extracted that again. I imagined, I would just get the latest patch from Bioware, extract the Mac binaries, copy them over and be done with it. That, of course, would have been too easy. I did get the latest patch and extracted the Mac OSX apps. However, they wouldn’t run. Turned out, I needed some specific libraries from the MacSoft version of the game. The Mac game is no longer for sale, and quite contrary to prices for the PC versions, prices for used Mac versions are pretty high on ebay. So I found the old NWN Tech Demo on the Internet and copied the “Bink Carbon Library” to my NWN directory and the libraries in the miles/ directory to my miles/ directory. Lo and behold, the game would start, I was overjoyed … for a while.

A while later it turned out, the game did not run reliably. It took up the habit of crashing on me in the most inconvenient situations. I died a couple of times on both “Forgotten Realms Cormyr” and “World of Greyhawk” because the game crashed when I was almost done with some heavy fighting, myself almost spent, I then couldn’t get a connection again for an hour or more, and eventually got back right into the dungeon nearly dead with all the monsters respawned. No fun at all!

So before diving deeper into any action, I resolved to get a more stable gameplay experience. I tried researching the crash, but all the CrashReporter told me was that it was some sort of rosetta problem. I completely replaced rosetta with the original Leopard CD version. That, at first, seemed to help, but after a while I was getting the same crashes. Then I tried wine, with or without the NWN Wrapper off http://nwn.bioware.com . No luck there.

Finally, I thought, why not use VirtualBox? After all, VirtualBox does have OpenGL support. So, another attempt:

Install Linux on my recently updated VBox 3.0.8. I only had a gutsy CD ready, so I used that. Installation done, VirtualBox guest additions installed (with message about too old a kernel for DRI), glxgears showed smth., fire up nwn and … the complete VM crashed … wow!

So back we go to the VirtualBox documentation to find that OpenGL support requires kernel version 2.6.27. Gutsy’s way too old. I update to hardy, to intrepid, reinstall the guest additions and glxinfo shows OpenGL version 2. Try nwn again … the VM crashes again. That with the docs saying OpenGL has been tested on ubuntu 8.10 (though glxgears was a lot smoother, now.)

Before giving up completely, I upgraded to 9.04 without much hope. I reinstalled the guest additions again, for the sake of completeness fired up nwn, and … IT WORKS!!!

I’ll test this some more and come back with good settings.

Tagged , , , , , ,