LinuxQuestions.org
Help answer threads with 0 replies.
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 01-10-2008, 10:07 AM   #16
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738

Quote:
ctrl-alt-esc is dangerous if used improperly. It can shutdown everything you need to get out, like your desktop and taskbar.
This is very interesting....
Yes, it will kill the desktop, but leaves you logged in.....Looking at the black screen + cursor, I could do exactly two things: ctrl-alt-esc (again) to get the "kill" symbol (but of course there was nothing left to kill) and ctrl-alt-backspace to kill the X-session completely.

So, where exactly ARE we after doing ctrl-alt-esc and killing the desktop? (Enquiring minds want to know.....)
 
Old 01-10-2008, 06:32 PM   #17
jgag123
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AceofSpades19 View Post
Are you sure it completely reboots the pc?, it should just restart x and take you back to the login screen, at least thats how it worked when I tried out 7.10 and 7.04

Yes, that's what happen. See I can not go to terminal or do anything because the PC feezes and not responding to anything. This is the reason I am looking for some sort of key shortcut.

Thanks
 
Old 01-10-2008, 08:02 PM   #18
Laurana
LQ Newbie
 
Registered: Aug 2007
Location: USA
Distribution: Slackware 12
Posts: 18

Rep: Reputation: 0
Talking

Quote:
Originally Posted by pixellany View Post
Unless its a terminal.......<<EDIT: or firefox>>

Another great tip!!!
Gah.... yes indeed firefox is a little blighter when it comes to freezing.
Unfortunately, 95% of the time, it is firefox freezing up that I have to resort to using the ctrl-alt-backspace maneuver. (The other five percent is split between GIMP and Amarok. I hate my scheduler :P )


Quote:
So, where exactly ARE we after doing ctrl-alt-esc and killing the desktop? (Inquiring minds want to know.....
I'd say we're in between. That void where your files get deleted to and are never recovered. :O ( all the left foot socks end up there.)
 
Old 01-10-2008, 08:07 PM   #19
Laurana
LQ Newbie
 
Registered: Aug 2007
Location: USA
Distribution: Slackware 12
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by jgag123 View Post
Yes, that's what happen. See I can not go to terminal or do anything because the PC feezes and not responding to anything. This is the reason I am looking for some sort of key shortcut.

Thanks
Can you even move the mouse when it freezes like that?

If not, once it is that far gone... reboot is probably all you can do. D:
Even ctrl-alt-del won't work when it is that frozen on most windows machines. (At least, it never did on any of the PCs I've seen)
 
Old 01-11-2008, 01:14 AM   #20
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,533

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Let's look at this from a different angle. What are you running that is causing your system stall and require resuscitation? Maybe you should fix the application, or merely refrain from running it.

If you launch an application from a terminal you can kill it by using 'kill', 'pkill', or merely a ctrl-C. For the first two options, there's "man" to assist you in learning how they work.

If your system has reached the point where you no longer have control (i.e. the CPU has reached its max-capacity) and thus any input you provide is "ignored" for an indefinite period of time, use the power-switch. Use it to terminate your system/OS with extreme prejudice. Very little harm will come about unless you have unsaved documents.

Ctrl-Alt-Backspace will kill X11, but not necessary an application you may have run that has gone awry.

P.S. One of the things that the Linux OS has failed to provide is a feature that prevents user applications from consuming all of the resources (i.e. CPU or RAM) of a system. That's not to say other OSes have fared better. Perhaps there should be a built-in setting that prevents a user application from acquiring too much memory and too much of the CPU utilization for an extended period of time.
 
Old 01-11-2008, 11:39 AM   #21
hex1a4
Member
 
Registered: Dec 2007
Location: ON CA
Distribution: Xubuntu 8.04; Xubuntu 6.06.2
Posts: 64

Rep: Reputation: 15
Quote:
Originally Posted by Laurana View Post
ctrl-alt-esc is dangerous if used improperly.
Not really.

Quote:
It can shutdown everything you need to get out, like your desktop and taskbar.
If you kill your desktop just use your keyboard shortcuts to open the Run Dialog and restart your desktop. If you kill the panels do the same.

Linux-based operating systems are very modular. Everything is its own program. If you kill the window manager all that will happen is that your applications will lose their borders & title bar, and you will not be able to move them (unless the application has a native way of doing so). New applications will each open in the top left corner. You will still be able to switch between them using the task switcher (provided there is one). And of course, the window manager can be restarted from a terminal (just like the desktop, panels or whatever part of the desktop environment you've killed) or run dialog.

Last edited by hex1a4; 01-11-2008 at 11:48 AM.
 
Old 01-11-2008, 02:26 PM   #22
hex1a4
Member
 
Registered: Dec 2007
Location: ON CA
Distribution: Xubuntu 8.04; Xubuntu 6.06.2
Posts: 64

Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
So, where exactly ARE we after doing ctrl-alt-esc and killing the desktop? (Enquiring minds want to know.....)
Configure your keyboard shortcuts to whatever you want (typically it's Ctrl+Alt+Esc) to run xkill to kill x applications. If you fear you might click on something other than the app you want to kill, learn the executables of your environment's elements so you can easily restart them if you accidentally kill them.

In Xfce some of these are as follows:

desktop: xfdesktop
window manger: xfwm or xfwm4 (Xfce 4+)
panel: xfce-panel or xfce4-panel
taskbar: xftaskbar or xftaskbar4

Configuring shortcuts to open a run dialog (usually it's Alt+F2) is also a good idea.

Some of the run dialogs available on Linux-based systems are:
xfrun or xfrun4 (Xfce)
grun (generic, GTK-based)
fbrun (FluxBox)
bbrun (BlackBox)
(you can use any of these regardless of environment)

Check your repositories and they should be there.
 
Old 01-11-2008, 02:29 PM   #23
hex1a4
Member
 
Registered: Dec 2007
Location: ON CA
Distribution: Xubuntu 8.04; Xubuntu 6.06.2
Posts: 64

Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
This is very interesting....
Yes, it will kill the desktop, but leaves you logged in.....Looking at the black screen + cursor
If this happens just restart the desktop.
 
Old 01-11-2008, 02:36 PM   #24
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Quote:
So, where exactly ARE we after doing ctrl-alt-esc and killing the desktop? (Enquiring minds want to know.....)

Your in the X server but your desktop manager is now no longer running.

Where exactly are you after doing this depends on the type of window manager that you are using or mabye not im not 100% sure on that one.
 
Old 01-11-2008, 02:43 PM   #25
hex1a4
Member
 
Registered: Dec 2007
Location: ON CA
Distribution: Xubuntu 8.04; Xubuntu 6.06.2
Posts: 64

Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
Unless its a terminal.......<<EDIT: or firefox>>
Or Epiphany, Thunar, oggConvert, gThumb, ClamTk and a myriad of others.
 
Old 01-11-2008, 02:47 PM   #26
hex1a4
Member
 
Registered: Dec 2007
Location: ON CA
Distribution: Xubuntu 8.04; Xubuntu 6.06.2
Posts: 64

Rep: Reputation: 15
BTW many distributions have a graphical way to manage (view, stop, etc.) all running processes. In Xubuntu and Ubuntu (and other systems with Gnome installed) it's called System Monitor (gnome-system-monitor) which can be run using a shortcut key combination, like Ctrl+Alt+Del if you like.
 
Old 01-11-2008, 02:50 PM   #27
hex1a4
Member
 
Registered: Dec 2007
Location: ON CA
Distribution: Xubuntu 8.04; Xubuntu 6.06.2
Posts: 64

Rep: Reputation: 15
Quote:
Originally Posted by jgag123 View Post
Yes, that's what happen. See I can not go to terminal or do anything because the PC feezes and not responding to anything. This is the reason I am looking for some sort of key shortcut.

Thanks
Check your shortcut key & X server configuration, maybe Ctrl+Alt+Esc is set to reboot.
 
Old 01-11-2008, 02:54 PM   #28
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by pixellany View Post
ps -e (gives you the PID for the thing you want to kill)

kill -9 <PID> to kill it.

some distros may have a GUI interface that does this, but I've never bothered to learn it.
You shouldn't do a "9" the first time...

You should try kill -HUP <PID>

If that doesn't work then try kill -INT <PID>

THEN if that doesn't work then you should resort to kill -9 <PID>

Doing a "9" runs the risk of making zombie processes
 
  


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
CTR-ALT-F1 kills X server arc2v Linux - General 3 05-24-2006 08:04 AM
didn't find virtual text console ctr+alt+F1 like ? viji2ks Linux - Software 4 08-08-2005 09:03 AM
Switching window focus (like alt+tab in windows) and Ctrl+Alt+F1 X windows problem... DiZASTiX Linux - Software 3 01-20-2005 05:56 PM
linux equivilant to ctr+alt+del aggierian Linux - Newbie 5 06-09-2004 08:06 AM
GeForce SuSe 9.0 hangs on boot and X ctr-alt-bspace bigearsbilly Linux - Hardware 1 03-07-2004 10:14 PM

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

All times are GMT -5. The time now is 01:58 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