Re: Bit Twister: Is this the dhclient-exit-hooks you were talking about?



On Sun, 24 Sep 2006 20:05:21 +0000 (UTC), Ohmster wrote:

xconsole -fg white -bg seagreen -geom 1000x50+7+00 -file /var/log/messages

Oh this is just too freaking cool to pass up! I tried to save it by closing
xwindows and choosing to "Save current setup" but xconsole does not support
saving the setup. I will have to find a new way to bring that xconsole up
when I log into X so that I do not have to type it into a term window all
the time.

One of two methods come to mind.
alias in .bashrc or script executed as part of .bash_profile.

In my firewall account ~/.bash_profile I have

/site/bin/xconsole_fw

----------------------
Note, once in awhile I'll log into the firewall more than
once so I only want one activation of xconsole.

xbiff is used to tell me there is mail on the firewall from
any cron jobs that are reporting something of intrest.

if statements are deciding if I did a rlogin or ssh connection
from somewhere.
set0 is a script to decide where $DISPLAY should point the display
for xbiff and xconsole

----------------------
$ cat /site/bin/xconsole_fw

pgrep -U $LOGNAME xconsole
if [ $? -eq 1 ] ; then

_remote_login=0
if [ -n "$REMOTEHOST" ] ; then
_remote_login=1
fi

if [ -n "$SSH_CONNECTION" ] ; then
_remote_login=1
fi

if [ $_remote_login -eq 1 ] ; then
source /site/bin/set0
xbiff -geom +0+0 &
xcon
sleep 4
fi
fi

#***************** end xconsole_fw *************

and a $ cat /site/bin/xcon gives


xconsole -geom 1032x50+400+00 -file /var/log/messages &
#***************** end xcon *************



Common applications customization can be defined in ~/.Xresources
You can do a locate Xresource to find something to copy into
~/.Xresources and start hacking away.
.



Relevant Pages

  • Re: Bit Twister: Is this the dhclient-exit-hooks you were talking about?
    ... The -display wb:0 indicated the display should go to the node wb ... I don't think that my xconsole is as sophisticated as all that. ... This program uses the Athena Text widget, ... Xconsole otherwise accepts resources of the same names as the ...
    (alt.os.linux)
  • Re: /var/log growing rapidly
    ... # The named pipe /dev/xconsole is for the `xconsole' utility. ... A very useful app if you can get it to work. ... on your display that scrolls /var/log/messages constantly in real ... it's very difficult to get X to let root put a root owned ...
    (Debian-User)
  • Re: Rooted
    ... > Shucks I do not even trust my own firewall. ... I have xconsole ... > tailing -f back to the top of my screen on the inside box ...
    (comp.os.linux.security)
  • Re: Bit Twister: Is this the dhclient-exit-hooks you were talking about?
    ... lines and top left corner of display to show it. ... I don't think that my xconsole is as sophisticated as all that. ... But you aught to try the command for grins. ... That is why I gave you the fishing lesson. ...
    (alt.os.linux)