Craig Box's journeys, stories and notes...

NetworkManager PPTP plugin: Checking out & building

A while ago I promised Anthony Mee that I'd try and build the latest version of his NetworkManger VPN plugin for Ubuntu, and a couple of weeks ago I realised I had no excuses not to start.

I was tripped up while trying to build it: libtool: link: cannot find the library `/usr/lib/' or unhandled argument `/usr/lib/'.

Two minutes on #ubuntu-motu, I was fixed up by slomo: I use the non-official XGL repository, which has a broken libcairo2-dev package: I needed to edit /usr/lib/ and replace -L/usr/lib/ with -lXrender. Seeing as the web didn't seem to know this fact, and I couldn't find anywhere on the WLUG wiki to put this, I thought I'd teach it here.

Slowly checked NetworkManager out of CVS.

Last weekend Perry gave me a crash course in building things with autotools, using 'cvs export' or 'make dist' to get distributable-ready code. With a bit of hacking around, we managed to get the plugin built.

Came across a big problem; the old plugin was "org.freedesktop.NetworkManager.pptp", and the new one is "org.freedesktop.NetworkManager.ppp_starter". Took a random guess to figure out that the old VPN plugin was stored in gconf, and this was what was crashing the VPN dialog. Perry opined that the barrier to entry to anything with DBus was going to be so much higher than simple Unix-like XML-readin' apps, and I hope he'll put his feelings in words soon. When I get back to that machine, I'll raise a bug.

I think I now have everything I need to know to build a Debian package. Shame the thing doesn't actually work or anything. Have added Tony to Jabber and will hope to make some progress soon.

WordPress, how hard is to get an editor which gives me a <code>, <tt> or other monospace-this-part button?

Tags: , , ,

3 Responses to “NetworkManager PPTP plugin: Checking out & building”

  1. sammydre says:

    Agreed, wordpress is terrible at preformatted text. Which is very annoying where your blog talks a lot about programming and wishes to include small snippets of code all the time! I've had an ongoing battle with wordpress here.

    My solution, which I realise is not great, is to entirely disable the visual editor, so I just get a plain old text entry box. I then use Markdown to format my text. I also use plugins to allow me to put my own preformatted/syntax highlighted text in (I wrote my own then started using someone elses as well. In both cases, the visual editor and wordpress rules to munge the text really breaks the plugin unless you disable the editor.)

    I really don't see why we can't get the best of both worlds somehow?

  2. Johan Sandelin says:

    Thanks a lot for sharing the information about libXrender. I ran into the same problem as you when compiling a panel plugin for xfce and your post saved me... Thanks!

  3. your post saved me too! gj posting such an obsure problem/solution..

Leave a Reply