Skip to content

Instantly share code, notes, and snippets.

@liamdawson
Created January 7, 2018 14:37
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 liamdawson/f45e85d4bec28c2c5f2ddcf1b339e5d7 to your computer and use it in GitHub Desktop.
Save liamdawson/f45e85d4bec28c2c5f2ddcf1b339e5d7 to your computer and use it in GitHub Desktop.
openSUSE post-install on XPS
sudo zypper in -y pam_kwallet
sudo usermod -aG wheel liamdawson
sed -i 's/## Do not insult users when they enter an incorrect password.//g' /etc/sudoers
sed -i 's/Defaults !insults/Defaults insults/g' /etc/sudoers
sed -i 's/Defaults targetpw # ask for the password of the target user i.e. root/Defaults !targetpw # ask for the password of the current user/g' /etc/sudoers
sed -i 's/ALL ALL=(ALL) ALL # WARNING! Only use this together with .Defaults targetpw.!/#ALL ALL=(ALL) ALL # only secure if targetpw default is active/g' /etc/sudoers
sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g' /etc/sudoers
rpmkeys --import https://keybase.io/docs/server_security/code_signing_key.asc
sudo zypper in -y https://prerelease.keybase.io/keybase_amd64.rpm
run_keybase
keybase pgp export -s | gpg --allow-secret-key-import --import -
sudo snapper create -d BeforeBB
sudo zypper in -y bumblebee bbswitch
sudo usermod -aG bumblebee liamdawson
sudo systemctl enable bumblebeed
sudo systemctl start bumblebeed
echo "blacklist nouveau" | sudo tee -a /etc/modprobe.d/99-local.conf
sudo mkinitrd
sudo zypper in -y Mesa-libGL1-32bit libX11-6-32bit primus-32bit
sudo zypper ar --refresh http://http.download.nvidia.com/opensuse/tumbleweed NVIDIA
sudo zypper dup
sudo zypper ar -cf http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_Tumbleweed/X11:Bumblebee.repo
sudo zypper in -y nvidia-bumblebee nvidia-bumblebee-32bit
sudo systemctl enable dkms
sudo mkinitrd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment