Compare commits

...

13 Commits
2.3.0 ... main

Author SHA1 Message Date
Mac ed5e36ee01 Merge pull request 'Update linux_mint.sh' (#74) from update-for-mint-21.3 into main
Reviewed-on: https://codeberg.org/Computertruhe/Setup-Skripte/pulls/74
2024-01-28 17:11:58 +00:00
Mac 75a9bc1efd Update linux_mint.sh
incremented version numbers only
2024-01-28 18:10:37 +01:00
B3rtl 1fc3684997 Merge pull request 'use 'p' a partition table suffix if $DEV is NVME' (#73) from smu/Setup-Skripte:nvme into main
Reviewed-on: https://codeberg.org/Computertruhe/Setup-Skripte/pulls/73
Reviewed-by: B3rtl <b3rtl@noreply.codeberg.org>
Reviewed-by: Valentin Bachem <hdvalentin@noreply.codeberg.org>
2023-11-10 07:38:19 +00:00
Valentin Bachem c4cd6b0fd8 Merge pull request 'fehlendes paket' (#71) from B3rtl/Ubuntu-Setup-Skripte:skripte-f-install into main
Reviewed-on: https://codeberg.org/Computertruhe/Setup-Skripte/pulls/71
Reviewed-by: smu <smu@noreply.codeberg.org>
Reviewed-by: Valentin Bachem <hdvalentin@noreply.codeberg.org>
2023-09-25 18:42:32 +00:00
B3rtl c63f56a982 Merge branch 'main' into skripte-f-install 2023-09-25 18:32:07 +00:00
smu 8f6d1ec3f4 use 'p' a partition table suffix if $DEV is NVME 2023-09-08 21:31:14 +02:00
Mac 99ce4abade Merge pull request 'update-for-mint-21.2' (#72) from update-for-mint-21.2 into main
Reviewed-on: https://codeberg.org/Computertruhe/Setup-Skripte/pulls/72
Reviewed-by: hontoni <hontoni@noreply.codeberg.org>
Reviewed-by: Werrner <werrner@noreply.codeberg.org>
2023-08-13 17:59:41 +00:00
Mac dd5a01bca3 Update linux_mint.sh
- fixed typo
2023-08-06 20:58:39 +02:00
Mac 7749e65d55 Update linux_mint.sh
- get rid off output that is sent usually to stdout and stderr
2023-08-06 00:45:01 +02:00
Mac 4e02be504e Update linux_mint.sh
- changed distro version
- added some packages that won't be installed when in OEM setup without Internet connection
- changed color of echo messages from red to green
2023-07-28 20:31:51 +02:00
Robert cfc21d4a7f zusatzpakete mitbringen 2023-04-18 18:30:37 +02:00
Robert 05df5c9d50 zusatzpakete mitbringen 2023-04-18 18:29:36 +02:00
Robert 9be090a044 fehlendes paket 2023-04-18 18:20:24 +02:00
4 changed files with 55 additions and 10 deletions

View File

@ -1,5 +1,11 @@
#!/bin/bash
if [[ -z "$(command -v growpart)" || -z "$(command -v btrfs)" ]]; then
echo "growpart oder btrfs fehlt! Installiere cloud-guest-utils und btrfs-progs..."
sudo apt update
sudo apt install -y cloud-guest-utils btrfs-progs
fi
if [ -z "$(command -v dialog)" ]; then
echo "dialog fehlt! Installiere dialog..."
sudo apt update
@ -61,6 +67,12 @@ echo "Warte 2 Sekunden vor dem löschen, abbrechen mit strg + c..."
sleep 2
echo "Achtung - vorbei, ich mache jetzt alles platt auf" "${DEV}"
NVME_PARTITION_SUFFIX=''
if [[ "$DEV" == *"nvme"* ]]; then
echo "$DEV is NVME device"
NVME_PARTITION_SUFFIX='p'
fi
case "$IMG" in
*.bz2)
sudo dd if="$IMG" bs=1M status=progress | bzip2 -d > "$DEV"
@ -71,7 +83,7 @@ case "$IMG" in
esac
sync
sudo growpart $DEV 3
sudo mount ${DEV}3 /mnt
sudo mount ${DEV}${NVME_PARTITION_SUFFIX}3 /mnt
sudo btrfs filesystem resize max /mnt
sudo umount /mnt
sync

View File

@ -3,7 +3,7 @@
if [ -z "$(command -v dialog)" ]; then
echo "dialog fehlt! Installiere dialog..."
sudo apt update
sudo apt install -y dialog
sudo apt install -y dialog btrfs-progs
fi

View File

@ -0,0 +1,32 @@
#!/bin/bash
IMG="$1"
DEV="$2"
if [[ -z "$(command -v growpart)" || -z "$(command -v btrfs)" ]]; then
echo "growpart oder btrfs fehlt! Installiere cloud-guest-utils und btrfs-progs..."
sudo apt update
sudo apt install -y cloud-guest-utils btrfs-progs
fi
if [ -z "$IMG" ] ; then
echo "Image-File angeben!"
exit 1
fi
if [ -z "$DEV" ] ; then
echo "HDD dev angeben! z. B. /dev/hdc"
exit 1
fi
echo "Warte 5 Sekunden vor dem löschen, abbrechen mit strg + c..."
sleep 5
echo "Achtung - vorbei, ich mache jetzt alles platt auf" "${DEV}"
sudo dd if="$IMG" of=$DEV bs=1M status=progress
sync
sudo growpart $DEV 3
sudo mount ${DEV}3 /mnt
sudo btrfs filesystem resize max /mnt
sudo umount /mnt
sync

View File

@ -9,8 +9,8 @@
export DEBIAN_FRONTEND=noninteractive
DPKG_CFG_FRAGMENT=/etc/dpkg/dpkg.cfg.d/non-interactive
# Linux distro
script_distro='Linux Mint 21.1'
# Name of the distribution
script_distro='Linux Mint 21.3'
# Additional packages
packages=(
@ -35,10 +35,12 @@ packages=(
mythes-ar
thunderbird-locale-ar
# DE
language-pack-gnome-de-base # Installed only with Internet connection during the OEM setup.
firefox-locale-de
hunspell-de-at
hunspell-de-ch
hunspell-de-de
thunderbird-locale-de # Installed only with Internet connection during the OEM setup.
# EN
thunderbird-locale-en-gb
# FA
@ -68,11 +70,10 @@ packages=(
# $*: message to echo.
e() {
printf "\e[31m>>>\e[0m %s\n" "$*"
printf "\e[32m>>>\e[0m %s\n" "$*"
}
# It's a pain to stop execution (CTRL+C, kill) with all the Python applications
# so we catch SIGINT and SIGTERM and exit immediately.
# It's a pain to stop execution (CTRL+C, kill) with all the Python applications so we catch SIGINT and SIGTERM and exit immediately.
handle_signal() {
e "Ausführung abgebrochen! Skript wird beendet."
exit 1
@ -105,7 +106,7 @@ echo "\
###
# Maintainer: Computertruhe e. V.
# Website: https://computertruhe.de/
# Version: 2.3.0
# Version: 2.3.2
# Repo: https://codeberg.org/Computertruhe/Setup-Skripte
# Distro: ${script_distro}
###
@ -113,7 +114,7 @@ echo "\
e "Starte initiales Setup für Rechner mit frisch installiertem '${script_distro}' …"
# Use APT proxy if available.
ping -c 1 apt-proxy
ping -c 1 apt-proxy > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
e "Nutze APT-Proxy."
echo 'Acquire::https::Proxy "http://apt-proxy:3142";' > /etc/apt/apt.conf.d/01aptproxy
@ -146,7 +147,7 @@ e "Proprietäre Treiber installieren (sofern verfügbar) …"
ubuntu-drivers autoinstall
e "Multimedia-Codecs installieren …"
pkg mint-meta-codecs
pkg mint-meta-codecs # Installed only with Internet connection during the OEM setup.
e "Zusätzliche Software installieren …"
pkg "${packages[@]}"