Skip to content

Instantly share code, notes, and snippets.

@moqmar
Last active February 5, 2019 20:46
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 moqmar/41d5cb3c69e5a6519b4fa5a6372bfe05 to your computer and use it in GitHub Desktop.
Save moqmar/41d5cb3c69e5a6519b4fa5a6372bfe05 to your computer and use it in GitHub Desktop.
#!/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 git@codeberg.org: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