Last active
July 27, 2019 19:52
-
-
Save dima74/1af037ec595d5b7e15eebe5d11f6fc33 to your computer and use it in GitHub Desktop.
Quick digitalocean
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
# initial setup: | |
wget https://raw.githubusercontent.com/gh2o/digitalocean-debian-to-arch/debian9/install.sh -O install.sh | |
bash install.sh --extra_packages base-devel,htop,zsh,grml-zsh-config | |
# add user | |
sed -i 's/^#\s*\(%wheel\s\+ALL=(ALL)\s\+ALL\)/\1/' /etc/sudoers | |
useradd -m -G wheel -s /bin/zsh diralik | |
passwd diralik | |
echo 'Run on localhost: ssh-copy-id -i .ssh/id_rsa_my.pub diralik@IP' | |
# yay | |
git clone https://aur.archlinux.org/yay.git | |
cd yay | |
makepkg -si | |
cd .. && rm -rf yay | |
sudo sed -i 's/#Color/Color/w /dev/stdout' /etc/pacman.conf | read | |
yay --noeditmenu --nodiffmenu --nocleanmenu --removemake --cleanafter --save | |
yay -S zsh-autosuggestions zsh-syntax-highlighting byobu | |
byobu-enable | |
mv .zshrc .zshrc-grml | |
echo 'source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh' >>.zshrc | |
echo 'source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >>.zshrc | |
echo 'watch=()' >>.zshrc | |
sudo sed -i 's/^.*PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config | |
sudo systemctl restart sshd.service | |
sudo sh -c "echo 'en_US.UTF-8 UTF-8' >>/etc/locale.gen" | |
sudo locale-gen | |
# docker | |
sudo pacman -S docker | |
echo "alias docker='sudo docker'" >>.zshrc | |
sudo systemctl enable docker.service | |
sudo systemctl start docker.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment