Copier :
avec la souris, comme d'habitude
Coller :
shiftt+insert
shiftt+insert
protects machines from accidental shutdowns/reboots
The package installs a shell script that overrides the existing shutdown/reboot/halt/poweroff commands and first runs a set of scripts, which all have to exit successfully, before molly-guard invokes the real command.
One of the scripts checks for existing SSH sessions. If any of the four commands are called interactively over an SSH session, the shell script prompts you to enter the name of the host you wish to shut down. This should adequately prevent you from accidental shutdowns and reboots.
This shell script passes through the commands to the respective binaries in /sbin and should thus not get in the way if called non-interactively, or locally.
NAME
type - write a description of command type
SYNOPSIS
type name...
DESCRIPTION
The type utility shall indicate how each argument would be interpreted
if used as a command name.
lsb_release(1) lsb_release(1)
NAME
lsb_release - print distribution-specific information
SYNOPSIS
lsb_release [options]
DESCRIPTION
The lsb_release command provides certain LSB (Linux Standard Base) and
distribution-specific information.
If no options are given, the -v option is assumed.
# Converted from /etc/iftab on upgrade
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="xx:xx:xx:xx:xx:xx", ATTRS{type}=="1", KERNEL=="eth*", NAME="eth1"
In addition to what I've written below, you should also read:
http://ubuntuforums.org/showthread.php?t=770173&page=2
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=492029
(In Debian, the module will be included in the 2.6.26 kernel.)
In my case, since I had rebooted the machine many times before building the module (see below for building),
udev had added a bunch of lines for "newly discovered"
ethernet cards with all different MAC addresses,
so I had to edit /etc/udev/rules.d/70-persistent-net.rules and delete ALL lines for ethernet devices
named eth0, eth1, eth2, etc.
(See
http://ubuntuforums.org/showthread.php?p=3869356
but do NOT change
75-persistent-net-generator.rules as that post says).
The following worked for me to build the module on an Asus Eee PC 1000H running Ubuntu 8.04 (Hardy Heron).
Jie Yang at Atheros mailed me the Version 1.0.1.0 driver source,
and I saved it as filename
l1e-linux-v1.0.1.0.tar.gz .
md5sum for the tarball above: d83196e507f9b2bea47514ba97fffd6f
sha1sum for the tarball above: 1f6a1ee6280add6e4c8d2f110ecd176c6f0e9134
Do all of the following as root:
Install the build-essential package: apt-get install build-essential
Make a new directory somewhere named l1e-linux-v1.0.1.0
cd into that new empty directory and tar -zxvf /some/dir/l1e-linux-v1.0.1.0.tar.gz
cd to the "src" directory in the module source tree
KBUILD_NOPEDANTIC=1 make
The above should succeed with no errors or warnings.
KBUILD_NOPEDANTIC=1 make install
Expect a warning like "cannot write to /var/cache/man/cat7/atl1e.7.gz in catman mode".
Edit /etc/modules and add on a line by itself,
atl1e
as the first non-comment line, then reboot.
After rebooting, verify the driver loaded as follows:
$ dmesg|grep Atheros
Atheros(R) AR8121/AR8113/AR8114 PCI-E Ethernet Network Driver - version 1.0.1.0
Copyright (c) 2007 Atheros Corporation.
$ sudo modprobe -l atl1e
/lib/modules/your-kernel-version/kernel/drivers/net/atl1e/atl1e.ko
Until the atl1e kernel driver module is included in the Linux kernel, the above build process
will have to be repeated every time you start running a new kernel.
$ dig -x 69.69.69.69
; <<>> DiG 9.4.2-P2 <<>> -x 69.69.69.69
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17090
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;69.69.69.69.in-addr.arpa. IN PTR
;; ANSWER SECTION:
69.69.69.69.in-addr.arpa. 86400 IN PTR the-coolest-ip-on-the-net.com.
;; AUTHORITY SECTION:
69.69.69.in-addr.arpa. 86400 IN NS dns1.utelfla.com.
69.69.69.in-addr.arpa. 86400 IN NS ns10.embarqservices.net.
;; ADDITIONAL SECTION:
dns1.utelfla.com. 60003 IN A 138.210.81.3
ns10.embarqservices.net. 43433 IN A 205.160.188.2
;; Query time: 338 msec
;; SERVER: 132.227.64.13#53(132.227.64.13)
;; WHEN: Fri Nov 28 14:17:51 2008
;; MSG SIZE rcvd: 181
DIG(1) BIND9 DIG(1)
NAME
dig - DNS lookup utility
SYNOPSIS
dig [@server] [-b address] [-c class] [-f filename] [-k filename] [-p port#] [-q name] [-t type] [-x addr]
[-y [hmac:]name:key] [-4] [-6] [name] [type] [class] [queryopt...]
dig [-h]
dig [global-queryopt...] [query...]
DESCRIPTION
dig (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and
displays the answers that are returned from the name server(s) that were queried. Most DNS administrators use dig to
troubleshoot DNS problems because of its flexibility, ease of use and clarity of output. Other lookup tools tend to have
less functionality than dig.
[...]
Display LCD Size: | 10" Wide |
LCD Resolution: | 1024 x 600 (WSVGA) |
LCD Type | : TFT |
Intel CPU & Chipset | Intel® Atom N270 (Intel 945 GSE Chipset) |
Ethernet Communication | 10/100 Mbps / RJ-45 |
Memory | 1GB DDR2 (1 SO-DIMM) |
Wireless Data Network | Built-in 802.11b/g/n & Bluetooth 2.0 |
Display Card | Intel UMA |
Storage | HDD Seagate Momentus 5400.4 160GB |
Camera | 1.3M Pixel webcam |
Audio | Hi-Definition Audio CODEC |
Storage Cards | SD / MMC (SDHC) |
Input / Output | 3x USB2.0 / VGA-out (D-Sub, 15pin) / earphone jack / mic |
Battery | 6 Cell |
Power Output | 12V, 3A |
Input: | 100-240V AC, 50-60Hz universal |
Dimensions | 10.47" x 7.53" x 1.12" ~ 1.50" |