Pages

2010-05-30

Getting ipythonx to work with Mac OS X

If you're trying to get ipythonx to work under Mac OS X 10.6 Snow Leopard you might get and error message like this:
ImportError: /System/Library/Frameworks/Python.framework/
Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/
_core_.so: no appropriate 64-bit architecture (see "man 
python" for running in 32-bit mode)
Here's a couple of hints:
  1. Use standard ipython instead. Unless there was something I didn't catch, ipython seems to better than ipythonx.
  2. If you want to try anyway here's the easiest way I found: In a terminal session:
    1. export VERSIONER_PYTHON_PREFER_32_BIT=yes
    2. python `which ipythonx`

2010-05-25

Copy OpenVPN settings from Tunnelblick on Mac OS X to Windows 7

I forgot the charger for my job laptop in the office today. So I spent the last few minutes of battery copying the configuration files to the pc at home.
Below is what I ended up doing:
  1. Install OpenVPN software. You can find it on the official OpenVPN site.
  2. Copy all the config files from the job laptop to C:\Program Files (x86)\OpenVPN\config. The job laptop uses tunnelblick, so the files was located under
    ~/Library/Application Support/Tunnelblick/Configurations
  3. Added .opvpn to the file name for the main configuration file (the one that is not .crt, .csr or .key)
  4. Change to Windows style line endings. I did this by opening the files in WordPad, copying the contents to a Notepad window and saving.
  5. Starting the client software.
Of course: There was a lot of trial and error. I guess I ended up using 30 minutes tinkering and 30 minutes blogging.
Gotchas:
  • Make sure all line endings are corrrect. You can see this easily by opening the files in Notepad.
  • Make sure you run the OpenVPN program as administrator.