LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-21-2006, 05:42 PM   #1
aobrien
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Rep: Reputation: 0
Setting up Linux for remote Xwindows


I have setup a Red Hat AS3 server and would like to connect to it with cygwin's xwindows, on a MS Windows box. My cygwinis working fine and I can connect to other linux servers with xwindows configured, I just cannot connect to the one I have just setup.

I have installed kdebase with yum. When I try to run startx I get the errors below. Any idea what I am doing wrong?

Am I wrong to think that if I run startx and it runs then I should be able to connect remotely. startkde is for starting kde on the box same box correct? Like I login to console and run startkde, and this starts the graphical interface on the terminal I am on?




[root]$ startx
hostname: Unknown host
Using authority file /root/.Xauthority
Writing authority file /root/.Xauthority


XFree86 Version 4.3.0 (Red Hat Enterprise Linux 3 release: 4.3.0-81.EL)
Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.9-1.906_ELsmp i686 [ELF]
Build Date: 16 March 2005
Build Host: not allowed to post urls yet...

Before reporting any problems, please make sure you are using the most
recent XFree86 packages available from Red Hat by checking for updates
at [ur1]not allowed to post urls yet...[/ur1] or by using the Red Hat Network up2date
tool. If you still encounter problems, please file bug reports in the
XFree86 bugzilla at [ur1]not allowed to post urls yet...[/ur1] and/or Red Hat
bugzilla at [ur1]not allowed to post urls yet...[/ur1]

Module Loader present
OS Kernel: Linux version 2.4.21-32.0.1.ELsmp (not allowed to post urls yet...) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)) #1 SMP Tue May 17 17:52:23 EDT 2005
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Tue Feb 21 11:25:50 2006
(EE) Unable to locate/open config file
(EE) Error from xf86HandleConfigFile()

Fatal server error:
no screens found

If you encounter a server crash, please report the problem by filing a bug
report in the XFree86 bugzilla at [ur1]not allowed to post urls yet...[/ur1] and/or Red Hat
bugzilla at [ur1]not allowed to post urls yet...[/ur1]. When filing your report, it
is very important that you explain your problem in as much detail as possible,
and include a complete description on how to reproduce the problem. After
submitting the bug report, attach the following files as uncompressed
individual file attachments using the bugzilla file attachment feature:
- X server log file: /var/log/XFree86.0.log
- Kernel log file: /var/log/messages

XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.
 
Old 02-21-2006, 05:56 PM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 33
Quote:
(EE) Unable to locate/open config file
(EE) Error from xf86HandleConfigFile()
The XFree configuration file doesn't exists. You need to configure it first.

I would also reccomend putting a "&" after "startx". This way teh process is put in the background, and it will not terminate if you close teh SSH/Console session. So it's like:
Code:
startx &

Last edited by saman007uk; 02-21-2006 at 06:06 PM.
 
Old 02-21-2006, 11:49 PM   #3
aobrien
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks 007, I created the file and ran nohup startx & and tail nohup.out and it seems to have started correctly. No errors. But I am still unable to connect with my cygwin install, it just hangs and I never get the login screen. Below are the x processes I have running. I am a little confused from some of the stuff I am reading, sounds like I need the server to run x client, is that kdm then. I started it as well and have still not been able to connect.

[aobrien]$ ps -ef|grep x
root 480 1 0 11:11 ? 00:00:00 klogd -x
root 3494 2732 0 16:47 pts/1 00:00:00 /bin/sh /usr/bin/X11/startx
root 3509 3494 0 16:47 pts/1 00:00:00 xinit /etc/X11/xinit/xinitrc --
root 3530 3514 0 16:47 ? 00:00:00 ssh-agent /etc/X11/xinit/Xclients
aobrien 3664 2732 0 16:56 pts/1 00:00:00 grep x
 
Old 02-22-2006, 01:12 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 49
Umm... you don't want to run startx or configure X on the remote machine, that will just start the X server on the remote machine (not what you want). This has absolutely nothing to do with X on the remote machine at all (it makes no difference if there were no X at all on that machine).

You want the programs to use the local X server on your Windows. You want to first start the X server in Cygwin (run startx in Cygwin). Then in the xterm, ssh using "ssh -Y user@host ..." (this enables X forwarding). Make sure that X forwarding is allowed in the /etc/ssh/sshd_config on the remote machine.
 
  


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
Setting up remote Linux webserver Ben Sytko Linux - Newbie 6 02-19-2004 03:21 PM
help installing xwindows via remote vher Linux - Newbie 2 10-02-2003 10:28 PM
remote xwindows support vikasmj Linux - Newbie 6 12-03-2002 09:20 AM
Remote Xwindows from windows to unix simquest Linux - General 3 09-12-2002 07:44 PM
Remote Xwindows from windows to unix simquest Linux - Software 3 08-23-2002 07:30 PM


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