You are not logged in.

#1 2011-06-16 16:37:37

VincentK
Member
Registered: 2011-06-16
Posts: 4

NetworkManager: Using dispatcher to connect to vpn

I am following the wiki here: https://wiki.archlinux.org/index.php/NetworkManager and I got to the section "Use dispatcher to connect to a vpn after a network-connection is established " on step 2 of that section. I have to create a .py thing here, but the link to the code is broken. Does anyone know the code for this?

Also, sorry if this is the wrong place to ask.

Offline

#2 2011-06-16 17:29:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,793

Re: NetworkManager: Using dispatcher to connect to vpn

This might work:
http://www.enigmacurry.com/blog-post-files/vpn-up.py

But... It is Python2, so you will need to either (1) port it to Python 3 or (2) change the crunch-bang target in the first line to python2.  This, of course, means you need Python 2 installed.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-06-16 17:37:00

VincentK
Member
Registered: 2011-06-16
Posts: 4

Re: NetworkManager: Using dispatcher to connect to vpn

Ok, cool, so I'm guessing I use https://wiki.archlinux.org/index.php/Downgrade_packages to downgrade Python after I "pacman -S python"?

Edit: Nevermind, I found out how to get Python 2

Last edited by VincentK (2011-06-16 17:42:47)

Offline

Board footer

Powered by FluxBB