Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: ShadowAce

# When I was playing with different distros / troubleshooting this one, I wrote a bash script that will install all the software I needed, so I could re-install without worry. The script sets up my user account, hostname, NFS mount points, wallpaper that I like, adds a couple of PPAs, sets up my VPN, performs a full update/upgrade, and reboots.

I’d be interested in the script if is generic enough that you could share it sir.


47 posted on 12/18/2021 11:57:41 AM PST by zeugma (Stop deluding yourself that America is still a free country.)
[ Post Reply | Private Reply | To 20 | View Replies ]


To: zeugma
Sure--make changes for username, etc and as you see fit.

It's really quite straightforward and no logic


#!/bin/bash

if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi

cp /home/ShadowAce/ShadowAce-user /etc/sudoers.d/.
cat /home/ShadowAce/fstab >> /etc/fstab
hostnamectl set-hostname <new-hostname>

git clone https://github.com/pop-os/pop.git

# change version number to something current (This is for the nvidia driver)
/home/ShadowAce/pop/scripts/apt add 470.42

mkdir /usr/share/backgrounds/images
mkdir /mnt/{TV,movies}

cp -r /home/ShadowAce/Downloads/wallpaper/*.jpg /usr/share/backgrounds/images/.
#add-apt-repository ppa:libreoffice/ppa
#add-apt-repository ppa:videolan/stable-daily
apt-add-repository ppa:lucioc/sayonara
apt -y install /home/ShadowAce/Downloads/nordvpn-release_1.0.0_all.deb
apt -y install xfsprogs xfsdump attr quota
apt update
apt -y full-upgrade --allow-downgrades
apt -y install nordvpn
apt -y install kde-standard
apt -y install tuned terminator vim transmission rdesktop flameshot
apt -y install pidgin pidgin-sipe python3-pip expect tcl ffmpeg mediainfo vlc xsane xsane-common
apt -y install sayonara nfs-kernel-server shellcheck shc
apt -y install xscreensave* hpli*
apt -y install /home/ShadowAce/Downloads/zoom_amd64.deb
apt -y install /home/ShadowAce/Downloads/icaclient_21.6.0.28_amd64.deb

systemctl set-default graphical.target
pip3 install bpytop
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
chmod a+rx /usr/local/bin/youtube-dl
ln -s /usr/bin/python3.8 /usr/bin/python
systemctl enable nordvpnd
apt -y autoremove --purge
reboot


This is specific to Pop!_OS. I have a similar one for Fedora when I was trying to get that to work on my System76 hardware.

48 posted on 12/18/2021 2:25:45 PM PST by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 47 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson