LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-13-2006, 01:22 AM   #16
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 81

easy solution. dont let anyone tell you that you cant do it. login to a computer with ssh using X forwarding and type this command.

startx -- :1

You aleady have X running on :0 so you need to run X on :1
 
Old 08-13-2006, 02:56 AM   #17
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 745

Original Poster
Rep: Reputation: 81
Thanks for the tip.

Unfortunately, all that does (assuming I'm doing it correctly) is start up another X server on the server (192.168.1.250), but the client just shows the terminal messages generated by X.

What I really want is to be able to see and control X from a remote computer (perhaps like a thin client?), so that I can use X on a computer where X is not installed, or is otherwise not running. Still haven't really gotten around to trying out VNC on Linux (too many other projects have gotten in the way).

Have a good one!

--Dane
 
Old 08-13-2006, 08:21 AM   #18
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 81
You must use ssh forwarding when running that command. To use ssh forwarding, do this:

ssh -Xl username hostname

or you can edit a configuration file, and have X forwarding enabled everytime you use ssh.
 
Old 08-13-2006, 08:23 AM   #19
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 81
tell me if that works
 
Old 08-13-2006, 09:23 PM   #20
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 745

Original Poster
Rep: Reputation: 81
Hello again.

I tried what you told me, but it only started the X session on the server, and it was not controllable by the client. Perhaps I'm missing a step or two? Here's what I did:

Code:
client $ ssh -Xl dane 192.168.1.250
password:***********
server $ startx -- :1
This produced the usual output to the terminal, but did not put anything else on the screen of the client. I tried switching to tty7 and tty8, but there was just terminal text.

Any more ideas?

--Dane
 
Old 08-13-2006, 09:42 PM   #21
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 81
yes, i've got it to work before. are you getting errors? try this instead if you have kde on the server computer.

Code:
client $ ssh -Xl dane 192.168.1.250
password:***********
server $ startkde &
if you have gnome on the server computer, try this.

Code:
client $ ssh -Xl dane 192.168.1.250
password:***********
server $ gnome-session &
I am not sure if you are required to have graphics installed on the computer you are doing it from. When I did it, the colors from my client computer were being used for the desktop from the server. I had gnome on the client computer and xfce on the server. Let me know if this works.
 
Old 08-15-2006, 05:37 AM   #22
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 745

Original Poster
Rep: Reputation: 81
I tried what you said (I use KDE on the server computer), but it gave me a bunch of errors about not being able to connect to the X server. This seems to make sense, since startkde does not start the X server on its own.

Which system did you get it working on?

Thanks.

--Dane
 
Old 08-16-2006, 05:40 AM   #23
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 81
I did it from Ubuntu. The computer running the ssh server was xubuntu with the xfce windows manager. I was logged in through ssh with X forwarding. I typed the same commands that is needed in the ~/.vnc/xstartup file.
 
Old 06-07-2008, 09:17 AM   #24
Anithen
Member
 
Registered: Aug 2003
Location: Florida
Distribution: Slackware 12, Slackware 12.1, Slackware 12.2
Posts: 105

Rep: Reputation: 15
Good morning, Fakie_flip.

I ssh into a computer on my LAN that works for X11 forwarding, but I haven't gotten an entire session to launch. Typing startx -- :1 will launch either an extra xsession on that machine or if X is not running it will just launch it in :1.

I'm a little confused now, because we're talking about a ~/.vnc/xstartup file. What does your ~/.vnc/xstartup file look like? Also, did you install vnc for this functionality or are we still trying to do this with just X and ssh? Thanks.
 
  


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 tunnel help ZST Linux - Networking 2 07-05-2006 02:35 PM
SSH Tunnel - need some help on this MeridianRebel Linux - Networking 2 08-11-2005 03:10 PM
ssh tunnel crep Linux - Networking 2 08-25-2004 09:24 PM
ssh tunnel TroelsSmit Linux - Software 2 04-30-2004 04:30 PM
Ssh Tunnel tinaa Linux - Software 7 07-29-2003 08:52 PM


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