To install scripts to profile.d, run this as root:
curl -s https://raw.githubusercontent.com/mortenn/dotfiles/master/install-profile | bash
On Ubuntu, you will need to modify ~/.profile instead.
To install public keys, run this as the target user:
curl -s https://raw.githubusercontent.com/mortenn/dotfiles/master/install-pubkey | bash