This is a discussion on Run remote X applications over network using ssh within the Getting started tutorials forums, part of the Linux Getting Started category; This small howto guides you to run remote X applications over network using ssh. Introduction The X windows system created ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
||||
|
This small howto guides you to run remote X applications over network using ssh.
Introduction The X windows system created by X consortium www.X.org
What is X server? X-server -> Talks with your hardware (VGA card, mouse, monitor etc) => It provides the screen (or display) and manages the resources. For more info on X Window System and X client-server model and network transparency visit http://en.wikipedia.org/wiki/X_server X-Client -> Uses the display/screen provided by X-Server to display GUI/Application. It does not care how mouse or vga card works. For example you can run X application from another computer. All you need is to setup correct DISPLAY variable. Our demo setup with two computers: debian-server IP: 192.168.1.1 Suse-Linux (Laptop) IP: 192.168.1.11 Now you would like to redirect output of laptop to server. Please note that X works on almost all UNIX like operating systems like FreeBSD, HP/UX, Solaris, Linux etc. So the commands remains same for all variant of UNIX OS. 1) Login to Debian Linux server Code:
xhosts 192.168.1.11 2) Login to Suse-Laptop and run program on Debain Linux Code:
export DISPLAY=192.168.1.1:0 xeyes & Secure login over ssh i.e. forward X over ssh SSH server has built in support to run X application remotely. Traffic between suse and debian system remains encrypted. 1) Make sure XForwarding option is on Login to debian server, open /etc/ssh/sshd_config using text editor such as vi/vim: Code:
vi /etc/ssh/sshd_config Code:
X11Forwarding yes Code:
/etc/init.d/ssh restart Code:
xhosts 192.168.1.11 Code:
export DISPLAY=192.168.1.1:0 ssh -X user@192.168.1.1 oowriter ssh -X user@192.168.1.1 xeyes This is my first small tutorial; please feel to comment back or to add your own stuff to it.
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Network Diagram | kasimani | Computer Networking and Internet/broadband | 4 | 06-19-2008 07:21 AM |
| How to use two ISP in same network | satishap | Getting started tutorials | 2 | 03-24-2008 10:58 PM |
| network message | anharikrishna | Networking, Firewalls and Security | 1 | 09-06-2007 04:02 PM |
| Ubuntu: Issue accessing any System applications | hightech | Linux software | 4 | 01-29-2007 10:56 AM |
| Network Monitoring | puppen | Linux software | 2 | 05-11-2006 12:01 AM |