Tell me more ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

During the installation of Raspian I chose "Start X-Server after boot", but now I want to boot it once without starting the X-Server, so I've got more memory to run a program.

How do I boot without starting the X-Server?

share|improve this question

2 Answers

up vote 18 down vote accepted

With the Rasbian image, you can re-run the initial start up script using:

$ sudo raspi-config

and entering your sudo password.

This will bring up the same menu options that you got after first boot.

You do not need to remake all your first boot choices, just use the arrow keys to move to the menu options you want to change.

In your case, selecting:

Start X-server after boot?

and choosing:

no or disable

will sort you out.

share|improve this answer
and what does that actually change? – Thorbjørn Ravn Andersen Aug 9 '12 at 10:34
The raspi-config script creates a GUI menu which allows you to make several system config changes. This portion of the script enables or disables lightdm, the desktop manager used for Raspbian. It uses the same update-rc.d command as is described by Bryan Dunmore. Except Raspbian does not use GDM by default, and the RasPi will barely run it if installed. – zenbike Aug 10 '12 at 6:59

How X.Org works is that you have a desktop manager that boots the X Server for you. That means that in order to prevent X Server from starting, you need to remove your destkop manager from the daemons list.

If you are using GNOME then you're desktop manager is GDM. If you're using KDE you're desktop manager will be KDM. For this, I'm going to assume that you're using GNOME; ergo you are using GDM as your desktop manager.

To disable a daemon in Debian (which Raspbian is a fork of) you have to run the following command.

$ sudo update-rc.d <daemon> disable

So in order to disable GDM we have to run the following command.

$ sudo update-rc.d gdm disable

And now on your next reboot GDM shouldn't start and will, in turn, not start X Server.

References

  1. Disabling daemons - Daemon - Debian Wiki
share|improve this answer
3  
the exact command for the raspberry is: sudo update-rc.d lightdm disable – mirk Jan 17 at 17:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.