Good X client to connect Win 2K to Linux - DFWstangs Forums
 
LinkBack Thread Tools Display Modes
post #1 of 29 (permalink) Old 04-13-2004, 06:42 PM Thread Starter
Custom Title
 
Join Date: Apr 2002
Location: Hades who?
Posts: 16,521
Good X client to connect Win 2K to Linux

What's a good X windows client to connect from a pc to a Linux box. Needs to supprot X so it can run the SAS software. Anyone have any recommendations?
Free ones too!
TIA
Yellowstang is offline  
Sponsored Links
Advertisement
 
post #2 of 29 (permalink) Old 04-13-2004, 07:58 PM
 
Join Date: Nov 2002
Posts: 5,831
samba.. and it doesnt need X.

Samba can emulate a windows file server or an NT 4 domain.

http://www.samba.org

post up if you need help configureing it.

EDIT:

Sorry I misread your post.... You need a terminal emulator to run on windows to connect to a linux app.

Free solution = cygwin
Paid solution = XWin32 (bout 250 bucks w/ 30 day trial) or Hummingbird Exceed (about 600+ dollars)
trey85stang is offline  
post #3 of 29 (permalink) Old 04-13-2004, 09:27 PM
Lyn
Lifer
 
Join Date: Feb 2003
Location: Texas
Posts: 3,470
Quote:
Originally posted by trey85stang
samba.. and it doesnt need X.

Samba can emulate a windows file server or an NT 4 domain.

http://www.samba.org

post up if you need help configureing it.

EDIT:

Sorry I misread your post.... You need a terminal emulator to run on windows to connect to a linux app.

Free solution = cygwin
Paid solution = XWin32 (bout 250 bucks w/ 30 day trial) or Hummingbird Exceed (about 600+ dollars)
Hmm, I think we have Huminhbird Exceed at work, that name sounds really familiar, and I think the girl in Atlanta that needs this said she used that right now to connect to another server. I didn't think it was an X emulator though, she doesn't use it as one right now at least.

With Cygwin, how does the Linux server know to trust the Windows box and vice versa? Never tried this crap before, I always use my Sun box to connect to Linux/Unix servers at work.

Thanks

<-- yellowstang
Lyn is offline  
 
post #4 of 29 (permalink) Old 04-13-2004, 10:00 PM
El Camino
 
Stang2be's Avatar
 
Join Date: Sep 2003
Location: in front of the keyboard
Posts: 3,432
exceed is the only thing I've used in the past in windows as a remote X client

2007 Taurus SEL - daily driver
1974 El Camino SS - 400sb

Quote:
Originally Posted by purrrfectstang
Umm.. what is the ID-10T settings?
Stang2be is offline  
post #5 of 29 (permalink) Old 04-13-2004, 11:01 PM
\(_o)/
 
AbecX's Avatar
 
Join Date: Nov 2001
Location: Las Colinas
Posts: 25,373
Quote:
Originally posted by 36D-Girl

With Cygwin, how does the Linux server know to trust the Windows box and vice versa? Never tried this crap before, I always use my Sun box to connect to Linux/Unix servers at work.
You'll have to setup xhost first for it to connect, I think its like xhost + or something like that. Why would you want to export and x session anyway? Just curious...

http://abecx.net/sshots/xwin.jpg
AbecX is offline  
post #6 of 29 (permalink) Old 04-14-2004, 08:19 AM Thread Starter
Custom Title
 
Join Date: Apr 2002
Location: Hades who?
Posts: 16,521
Quote:
Originally posted by AbecX
You'll have to setup xhost first for it to connect, I think its like xhost + or something like that. Why would you want to export and x session anyway? Just curious...

http://abecx.net/sshots/xwin.jpg
I'm still stuck. I have done xhost + on the linux box so it will accept any host (I'll fix it later so only certain hosts are trusted), and when I run cigwin from my windows box, it still wont fricken connect and run an X application. This is what I get...


[[email protected] robw]$ sas
ERROR: Cannot open X display. Check display name/server access authorization.

ERROR: Explorer failed to initialize.


I need to get this working so a girl in the Atlanta office can run the SAS program on the linux server here in Irving.

Thanks
Yellowstang is offline  
post #7 of 29 (permalink) Old 04-14-2004, 08:34 AM
 
Join Date: Nov 2002
Posts: 5,831
Quote:
Originally posted by yellowstang
I'm still stuck. I have done xhost + on the linux box so it will accept any host (I'll fix it later so only certain hosts are trusted), and when I run cigwin from my windows box, it still wont fricken connect and run an X application. This is what I get...


[[email protected] robw]$ sas
ERROR: Cannot open X display. Check display name/server access authorization.

ERROR: Explorer failed to initialize.


I need to get this working so a girl in the Atlanta office can run the SAS program on the linux server here in Irving.

Thanks
you need to edit the sshd.config file to allow x11 fowarding.

cd /etc/sshd
i dont remember the exact name of the file but i think it is sshd_config ???

anyways.. add these lines. (or uncomment these lines)

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

EDIT: then restart ssh

cd /etc/init.d/
sshd restart

on the client, run

xhost +
ssh -X [email protected]
export DISPLAY=yourip:0.0

(now you can run the command for sas)

Last edited by trey85stang; 04-14-2004 at 08:36 AM.
trey85stang is offline  
post #8 of 29 (permalink) Old 04-14-2004, 09:37 AM Thread Starter
Custom Title
 
Join Date: Apr 2002
Location: Hades who?
Posts: 16,521
man, this thing is driving me NUTZ! I still get "Can not open display myipaddress:0.0" and yes, my ip address is correct. I'm beggining to wonder if my cygwin install is foobarred and it's not really an X client? I'm in DNS correctly (client), I have added my system to /etc/hosts - nothing seems to want to let me do the xhost and work, every time it says "Unable to open display"

It's got to be something really stupid too, it usually is...

Thanks for the help so far, I do appreciate it!
Yellowstang is offline  
post #9 of 29 (permalink) Old 04-14-2004, 09:55 AM
Lifer
 
Join Date: Apr 2000
Location: McKinney
Posts: 2,091
Lightbulb

Uhm, cgywin is not an X server for Windows. It is a set of libraries etc for running Unix programs on Windows. You have to recompile the programs specifically for cgywin.

What you need is an X server for Windows. I haven't found very many freeware ones. But here's what I'd suggest:

TightVNC - Run a tightVNC server on the linux box, use the VNC client on the Windows box.

This gives you a compressed X session that you can get to from the Windows box. You won't be sending tons of X data across your link, only a compressed VNC session. It works REALLY well. I used it to run some X programs in Dallas from China.


Or you can find a X server for the Windows platform:

Exceed
Reflection X
XWin32

Personally, for your usage, I'd go with the VNC solution. It will provide the functionality that you need, without the hassle. Not to mention, if someone wants to run some long sas sessions, they can disconnect from the VNC server, and reconnect later, and their session is still running.

With the X server on the PC, if you shutdown the PC, or do anything with the network conneciton, you will loose your session.


So check out TightVNC. Try it, you'll like it.

Chambers
chambers is offline  
post #10 of 29 (permalink) Old 04-14-2004, 09:57 AM
\(_o)/
 
AbecX's Avatar
 
Join Date: Nov 2001
Location: Las Colinas
Posts: 25,373
Make sure when you ssh in you do a ssh -X [email protected]

Chamber, cgywin can be ran as an x server for windows.

Last edited by AbecX; 04-14-2004 at 10:11 AM.
AbecX is offline  
post #11 of 29 (permalink) Old 04-14-2004, 10:03 AM
\(_o)/
 
AbecX's Avatar
 
Join Date: Nov 2001
Location: Las Colinas
Posts: 25,373
all you should have to do is these 3 commands

on the server type

xauth

then on the client type

xhost +
ssh -X [email protected]
xcalc

that should export xcalc. We do this shit all the time to export gui based monitoring stuff from our sniffer box.

Last edited by AbecX; 04-14-2004 at 10:35 AM.
AbecX is offline  
post #12 of 29 (permalink) Old 04-14-2004, 10:32 AM
 
Join Date: Nov 2002
Posts: 5,831
Quote:
Originally posted by AbecX
all you should have to do is these 3 commands

on the server type

xauth
xhost+

then on the client type

ssh -X [email protected]
xcalc

that should export xcalc. We do this shit all the time to export gui based monitoring stuff from our sniffer box.
dohh.. I forgot to mention xauth as well (i thought the xhost had to be done on the client though??)

EDIT: Also, make sure you have X running on the server I generally just make an ssh connection and run init 4 (or 5 depending on distro) do what i need then take it back to init 4

Last edited by trey85stang; 04-14-2004 at 10:34 AM.
trey85stang is offline  
post #13 of 29 (permalink) Old 04-14-2004, 10:34 AM
\(_o)/
 
AbecX's Avatar
 
Join Date: Nov 2001
Location: Las Colinas
Posts: 25,373
yeah its on the client.
AbecX is offline  
post #14 of 29 (permalink) Old 04-14-2004, 11:08 AM Thread Starter
Custom Title
 
Join Date: Apr 2002
Location: Hades who?
Posts: 16,521
Thre must be something really fucked up here, I still can not get an X session to respond. I have tried all the above suggestions, and still get the same results.

I also tried this from my Cygwin prompt.


X -query systemname



I get a large full grey screen and the big X for the cursor, but no login box. I type in a different systemname, and it works, I get a login box and can log in and get X windows crap with no problem... Could it be the X fonts stuff on my Linux box? I am stumped big time!

Last edited by Hades; 04-14-2004 at 11:11 AM.
Yellowstang is offline  
post #15 of 29 (permalink) Old 04-14-2004, 11:18 AM
 
Join Date: Nov 2002
Posts: 5,831
Quote:
Originally posted by yellowstang
Thre must be something really fucked up here, I still can not get an X session to respond. I have tried all the above suggestions, and still get the same results.

I also tried this from my Cygwin prompt.


X -query systemname



I get a large full grey screen and the big X for the cursor, but no login box. I type in a different systemname, and it works, I get a login box and can log in and get X windows crap with no problem... Could it be the X fonts stuff on my Linux box? I am stumped big time!
slow down a second...

Did you make the changes I mentioned above to the sshd config file on the server then restart the service?

when you start cygwin, you need to then start X, on the initial terminal run startx. This will launch x and a couple of terminals... Pick a terminal & run

xhost +
ssh -X [email protected]
export DISPLAY=localip:0.0
(then test with)
xcalc or some other small app

try the above and post up all the terminal commands and output as your run into any problems.

EDIT: you can succesfully logon to another linux machine??
trey85stang is offline  
post #16 of 29 (permalink) Old 04-14-2004, 11:40 AM Thread Starter
Custom Title
 
Join Date: Apr 2002
Location: Hades who?
Posts: 16,521
Quote:
Originally posted by trey85stang
slow down a second...

Did you make the changes I mentioned above to the sshd config file on the server then restart the service?

when you start cygwin, you need to then start X, on the initial terminal run startx. This will launch x and a couple of terminals... Pick a terminal & run

xhost +
ssh -X [email protected]
export DISPLAY=localip:0.0
(then test with)
xcalc or some other small app

try the above and post up all the terminal commands and output as your run into any problems.

EDIT: you can succesfully logon to another linux machine??
Yup, I can get on another Linux and DG Unix systems, just not this newest one. It is the only one we have here with Redhat ES edition, the others are either 6.2 or 9

I am almost to the point of re-installing the OS and SAS software again. One of our programmers is Redhat certified and he has no clue either.



Here is part of /var/log/messages... Does it make any sense to anyone?



Apr 14 10:00:22 emmynoether gdm[1605]: gdm_auth_secure_display: Error getting he
ntry for walterr.aegiscomgroup.com
Apr 14 10:00:22 emmynoether gdm[1605]: gdm_xdmcp_display_alloc: Error setting up
cookies for walterr.aegiscomgroup.com:0
Apr 14 10:00:29 emmynoether gdm[1605]: gdm_auth_secure_display: Error getting he
ntry for walterr.aegiscomgroup.com
Apr 14 10:00:29 emmynoether gdm[1605]: gdm_xdmcp_display_alloc: Error setting up
cookies for walterr.aegiscomgroup.com:0
Apr 14 10:00:46 emmynoether gdm[1605]: gdm_auth_secure_display: Error getting he
ntry for walterr.aegiscomgroup.com
Apr 14 10:00:46 emmynoether gdm[1605]: gdm_xdmcp_display_alloc: Error setting up
cookies for walterr.aegiscomgroup.com:0
Apr 14 10:00:52 emmynoether gdm[1605]: gdm_auth_secure_display: Error getting he
ntry for walterr.aegiscomgroup.com
Apr 14 10:00:52 emmynoether gdm[1605]: gdm_xdmcp_display_alloc: Error setting up
cookies for walterr.aegiscomgroup.com:0
Apr 14 1021 emmynoether gdm(pam_unix)[1658]: session opened for user root by
(uid=0)
Apr 14 1022 emmynoether gconfd (root-1867): starting (version 2.2.1), pid 18
67 user 'root'
Apr 14 1022 emmynoether gconfd (root-1867): Resolved address "xml:readonly:/
etc/gconf/gconf.xml.mandatory" to a read-only config source at position 0
Apr 14 1022 emmynoether gconfd (root-1867): Resolved address "xml:readwrite:
/root/.gconf" to a writable config source at position 1
Apr 14 1022 emmynoether gconfd (root-1867): Resolved address "xml:readonly:/
etc/gconf/gconf.xml.defaults" to a read-only config source at position 2
Apr 14 1023 emmynoether xinetd[1877]: warning: can't get client address: Tra
nsport endpoint is not connected



Thanks again guys!
Yellowstang is offline  
post #17 of 29 (permalink) Old 04-14-2004, 12:07 PM
 
Join Date: Nov 2002
Posts: 5,831
Im not much on troubleshooting from log files...

Can you post up the SSH Config file

also.. im curious..Are you only trying this from the computer in atlanta or are you trying from your machine?
trey85stang is offline  
post #18 of 29 (permalink) Old 04-14-2004, 12:22 PM
\(_o)/
 
AbecX's Avatar
 
Join Date: Nov 2001
Location: Las Colinas
Posts: 25,373
try rm -rf ~/.Xauthority

If you want, email me some logins, and I'll see if I can get it to work here.
AbecX is offline  
post #19 of 29 (permalink) Old 04-14-2004, 01:31 PM Thread Starter
Custom Title
 
Join Date: Apr 2002
Location: Hades who?
Posts: 16,521
Quote:
Originally posted by trey85stang
Im not much on troubleshooting from log files...

Can you post up the SSH Config file

also.. im curious..Are you only trying this from the computer in atlanta or are you trying from your machine?
Everything I am trying is all here locally.

Here is sshd_config

# $OpenBSD: sshd_config,v 1.59 2002/09/25 1116 markus Exp $

# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.

#Port 22
#Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 3600
#ServerKeyBits 768

# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
SyslogFacility AUTHPRIV
#LogLevel INFO

# Authentication:

#LoginGraceTime 120
#PermitRootLogin yes
#StrictModes yes

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys

# rhosts authentication should not be used
#RhostsAuthentication no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

#AFSTokenPassing no

# Kerberos TGT Passing only works with the AFS kaserver
#KerberosTgtPassing no

# Set this to 'yes' to enable PAM keyboard-interactive authentication
# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
#PAMAuthenticationViaKbdInt no

#X11Forwarding no
X11Forwarding yes
#X11DisplayOffset 10
X11DisplayOffset 10
#X11UseLocalhost yes
X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes

#MaxStartups 10
# no default banner path
#Banner /some/path
#VerifyReverseMapping no

# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server


Cruz,
our firewall will not let you in, unless you have a Cisco VPN client, then I could give you the setup for that, then you could get in.

Dang, this is really frustrating!!! I really appreciate all the help so far guys.
Yellowstang is offline  
post #20 of 29 (permalink) Old 04-14-2004, 01:46 PM
 
Join Date: Nov 2002
Posts: 5,831
Quote:
Originally posted by yellowstang
Everything I am trying is all here locally.


Cruz,
our firewall will not let you in, unless you have a Cisco VPN client, then I could give you the setup for that, then you could get in.

Dang, this is really frustrating!!! I really appreciate all the help so far guys.
Is the nortel client the same as the cisco client? I have a windows copy of that at home.

sshd file looks good, What version of XFree86 is on the server?
trey85stang is offline  
post #21 of 29 (permalink) Old 04-14-2004, 01:59 PM Thread Starter
Custom Title
 
Join Date: Apr 2002
Location: Hades who?
Posts: 16,521
Quote:
Originally posted by trey85stang
Is the nortel client the same as the cisco client? I have a windows copy of that at home.

sshd file looks good, What version of XFree86 is on the server?
I think the Cisco version is different, and also has to be a certain rev. level, at least if I remember correctly. We all had to install a new version last year when they upgraded something, or else we could never get connected.


XFree86 -version output...

XFree86 Version 4.3.0 (Red Hat Enterprise Linux 3 release: 4.3.0-55.EL)
Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.21-2.ELsmp i686 [ELF]
Build Date: 12 February 2004
Build Host: porky.devel.redhat.com

Before reporting any problems, please make sure you are using the most
recent XFree86 packages available from Red Hat by checking for updates
at http://rhn.redhat.com/errata or by using the Red Hat Network up2date
tool. If you still encounter problems, please file bug reports in the
XFree86.org bugzilla at http://bugs.xfree86.org and/or Red Hat
bugzilla at http://bugzilla.redhat.com

Module Loader present
OS Kernel: Linux version 2.4.21-9.0.1.ELsmp ([email protected]) (g
cc version 3.2.3 20030502 (Red Hat Linux 3.2.3-26)) #1 SMP Mon Feb 9 22:26:51 ES
T 2004

We also have registered this OS on Redhat's site yesterday and downloaded all the lastest and greatest patches. maybe one of those forked something up???
Yellowstang is offline  
post #22 of 29 (permalink) Old 04-14-2004, 03:14 PM
 
Join Date: Nov 2002
Posts: 5,831
Thumbs up

I'm lost honestly... I think you need the power of AbecX on this one.
trey85stang is offline  
post #23 of 29 (permalink) Old 04-14-2004, 03:25 PM Thread Starter
Custom Title
 
Join Date: Apr 2002
Location: Hades who?
Posts: 16,521
Quote:
Originally posted by trey85stang
I'm lost honestly... I think you need the power of AbecX on this one.
LOL, thanks for all your help Trey!

I called Redhat, sat on hold for 30 minutes, hung up, went to the website and filled out the Ask a Techie Question form. get to the end and hit submit (after A LOT of typing and selecting shit from menu's) and it blows up and says it's not working!

Found another link and sent an email to Tech Support. If I don't have this fucker working by noon tomorrow, I am re-installing Redhat and before any patches are applied, I'll test the X sessions. If that works, then I'll apply patches, if it still works I'll re-install the SAS software. I have spent the entire day on this (excpet maybe 1 1/2 hours) and made zero progress! This is kicking a lot of people's butt's, and it has got to be something really stupid that is being over looked, you know Murphy's law...
Yellowstang is offline  
post #24 of 29 (permalink) Old 04-14-2004, 03:49 PM
 
Join Date: Nov 2002
Posts: 5,831
Quote:
Originally posted by yellowstang
LOL, thanks for all your help Trey!

I called Redhat, sat on hold for 30 minutes, hung up, went to the website and filled out the Ask a Techie Question form. get to the end and hit submit (after A LOT of typing and selecting shit from menu's) and it blows up and says it's not working!

Found another link and sent an email to Tech Support. If I don't have this fucker working by noon tomorrow, I am re-installing Redhat and before any patches are applied, I'll test the X sessions. If that works, then I'll apply patches, if it still works I'll re-install the SAS software. I have spent the entire day on this (excpet maybe 1 1/2 hours) and made zero progress! This is kicking a lot of people's butt's, and it has got to be something really stupid that is being over looked, you know Murphy's law...
You could always try posting this at http://www.linuxquestions.org in the networking section. Might get you some answers
trey85stang is offline  
post #25 of 29 (permalink) Old 04-14-2004, 07:24 PM
Lyn
Lifer
 
Join Date: Feb 2003
Location: Texas
Posts: 3,470
OK, I think I'm on to something! I have the same OS loaded at home, sanme exact problem when I try to connect with Cygwin. I am now installing Redhat version9 instead of ES, see what happens then...
Lyn is offline  
post #26 of 29 (permalink) Old 04-14-2004, 08:05 PM
Lyn
Lifer
 
Join Date: Feb 2003
Location: Texas
Posts: 3,470
I've had enough Redhat fun for one day, same thing on version 9, at least out of the box...
Lyn is offline  
post #27 of 29 (permalink) Old 04-14-2004, 08:52 PM
 
Join Date: Nov 2002
Posts: 5,831
Thumbs down

redhat blows, It should be a snap to setup with slackware though

Can you give me access to the redhat machine at your house? I will check it out if you like
trey85stang is offline  
post #28 of 29 (permalink) Old 04-14-2004, 09:16 PM
Lyn
Lifer
 
Join Date: Feb 2003
Location: Texas
Posts: 3,470
Check your PM's in a second.
Lyn is offline  
post #29 of 29 (permalink) Old 04-15-2004, 08:32 AM Thread Starter
Custom Title
 
Join Date: Apr 2002
Location: Hades who?
Posts: 16,521
OK, I'm onto something, for real this time.....

This morning I added my system name into hosts.equiv and I can connect to an X session with Cygwin by typing in this...

X -query systemname


Then I can log in and run my SAS application. There must be something inheirantly (sp?) stupid for it not to trust the client, I thought we told it before to trust everyone??? I'm not done yet, but at least I can get this part of the project off my plate and let her start working from her machine.
Yellowstang is offline  
Sponsored Links
Advertisement
 
Reply

Bookmarks

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the DFWstangs Forums forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome