Skip to content

Instantly share code, notes, and snippets.

@yunghoy
Last active August 24, 2017 05:13
Show Gist options
  • Select an option

  • Save yunghoy/1c7c6d2012e0de2f475b72e4bbda4673 to your computer and use it in GitHub Desktop.

Select an option

Save yunghoy/1c7c6d2012e0de2f475b72e4bbda4673 to your computer and use it in GitHub Desktop.
/tmp using ramdisk
Ubuntu 14.04
/etc/fstab -> tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=512M 0 0
Ubuntu 16.04
sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/tmp.mount
sudo systemctl enable tmp.mount
sudo systemctl start tmp.mount
sudo mount /tmp -o remount,exec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment