Subversion and the incoherent linebreak problem

When trying to commit code into a subversion repository, and if the code you want to submit comes from third parties, you might occasionally run into the error "incoherent linebreak". This is due to people editing files from Windows, Linux and Mac, which all have different line break characters. Under Windows, it's rn, under Mac it's r and finally under Linux it's n. Depending on what system you are usually using to commit your code to SVN, you should replace all the others for yours.

HOWTO share a directory with SAMBA in Ubuntu 7+ and access it from Windows

This article was first written in November 2007 for the BeezNest
technical website (http://glasnost.beeznest.org/articles/365).
The easy part is to right-click the directory in GNOME and select "Shared directory…", enter the sudo password, then select "SMB (Windows client)"  [1] and possibly unselect the "Read only" checkbox. This will enable the SAMBA sharing of the directory. Now when connecting from Windows, you will be asked to enter a login and a password, but even if you use correct a login/password pair, you won't be authorized, because you need to enable the access fr

HOWTO Autocomplete hostnames with bash while using SSH

This article was first written in October 2007 for the BeezNest 
technical website (http://glasnost.beeznest.org/articles/364).
On most GNU/Linux distributions, bash is able to read hostnames in  /.ssh/known_hosts to autocomplete ssh commands. For security reasons though, hostnames are no longer stored in clear text in those files on most distributions, defeating this feature of bash's autocompletion. To tell SSH (client) to not obfuscate hostname, just set the HashKnownHosts option to no in /etc/ssh/ssh_config.

HOWTO Determine which application is listening on a network port under Solaris

This article is incomplete and was first written in July 2007
for the BeezNest technical website (http://glasnost.beeznest.org/articles/362).
Netstat on Solaris (at least until 10 04/06) is not able to list which application is listening to which network ports but you sometimes need this. A simple script just doing the job Though, this script is pretty rough, and very slow.

Joomla! 1.0.12 Cannot redeclare error in admin section

This article is incomplete and was first written in June 2007
for the BeezNest technical website (http://glasnost.beeznest.org/articles/360).
This article is meant to help people who run into the same problem as I did, and hopefully will help me next time I have to deal with the same problem as well.

The problem appearance

Now OK, this was a peculiar situation, but I had to move a Joomla! 1.0.12 installation (which had just been migrated from Mambo to Joomla!

HOWTO Setup and run a SVN server on Debian

This article is incomplete and was first written in June 2007
for the BeezNest technical website (http://glasnost.beeznest.org/articles/359).
Very good article mentionning howto get it working on Debian very quickly: Article on Freaks Unidos' wiki This article makes it a lot easier although the SSL part might not work directly as expected: Howtoforge article on SVN installation This article

HOWTO Automatically logout your UNIX shell

This article is incomplete and was first written in June 2007
for the BeezNest technical website (http://glasnost.beeznest.org/articles/358).
To ensure a shell left open automatically logs out (kicks the user) after a certain idle time, most recent shells implement its autologout. Just set the right environment variable and you're done! The following two expressions are equivalent.

Bash

TMOUT (expressed in seconds)
export TMOUT=300

Tcsh

autologout (expressed in minutes)
set autologout=5
But maybe what you are looking for i

HOWTO Install xdebug for PHP5 on Ubuntu Feisty

This article is incomplete and was first written in April 2007
for the BeezNest technical website (http://glasnost.beeznest.org/articles/356).

Introduction

Xdebug is an extension for PHP which allows you to track errors and warning in a much more detailed way than what you could get by adding debug messages into your code. However, installing it on a Linux system when there is no package might represent a little difficulty for the developer-only.

HOWTO Add SMTP Receipt Notification to a mail

This article is incomplete and was first written in January 2007
for the BeezNest technical website (http://glasnost.beeznest.org/articles/353).
Receipt Notification (or "Accusé de réception" in french) can be very easily added to an e-mail by adding the following line in the e-mail's SMTP header:
"Disposition-Notification-To:address@domain.extrn"
Where address@domain.ext is the e-mail address you want the receipt notification to be sent to AND r should be the end-of-line marker of your SMTP server.

HOWTO Activate NAT on Debian

This article is incomplete and was first written in September 2006
for the BeezNest technical website (http://glasnost.beeznest.org/articles/343).
An example on how to activate NAT on a Debian box (on Etch and up). First, activate IP forwarding in /etc/sysctl.conf. Then, you need to activate NAT itself in /etc/network/interfaces:
auto eth0
iface eth0 inet static
        address 192.168.1.254
        netmask 255.255.255.0
        network 192.168.1.255
        up iptables -t nat -A POSTROUTING -o $IFACE -j MASQUERADE
There you are.