├── Screenshot.png ├── LICENSE ├── gnomeforpi-install └── README.md /Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMaroonHatHacker/gnomeforpi/HEAD/Screenshot.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | BSD 3-Clause License 2 | 3 | Copyright (c) 2021, TerraGitHuB 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 9 | 1. Redistributions of source code must retain the above copyright notice, this 10 | list of conditions and the following disclaimer. 11 | 12 | 2. Redistributions in binary form must reproduce the above copyright notice, 13 | this list of conditions and the following disclaimer in the documentation 14 | and/or other materials provided with the distribution. 15 | 16 | 3. Neither the name of the copyright holder nor the names of its 17 | contributors may be used to endorse or promote products derived from 18 | this software without specific prior written permission. 19 | 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | -------------------------------------------------------------------------------- /gnomeforpi-install: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [ "${UID}" != "0" ]; then 4 | echo "You must be root to run this script" 5 | exit 1 6 | fi 7 | 8 | echo "Starting script..." 9 | 10 | echo "Updating Repositories" 11 | sleep 2 12 | apt-get update 13 | wait 14 | apt-get upgrade -y 15 | wait 16 | 17 | lite=0 18 | 19 | while [ $# -gt 0 ]; do 20 | case "${1}" in 21 | -l|--lite) 22 | lite=1 23 | shift;; 24 | *) 25 | esac 26 | done 27 | 28 | if [ "${lite}" -eq 0 ]; then 29 | echo "Install all packages" 30 | sleep 2 31 | apt-get install -y gnome gnome-core gnome-software gnome-shell rpi-chromium-mods xorg #installs all required packages 32 | wait 33 | else 34 | echo "Install minimal options." 35 | sudo apt install -y gnome-session gnome-shell nautilus gedit gnome-terminal seahorse gnome-tweaks rpi-chromium-mods 36 | wait 37 | fi 38 | 39 | echo "Start Gnome at boot" 40 | sudo systemctl set-default graphical.target 41 | 42 | echo "Disabling dhcpcd to be able to connect to wifi via gnome network manager" 43 | echo "And enabling Network Manager to manage interfaces" 44 | sleep 2 45 | systemctl disable dhcpcd && /etc/init.d/dhcpcd stop 46 | sed -i s/managed=false/managed=true/ /etc/NetworkManager/NetworkManager.conf 47 | systemctl enable NetworkManager 48 | 49 | echo "change permission settings for GNOME" 50 | sleep 2 51 | sudo touch /etc/polkit-1/localauthority.conf.d/51-admin.conf 52 | wait 53 | sudo sh -c 'echo "[Configuration]" >> /etc/polkit-1/localauthority.conf.d/51-admin.conf' 54 | wait 55 | sudo sh -c 'echo "AdminIdentities=unix-group:sudo;unix-group:admin" >> /etc/polkit-1/localauthority.conf.d/51-admin.conf' 56 | wait 57 | 58 | echo "Rebooting, enjoy your new desktop!" 59 | sleep 2 60 | reboot 61 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GNOME For Pi 2 | 3 | A script to install GNOME on the Raspberry Pi 4 | 5 | ## NOTE 6 | 7 | This project hasn't been worked on by me for a long time. As such it may be currently broken. Pull requests from others are welcome, otherwise wait till I have the time to pick this back up again. 8 | 9 | ## Requirements 10 | 11 | * Raspberry Pi with an up to date Raspberry Pi OS Lite (R-Pi OS) installed. This can be a fresh install or a previous installation that is current with Bullseye. If the current install has not been updated recently, it would be wise to update and reboot before starting. (This has not been tested with older (e.g. Buster R-Pi OS) or the full R-Pi OS with native GUI.) 12 | * Internet connection either via WiFi or Ethernet. This will need to pull a lot of packages from the repositories. 13 | 14 | Testing has been performed on a 3B+ using the 32 bit release and on a 4B using the 64 bit release and in both cases, the releases made 2022-09-06. 15 | 16 | ![alt text](https://github.com/HankB/gnomeforpi/blob/stable/Screenshot.png) 17 | 18 | This simply installs the GNOME package for Raspberry Pi OS, then modifies config files to optimize GNOME. 19 | 20 | Video tutorial: 21 | 22 | ## Options 23 | There is a 'lite' install that can be implemented by executing the command `sudo gnomeforpi-install --lite` instead of `sudo gnomeforpi-install` (below.) The 'lite' install includes fewer packages and does not refer to the 'Lite' version of R-Pi OS. 24 | 25 | ## Process 26 | 27 | To get started, you'll need to do initial setup first. 28 | 29 | This must be done with Raspberry Pi OS lite, and an Ethernet or WiFi connection to the Internet is required. 30 | 31 | Firstly, login. using the user name and password established at first boot (or `pi`/`raspberry` for an older install which is still using the defaults.) Then execute the following commands: 32 | 33 | ```text 34 | wget https://github.com/TerraGitHuB/gnomeforpi/archive/refs/heads/stable.zip 35 | unzip stable.zip 36 | cd gnomeforpi-stable 37 | sudo ./gnomeforpi-install 38 | # - or - 39 | sudo ./gnomeforpi-install --lite 40 | ``` 41 | 42 | and just let her rip! 43 | 44 | Once it's finished, it will reboot, and you'll be faced with a login screen. Use the same credetials as above mentioned. 45 | 46 | > NOTE: Click the cogwheel at the bottom left of the login screen to change to "GNOME on Xorg". In my expeirirence, it provides the best performance. If needed Animations can be disabled in gnome-tweaks. 47 | 48 | If you expirience any bugs with the script itself feel free to open an issue here. 49 | 50 | Enjoy! 51 | --------------------------------------------------------------------------------