Gentoo + OpenVPN : getting things started in the correct order

Saturday, July 3rd, 2010

I’m running an OpenVPN server, configured in bridging mode.

I had quite a bit of trouble getting OpenVPN to start after networking is up, but before the the bridge is setup so that the tap0 device, which is created by OpenVPN can be added to the bridge.

The solution is simpler : let the tap0 be automatically created and added to the bridge by Gentoo Linux, then start OpenVPN with a config file instructing to use the already created tap0 device.

This post shows the configuration snippets to get things started in the right order on Gentoo.
(more…)

Perl : Counting occurences of IP addresses in Apache logs

Tuesday, March 2nd, 2010

This Perl one-liner is intended to print the 10 most frequent client IP addresses in an Apache log file. It can easily be recycled to count anything, though.
(more…)

Linux / Unix : Disk usage and identifying biggest files

Sunday, January 17th, 2010

When working as a systems administrator, you’ll always end up having to solve a file system full error in a hurry. Here are a few commands and hints to help you get out of it quickly on a UNIX like system.
(more…)

Gentoo Linux / Portage : How to know which package provided an installed file

Thursday, December 3rd, 2009

If there’s a file installed on your disk for which you’d like to know what package provided it, you can use the equery command like below :
(more…)

Gentoo : Xorg X Server 3D hardware acceleration

Wednesday, October 14th, 2009

You need to have read/write permissions to /dev/dri/cardX to benefit from 3D hardware acceleration in Xorg X Server. On a Gentoo linux machine, this file has the following permissions set by default :

1
2
ls -l /dev/dri/card0 
crw-rw---- 1 root video 226, 0 2009-10-14 16:12 /dev/dri/card0

(more…)