LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 11-09-2006, 05:43 PM   #1
consistgd
LQ Newbie
 
Registered: Oct 2004
Posts: 24

Rep: Reputation: 15
Access to X Windows remotely.


I need to access Linux GUI remotely. On my local network I have couple machines installed, RH8, FEDORA CORE 5, etc.
On Windows XP workstation I have Cygwin and Cygwin/X I am connecting all Linux machines perfectly (I use a commant XWin :0 -query <remote machine IP>).
It all works on my local network. When I install Linux machine on my DMZ zone (separate network defined in firewall), it stops working. I just see a gray screen. all other services on that machines are working OK, for example, VNC works fine, but VNC is not good for many reasons, mostly because it requires to have existing session one the machine, so I cannot logout and then login without going to the machine.
All ports are open, firewall on Linix machine is disabled. What is going on?
Open ports is not a good options to use this serrice. I do need to know what ports should be open to connect X/WINDOW remotely. Would be glad if some will help with that, but for now I need to make it working.
 
Old 11-10-2006, 11:58 AM   #2
Cyber_Paladin
LQ Newbie
 
Registered: Mar 2006
Location: Hong Kong
Distribution: Debian
Posts: 24

Rep: Reputation: 15
I'd recommend tunneling X inside SSH. That's probably the easiest way.
Plus that's secure, and only requires you to open 1 single port on the firewall.

5 minute google will tell you how to do that.

Have fun
 
Old 11-10-2006, 02:43 PM   #3
consistgd
LQ Newbie
 
Registered: Oct 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by Cyber_Paladin
I'd recommend tunneling X inside SSH. That's probably the easiest way.
Plus that's secure, and only requires you to open 1 single port on the firewall.

5 minute google will tell you how to do that.

Have fun
Many thanks for the reply.

I tried the following:

On Linux machine (RH8, to be certain) I connected the machine I need with ssh and then was able to start individual applications on that machine. Works perfect. The only one issue: I need GNOME (KDE) environment to find programs I need, I am new to Linux and I do nto knwo all the names yet. GUI helps a lot in that. How can I start it?

I found a nice explanation how to set up VNC/sss/PUTTY. Works good. But this is VNC, meaning that, it requires user to be loged in before connecting and this is what I want to avoid.

On Windows, where I need it the most. As I mentioned before, Cygwin/X with XWin works fine within local network. Attempt to repeat the same trick as on RH8 (being under X, ssh to the server and then start a program) did not work on Cygwin/X. I started X (startx or startxwin.sh, both commands start a command line X/Terminal), connected the server using ssh and then tried to start a graphical progarm. That did not work, programs give a message "unable to connect X server".
Any idea for any of the questions above?
 
Old 11-10-2006, 08:29 PM   #4
consistgd
LQ Newbie
 
Registered: Oct 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by consistgd
Many thanks for the reply.

I tried the following:

On Linux machine (RH8, to be certain) I connected the machine I need with ssh and then was able to start individual applications on that machine. Works perfect. The only one issue: I need GNOME (KDE) environment to find programs I need, I am new to Linux and I do nto knwo all the names yet. GUI helps a lot in that. How can I start it?

I found a nice explanation how to set up VNC/sss/PUTTY. Works good. But this is VNC, meaning that, it requires user to be loged in before connecting and this is what I want to avoid.

On Windows, where I need it the most. As I mentioned before, Cygwin/X with XWin works fine within local network. Attempt to repeat the same trick as on RH8 (being under X, ssh to the server and then start a program) did not work on Cygwin/X. I started X (startx or startxwin.sh, both commands start a command line X/Terminal), connected the server using ssh and then tried to start a graphical progarm. That did not work, programs give a message "unable to connect X server".
Any idea for any of the questions above?
I found how tunneling works. I made it working form Cygwin/X and from RH8 workstation (cannot say I completely understand it). Nautilus starts perfectly. If I put the launchers of the program I need on desktop, I can start them too. But about the programs from menues? Is there anyway to start full GNOME environment? or at least get all program names from menus (accessories, "go places", etc)?
 
Old 11-12-2006, 10:54 PM   #5
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Rep: Reputation: 30
vnc config steps

Hi,
Download the following document which contains vnc config steps,

http://www.erpstuff.com/topic.asp?TOPIC_ID=16

Have a nice day.

thanks
 
Old 11-13-2006, 04:26 PM   #6
consistgd
LQ Newbie
 
Registered: Oct 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Wink

Quote:
Originally Posted by sikandar
Hi,
Download the following document which contains vnc config steps,

http://www.erpstuff.com/topic.asp?TOPIC_ID=16

Have a nice day.

thanks
I downloaded the file and followed the instructions for VNC installation. It works fine, but it does the same as before: I need to be logged in before connecting with vncviewer, and thus cannot logout without blocking possibility to login abain. But there were useful thing in those insturction: it mentioned the name of the program tat should be started to get GNOME (KDE) environment. It is gnome session (startkde). I tried it with ssh tunneling abd it works. There are still some issues, but and least I know where to go now.

Thanks a lot for help.

Gregory
 
Old 11-13-2006, 05:32 PM   #7
dbogdan
Member
 
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 30
Try freeNX

http://freenx.berlios.de/

Secure thru SSH, only requires a single port open (port 22 by default) and since it uses ssh for the initial connection you do not need to have a session already running... (although it does support persisent connections) plus it's much faster that VNC.
 
Old 11-15-2006, 01:09 PM   #8
consistgd
LQ Newbie
 
Registered: Oct 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dbogdan
Try freeNX

http://freenx.berlios.de/

Secure thru SSH, only requires a single port open (port 22 by default) and since it uses ssh for the initial connection you do not need to have a session already running... (although it does support persisent connections) plus it's much faster that VNC.
I installed that. But I cannot make it working.
I did the following:

On Fedora Core 5 I ran yum install freenx and installed client for windows. Installation ran well.
But I keep getting message this message: "Server not installed or NX access disabled".
nxserver is running. I was able to start/stop it, add user, change password, etc.
ssh port is open, I can connect with ssh using other software.

What else can I check?

Gregory
 
Old 11-15-2006, 08:28 PM   #9
dbogdan
Member
 
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 30
Have a look here first:

http://fedoranews.org/contributors/rick_stout/freenx/

And possibly here:

http://fedoranews.org/contributors/rick_stout/ssh/

Sorry I can't help much more than that, not a Fedora user. I'd really try to get FreeNX running tho, it is worth it.
 
Old 11-17-2006, 04:12 PM   #10
consistgd
LQ Newbie
 
Registered: Oct 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by dbogdan
Have a look here first:

http://fedoranews.org/contributors/rick_stout/freenx/

And possibly here:

http://fedoranews.org/contributors/rick_stout/ssh/

Sorry I can't help much more than that, not a Fedora user. I'd really try to get FreeNX running tho, it is worth it.
Thanks a lot. I already found that I missed the step of importing a key. It works great, many thanks.
Now I have another issue. I cannot connect to two different computers at a time. Is that possible? I had to close first one to connect to another one.

By the way, what distribution you prefer?
 
Old 11-17-2006, 07:57 PM   #11
dbogdan
Member
 
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 30
Consisgd:

I happened across this article, it's a bit old but may suffice

http://mail.kde.org/pipermail/freenx...er/000359.html

Never tried to connect to multiple hosts simultaneously with FreeNX... let us know how this works

I prefer a simple ssh connection myself for multiple hosts (which I do constantly)

My current desktop distro of choice is SLED10 primarily due to the fact that I work at a huge SuSE/Novell shop (although I regularly use Ubuntu/Mepis/slackware on my personal machines)

Another possibility for you would be to use PuTTY to establish SSH connections to multiple hosts, setup port forwarding using different ports for the different hosts and tunnel VNC. this will allow the simultaneous host connections with X and the security of the SSH tunnel but still leaves you with the slower performance of VNC (and more complicated)

Either way ... have fun
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Remotely access an AP via Ethernet? Titanas25 Linux - Newbie 2 04-06-2006 10:26 AM
Access X remotely depam Linux - Software 11 03-30-2006 03:15 PM
Can't access Apache remotely zwyrbla Linux - Software 7 03-23-2005 07:14 PM
How do I access Gnome remotely? rwalkerphl Linux - Newbie 10 06-23-2004 02:56 PM
can't access remotely to any service kunteper Linux - Networking 3 12-26-2003 08:02 AM


All times are GMT -5. The time now is 05:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration