Advertisement

Ooops!

Started by June 28, 2002 11:47 PM
4 comments, last by BradDaBug 22 years, 7 months ago
I''m not perfect, so maybe every once in a while I freeze my computer. In Windows, all it''d take was a CTRL+ALT+DEL and I could kill my runaway game. But in Linux, I don''t know how! I try CTRL+ALT+ESC, CTRL+ALT+BACKSPACE, and CTRL+ALT+DEL and nothing seems to work. It''s stuck. Do I have to reboot Linux every time my game crashes or freezes? What can I do?
I like the DARK layout!
Ctrl+Alt+Backspace will kill X (unless X is overloaded, i.e. it can''t get input, which does happen). Ctrl+Alt+1 will bring you to the first terminal from X, where you can type something like this:
ps -A | grep the name of your programkill -9 the number next to the name of your program from the previous command

Or you can automate that like this:
`ps -A | grep the name of your program | awk ''{print "kill -9 "$1}''`



Advertisement
Oh, another thing, if you have another computer on a network with yours: even if X does get overloaded, you can login to your system with ssh and kill it. Then you just restart X, and everything''s fine. I''ve had to do this once or twice, it works very well.

ah, ok!

But once I get to the terminal and kill that sucker, how do I get back into X?
I like the DARK layout!
quote: Original post by BradDaBug
But once I get to the terminal and kill that sucker, how do I get back into X?

For me it is Alt+F7 (the Ctrl is only needed in X). Your setup might put X elsewhere (it''ll be Alt+F? though).

Or, if you took X down, you can restart it with either startx or init 5

And killall -9 processname works too.

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement