Archive for the ‘Linux’ Category

DWL-G510 rev B running native in Linux

After some searching around on the Google machine, I came across “Linux wireless LAN support“. It’s one of the most complete directories I’ve seen for a very long time. I had a suspicion that my DWL-G510 pci card might work, as it is old enough and I’ve read about other similar models of D-Link card being supported natively. It turns out that mine works seamlessly with stuff from the MadWifi project. Because I was feeling lazy and wanted a tried and true install method, I found “How To Install MadWifi On Debian 4.0 (Etch)” by Sumardi Shukor. The following is based on the article on his blog.

vi /etc/apt/source.list [add "contrib non-free" after "main" to the various lines]
apt-get update
apt-get install build-essential module-assistant wireless-tools
module-assistant
module-assistant auto-install madwifi-source
modprobe ath_pci
ifconfig ath0 up [bring up the wireless interface]
iwlist ath0 scanning [scan for a wireless network to connect to]

I suggest using a GUI app to do the rest, such as wicd.

installing Debian Lenny (5.0) from USB

I was having trouble with some old CD-RW’s that I was installing Debian 5 from the other day, so since the machine’s BIOS supported booting from removable disk (usb), I decided on giving that a try.

Much of this is based on the great article – “Installing Debian Sarge
from a USB memory stick (USB key)
“ - by Pascal Le Bail.

You are going to need a decent Internet connection that you can download the extra Debian packages from, and a BIOS that can boot from a usb disk. This assumes that your usb disk is the first that you have connected. Run dmesg to find out the exact dev name of your device if sda is incorrect.

fdisk /dev/sda
mkfs -t vfat /dev/sda1
wget http://ftp.nl.debian.org/debian/dists/lenny/main/installer-i386/current/images/hd-media/boot.img.gz
zcat boot.img.gz >/dev/sda1
mount /dev/sda1 /mnt
cp [netinstall or biz card].iso /mnt/

You can pick up a business card or netinstall cd iso from Installing Debian GNU/Linux via the Internet.

OpenVPN on CentOS 5.2

A bit of googling turned up a great post by on howtoforge.com called, “OpenVPN Server On CentOS 5.2. I didn’t know quite how to add the rpmforge repo that is needed to install OpenVPN from so … google turned up another handy article how to do that called, “CentOS 5 – install rpmforge yum repo“. I checked the rpmforge RPM releases at http://dag.wieers.com/rpm/packages/rpmforge-release/ to be sure that this is the latest release … it is (as of June 2009). The following pasties are based off of the aforementioned article with some changes.

yum install openvpn
cd /etc/openvpn/
mkdir easy-rsa
cp -R /usr/share/doc/openvpn-2.0.9/easy-rsa/2.0/* easy-rsa/
chmod -R 777 easy-rsa/
cd easy-rsa/
. ./vars
./clean-all
./build-ca

–> For the common name use “OpenVPN-CA”, of anything else helpfully descriptive. <–
./build-key-server server
–> Enter various customized values if you so please, but be sure to leave the common name value as the default – “server”. Oh, and answer yes to the two questions at the end. <–
./build-key client1
–> Change the number 1 to 2, 3, and so on how ever many client certificates you want. Leave the common name as the default “clientn“. <–
./build-dh
cd keys/
openvpn --genkey --secret ta.key

For more information on transferring the necessary keys to the client, see the final part of a blog post I did on running OpenVPN on Debian.

I created two example config files utilizing the OpenVPN routed tunnel method … hope they help. [server] [client]

Just add the static routes to the VPN subnet(s) to your LAN gateway.

If you need any help I suppose you could always pay me to set this up for you, that’s what I’ve done for some other folks.

Return top