LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-08-2004, 09:07 AM   #1
offworld
LQ Newbie
 
Registered: Jan 2004
Distribution: Knoppix/Debian
Posts: 13

Rep: Reputation: 0
X script uncertainty


Hello world,

I am running Debian(Knoppix) installed to drive and most everything works well. I enjoy Linux but am fairly new to it.
My question concerns starting an X window manager without logging first into a display manager. Currently the load process has KDM started in runlevel 2-5 . I mostly use Fluxbox and don't really need any of the others. I have done some studying on this and tried some of the man help in a smaller sized distro, it's fairly easy to grasp with only one window manager and no display manager . However, I don't really comprehend which script is taking priority or actually being run first during the initial runlevel 5 start up. I know KDM is getting it's signal somewhere at the end and initd is termed but I still don't know which part in which file to change. Basically, there are several .Xsession scripts in different locations and the only .xinitrc script is scripted towards one of them. When I run /etc/X11/Xsession in xterm, it loads KDE. Same with /etc/X11/xinit/xinitrc because it's scripted towards /etc/X11/Xsession. In /etc/init.d there is another xsession, but it doesn't script KDE.
There are no Xsessions/xinitrc scripts in any directories besides /etc/.. that I've found.
Then there's the rc, inittab, and KDE/KDM scripts/configs. Essentially, my goal is for xinit_xinitrc_X to load Fluxbox directly and bypass KDE/KDM altogether, but I'm nervous about changing this before I understand. I bet there's a simple answer and I've probably already read it somewhere, just confused with the structure. If I knew which script or scripts to alter, I could write the various details myself. Please, what's the best way to reach this goal?
 
Old 03-08-2004, 11:29 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,981

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
kdm is set as the default DM and run from /etc/X11/default-display-manager. That is the whole name of the config file by the way. It usually has one line and looks like this in knoppix/debian:

/usr/bin/kdm

If you don't want kdm to run, just comment out the line by putting a "#" in front:

#/usr/bin/kdm

You'll need to be root to edit the file. After doing so after you reboot you will come to a command line login instead of kdm.
 
Old 03-08-2004, 01:02 PM   #3
offworld
LQ Newbie
 
Registered: Jan 2004
Distribution: Knoppix/Debian
Posts: 13

Original Poster
Rep: Reputation: 0
I looked into that file earlier but decided to remove all the kdm entries with sysvedit_Ksysv. After reboot, at command line I couldn't start X successfully until I ran kdm. Startx would bring me into the X GUI for a second, then back to command line with several errors. X, the same and fluxbox too. I changed .xinitrc but I think that was the problem, the syntax is wrong?;

#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)

. /usr/bin/fluxbox

I think there are some enternal graphical errors aswell. Cmdline output an unknown Fluxbox error at some point.
Should #/etc/X11/xinit/xinitrc be uncommented?
Fluxbox man pages discribe sometimes there be an '&' after the app name, or is it the
period before . /fluxbox? Many possiblities. Don't know but I'll keep at it, if it's figured out I'll post what worked.
 
Old 03-08-2004, 01:20 PM   #4
offworld
LQ Newbie
 
Registered: Jan 2004
Distribution: Knoppix/Debian
Posts: 13

Original Poster
Rep: Reputation: 0
I found this page should anybody else need it;
http://www.tldp.org/HOWTO/XWindow-Us...gx.html#AEN348
 
Old 03-08-2004, 02:39 PM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,981

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
What I gave you works because I've done it myself with knoppix, mostly due to the fact that kdm was hanging up for long periods of time. As you discovered, debian uses SysV startup scripts for each major DM instead of using runlevels as a code for whether or not to startup X. When you have nothing in default-display-manager, debian reverts to text mode which is what you want. You just get a message that kdm could not be started and is not the default DM. It looks like those SysV scripts are pretty screwed up now and X will not start.
 
Old 03-08-2004, 06:58 PM   #6
offworld
LQ Newbie
 
Registered: Jan 2004
Distribution: Knoppix/Debian
Posts: 13

Original Poster
Rep: Reputation: 0
True, that method does work.
Kdm is still working fine and I did actually get Startx to load fluxbox, but if I hadn't created a two gig swap part I'd be crashed right now. I mean, Top showed something like 2000 + processes, the bulk of them .xinitrc. I still don't know what went wrong, so I just reconfigured with sysV editor, kdm at runlevel 5. For some reason, X couldn't process .xinitrc with # /etc/X11/xinit/xinitrc commented, but uncommented it was being backgrounded hundreds upon hundreds of times. Basically, startx fluxbox &
works, only if .xinitrc works thousands of times. More homework on this one for me.

Last edited by offworld; 03-08-2004 at 07:00 PM.
 
Old 03-08-2004, 10:55 PM   #7
offworld
LQ Newbie
 
Registered: Jan 2004
Distribution: Knoppix/Debian
Posts: 13

Original Poster
Rep: Reputation: 0
Kilgoretrout, thanks for the advice it helped me see something obvious. Here's the best I could come up with. /etc/kde3/kdm/kdrc is the script I altered to achieve the original goal.
I removed all the other WM's and changed some of the X core booleans concerning login and that was it. Now Fluxbox loads three times as fast.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 04:19 AM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 11:00 AM
Linux/Xp uncertainty in what to do? jmr0311 Linux - Newbie 5 07-14-2004 11:58 AM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
linux 9 and java script error - premature end of script header sibil Linux - Newbie 0 01-06-2004 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:26 AM.

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