fix
This commit is contained in:
parent
30faf51b78
commit
d2dea50fef
36
debian.sh
36
debian.sh
@ -51,10 +51,11 @@ DEBIAN_RELEASE='testing'
|
|||||||
FLATPAKS+=( app/net.brinkervii.grapejuice org.kde.kdenlive )
|
FLATPAKS+=( app/net.brinkervii.grapejuice org.kde.kdenlive )
|
||||||
|
|
||||||
#Packages
|
#Packages
|
||||||
SHARED_DESKTOP_APPS=" gnome-core gimp gnome-tweaks gajim evolution nextcloud-desktop telegram-desktop gnome-photos handbrake vlc libreoffice "
|
|
||||||
PACKAGES=" libglu1-mesa preload podman-compose yt-dlp aardvark-dns apt-transport-https zram-tools samba samba-common nfs-common nfs-kernel-server linux-cpupower locales redis cockpit cockpit-machines cockpit-podman flatpak powertop blueman cups acpi packagekit cockpit-packagekit cockpit-pcp cockpit-storaged acpid podman pulseaudio ghostscript cifs-utils ntp vim-airline rsync screen base udev git network-manager efibootmgr linux-headers-amd64 cryptsetup network-manager-openvpn ntp screen docbook-xsl alsa-utils sysstat postgresql redis neofetch fuse3 build-essential unzip bash-completion parted dosfstools wget curl "
|
PACKAGES=" libglu1-mesa preload podman-compose yt-dlp aardvark-dns apt-transport-https zram-tools samba samba-common nfs-common nfs-kernel-server linux-cpupower locales redis cockpit cockpit-machines cockpit-podman flatpak powertop blueman cups acpi packagekit cockpit-packagekit cockpit-pcp cockpit-storaged acpid podman pulseaudio ghostscript cifs-utils ntp vim-airline rsync screen base udev git network-manager efibootmgr linux-headers-amd64 cryptsetup network-manager-openvpn ntp screen docbook-xsl alsa-utils sysstat postgresql redis neofetch fuse3 build-essential unzip bash-completion parted dosfstools wget curl "
|
||||||
|
SHARED_DESKTOP_APPS=" gnome-core gimp gnome-tweaks gajim evolution nextcloud-desktop telegram-desktop gnome-photos handbrake vlc libreoffice "
|
||||||
#REMOVED=" podman-toolbox syncthing "
|
#REMOVED=" podman-toolbox syncthing "
|
||||||
VIRTUALIZATION=" virt-manager qemu-system libvirt-daemon-system ovmf "
|
VIRTUALIZATION=" virt-manager qemu-system libvirt-daemon-system ovmf "
|
||||||
|
|
||||||
PACKAGES=$PACKAGES$SHARED_DESKTOP_APPS$VIRTUALIZATION
|
PACKAGES=$PACKAGES$SHARED_DESKTOP_APPS$VIRTUALIZATION
|
||||||
SERVICES+=( powertop preload );
|
SERVICES+=( powertop preload );
|
||||||
|
|
||||||
@ -116,14 +117,28 @@ systemMounts(){
|
|||||||
mount -t efivarfs none $TARGET/sys/firmware/efi/efivars
|
mount -t efivarfs none $TARGET/sys/firmware/efi/efivars
|
||||||
}
|
}
|
||||||
|
|
||||||
additional-software(){
|
install-vscode(){
|
||||||
wget -O - http://debian.drdteam.org/drdteam.gpg | sudo apt-key add -
|
|
||||||
wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg
|
|
||||||
echo "deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main" | tee /etc/apt/sources.list.d/element-io.list
|
|
||||||
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
|
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
|
||||||
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' | tee /etc/apt/sources.list.d/vscodium.list
|
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' | tee /etc/apt/sources.list.d/vscodium.list
|
||||||
|
apt update;apt install -y codium
|
||||||
|
}
|
||||||
|
|
||||||
|
install-doom(){
|
||||||
|
wget -O - http://debian.drdteam.org/drdteam.gpg | apt-key add -
|
||||||
add-apt-repository 'deb http://debian.drdteam.org/ stable multiverse'
|
add-apt-repository 'deb http://debian.drdteam.org/ stable multiverse'
|
||||||
apt update;apt install -y -o Dpkg::Options::="--force-unsafe-io" element-desktop codium zandronum doomseeker-zandronum
|
apt update;apt install -y zandronum doomseeker-zandronum
|
||||||
|
}
|
||||||
|
|
||||||
|
install-element(){
|
||||||
|
wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main" | tee /etc/apt/sources.list.d/element-io.list
|
||||||
|
apt update;apt install -y element-desktop
|
||||||
|
}
|
||||||
|
|
||||||
|
additional-software(){
|
||||||
|
install-element
|
||||||
|
install-doom
|
||||||
|
install-vscode
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
@ -134,22 +149,27 @@ install() {
|
|||||||
apt update;apt install debootstrap -y
|
apt update;apt install debootstrap -y
|
||||||
rm -rf /debootstrap
|
rm -rf /debootstrap
|
||||||
debootstrap --arch amd64 $DEBIAN_RELEASE $TARGET https://deb.debian.org/debian
|
debootstrap --arch amd64 $DEBIAN_RELEASE $TARGET https://deb.debian.org/debian
|
||||||
|
apt-tweaks
|
||||||
systemMounts
|
systemMounts
|
||||||
cp -f /etc/resolv.conf $TARGET/etc/
|
cp -f /etc/resolv.conf $TARGET/etc/
|
||||||
echo "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" > $TARGET/setup.sh
|
echo "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" > $TARGET/setup.sh
|
||||||
echo "deb https://deb.debian.org/debian $DEBIAN_RELEASE main contrib non-free" >>$TARGET/etc/apt/sources.list
|
echo "deb https://deb.debian.org/debian $DEBIAN_RELEASE main contrib non-free" >>$TARGET/etc/apt/sources.list
|
||||||
chroot $TARGET /usr/bin/apt update
|
chroot $TARGET /usr/bin/apt update
|
||||||
chroot $TARGET /usr/bin/bash -c "export DEBIAN_FRONTEND=noninteractive;/usr/bin/apt install -y -o Dpkg::Options::="--force-unsafe-io" $PACKAGES"
|
chroot $TARGET /usr/bin/bash -c "export DEBIAN_FRONTEND=noninteractive;/usr/bin/apt install -y $PACKAGES"
|
||||||
locale
|
locale
|
||||||
accounts
|
accounts
|
||||||
auto_login
|
auto_login
|
||||||
custom_service_files
|
custom_service_files
|
||||||
services
|
services
|
||||||
btrfs-tweaks
|
|
||||||
setup_script "$1"
|
setup_script "$1"
|
||||||
unmount
|
unmount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apt-tweaks(){
|
||||||
|
echo 'DPkg::Post-Invoke {"/usr/bin/debian.sh snapshot";};' > $TARGET/etc/apt/apt.conf
|
||||||
|
echo 'force-unsafe-io' > $TARGET/etc/dpkg/dpkg.cfg.d/docker-apt-speedup
|
||||||
|
}
|
||||||
|
|
||||||
desktop(){
|
desktop(){
|
||||||
systemctl disable --now exim4
|
systemctl disable --now exim4
|
||||||
systemctl disable --now cockpit.socket
|
systemctl disable --now cockpit.socket
|
||||||
|
Loading…
Reference in New Issue
Block a user