Last active
January 6, 2024 11:38
-
-
Save divinity76/e4b40d98c9dbcc5dbe2eb74f9c9ca518 to your computer and use it in GitHub Desktop.
dreamhost account init script..
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
#fix unicode | |
[[ -z $(grep LANG ~/.bash_profile) ]] && echo '[[ -z "${LANG}" ]] && export LANG='\''en_US.UTF-8'\''' >> ~/.bash_profile | |
#make sure .bashrc is loaded on ssh login | |
[[ -z $(grep bashrc ~/.bash_profile) ]] && echo 'source ~/.bashrc' >> ~/.bash_profile | |
# create .local/bin | |
mkdir -p ~/.local/bin; | |
# install screenie | |
wget 'https://gist.github.com/divinity76/1a583968c997869b27a5ee2c1ed24259/raw/76453e61a92676386589fbb3f4ef0225ac98fb19/screenie.b64' -O- | base64 -d > ~/.local/bin/screenie ; chmod 0555 ~/.local/bin/screenie; | |
# install ncdu | |
wget 'https://github.com/divinity76/static_bin/blob/static_ncdu/ncdu?raw=true' -O ~/.local/bin/ncdu; chmod 0555 ~/.local/bin/ncdu; | |
#install hans bashrc | |
truncate -s 0 ~/.bashrc ~/.bash_aliases; | |
wget https://github.com/divinity76/bashrc/raw/master/.bashrc -O ~/.bashrc ; | |
wget https://github.com/divinity76/bashrc/raw/master/.bash_aliases -O ~/.bash_aliases ; | |
source ~/.bashrc | |
# install SSH keys.. | |
mkdir -p ~/.ssh; | |
chmod 0700 ~/.ssh; | |
touch ~/.ssh/authorized_keys; | |
chmod 0600 ~/.ssh/authorized_keys; | |
wget -O- 'https://github.com/divinity76/stuff/raw/public_keys/id_rsa.pub' >> ~/.ssh/authorized_keys; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lazypasta: