SHARE
TWEET

Untitled

a guest Feb 19th, 2020 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sudo su
  2. swapoff /swapfile
  3. dd if=/dev/zero of=/swapfile bs=1M count=12000
  4. mkswap /swapfile
  5.  
  6.  
  7. apt install -y git vim unar htop snapd chromium-browser flameshot skypeforlinux konsole screen tcpdump mc
  8. snap install telegram-desktop
  9. snap install phpstorm --classic
  10.  
  11. apt update
  12. apt upgrade
  13.  
  14. Включение zswap
  15.  
  16. mcedit /etc/default/grub
  17. #в строку GRUB_CMDLINE_LINUX_DEFAULT="quiet splash profile" в кавычках добавить параметры через пробел:
  18. zswap.enabled=1 zswap.compressor=lzo
  19. update-grub
  20. update-initramfs -u
  21. #и перезагрузка
  22. #после перезагрузки
  23. dmesg | grep -i zswap
  24. #должно вывести
  25. [    0.782491] zswap: loading zswap
  26. [    0.784771] zswap: using lz4 compressor
  27.  
  28. Дополнительные параметры
  29.  
  30. echo "fs.inotify.max_user_watches = 524288" >> /etc/sysctl.conf
  31. echo "vm.vfs_cache_pressure=1000" >> /etc/sysctl.conf
  32. echo "vm.swappiness=70" >>  /etc/sysctl.conf
  33. sysctl -p
  34.  
  35. Ставим докер:
  36.  
  37. sudo su
  38. apt install -y docker.io docker-compose
  39. systemctl start docker
  40. systemctl enable docker
  41.  
  42. sudo gpasswd -a user docker
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top