Installing Debian "Linux Development" Environment for Hp Notebooks¶
cat /etc/apt/sources.list
Спойлер...Спойлер...
# yandex mirror:
deb http://mirror.yandex.ru/debian bullseye main non-free
deb-src http://mirror.yandex.ru/debian bullseye main non-free
deb http://mirror.yandex.ru/debian bullseye-updates main non-free
deb-src http://mirror.yandex.ru/debian bullseye-updates main non-free
deb https://mirror.yandex.ru/debian-security bullseye-security main non-free
deb-src https://mirror.yandex.ru/debian-security bullseye-security main non-free
# Debian mirror Russia:
deb http://ftp.ru.debian.org/debian/ bullseye non-free contrib main
deb-src http://ftp.ru.debian.org/debian/ bullseye main contrib non-free
deb http://ftp.ru.debian.org/debian/ bullseye-backports main contrib non-free
deb http://security.debian.org/debian-security/ bullseye-security contrib non-free
deb-src http://security.debian.org/debian-security/ bullseye-security contrib non-free
deb http://ftp.ru.debian.org/debian/ bullseye-updates contrib non-free
deb-src http://ftp.ru.debian.org/debian/ bullseye-updates contrib non-free
#deb http://deb.debian.org/debian/ bullseye non-free contrib main
#deb-src http://deb.debian.org/debian/ bullseye main contrib non-free
#deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free
#deb http://security.debian.org/debian-security/ bullseye-security contrib non-free
#deb-src http://security.debian.org/debian-security/ bullseye-security contrib non-free
#deb http://deb.debian.org/debian/ bullseye-updates contrib non-free
#deb-src http://deb.debian.org/debian/ bullseye-updates contrib non-free
apt-get update
WIFI¶
apt-get install firmware-iwlwifi
modprobe -r iwlwifi; modprobe iwlwifi
Проблема с медленным WiFi, при использовании Bluetooth
Некоторые устройства, например 6235, включают в себя Bluetooth-устройства, это может приводить к конфликтам в радио диапазонах. Некоторые устройства (7200 и выше) пытаются более грамотно решить эту проблему.
Если ваш WiFi медленным WiFi, при использовании Bluetooth, добавьте следующие в файл /etc/modprobe.d/iwlwifi.conf и перезагрузитесь:
options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8
Upgrade system¶
apt dist-upgrade
Docker¶
apt install docker docker-compose
groupadd docker
usermod -aG docker {USERNAME}
usermod -aG www-data {USERNAME}
docker-compose up -d
docker exec -it <container name> /bin/bash
Portainer Docker GUI¶
docker run -d -p 9999:9000 --restart always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /opt/portainer:/data portainer/portainer
http://localhost:9999
GIT¶
Спойлер...Спойлер...
apt install git
git config --global user.name "FIRST_NAME LAST_NAME"
git config --global user.email "MY_NAME@example.com"
# generate ssh key
ssh-keygen
# copy ssh public key
cat ~/.ssh/id_rsa.pub
GIT Bash completion¶
apt install curl wget
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash \
-o ~/.git-completion.bash
Add to your ~/.bash_profile in home directory:
vi ~/.bash_profile
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
source ~/.bash_profile
Other Soft¶
apt install net-tools tcpdump traceroute tmux htop atop vim mc gparted smartmontools
Датчики¶
apt install lm-sensors
sensors-detect
Скрипт вывода температуры CPU:
#!/usr/bin/env bash
temp=$(sensors | grep -oP 'Core.*?\+\K[0-9.]+'|head -n 1|cut -d '.' -f1)
echo "cpu: ${temp}C"