Created
August 6, 2022 14:34
-
-
Save Harry-W-Haines-III/a4ca664acd3a47158e02845ae48959f0 to your computer and use it in GitHub Desktop.
Mini script to get the Linux Mint environment 95% where I like it to be.
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
#!/bin/bash | |
############################################################################# | |
# # | |
# Mini script to get the Linux Mint environment 95% where I like it to be. # | |
# # | |
############################################################################# | |
# # | |
# # | |
############################################################################# | |
# # | |
# Copyright (c) 2016, 2019, 2022 Harry W. Haines, III # | |
# Contact e-mail: signal17@gmail.com # | |
# # | |
# This program is free software; you can redistribute it and/or modify # | |
# it under the terms of the GNU General Public License as published by # | |
# the Free Software Foundation; either version 2 of the License, or # | |
# (at your option) any later version. # | |
# # | |
# This program is distributed in the hope that it will be useful, # | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
# GNU General Public License for more details. # | |
# # | |
# You should have received a copy of the GNU General Public License # | |
# along with this program; if not, write to the Free Software # | |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # | |
# # | |
############################################################################# | |
############################################################################# | |
# # | |
# Most Recent Change Log: # | |
# # | |
# 2022-07-04 07:58 AM EDT First version. | |
# | |
# | |
# Set some system variables to shorten the file paths. | |
MP="media/$USER/files-ext4" # MP=Install from Media Path | |
sudo test | |
# | |
# Disable bracketed paste. | |
echo set enable-bracketed-paste off >> ~/.inputrc | |
# | |
# Fix a couple of services. | |
sudo systemctl stop casper-md5check.service | |
sudo systemctl disable casper-md5check.service | |
# | |
# Install a few things to save some steps. | |
sudo apt install -y \ | |
dconf-editor \ | |
gparted \ | |
hexchat-plugins \ | |
mint-dev-tools \ | |
openoffice.org-hyphenation \ | |
pinta \ | |
thunderbird-locale-en-gb | |
sudo dpkg -i /$MP/system-monitoring-center_1.8.0_all.deb | |
echo " " | |
echo "Purging fonts for EMA and APJ languages ..." | |
echo " " | |
sleep 1 | |
sudo apt-get -y --purge autoremove \ | |
fonts-beng \ | |
fonts-beng-extra \ | |
fonts-deva \ | |
fonts-deva-extra \ | |
fonts-droid-fallback \ | |
fonts-gargi \ | |
fonts-gubbi \ | |
fonts-gujr \ | |
fonts-gujr-extra \ | |
fonts-guru \ | |
fonts-guru-extra \ | |
fonts-indic \ | |
fonts-kacst \ | |
fonts-kacst-one \ | |
fonts-kalapi \ | |
fonts-khmeros-core \ | |
fonts-knda \ | |
fonts-lao \ | |
fonts-lklug-sinhala \ | |
fonts-lohit-beng-assamese \ | |
fonts-lohit-beng-bengali \ | |
fonts-lohit-deva \ | |
fonts-lohit-gujr \ | |
fonts-lohit-guru \ | |
fonts-lohit-knda \ | |
fonts-lohit-mlym \ | |
fonts-lohit-orya \ | |
fonts-lohit-taml \ | |
fonts-lohit-taml-classical \ | |
fonts-lohit-telu \ | |
fonts-mlym \ | |
fonts-nakula \ | |
fonts-navilu \ | |
fonts-noto-cjk \ | |
fonts-noto-color-emoji \ | |
fonts-orya \ | |
fonts-orya-extra \ | |
fonts-pagul \ | |
fonts-sahadeva \ | |
fonts-samyak-deva \ | |
fonts-samyak-gujr \ | |
fonts-samyak-mlym \ | |
fonts-samyak-taml \ | |
fonts-sarai \ | |
fonts-sil-abyssinica \ | |
fonts-sil-padauk \ | |
fonts-smc \ | |
fonts-smc-anjalioldlipi \ | |
fonts-smc-chilanka \ | |
fonts-smc-dyuthi \ | |
fonts-smc-gayathri \ | |
fonts-smc-karumbi \ | |
fonts-smc-keraleeyam \ | |
fonts-smc-manjari \ | |
fonts-smc-meera \ | |
fonts-smc-rachana \ | |
fonts-smc-raghumalayalamsans \ | |
fonts-smc-suruma \ | |
fonts-smc-uroob \ | |
fonts-taml \ | |
fonts-telu \ | |
fonts-telu-extra \ | |
fonts-teluguvijayam \ | |
fonts-thai-tlwg \ | |
fonts-tibetan-machine \ | |
fonts-tlwg-garuda \ | |
fonts-tlwg-garuda-ttf \ | |
fonts-tlwg-kinnari \ | |
fonts-tlwg-kinnari-ttf \ | |
fonts-tlwg-laksaman \ | |
fonts-tlwg-laksaman-ttf \ | |
fonts-tlwg-loma \ | |
fonts-tlwg-loma-ttf \ | |
fonts-tlwg-mono \ | |
fonts-tlwg-mono-ttf \ | |
fonts-tlwg-norasi \ | |
fonts-tlwg-norasi-ttf \ | |
fonts-tlwg-purisa \ | |
fonts-tlwg-purisa-ttf \ | |
fonts-tlwg-sawasdee \ | |
fonts-tlwg-sawasdee-ttf \ | |
fonts-tlwg-typewriter \ | |
fonts-tlwg-typewriter-ttf \ | |
fonts-tlwg-typist \ | |
fonts-tlwg-typist-ttf \ | |
fonts-tlwg-typo \ | |
fonts-tlwg-typo-ttf \ | |
fonts-tlwg-umpush \ | |
fonts-tlwg-umpush-ttf \ | |
fonts-tlwg-waree \ | |
fonts-tlwg-waree-ttf \ | |
fonts-yrsa-rasa | |
# | |
echo " " | |
echo "Add in PS35 font set for Windows, additional FOSS, legacy & DTP fonts ..." | |
echo " " | |
sleep 1 | |
sudo cp -a /$MP/fonts/truetype/* /usr/share/fonts/truetype/ | |
sudo chown -R root:root /usr/share/fonts/truetype/ | |
sudo fc-cache -f && fc-cache -f && sudo dpkg-reconfigure fontconfig | |
echo " " | |
echo "Copy custom desktop wallpaper sets ..." | |
echo " " | |
sleep 1 | |
# Note: copied to /usr/share/backgrounds/ and | |
# /usr/share/cinnamon-background-properties/ because system does not | |
# recognize the XML files in ~/.local/share/cinnamon-background-properties | |
# Copy media content and XML files over. | |
sudo cp /$MP/backgrounds/blue/azure3-dk.png /usr/share/backgrounds/linuxmint/ | |
sudo cp -a /$MP/backgrounds/* /usr/share/backgrounds/ | |
sudo cp \ | |
/$MP/cinnamon-background-properties/* \ | |
/usr/share/cinnamon-background-properties/ | |
# | |
# Copy over additional Cinnamon user account face pictures. | |
# Copied to /usr/share/cinnamon/faces/ for system wide availability. | |
sudo cp /$MP/faces/*.jpg /usr/share/cinnamon/faces/ | |
sudo cp /$MP/faces/*.png /usr/share/cinnamon/faces/ | |
# | |
echo "Copy additional icon themes ..." | |
echo " " | |
echo "Copy Mint-X-Faience-Azur Icons ..." | |
sudo unzip -q /$MP/icons/Mint-X-Faience-Azur.zip -d /usr/share/icons/ | |
echo "Copy Mint-Y-Faience-Azur Icons ..." | |
sudo unzip -q /$MP/icons/Mint-Y-Faience-Azur.zip -d /usr/share/icons/ | |
echo " " | |
echo "Create icon cache files ..." | |
echo " " | |
echo "Mint-X-Faience-Azur ..." | |
sudo gtk-update-icon-cache /usr/share/icons/Mint-X-Faience-Azur | |
echo "Mint-Y-Faience-Azur ..." | |
sudo gtk-update-icon-cache /usr/share/icons/Mint-Y-Faience-Azur | |
# Copy over custom sounds created at different volume levels of | |
# -1 db, -5 db, -7 db and -9 db. | |
echo " " | |
echo "Copy over custom sounds created at different volume levels ..." | |
sudo cp /$MP/sounds/*.ogg /usr/share/mint-artwork/sounds/ | |
# | |
sleep 1 | |
# Completely remove existing presence from target OS before restore. | |
if [ -e "/$HOME/.config/hexchat/" ] | |
then | |
rm -r -R --force ~/.config/hexchat | |
fi | |
# Completely remove existing presence from target OS before restore. | |
if [ -e "/$HOME/.mozilla/" ] | |
then | |
rm -r -R ~/.mozilla | |
fi | |
# Completely remove existing presence from target OS before restore. | |
if [ -e "/$HOME/.thunderbird/" ] | |
then | |
rm -r -R ~/.thunderbird | |
fi | |
# | |
cp -R /$MP/hexchat/ ~/.config/ | |
cp -R /$MP/.mozilla/ ~/. | |
cp -R /$MP/.thunderbird/ ~/. | |
# | |
echo " " | |
echo "Do a basic desktop configuration ..." | |
echo " " | |
#rsync -avh --delete --dry-run /$MP/configs/ ~/.cinnamon/configs/ | |
cp -a /$MP/calendar@simonwiles.net ~/.local/share/cinnamon/applets/ | |
cp -a /$MP/weather@mockturtl ~/.local/share/cinnamon/applets/ | |
rsync -ah /$MP/configs/ ~/.cinnamon/configs/ | |
dconf load / < /$MP/all.dconf | |
echo " " | |
echo "######################################################################" | |
echo "## ##" | |
echo "## DONE !! ##" | |
echo "## ##" | |
echo "######################################################################" | |
echo " " | |
sleep 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment