A closer look at x11vnc



I’ve got to say, one of the things I really like about linux are the myriad of options for remotely administering a system. SSH is the one I use the most, but for the graphical you have x (especially on the LAN), nxserver (which is a compressed and optionally encrypted wrapper of the X protocol….), vnc can be used, although as I’ve noted in the prior articles one problem with either nxserver, X or vnc is that you can’t by default connect to a running X session. x0rfbserver CAN, but only if a user is logged in (as far as I know….) I found an interesting trick with x11vnc that let’s you run it even if the system is at the greeter. (the login screen for X).


This was kind of neat because it would save me a trip to the other end of the house a few times…. anyway…. I just downloaded my x11vnc binary to the machine using ssh…. (so, you DO have to have ssh access to the machine, then wget the x11vnc binary that you’ve precompiled, or install x11vnc on the system/compile from source, apt-get, urpmi, whatever works for you….) I should note there are a variety of precompiled binaries on the x11vnc site.

Anyway, once you’ve got the binary downloaded (and chmod +x so you can run it….) you can run it like this…. x11vnc -desktop :0 …. but wait… there’s a problem – YOU don’t own the x display at this point, it’s still the greeter.

So, you’re told that you need to add -auth and include the path to the auth file…. how to find this magic file? The help gives a hint…. “ps wwaux | grep auth”, so in my case it was at /var/run/xauth/A:0-IJeAuS (changes each time you restart X, or re-visit the greeter…) and you really ought to be root, so you could (at least sudo….) su and then start the x11vnc server, or…

sudo x11vnc -desktop :0 -auth /var/run/xauth/A:0-IJeAuS

(again the authfile changes each time the server’s restarted so use the ps wwaux | grep auth above to find it…)

Then you can connect with a viewer, or if you have a viewer -listening already…. just add -connect address.of.listening.pc and your looking at THE greeter for the active display (not A greeter served up virtually). This could be useful for remote tutoring sessions where you wanted to illustrate EVERYTHING from logging in, etc… OR, let’s say you want to get some work done on your home PC, but…. don’t think you’ll finish everything up and have time to close the session only to restart later, this way, you can log in remotely, when you come back the work should still be up on the desktop (assuming no power interruptions….) the next time you connect or sit down. And what about security, what if someone’s sitting watching what I do remotely. Depending on the circumstance (tutorial/tech support) that’s fine, but if it’s desktop work, web browsing, etc… not fine. It’s possible (I read there’s a patch for this) for x11vnc to switch on DPMS power saving on the monitor when it runs, which isn’t bullet proof OBVIOUSLY, but would be a discouragement of casual snooping. I think they discussed the idea of kicking the screensaver immediately if the power saving was awakened and then the remote vnc’er would know something was up. The bottom line is, if you’re concerned about people accessing your pc while you’re away, you really need to find a way to control physical access to it anyway. Because the same one that could be watching your remote web-browsing, could be booting up a knoppix disc and accessing the drive anyway….

Anyway, I thought the remote login on the REAL display was a neat plus which I’ve already made use of a couple times. I wish there were a way to do that in Windows without having to run vnc as a service (I seem to recall logging in on a few machines using vnc when I had it running as a service…) The big problem, is that I don’t LIKE the idea of leaving a vnc server running all the time when you only need it on occasion, which is one reason I like the Ultravnc SC idea, the “click when you need support idea” is very similar to something I had setup with tightvnc on an internal lan, where they all have an icon on the desktop that says “Allow remote administration”, when then would start a vnc server, I’d ssh in through the gateway, and do an vncviewer -via connection (connect via the ssh gateway.) The advantage there is that the username/password info is encrypted.

Related Posts

Blog Traffic Exchange Related Posts
  • Microsoft Genuine Advantage phones home daily Microsoft says they need to do a better job about disclosing this, but the Genuine Advantage tool contacts Microsoft daily. It doesn't do this to track your browsing or downloading habits, but to check and see if it's ok that it's still running. According to this article, they have some......
  • Ultravnc for remote computer support A little while back I talked some about TightVNC which for a long time has been my favorite implementation of a remote framebuffer, or remote desktop viewing protocol known as VNC (Virtual Network Computing.) The original VNC (now realvnc) came out of AT&T research labs in the UK and has......
  • Windows Vista Beta notes... What follows are some notes that I've taken on the Vista beta that I installed into a VM. I've got a lot of toying around yet to do with it (and at least one Internet Explorer bug I want to mention.) But... I'll go ahead and post this. [warning -......
Blog Traffic Exchange Related Websites
  • How Are Your Lifestyle Choices Impacting Your Health? Quantitative Feedback Over the years, the way I eat has gradually changed. Growing up, it was definitely 'meat, potatoes, vegetables', with milk and cereal for breakfast. => As a young adult, the milk and cereal disappeared, to be replaced by (non-dairy) homemade fruit smoothies - a change that relieved the lower-abdominal......
  • Here are the 3 Steps to Take to Fix Registry Errors We’ve researched ever major registry repair tool on the market, and our top recommendation is Registry Mechanic. To read our product report, which includes unbiased consumer feedback, visit Registry Repair Tool Reports Every Windows-based PC has what is known as the Windows Registry; a large database containing information about every......
  • New Google Operating System Confirmed There have long been rumors of a Google Operating system. Last night those rumors were finally laid to rest with the announcement that a new Google operating system is in the works. If you ask me, the Google Chrome OS will really be nothing more than a Linux distribution. It......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site