Hello,
I am running debian whezzy on my rapi and made that the desktop starts at at the start.
How can i make that no gui start at start, only the terminal?
Raspberry Pi greats from Germany
DJburner
-
- Posts: 4277
- Joined: Sun Jan 15, 2012 1:11 pm
Re: Remove startx at start?
Undo what you did.
Seriously, can you tell us what you did to make it load the GUI automatically?
(There are several different ways of doing it )
Seriously, can you tell us what you did to make it load the GUI automatically?
(There are several different ways of doing it )
And some folks need to stop being fanboys and see the forest behind the trees.
(One of the best lines I've seen on this board lately)
(One of the best lines I've seen on this board lately)
Re: Remove startx at start?
When you start it first there is a blue configuration screen where i made: startx on boot
Re: Remove startx at start?
Change the default runlevel in /etc/inittab?
Re: Remove startx at start?
Hmm, what to change here:?
Code: Select all
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
# The default runlevel.
id:2:initdefault:
# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS
# What to do in single-user mode.
~~:S:wait:/sbin/sulogin
# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin
# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."
# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop
# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
# <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty --noclear 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
#Spawn a getty on Raspberry Pi serial line
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
Re: Remove startx at start?
Open a terminal and type "sudo raspi-config". That gives you the blue configuration thing, and you can change it back.
Re: Remove startx at start?
Obviously the bit that says "# The default runlevel. id:2:initdefault:" - Change it to 3.DJburner wrote:Hmm, what to change here:?Code: Select all
# /etc/inittab: init(8) configuration. # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ # The default runlevel. id:2:initdefault: # Boot-time system configuration/initialization script. # This is run first except when booting in emergency (-b) mode. si::sysinit:/etc/init.d/rcS # What to do in single-user mode. ~~:S:wait:/sbin/sulogin # /etc/init.d executes the S and K scripts upon change # of runlevel. # # Runlevel 0 is halt. # Runlevel 1 is single-user. # Runlevels 2-5 are multi-user. # Runlevel 6 is reboot. l0:0:wait:/etc/init.d/rc 0 l1:1:wait:/etc/init.d/rc 1 l2:2:wait:/etc/init.d/rc 2 l3:3:wait:/etc/init.d/rc 3 l4:4:wait:/etc/init.d/rc 4 l5:5:wait:/etc/init.d/rc 5 l6:6:wait:/etc/init.d/rc 6 # Normally not reached, but fallthrough in case of emergency. z6:6:respawn:/sbin/sulogin # What to do when CTRL-ALT-DEL is pressed. ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now # Action on special keypress (ALT-UpArrow). #kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work." # What to do when the power fails/returns. pf::powerwait:/etc/init.d/powerfail start pn::powerfailnow:/etc/init.d/powerfail now po::powerokwait:/etc/init.d/powerfail stop # /sbin/getty invocations for the runlevels. # # The "id" field MUST be the same as the last # characters of the device (after "tty"). # # Format: # <id>:<runlevels>:<action>:<process> # # Note that on most Debian systems tty7 is used by the X Window System, # so if you want to add more getty's go ahead but skip tty7 if you run X. # 1:2345:respawn:/sbin/getty --noclear 38400 tty1 2:23:respawn:/sbin/getty 38400 tty2 3:23:respawn:/sbin/getty 38400 tty3 4:23:respawn:/sbin/getty 38400 tty4 5:23:respawn:/sbin/getty 38400 tty5 6:23:respawn:/sbin/getty 38400 tty6 # Example how to put a getty on a serial line (for a terminal) # #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100 #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100 # Example how to put a getty on a modem line. # #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3 #Spawn a getty on Raspberry Pi serial line T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
Re: Remove startx at start?
Cool thx,
Runlevel 2 is startx, 3 is terminal and 1 is nothing?
Runlevel 2 is startx, 3 is terminal and 1 is nothing?
-
- Posts: 4277
- Joined: Sun Jan 15, 2012 1:11 pm
Re: Remove startx at start?
IME, 2 was "terminal only" and 5 was "full GUI". 3 & 4 were "undefined". And 1, I never tried.DJburner wrote:Cool thx,
Runlevel 2 is startx, 3 is terminal and 1 is nothing?
The point is that it is all arbitrary - it can be whatever the system designers pick. I.e., whatever they put in the various "rc.X" directories.
Anyway, the best advice is what I gave originally: Whatever you did (whatever tool you used) to turn the GUI on - is the one you should use to turn it off.
Here, that seems to be the "raspi-config" program.
And some folks need to stop being fanboys and see the forest behind the trees.
(One of the best lines I've seen on this board lately)
(One of the best lines I've seen on this board lately)
Re: Remove startx at start?
Okey i used the config-raspi
Thanks @ all for help!

Thanks @ all for help!
-
- Posts: 83
- Joined: Sun May 20, 2012 2:14 am
Re: Remove startx at start?
Actually Run Level 1 is usually used as Single User, Command Line without Networking running. It's used for maintenance tasks since the single user is typically Root.
Re: Remove startx at start?
Yup. Basically for serious things i.e. you forgot root password, or need to repair HDD corruption.CCitizenTO wrote:Actually Run Level 1 is usually used as Single User, Command Line without Networking running. It's used for maintenance tasks since the single user is typically Root.
Re: Remove startx at start?
pi@raspberry ~ $ Sudo raspi-config
is a nice terminal command to use a GUI to change things like boot to GUI enviroment. Cool!
is a nice terminal command to use a GUI to change things like boot to GUI enviroment. Cool!