Skip to content

Instantly share code, notes, and snippets.

@opalmay
Forked from filipkania/install-gnome.sh
Last active November 19, 2021 08:30
Show Gist options
  • Save opalmay/6de9e09e7dcae4311a668a66857990d9 to your computer and use it in GitHub Desktop.
Save opalmay/6de9e09e7dcae4311a668a66857990d9 to your computer and use it in GitHub Desktop.
Install GNOME 40 on your Pop-OS! 21.04 (updated)
#!/bin/sh
# This has been forked to work with pop 21.04.
# Keep in mind this will delete the existing POP de and replace it with gnome 40.
# You should still be able to enable the POP theme and extentions.
# If you aren't sure of the implications you can always try it in a vm first.
#
# Please, create recovery usb before installing it.
# You're using it on your own risk.
# BTW. it works on my computer.
#
echo "---"
echo "WARNING!"
echo "THIS UPDATE MAY BE UNSTABLE. USE IT ON YOUR OWN RISK!"
echo "KEEP IN MIND THIS WILL DELETE THE EXISTING POP DE AND REPLACE IT WITH GNOME 40"
echo "(You should still be able to enable the POP theme and extentions)"
echo "PREPARE RECOVERY USB BEFORE INSTALLING IT."
echo "IF YOU DON'T WANT TO INSTALL THIS UPDATE, CLICK CTRL+C OR WRITE \"n\" RIGHT NOW!"
echo "BUT IF YOU WANT TO PROCEED JUST WRITE \"y\""
echo "---"
read ans
if [ $ans != "y" ]; then
exit 2
fi;
# adding gnome 40 repo
sudo add-apt-repository ppa:shemgp/gnome-40
# prevent downgrading gnome
sudo rm -f /etc/apt/preferences.d/pop-default-settings
# sometimes needed, was on my actual machine but not the vm so idk
# after install you can use the old file to add auto login/disable wayland
sudo mv /etc/gdm3/custom.conf /etc/gdm3/custom.conf.bak
sudo apt update
sudo apt upgrade -y --allow-downgrades
sudo apt install -y libc6 libhandy-1-dev mutter gnome-shell-common gnome-shell gnome-session gnome-tweaks gnome-shell-extension-prefs fonts-cantarell --allow-remove-essential
echo "---"
echo "If everything went well, you should see gnome-shell version 40 below.\n"
gnome-shell --version
echo "\nNow you can reboot system, remember to select \"GNOME\" option on your login screen in right down bottom."
echo "Hope everything will work :)"
echo "\nAfter installing use gnome-tweaks to set appearance to pop's defaults."
@filipkania
Copy link

worked flawlessly! :^)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment