Creative Commons License
This work is licenced under a Creative Commons Licence.

Echoing the /var/log/syslog file ON your X desktop

Here are my steps for printing the /var/log/syslog file ON your X desktop.

1.

First get Eterm, aterm or some other terminal program that can do transparency. You
also need a program called ‘tail‘ that constantly reads a file for
changes. Unless you run root all the time (which you REALLY shouldn’t) you have to
have the sudo program, too. Debian GNU/Linux users can get these by doing
something like:

# apt-get install eterm tail sudo

FreeBSD users might want to use the ports collection:

# cd /usr/ports/x11/eterm/; make all install clean
# cd /usr/ports/security/sudo/; make all install clean

2.

Enter the sudo configuration (You HAVE to use this editor when modifying the
sudo configuration):

# visudo

4.

Make sure you have the following lines in that (/etc/sudoers) file
(‘jani’ is my username, replace it with yours):


  # User alias specification
  User_Alias     ADMINS = jani
  # Cmnd alias specification
  Cmnd_Alias     BROWSE = /usr/bin/tail
  # User privilege specification
  root           ALL=(ALL) ALL
  jani           ALL=BROWSE

5.

If you want the logs to be printed the moment you log in to your X sever,
place this command in your window manager’s “startup programs” list or your
~/.xinitrc, otherwise you’ll always have to start it manually:

$ eterm -O -W –scrollbar 0 –menubar 0 -w 0 -x -g 120×50+100+50 –no-cursor -e sudo tail -f /var/log/syslog

6.

Restart your X server and enjoy your new ’syslogged’ desktop! Check out
the manual page for syslog.conf and eterm for more
information.

Tags: ,

2 Responses to “Echoing the /var/log/syslog file ON your X desktop”

  1. DARREN says:


    PillSpot.org. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. Low price drugs. Order pills online

    Buy:Ventolin.SleepWell.Zocor.Lipitor.Nymphomax.Lipothin.Cozaar.Acomplia.Advair.Female Cialis.Aricept.Lasix.Seroquel.Buspar.Female Pink Viagra.Wellbutrin SR.Zetia.Amoxicillin.Prozac.Benicar….

Leave a Reply

Spam protection by WP Captcha-Free