Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

Archive for the 'HowTo' Category

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

Posted by chantra on 18th June 2010

This entry is part 1 of 3 in the series 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.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | 1 Comment »

Terminator is getting a plugin system

Posted by chantra on 16th June 2010

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.

Read the rest of this entry »

Posted in HowTo, News, Softwares, Softwares | No Comments »

How-To: Disable pulseaudio and sound in GDM

Posted by chantra on 14th June 2010

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

Read the rest of this entry »

Tags:
Posted in HowTo, System | No Comments »

How-To: Mounting /dev in a chroot environment

Posted by chantra on 8th May 2010

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.

Read the rest of this entry »

Tags:
Posted in Administration, HowTo, System | No Comments »

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

Posted by chantra on 2nd March 2010

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.

Read the rest of this entry »

Tags: ,
Posted in HowTo, Networking | No Comments »

How-To: Rescan a SCSI bus without Rebooting

Posted by chantra on 12th December 2009

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.

Read the rest of this entry »

Tags: , ,
Posted in HowTo, System | 4 Comments »

How-To: Changing the default text editor

Posted by chantra on 16th September 2009

There is a few software that will use the editor command to find out what text editor to use. Example commands will be dch to add a new .deb changelog entry, revision control softwares when prompting for a commit message ...

Read the rest of this entry »

Tags:
Posted in Administration, HowTo, Softwares | No Comments »

Vmware Workstation: DNS not working with NAT

Posted by chantra on 8th April 2009

Lately, I have been experiencing a funny network issue when using VMware Workstation VMs with NAT interface. Roughly, the IP network was working fine, but DNS resolution was not anymore. It happened intermittently, but I could see that this mainly happened when I was suspending my laptop, going to another location and resuming.

Forcing the VM to use a public DNS would solve the issue.

Read the rest of this entry »

Tags: , ,
Posted in HowTo, Softwares, Virtualization | No Comments »

How-to: Autotune/ Pitch Correction Effect with Praat

Posted by chantra on 4th April 2009

I have been looking around for a while for an autotune effect (pitch correction, or whatever name you care to call it) for linux. Unfortunately everything I have found either cost money or wasn't for linux, or required special setup (wine, or other nasty things). All I could find in terms of linux autotune was people also looking for autotune. However, all the answers were unsatisfactory, either because they required manual pitch recognition (Not so good for the tone-deaf among us), or people confused it with pitch shifting in general. I eventually did find that praat (it's in synaptic), a speech analysis tool, comes surprisingly close to autotune functionality. It will give you a T-pain like effect, but it requires you to manually place the notes (although it will detect the pitch for you). I am not very experienced with praat, although this is what I figured out how to do (some of it from the original mailing list post, other I read from the manual or figured out).

Although it's GUI isn't too nice, and it isn't designed for musical manipulation, it gets the job done.
Read the rest of this entry »

Posted in HowTo | No Comments »

How-To: Virtual emails accounts with Postfix and Dovecot — page 3

Posted by chantra on 18th January 2009

This entry is part 2 of 3 in the series How-To: Virtual emails accounts with Postfix and Dovecot

5. Configuring Dovecot

Dovecot has its SQL configuration gathered in a separated file: /etc/dovecot/dovecot-sql.conf, so let's edit edit with our settings:

# vi /etc/dovecot/dovecot-sql.conf

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking | 1 Comment »