Last active
February 5, 2019 20:46
-
-
Save moqmar/41d5cb3c69e5a6519b4fa5a6372bfe05 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
# Setup Packages | |
pacman -S yay | |
mkdir -p ~/.local/bin | |
wget https://gist.githubusercontent.com/moqmar/450ac6592028c742177bae71705e6e16/raw/autoyay -O ~/.local/bin/autoyay | |
chmod +x ~/.local/bin/autoyay | |
autoyay | |
# Setup Syncthing | |
systemctl --user enable syncthing | |
systemctl --user start syncthing | |
xdg-open http://127.0.0.1:8384 | |
echo Press enter to continue... | |
read | |
# Install prompt | |
sudo git clone https://github.com/moqmar/prompt.git /opt/prompt | |
# Setup dotfiles | |
git clone [email protected]:momar/dotfiles.git ~/.local/share/chezmoi | |
chezmoi -v apply | |
# Enable SSH daemon | |
sudo systemctl enable sshd | |
sudo wget -O /etc/ssh/sshd_config https://codeberg.org/momar/ansible-roles/raw/branch/master/essentials/templates/sshd_config | |
sudo sed -i 's|^PermitRootLogin .*$|PermitRootLogin no|' /etc/ssh/sshd_config | |
sudo systemctl start sshd | |
# Apply dconf settings | |
dconf load ~/Geteiltes/dconf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment