LEFEVRE Damien .net

1 2 3 >

Monday 14 January 2008, 20:24

Linux change shell keyboard layout/keymap

sudo dpkg-reconfigure console-setup

Sunday 16 December 2007, 16:04

Install GForge Debian

System

I started to install mailman on a fresh Debian testing (lenny) system with

  • Apache2
  • Php5
  • MySQL Server
  • PhpMyAdmin
  • Webmin
    • add deb http://download.webmin.com/download/repository sarge contrib to /etc/apt/source.list
    • apt-get update
    • apt-get install webmin

DNS

I'm running on a local network and need to bind my DNS. I will do the configuration for pys60.info:

  • put pys60.info in /etc/hostname
  • install bind

: apt-get install bind

  • Edit /etc/bind/named.conf and add:
zone "pys60.info" {
	type master;
	file "/etc/bind/pys60.info";
};
zone "177.13.10.in-addr.arp" {
	type master;
	file "/etc/bind/177.13.10.reverse";
};
  • create /etc/bind/pys60.info and add:
; ——————————————————-
$TTL    604800
@       IN      SOA     pys60.info. root.pys60.info. (
		1           ; Serial
		604800         ; Refresh
		86400         ; Retry
		2419200         ; Expire
		604800 )       ; Negative Cache TTL
;
@       IN      NS       pys60.info.
@       A       10.13.177.60
www     A       10.13.177.60
scm     A       10.13.177.60
lists   A       10.13.177.60
  • Create/Edit __/etc/bind/177.13.10-reverse:
; ———————————————————
$TTL    604800
@       IN      SOA     pys60.info. root.pys60.info. (
		1         ; Serial
		604800    ; Refresh
		86400     ; Retry
		2419200   ; Expire
		604800 )  ; Negative Cache TTL
;
@       IN      NS      pys60.info.
60      IN      PTR     pys60.info.
60      IN      PTR     scm.pys60.info.
60      IN      PTR     lists.pys60.info.
  • Check the configurations
named-checkconf /etc/bind/named.conf
named-checkzone pys60.info /etc/bind/pys60.info
named-checkzone 177.13.10.in-addr.arp /etc/bind/177.13.10.reverse

GForge

The Debian packages for GForge are generously broken. For this reason you will need to install the unstable packages. Change /etc/apt/source.list from:

deb http://ftp.fi.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.fi.debian.org/debian/ lenny main contrib non-free

deb http://download.webmin.com/download/repository sarge contrib

to:

deb http://ftp.fi.debian.org/debian/ unstable main contrib non-free
deb-src http://ftp.fi.debian.org/debian/ unstable main contrib non-free

deb http://download.webmin.com/download/repository sarge contrib

ProFTPd

apt-get install proftpd

At the time i'm writting, the package is broken and the installation will fail if you choose the standalone mode. You have to choose inet mode

Mailman:

Installing mailman will also install exim4, exim4-config, exim4-base, exim4-daemon-light

apt-get install mailman

You need to create a new list:

newlist

I gave:

  • name: mailman
  • email: webmaster@pys60.info
  • password: xxxx ;)

If you tried to install mailman and that the hostname was different, adding the new list will generate error. To correct this you just have to edit

nano /etc/mailman/mm_cfg.py

and change

DEFAULT_EMAIL_HOST = "pys60.info"
DEFAULT_URL_HOST = "pys60.info"

GForge

apt-get install gforge gforge-lists-mailman

Sunday 16 December 2007, 15:40

APT Remove broken packages

My problem is with gforge-mta-exim4

edit

nano /var/lib/dpkg/status

Search for the gforge-mta-exim4 entry (Ctrl+w followed by gforge-mta-exim4)

Delete the block for gforge-mta-exim4.

updatedb
locate gforge-mta-exim4

delete all the file for gforge-mta-exim4

Wednesday 18 July 2007, 21:31

Missing codecs for Totem

After one of the latest update Totem couldn't play any media complaining about missing codecs. That did the trick for me:

apt-get install totem-xine
apt-get install libxine1-ffmpeg 

Wednesday 11 July 2007, 00:28

Trac installation guide

If you have a web server with svn installed (see Subversion (SVN) server installation guide ) you might like to explore the different functionalities of Trac .

Trac is a great web interface running on the top of a subversion which considerably helps the project management, bug tracking...

Here are some of the features:

  • Internal wiki
  • iCalendar, for synchronization
  • Timeline, revision historic
  • Source browser with syntax coloration
  • RSS feeds
  • Possibility to add ticket, bug reporting and tracing
  • Internal search engine
  • Revision comparisons
  • File attachment
  • Integrated help
  • ....

With this article, we complete the server we started to configure in Subversion (SVN) server installation guide .

[view]

Tuesday 10 July 2007, 13:54

Subversion (SVN) server installation guide

Here comes a simple installation guide for Linux Debian servers. Most of the configuration should be the same for other Linux distributions but there could be some differences in the paths.

Configurations are different if you are using Apache 1 or Apache 2 and you won't be able to have the same functionalities and access methods.

Web server administrators are slow to move to Apache2 and most of us wish to keep Apache 1.3 on their production server. It is possible to use both Apache at the same time.

When running both version of apache, Apache 1.3 is the front-end server providing SSL encryption (https) and proxy server. Apache 2 become a dedicated SVN server listening on a specific port.

[view]

Monday 25 June 2007, 21:14

Compile DAV for Apache 1.3

wget http://mirror.eunet.fi/apache/httpd/apache_1.3.37.tar.gz
wget http://www.webdav.org/mod_dav/mod_dav-1.0.3-1.3.6.tar.gz
tar xzf apache_1.3.37.tar.gz
tar xzf mod_dav-1.0.3-1.3.6.tar.gz
cd apache_1.3.37
./configure
cd ../mod_dav-1.0.3-1.3.6
./configure --with-apache=../apache_1.3.37
make
make install
cd ../apache_1.3.37
./configure --activate-module=src/modules/dav/libdav.a <+ other options>
make
make install

1 2 3 >