mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Initial incremental port from legacy EmComm Tools project
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Minimal bootstrap script for the installer
|
||||
|
||||
[ ! -d $ET_HOME/bin ] && mkdir -v -p $ET_HOME/bin
|
||||
|
||||
cp -v ../overlay/$ET_HOME/bin/et-log $ET_HOME/bin/
|
||||
[ ! -e /usr/local/bin/et-log ] && ln -v -s $ET_HOME/bin/et-log /usr/local/bin/et-log
|
||||
|
||||
et-log "Starting EmComm Tools OS Community installation"
|
||||
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Configure GNOME
|
||||
|
||||
et-log "Configuring GNOME"
|
||||
|
||||
cp ../overlay/usr/share/glib-2.0/schemas/90_ubuntu-settings.gschema.override \
|
||||
/usr/share/glib-2.0/schemas/
|
||||
|
||||
cp ../overlay/usr/share/icons/emcomm-tools-icon-black-512.png \
|
||||
/usr/share/icons/
|
||||
chmod 644 /usr/share/icons/emcomm-tools-*.png
|
||||
|
||||
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Configure users
|
||||
set -e
|
||||
|
||||
et-log "Configuring users"
|
||||
|
||||
cp -r ../overlay/etc/skel /etc/
|
||||
[ ! -e /etc/skel/Desktop ] && mkdir /etc/skel/Desktop
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Global environment variables
|
||||
|
||||
export ET_HOME=/opt/emcomm-tools
|
||||
export ET_USER=games
|
||||
export ET_GROUP=games
|
||||
export ET_TEMP_DIR=/tmp/et
|
||||
export ET_LOG_FILE=$ET_TEMP_DIR/et.log
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Global functions
|
||||
|
||||
function exitIfNotRoot() {
|
||||
if [ $EUID -ne 0 ]; then
|
||||
echo "Exiting. You must be root."
|
||||
echo "Try running: sudo ./$(basename $0)"
|
||||
exit -1
|
||||
fi
|
||||
}
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Install base tools
|
||||
set -e
|
||||
|
||||
et-log "Installing base packages"
|
||||
apt install \
|
||||
build-essential \
|
||||
cmake \
|
||||
curl \
|
||||
gpg \
|
||||
jq \
|
||||
net-tools \
|
||||
openjdk-11-jdk \
|
||||
openssh-server \
|
||||
screen \
|
||||
stow \
|
||||
tree \
|
||||
-y
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Install boot screen branding
|
||||
|
||||
et-log "Installing EmComm Tools branding"
|
||||
|
||||
apt install plymouth-themes -y
|
||||
|
||||
PLYMOUTH_DIR=/usr/share/plymouth
|
||||
BOOT_LOGO=/usr/share/plymouth/ubuntu-logo.png
|
||||
BOOT_LOGO_ORIG=$BOOT_LOGO.orig
|
||||
|
||||
if [ ! -e $BOOT_LOGO_ORIG ]; then
|
||||
cp $BOOT_LOGO $BOOT_LOGO_ORIG
|
||||
et-log "Backing up boot screen logo: $BOOT_LOGO"
|
||||
fi
|
||||
|
||||
et-log "Installing boot screen logo"
|
||||
cp ../logos/emcomm-tools-logo-white.png $BOOT_LOGO
|
||||
|
||||
et-log "Installing desktop wallpaper"
|
||||
cp ../logos/emcomm-tools-wallpaper.png /usr/share/backgrounds/
|
||||
cp ../logos/emcomm-tools-wallpaper.png /usr/share/backgrounds/warty-final-ubuntu.png
|
||||
|
||||
gsettings set org.gnome.desktop.background picture-uri file:////usr/share/backgrounds/emcomm-tools-wallpaper.png
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Install light weight web browser
|
||||
|
||||
et-log "Installing Brave web browser"
|
||||
|
||||
INSTALL_PATH=$(which brave-browser)
|
||||
if [ $? -ne 0 ]; then
|
||||
apt install apt-transport-https -y
|
||||
|
||||
# Add Brave repository.
|
||||
curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
|
||||
|
||||
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
|
||||
|
||||
apt update
|
||||
|
||||
apt install brave-browser -y
|
||||
else
|
||||
et-log "Brave already installed: $INSTALL_PATH. Skipping."
|
||||
fi
|
||||
|
||||
Executable
+35
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 29 December 2023
|
||||
# Purpose : Install development tools
|
||||
set -e
|
||||
|
||||
et-log "Installing dev tools for fldigi"
|
||||
apt install \
|
||||
autoconf \
|
||||
gettext \
|
||||
libfltk1.3-dev \
|
||||
libportaudio2 \
|
||||
libsamplerate0-dev \
|
||||
libsndfile1-dev \
|
||||
libudev-dev \
|
||||
pkg-config \
|
||||
portaudio19-dev \
|
||||
-y
|
||||
|
||||
et-log "Installing dev tools for building EmComm Tools packages"
|
||||
apt install \
|
||||
git \
|
||||
libfuse2 \
|
||||
rpm \
|
||||
-y
|
||||
|
||||
et-log "Installing tools for building custom ISO image"
|
||||
if ! command -v cubic
|
||||
then
|
||||
sudo apt-add-repository universe -y
|
||||
sudo apt-add-repository ppa:cubic-wizard/release -y
|
||||
sudo apt update
|
||||
sudo apt install --no-install-recommends cubic -y
|
||||
fi
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Main installer for EmComm Tools OS Community
|
||||
set -e
|
||||
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
||||
trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR
|
||||
|
||||
. ./env.sh
|
||||
. ./functions.sh
|
||||
|
||||
exitIfNotRoot
|
||||
|
||||
./bootstrap.sh
|
||||
./update-apt.sh
|
||||
|
||||
./install-base.sh
|
||||
./install-dev-tools.sh
|
||||
./install-browser.sh
|
||||
./remove-packages.sh
|
||||
./install-branding.sh
|
||||
|
||||
./configure-gnome.sh
|
||||
./configure-user.sh
|
||||
|
||||
#./cf20-fix-brightness.sh
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 21 November 2022
|
||||
# Purpose : Remove unwanted packages
|
||||
|
||||
et-log "Removing unwanted packages"
|
||||
|
||||
apt purge \
|
||||
libreoffice-\* \
|
||||
thunderbird \
|
||||
snapd \
|
||||
unattended-upgrades \
|
||||
update-manager \
|
||||
update-notifier \
|
||||
-y
|
||||
|
||||
apt autoremove -y
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Updates the apt repository
|
||||
|
||||
et-log "Updating apt to use the old repository"
|
||||
|
||||
cp -v ../overlay/etc/apt/sources.list /etc/apt/sources.list
|
||||
apt update
|
||||
Reference in New Issue
Block a user