Last active
May 11, 2020 21:27
-
-
Save YouriT/397baf9a85be32ad7322907c8abdf14b to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
mkdir -m 700 /root/.ssh | |
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCuANXQei8kiR+Tc/LSD7b8H4FutR0F00Em+DKfvZ+XTpcidI4yzcYEpeRUGRGGRvGUUHkGjIVBtBc5IjLTK+G/UXlFqmNG5gDt4Vt9i4V80a+xbas25gk09HMnb7BvpfcbUGtRP73tySyD9CAgdvLgmzSrzGpmsn2v1B9Fkn84/be66bqes5gltYrhZJwvLsi/gv7/qcVbfdw0ymsdxf3tCkY1TL452kMcLcH7spkcO67BHFh5Yr7Hezieee0vfQkmXTbJEkn8OxeNZpnbaCD6tJ4dp6vbudE/gN8/85I36/E1NeuEs8E1A3LRjkRxsqxPaPUbPLWQBjdjCWJzB7Fb Youri@Youris-MacBook-Pro.local' > /root/.ssh/authorized_keys | |
chmod 600 /root/.ssh/authorized_keys | |
wget --no-check-certificate -O /tmp/oh-my-zsh.sh https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | |
sh /tmp/oh-my-zsh.sh --unattended | |
cat <<'EOF' >> /root/.zshrc | |
PROMPT="%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} ${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info) | |
export PATH=$PATH:/usr/sbin | |
EOF | |
chsh -s /bin/zsh | |
/usr/bin/touch /root/postinstall.done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment