LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2003, 01:11 AM   #1
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Rep: Reputation: 30
Exporting Display


Hi,
I have heard you can export the display of a linux box to remotely admin it via X as you would be sitting in front of the monitor at that box. I have two linux machines and was hoping to try that out what are the steps needed?
 
Old 10-14-2003, 02:43 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
You mean like VNC? You can also run X applications through SSH but it not exactly like sitting at the monitor.
 
Old 10-14-2003, 04:49 AM   #3
boby_george
LQ Newbie
 
Registered: Sep 2003
Distribution: all distributions
Posts: 7

Rep: Reputation: 0
Hi,
Yes you can monitor a linux box remotely either from another linux machine or from windows.
The procedure is
1)You need the machines to be on the network.
2)If connecting from windows have vnc , xwin32 or exceed installed or if it is linux have vnc installed on it.
3)for windows - start xwin32 ,exceed or vnc (whichever you installed)
4)logon to linux system using ssh and
export DISPLAY=x.x.x.x:0 (x.x.x.x - ip address of the client machine where xwin32 ,exceed or vnc is installed, 0 - display number set on the software)
run startkde or gnome-session
5)you will now find the linux desktop on your xwin32 ,exceed or vnc.
hope it helps.
bye,
boby
 
Old 10-14-2003, 08:09 AM   #4
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
It's quite simple dude, we harrass people at work by sending them xkills and dodgy images via vx all the time
  • xhost +hostname
  • ssh hostname
  • export DISPLAY:client_I_am_connecting_from:0
First you have to disable X's security feature that prevents this sort of thing.
"xhost +" will disable all Xhost security stuff, you can also "xhost +hostname" to allow only a specific host to send windows to your node, which is a good idea. This can be an IP or a hostname.

Secondly, you ssh to the target node. and do "export DISPLAY=x.x.x.x:0" where x.x.x.x is the IP of the machine that your connecting _FROM_. ie where you want the window to appear. the :0 is setting the display number it will send the window to on the node. if you only have one session of X, (and no doubt you do) then the number here should be 0. You can put a hostname here too if you want to, so long as it resolves to the intended machine.

Thats it! start something that would normally want to throw up a window, like mozilla or somthing, and enjoy

Now excuse me while I harass my co-workers with some pictures of Zena.

Last edited by fatgod; 10-14-2003 at 08:11 AM.
 
Old 10-14-2003, 01:31 PM   #5
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Original Poster
Rep: Reputation: 30
So I don't need vnc? fatgod mentioned nothing about it...
Also will the use of the display from a remote machine make the Xwindows for other users at that machine screw up (or is that where I would need to export to a display other than 0)?
 
Old 10-14-2003, 04:21 PM   #6
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Go forth and send X windows to your machines via the network...

Quote:
Originally posted by podollb
So I don't need vnc? fatgod mentioned nothing about it...


Nope you dont need VNC. VNC is cool for a great number of reasons, but you dont need it to export X windows to other machines. Do as I said earlier, I actually know what I'm talking about for once

Quote:

Also will the use of the display from a remote machine make the Xwindows for other users at that machine screw up (or is that where I would need to export to a display other than 0)?
No, other users will not notice.

X is a little strange You can run many instances of X servers on one machine, each X server (aka X Session) is assigned a screen number. so like mine at work is fatgod@some.where:53 So I have the 53rd X session on the machine some.where. I can export displays from other machines too and they just appear on my server. I literally use an X client on another machine to display windows on my server by setting the DISPLAY environment variable to some.where:53. It's quite normal behaviour for an X-Windows environment. VNC is basically the same thing but you dont need X-Windows to do it, you use VNC instead, people use it becasue it works accross a plethora of platforms.

So I suppose your more confused than ever now. Good then, just go and do
 
Old 10-14-2003, 04:32 PM   #7
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Original Poster
Rep: Reputation: 30
No you have not confused me, only enlightened me!
Thanks for your help it worked flawlessly...
 
Old 10-14-2003, 04:35 PM   #8
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Sweet
 
Old 10-26-2003, 09:21 PM   #9
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Original Poster
Rep: Reputation: 30
How about if I want to export everythign even X? So it would be simliar to what VNC does I think (which I could use I guess) but I was wondering if there was a way simliar to above to do that...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting display in Fedora 2 sebashkw Fedora 1 09-24-2005 06:16 PM
Troubles with exporting display ajcrm125 Linux - Networking 6 11-12-2004 06:34 AM
exporting display mendiratta Linux - Software 0 07-20-2004 07:01 AM
Exporting X Display belorion Linux - General 2 02-25-2004 04:16 AM
Need help: Issue when exporting the display alexesp Linux - General 0 09-17-2001 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration