Ocenite etot tekst:




/etc/network/interfaces :

auto lo
iface lo inet loopback

auto eth0

iface lan0 inet static
        address 195.0.0.5
        netmask 255.255.255.0
        network 195.0.0.0
        broadcast 195.0.0.255
        gateway 195.0.0.1

auto eth1
iface eth1 inet dhcp




/etc/apt/sources.list : Gde brat' binarniki
#deb file:///cdrom/ sarge main
deb cdrom:[Debian GNU/Linux 3.1 r3 _Sarge_ - Official i386 Binary-1 (20060904)]/ unstable contrib main

deb http://ftp.ru.debian.org/debian/ stable main
deb-src http://ftp.ru.debian.org/debian/ stable main
deb http://security.debian.org/ stable/updates main contrib
######################################



aptitude update    # Obnovit' spiski
aptitude upgrade   # Ustanovit' vse obnovleniya
aptitude install sshd # ustanovit' paket sshd

dpkg-reconfigure xorg-server  # peregenerit' xorg.conf



Proveryaem, budet li on rabotat':

cat /sys/power/state # dolzhen pokazat'
mem disk

Ustraivaem komp'yuteru suspend:

echo mem > /sys/power/state

Dozhidaemsya, poka pogasnut _vse_ indikatory.

Vyhod iz suspend - knopka POWER

Naveshivaem suspend na zakrytie kryshki(LID) noutbuka

1. sozdaem fajl /etc/acpi/lidsuspend.sh

#!/bin/sh
echo mem > /sys/power/state

2. sozdaem fajl  /etc/acpi/events/lid

event=button[ /]lid.*[13579bdf]$
action=/etc/acpi/lidsuspend.sh

3. perezapuskaem demona acpid, daby onperechital konfig

 /etc/init.d/acpid restart

4. Zakrytie i otkrytie kryshki noutbuka generit
odnotipnyj event primerno takogo sodezhaniya:

button/lid LID 00000080 00000010

poetomu v fajle /etc/acpi/events/lid my regekspom
vylavlivaem tol'ko lid'y s nechetnym ID - 1,3,5,7,b,d,f

event=button[ /]lid.*[13579bdf]$


Last-modified: Mon, 15 Jan 2007 12:36:57 GMT
Ocenite etot tekst: