LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-19-2006, 12:38 AM   #1
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Rep: Reputation: 31
remote desktop+ssh


Hi, i am running sarge at home and i want to access it (remote desktop) from a windows box at work. I can access it through ssh, but i do not know what to do to see the X11 session. The problem is that in the windows box i cannot install anything at all. any ideas?
 
Old 12-19-2006, 01:05 AM   #2
Shaddy
Member
 
Registered: Apr 2003
Location: Germany
Distribution: PC1: Xandros 4 Prof, PC2: Debian Sarge, NB: SLED10+Windows XP
Posts: 39

Rep: Reputation: 15
Hello,

if it's really just the reason you want X11 for installing, why don't you use aptitude? I install software with aptitude even in X11 as I think this is the best solution.
If you want to access your computer with a graphical interface, try nomachine server and client. I found this software some weeks ago and I'm really excited as you don't need to open an additional port at your firewall and all traffic is encrypted via ssh.

Just download the NX Free Edition at http://www.nomachine.com/download.php for debian, install it with

dpkf -i packagename

in order: client - node - server, and that's all. You must start the server with /usr/NX/bin/nxserver.
Now you can access you computer from every client, the nxclient is installed on.

As alternative you can use VNC. The sources should be included your standard apt-sources. The packages are named something like xvncserver and vncclient. With that you have some gimmicks like accessing your X11 via a java-enabled browser (vnc-java).

Best regards

Shaddy
 
Old 12-19-2006, 01:13 AM   #3
MarvTowel
LQ Newbie
 
Registered: Jan 2006
Distribution: Debian and SuSE
Posts: 4

Rep: Reputation: 0
ssl-explorer and VNC

SSL Explorer (http://sourceforge.net/projects/sslexplorer/) is a web browser based SSL-VPN client that doesn't require any software to be installed on your work computer. Once you have made the VPN connection, you should be able to use a VNC client like RealVNC to get a remote desktop connection. I realize that still may be a problem since you can't install RealVNC on you work PC, but some companies have it installed already for help desk support. A quick check of their forum shows that there is an UltraVNC extension for SSLExplorer. That would probably cover all of the bases in one package, I haven't configured it before though.

Good luck!


EDIT - Shaddy posted just before I did and has a much easier solution with vnc-java, although I don't know if it encrypts the connection.

Last edited by MarvTowel; 12-19-2006 at 01:19 AM.
 
Old 12-19-2006, 02:56 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you could install cygwin/x, you could access a Linux/Unix machine using "ssh -X". However, since you can't install any software, the only way to run x11 on your windows machine is to boot up using a live distro.
 
Old 12-19-2006, 03:06 AM   #5
Shaddy
Member
 
Registered: Apr 2003
Location: Germany
Distribution: PC1: Xandros 4 Prof, PC2: Debian Sarge, NB: SLED10+Windows XP
Posts: 39

Rep: Reputation: 15
You don't need to install nxclient on the client, it's still enough to copy the executables. I'm using nxclient on a client in university, where I also have no rights to install.

By the way, I think NX is the simplest way of getting a remote X.

Greets

Shaddy
 
Old 12-19-2006, 03:25 AM   #6
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
being honest with you, you lost me now. Could you tell me please, a solution to my problem?
 
Old 12-19-2006, 08:19 AM   #7
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
apt-get install x11vnc.

Code:
nixbox:/home/yanik# dpkg -l |grep  vnc
ii  tightvnc-java                     1.2.7-4                         TightVNC java applet and command line progra
ii  tightvncserver                    1.2.9-21                        virtual network computing server software
ii  vnc-common                        3.3.7-13                        Virtual network computing server software
ii  x11vnc                            0.8.2-1                         VNC server which uses your current X11 sessi
I can even access my desktop thru the web with http://myip:5800.

I use it like this:
Code:
x11vnc -httpdir /usr/share/tightvnc-java/ -forever -q -bg -rfbauth /home/yanik/.somefile -display :0
 
Old 12-19-2006, 12:25 PM   #8
Shaddy
Member
 
Registered: Apr 2003
Location: Germany
Distribution: PC1: Xandros 4 Prof, PC2: Debian Sarge, NB: SLED10+Windows XP
Posts: 39

Rep: Reputation: 15
OK, to give a summary:

You have to choose between three solutions:

1) NXServer - NXClient
2) VNC-Server - VNC-Client

I'll summarize these two approaches:

1) To get a running system, you'll have to install the debian packages free for download from http://www.nomachine.com/download.php. For your "server" you need nxclient, nxnode and nxserver packages in this order to install. Nothing else to do on your server.
If you want to connect from a windows client, you need to install nxclient for windows, also available at given link. If you don't have administrator rights, which are required for installing, you can also copy the program files from an already installed system. If you don't have these files, I can send you via email. If you have these files, you can connect your running server via the ssh-port 20. You said you have already a working ssh connection to your server, so you don't need any additional port to open, the ssh port forwards the request automatically to the running server application, fully transparent, you won't notice.

2) You install vncserver on your "server" (your pc at home) and configure it to your requirements. In addition, as VNC uses another port (I think 5900) you'll have to forward this port on your router, if exists, and open this port on your firewall (if exists). Then, you can connect this vnc-server from work, if you have vncviewer (a vnc-client) installed on your pc at work. As nice gimmick you can install a packet which let you access your vnc-server via a java-enabled web browser, so you don't need to have a vnc-client running on your pc at work. Nice for you, but it's unsafe as vnc doesn't encrypt your traffic, so your login-password will be transported via your work's LAN and the internet in plaintext.
More contra: VNC isn't performant as NX. Don't ask e why, but the NX-protocoll is much more efficient.

3) Cygwin just emulates a UNIX/Linux environment on your windows client. Within this environment you can connect your private pc via ssh as usual, but in addition you can connect with 'ssh -X' which results in a X11-forwarding, which means all applications started in the ssh-session will open on your client at work. If you call 'konqueror' it will open on your windows client. But this causes a lot of traffic, therefore it is quite slow, even with broadband internet.


I have been walking the same road you're on, and in my believe NX is the best way to solve your problem. Now the decision is on you, this is just my oppinion. If you ask jschiwal he will argue ssh -X is the best, yanik maybe will argue for VNC. Thats nice in linux: There are different ways of solving a given problem. You have to decide which solution fits best your specific problem.

Hope this can help you

Shaddy
 
Old 12-20-2006, 02:47 AM   #9
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
i have found the vnc version of viewer that does not need to get installed. i think that will solve the problem
 
Old 02-06-2007, 02:06 AM   #10
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
Hi.
I did install the vncserver. I did set up the password (vncpasswd). Every time i start the vncviewer to see it from the lan or from the internet all i see is a window, the cursor and a terminal. How do i make it to see the actual desktop?i am using kde and gnome, depending on the situation.
 
Old 02-06-2007, 05:08 AM   #11
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by jschiwal
If you could install cygwin/x, you could access a Linux/Unix machine using "ssh -X". However, since you can't install any software, the only way to run x11 on your windows machine is to boot up using a live distro.
You don't need admin rights to install cygwin AFAIK

To see the actual screen, you need x11vnc on your remote host.

* You ssh -X user@remote.ip.address from cygwin (not sure if its -X or -Y) to log in. It seems you already can do this as you get a terminal already.

*Then you need to start the x11VNC server on the remote:
I use this (your mileage may vary..)

./x11vnc -bg -forever -o ./x11vnc.log -display :0 -localhost -nobell -solid root:lightsteelblue -scale 1/2 $*

*Then start the client
I use this (..)
enc="copyrect tight hextile zlib corre rre raw"
./vncviewer -encodings "$enc" :0 $*

Should do
 
  


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' with SSH and VNC kaon Slackware 11 09-21-2004 01:15 PM
Remote Desktop using SSH tunnel..... help! redhatbeatswin Linux - Newbie 5 08-14-2004 11:51 AM
Putty SSH remote desktop Solved learner_driver Linux - Networking 1 07-05-2004 03:02 PM
ssh forwarding+remote desktop Metroid Linux - Networking 2 06-23-2004 03:14 PM

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

All times are GMT -5. The time now is 12:07 AM.

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