maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Using VNC Viewer Over an SSH Tunnel [Step-By-Step] (https://talk.maemo.org/showthread.php?t=30976)

JayOnThaBeat 2009-08-26 00:37

Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Getting VNC set up through an SSH Tunnel between your N8x0 (possibly 770) and your MS Windows PC!


Disclaimer:
If you are not comfortable with altering settings on your pc or using the terminal on your tablet, turn away now.

Note:
I use Windows as my primary OS. Much of this should be adaptable to Linux. (If you use Linux as your primary OS, you're already pretty smart, right? ;))


FYI:
VNC allows you to remotely control a remote PC, provided you have the proper credentials.

SSH is a secure shell that allows you an encrypted connection.

VNC alone has no encryption, and is therefore a security risk. By operating thru an SSH tunnel, you provide encryption to your VNC connection.



The first 3 parts will all be done on your pc.





|-1-| Setting Up a SSH Server on your Windows PC |-1-|


Re: VNC Viewer: Not necessary, but is the only way to establish an SSH tunnel.

Re: SSHFS remote drive mounting: Necessary.


a.
Install Copssh
http://sourceforge.net/projects/sere...r.zip/download

This is all pretty straightforward.

During the process it will create a user account. DO NOT delete this account. (I did, then the service stopped working, so I had to reinstall ... :()


b. Activate a user account.

Go over to the Start Menu, and in the Copssh folder, there will be an option to "Activate User."

You can choose any account on the computer. Of course, to really get that great remote usage feeling, you're gonna want to activate your windows account.

MAKE SURE YOU HAVE A PASSWORD ON THE ACCOUNT YOU ACTIVATE!!!

After you select the options for activation (I just leave them as they are), it will prompt you to set a 10 - 30 character passphrase. What you want to do, for awesome security, is open notepad, and type 30 random characters (numbers, letters, #@$ type things, spaces) all mixed up then, copy it and paste it twice into the two boxes. You will never need to remember the passphrase, but the crazier it is, the more secure your tunnel will be (at least, i think.. you might want to save the notepad file just in case... somewhere secure of course, like on a flash drive).

Copssh runs as a service in the background, so the only way to tell if it's running is to use it (after all steps) or run services.msc (which isn't necessary... just assume its running until something leads you to believe otherwise.)


c.
Edit Copssh config files
It's just two strings in two files, so relax :)

Navigate explorer to the install directory (Program Files\ICW\ by default). Then open the etc directory.

Open file ssh_config in a text editor (notepad does NOT handle these files well...)

(I personally prefer PSPad ( http://www.brothersoft.com/download-...tor-24977.html ) It seems to work much better AND it doesn't have weird incompatibilities like notepad does.)

One of the first lines under the comments should look like
Code:

#Port 22
At this point, pick a random 4 digit port number... anything, really (well mostly). Let's say we pick 2222.

You want to make that line read
Code:

Port 2222
Now save the file, and exit your text editor.

Now, open sshd_config.

Again, find the line
Code:

#Port 22
and change it to
Code:

Port 2222
Now, save that file and exit.

The reason I suggest to change the port, is because port 22 is the default, and if anyone is going to try to get into your system, that's one of the first places they will start.

NOTE: When I refer to Port 2222 in the rest of this guide, I will be referring to that port.




|-2-| Setting up a VNC Server |-2-|


Re: VNC Viewer: Duh! Yes, absolutely necessary.


The three servers I have found are UltraVNC, TightVNC, and RealVNC. They all seem to perform the same functions, it's just a matter of preference and compatibility.

UltraVNC: http://www.uvnc.com/download/1065/1065full.html

TightVNC: http://www.tightvnc.com/download.php
TightVNC mirror driver: http://www.demoforge.com/dfmirage.htm

RealVNC: http://www.realvnc.com/cgi-bin/download.cgi

The following are instructions in regards to UltraVNC.

This is the one that I use, because it seems to be the only one of the three that seems to be fully compatible with VIsta 64bit. By that, I mean that it runs as a service correctly, which means that it loads even if you are not logged in.

It is best to play around with the options once installed (to test what works best for you), but the important ones to set are

Admin Preferences dialog:
  • VNC Password,
  • [x] Allow Loopback Connections
Server Properties Page dialog:
  • Video Hook Driver

Also, you definitely want to make sure your Video Hook (mirror) Driver is working properly. I believe on most systems, it should work by default, but if it isn't, you can download an alternative one (for UltraVNC specifically) from http://sc.uvnc.com/105/drivers.zip .


Want to be very secure?

If you are planning to use VNC over an SSH tunnel (which I highly recommend), you can set UltraVNC to only accept incoming connections from your tablet.

In explorer, goto program files\Ultravnc and edit ultravnc.ini. There will be a line that says
Code:

AuthHosts=
Change it to read
Code:

AuthHosts=-:+127.0.0.1
This will allow only your tablet access to your pc. (Well, technically anyone setup to access your pc that can use localhost:1 to login... for most of you, this is just your tablet).

I did not realize how much of an issue this was until suddenly I received an incoming access request from some random IP address. I had the box come up with a 10 second delay, and then auto accept.... that would not have been good.

If you have your settings set how I have them, I can't imagine why it wouldn't work (that's not to say that it will work...)


If you choose to use another VNC server program, I would imagine you can adapt the above settings to work in that program. The important thing is to find one that works well for you. (I could not really test them properly because VIsta64 = poop).




|-3-| Setting Up a Local Static IP and Port-Forwarding |-3-|

Re: Everything: Necessary!

NOTE:

I have a router. I would imagine that most out there do to. Even if not, you should still be able to adapt my strategy to fit your circumstance. Hopefully..........


a.
Setting Up a Local Static-IP
The purpose of this step is to guarantee that your router always assigns the same local IP address to your PC. Otherwise, the Port-Forwarding (later...) will stop working.

Here is a really great guide for this. (I followed the Vista one for obvious reasons...)

For Vista Users
For XP Users

Finished? Awesome!

Here's a rundown of what you just did (for those of you reading ahead ;)

You told your network adapter that rather than getting a local IP address automatically, it would demand the same one every time it connects.

For example's sake (for the rest of this guide) we will call the new static ip address 192.168.1.10.

Again, yours will probably be different, but whenever I refer to that IP above (192.168.1.10), I am talking about your new local static IP.


b.
Port-Forwarding
For most of us, our good friends over at PortForward. com have made this fairly easy to get started.

(remember your new local static ip address, and your VNC port... you will need it soon!)

First, visit PortForward.com, and find your router on the list.

Then, a big advertisement page will pop up. Simply, click "Skip this ad" at the top.

You will be brought to a page where it asks you to select the program you are trying to set up. TightVNC is on the list. (Its settings seem to be universal for VNC servers).

From here, it gives you illustrated instructions on how to set the program up (note that the instructions it gave me told me to open 3 ports, whereas I only really needed to set up port 5900 . Of course, results may vary.

Remember 192.168.1.10? The local static-ip you set up? You're gonna need that during this process!


NOTE:
For anyone having issues on this part (maybe your router wasn't on the list...) this is the bottom line of this section:

You are telling your router that trafftic coming in to your.ip.add.ress:2222 and your.ip.add.ress:5900 should point to your local static-ip (192.168.1.10 in my examples). So if you can figure it out how to make it do that, you are all good.


***
So, by now you should have just set up forwarding for VNC. Now, go back and do the same thing for the ssh port [port 2222 (or whichever you chose) from earlier].


c.
Opening the Ports on your Firewall
I use Windows Firewall, and all I had to do was go to exceptions, and add ports 2222 (tcp) 5900 (tcp)


Now, reboot your machine!


If all has gone well, your PC is set up!




|-4-| Setting Up Your Tablet |-4-|

This assumes you are establishing the SSH tunnel. IF NOT, then skip the parts regarding SSH and Personal Menu.


a.
Install VNC Viewer, openSSH, and Personal Menu on your tablet.

Should all be in Extras.


b.
Set up an openSSH Personal Menu Entry

I just want to preface this part by saying you guys are lucky that you don't have to go thru the hell I went thru figuring this out.

Quote:

Originally Posted by Addison
I've read through your posts, tried to comprehend your troubles, and even watched daily as you nearly had a mental breakdown because of it. *lol*

So, it's simple now!


Feel free to thank me! (stskeeps isn't the only Karma-whore ;))

1. In personal menu, goto Create a new command (the +).

2. Name it. (SSH Tunnel or something)

3. command to execute =
Code:

ssh -L5901:127.0.0.1:5900 your.ip.add.ress -lWinUsername -p 2222 -v
So lemme break this part down

  • ssh = the command, duh!
  • -L5901:127.0.0.1:5900 = ...well, i'm still fuzzy... sufficed to say, you base the 5901 and 5900 off of the port you picked for tightvnc. so, if you stuck with 5900, just keep this the way it is. If you picked, say 3000, u'd put 3001 and 3000... get it?
  • -lWinUsername = (that's a lowercase L)... for example, I put -lJay... get it?
  • -p 2222 = specifies the port to use. thats the port we set for CopSSH on the pc.
  • -v = thats just for verbose mode, so you can see what it's doing.
Then, check "Run in terminal", select your icon, and hit save.


***
NOTE that this all assumes highspeed connections. If you are connecting over a super slow DUN connection (like I am also doing over my Boost Phone, in addition to wifi) then create a second PM entry, and repeat all the steps above, adding -C to the command string.
***

Now, to test it!

Go ahead, and run your SSH Tunnel PM entry.

It should prompt you for your windows password. Give it.

Also, at some point, it will ask you if you are sure you want to connect. Type YES of course!

If everything works correctly, u should get a linux prompt. This means, you are now connected via an ssh tunnel to your home pc!


Now, open VNC Viewer.


Hit the connect button (the little connected plug).

For VNC server, enter localhost:1

If all is configured properly, you will be prompted for a password. This is the password set up in TightVNC, the one that allows mouse and keyboard control.

Once that is entered, you will see your desktop!

Ta-Da!




|-5-| Optional Stuff |-5-|


A) Access your PC Files thru the Tablet's Filemanager (by qole)

1. Install sshfs

In a terminal:
Code:

sudo apt-get install sshfs
2. Follow THESE instructions!




B) Set up a free DynDNS.com account


Most people do not have STATIC IP addresses assigned to them by their ISP. That means that every so often, your external IP address changes.

You can use this service to create a [FREE] customized url that will redirect to your currently assigned IP address.

By installing the accompanying software, your DynDNS account is updated whenever your IP address changes.

In short, you can replace the your.ip.add.ress in the SSH tunnel command string with your new custom url and never have to worry about changing it.



C) Create batch files on your PC desktop to easily adjust screen resolution


1. Install 12noon Display Changer ( http://www.12noon.com/files/dc-setup.exe )

2. Create two different batch files on your desktop.

[NOTE: my executable is dc64cmd.exe b/c I am using Vista 64bit. Adjust this accordingly.]

The first, called tabletres.bat:
Code:

@echo off
cd "\progra~1\12noon Display Changer"
dc64cmd -width=720 -height=480 -depth=16

The 720x480 fits nicely on the tablet screen.

The other, called pcres.bat:
Code:

@echo off
cd "\progra~1\12noon Display Changer"
dc64cmd -width=1024 -height=768 -depth=32

I use 1024x768 default, adjust accordingly. This is to switch back to after u run tabletres.bat.

These are much easier to access than going thru display properties.


-=*-=*-=*-*=-*=*-=*-*=-**=-*=-*=*-*=-*=*-=*-*=*-=*-*=-*=*-=



Unfortunately, beyond what I have posted in this guide, I don't know what good I will be with troubleshooting. I barely understand it myself.

But, ask anyway, and I'm sure others will answer (others answering my pleas helped me get it working!).

Also, this is the thread that I referenced a lot during my attempts to get it to work (although I didn't get a lot of it... but I'm sure it's just me ;))



Thanks to luca, qwerty12, qole, Addison and anyone else who helped me get this together!


Addison 2009-08-26 02:31

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Witness!!!!!!!!!!!!!! :D


Dude that is huge!

Big time thanks chief!

You're a major life saver!

JayOnThaBeat 2009-08-26 05:59

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
I just hope it works.

Somebody post back and tell me they got it working or what went wrong.

qole 2009-08-26 06:16

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Thanks so much for typing that up!

Another VNC server / viewer for Windows is RealVNC. I prefer it because it handles the startup stuff for you (you don't have to put anything in your start folder) and runs as a service, so it will let you log in remotely.

But I use WinXP, I can't guarantee it works with later versions of Windows...

JayOnThaBeat 2009-08-26 06:42

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by qole (Post 315556)
Thanks so much for typing that up!

Another VNC server / viewer for Windows is RealVNC. I prefer it because it handles the startup stuff for you (you don't have to put anything in your start folder) and runs as a service, so it will let you log in remotely.

But I use WinXP, I can't guarantee it works with later versions of Windows...

Ya, I tried RealVNC first actually, but I couldn't get it configured correctly (couldn't login from the network, which I could do from the beginning with TightVNC).

Actually, there is an option to run TightVNC as a service, but I am not able to log in without the server program already running, so imo it defeats the purpose. (unless I'm doing something wrong, which is very possible.)

You mean you can have the windows user account logged out, then log into it with RealVNC? Interesting....

///EDIT
I'm looking into this. Update possibly in the near future,

pinguino89 2009-08-26 09:59

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
I tried it, and , as rDesktop, does not work if i connect via bluetooth or on hotspot other-than-mine... ports are forwarded...i dunno what i can do ç_ç

dkwatts 2009-08-26 15:04

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Use portableapps TightVNC Portable for a VNC solution that limits what gets written to your Windows registry.

JayOnThaBeat 2009-08-26 16:52

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by pinguino89 (Post 315590)
I tried it, and , as rDesktop, does not work if i connect via bluetooth or on hotspot other-than-mine... ports are forwarded...i dunno what i can do ç_ç

That is odd.

I can even connect from my super slow Boost Mobile 19.9kbps DUN hookup.

I wish I was more of a troubleshooter. Are you able to establish the SSH tunnel?

qole 2009-08-26 17:29

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by JayOnThaBeat (Post 315562)
You mean you can have the windows user account logged out, then log into it with RealVNC? Interesting....

Yes, when my XP server reboots due to an "important update" (that Microsoft pushes onto me) reboots the computer without my permission, I can use RealVNC to log back in.

Another cool thing you can do once you get an SSH server onto your Windows computer: you can use sshfs on your tablet to map Windows file folders onto your tablet. So anywhere you can get WiFi (or, if you tether to a phone, anywhere you can get service) you can access your files as though they were on the tablet...

JayOnThaBeat 2009-08-26 17:51

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
OK, so I've been peepin the scene (as much of a scene as there is for VNC server software) and I've drawn 3 conclusions.

1. TightVNC seems to get screen data the fastest, but the "run as a service" aspect of it doesn't appear to work in vista. The service starts, and runs, but no VNC logins are possible and the service helper application never starts. Therefore, of course, you have to have your windows account logged in to use it (at least in vista).

2. RealVNC is probably awesome. Unfortunately, no vista support, so there's not much I can do.

3. UltraVNC appears to be the best alternative, because like RealVNC, it runs as a service (and actually works). The screen refresh seems a tad slower than TightVNC, but I'll take that in exchange for being able to login to my windows account.

<updating the guide to add UltraVNC as a server choice>

JayOnThaBeat 2009-08-26 18:01

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by qole (Post 315732)
Another cool thing you can do once you get an SSH server onto your Windows computer: you can use sshfs on your tablet to map Windows file folders onto your tablet. So anywhere you can get WiFi (or, if you tether to a phone, anywhere you can get service) you can access your files as though they were on the tablet...

Ok, I got sshfs installed, now I am stuck
Code:

sshfs [user@]host:[dir] mountpoint [options]
I'm not quite sure about everything after user@host.

Care to help a brotha out?:confused:

qole 2009-08-26 18:24

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
You have to ssh in to your server and find the directory you want. On my Windows machine running cygwin and openssh (this sounds like what copssh is, too), there's a directory called /cygdrive that has all of the server's drives under it. So if you want the Windows machine's C: drive, your directory would be /cygdrive/c/ ... So, if you want to map your C: drive, your first part looks like:

Code:

sudo sshfs WinUsername@your.ip.add.ress:/cygdrive/c/
You need to be root, so I'm using "sudo" in the example above. You need sudser or easy-debian installed to use that.

As for the tablet's mountpoint, you want somewhere that is visible to the File Manager, so that means somewhere under /home/user/MyDocs ... I have made a directory called "lan" that has all my shares in it. So, you have to first make the directory on your tablet:

Code:

mkdir -p /home/user/MyDocs/lan/c
Now you have the mountpoint. Lastly, you need the options. In order to allow everyone to use the shared directory, you have to add "-o allow_other" and if you have a custom port, you add it too.

Here's the final command for our example (using the stuff you've put in your tutorial):

Code:

sudo sshfs WinUsername@your.ip.add.ress:/cygdrive/c/ /home/user/MyDocs/lan/c -o allow_other -p 2222
Now you should be able to open your file manager on the tablet, go into "lan" and then "c" and see your Windows machine's C: drive.

JayOnThaBeat 2009-08-26 18:34

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Snap man!

U are, by far, the shi t.

That was awesome.. I need a smoke now!

JayOnThaBeat 2009-08-26 19:05

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
@qole

I linked to that post in the guide (and full credit given, of course).

pinguino89 2009-08-26 19:44

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
it still gives me "could not connect to the server"....if i use the hom connection (the same of the pc) it's all ok, with ssh, without and with static ip or dynamic...
if I use bluetooth and my nokia e51, nothing...still doesn't connect...

JayOnThaBeat 2009-08-26 21:13

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by pinguino89 (Post 315814)
it still gives me "could not connect to the server"....if i use the hom connection (the same of the pc) it's all ok, with ssh, without and with static ip or dynamic...
if I use bluetooth and my nokia e51, nothing...still doesn't connect...

So... if I get this right...

1. You can establish the tunnel on wifi and over your phone via BT.
2. You can use VNC viewer properly using localhost:1 over wifi.

3. However, when you try to use VNC Viewer while tethered to your phone, it cannot connect?

clarity is key....

JayOnThaBeat 2009-08-26 21:25

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Well, I'm pretty sure I figured out my speed issues.

Apparently you need to have a video hook driver, or a mirror driver, or something to that effect loaded up to make the screen captures more efficient. Well, apparently the drivers that these VNC servers try to load are not 64bit compatible (shocking :-/).

I have already tried TightVNC, RealVNC, and UltraVNC on Vista64 and XP 64.

The only one that is able to load up its hooks (or mirror) driver is TightVNC, and that's the one that has issues with being logged out of windows.

So, I'm going to install XP 32-bit, triple-boot into that, and report back.

Any thoughts / suggestions in the meanwhile would be superb.

JayOnThaBeat 2009-08-27 01:27

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
So it turns out that my computer will not allow me to install a 32-bit OS. I tried XP 32 bit and got a BSOD and I tried Vista 32 bit that just gave me some kind of text error msg (too distraught to remember....).

Could it be that I have some sort of supercomputer, sent from the future?

(It is an Acer after all...... :-/)

I guess I'm stuck between a fast VNC server w/o a working service and a relatively slow VNC server that I can log into windows with.

Things could be worse I suppose.

JayOnThaBeat 2009-08-27 02:43

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Muah ha ha!

I've settled on UltraVNC cuz I just figured out how to block all hosts except 127.0.0.1 from gaining access to it.

(I found this to be a necessity when I got a random request for access (thank god I turned that on ;)))

<Adding to the guide>

///EDIT
<ADDED!>

qole 2009-08-27 06:22

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by JayOnThaBeat (Post 315998)
... I got a random request for access (thank god I turned that on ;))) ...

And I had just about figured out your password, too!

JayOnThaBeat 2009-08-27 06:25

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Well it was good timing, that's for sure. I would've never figured out restricting hosts thing otherwise.

qole 2009-08-27 06:35

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
You should definitely block the VNC ports (580x & 590x) from the Internet with your router. Otherwise, it is nice to be able to use VNC without SSH within your home LAN. If you haven't restricted access from other local computers, you can even use a Java capable browser and just point your browser at http://server.ip.address:5800 and log in from the browser. At least this works with RealVNC.

JayOnThaBeat 2009-08-27 06:40

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by qole (Post 316031)
You should definitely block the VNC ports from the Internet with your router. Otherwise, it is nice to be able to use VNC without SSH within your home LAN. If you haven't restricted access from other local computers, you can even use a Java capable browser and just point your browser at http://server.ip.address:5800 and log in from the browser. At least this works with RealVNC.

Oh, I'm not taking any chances!

I've got UltraVNC to only accept incoming requests from 127.0.0.1.

Actually tho, I'm running at pretty high speed over here, so the internet interface speed is about the same as the LAN (at least thru VNC).

||EDIT

I don't even have the port 5800 option enabled. I'm all about the VNC client. I would only use this stuff with my tablet anyway, since my laptop died some time ago (ironically enough which is what led me to discover the N810.)

You can't browse no interwebs on a psp!

Addison 2009-08-31 18:40

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Many thanks for creating this thread!

I got it fully functional yesterday. :D

Your lower resolution display setting isn't supported on my computer so I have to go all the way down to 640x480. Oh well. Is there any other Windows program that might feature an 800x480 for a display option?

Anyway, I was wondering what some of you guys are using this for? I have no imagination on what to do with this besides running my UptoDate program. :)

JayOnThaBeat 2009-08-31 18:49

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by Addison (Post 319020)
Many thanks for creating this thread!

I got it fully functional yesterday. :D

Your lower resolution display setting isn't supported on my computer so I have to go all the way down to 640x480. Oh well. Is there any other Windows program that might feature an 800x480 for a display option?

Anyway, I was wondering what some of you guys are using this for? I have no imagination on what to do with this besides running my UptoDate program. :)

The closest resolution I can get is 720x480... I'm sure it varies by graphics card.



I was out and about last week when I noticed <movie that is totally public domain> was now out on dvd. I had totally forgotten about this movie, so I wanted to make sure that it didn't slip my mind before I got home.

So, I busted out my N810, which has a constant data stream (slow-as-sh*t as it may be) from my Boost Mobile phone, and proceded to establish an ssh tunnel with my pc (with compression enabled, b/c it was over DUN) and log in with VNC viewer.

I then ran firefox, opened <torrent site>, and proceded to download <movie that is surely public domain> with <torrent downloading program>.

And, sure enough, by the time I got home, I had my copy of <public domain movie> waiting for me on my HDD.

I did all that with my N810 inside of a Target.

[Granted, it takes a lot of patience operating over a 19.9kbps connection... but it's better than nothing!]

Addison 2009-08-31 18:56

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
That's a great idea!

Though your <public domain> reference is suspect. *lol*

Thanks for the great suggestion!

JayOnThaBeat 2009-08-31 19:01

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by Addison (Post 319032)
That's a great idea!

Though your <public domain> reference is suspect. *lol*

Thanks for the great suggestion!

To clarify, the movie was Santa Claus Conquers The Martians








;)

Addison 2009-08-31 19:36

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

To clarify, the movie was Santa Claus Conquers The Martians
Okay. Now you're just compensating! *lol*

qole 2009-08-31 22:35

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by Addison (Post 319020)
Anyway, I was wondering what some of you guys are using this for?

When my wife calls me at work and tells me one of the computers or apps isn't working right, I can remotely see her screen on my tablet and help her figure it out.

I have a PC running an open-source media center hooked up to my TV. At a party on the weekend, when I needed to play Barrett's Privateers for the traditional drunken singalong portion of the party, I used my tablet's VNC viewer to start the song playing while I was standing on the front porch with the rest of the Midnight Choir ;)

Addison 2009-09-01 03:01

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Didn't see this mentioned before in the thread unless I missed it.

TightVNC plus Mirage Driver for TightVNC is instant win!
Recommended Add-ons

* To achieve best performance under Windows 2000, Windows XP and above, download and install DFMirage mirror display driver (free download). TightVNC Server can use this driver to detect screen updates and grab pixel data in a very efficient way.



Without it, playing Solitaire on the computer the cards would streak and stain the screen so I basically was looking at desktop, graphic mush during a game.

Running Nester (NES Emulator) wouldn't even display on the Tablet's screen.

With http://www.demoforge.com/dfmirage.htm installed, zero streaking in Solitaire, faster screen updates, and running a Nintendo game in Nester looks practically perfect. :)

Only downside is that when you first log in, it tends to not display the entire screen for some reason. So I just open and close a full screen web browser or text file and that does the trick.

JayOnThaBeat 2009-09-01 03:05

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
The downside to TightVNC is that you can't use it to log in to Windows.

I only use VNC to perform functions on my pc, ie download something or email myself a file, etc.

Mostly, I like to know that my PC isn't sitting there logged in while I'm away.

In any case, very cool, good find.

|||EDIT
<Sigh>
Well, I just tried it on my Vista64 machine........

I tried to install it by itself (to see if it works with UltraVNC), and I got a crazy error.

I re-installed TightVNC, then tried to install it again, and got the same crazy error.

...strange, that it says it's Vista64 compatible.

Oh, well.

Addison 2009-09-01 03:27

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Tight VNC let's me log in just fine so I'm not sure what you mean by this.

When I fire up VNC Viewer on the tablet, I'm greeted to my Windows Log in Screen.

I type my password and then it loads up to the Desktop.

With Mirage Driver for TightVNC, it actually played Chrono Trigger on the desktop extremely well!

All I did was double clicked on that install file and it added a new video device driver in my Display Adapter under Device Manager. I'm using Windows XP by the way.

Total bummer it's not working on your end. Hopefully you can problem solve the trouble either by reading their homepage or by asking around. The difference is tremendously considerable! You'll be absolutely stoked if you can get it working!

Well, I'm going to install my CD game Phantom of the Opera on my Desktop tomorrow which requires a 30,000 cycle speed in Dosbox to play correctly. I'll post back on how well I got it running through VNC Viewer.

JayOnThaBeat 2009-09-01 03:28

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by Addison (Post 319267)
Didn't see this mentioned before in the thread unless I missed it.

TightVNC plus Mirage Driver for TightVNC is instant win!
Recommended Add-ons

Hey, but doesn't TightVNC already come with a mirror video driver? I know it didn't work for me, but I assumed that was because I'm running stupid 64bit Vista..... I'm pretty sure I saw an option for it...........

Addison 2009-09-01 03:30

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Read the very bottom of this page:
Tight VNC

Doesn't look like it comes with the add on but I could be wrong.

Addison 2009-09-01 03:39

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
I need to head off to bed for now.

About not being able to log in to Windows, ukki actually helped me set up the entire application and didn't follow your instructions that you posted.

Not sure if this will help you, since I don't know what it means, but I'll post it anyway.

http://img136.imageshack.us/img136/8061/tight.png

Cheers!

JayOnThaBeat 2009-09-01 03:43

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by Addison (Post 319287)
I need to head off to bed for now.

About not being able to log in to Windows, ukki actually helped me set up the entire application and didn't follow your instructions that you posted.

:confused::confused::confused::confused::confused:

umm.... I don't get it.

UltraVNC lets me login via the windows login screen, whereas with TightVNC, I cannot. I get disconnected outside of the windows environment, even tho I have it running as a service.

Addison 2009-09-01 03:59

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Sorry, I'm a bit of a newb.

We are talking about this log in screen, correct?
http://img525.imageshack.us/img525/8...9083123523.png

If I find time tomorrow, I'll send you some screenshots of my router settings and maybe that will help.

JayOnThaBeat 2009-09-01 04:00

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by Addison (Post 319280)
Tight VNC let's me log in just fine so I'm not sure what you mean by this.

When I fire up VNC Viewer on the tablet, I'm greeted to my Windows Log in Screen.

I type my password and then it loads up to the Desktop.

With Mirage Driver for TightVNC, it actually played Chrono Trigger on the desktop extremely well!

All I did was double clicked on that install file and it added a new video device driver in my Display Adapter under Device Manager. I'm using Windows XP by the way.

Total bummer it's not working on your end. Hopefully you can problem solve the trouble either by reading their homepage or by asking around. The difference is tremendously considerable! You'll be absolutely stoked if you can get it working!

Well, I'm going to install my CD game Phantom of the Opera on my Desktop tomorrow which requires a 30,000 cycle speed in Dosbox to play correctly. I'll post back on how well I got it running through VNC Viewer.

It's a problem with the service. It runs as a service, but then doesn't work outside of the windows environment.

TightVNC service + vista64 = :eek:

whereas, the ultravnc service works fine. and as i've said previously, I am unable to install a 32 bit windows on this pc.

JayOnThaBeat 2009-09-01 04:02

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by Addison (Post 319293)
Sorry, I'm a bit of a newb.

We are talking about this log in screen, correct?
http://img525.imageshack.us/img525/8...9083123523.png

If I find time tomorrow, I'll send you some screenshots of my router settings and maybe that will help.

My router settings are fine. If they weren't, it wouldn't work with UltraVNC.

JayOnThaBeat 2009-09-01 04:32

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Ah HA!

There's an update coming to the main post, involving a multi-windows-platform WORKING mirror driver for UltraVNC (I'm also going to work in everything we've learned here).


All times are GMT. The time now is 19:45.

vBulletin® Version 3.8.8