Compare commits

...
This repository has been archived on 2024-09-06. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.

11 commits

12 changed files with 41 additions and 70 deletions

View file

@ -1 +0,0 @@
deb http://deb.debian.org/debian stretch-backports main contrib non-free

View file

@ -1,7 +0,0 @@
Package: *
Pin:release n=sid
Pin-Priority:-10
Package: *
Pin:release n=stretch-backport
Pin-Priority:-10

View file

@ -1 +0,0 @@
deb http://ftp.debian.org/debian sid main

View file

@ -1,2 +1,3 @@
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::AutocleanInterval "7";

View file

@ -1,10 +1,10 @@
// ACAQB unattended upgrades configuration file
Unattended-Upgrade::Origin-Pattern {
"o=Debian,n=stretch";
"o=Debian,n=stretch-updates";
"o=Debian,n=stretch,l=Debian-Security";
"o=Debian,n=sid";
Unattended-Upgrade::Origins-Pattern {
"o=Debian,n=${distro_codename}";
"o=Debian,n=${distro_codename}-updates";
"o=Debian,n=${distro_codename},l=Debian-Security";
};
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::MinimalSteps "true";
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
Acquire::http::Dl-Limit "50";

View file

@ -1,3 +0,0 @@
Package: libreoffice libreoffice-gtk3 libreoffice-l10n-fr
Pin: release n=stretch-backports
Pin-Priority: 991

View file

@ -1,3 +0,0 @@
Package: remmina remmina-plugin-rdp
in: release n=stretch-backports
Pin-Priority: 991

View file

@ -1,3 +0,0 @@
Package: fusioninventory-agent
Pin: release n=sid
Pin-Priority: 991

View file

@ -1,3 +0,0 @@
Package: papirus-icon-theme
Pin: release n=sid
Pin-Priority: 991

View file

@ -3,6 +3,7 @@
pulseaudio
unzip
unattended-upgrades
apt-listchanges
# Desktop
xorg

View file

@ -1,3 +0,0 @@
deb http://ftp.fr.debian.org/debian unstable main contrib non-free
#deb http://ftp.fr.debian.org/debian unstable-updates main
#deb http://ftp.fr.debian.org/ unstable/updates main

View file

@ -12,40 +12,41 @@ source lib/download.sh
source conf/init.sh
#Variables override
for i in $(ls conf/*.conf)
for i in conf/*
do
source $i
source "$i"
done
erase_display_char () {
let "i=0"
while [ $i -lt $1 ]; do
local i
i=0
while [ "$i" -lt "$1" ]; do
message "\b \b"
let "i=$i + 1"
(( i=i + 1 ))
done
}
install () {
nchar=0
message "\nInstall $1 : "
LC_ALL=C apt-get install --no-install-recommends -y $1 2>/dev/null | while read x; do
LC_ALL=C apt-get install --no-install-recommends -y "$1" 2>/dev/null | while read -r x; do
display=""
pkg_name=""
case $x in
Get*)
pkg_name=$(echo $x | awk '{ printf $5 }')
pkg_name=$(echo "$x" | awk '{ printf $5 }')
display="downloading"
;;
Unpack*)
pkg_name=$(echo $x | awk '{ printf $2 }')
pkg_name=$(echo "$x" | awk '{ printf $2 }')
display="Unpacking"
;;
*already*newest*)
pkg_name=$(echo $x | awk '{ printf $1 }')
display="Already Installed"
pkg_name=$(echo "$x" | awk '{ printf $1 }')
display="Already Ins talled"
;;
esac
if [ ! -z "$display" ]
if [ -n "$display" ]
then
display="$display $pkg_name"
erase_display_char $nchar
@ -58,15 +59,15 @@ install () {
}
process_package_file (){
for p in `cat $1 | grep '^[^#].*'`
for p in $(cat "$1" | grep '^[^#].*')
do
install $p
install "$p"
done
}
create_fusioninv_conf () {
# Process Config file
message "\nProcess Fusion inventory configuration file : "
message "\nP rocess Fusion inventory configuration file : "
#remove comments
sed -i '/^#/ d' ${FI_CONF_FILE}
sed -i '/^$/ d' ${FI_CONF_FILE}
@ -82,17 +83,17 @@ create_fusioninv_conf () {
}
configure_drm(){
if [ -z "$(grep -o drm $INITRAMFS_CONF_FILE)" ]
if grep -q drm "$INITRAMFS_CONF_FILE"
then
cat "drm" >> $INITRAMFS_CONF_FILE
else
message "DRM already done " "warn"
fi
if [ -z "$(grep -o $1 $INITRAMFS_CONF_FILE)" ]
then
cat "$1 modeset=1" >> $INITRAMFS_CONF_FILE
else
echo "drm" >> "$INITRAMFS_CONF_FILE"
fi
if grep -q "$1" "$INITRAMFS_CONF_FILE"
then
message "$1 already done " "warn"
else
echo "$1 modeset=1" >> "$INITRAMFS_CONF_FILE"
fi
}
@ -102,15 +103,19 @@ configure_grub (){
}
configure_plymouth (){
local module=$(lsmod | grep -o "i915\|radeon" | head -1)
local module
module=$(lsmod | grep -o "i915\|radeon" | head -1)
if [ ! "$module" == "" ]
then
message "\nConfigure drm modules for $module : "
configure_drm $module
configure_drm "$module"
message "done" "ok"
message "\nConfigure grub command line : "
local splash_enable=$(sed -rn 's/GRUB_CMDLINE_LINUX_DEFAULT=\"(.*)\"/\1/p' ${GRUB_DEFAULT_CONF_FILE} | grep -o "splash" )
[[ -z $splash_enable ]] && configure_grub || message "Grub splash kernel option exist " "warn"
local splash_enable
splash_enable=$(sed -rn 's/GRUB_CMDLINE_LINUX_DEFAULT=\"(.*)\"/\1/p' ${GRUB_DEFAULT_CONF_FILE} | grep -o "splash" )
if [ -z "$splash_enable" ]; then configure_grub; else message "Grub splash kernel option exist " "warn"; fi
message "done" "ok"
message "\nSelect plymouth theme : "
plymouth-set-default-theme -R spinner &>/dev/null
@ -121,13 +126,6 @@ configure_plymouth (){
fi
}
message "\nAdd Debian stretch backport and Sid Repository :"
cp ./files/apt/*.list /etc/apt/sources.list.d/
cp ./files/apt/20-stable /etc/apt/preferences.d/
cp ./files/apt/60-* /etc/apt/preferences.d/
cp ./files/apt/80-* /etc/apt/preferences.d/
message "done\n" "ok"
apt-get update &>/dev/null
process_package_file files/packages.list
@ -135,6 +133,8 @@ process_package_file files/packages.list
message "Activate unattended upgrades : "
cp ./files/apt/20auto-upgrades /etc/apt/apt.conf.d/
cp ./files/apt/50unattended-upgrades /etc/apt/apt.conf.d/
echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections
dpkg-reconfigure -f noninteractive unattended-upgrades
message "done" "ok"
message "\ninstall custom background images : "
@ -157,11 +157,4 @@ message "OK" "ok"
#remove interface file until NM use network
rm -rf /etc/network/interfaces
#add elementary theme
#mkdir -p /tmp/themes/
#cd /tmp/themes/
#download master.zip https://github.com/shimmerproject/elementary-xfce/archive/
#unzip master.zip > /dev/null
#mv elementary-xfce-master/* /usr/share/icons/
#rm -rf *
exit 0