Setting up subversion on Debian etch

svnYesterday I installed subversion on a Debian server again and I had too look for some guidance in the web again. This time I decided to write it down for myself.

I installed the following packages with aptitude:

sudo aptitude install libapache2-svn subversion subversion-tools

Afterwards the needed modules were already enabled in my apache2 configuration – I looked in /etc/apache2/mods-enabled/ and saw dav.load, dav_svn.conf and dav_svn.load linked. All I had to do was to create a repository by using svnadmin:

sudo svnadmin create /var/lib/svn/main (you may choose whatever directory you like)

and configure the access path in my apache2 configuration:

<Location /svn>
DAV svn
SVNListParentPath on
SVNParentPath /var/lib/svn
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /var/www/.svnusers
Require valid-user

I created some users with htpasswd and wrote them to the configured file /var/www/.svnusers. After loading the apache2 configuration I was able to connect and use the repository. I made www-data (the user under which apache2 runs) the owner of the repository and its files.

If you want more detailed configuration of access permissions have a look at the AuthzSVNAccessFile configuration directive.

Finally WLAN bridge with WPA

WirelessTen days ago I installed my new Linksys Router WRT45G router and set up a wireless bridge for my home network. I had some problems with getting everything working like I wanted it to – see my post.

Today I took another attempt and was successful. Now I got a secure wireless connection in bridge mode. I wanted WPA because it is much more secure than WEP and in bridge mode it is easier to reach all my devices. Here is my configuration:

nvram set wl0_mode=wet
nvram set lan_ifnames="vlan0 eth1"
nvram set wan_ifname=vlan1

ifdown wan
nvram set wl0_ssid=MYSSID
nvram set wl0_channel=7
nvram set wl0_akm=psk
nvram set wl0_crypto=aes
nvram set wl0_wpa_psk=WPAKEY
nvram set wl0_auth=0
ifup wan; /sbin/wifi

nvram commit;

For more information about the parameters see the OpenWRT wiki.

Setting up a wireless bridge

WirelessTwo weeks ago I moved to a new flat. This means a lot of work – one of my tasks was to set up the home network (while my wife’s task was to think about the color of the curtains ;)

I had to connect five devices: workstation, notebook, XBOX, VDR and a Linux server. While the workstation and the notebook are situated in my workroom the others are placed in the living room.

I did not want to screw a lot of holes in walls and/or the floor so I decided to connect the two small LAN wireless. In my exiting network I already had a Linksys Access Point so I ordered a Linksys Router WRT45G to create my wireless network bridge.

There is a project called OpenWrt that provides a free open source firmware for this router (and many ohters). I downloaded the correct firmware as described here. In my case it was the latest White Russian for wrt54g.

After flashing my router through the original web interface the web interface of OpenWrt showed up, I set a root password and could connect to the device via ssh. Great!

I tried to configure the router for bridged client mode with WPA PSK encryption as described in the ClientModeHowto but I had no luck. After two hours playing around with various nvram variables and starting over again and again by resetting the router to the defaults (mtd -r erase nvram) I tried a different setup.

I configured my access point security to WEP and tried the routed client mode – and it worked! Here are the configuration changes I made:

nvram set wl0_mode=sta
nvram set lan_ifname=br0
nvram set lan_ifnames=vlan0
nvram set wan_ifname=eth1
nvram set lan_ipaddr=
nvram set lan_proto=static
nvram set wan_proto=dhcp

ifdown wan
nvram set wl0_ssid=MYSSID
nvram set wl0_channel=7
nvram set wl0_wep=enabled
nvram set wl0_key=1
nvram set wl0_key1=WEPKEY
ifup wan; /sbin/wifi

Seems like either WPA or bridged client mode was the problem or both or the combination.

I think I will give them a try when again when I have more time. WPA for security reasons and bridged client mode for easier network setup/communication.