I’m listed here!
Archive for the ‘Uncategorized’ Category
Listed on FindOpenSourceSupport.com
December 20, 2007Need a rocket? (Mentos + diet Coke will do!)
December 14, 2007Really Awesome!
A little mail server admin joke
November 28, 2007I was trying to debug someone by e-mail and I think he was a little “slow”. Then I thought, silently:
His brain returned “452 4.3.1 Insufficient system resources”
SSH tunnel tutorial
July 20, 2007Hi,
I created a tutorial with Wink that shows how to create an SSH tunnel. In this example, I’ll be connecting, using ssh, to a host called server.mydomain.com. Through the tunnel, I’ll connect to “destinationhost” on port 8080. This can be usefull if destinationhost only allows connection on port 8080 from the server I’m connecting to using SSH.
To setup the tunnel, I simply open the SSH connection. When I want to access the web site located at destinationserver.other.com:8080, I simply enter “localhost:8081″ in my browser.
Here is the wink tutorial.
An SSH tunnel can be used for many reasons:
- Send or read your e-mails using an insecure protocol (POP3/IMAP/SMTP), through an encrypted tunnel
- Encrypt your HTTP traffic while in an internet cafe, using a tunnel and a proxy (like squid)
- Access a host that is behind a firewall (as long as you have access via SSH to another host behind this firewall
BTW, this may be against the policy of the organization, so please check with the sysadmin before doing that.
May 9, 2007
Virtualization makes another thing easier: complete, bare-metal backups. With this contributed package (vzdump), it is very easy to make backups of complete VE, sometimes with only little distruption.
Features:
- Can send an e-mail when finished
- Can compress the resulting tarball
- Can selectively back up individual VE, or just all of them
- Can use different method to make sure the snapshot is consistent (stop the VE, suspend the VE, LVM snapshot)
- Restoring is very easy and the VEID can be different than the original
- Can do differential backup using xdelta (not tested myself)
Steps to setup my asterisk server in an OpenVZ VE
May 9, 2007- Set the VE up
- Install asterisk
- wget ftp://ftp.digium.com/pub/asterisk/asterisk-1.2-current.tar.gz
- tar -xzf asterisk-1.2-current.tar.gz
- cd asterisk-1.2.18/
- yum install glibc-devel ncurses-devel gcc openssl-devel zlib-devel
- make
- make mpg123
- make install
- make config
- Edit /usr/sbin/safe_asterisk to comment out the line about TTY 9
- Start asterisk
- Copy asterisk config files (/etc/asterisk/*)
- Copy moh mp3’s (/var/lib/asterisk/mohmp3/)
- Copy custom sounds (IVR)
- Copy voicemail directory
- Get french sounds :
- wget ftp://ftp.digium.com/pub/telephony/sounds/asterisk-core-sounds-fr-wav-current.tar.gz
- tar -xzf asterisk-core-sounds-fr-wav-current.tar.gz
- Use the script “install_french.sh” (must be run in /var/lib/asterisk/sounds/fr) (see below for script)
- Change DNS records
- Test!
- Create backups (with vzdump)
install_french script:
#!/bin/bash # Script creant des liens symboliques permetannt l'utilisation des fichiers audios plus rapidement## Clod Patry (removed e-mail address)# Version 1.0 05/5/2006 (happy birthday mom) SOUNDS_ABS=/var/lib/asterisk/soundsLANGUAGE=fr #rootif [ ! -e $SOUNDS_ABS ]; thenecho "Le repertoire $SOUNDS_ABS ne semble pas exister. Installez asterisk ou corriger le \$SOUNDS_ABS";exit;fi DIR=dictateCUR=$PWD/$DIRif [ ! -e $SOUNDS_ABS/$DIR/$LANGUAGE ]; thenif [ ! -e $CUR ]; then echo "Le repertoire $CUR ne semble pas exister."; else ln -s $CUR $SOUNDS_ABS/$DIR/$LANGUAGE fielseecho "Impossible de creer $SOUNDS_ABS/$DIR/$LANGUAGE , il existe deja."fi DIR=digitsCUR=$PWD/$DIRif [ ! -e $SOUNDS_ABS/$DIR/$LANGUAGE ]; then if [ ! -e $CUR ]; then echo "Le repertoire $CUR ne semble pas exister."; else ln -s $CUR $SOUNDS_ABS/$DIR/$LANGUAGE fielse echo "Impossible de creer $SOUNDS_ABS/$DIR/$LANGUAGE , il existe deja."fi DIR=lettersCUR=$PWD/$DIRif [ ! -e $SOUNDS_ABS/$DIR/$LANGUAGE ]; then if [ ! -e $CUR ]; then echo "Le repertoire $CUR ne semble pas exister."; else ln -s $CUR $SOUNDS_ABS/$DIR/$LANGUAGE fielse echo "Impossible de creer $SOUNDS_ABS/$DIR/$LANGUAGE , il existe deja."fi DIR=phoneticCUR=$PWD/$DIRif [ ! -e $SOUNDS_ABS/$DIR/$LANGUAGE ]; thenif [ ! -e $CUR ]; then echo "Le repertoire $CUR ne semble pas exister.";else ln -s $CUR $SOUNDS_ABS/$DIR/$LANGUAGEfielse echo "Impossible de creer $SOUNDS_ABS/$DIR/$LANGUAGE , il existe deja."fi
Installing milter-greylist on centos4
February 20, 2007- Download and unpack the tarball, then cd into it
- Install (from this site)
- libspf2-1.2.5-3.i386.rpm
- libspf2-1.2.5-3-devel.i386.rpm
- libspf2-1.2.5-3-progs
- ./configure –with-libspf2=/usr/lib –enable-dnsrbl
- make
- do a ‘make install’ or use ‘checkinstall’
- Copy the init script
- Test
Can’t resist…
February 6, 2007What one would do to avoid an impossible physics question…? Here.
MySQL 4.1 on CentOS3
February 6, 2007Hi,
This is more of a reminder for me, but may be usefull for anyone who needs MySQL 4.1 on RHEL 3 or one of its clone.
The trick is to download mysql-client, mysql-server, and mysql-shared-compat. The latter is the most important as it makes the mysql rpm that comes with the distribution unnecessary. If you don’t install it, or if you install the mysql-shared-standard package, you will be forced to re-install mysql (the 3.23.x client) if you are using php-mysql. By installing the mysql-shared-compat, you provide the prerequesites for php-mysql, so you can just download all the new MySQL packages in a directory and do a rpm -Uvhf MySQL*.
64-bit
November 10, 2006Well, I know 64-bit computing isn’t new, but it is new for me. Even though I had 64-bit hardware available, I’ve always installed 32-bit version of the OS (linux on x86_64).
I had to deal with an x86_64 CentOS 3 server and I liked it. It just took some time to figure out how to install 32-bits packages. yum install package.arch (package.i386).
Pretty neat! I just can’t say anything about the performance as of now.