Devil505
Diego
eugeni
fabiolone
Giacomo
Ingo
Jonathan
kiddo
Linux-Planet
Linuxindetails
Scurz
shredder12
theclimber
yohoHere 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 ?
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.
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.
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.
If the resolution you want is unavailable, you must add a mode, read this article.
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
A GUI exists to manage your screens : lxrandr.
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 :
Any solution ? Let me know in the comments!
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.
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 />';
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.
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 :
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 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 !!
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 ) !
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