LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-25-2005, 09:39 AM   #1
kanati
LQ Newbie
 
Registered: Nov 2004
Location: Chicago
Distribution: Debian Sarge
Posts: 11

Rep: Reputation: 0
X without a monitor


This seems like a common setup, but I can't find any documentation about what config file I need to change.

I'm setting up an old PIII as a file server, sitting in a closet with only the power cord and an ethernet cable attached. I'd like to connect via xdmcp.

With it's current setup, since there is no monitor, keyboard, or mouse attahed, X keeps crashing because it can't find any of these.

If I stop gdm, and restart it with --no-console, everything works great because it doesn't try to start X. So, how do I add that command line option to what config file or init script so that it starts up with no-console everytime?

I'm running Debian unstable, and couldn't find anything that looked relevant in gdm.conf.

Thanks up front.
 
Old 06-25-2005, 10:20 AM   #2
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
You just have to change your runlevel. Edit your /etc/inittab file. There is a line defining your runlevel. Edit that line and make it to 1. This will start up the computer but later on you will have to manually start all the services. The other way is to change the gdm file that exists in your default runlevel.
Suppose your default runlevel is 2. Then modify the file in /etc/rc2.d which starts up gdm. If the name of the file is suppose S13gdm rename the file to say S13gdm_. As the machine starts up it will look for the file S13gdm which it will not be able to locate n hence our X doesnot start. All other services will start off.

-Prasanta
 
Old 06-26-2005, 10:42 AM   #3
kanati
LQ Newbie
 
Registered: Nov 2004
Location: Chicago
Distribution: Debian Sarge
Posts: 11

Original Poster
Rep: Reputation: 0
Um, no. I just want to start gdm with a command line argument from init.

I figured out how to do this for anyone who needs to add command line arguments to a daemon that is started from init. With Debian, at least.

I added a variable in /etc/init.d/gdm called PROGARGS with "--no-console". Then when it calls start-stop-daemon, I add the variable at the end of the command. Be sure to put the "-- " (with space) before the argument. And always back up your files before making any changes.

Code:
start-stop-daemon --start --quiet --pidfile $PIDFILE --name gdm $SSD_ARG  -- $PROGARGS  || echo -n " already running"
 
  


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
default monitor on nvidia / dual monitor setup fenderog SUSE / openSUSE 3 05-01-2009 06:36 PM
New monitor problems, Fedora Cora 3, Samsung 913N monitor gingermeatboy Linux - Hardware 2 08-23-2005 09:22 AM
Booting to wrong Monitor (w/ dual monitor setup) NeoNostalgia Linux - General 1 06-30-2004 02:49 AM
Monitor doesn't wake up after stanby and battery monitor problems (tm) Linux - Laptop and Netbook 2 03-23-2004 07:34 AM
Monitor problems -- changing resolution back w/o monitor Jiawen Linux - Hardware 5 03-17-2004 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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