One day, I decided to install debian...
1) Download iso: debian-live-8.4.0-i386-xfce-desktop.iso from https://www.debian.org/CD/live/
2) write to flash:
$dd if=./debian-live-8.4.0-i386-xfce-desktop.iso of=/dev/sdb
3) install...
4) configure sources.list
$ su
# nano /etc/apt/sources.list
comment all "cdrom" lines, cause I have not cdrom=) and paste next:
deb http://httpredir.debian.org/debian jessie main contrib non-free
deb-src http://httpredir.debian.org/debian jessie main contrib non-free
deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://httpredir.debian.org/debian jessie main contrib non-free
deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
save and exit
#apt-get update
#apt-get upgrade
5) configure sudo:
# nano /etc/sudoers
add line:
user ALL=(ALL:ALL) ALL
save and exit
6) install i3
$sudo apt-get install i3 i3status i3lock dmenu
7) install wicd network manager
$sudo apt-get install wicd
$sudo /etc/init.d/wicd start
to run:
$wicd-client
to make alias add next line in ~/.bashrc:
alias wifi='wicd-client'
8) sound:
alias sound='alsamixer'
9) screenlock
$cd /usr/local/bin
$touch i3exit
$nano i3exit
paste:
#!/bin/sh
lock() {
i3lock
}
case "$1" in
lock)
lock
;;
logout)
i3-msg exit
;;
suspend)
lock && systemctl suspend
;;
hibernate)
lock && systemctl hibernate
;;
reboot)
systemctl reboot
;;
shutdown)
systemctl poweroff
;;
*)
echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}"
exit 2
esac
exit 0
save and exit
10) automounting
$sudo mkdir /media/c
$sudo mkdir /media/d
$sudo nano /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sda1 /media/c ntfs umask=0,user,locale=ru_RU.UTF-8 0 0
/dev/sda4 /media/d ntfs umask=0,user,locale=ru_RU.UTF-8 0 0
11) java installing
add to /etc/apt/sources.list
"deb http://ftp.de.debian.org/debian jessie-backports main"
# apt-get update
# apt-get install openjdk-8-jdk
/dev/sda1 /media/c ntfs umask=0,user,locale=ru_RU.UTF-8 0 0
/dev/sda4 /media/d ntfs umask=0,user,locale=ru_RU.UTF-8 0 0
11) java installing
add to /etc/apt/sources.list
"deb http://ftp.de.debian.org/debian jessie-backports main"
# apt-get update
# apt-get install openjdk-8-jdk
Комментариев нет:
Отправить комментарий