it all flows together

scott barber blog

Archive for the ‘Uncategorized’ Category

Photo

Friday
Jun 22,2007


Gob Bluth

Wednesday
Jun 6,2007
Gob Bluth

LOL President

Tuesday
Jun 5,2007
LOL President
Tuesday
May 29,2007

http://ubuntu.wordpress.com/2006/12/22/do-you-blog-about-ubuntu/

Good point. I blog about ubuntu, do you?

Friday
May 25,2007
Exploring: reCAPTCHA: A new way to fight spam

Open Discussion Day

Friday
May 18,2007


Open Discussion Day
Thursday
May 10,2007

I recently decided to upgrade my IPCop box and in the process switch my home/office VPN from IPSec to OpenVPN.

First we install, Zerina’s OpenVPN addon to IPCop. Basically copy the zip to the IPCop box, unzip and run the install file. Actually follow this guy’s great tutorial up to step 7. he’s got it all covered.

Now that you have the OpenVPN server all setup and the OpenVPN client package (zip) what’s next? In order for this to work with Fiesty’s network-manager-openpvn package you first have to follow this guy’s great blog post about splitting the .p12 file up. (the .p12 file is found inside the client package zip file)

Ok - now you have a pem, crt and key file… let get it working with the VPN section of network manager. Ensure you have the network-manager-openvpn plugin installed sudo apt-get install network-manager-openvpn. Now click on the NM applet -> VPN Connections -> Configure VPN. Create a new OpenVPN connection.

Under the Required tab:
Gateway address: (your gw address)
Leave port as is
Connection Type: X.509 Certificate
CA File: (your pem file)
Certificate: (your crt file)
Key: (your key file)

Under the Optional tab:
I prefer to have “Only use VPN connection for these addresses”, but it’s up to you.
Ensure “use LZO compression” is checked
Use Cipher: BF-CBC

And you’re done!

Now when you want to connect to your VPN you can just click on the NM applet -> VPN Connections -> (Your VPN name) and it’ll start right up.

There is one annoying bug that I hope will be fixed soon: When you start your VPN it clears your /etc/resolv.conf file. I just have to manually fix it each time. See Lanuchpad bug here.

Photo

Wednesday
May 2,2007


Capistrano Wiki

Thursday
Apr 26,2007

I’ve thrown caution to the wind and going to spearhead an effort to get some great capistrano docs out there. Just in time to get ready for v2!

So far Jamis and topfunky are on board.

I present to you… Capify Wiki

Wednesday
Apr 25,2007

(I’m pretty sure that these directions will also work for older versions of ubuntu.)

You need to install a program on your Treo 650 that will let it become a USB modem like:
Treo USBModem or PdaNet
If anyone knows of any free / open source software for the palm that will do the same thing let me know!

/etc/chatscripts/USBModem:

TIMEOUT 5
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\rRINGING\r'
'' \rATZ
TIMEOUT 12
OK ATD#777
TIMEOUT 22
CONNECT ""

/etc/ppp/peers/USBDialup:

noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/USBDialup"
defaultroute
usepeerdns
/dev/ttyACM0 115200
local
novj

You may notice that when you turn on the usbmodem software on the Treo and plug it in you may see something like this in dmesg:

[110049.340000] usb 3-1: new full speed USB device using uhci_hcd and address 5
[110049.508000] usb 3-1: configuration #1 chosen from 1 choice
[110049.512000] cdc_acm 3-1:1.0: ttyACM0: USB ACM device

That’s where you find out what tty port the USB modem will be communicating on: /dev/ttyACM0. And that’s the port used in /etc/ppp/peers/USBDialup.

The rest is easy…

pon USBDialup

And you’re gold! You can then tail -f /var/log/messages to ensure it’s connecting alright.

Meta


Blogroll


Twitter


My del.icio.us


RSS My last.fm