Linux-Planet
  • Home
  • Top 10
  • Statistics
  • Registration
  • Archives
  • Contact

Quick news

Welcome on Linux-Planet - Please, if you find any bugs, report them at bugs@linux-planet.net

Subscribe

  • feed Feed with all the posts
  • feed Popular posts feed

Members

  • feed  Devil505
  • feed  Diego
  • feed  eugeni
  • feed  fabiolone
  • feed  Giacomo
  • feed  Ingo
  • feed  Jonathan
  • feed  kiddo
  • feed  Linux-Planet
  • feed  Linuxindetails
  • feed  Scurz
  • feed  shredder12
  • feed  teguh
  • feed  TForsman
  • feed  theclimber
  • feed  yoho

Contribute

  • meta Add your blog
  • meta Administration
Filter the posts :     Posts of the day   -   Posts of the week   -   Posts of the month   -   All posts

Fast access to the last posts of the page


06/12/2009 : When did you install your system ? 03/12/2009 : Dual-screen with xrandr 22/11/2009 : warning: SASL authentification problem 22/11/2009 : DNS configuration for Jabber 18/10/2009 : Import a remote file with PHP and XML 13/09/2009 : First stable version of MyNewsletter 09/09/2009 : Linux-planet launched ! 24/06/2009 : Forward system's mails to a mail box ! 23/05/2009 : Linux-libre, a 100% Free kernel !
Next page »
When did you install your system ? 
1 vote
By Scurz, on 06/12/2009 at 17:49.

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 ?

Back to summary
Dual-screen with xrandr 
1 vote
By Scurz, on 03/12/2009 at 14:34.

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.

Back to summary
warning: SASL authentification problem 
2 votes
By Scurz, on 22/11/2009 at 18:13.

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!

Back to summary
DNS configuration for Jabber 
2 votes
By Scurz, on 22/11/2009 at 18:06.

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.

Back to summary
Import a remote file with PHP and XML 
1 vote
By Scurz, on 18/10/2009 at 10:08.

How to import the content from a remote file by using PHP and XML ?

That is very easy ! First, you must create the XML file (I give you a simple example, look for yourself to get the file you want/need) :

 <character>
 <body>Hello world !</body>
 </character>

Save this in a file (we call it file.xml).

Then, in your PHP file, you must have this :

$xml = simplexml_load_file('http://url.tld//your/file.xml');
echo 'What is there in the file ? '.$xml->body0.'<br />';
  • simplexml_load_file() is a function that calls the remote file in $xml ;
  • "echo" shows the content of <body> and </body> from the XML file ;
  • $xml->body[0] means that "echo" has to show the first body of the file, if you wish to show the second body, you should have $xml->body[1].

Finally, here is what you should get :

What is there in the file ? Hello world !

Easy no ?

It seems it's not possible to import a remote file only with php, good for you, because this could be a vulnerability.

Back to summary
First stable version of MyNewsletter 
4 votes
By Scurz, on 13/09/2009 at 14:21.

The first stable version of my little web application is released.

This application is a complet system (or nearly) of newsletter for your website, you can send newsletters when you want to the subscribed members. Here are its main features :

  • Management of the members of your newsletter ;
  • Management of the admins who manage the newsletter ;
  • First, newsletters are saved as drafts l
  • When a visitor subscribe, he receives a mail of confirmation, the main admin gets an email to be informed ;
  • There are (private, for the moment) archives ;
  • And more...

It is mainly written in PHP (with SQL/XHTML/CSS), no special software is needed, you only need to have a MySQL database.

Lots of new features should become in the next versions, with a beautiful design (the current is very dumpy !). Read the TODO list to get more information about new features.

A documentation is available. I'm waiting for your comments (feedbacks, bug reports). The code source is free and available with git.

  • The tar archive of the version 1.0 is available from here.
Back to summary
Linux-planet launched ! 
5 votes
By Scurz, on 09/09/2009 at 20:30.

The english version of Planet-Libre is now working ! Indeed, it is a french planet dealing with GNU/Linux, but because there is no english planet such Planet-libre, I decided to set up my own planet with the help of Planet-Libre's admin, therefore, we are working together.

The purpose of Linux-Planet is to aggregate all articles coming from blogs dealing with GNU/Linux.

If you want to add your blog, visit this page.

Your feedbacks are welcome !

Linux-planet is officially launched !!

Back to summary
Forward system's mails to a mail box ! 
4 votes
By Scurz, on 24/06/2009 at 22:40.

With a basic configuration, all system's mails, or almost are forwarded to the user "root". To read them, type "mail" is sufficient, as root. And to know where softwares send their mail(s), take a look at /etc/alias.

I think the reading of mails is not very pratical with the "mail" command, I looked for a solution, to know how to forward mails that root should get to an email of monitoring.

The tip is simple, it's necessary to change in /etc/alias this :

   root:user # (user can be something else)

To :

   root:your@mail.tld

Then, you need to do "newaliases" to update the aliases.db file.

Tip so pratical because from now you will be able to look out to the existing problems on your system (since mails are sent to the system when there is a problem on the system ) !

Back to summary
Linux-libre, a 100% Free kernel ! 
2 votes
By Scurz, on 23/05/2009 at 15:16.

I read, with surprise that kernels provided by debian (themselves coming from kernel.org) are not 100% Free ! There are non-free softwares inside ! That's so surprising because everybody tells "the Linux kernel is100% Free", but in the facts, it's not true...

Linux-libre is a project that wants to provide a kernel 100% Free ! They remove non-free softwares with a script : deblob-main.

It works for me on debian sid, I think it also works for all distributions, it is a kernel like the original kernels, only some things are removed.

Debian doesn't seem to provide linux-libre officialy, but anyway, it's available for debian. Sources are available there and they are to be compiled like kernels from kernel.org

  • Official website
  • Mailing list
Back to summary
Next page »
Powered by BilboPlanet Valid CSS - Xhtml Designed by BilboPlanet Back to top