View Full Version : Good X client to connect Win 2K to Linux
Yellowstang
04-13-2004, 06:42 PM
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
trey85stang
04-13-2004, 07:58 PM
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)
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
Stang2be
04-13-2004, 10:00 PM
exceed is the only thing I've used in the past in windows as a remote X client
AbecX
04-13-2004, 11:01 PM
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
Yellowstang
04-14-2004, 08:19 AM
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...
[robw@emmynoether 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
trey85stang
04-14-2004, 08:34 AM
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...
[robw@emmynoether 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 user@host
export DISPLAY=yourip:0.0
(now you can run the command for sas)
Yellowstang
04-14-2004, 09:37 AM
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... :mad:
Thanks for the help so far, I do appreciate it!
chambers
04-14-2004, 09:55 AM
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 (http://www.tightvnc.com/) - 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 (http://www.hummingbird.com/products/nc/exceed/index.html?cks=y)
Reflection X (http://www.wrq.com/products/reflection/pc_x_server/)
XWin32 (http://www.starnet.com/)
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.
AbecX
04-14-2004, 09:57 AM
Make sure when you ssh in you do a ssh -X user@site.com
Chamber, cgywin can be ran as an x server for windows.
AbecX
04-14-2004, 10:03 AM
all you should have to do is these 3 commands
on the server type
xauth
then on the client type
xhost +
ssh -X user@host.net
xcalc
that should export xcalc. We do this shit all the time to export gui based monitoring stuff from our sniffer box.
trey85stang
04-14-2004, 10:32 AM
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 user@host.net
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
AbecX
04-14-2004, 10:34 AM
yeah its on the client.
Yellowstang
04-14-2004, 11:08 AM
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!
trey85stang
04-14-2004, 11:18 AM
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 user@host
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??
Yellowstang
04-14-2004, 11:40 AM
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 user@host
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 10:07:21 emmynoether gdm(pam_unix)[1658]: session opened for user root by
(uid=0)
Apr 14 10:07:22 emmynoether gconfd (root-1867): starting (version 2.2.1), pid 18
67 user 'root'
Apr 14 10:07:22 emmynoether gconfd (root-1867): Resolved address "xml:readonly:/
etc/gconf/gconf.xml.mandatory" to a read-only config source at position 0
Apr 14 10:07:22 emmynoether gconfd (root-1867): Resolved address "xml:readwrite:
/root/.gconf" to a writable config source at position 1
Apr 14 10:07:22 emmynoether gconfd (root-1867): Resolved address "xml:readonly:/
etc/gconf/gconf.xml.defaults" to a read-only config source at position 2
Apr 14 10:07:23 emmynoether xinetd[1877]: warning: can't get client address: Tra
nsport endpoint is not connected
Thanks again guys!
trey85stang
04-14-2004, 12:07 PM
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?
AbecX
04-14-2004, 12:22 PM
try rm -rf ~/.Xauthority
If you want, email me some logins, and I'll see if I can get it to work here.
Yellowstang
04-14-2004, 01:31 PM
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 11:17:16 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.
trey85stang
04-14-2004, 01:46 PM
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? :confused: I have a windows copy of that at home.
sshd file looks good, What version of XFree86 is on the server?
Yellowstang
04-14-2004, 01:59 PM
Originally posted by trey85stang
Is the nortel client the same as the cisco client? :confused: 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 (bhcompile@bugs.devel.redhat.com) (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???
trey85stang
04-14-2004, 03:14 PM
I'm lost honestly... I think you need the power of AbecX on this one. :)
Yellowstang
04-14-2004, 03:25 PM
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...
trey85stang
04-14-2004, 03:49 PM
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 :)
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...
I've had enough Redhat fun for one day, same thing on version 9, at least out of the box...
trey85stang
04-14-2004, 08:52 PM
redhat blows, It should be a snap to setup with slackware though :cool:
Can you give me access to the redhat machine at your house? I will check it out if you like :)
Check your PM's in a second.
Yellowstang
04-15-2004, 08:32 AM
OK, I'm onto something, for real this time.....:D
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.
vBulletin v3.0.6, Copyright ©2000-2008, Jelsoft Enterprises Ltd.