stevepedwards.com/DebianAdmin linux mint IT admin tips info

Remote Server gkrellm Monitors or Other GUI Apps via SSH and X11

http://gkrellm.srcbox.net/

These are cool looking but very comprehensive status widgets that allow remote server monitoring via ssh and X11 once set up. This assumes you have generated local public RSA keys using:

ssh-keys

that are stored in .ssh/id_rsa.pub, and copied them across to any remote servers you wish to use passwordless logins with using:

ssh-copy-id -i ~/.ssh/id_rsa.pub servername

If you need a graphical walk through of that process see:

http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/

or if you want a quick text copy/paste method, scroll down to remote rsync/ssh BUp without pword: on my Notepad page.

http://www.stevepedwards.com/DebianAdmin/notepad/

SSH can forward X11 traffic, and on Mint it is on by default at line 64 in:

vi /etc/ssh/sshd_config

X11Forwarding yes

X11DisplayOffset 10

First, install the package on the remote server via:

stevee@AMD ~ $ ssh dellmint

stevee@dellmint ~ $ sudo apt-get install gkrellm

Log out again.

Now you just need to ssh to the remote server (dellmint) you wish to monitor locally, setting X forwarding for that server from your local terminal, which logs you in remotely again, then run gkrellm on the remote server.

stevee@AMD ~ $ ssh -X dellmint

stevee@dellmint ~ $ gkrellm

It's X11 output is then streamed across the ssh tunnel and the above widget appears on your display! Dead cool! Right click it for the many display options and features.

gkrellmopt.png

Obviously, you can use this idea to stream any X11 based GUI app from a remote server to your local screen without incurring it's local overhead; Wireshark or gparted (on dellmint!!!) for remote configuration/destruction!, for example.

gparteddell.png

A VERY handy use for -X is updating CAV anti-virus remotely before a scan as the cmd line options are all GUI based except a file/dir scan itself, e.g.:

exec /opt/COMODO/cavupdater

CAVupdate.png

/opt/COMODO/cmdscan -vs /home/stevee/

cavcmd.png

Update the software/change mirrors remotely:

stevee@DELLMINT ~ $ sudo software-sources
[sudo] password for stevee:

Comments are closed.

Post Navigation