LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-14-2004, 12:15 PM   #1
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
'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
 
Old 09-14-2004, 12:18 PM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
are you talking about forwarding x through an ssh tunnel?
 
Old 09-14-2004, 12:42 PM   #3
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Learned everything I needed to know from this site...
VNC via SSH tunnel

Enjoy.
 
Old 09-14-2004, 02:42 PM   #4
icom158
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware-10.2
Posts: 21

Rep: Reputation: 15
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

Last edited by icom158; 09-15-2004 at 03:51 PM.
 
Old 09-14-2004, 06:26 PM   #5
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
Quote:
If you want to tunnel your X window through ssh, then "ssh -X -u username subdomain.domain.com
i think you mean ssh -X -l username subdomain.domain.com
-u is an invalid option
 
Old 09-14-2004, 10:39 PM   #6
netindustries
LQ Newbie
 
Registered: Mar 2004
Location: Indianapolis
Distribution: Slackware 9.1
Posts: 25

Rep: Reputation: 15
Check out this thread, it might help:
http://www.linuxquestions.org/questi...hreadid=215973
 
Old 09-15-2004, 10:35 AM   #7
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
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?
 
Old 09-15-2004, 05:25 PM   #8
netindustries
LQ Newbie
 
Registered: Mar 2004
Location: Indianapolis
Distribution: Slackware 9.1
Posts: 25

Rep: Reputation: 15
Have you run vncpasswd yet?
 
Old 09-15-2004, 09:30 PM   #9
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
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!
 
Old 09-16-2004, 09:31 PM   #10
netindustries
LQ Newbie
 
Registered: Mar 2004
Location: Indianapolis
Distribution: Slackware 9.1
Posts: 25

Rep: Reputation: 15
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...".
 
Old 09-21-2004, 11:59 AM   #11
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
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?
 
Old 09-21-2004, 01:15 PM   #12
netindustries
LQ Newbie
 
Registered: Mar 2004
Location: Indianapolis
Distribution: Slackware 9.1
Posts: 25

Rep: Reputation: 15
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.

Last edited by netindustries; 09-21-2004 at 01:18 PM.
 
  


Reply



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
remote desktop,vnc,ssh inside a lan durden2.0 Linux - Networking 3 09-22-2006 03:55 PM
Remote Desktop, ssh, vnc, rdesktop, RDP, cygwin? chbin Linux - Networking 7 12-17-2005 05:28 PM
remote desktop (vnc) double keystrokes issue mattl SUSE / openSUSE 10 05-06-2005 05:04 AM
VNC vs Remote Desktop: display confusion klandingham Linux - Newbie 0 11-03-2004 11:27 AM
Does KDE remote desktop == VNC? Brain Drop Linux - Networking 1 07-05-2004 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:21 PM.

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