Category Archives: Debian

PulseAudio + Gnome in Debian

From the pulseaudio wiki + some googling:

$ apt-get install pulseaudio libao-common paprefs libpulse-mainloop-glib0 pulseaudio-module-jack pavucontrol alsaplayer-alsa pulseaudio-module-hal pulseaudio-module-x11 libgstreamer-plugins-base0.10-0 pulseaudio-module-lirc pulseaudio-utils pulseaudio-module-zeroconf libasound2-plugins padevchooser paman pulseaudio-module-gconf libgconfmm-2.6-1c2 libpulse-browse0 pavumeter libglademm-2.4-1c2a pulseaudio-esound-compat libpulse0 libpulse-dev

$ ln -sf /usr/local/bin/esdcompat /usr/bin/esd

Then, you launch gnome and everything works!


Installing a VPN

Here I will explain how i’ve manageed to have a functional VPN with running Debian as server.
I have Linux and Mac OS X clients(Tunnelblick).
What you will need

  • A public IP
  • debian
  • an editor (vi or vim)
  • this howto
  • frustration proof patienece

- to launch the server:
openvpn --config /etc/openvpn/server.conf --script-security 2 --daemon

- to launch a Linux client:
openvpn --config /etc/openvpn/client.conf --script-security 2 --daemon (Debian, Ubuntu)

– to launch a Mac OS X:
Download and install Tunnelblick

– How to generate client certificates:
one installed, to generate a VPN

#cd /etc/openvpn/easy-rsa/2.0/
#./build-key <client_name>
#cd /etc/openvpn/easy-rsa/2.0/keys/
you will find 3 files named:
- <client_name>.crt
- <client_name>.csr
- <client_name>.key (chmod 500 if not )

make a tarball with those files + ca.crt

This post is not complete. By now, you can follow the open VPN howto.

twisted web file server for ignorant cowboys

To serve files over http, you can install Twisted

apt-get install python-twisted-core python-twisted-web

To launch the web server:

twistd web --path /var/www/ --port 80

To stop the web server:
kill `cat` (on the same directory you launched it)

You will find complete doc at:

squirrelmail with postfix – debian

apt-get install courier-imap

Thing 1:

Thing 2:

posfix with debian

apt-get install postfix

With an edited sample of my /etc/aliases
# /etc/aliases
root: #all mail sento to will end in my mailbox
mailer-daemon: postmaster #all mail sent to mail-daemon will go to postmaster, wich is root which is user1 (me)
postmaster: root
hostmaster: root
webmaster: root
www: root
ftp: root
abuse: root
user1: user1 #an alias to have more a more formal mail address
user2.realname: user2
once you have finished editting this file, run
invoke-rc.d postfix reload

This is a very basic set up that uses system accounts with all pros and cons.

the OSes

why pay for something that is too complicated and will finally not work?
why buying French cars?
why buying Chinese tools? (In previous both cases I’m talking ’bout the cheap ones)
why hiring Chilean workers?
None of this will work, and it is usually a little bit more expensive that it was calculated.

Then, that’s when you decide to go for the big American expensive, energy eager, top hardware, obsolete technology muscle car that will run flawlessly for 30 years unless you forgot fueling it (every Wednesday).
Why buying an American OS that is crap? And expensive! and that will run flawless until you turn on your computer.
For almost the same money you can by a true OS that is as sexy as an OS can be, and it works, and it’s American too.
If all of this is too expensive, instead installing pirate Windows copies, tell you geek friends to install Linux (there is an aberration called Ubuntu (Ooh-boohn- tooh) that works out of the box, you can even choose you desktop environment painlessly.
so, why?
because everybody else does?