Created
January 16, 2017 07:23
-
-
Save ahmedmos/8cf3bf466e99bf4dda18a8be64dab23a to your computer and use it in GitHub Desktop.
increase HDI shm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /etc && sed -i.bak -e '7d' fstab | |
cd /etc && sed -i '7inone /etc/network/interfaces.dynamic.d tmpfs nodev,noexec,nosuid,size=128K 0 0' fstab | |
cd /etc && sed -i -e '$atmpfs /dev/shm tmpfs defaults,size=32g 0 0' fstab | |
#cd /etc && sed -i '9atmpfs /dev/shm tmpfs defaults,size=32g 0 0 ' fstab | |
mount -o remount /dev/shm | |
mount -o remount tmpfs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment