[feat] posix scripts, vim, mutt, gpg, font
[dotfiles_afify.git] / .scripts / openbsd_gpu.sh
blob0a1c51132699d11bdf1c6d34f03112a289e65e6d
1 #!/usr/bin/env bash
3 Add your user to the staff group. This group has higher resource limits in login.conf. You'll need to log out and back in for this change to take effect.
5 usermod -G staff YOUR_USERNAME
6 The default resource limits in OpenBSD are extremely conservative. For running modern applications like web browsers, we'll need to bump them up significantly. Use vi to modify the staff login class in /etc/login.conf as follows.
8 /etc/login.conf
9 staff:\
10 :datasize-cur=1024M:\
11 :datasize-max=8192M:\
12 :maxproc-cur=512:\
13 :maxproc-max=1024:\
14 :openfiles-cur=4096:\
15 :openfiles-max=8192:\
16 :stacksize-cur=32M:\
17 :ignorenologin:\
18 :requirehome@:\
19 :tc=default: