# nano /etc/apt/sources.list
Comment “squeeze” repository, and add this line. The URL depends on your access to your repository, in my case it is local repo in wheezy directory inside /media/repo/.
deb file:/media/repo/wheezy/ wheezy main
# apt-get update
# apt-get upgrade
# apt-get dist-upgrade
These programs are installed, including all programs required that stated in Configuration section.
* From upstream project, not Debian official repository.
# nano /etc/group
sudo:x:27:stwn
# apt-get install sysfsutils
# nano /etc/sysfs.conf
devices/platform/smapi/BAT0/start_charge_thresh = 40 devices/platform/smapi/BAT0/stop_charge_thresh = 50 devices/platform/thinkpad_acpi/bluetooth_enable = 0 devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave devices/system/cpu/cpu1/cpufreq/scaling_governor = powersave class/backlight/acpi_video0/brightness = 5 class/scsi_host/host0/link_power_management_policy = min_power class/scsi_host/host1/link_power_management_policy = min_power module/snd_hda_intel/parameters/power_save_controller = Y module/snd_hda_intel/parameters/power_save = 1
# apt-get install hdapsd tp-smapi-dkms
# echo "tp_smapi" >> /etc/modules
# tar zxvf gnome-hdaps-osd_v0.2.tar.gz # cd gnome-hdaps-osd/ # nano README # apt-get install python-pyinotify libaosd2 # ./gnome-hdaps-osd.py
# nano /etc/default/grub
GRUB_TIMEOUT=0 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_DISABLE_RECOVERY="true"
# update-grub2
# nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.i915_enable_rc6=1"
# update-grub2
# apt-get install plymouth
# echo "i915" >> /etc/initramfs-tools/modules
# plymouth-set-default-theme spinfinity
# update-initramfs -u
# apt-get install openssh-server
# nano /etc/ssh/sshd_config
Port 22000
# service ssh restart
dm-crypt, cryptsetup, LUKS.
required package: cryptsetup
# badblocks -v -s -w -t random /dev/sda5 # badblocks -v -s -w -t random /dev/sda7
# cryptsetup -v -y -s 256 luksFormat /dev/sda5 # cryptsetup -v -y -s 256 luksFormat /dev/sda7
# cyptsetup luksOpen /dev/sda5 yes0 # cyptsetup luksOpen /dev/sda7 yes1
# pvcreate /dev/mapper/yes0 # pvcreate /dev/mapper/yes1
# vgcreate yes /dev/mapper/yes0 /dev/mapper/yes1
# vgdisplay | grep Total Total PE 30000
# lvcreate -l30000 -n crypt /dev/mapper/yes
# mkfs.ext4 /dev/mapper/yes-crypt
# nano /etc/crypttab
yes0 /dev/sda5 none luks yes1 /dev/sda7 none luks
# nano /etc/fstab
/dev/mapper/yes-crypt /media/crypt ext4 relatime 0 2
# badblocks -v -s -w -t random /dev/sda6
cryptsetup -v -y -s 256 luksFormat /dev/sda6
# cyptsetup luksOpen /dev/sda6 yes2
# mkfs.ext4 /dev/mapper/yes2
# blkid /dev/sda6
# nano /etc/crypttab
yes2 /dev/sda6 none luks
or
yes2 UUID=AAAABBBBCCCC none luks
# blkid /dev/mapper/yes2
# nano /etc/fstab
/dev/mapper/yes2 /media/crypt2 ext4 relatime 0 2
or
UUID=XXXXYYYYZZZZ /media/crypt2 ext4 relatime 0 2
Change the XXXXYYYYZZZZ with the output of blkid command before this step.
# cryptsetup luksHeaderBackup --header-backup-file mymachine.sdaX /dev/sdaX
# cryptsetup luksHeaderRestore --header-backup-file mymachine.sdaX /dev/sdaX