Contributed by merdely on from the hello-computer dept.
How do you remote control the locally logged in X11 session (:0)? The standard VNC server sets up it's own display and gives you your own session on the remote box. x11vnc (in packages) allows you to remotely control the X display connected to the keyboard, monitor and mouse. Follow these steps:
- On the local box, install a vnc viewer:
sudo pkg_add tightvnc-viewer
- Connect to the remote server using ssh:
ssh -L 5900:localhost:5900 remotebox
- On the remote box, install x11vnc:
sudo pkg_add x11vnc
- On the remote box, run x11vnc:
x11vnc -display :0 -localhost
- On the local box, run vncviewer:
vncviewer -depth 8 -encodings hextile localhost:0
What stupid tricks do you know?
(Comments are closed)
By Anonymous Coward (24.37.242.64) on
Is there anything different about x11vnc vs doing XDM?
I also run XDM on my Soekris and WRAP boxes at times, but X isn't installed on those systems, works great too for when I need a GUI for certain things.
Comments
By Mike Erdely (merdely) on http://erdelynet.com/
AFAIK, using XDM isn't giving you remote control of the active desktop. Let me give you this scenario: You leave your home computer running with a webpage displayed. You're at the office and need to see something from that webpage. ssh, x11vnc, vncviewer and you can read what's on that web page.
It's also useful when helping someone with their computer remotely.
Comments
By Anonymous Coward (24.37.242.64) on
>
> AFAIK, using XDM isn't giving you remote control of the active desktop. Let me give you this scenario: You leave your home computer running with a webpage displayed. You're at the office and need to see something from that webpage. ssh, x11vnc, vncviewer and you can read what's on that web page.
>
> It's also useful when helping someone with their computer remotely.
>
Ohhhhh, nice! I have to try that.
By Todd T. Fries (todd) on http://todd.fries.net/
> XMing from my Windows box, works great (remotely, I'd tunnel
> over ssh) otherwise, I'm using X locally or ssh from X to my
> other boxes...
>
> Is there anything different about x11vnc vs doing XDM?
>
> I also run XDM on my Soekris and WRAP boxes at times, but X isn't
> installed on those systems, works great too for when I need a
> GUI for certain things.
Realize that if you're using xdm/xdmcp etc across the network you're
trusting your local network as you trust the admin(s) of your boxen.
Your passwords and keystrokes are in the clear for any misbehaving
box on your network to see.
Comments
By Anonymous Coward (24.37.242.64) on
> > XMing from my Windows box, works great (remotely, I'd tunnel
> > over ssh) otherwise, I'm using X locally or ssh from X to my
> > other boxes...
> >
> > Is there anything different about x11vnc vs doing XDM?
> >
> > I also run XDM on my Soekris and WRAP boxes at times, but X isn't
> > installed on those systems, works great too for when I need a
> > GUI for certain things.
>
> Realize that if you're using xdm/xdmcp etc across the network you're
> trusting your local network as you trust the admin(s) of your boxen.
> Your passwords and keystrokes are in the clear for any misbehaving
> box on your network to see.
True. But the only hacker internally, would be my wife as I do non-encrypted XDM/XDMCP on home LAN only, otherwise I use ssh or tunnel over ssh if at work or somewhere else. ;-)
By Joshua Gimer (140.226.197.139) on
vncviewer -via user@remotebox localhost:0
You will be prompted for the password of the user on remotebox and then the vnc password (if one is set.)
By Paul 'WEiRD' de Weerd (216.239.33.25) weerd@weirdnet.nl on http://www.weirdnet.nl/
Perhaps someone can look at updating the x11vnc port by the way, it's pretty old (0.6.2 where current development has it at 0.9.3)
Comments
By jirib (89.176.154.98) on
>
> Perhaps someone can look at updating the x11vnc port by the way, it's pretty old (0.6.2 where current development has it at 0.9.3)
x11vnc is ports is really old, current version has more features like ssl or java applet etc... with current feature one would not need port forwarding :)
By Mike Erdely (merdely) on http://erdelynet.com/
> pretty old (0.6.2 where current development has it at 0.9.3)
I've started working on updating the port. On two i386 systems, though, I've had it crash X when the client disconnects with no error message. Not every time, though. This makes troubleshooting with a remote system difficult. :)
-ME
Comments
By Anonymous Coward (24.37.242.64) on
> > pretty old (0.6.2 where current development has it at 0.9.3)
>
> I've started working on updating the port. On two i386 systems, though, I've had it crash X when the client disconnects with no error message. Not every time, though. This makes troubleshooting with a remote system difficult. :)
>
> -ME
Is there a way to help test/debug with or for you on my systems? I'd be willing to help if I can...
Comments
By Mike Erdely (merdely) on http://erdelynet.com/
> I'd be willing to help if I can...
http://marc.info/?l=openbsd-ports&m=119464723018381&w=2
By Anonymous Coward (121.218.48.158) on
Install x2x on the machine you want to control, then
on the machine with the mouse/keyboard, execute
ssh -X <other host> x2x -west -to :0.0
This will put the other machine on the left edge of your main machine.
By Bernd Schoeller (schoelle) bernd@fams.de on
By Anonymous Coward (74.216.6.17) on