Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
build your own runlevels ?!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
raptor
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 171

PostPosted: Sun Nov 17, 2002 6:05 pm    Post subject: build your own runlevels ?! Reply with quote

I read somewhere in the DOCS about the virtual-runlevels of Gentoo, so my question is how can I build my own runlevel ? What I want to do is create a virtual run-level for LTSP, what I mean ?
I want to be able to say :

telinit ltsp-run-level

and this way to start gdm, dhcpd, tftp, nfs, portmap....
Otherwise neither of them must be started...

How can I do this..?

PS. One problematic point is starting gdm, 'cause noramlly I login in text console and "startx &" into X if i want... But when i start gdm when i'm in X .. bad things happen :"( i.e. gdm tries to start another X, so how i can start gdm in a way that no graphical login shows, but only waiting for remote connections !!
Back to top
View user's profile Send private message
nalin
Apprentice
Apprentice


Joined: 27 Sep 2002
Posts: 172
Location: Long Beach

PostPosted: Mon Nov 18, 2002 5:30 pm    Post subject: Reply with quote

create etc/runlevel/runlevel_name
make or use rc scripts in /etc/init.d/
rc-update add rc_script runlevel_name

To boot to the custom runlevel modify etc/initab
I believe something like
-------------------------------------------------
...
# Default runlevel.

id:4:initdefault:

# System initialization (runs when system boots).
#DE:S12345:respawn:/sbin/devfsd /dev -fg
# Script to run when going single user (runlevel 1).
~~:S:wait:/sbin/sulogin

si:S:sysinit:/sbin/rc boot
l0:0:wait:/sbin/rc shutdown
l1:1:wait:/sbin/rc single
l2:2:wait:/sbin/rc nonetwork
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc custom_runlevel
...
---------------------------------------------------------------

the rc-scripts guide will give additional information and probably help more than I...

As for x, you might want to check the x howto(?) or x-free's site to find the proper flag if such exists and modify in a similar manner to the security guide (you may need to modify different files depending on which display manager your using, the security guide detailed this, in a different context, last time i looked at it)
Back to top
View user's profile Send private message
nalin
Apprentice
Apprentice


Joined: 27 Sep 2002
Posts: 172
Location: Long Beach

PostPosted: Mon Nov 18, 2002 5:30 pm    Post subject: Reply with quote

sry dbl post

Last edited by nalin on Mon Nov 18, 2002 5:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum