Skip to content

Instantly share code, notes, and snippets.

@gut5
Last active February 7, 2022 20:40
Show Gist options
  • Save gut5/47d118ec8163a89655732112ee7d88aa to your computer and use it in GitHub Desktop.
Save gut5/47d118ec8163a89655732112ee7d88aa to your computer and use it in GitHub Desktop.
InitialSetup.sh
#!/bin/sh
#wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
#sudo mv hosts /etc/hosts
#for opensuse
#sudo zypper install neovim git sqlite sensors podman
# atop
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
mkdir -p .config/nvim bin
curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-linux -o ~/bin/rust-analyzer
#force Fedora desktop to go to terminal after boot
#systemctl set-default multi-user.target
#ssh change username and remote_host
cat ~/.ssh/id_ed25519.pub | ssh username@remote_host "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && cat >> ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment