Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Systemd e Zram no Debian Wheezy/Jessie/Sid/ (Stable/Testing/Unstable) ###
- ## Origem das Dicas:
- # https://gnutwoall.wordpress.com/2013/10/19/systemd-zram-no-debian-wheezy/
- # http://9m2pju.blogspot.com.br/2013/05/zram-for-ubuntudebian-linux.html
- ### Systemd no Debian Wheezy. Modo Fácil:
- $ sudo apt-get update
- $ sudo apt-get install systemd-sysv libpam-systemd systemd-gui
- $ sudo echo "systemd-sysv hold"|dpkg --set-selections
- ### Zram no Debian Wheezy com Sysvinit. Modo Super Fácil:
- $ sudo wget https://raw.github.com/gionn/etc/master/init.d/zram -O /etc/init.d/zram
- $ sudo chmod +x /etc/init.d/zram
- $ sudo update-rc.d zram defaults
- $ sudo /etc/init.d/zram start
- ### Zram no Debian Testing/Sid/Wheezy com Systemd. Modo Fácil:
- $ wget https://aur.archlinux.org/packages/zr/zramswap/zramswap.tar.gz
- $ tar -zxvf zramswap.tar.gz
- $ chmod +x zramswap/zramctrl
- $ sudo mkdir /usr/lib/systemd/{scripts,system}
- $ sudo cp zramswap/zramctrl /usr/lib/systemd/scripts/zramctrl
- $ sudo cp zramswap/zramswap.service /usr/lib/systemd/system/zramswap.service
- $ sudo systemctl enable zramswap.service
- $ sudo systemctl start zramswap.service
- $ sudo swapon -a
- $ sudo swapon -s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement