This repository has been archived on 2023-12-20. You can view files and clone it, but cannot push or open issues or pull requests.
lis67-iso-builder/tasks.sh

77 lines
1.9 KiB
Bash
Raw Normal View History

2021-01-22 16:45:43 +01:00
# setup - do not touch
mount -t proc none /proc/
mount -t sysfs none /sys/
mount -t devpts none /dev/pts/
# end setup
# set timezone
echo "Europe/Paris" > /etc/timezone
ln -sf /usr/share/zoneinfo/$(cat /etc/timezone) /etc/localtime
2021-04-14 17:58:24 +02:00
dpkg-reconfigure -f noninteractive tzdata
2021-01-22 16:45:43 +01:00
sudo apt-get update
sudo apt-get upgrade -y
2021-01-22 16:45:43 +01:00
# install lang pack
lang=fr
for l in $(cat /usr/share/linuxmint/mintlocale/language_packs); do
category=$(echo $l | awk -F ':' '{print $1}')
if [ $category = 'tr' ]; then
languagecode=$(echo $l | awk -F ':' '{print $2}')
if [ -z $languagecode ] || [ $languagecode = 'fr' ]; then
dep=$(echo $l | awk -F ':' '{print $3}')
if [ -z $dep ] || dpkg -l $dep > /dev/null 2>&1; then
pull=$(echo $l | awk -F ':' '{print $4}')
echo "Installing $pull$lang because dep is '$dep'"
sudo apt-get install -y $pull$lang
fi
fi
fi
done
2021-01-26 18:58:12 +01:00
# setup custom background
rm /usr/share/backgrounds/linuxmint/default_background.jpg
ln -s sele_ring_lis67.jpg /usr/share/backgrounds/linuxmint/default_background.jpg
2021-01-22 16:45:43 +01:00
# gen locales
locale-gen fr
# language french
update-locale LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8
# keyboard french
sed -i 's/us/fr/g' /etc/default/keyboard
# install custom packages
# ANCESTRIS
2022-09-13 19:56:29 +02:00
#sudo add-apt-repository -y ppa:ancestris/ancestris-stable
#sudo apt-get update
#sudo apt-get install -y ancestris
2021-01-22 16:45:43 +01:00
# ABRICOTINE
2022-09-13 19:56:29 +02:00
#wget "https://github.com/brrd/abricotine/releases/download/1.0.0/abricotine-1.0.0-ubuntu-debian-x64.deb"
#sudo dpkg -i abricotine-1.0.0-ubuntu-debian-x64.deb
#rm abricotine-1.0.0-ubuntu-debian-x64.deb
2021-01-22 16:45:43 +01:00
# BAOBAB
2022-09-13 19:56:29 +02:00
#sudo apt-get install -y baobab
2021-01-22 16:45:43 +01:00
# SCRIBUS
2022-09-13 19:56:29 +02:00
#sudo apt-get install -y scribus
2021-01-22 16:45:43 +01:00
# KEEPASSXC
2022-09-13 19:56:29 +02:00
#sudo add-apt-repository -y ppa:phoerious/keepassxc
#sudo apt-get update
#sudo apt-get install -y keepassxc
2021-01-22 16:45:43 +01:00
# clean - do not touch
rm -rf /tmp/*
rm -f /etc/hosts /etc/resolv.conf
umount /proc/
umount /sys/
umount /dev/pts