Q. How do I start or stop X.Org from a command prompt?
A. X.org is open-source implementation of the X11 system. It is an open source X11-based desktop infrastructure. Xorg provides an interface between your hardware and the graphical software you want to run. Besides that, Xorg is also fully network-aware, meaning you are able to run an application on one system while viewing it on a different one.
Start X.Org Server
There are two ways, just type startx:
$ startx
Alternatively, run init script such as /etc/init.d/gdm
# /etc/init.d/gdm start
OR
$ sudo /etc/init.d/gdm start
Ctrl+Alt+Backspace - to stop server
Press Ctrl+Alt+Backspace to immediately kill the server - no questions asked.
Agian, you can use init script to stop session:
# /etc/init.d/gdm stop
OR
$ sudo /etc/init.d/gdm stop
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop








![Linux Find Out If the PCIe / AGP / VGA Driver Is Installed OR NOT [ Radeon X1550 64 bit ]](http://s13.cyberciti.org/images/shared/rp/3/10.jpg)



{ 7 comments… read them below or add one }
Another method is to change the runlever…
init 3 – turn off X
init 5 – turn on X
didn’t work for ubuntu 9.04 at all !! could start but nit stop :-(
and neither did the runlevels changes using init
Doesn’t work for kubuntu 10.10 either
For kubuntu, you would need to replace gdm with kdm, i believe
this was disabled for several versions now, use this first:
setxkbmap -option terminate:ctrl_alt_bksp
then you can use the keystrokes
Several reasons? I just want to turn off X so that I can run the Nividia script!! i don’t understand why this has to be so difficult.
Setting init 3 (after hitting CTRL+ALT+F2 at login screen) did it for me so I was able to install the drivers.