LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-03-2008, 10:12 AM   #1
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Rep: Reputation: 15
How can I close my x session


I want to close my x session and want to go into the console mode how can I do that? Please help
 
Old 10-03-2008, 10:13 AM   #2
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
"init 3" as root in a terminal.
 
Old 10-03-2008, 10:22 AM   #3
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Original Poster
Rep: Reputation: 15
I am using Linux via VMWare and when I write init 3 it does not give the expected response rather a list of weired messages.
 
Old 10-03-2008, 10:33 AM   #4
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Original Poster
Rep: Reputation: 15
In fact I want to play with my linux installation and wanted to install x myself, but a previous x is present and when I execute the following command

shell> sh Xinstall.sh

It gives me the following message

$DISPLAY is set, which may indicate that you are running this
installation from an X session. It is recommended that X not be
running while doing the installation.
 
Old 10-03-2008, 10:48 AM   #5
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Original Poster
Rep: Reputation: 15
I have found this command but gdm is not on this path in my system

sudo /etc/init.d/gdm stop
 
Old 10-03-2008, 10:58 AM   #6
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Original Poster
Rep: Reputation: 15
NOw I have found that on my system gdm is at the path

/sbin/gdm

and the command available is gdm-stop

But when I run

shell> /sbin/gdm-stop

This only logs me out of x session without giving me a terminal, I want have terminal while logged out of the gdm. Thanks
 
Old 10-03-2008, 11:45 AM   #7
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Original Poster
Rep: Reputation: 15
Ok I am able to stop x session first i go to init 1 and then i move to init 3 and pressed ctrl+Alt+F1 this gave me the prompt in init 3
 
Old 10-03-2008, 07:28 PM   #8
salter
Member
 
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
To close X windows do Ctrl-Shift-Backspace, which kills it efectively, though on most systems X windows will be started again with a graphical login.

To get out of X temporarily press Ctrl-Alt-F1 (or any F-key you want, up to F6) and you will find yourself on a shell console.

To get back to the X session press Ctrl-F7 (if X runs as screen :0, which is the default) and you're back again.

Last edited by Tinkster; 10-30-2010 at 05:16 PM.
 
  


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
close terminal mean close background process? Niceman2005 Linux - General 7 05-27-2010 02:58 PM
how to close port 1050 please help how to close it. mr norm Linux - General 1 09-12-2008 07:57 AM
Session close when screensaver start on FC6 japega Linux - Laptop and Netbook 1 06-13-2007 08:45 PM
Lock the screen (no close session) Jose Rivas Fedora 1 08-03-2006 09:47 AM
How to run a program in an ssh session that will run after you close out the session? dr_zayus69 Linux - Networking 5 03-05-2006 07:15 PM

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

All times are GMT -5. The time now is 01:00 AM.

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