Skip to content

Instantly share code, notes, and snippets.

@MakiseKurisu
Last active April 29, 2021 06:44
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 MakiseKurisu/0308f8d3256eeba1f37b85df9a733499 to your computer and use it in GitHub Desktop.
Save MakiseKurisu/0308f8d3256eeba1f37b85df9a733499 to your computer and use it in GitHub Desktop.
Manjaro setup
#!/bin/bash
sudo systemctl enable --now sshd
sudo timedatectl set-ntp true
echo "HandleLidSwitch=ignore" | sudo tee -a /etc/systemd/logind.conf > /dev/null
sudo sed -i 's/DisplayCommand/#DisplayCommand/g' /etc/sddm.conf
sudo sed -i 's/DisplayStopCommand/#DisplayStopCommand/g' /etc/sddm.conf
yay -Syu optimus-manager
sudo systemctl disable bumblebeed
sudo systemctl enable optimus-manager
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 61ECEABBF2BB40E3A35DF30A9F72CDBC01BF10EB
yay -Syu xrdp-git xorgxrdp
echo "allowed_users=anybody" | sudo tee -a /etc/X11/Xwrapper.config > /dev/null
sudo systemctl enable --now xrdp xrdp-sesman
yay -Syu wireguard-tools
sudo nano /etc/wireguard/wg0.conf
sudo systemctl enable --now wg-quick@wg0
mkdir ~/.ssh
nano ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
#yay -S $(yay -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')
#yay -S lutris steam-manjaro
yay -S code qemu ebtables dnsmasq virt-manager libreoffice
sudo systemctl enable --now libvirtd
# For KDE please modify your ./.xinitrc to run "dbus-launch --sh-syntax startplasma-x11"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment