About GNU/Linux

The content of that blog comes from http://about-gnulinux.info, I translate all articles in english. The content deals with Free software (GNU/Linux).

When did you install your system ?

Here is a way to know when you installed your system for the last time. The hocus-pocus is only true if you didn't modify your root partition ("/") since the last installation.

Let's go :

dumpe2fs -h /dev/DEVICE | grep 'created'

Replace DEVICE by the name of your root partition (hda1, hdd1, sda2...).

Here is the output (we use grep because it's faster) :

Filesystem created:       Fri Apr 18 13:33:51 2008

Fun no ?

And...

Dual-screen with xrandr

This article simply explains how to get two same screens with a same computer. We're going to use xrandr, the soft is normally already installad on your system.

Assumptions ; you have a laptop (or desktop) with one screen, and you would like to add a second screen showing the same things. Everything can be done as user.

Let's get information about your laptop's screen :

xrandr

Here is the output :

$ xrandr 
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1600 x 1600
VGA disconnected (normal left inverted right x axis y axis) 338mm x 270mm
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
  1280x800       60.0*+   60.0  
  1280x768       60.0  
  1024x768       60.0  
  800x600        60.3  
  640x480        59.9  
TV disconnected (normal left inverted right x axis y axis)

LVDS ; this is the laptopt's screen.
VGA ; this will be your second screen.

Let's add the second screen :

We're going to add the second screen. The first and the second screen don't have the same resolution (in my case), I must give two different resolutions to each screen. Note you can only give the resolutions you get with "xrandr". One command is sufficient :

xrandr --output VGA --mode 1280x1024 --output LVSD --mode 1280x768

Let's split the command :

--output VGA --mode 1280x1024

This gives the resolution of the second screen.

 --output LVSD --mode 1280x768

This gives the resolution of the laptop's screen.

Add resolutions :

If the resolution you want is unavailable, you must add a mode, read this article.

Disconnect a screen :

If you don't want to use the laptop's screen ;

xrandr --output VGA --mode 1280x1024 --output LVDS --off

And for the second screen :

xrandr --output LVDS --mode 1280x768 --output VGA --off

GUI :

A GUI exists to manage your screens : lxrandr.

News about the planet

Since the planet is running, nothing has changed.

Here are news :

  • First, you will be able to get news about Linux-Planet from here and news are directly published for you on the planet ;
  • A campaign to promote the planet is going to be launched ;
  • The link to the mobile version of the planet is now highlighted in the menu (last link "Mobile");
  • The design should be soon updated.

Great no ?

warning: SASL authentification problem

I got this message from the postfix's smtpd service :

warning: SASL authentification problem: unable to open Berkeley db /etc/sasldb2: No such file or directory

Here are the solutions I found :

  • The file /etc/sasl2db doesn't exist.
  • The rights on /etc/sasl2db are false, a chmod 644 could fix the problem.
  • /etc/init.d/saslauthd isn't running (the service).
  • Or if your postifix is chrooted, you must copy the file sasldb2 into /var/spool/postfix/etc/.

Any solution ? Let me know in the comments!

DNS configuration for Jabber

I find it is not very easy to find a correct DNS configuration for jabber domains (but it's so easy!), therefore I show you my configuration.

In your zone file :

your.domain.tld.		A	YOUR-IP
_xmpp-client._tcp.domain.tld. 86400 IN   SRV     20 0 5222 your.domain.tld.
_xmpp-server._tcp.domain.tld. 86400 IN   SRV     20 0 5269.your.domain.tld.

Add +1 to your serial number and reload bind.