Difference between revisions of "Running graphical application from Bubba on your windows pc"

From BubbaWiki
Jump to navigation Jump to search
 
Line 1: Line 1:
Are you tired of only using console program on your remote Bubba then this how-to is for you.  
Are you tired of only using console program on your remote Bubba then this how-to is for you.<br>


<br>  
To be able to run graphical applications from Bubba on your PC there are a few things thats needs to be set up. There is several way you could&nbsp;accomplish this goal. In this how-to we will use the standard Linux/Unix graphic libraries X11 to accomplish this. First we need to install the X11 server on our Windows pc. I will use the Cygwin/x [http://x.cygwin.com/ x.cygwin.com/]. Here you can find documentation on how to install the program [http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html x.cygwin.com/docs/ug/setup-cygwin-x-installing.html].<br>  


To be able to run graphical applications from Bubba on your PC there are a few things thats needs to be set up. There is several way you could&nbsp;accomplish this goal. In this how-to we will use the standard Linux/Unix graphic libraries X11 to accomplish this.
Make sure that you install the following packages: '''xorg-server, xinit, X-start-menu-icons, openssh'''<br>


<br>  
Just search for the package name and then click once on the package so it changes from skip to a version number.<br>  


First we need to install the X11 server on our Windows pc. I will use the Cygwin/x [http://x.cygwin.com/ x.cygwin.com/]. Here you can find documentation on how to install the program [http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html x.cygwin.com/docs/ug/setup-cygwin-x-installing.html].<br>  
After you have installed Cygwin/X you should start the '''Xwin server''' application that should exist on your start menu. This will start the X11 server and give you an X terminal from where you can ssh in to Bubba.<br>  


Make sure that you install the following packages: ''xorg-server, xinit, X-start-menu-icons, openssh''<br>  
Now it's&nbsp; time to ssh into Bubba and become root to install the needed packages. In this how-to you can see how you access the Bubba with SSH [[Howto/Access Server via SSH|Access_Server_via_SSH]]. You should follow the description for the Linux terminal. Just answer yes to the question ''Are you sure you want to continue connecting''<br>  


Just search for the package name and then click once on the package so it changes from skip to a version number.  
When you have root access on Bubba you should run this command to install the needed packages&nbsp;
<pre>apt-get install xbase-clients x11-common xterm nano
</pre>
Now we need to make sure that the SSH server settings on the Bubba allows forwarding of graphics. Edit the file ''/etc/ssh/sshd_config''<br>
<pre>nano /etc/ssh/sshd_config
</pre>
Make sure that this line exist in the file<br>
<pre>X11Forwarding yes</pre>
Make sure that there is no hash (#) before the line since it will then be regarded as a comment and not a setting. Now we need to make the new setting take affect<br>
<pre>/etc/init.d/ssh reload</pre>
Now we need to log out from Bubba by running '''exit''' twice. If you&nbsp;accidentally closes the terminal you can get it back by right clicking the Cygwin/X icon in the task-bar and chose '''Application-&gt;xterm'''.<br>


<br>  
Now we can login again but this time we should add the flag '''-Y''' to the ssh command<br>
<pre>ssh -Y USER@IPADDRESS
</pre>
You should now be able to run graphical applications on the Bubba and they should show up in the Windows PC, test this by running the xterm command. <br>  


After you have installed Cywin/X you should start the ''Xwin server'' application that should exist on your start menu. This will start the X11 server and give you an X terminal from where you can ssh in to Bubba.<br>
Now you only need to install some greate gui application on the Bubba so you have something to display on the Windows PC
 
<br>
 
Now is the time to ssh into Bubba and become root to install the needed packages on Bubba. In this how-to you can see how you acces the Bubba with SSH [[Howto/Access Server via SSH|Access_Server_via_SSH]]. You should follow the description for the Linux terminal. Just answer yes to the question ''Are you sure you want to continue connecting''<br>
 
<br>
 
When you have root access on Bubba you should run this command to install the needed packages
<pre>apt-get install xbase-clients x11-common xterm
</pre>
To be continued ....<br>

Latest revision as of 20:49, 22 October 2010

Are you tired of only using console program on your remote Bubba then this how-to is for you.

To be able to run graphical applications from Bubba on your PC there are a few things thats needs to be set up. There is several way you could accomplish this goal. In this how-to we will use the standard Linux/Unix graphic libraries X11 to accomplish this. First we need to install the X11 server on our Windows pc. I will use the Cygwin/x x.cygwin.com/. Here you can find documentation on how to install the program x.cygwin.com/docs/ug/setup-cygwin-x-installing.html.

Make sure that you install the following packages: xorg-server, xinit, X-start-menu-icons, openssh

Just search for the package name and then click once on the package so it changes from skip to a version number.

After you have installed Cygwin/X you should start the Xwin server application that should exist on your start menu. This will start the X11 server and give you an X terminal from where you can ssh in to Bubba.

Now it's  time to ssh into Bubba and become root to install the needed packages. In this how-to you can see how you access the Bubba with SSH Access_Server_via_SSH. You should follow the description for the Linux terminal. Just answer yes to the question Are you sure you want to continue connecting

When you have root access on Bubba you should run this command to install the needed packages 

apt-get install xbase-clients x11-common xterm nano
 

Now we need to make sure that the SSH server settings on the Bubba allows forwarding of graphics. Edit the file /etc/ssh/sshd_config

nano /etc/ssh/sshd_config

Make sure that this line exist in the file

X11Forwarding yes

Make sure that there is no hash (#) before the line since it will then be regarded as a comment and not a setting. Now we need to make the new setting take affect

/etc/init.d/ssh reload

Now we need to log out from Bubba by running exit twice. If you accidentally closes the terminal you can get it back by right clicking the Cygwin/X icon in the task-bar and chose Application->xterm.

Now we can login again but this time we should add the flag -Y to the ssh command

ssh -Y USER@IPADDRESS

You should now be able to run graphical applications on the Bubba and they should show up in the Windows PC, test this by running the xterm command.

Now you only need to install some greate gui application on the Bubba so you have something to display on the Windows PC