Last active
May 12, 2022 15:13
-
-
Save 24Naman/434009b8697f1e47607f8494baaca96b to your computer and use it in GitHub Desktop.
Pop! OS Post Installation script - NVIDIA GeForce 720M
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Check if running as sudo | |
if [[ $(id -u) -ne 0 ]]; then | |
echo "Please run as sudo" | |
exit 1 | |
fi | |
echo "Setting up Pop Experience" | |
# Take password for Samba | |
echo -e -n "Enter your password (It will be used for Samba setup): " | |
read -s password | |
echo | |
# Update the system | |
echo -e "Updating Pop! OS" | |
apt update; apt upgrade -y; apt dist-upgrade -y; apt autoremove -y; apt autoclean -y | |
echo -e "Updated Pop! OS" | |
# NVIDIA | |
echo -e "Updating Nvidia" | |
apt purge -y '*nvidia*' | |
apt install -y nvidia-driver-390 | |
apt install wget patch | |
cd ~ | |
mkdir NVIDIA | |
cd NVIDIA | |
wget -O inttf-nvidia-patcher.sh https://nvidia.if-not-true-then-false.com/patcher/inttf-nvidia-patcher.sh | |
chmod +x inttf-nvidia-patcher.sh | |
./inttf-nvidia-patcher.sh -v 390.144 | |
echo -e "Nvidia Updated" | |
# Java | |
# GCC | |
# G++ | |
echo -e "Installing Compilers" | |
apt install default-jdk gcc g++ -y | |
echo -e "Installed: Compilers " | |
# wget gdebi | |
echo -e "Installing wget gdebi" | |
apt install wget gdebi-core -y | |
echo -e "Installed: wget gdebi" | |
# Snap | |
echo -e "Installing snap" | |
apt install snapd -y | |
echo -e "Installed: snap" | |
# Change working directory | |
echo -e "Making pop-setup" | |
mkdir pop-setup | |
cd pop-setup | |
echo -e "pop-setup Created" | |
# Chrome | |
echo "Installing Chrome" | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
apt install ./google-chrome-stable_current_amd64.deb -y | |
echo "Installed: Chrome" | |
# XDM | |
echo "Installing XDM" | |
apt install jq -y | |
wget https://github.com/$(wget https://github.com/subhra74/xdm/releases/latest -O - | egrep '/.*/.*/.*tar.xz' -o) | |
mkdir xdm-temp | |
xdm_file=`ls | grep xdm` | |
tar xvf $xdm_file --directory xdm-temp | |
chmod +x xdm-temp/install.sh | |
bash xdm-temp/install.sh | |
rm -R xmd-temp | |
echo "Installed: XDM" | |
# Steam | |
echo "Installing Steam" | |
wget https://cdn.akamai.steamstatic.com/client/installer/steam.deb | |
dpkg -i steam_latest.deb | |
echo "Installed: Steam" | |
# Sejda | |
echo "Installing Sejda" | |
wget https://sejda-cdn.com/downloads/sejda-desktop_7.3.7_amd64.deb | |
dpkg -i sejda-desktop_7.3.7_amd64.deb | |
echo "Installed: Sejda" | |
# VS Code | |
echo "Installing VS Code" | |
wget https://code.visualstudio.com/sha/download?build=insider&os=linux-deb-x64 | |
dpkg -i code-insiders*.deb | |
echo "Installed: VS Code" | |
# Samba | |
echo "Setting up Samba" | |
apt install gnome-user-share -y | |
apt install samba -y | |
echo -e '\n\n[PopPlay]\ncomment = Samba on Pop! OS\npath = /home/naman/PopPlay\nread only = no\nbrowsable = yes' >> /etc/samba/smb.conf | |
(echo $password; echo $password) | sudo smbpasswd -a naman | |
service smbd restart | |
ufw allow samba | |
echo "Samba setup complete" | |
# Cows | |
echo "Installing Cows" | |
apt install cowsay -y | |
echo "Cows: Installed" | |
# Theme | |
echo "Installing Orchis Theme" | |
git clone https://github.com/vinceliuice/Orchis-theme.git | |
./Orchis-theme/install.sh | |
echo "Orchis Theme Installed" | |
# Update .bashrc | |
echo "Updating .bashrc file" | |
echo -e '\n\n# ## Beast ##' >> ~/.bashrc | |
echo -e alias cls=\'tput reset\' >> ~/.bashrc | |
echo -e >> ~/.bashrc | |
echo -e alias refresh="\"'sudo -- sh -c apt update; apt upgrade -y; apt dist-upgrade -y; apt autoremove -y; apt autoclean -y'\"" >> ~/.bashrc | |
echo "Updated .bashrc file" | |
# Updating hostname | |
echo "Updating hostname" | |
sudo hostnamectl set-hostname beast | |
# Replacing pop-os with beast | |
sed -i -e 's/pop-os/beast/g' /etc/hosts | |
echo "Updated hostname" | |
# clean-up | |
echo "Cleaning up" | |
source ~/.bashrc | |
refresh | |
echo "Clean up complete" | |
# Rebooting the system | |
seconds=10 | |
cowthink "I'll reboot in $seconds seconds..." | |
cowsay "Your Pop! OS will be ready after the reboot" | |
sleep ${seconds}s | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment