Debian/Ubuntu Tips & Tricks

Debian/Ubuntu Tips & Tricks

Debuntu.org: .deb packages, Unix/Linux Tutorials and Articles.

Sponsors

User login

Syndicate

Syndicate content

Tips Bucket

Who's online

There are currently 0 users and 34 guests online.

How-To: Log HAProxy messages only once

When enabling logs with HAProxy on a busy web site, hard disk space can quickly become a scarce resource.

The reason is that, most of the time, HAProxy is set to use local0 facility which tend to write logs to a bunch of files in /var/log such as messages...

Thanks to rsyslog, we will be able to canalize those logs to a more appropriate location and only once, saving a bunch of disk space.

How-To: WMware Workstation 7.1 on Ubuntu Maverick Meerkat 10.10

There were some changes in the latest kernel release (2.6.34) that prevent VMware's VMCI Socket module to compile on Ubuntu 10.10 (Maverick Meerkat).

Debuntu.org running on new server

Last Sunday (2010/07/04) Debuntu server ran into some issues and got offline for some time.
It appears that one of the Raid disk got almost dead and processes were getting stuck in IOwait state.

Anyway, data was safe and everything could be recovered from the disk.

How-To: Set up a L2TP over IPSec VPN using a Radius backend

Even though I pretty like OpenVPN, there is still some devices that might not support the TUN/TAP driver needed by OpenVPN.

Take IPhones, Android phones for instance, you need to root them in order to get that feature, assuming somebody has already cooked a ROM for your device.

L2TP is quite and old standard that allow setting up VPNs.

On the other end, it does not provide any kind of encryption mechanism, and as such, it is pretty common to get L2TP running over an IPSec link.

Terminator is getting a plugin system

I already spoke about Terminator a while back. Since then,, quite some time has passed and lots of features were added...

In the last 7+ months, cmsj as worked a lot on getting the whole architecture re-implemented in a more object-like architecture which makes the different component of Terminator interact together more naturally.

How-To: Disable pulseaudio and sound in GDM

If like me you use MPD as a service daemon to listen to music, you might be annoyed anytime GDM start a pulseaudio process which prevents MPD from accessing the sound device.

Typically, the output of ps will produce the following output:

$ ps aux | grep pulse
gdm 1371 0.0 0.4 98180 4776 ? S<sl Jun13 0:00 /usr/bin/pulseaudio --start --log-target=syslog
gdm 1411 0.0 0.2 10748 2968 ? S Jun13 0:00 /usr/lib/pulseaudio/pulse/gconf-helper

How-To: Mounting /dev in a chroot environment

When working in a chrooted environment, there is a few special file systems that needs to be mounted so all programs behave properly.

For instance, grub will need to access your disk devices....

While most special file systems might be mounted with:

# mount fstype -t fstype /tmp/chroot/mountpoint

Where fstype will be sysfs, proc, /dev is not following this rule.

How-To: Network-Manager-OpenVPN overwrites default route

I was trying network-manager-openvpn plugin today on Lucid, I could import my configuration, DNS was set up correctly upon connection/disconnection, route imported correctly (almost :)).

One issue though is that it was also changing the default route to the VPN tunnel while this should not happen.

How-To: Rescan a SCSI bus without Rebooting

When you hotplug a hard drive in a virtual machine, the drive do not show in fdisk -l output until you reboot your VM.
In order to get the drive to appear, the SCSI bus need to be rescanned.

FREE online editon of Linux+ magazine

Hello Guys!

Just so you know the Team of Linux+ is going to release FREE online editon of Linux+ magazine. There will be 6 monthly issues with 60 pages each available for free download. They are looking for your support!
Write to ewa.swierczewska@lpmagazine.org for more details if interested.

Thanks!