'Remote Desktop' with SSH and VNC
I am sure that there are some HOWTO article or/and some threads talking what the title says. Had a google search before, but no luck.
So anyone would mind post some links about that? Thanks. P.S. 1) I read some SSH man pages, got some little ideas only. 2) I have infected by m$ virus that I would use the term 'Remote Desktop' here :P |
are you talking about forwarding x through an ssh tunnel?
|
|
if your talking about remote desktop connection to a windows xp professional machine, then download rdesktop, which is just like the windows remote desktop connection.
If you want to tunnel your X window through ssh, then "ssh -X -l username subdomain.domain.com |
Quote:
-u is an invalid option ;) |
Check out this thread, it might help:
http://www.linuxquestions.org/questi...hreadid=215973 |
Thank for your help netindustries. Still no luck.
Maybe I am ambitious.. Now I have trouble in just getting vncserver run. tsun@sKex:~/vnc-4.0-x86_linux$ ./vncserver You will require a password to access your desktops. tsun@sKex:~/vnc-4.0-x86_linux$ ps -aux | grep "vnc" -i tsun@sKex:~/vnc-4.0-x86_linux$ Any idea? |
Have you run vncpasswd yet?
|
Oh I did run that, but got fatal error when start vncserver.
Is there any HOWTO for me to setup VNC server step by step? I found one from realvnc.com, but it does not explain too much. tsun@sKex:~/vnc-4.0-x86_linux$ ./vncpasswd Password: Verify: tsun@sKex:~/vnc-4.0-x86_linux$ ./vncserver vncserver: couldn't find "Xvnc" on your PATH. tsun@sKex:~/vnc-4.0-x86_linux$ ./Xvnc Fatal server error: Server is already active for display 0 If this server is no longer running, remove /tmp/.X0-lock and start again. tsun@sKex:~/vnc-4.0-x86_linux$ THANKS! |
The problem seems to be in your PATH, but I seem to remember that building Xvnc was a separate step from the rest of the install.
Here is the README, if it didn't come with you package: TightVNC 1.2.9 Source Distribution for Unix platforms ===================================================== TightVNC is Copyright (C) 2001-2003 Constantin Kaplinsky. All Rights Reserved. VNC is Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. This software is distributed under the GNU General Public Licence as published by the Free Software Foundation. See the file LICENCE.TXT for the conditions under which this software is made available. VNC also contains code from other sources. See the Acknowledgements section below, and the individual files for details of the conditions under which they are made available. There are five programs here: vncviewer - this is the VNC viewer, or client, program for X. vncserver - this is a wrapper script which makes starting an X VNC server (i.e. desktop) more convenient. It is written in Perl, so to use the script you need that. vncpasswd - this program allows you to change the password used to access your X VNC desktops. The vncserver script uses this program when you first start a VNC server. vncconnect - this program tells a running instance of Xvnc to connect to a listening VNC viewer (normally the connection is made the other way round i.e. the viewer connects to Xvnc). Xvnc - this is the X VNC server - it is both an X server and a VNC server. You normally use the vncserver script to start Xvnc. First you must have a reasonably recent version of X installed (this includes /usr/openwin on Solaris machines). Also, TightVNC requires JPEG and zlib libraries installed in the system (e.g. under /usr/local). To build everything but Xvnc, do: % xmkmf % make World This should build first the vncauth library which is used by each of the programs, then vncviewer, vncpasswd and vncconnect. Xvnc differs from the other programs in that it is built inside a cut-down version of the X build tree. This is based around the XFree86 3.3.2 "server only" distribution, which in turn is based on the X11R6.3 distribution from the X consortium. To build Xvnc, do: % cd Xvnc % ./configure % make If you have trouble building Xvnc, see the Xvnc/README file for more details. If it all builds OK you should copy the programs to some directory which is in your PATH environment variable, such as /usr/local/bin. Also, it's handy to install manual pages in a directory where the man utility can find them. You can use the vncinstall script to do this for you (man path is optional): % cd .. % ./vncinstall /usr/local/bin /usr/local/man If you want to use the Java VNC viewer, you should copy the class files from the classes directory to some suitable installation directory such as /usr/local/vnc/classes: % mkdir -p /usr/local/vnc/classes % cp classes/* /usr/local/vnc/classes We recommend that you use the vncserver script to run Xvnc for you. You can edit the script as appropriate for your site. Things you may need to change include: * The location of Perl - if Perl is not installed in /usr/bin you'll need to edit the "#!/usr/bin/perl" first line of vncserver. * $vncClasses - this specifies the location of the Java classes for the VNC viewer applet. The default is /usr/local/vnc/classes. * Xvnc's font path and color database. If you have an installation of X which is not in the standard place you may need to add arguments to the Xvnc command line to set these. These should be appended to the $cmd variable at the comment "# Add font path and color database...". |
Now I can only get vncviewer on other machine to load a new display on my machine.
i.e. tsun@sKex:~$ vncserver New 'sKex:1 (tsun)' desktop is sKex:1 Starting applications specified in /home/tsun/.vnc/xstartup Log file is /home/tsun/.vnc/sKex:1.log root@test:~$ vncviewer host.dyndns.org:5901 works for me, but not root@test:~$ vncviewer host.dyndns.org:5900 I want to connect to my CURRENT desktop running on my machine. Any idea? |
Check out this thread:
http://www.linuxquestions.org/questi...78#post1175578 In the immortal words of shilo, this is pretty much "How I Do It All". PS - nobody's ever given me any feedback on this wherever I've posted it. It would be great to know if it works elsewhere besides my mutant system. |
All times are GMT -5. The time now is 05:30 AM. |