LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-20-2004, 07:24 AM   #1
jbeiter
Member
 
Registered: Jul 2004
Posts: 105

Rep: Reputation: 15
Disabling X11 on :0


Redhat AS 2.1
kernel 2.4.21-4.EL
XFree86-4.3.0-35.EL

I need to run X11 on a server *without* running it on the console (headless system that uses X11 for an html image service kluge).

I removed/commented everything in /etc/gdm/gdm.conf in the [servers] section and everything referencing 0/:0 in /etc/X11/xdm/xdm-config, then everything in Xservers.

When I boot (rl 5), I get an X message on the console (not headless at the moment) indicating the system has detected there is no X server configured for :0, assumes a configuration error, and that it is starting one for me.

Does anyone know what facility is attempting to think for me, and how it can be beaten into submission?
 
Old 07-20-2004, 03:09 PM   #2
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
maybe I am not understanding what you are wanting.... but if you are trying to run an app from a client off this server, try using ssh, there are a few options to specify to use local x or remote x.

what exactly are you trying to do?
 
Old 07-21-2004, 07:46 AM   #3
jbeiter
Member
 
Registered: Jul 2004
Posts: 105

Original Poster
Rep: Reputation: 15
We use Websphere Application server to provide backend services to other applications. One of the functions of this server is to display requested images to http using X11 (for reasons unknown to me).

This will be a headless system with the console directed to a serial port... so no local keyboard and mouse. Through one of my configuration iterations, kudzu removed the mouse and upon attempting to start X11, it refused to start due to a lack of mouse on :0.

So I put the mouse back on to get services back up and running but can't figure out how to cure X11 from this unhealthy obscession with :0. It's been awhile, but I know I used to configure standard X11 on SysV unix to just provide X services (to an XStation CAD pool) without running on :0.

The Remote-Serial-Console-Howto also indicates this procedure (section 7.2.1) but something has been microsofted(tm) into presuming the system knows how to run things better than the user.

So in a nutshell, I need to run X, but not on 0:0 (console). I'm not adept at X11/XFree86 so there may be something fundamental I am missing.
 
Old 07-25-2004, 12:35 AM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Have you tried running the application without starting X at all? In many cases, as long as the libraries are present, the server does not need to be running. An example:

I run X on my desktop (desktop.example.org). I first allow X connections from my server by saying "xhost +server.example.org". I ssh into my server (server.example.org). My server is not running X. But I type "xterm -display desktop.example.org:0 -- or set my $DISPLAY variable in the shell to the address of my computer's X server and just type xterm. The xterm window opens on my local display (it runs on the server).

Is this similar to what you are trying to do? I think I am getting confused as to why you absolutelly need the server running. I am not familiar with the specific software you are using so maybe this is going in the wrong direction.

Last edited by frob23; 07-25-2004 at 12:36 AM.
 
Old 07-26-2004, 08:47 AM   #5
jbeiter
Member
 
Registered: Jul 2004
Posts: 105

Original Poster
Rep: Reputation: 15
The application doesn't seem to actually display anything..but rather I get the impression it is some kind of Java hack to generate an image, using X11 libraries. It did work okay when I set my display locally, like you suggested.

What I ended up doing is making kudzu happy by plugging in a mouse/keyboard then turning off the bootup checks in /etc/sysconfig/kudzu.

Then I modified the X service to be started without access controls (~/X -ac) so it won't get fussy about people connecting to :0. This seemed to resolve my problems.
 
Old 07-26-2004, 12:28 PM   #6
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Isn't the choice to run headless often a BIOS option?
 
Old 07-27-2004, 04:37 PM   #7
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Re: Disabling X11 on :0

Quote:
Originally posted by jbeiter
I need to run X11 on a server *without* running it on the console (headless system that uses X11 for an html image service kluge).
Xvfb will give you a "virtual frame buffer" for headless X.

Last edited by stickman; 07-27-2004 at 04:38 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
Core 4 - X11-devel complains about X11-libs which are installed Ephracis Fedora 3 09-05-2005 09:32 AM
Disabling Locales? voyciz Linux - General 0 02-25-2005 03:22 PM
xorg-x11-libs required by xorg-x11-devel darknails Fedora 1 01-13-2005 02:34 PM
Roaming X11/Xfree86, X11 proxy zapp Linux - Software 1 09-12-2003 08:06 AM
Disabling multicast BlackBear Linux - Networking 2 06-27-2003 12:17 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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