Tuesday, 21 August 2007

View logs

Viewing log files from the command line:

tail -f


/var/log/messages : General log messages
/var/log/boot : System boot log
/var/log/debug : Debugging log messages
/var/log/auth.log : User login and authentication logs
/var/log/daemon.log : Running services log to this file
/var/log/dmesg : Linux kernel ring buffer log
/var/log/dpkg.log : All binary package log includes package installation etc
/var/log/faillog : User failed login log file
/var/log/kern.log : Kernel log file
/var/log/lpr.log : Printer log file
/var/log/mail.* : All mail server message log files
/var/log/user.log : All userlevel logs
/var/log/xorg.0.log : X.org log file

Crontab - scheduling jobs

Machine has started hanging every 24hours or so if I leave it running so needed to schedule a reboot as a keep-it-going measure.

sudo crontab -l to list current cron jobs
sudo crontab -e to edit cron jobs

works like a dream...just need to work out what the real problem is now....

VNC over ssh tunnel

VNC over SSH tunnel using putty seems to be a good enough solution. Works quite nicely as can just use terminal session unless I need to use something 'GUI'.