:




/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 :   
#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    #  
aptitude upe   #   
aptitude install sshd #   sshd

dpkg-reconfigure xorg-server  #  xorg.conf



,    :

cat /sys/power/state #  
mem disk

  suspend:

echo mem > /sys/power/state

,   __ .

  suspend -  POWER

 suspend   (LID) 

1.   /etc/acpi/lidsuspend.sh

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

2.    /etc/acpi/events/lid

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

3.   acpid,   

 /etc/init.d/acpid restart

4.      
 event   :

button/lid LID 00000080 00000010

   /etc/acpi/events/lid  
  lid'   ID - 1,3,5,7,b,d,f

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


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