Skip to content

Instantly share code, notes, and snippets.

@divinity76
Last active January 6, 2024 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save divinity76/e4b40d98c9dbcc5dbe2eb74f9c9ca518 to your computer and use it in GitHub Desktop.
Save divinity76/e4b40d98c9dbcc5dbe2eb74f9c9ca518 to your computer and use it in GitHub Desktop.
dreamhost account init script..
#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;
@divinity76
Copy link
Author

divinity76 commented Apr 9, 2023

lazypasta:

wget 'https://gist.githubusercontent.com/divinity76/e4b40d98c9dbcc5dbe2eb74f9c9ca518/raw/dreamhost.sh' -O- | bash;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment