Restartinmg X server(KDE) the CLI method
Hi, Just out of curiosity I wonder if anyone can tell me what the command is to refresh the X server(KDE) under SuSE 9.0 ie to have the same effect as Ctrl-Alt-Backspace. Does this command have to performed as by root as when doing it in the GUI there is no one logged on, in theory. -- The Little Helper ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 Licenced Windows user ========================================================================
On Sunday 19 September 2004 08:28, Hylton Conacher (ZR1HPC) wrote:
Hi,
Just out of curiosity I wonder if anyone can tell me what the command is to refresh the X server(KDE) under SuSE 9.0 ie to have the same effect as Ctrl-Alt-Backspace.
You can type 'init 3' to top X and drop down into a console if you usually use xdm (graphical logon). Typing 'init 5' will put you back in a mode where the graphical logon is used. -- Stephen If your desktop gets out of control easily, you probably have too much stuff on it that doesn't need to be there. Donna Smallin, "Unclutter Your Home"
On Sunday 19 September 2004 09:28 am, Hylton Conacher (ZR1HPC) wrote: Hi (everybody - I am new to the list),
Just out of curiosity I wonder if anyone can tell me what the command is to refresh the X server(KDE) under SuSE 9.0 ie to have the same effect as Ctrl-Alt-Backspace.
Ctrl-Alt-Backspace kills the X server. You can just do "kill -9 X" as root. Hope this helps, Brana
Brana, On Sunday 19 September 2004 11:22, Branimir Vasilic wrote:
On Sunday 19 September 2004 09:28 am, Hylton Conacher (ZR1HPC) wrote:
Hi (everybody - I am new to the list),
Just out of curiosity I wonder if anyone can tell me what the command is to refresh the X server(KDE) under SuSE 9.0 ie to have the same effect as Ctrl-Alt-Backspace.
Ctrl-Alt-Backspace kills the X server. You can just do "kill -9 X" as root. Hope this helps,
Correction: Kill, neither the stand-alone command nor the BASH built-in, takes program names as arguments. Only pids or negated process group IDs are allowed (or jobspecs, with the BASH built-in). You can use the "pidof" command with commands substitution (either "$(pidof programBaseName)" or `pidof programBaseName`) or use "killproc" on a full program path name (e.g., "/usr/X11R6/bin/X") in place of "kill" on a process ID.
Brana
Randall Schulz
Kill, neither the stand-alone command nor the BASH built-in, takes program names as arguments. Only pids or negated process group IDs are allowed (or jobspecs, with the BASH built-in).
Yes, thanks for correcting. Sorry about that. I usually do killall X so writing the e-mail quickly I kind of mixed the two together.
On Sunday 19 Sep 2004 14:28, Hylton Conacher (ZR1HPC) wrote:
Hi,
Just out of curiosity I wonder if anyone can tell me what the command is to refresh the X server(KDE) under SuSE 9.0 ie to have the same effect as Ctrl-Alt-Backspace.
Does this command have to performed as by root as when doing it in the GUI there is no one logged on, in theory.
-- The Little Helper ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 Licenced Windows user ========================================================================
Hi .. Ways of killing "X" Ctrl+Alt+F1 then login as root type "init 3" then init 5 to restart X and login to your session unless of course it is screwed up the telnet in from another machine and do similar .. Pete . -- Linux user No: 256242 Machine No: 139931 G6NJR Pete also MSA registered "Quinton 11" A Linux Only area Happy bug hunting M$ clan PGN
Hylton Conacher (ZR1HPC) wrote:
Hi,
Just out of curiosity I wonder if anyone can tell me what the command is to refresh the X server(KDE) under SuSE 9.0 ie to have the same effect as Ctrl-Alt-Backspace.
Does this command have to performed as by root as when doing it in the GUI there is no one logged on, in theory. Tnx Brana, Randall and Stephen.
However i am confused with the method Brana and Randall gave me but I like the one Stephen gave. After testing Stephens method it WORKS :) Tnx -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 Licenced Windows user ========================================================================
Hylton, On Monday 20 September 2004 08:05, Hylton Conacher (ZR1HPC) wrote:
Hylton Conacher (ZR1HPC) wrote:
Hi,
Just out of curiosity I wonder if anyone can tell me what the command is to refresh the X server(KDE) under SuSE 9.0 ie to have the same effect as Ctrl-Alt-Backspace.
Does this command have to performed as by root as when doing it in the GUI there is no one logged on, in theory.
Tnx Brana, Randall and Stephen.
However i am confused with the method Brana and Randall gave me but I like the one Stephen gave.
After testing Stephens method it WORKS :)
Indeed. However, keep in mind that switching the system's run level has potentially much more wide-ranging effects than simply restarting the X server. While a typical SuSE install makes the "graphical desktop" operation the primary difference between run level 3 and 5, that's just a convention they've adopted and there can be other services associated with level 5 alone and they'll be stopped when switching to level 3. You can use the YaST "Runlevel Editor" module to view and change what services are associated with (enabled in) a given run level. "Expert mode" makes the level distinctions easy to see. I just checked on my system and the only service associated with run level 5 that is not also enabled in level 3 is in fact "xdm", the X Display Manager, which is the service that ultimately creates the graphical login environment. So if your system is similarly configured, you probably don't need to worry about unintended consequences of switching to level 3 to stop the X server.
Tnx -- Hylton Conacher
Randall Schulz
participants (5)
-
Branimir Vasilic
-
Hylton Conacher (ZR1HPC)
-
peter Nikolic
-
Randall R Schulz
-
Stephen Boulet