DJburner
Posts: 6
Joined: Fri Jul 27, 2012 3:20 pm

Remove startx at start?

Fri Jul 27, 2012 3:27 pm

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

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Remove startx at start?

Fri Jul 27, 2012 3:35 pm

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 )
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)

DJburner
Posts: 6
Joined: Fri Jul 27, 2012 3:20 pm

Re: Remove startx at start?

Fri Jul 27, 2012 3:37 pm

When you start it first there is a blue configuration screen where i made: startx on boot

jdbennet
Posts: 96
Joined: Sun Jul 22, 2012 2:25 pm

Re: Remove startx at start?

Fri Jul 27, 2012 3:39 pm

Change the default runlevel in /etc/inittab?

DJburner
Posts: 6
Joined: Fri Jul 27, 2012 3:20 pm

Re: Remove startx at start?

Fri Jul 27, 2012 3:44 pm

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

khh
Posts: 49
Joined: Thu Jul 26, 2012 12:16 am

Re: Remove startx at start?

Sat Jul 28, 2012 1:34 am

Open a terminal and type "sudo raspi-config". That gives you the blue configuration thing, and you can change it back.

DJburner
Posts: 6
Joined: Fri Jul 27, 2012 3:20 pm

Re: Remove startx at start?

Sat Jul 28, 2012 8:05 am

Thx :)

jdbennet
Posts: 96
Joined: Sun Jul 22, 2012 2:25 pm

Re: Remove startx at start?

Sat Jul 28, 2012 6:15 pm

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
Obviously the bit that says "# The default runlevel. id:2:initdefault:" - Change it to 3.

DJburner
Posts: 6
Joined: Fri Jul 27, 2012 3:20 pm

Re: Remove startx at start?

Sat Jul 28, 2012 6:57 pm

Cool thx,

Runlevel 2 is startx, 3 is terminal and 1 is nothing?

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Remove startx at start?

Sat Jul 28, 2012 7:58 pm

DJburner wrote:Cool thx,

Runlevel 2 is startx, 3 is terminal and 1 is nothing?
IME, 2 was "terminal only" and 5 was "full GUI". 3 & 4 were "undefined". And 1, I never tried.

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)

DJburner
Posts: 6
Joined: Fri Jul 27, 2012 3:20 pm

Re: Remove startx at start?

Sat Jul 28, 2012 8:17 pm

Okey i used the config-raspi :)
Thanks @ all for help!

CCitizenTO
Posts: 83
Joined: Sun May 20, 2012 2:14 am

Re: Remove startx at start?

Sun Jul 29, 2012 7:23 am

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.

jdbennet
Posts: 96
Joined: Sun Jul 22, 2012 2:25 pm

Re: Remove startx at start?

Sun Jul 29, 2012 3:14 pm

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.
Yup. Basically for serious things i.e. you forgot root password, or need to repair HDD corruption.

User avatar
Polydnj
Posts: 25
Joined: Wed Oct 10, 2012 1:59 am
Contact: Website

Re: Remove startx at start?

Fri Oct 12, 2012 7:29 pm

pi@raspberry ~ $ Sudo raspi-config

is a nice terminal command to use a GUI to change things like boot to GUI enviroment. Cool!

Return to “Beginners”