Ora attiviamo i log di sistema per il Mybook.
(Nota: se abbiamo installato una immagine del root filesystem versione 20070826 o successiva occorre solo installare il logrotate, i demoni syslog e klog sono già installati)
Now we install log daemons for Mybook.
(Note: if you install a root filesystem image release 20070826 or newer, you need only logrotate, syslog and klog daemons are already installed and operative)
Come primo servizio, dato che l’immagine del filesystem è realmente ridotta, ci occorre il log di sistema e del kernel, dato che saranno i primi posti dove andremo a guardare in presenza di problemi. Il primo passo è l’installazione dei demoni di log:
root@mybook:~# apt-get install sysklogd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
klogd
The following NEW packages will be installed:
klogd sysklogd
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 104kB of archives.
After unpacking 194kB of additional disk space will be used.
Do you want to continue [Y/n]? y
...
Setting up klogd (1.5-1) ...
Starting kernel log daemon....
Setting up sysklogd (1.5-1) ...
Starting system log daemon....
Poi installiamo anche il pacchetto logrotate, che impedisce ai file di log di diventare troppo grandi, creandone di nuovi ed archiviando i vecchi periodicamente:
root@mybook:~# apt-get install logrotate
Reading package lists... Done
Building dependency tree
Reading state information... Done
Recommended packages:
mailx
The following NEW packages will be installed:
logrotate
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
...
Setting up logrotate (3.7.1-3) ...
E’ tutto. I file di log saranno nella directory /var/log e periodicamente verranno ruotati e cancellati i più vecchi.
As first service, we need system and kernel logs, the first places where to look when in troubles, so we going to install log daemons:
root@mybook:~# apt-get install sysklogd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
klogd
The following NEW packages will be installed:
klogd sysklogd
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 104kB of archives.
After unpacking 194kB of additional disk space will be used.
Do you want to continue [Y/n]? y
...
Setting up klogd (1.5-1) ...
Starting kernel log daemon....
Setting up sysklogd (1.5-1) ...
Starting system log daemon....
Next, we install the logrotate package, to avoid excessive grow of log files:
root@mybook:~# apt-get install logrotate
Reading package lists... Done
Building dependency tree
Reading state information... Done
Recommended packages:
mailx
The following NEW packages will be installed:
logrotate
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
...
Setting up logrotate (3.7.1-3) ...
That’s all. Log files are in the /var/log directory, and will be rotated periodically, deleting oldest.


#1 da Edouard il 27 August 2007 - 09:16
Thanks for your good work on mybook world. And thanks for translating it in english