Advertisement
corrosiontears

Systemd & Zram no Debian - Forma Fácil.

May 15th, 2014
847
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.20 KB | None | 0 0
  1.                         ### Systemd e Zram no Debian Wheezy/Jessie/Sid/ (Stable/Testing/Unstable) ###
  2.  
  3. ## Origem das Dicas:
  4. # https://gnutwoall.wordpress.com/2013/10/19/systemd-zram-no-debian-wheezy/
  5. # http://9m2pju.blogspot.com.br/2013/05/zram-for-ubuntudebian-linux.html
  6.  
  7. ### Systemd no Debian Wheezy. Modo Fácil:
  8.  
  9. $ sudo apt-get update
  10. $ sudo apt-get install systemd-sysv libpam-systemd systemd-gui
  11. $ sudo echo "systemd-sysv hold"|dpkg --set-selections
  12.  
  13.  
  14. ### Zram no Debian Wheezy com Sysvinit. Modo Super Fácil:
  15.  
  16. $ sudo wget https://raw.github.com/gionn/etc/master/init.d/zram -O /etc/init.d/zram
  17. $ sudo chmod +x /etc/init.d/zram
  18. $ sudo update-rc.d zram defaults
  19. $ sudo /etc/init.d/zram start
  20.  
  21.  
  22. ### Zram no Debian Testing/Sid/Wheezy com Systemd. Modo Fácil:
  23.  
  24. $ wget https://aur.archlinux.org/packages/zr/zramswap/zramswap.tar.gz
  25. $ tar -zxvf zramswap.tar.gz
  26. $ chmod +x zramswap/zramctrl
  27. $ sudo mkdir /usr/lib/systemd/{scripts,system}
  28. $ sudo cp zramswap/zramctrl /usr/lib/systemd/scripts/zramctrl
  29. $ sudo cp zramswap/zramswap.service /usr/lib/systemd/system/zramswap.service
  30. $ sudo systemctl enable zramswap.service
  31. $ sudo systemctl start zramswap.service
  32. $ sudo swapon -a
  33. $ sudo swapon -s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement