-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from FherStk:ubuntu-24.04
Ubuntu-24.04
- Loading branch information
Showing
75 changed files
with
1,559 additions
and
42 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
#!/bin/bash | ||
#Global vars: | ||
CORE_VERSION="1.15.0" | ||
CORE_DISTRO="Ubuntu 22.04 LTS" | ||
BASE_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
IS_DESKTOP=$(gnome-shell --version 2>/dev/null | grep -c "GNOME Shell") | ||
CURRENT_BRANCH="main" | ||
INSTALL_PATH="/etc/isard-scripts" | ||
RUN_SCRIPT="sudo bash $INSTALL_PATH/run.sh" | ||
RUN_SCRIPT="sudo bash $INSTALL_PATH/ubuntu-22.04/run.sh" | ||
PROFILE="/home/$SUDO_USER/.profile" | ||
AUTOSTART="/home/$SUDO_USER/.config/autostart" | ||
DESKTOPFILE="$AUTOSTART/isard-scripts.desktop" | ||
|
@@ -298,13 +300,13 @@ set-network-static() | |
then | ||
#Ubuntu Desktop | ||
_file="/etc/netplan/01-network-manager-all.yaml" | ||
cp $BASE_PATH/main/netplan-static-desktop.yaml $_file | ||
cp $BASE_PATH/core/netplan-static-desktop.yaml $_file | ||
sed -i "s|x.x.x.x/yy|$1|g" $_file | ||
chmod 0600 $_file | ||
else | ||
#Ubuntu Server | ||
_file="/etc/netplan/00-network-manager-all.yaml" | ||
cp $BASE_PATH/main/netplan-static-server.yaml $_file | ||
cp $BASE_PATH/core/netplan-static-server.yaml $_file | ||
sed -i "s|x.x.x.x/yy|$1|g" $_file | ||
chmod 0600 $_file | ||
fi | ||
|
@@ -327,12 +329,12 @@ set-network-dhcp() | |
then | ||
#Ubuntu Desktop | ||
_file="/etc/netplan/01-network-manager-all.yaml" | ||
cp $BASE_PATH/main/netplan-dhcp-desktop.yaml $_file | ||
cp $BASE_PATH/core/netplan-dhcp-desktop.yaml $_file | ||
chmod 0600 $_file | ||
else | ||
#Ubuntu Server | ||
_file="/etc/netplan/00-network-manager-all.yaml" | ||
cp $BASE_PATH/main/netplan-dhcp-server.yaml $_file | ||
cp $BASE_PATH/core/netplan-dhcp-server.yaml $_file | ||
chmod 0600 $_file | ||
fi | ||
|
||
|
@@ -348,8 +350,8 @@ set-network-names() | |
#Output: N/A | ||
#################################################################################### | ||
|
||
cp $BASE_PATH/main/isard-scripts-network-setup.sh /usr/local/bin/ | ||
cp $BASE_PATH/main/isard-scripts-network-setup.service /etc/systemd/system/ | ||
cp $BASE_PATH/core/isard-scripts-network-setup.sh /usr/local/bin/ | ||
cp $BASE_PATH/core/isard-scripts-network-setup.service /etc/systemd/system/ | ||
|
||
chmod 744 /usr/local/bin/isard-scripts-network-setup.sh | ||
chmod 664 /etc/systemd/system/isard-scripts-network-setup.service | ||
|
@@ -591,7 +593,7 @@ auto-login-enable() | |
|
||
_file="/etc/systemd/system/[email protected]/override.conf" | ||
echo "Creating the file '$_file'" | ||
cp $BASE_PATH/main/auto-login.conf $_file | ||
cp $BASE_PATH/core/auto-login.conf $_file | ||
sed -i "s|<USERNAME>|$SUDO_USER|g" $_file | ||
fi | ||
} | ||
|
@@ -657,7 +659,7 @@ passwords-background() | |
|
||
else | ||
#Server | ||
_source="$BASE_PATH/main/50-landscape-sysinfo" | ||
_source="$BASE_PATH/core/50-landscape-sysinfo" | ||
_dest="/etc/update-motd.d/50-landscape-sysinfo" | ||
echo "Creating entry into '$_dest'..." | ||
cp $_source $_dest | ||
|
@@ -688,8 +690,9 @@ info() | |
|
||
echo "" | ||
echo -e "${YELLOW}IsardVDI Template Generator:$NC $1 [v$2]" | ||
echo -e "${YELLOW}Copyright © 2023:$NC Fernando Porrino Serrano" | ||
echo -e "${YELLOW}Under the AGPL license:$NC https://github.com/FherStk/isard-scripts/blob/main/LICENSE" | ||
echo -e "${YELLOW}Core distro:$NC ${CORE_DISTRO} [v${CORE_VERSION}]" | ||
echo -e "${YELLOW}Copyright © 2024:$NC Fernando Porrino Serrano" | ||
echo -e "${YELLOW}Under the AGPL license:$NC https://github.com/FherStk/isard-scripts/blob/core/LICENSE" | ||
} | ||
|
||
startup(){ | ||
|
@@ -755,7 +758,7 @@ script-setup(){ | |
echo "" | ||
title "Performing system setup:" | ||
echo "Disabling auto-upgrades..." | ||
cp $BASE_PATH/main/auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades | ||
cp $BASE_PATH/core/auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades | ||
dpkg-reconfigure -f noninteractive unattended-upgrades | ||
|
||
setup-hostname "$HOST_NAME" | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
utils/odoo-v16/upgrade.sh → ubuntu-22.04/utils/odoo-v16/upgrade.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
SCRIPT_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
source $SCRIPT_PATH/../main.sh | ||
source $SCRIPT_PATH/../core.sh | ||
|
||
apt-upgrade |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
SCRIPT_VERSION="1.0.0" | ||
SCRIPT_NAME="App Install" | ||
|
||
SCRIPT_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
SCRIPT_FILE=$(basename $BASH_SOURCE) | ||
source $SCRIPT_PATH/utils/core.sh | ||
|
||
startup | ||
apt-upgrade | ||
|
||
echo "" | ||
title "Installing into $INSTALL_PATH:" | ||
rm -rf $INSTALL_PATH | ||
|
||
get-branch | ||
git clone https://github.com/FherStk/isard-scripts.git --branch $CURRENT_BRANCH $INSTALL_PATH | ||
|
||
sudo-password-disable | ||
auto-login-enable | ||
|
||
echo "" | ||
title "Setting up the first launch after user logon (just once):" | ||
if [ $IS_DESKTOP -eq 1 ]; | ||
then | ||
#Ubuntu Desktop | ||
echo "Setting up the $DESKTOPFILE entry..." | ||
mkdir -p $AUTOSTART | ||
cp $BASE_PATH/install/isard-scripts.desktop $DESKTOPFILE | ||
sed -i "s|<INSTALL_PATH>|$INSTALL_PATH|g" $DESKTOPFILE | ||
sed -i "s|<RUN_SCRIPT>|$RUN_SCRIPT|g" $DESKTOPFILE | ||
else | ||
#Ubuntu Server | ||
echo "Setting up the $PROFILE entry..." | ||
append-no-repeat "$RUN_SCRIPT" "$PROFILE" | ||
fi | ||
|
||
main-password-setup | ||
done-no-reboot | ||
|
||
echo -e "${YELLOW}You can now proceed with additional customizations or just shutdown the computer and template it.$NC" |
Oops, something went wrong.