1253
|
1 |
.. -*- coding: utf-8 -*-
|
|
2 |
|
|
3 |
========
|
|
4 |
Linux.
|
|
5 |
========
|
|
6 |
.. contents::
|
|
7 |
|
|
8 |
Linux distro.
|
|
9 |
=============
|
|
10 |
|
|
11 |
http://distrowatch.com/
|
|
12 |
Comparing Linux distros.
|
|
13 |
|
|
14 |
SysRq.
|
|
15 |
======
|
|
16 |
::
|
|
17 |
|
|
18 |
x86: ALT-SysRq-<command key>
|
|
19 |
SPARC: ALT-STOP-<command key>
|
|
20 |
PPC: ALT - Print Screen (or F13) - <command key>
|
|
21 |
|
|
22 |
'b' - reboot
|
|
23 |
'p' - dump the current registers and flags to your console
|
|
24 |
'r' - take control of keyboard back from X
|
|
25 |
'e' - send SIGTERM to all processes, except for init
|
|
26 |
'i' - send SIGKILL to all processes, except for init
|
|
27 |
's' - attempt to sync all mounted filesystems
|
|
28 |
'u' - remount all filesystems read-only
|
|
29 |
|
|
30 |
You can put one of such line::
|
|
31 |
|
|
32 |
$ echo 0 > /proc/sys/kernel/sysrq # disable
|
|
33 |
$ echo 1 > /proc/sys/kernel/sysrq # enable
|
|
34 |
|
|
35 |
to your /etc/rc.local or alternativaly place under /etc/sysctl::
|
|
36 |
|
|
37 |
kernel.sysrq = 1
|
|
38 |
|
|
39 |
http://www.kernel.org/doc/Documentation/sysrq.txt
|
|
40 |
Linux Magic System Request Key Hacks
|