LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2011, 11:03 PM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: OpenSUSE
Posts: 1,396
Blog Entries: 7

Rep: Reputation: 166Reputation: 166
command to close X


hi guys i know the command to start the x server is "startx" and ctrl alt delete is the keyboard short cut or atleast on slackware, to close X. i wanted to know what the comand is though.
 
Old 06-15-2011, 12:57 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
If you boot into runlevel 4 (on Slackware "with X") you can execute "telinit 3" as root.

You can as well configure <CTRL>+<ALT>+<BACKSPACE> to close the X-server, this can be configured in the /etc/X11/xorg.conf.d/90-keyboard-layout.conf file (if you're running Slackware).

If your X-Server is using HAL you may look for a ??-keyboard.fdi file in your /etc/hal/fdi/policy/ directory or edit your xorg.conf (if you have any)

Markus
 
Old 06-15-2011, 04:41 AM   #3
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Question

This is a distro specific question.


Debian Option : /etc/init.d/gdm3 stop


Which one are you running ?
 
Old 06-15-2011, 04:45 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try
Code:
#init 3
or
Code:
#init 1
This can however verify depending on the distro.
Look in
Code:
/etc/inittab
for the runlevels of your distro

Kind regards
 
Old 06-15-2011, 04:56 AM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
See what the All-Knowing Wikipedia has to say about runlevels:
http://en.wikipedia.org/wiki/Linux_Runlevels
 
Old 06-16-2011, 06:26 AM   #6
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
if you are using a gnome desktop

pkill gdm

might also work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CD tray doesn't close with command X.Cyclop Linux - Hardware 2 08-11-2010 03:13 PM
Why can i not close socket with command /quit lrios Programming 11 05-08-2008 11:06 PM
command to close tcp socket powah Linux - Networking 1 08-17-2007 12:22 PM
what is the command to close the ejected hdd? jaepi Programming 8 05-02-2007 10:54 PM
Close Cdrom from command line? mikeshn Linux - Hardware 6 08-17-2003 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration