Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] "I" like questioning to start XDM possible ??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1498
Location: indiana

PostPosted: Thu Aug 04, 2011 9:38 pm    Post subject: [solved] "I" like questioning to start XDM possibl Reply with quote

hi there, i`d like to decide at each system start if the x server should start. i know it`s possible via the "interactive" boot procedure, but i don`t want to press the "I" button every time. i am not skilled enough to change the "/etc/init.d/xdm" file, is there another possibility ??? thanks in advance ...
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen7 3700x ; Geforce1650 ; kernel 5.8.13


Last edited by Mgiese on Fri Aug 05, 2011 6:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Fri Aug 05, 2011 1:20 am    Post subject: Reply with quote

Sure, don't use xdm. Setup a ~/.xinitrc file in your users home directory, login at the prompt, then if you want to start X, just run startx.
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Fri Aug 05, 2011 3:11 am    Post subject: Reply with quote

You can make another runlevel which is identical except for not having xdm. Then choose at boot time using your bootloader.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4#doc_chap5
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1796

PostPosted: Fri Aug 05, 2011 3:48 am    Post subject: Reply with quote

rh1 wrote:
Sure, don't use xdm. Setup a ~/.xinitrc file in your users home directory, login at the prompt, then if you want to start X, just run startx.


That might not be a good idea since it renders things like screen lock useless.

I personally use cdm.
_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1091
Location: Massachusetts USA

PostPosted: Fri Aug 05, 2011 4:14 am    Post subject: Reply with quote

Add xdm-setup to the boot run level and in the /boot/grub/grub.conf file add nox to the kernel line of a menu entry if you do not want to run the x server. With 2 menu entries, one without nox and one with nox, you can select from the grub menu if you want X to start or not.

All xdm-setup does is check the kernel command line for the presence of nox and if it finds it sets a flag to prevent the x server from starting.
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1498
Location: indiana

PostPosted: Fri Aug 05, 2011 6:07 pm    Post subject: Reply with quote

passing "nox" to the kernel was enough, adding xdm-setup to the boot level, destroyed my old /conf.d/xdm file :D
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen7 3700x ; Geforce1650 ; kernel 5.8.13
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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