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 02-08-2004, 07:27 PM   #1
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
howto: remote login to x?


can i use cygwin on my second machine (running xp), and make a remote connection to the xserver on my machine?

and if so.. how do i do it??

thanks
trey
 
Old 02-08-2004, 07:48 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Use xforwarding in ssh.
 
Old 02-08-2004, 08:17 PM   #3
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
Quote:
Originally posted by jtshaw
Use xforwarding in ssh.
I have xfowarding enabled.. but i cannot start anx session from the xp machine?

what i do is

shh -X <host>

afterlogging in.. i try to run an X app.. then nothing happens? i try to start x and it just says it cant start with the generic error?
 
Old 02-08-2004, 08:20 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Do you have an xserver installed in cygwin? Is it even possible to install an xserver in cygwin? I am a little windows stupid I must say, I haven't run windows in about 3 years now.
 
Old 02-08-2004, 08:35 PM   #5
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
Quote:
Originally posted by jtshaw
Do you have an xserver installed in cygwin? Is it even possible to install an xserver in cygwin? I am a little windows stupid I must say, I haven't run windows in about 3 years now.
yes I have xserver installed on cygwin! (im not windows stupid yet.. trying to get that way though)
 
Old 02-09-2004, 01:38 AM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Keep in mind all of what I'm about to say is simply speculative -- I have no experience in this :-D

First -- you say you're trying to start an X session within ssh.
Shouldn't you be trying to connect to an existing X server?

Second -- What is the "generic error" you're referring to?

--Shade
 
Old 02-09-2004, 06:33 AM   #7
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
Quote:
Originally posted by Shade
Keep in mind all of what I'm about to say is simply speculative -- I have no experience in this :-D

First -- you say you're trying to start an X session within ssh.
Shouldn't you be trying to connect to an existing X server?

Second -- What is the "generic error" you're referring to?

--Shade
How do i connect to an existing x session???

the generic error is... (when trying to run startx) is...

Code:
Using authority file /home/trey/.Xauthority
Writing authority file /home/trey/.Xauthority

Fatal server error:
Server is already active for display 0
If this server is no longer running remove /tmp/.X0-locl
and start again.
what might i be doing wrong?
 
Old 02-09-2004, 08:39 AM   #8
Justin_Time
Member
 
Registered: Feb 2004
Posts: 53

Rep: Reputation: 15
Try xhost+ on the server and export the correct DISPLAY

in bash

export DISPLAY=youlocalmachinesip:22
 
Old 02-09-2004, 09:20 AM   #9
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
Thumbs up

I will try that when i get home justin! thanks for the input
 
Old 02-09-2004, 11:03 AM   #10
cratos
Member
 
Registered: Feb 2003
Posts: 95

Rep: Reputation: 15
export DISPLAY=yourlocalmachinesip:0.0
 
Old 02-09-2004, 11:13 AM   #11
Justin_Time
Member
 
Registered: Feb 2004
Posts: 53

Rep: Reputation: 15
Quote:
Originally posted by cratos
export DISPLAY=yourlocalmachinesip:0.0
Sorry.. ofcourse you are right.
 
Old 02-09-2004, 05:30 PM   #12
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
ok, when i log in from cygwin, using ssh, after putting in the password i get this message

warning: No xauth data; using fake autentication data for X11 fowarding???

any ideas?
 
Old 02-09-2004, 05:50 PM   #13
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
hmm.. the xauth from what i have read is generic,

When i launch an app from the windows machine or startx, or anything like that.. The app launchs on the remote machine???

what could i be doing wrong?
 
Old 02-09-2004, 06:29 PM   #14
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Nevermind my previous post.

My computer should have a breathalyser on it.
 
Old 02-09-2004, 07:42 PM   #15
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
ok, I got it to work.. i have to run xhost + on the client everytime, however.. now im on to a new situation with this, maybe i need a new post but i will try here.

How can I get gdmflexiserver to run? it never starts for me i run gdmflexiserver -n and i get no response. I've waited about 15 mins but nothing???

any ideas?

EDIT: made a few changes.. now gdmflexiserver gives me some output...

error: "you do not seem to have the authentication needed for this operation

Perhaps your .Xauthority file is not set up correctly"


Last edited by trey85stang; 02-09-2004 at 07:57 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
Howto configure remote control buttons when LIRC is integrated into the kernel? lagu2653 Linux - Hardware 0 12-02-2005 08:42 AM
auto login, howto? hongxing Linux - Software 4 10-12-2005 03:52 AM
remote x login instead of local login mandrake-n00b Mandriva 0 04-22-2005 09:19 PM
howto remote session (kde, ...) on SuSE 9 fdurodie Linux - Newbie 2 04-11-2004 10:32 AM
howto Xwin forwarding from a remote subnet? inki Linux - Security 2 01-16-2002 08:16 AM

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

All times are GMT -5. The time now is 01:48 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