I have access to a cluster and wanted to use the simplest example to ssh into it with X11 forwarding and see if it works. Currently, I simply log into the cluster:
$ ssh -Y user@cluster
and the only program that I know in the cluster that has some display (like a gui) is matlab
, so I just run it:
$ matlab
in the past that works but I wanted to know of the simplest command to display something in my screen to see if its working or not. Currently, running matlab
opens the command interface but it doesn't display an error or anything else.
Does someone know what is an alternative command to see if anything is working? A single command that is inherit with Ubuntu and doesn't require me to install anything beyond X11 is the idea. Something like:
$ display_a_box_with_text HELLOWORLD
I am not sure if its just me but it seems ridiculous that the only way to check if X11 is working is by running MATLAB. There must be a better way to check this.
Best Answer
Instead of the ssh command you issued, try:
Add another argument
-v
enable the debugging mode forssh
command. Search for a line containingRequesting X11 forwarding
, like in:After logging in, you can try the following commands for opening a X window:
xterm
,xclock
,xcalc
,xedit
, etc These were already mentioned in comments.You asked for a dialog box with a custom text, so you should try
xmessage
: