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 02-16-2004, 08:58 AM   #1
anjiie
LQ Newbie
 
Registered: Feb 2004
Posts: 10

Rep: Reputation: 0
xServer


whenever i use display to set my screen resolution, at asks me to log out and restart my Xserver but I don't know how to so when I log in back it is still the same resolution.

I try using the startx command and it says the server is running already and my screen resolution is not changed
 
Old 02-16-2004, 09:39 AM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
get to the login screen, and then hit ctrl-alt-delete

This should kill the running X server.

From there, you'll be at a terminal (command line) screen, and can startx again.

--Rounan
 
Old 02-16-2004, 10:42 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Ctrl-Alt-Del would in most cases actually reboot the system. Use Ctrl-Alt-Backspace to kill the X server.

Håkan
 
Old 02-16-2004, 10:44 AM   #4
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Sorry. My bad.
 
Old 02-16-2004, 11:56 AM   #5
RIB
LQ Newbie
 
Registered: Dec 2003
Posts: 23

Rep: Reputation: 15
I want to stop my Xserver too, but if I press CTRL+ALT+BACKSPACE at login, the screen flashes. I think my Xserver is stopped and immediatly restarted. How do I get into a command line interface environment? (I use RH 8)
 
Old 02-16-2004, 12:09 PM   #6
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Ctrl-alt-F1
or ctrl-alt-F2 - F6

By default, 6 "virtual" terminals are started, each of which is independant. The x-server generally runs on hte first available virtual terminal - vt7.

Any time you want to switch to CLI, ctrl-alt-F1. To get back to X, ctrl-alt-F7

Those might vary from distro to distro and system to system, but just cycle through them to figure out which is which.

NOTE: switching to a terminal does NOT kill X. It just switches to a terminal. You can kill X from the terminal by doing:
ps -aux
kill <x-window process ID>

But if ctrl-alt-bkspc isn't doing it, that's weird.

--Rounan

Last edited by Rounan; 02-16-2004 at 12:10 PM.
 
Old 02-16-2004, 12:48 PM   #7
RIB
LQ Newbie
 
Registered: Dec 2003
Posts: 23

Rep: Reputation: 15
Nope, I tried it again, CTRL+ALT+BCKSPC doesn't do the trick.

I used CTRL+ALT+F1 to switch to a CLI screen, but finding out which proces to kill isn't easy.

ps -aux

lists a lot of them, they don't fit on one screen. How do I find out what proces ID my Xwindow server has?
 
Old 02-16-2004, 01:26 PM   #8
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 658

Rep: Reputation: 30
in the CLI, do
init 3 --> this goes to runlevel 3 (multiuser without X)
then fo
init 5 --> this goes to runlevel 5 (multiuser with X) and this is normally what u run

PS: npte that this has to be done as root.
 
Old 02-16-2004, 03:09 PM   #9
RIB
LQ Newbie
 
Registered: Dec 2003
Posts: 23

Rep: Reputation: 15
Thanks! It worked, and I learned some new stuff doing it.
 
  


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
How can you tell what xserver you are using? tomj88 Debian 2 09-10-2005 08:14 PM
xserver-xorg config warning: migrating xserver-xfree86 templates doctorwebbox Debian 9 07-27-2005 08:24 PM
my xserver is down emrec4d Mandriva 7 04-05-2004 02:33 AM
Does anyone use XServer? Zerodark Linux - Software 0 01-04-2004 12:32 PM
XServer? pmcquain Slackware 2 02-14-2003 09:49 AM


All times are GMT -5. The time now is 08:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration