LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2006, 09:57 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Rep: Reputation: 30
Cool Linux Graphical mode with SSH


Friends ,

From windows machine it is possible to enter a Linux Machine from a Windows machine using SSH . But using SSH , we can use the text editor , don't get the X window .

Now my question is , is it possible to enter the Linux graphical mode using SSH ?

Thx...
 
Old 06-14-2006, 11:06 PM   #2
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
I heard it;s possible but I was never able to do it.
 
Old 06-14-2006, 11:34 PM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Short answer is no. Long answer is yes, you can forward X connections over SSH but you don't get a full desktop environment or anything like that, just single apps and you need to be running a X server on the local computer as well.

Best suggestion is FreeNX to use a GUI over a network.
 
Old 06-15-2006, 01:09 PM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
The most common way would be to use VNC. Install a vnc server on the Linux machine, see: http://wiki.linuxquestions.org/wiki/VNC#Mandriva

Once you've got that setup you can ssh into the machine using putty to tunntel VNC over ssh like this: http://martybugs.net/smoothwall/puttyvnc.cgi

Where 5900 is the port that VNC runs on on your Linux machine. You can now connect to it using a VNC viewer on the Windows machine with the address localhost:0, since you've tunnelled VNC over ssh. Note that VNC can support multiple desktops and it may actually be on desktop 1, ie port 5901.
 
Old 06-15-2006, 06:48 PM   #5
scweej
LQ Newbie
 
Registered: May 2006
Distribution: Kanotix, Debian, openSUSE, Ubuntu
Posts: 11

Rep: Reputation: 0
The way i did this was to install cygwin on my windows machine.... install the xwindows port to cygwin. Then used ssh from cygwin using -X option for x11 forwarding.

Its a bit cumbersome to setup, but once i got it working it was sweet.
 
Old 06-15-2006, 07:15 PM   #6
LazyP
Member
 
Registered: Jun 2005
Location: Athens GR
Distribution: Slackware 10.2
Posts: 43

Rep: Reputation: 15
OK I have dealed with this and I have a clean answer.
VNC is used to get a whole desktop on the network. That means you start a new X server (VNC server). Now if you do that a few times your RAM will be exhausted. In my occasion this is what i wanted so it doesn't matter.
However it is possible to start graphical applications through an SSH connection. All you have to do is enable X11 forwarding:
uncomment/edit the line
ForwardX11 yes
in /etc/ssh/ssh_config
From the client side you need an implementation of X which exists in almost every modern UNIX variant.
If you are on a Windows machine there are many X implementations for MS Windows AFAIK and some of them are freeware so you wan't have to pay for it. I guess Cygwin does the trick too but as you said it's a bit cumbersome!

PS: You should start ssh like that ssh -X [options]
 
Old 06-15-2006, 07:51 PM   #7
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 76
Quote:
Originally Posted by scweej
The way i did this was to install cygwin on my windows machine.... install the xwindows port to cygwin. Then used ssh from cygwin using -X option for x11 forwarding.

Its a bit cumbersome to setup, but once i got it working it was sweet.
This is also terribly slower and less robust than the other methods (VNC).
 
Old 06-15-2006, 10:01 PM   #8
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
You can try Xming. It's basically a modified cygwin/xserver that lets you tunnel x over ssh.
 
  


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
SSH connection in graphical mode (X-Server?) max2004 Linux - Networking 12 01-25-2012 05:19 AM
How to start graphical mode in linux 2.4.20-alt6-up? ukrainet Linux - Newbie 2 12-23-2004 09:51 AM
How to Prevent linux running graphical mode aperrin Linux - Software 2 12-20-2004 04:03 AM
problem with linux graphical mode shams Linux - Software 3 02-10-2004 07:07 PM
howto start linux in text mode and not in graphical? ichbinesderelch Linux - General 5 08-20-2003 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration