Hello,
I Magic' ed and decide to install X-Server on my brand new Gentoox Pro Installation.
But How to disable the X-Server Start on boot?
I want to start the X-Server Manually by typing "startx" after a login.
Why i wanted to do that?
Because i discovered my old PC feeling with Gentoox.
Thats why a Linux Beginner like me uses Gentoox Pro.
I want to know the System, where the Gui is screwed in.
Like in good old Windows for Workgroups days with my Dos Knowledge.
I started to use Lftp and IRSSI and........... I loveit.
The Console is great but the beginning is very hard.
There is no autoexec.bat or config.sys
As you see i couldnt find the surely simple "startx" in Boot Config files. Am I right?
And by the way, thanks for that nice Ported Distro.
Magic X-Server with Gentoox Pro
there is no autoexec.bat or config.sys cause this is linux.
But you always have a search button on this forums that is more helpful than autoexec.
Just do a search for startx and you surely should find the answer
But you always have a search button on this forums that is more helpful than autoexec.
Just do a search for startx and you surely should find the answer
Box: XBOX ver 1.1
Mod: Xecutor 2.3 lite+
Hdd: WD 80GB
Dash: Evox, Ava, XBMC
Linux: Gentoox Pro 4.2
Mod: Xecutor 2.3 lite+
Hdd: WD 80GB
Dash: Evox, Ava, XBMC
Linux: Gentoox Pro 4.2
Stop Xserver from starting on bootup
Edit /etc/conf.d/local.start
At the end of local.start locate and comment out the lines as shown below
use nano editor, or vi whatever you like. To comment out a line in this file add a # as the first character in that line. There are 6 lines to add the '#' as the lead character then save and reboot.
===Following taken from /etc/conf.d/local.start===
echo -e " Your network settings are as follows:\n \033[01;31meth0:\033[01;34m" > /tmp/eth0.addr && ifconfig | grep inet -m1 >> /tmp/eth0.addr && cat /tmp/eth0.addr
echo -en "\033[00m\n"
#if [ -f /usr/bin/gdm ]; then
# echo -n "Starting X" && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "."
#fi
/bin/led gggg
#if [ -f /usr/bin/gdm ]; then
# /usr/bin/gdm 1> /dev/null 2> /dev/null
#fi
chmod 777 /dev/dsp
rm -rf /root/.runningmagic 1> /dev/null 2> /dev/null
===End of /etc/conf.d/local.start===
kaos_engr
At the end of local.start locate and comment out the lines as shown below
use nano editor, or vi whatever you like. To comment out a line in this file add a # as the first character in that line. There are 6 lines to add the '#' as the lead character then save and reboot.
===Following taken from /etc/conf.d/local.start===
echo -e " Your network settings are as follows:\n \033[01;31meth0:\033[01;34m" > /tmp/eth0.addr && ifconfig | grep inet -m1 >> /tmp/eth0.addr && cat /tmp/eth0.addr
echo -en "\033[00m\n"
#if [ -f /usr/bin/gdm ]; then
# echo -n "Starting X" && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "."
#fi
/bin/led gggg
#if [ -f /usr/bin/gdm ]; then
# /usr/bin/gdm 1> /dev/null 2> /dev/null
#fi
chmod 777 /dev/dsp
rm -rf /root/.runningmagic 1> /dev/null 2> /dev/null
===End of /etc/conf.d/local.start===
kaos_engr
Default init was still 3
The default init still was 3.
The tip Before with the # before the lines worked very well, thanks.
But i still with "Search words" didnt find the answer on another topic in this forum.
The tip Before with the # before the lines worked very well, thanks.
But i still with "Search words" didnt find the answer on another topic in this forum.
Gentoo(X) doesn't use runlevels like other other Linux Distributions.
You setup /etc/runlevels/<name e.g. default>/<with links to scripts in /etc/init.d to startup>. You can add your own named runlevel and configure your startup requirements. Next, set the runlevel name for the startup level (lN) in /etc/inittab Levels l0-l7 are available, some have a specific function like l0 for shutdown, l1 single user and l6 for reboot. You can configure the others l3-l5
and set the defaultrunlevel in /etc/inittab
Pieces cut from /etc/inittab
======================================
id:3:initdefault:
# Further system initialization, brings up the boot runlevel.
rc::bootwait:/sbin/rc boot
l0:0:wait:/sbin/rc shutdown
l1:S1:wait:/sbin/rc single
l2:2:wait:/sbin/rc nonetwork
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc default
l6:6:wait:/sbin/rc reboot
#z6:6:respawn:/sbin/sulogin
===========================================
l3-l5 are all set the same in GentooX. To configure different levels setup a new /etc/runlevel directory and add the startup items you want for that level and adjust the lN entry to call that new runlevel configuration.
--
kaos_engr
You setup /etc/runlevels/<name e.g. default>/<with links to scripts in /etc/init.d to startup>. You can add your own named runlevel and configure your startup requirements. Next, set the runlevel name for the startup level (lN) in /etc/inittab Levels l0-l7 are available, some have a specific function like l0 for shutdown, l1 single user and l6 for reboot. You can configure the others l3-l5
and set the defaultrunlevel in /etc/inittab
Pieces cut from /etc/inittab
======================================
id:3:initdefault:
# Further system initialization, brings up the boot runlevel.
rc::bootwait:/sbin/rc boot
l0:0:wait:/sbin/rc shutdown
l1:S1:wait:/sbin/rc single
l2:2:wait:/sbin/rc nonetwork
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc default
l6:6:wait:/sbin/rc reboot
#z6:6:respawn:/sbin/sulogin
===========================================
l3-l5 are all set the same in GentooX. To configure different levels setup a new /etc/runlevel directory and add the startup items you want for that level and adjust the lN entry to call that new runlevel configuration.
--
kaos_engr