Skip to content

Instantly share code, notes, and snippets.

@jjrdn
Created February 16, 2014 21:15
Show Gist options
  • Save jjrdn/9040723 to your computer and use it in GitHub Desktop.
Save jjrdn/9040723 to your computer and use it in GitHub Desktop.
## Adding ,noatime,nodiratime
/dev/sda / ext4 errors=remount-ro,noatime,nodiratime 0 1
#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth required pam_wheel.so use_uid
auth required pam_unix.so
account required pam_unix.so
session required pam_unix.so
### Adding this line
session required pam_limits.so
###Adding this two lines at the end:
* soft nofile 51200
* hard nofile 61440
#!/bin/bash
#
# Do not just copy / paste!! Make sure you understand what you are doing!
#
pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -
paclist <repo> | awk ' { print $1 } ' | pacman -Ql -
find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null
pacman -Syu --ignore filesystem,bash
pacman -S bash
pacman -Su
pacman -Syyu
## Activate DigitalOceans recommended sysctl settings. I have no idea if they have a positive impact. Test for yourself
mv /etc/sysctl.conf.pacsave /etc/sysctl.d/99-sysctl.conf
## Migrate from netcfg to netctl:
# https://www.digitalocean.com/community/articles/how-to-upgrade-arch-from-netcfg-to-netctl-on-a-digitalocean-vps
## My personal package list
pacman -S git lsof strace htop vim bash-completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment