]> gitweb.morketsmerke.org Git - immudex-testing.git/commitdiff
Dodanie testowego pliku bazowego, aktualizującego curl
authorxf0r3m <jakubstasinski@protonmail.com>
Thu, 12 Oct 2023 10:26:50 +0000 (12:26 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Thu, 12 Oct 2023 10:26:50 +0000 (12:26 +0200)
versions/base_curl.sh [new file with mode: 0644]

diff --git a/versions/base_curl.sh b/versions/base_curl.sh
new file mode 100644 (file)
index 0000000..5518493
--- /dev/null
@@ -0,0 +1,161 @@
+#!/bin/bash
+
+ARCH=$(dpkg --print-architecture);
+cd;
+if [ -x /usr/bin/git ]; then git clone https://github.com/xf0r3m/immudex-testing;
+else apt install git -y && git clone https://github.com/xf0r3m/immudex-testing;
+
+fi
+source ~/immudex-testing/versions/template.sh;
+
+echo "deb http://deb.debian.org/debian/ testing main" > /etc/apt/sources.list;
+echo "deb-src http://deb.debian.org/debian/ testing main" >> /etc/apt/sources.list;
+echo "deb http://security.debian.org/debian-security testing-security main" >> /etc/apt/sources.list;
+echo "deb-src http://security.debian.org/debian-security testing-security main" >> /etc/apt/sources.list;
+echo "deb http://deb.debian.org/debian/ testing-updates main" >> /etc/apt/sources.list;
+echo "deb-src http://deb.debian.org/debian/ testing-updates main" >> /etc/apt/sources.list;
+update_packages;
+
+
+if [ $ARCH = "amd64" ]; then
+install_packages --no-install-recommends linux-image-amd64 live-boot systemd-sysv -y;
+else
+install_packages --no-install-recommends linux-image-686-pae live-boot systemd-sysv -y;
+fi
+
+install_packages tzdata locales keyboard-configuration console-setup;
+
+dpkg-reconfigure tzdata;
+dpkg-reconfigure locales;
+dpkg-reconfigure keyboard-configuration;
+dpkg-reconfigure console-setup;
+
+install_packages task-desktop task-xfce-desktop;
+
+install_packages firejail ufw cryptsetup lsof extlinux grub-efi-amd64 efibootmgr bash-completion etherwake wakeonlan cifs-utils wget figlet mpv yt-dlp vim-gtk3 redshift irssi nmap nfs-common remmina python3-pip ffmpeg debootstrap squashfs-tools xorriso syslinux-efi grub-pc-bin grub-efi-amd64-bin mtools dosfstools chrony python3-venv isolinux rsync mutt gimp openvpn netselect-apt gvfs-backends dnsutils xfce4-notes-plugin;
+
+if [ $ARCH = "amd64" ]; then
+  wget https://ftp.morketsmerke.org/immudex/testing/software/librewolf/librewolf-118.0.1-1.en-US.linux-x86_64.tar.bz2;
+  tar -xf librewolf-118.0.1-1.en-US.linux-x86_64.tar.bz2 -C /usr/lib;
+  rm librewolf-118.0.1-1.en-US.linux-x86_64.tar.bz2;
+else
+  wget https://ftp.morketsmerke.org/immudex/testing/software/librewolf/librewolf-118.0.1-1.en-US.linux-i686.tar.bz2;
+  tar -xf librewolf-118.0.1-1.en-US.linux-i686.tar.bz2 -C /usr/lib;
+  rm librewolf-118.0.1-1.en-US.linux-i686.tar.bz2;
+fi
+ln -s /usr/lib/librewolf/librewolf /usr/bin/librewolf;
+
+#head -1 /etc/apt/sources.list | tee /etc/apt/sources.list.d/xfce4-notes-plugin.list;
+#sed -i 's/testing/experimental/' /etc/apt/sources.list.d/xfce4-notes-plugin.list;
+#apt update;
+#apt install xfce4-notes-plugin -y;
+#rm /etc/apt/sources.list.d/xfce4-notes-plugin.list;
+#apt update;
+
+cd;
+
+#16.08.2023 - z repozytoriów Debian testing został usunięty pakiet picom.
+git clone https://github.com/xf0r3m/xfcedebian -b d13;
+cd xfcedebian;
+bash install.sh;
+
+cd;
+
+cp -vv ~/immudex-testing/tools/immudex-autostart-x4notes /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-create-media /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-addons /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-branch /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-crypt /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-hostname /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-install /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-import-gpgkeys /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-import-sshkeys /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-meteo /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-morketsmerke /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-motd2 /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-newsfeed /usr/local/bin;
+#cp -vv ~/immudex-testing/tools/immudex-notifier /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-padlock /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-pl /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-secured-firefox /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-shoutcasts /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-version /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-upgrade /usr/local/bin;
+cp -vv ~/immudex-testing/tools/immudex-ytplay /usr/local/bin;
+cp -vv ~/immudex-testing/tools/library.sh /usr/local/bin;
+cp -vv ~/immudex-testing/tools/idle-clic /usr/local/bin;
+cp -vv ~/immudex-testing/tools/sync.sh /usr/local/bin;
+
+
+chmod +x /usr/local/bin/*;
+
+mkdir /etc/skel/.irssi
+
+cp -vv ~/immudex-testing/files/config /etc/skel/.irssi;
+cp -vv ~/immudex-testing/files/default.theme /etc/skel/.irssi;
+cp -rvv ~/immudex-testing/files/libreoffice /etc/skel/.config;
+cp -vv ~/immudex-testing/files/firejail.config /etc/firejail;
+#cp -vv ~/immudex-testing/files/Notifier\ -\ distro.desktop /etc/skel/.config/autostart;
+cp -vv ~/immudex-testing/files/redshift.conf /etc/skel/.config;
+cp -vv ~/immudex-testing/files/redshift.desktop /etc/skel/.config/autostart;
+cp -vv ~/immudex-testing/files/terminalrc /etc/skel/.config/xfce4/terminal;
+cp -vv ~/immudex-testing/files/xfce4-keyboard-shortcuts.xml /etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml
+cp -vv ~/immudex-testing/files/whiskermenu-1.rc /etc/skel/.config/xfce4/panel;
+cp -vv ~/immudex-testing/files/xfwm4.xml /etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml;
+
+# Instalacja MIME jest teraz częścią projektu 'xfcedebian'
+#cp -vv ~/immudex-testing/files/${VERSION}/mimeapps.list /etc/skel/.config;
+
+cp -rvv ~/immudex-testing/files/sync.sh /usr/share;
+cp -vv ~/immudex-testing/files/gtk-main.css /usr/share/xfce4-notes-plugin/gtk-3.0/;
+cp -vv ~/immudex-testing/files/librewolf.desktop /usr/share/applications;
+cp -vv ~/immudex-testing/files/immudex_hostname.service /etc/systemd/system;
+
+tar -xzvf ~/immudex-testing/files/mozilla.tgz -C /etc/skel;
+tar -xf ~/immudex-testing/files/librewolf.tgz -C /etc/skel;
+#cp -vv ~/immudex-testing/images/${VERSION}/apply.png /usr/share/icons;
+cp -vv ~/immudex-testing/images/rss.png /usr/share/icons;
+
+cp -vv ~/immudex-testing/launchers/16844254192.desktop /etc/skel/.config/xfce4/panel/launcher-5;
+
+systemctl enable immudex_hostname.service;
+
+cat >> /etc/bash.bashrc << EOL
+if [ ! -f /tmp/.motd ]; then
+/usr/local/bin/immudex-motd2
+touch /tmp/.motd;
+fi
+EOL
+
+echo "alias immudex-chhome='export HOME=\$(pwd)'" >> /etc/bash.bashrc;
+echo "alias immudex-changelogs='immudex-upgrade --check --print'" >> /etc/bash.bashrc;
+echo "alias immudex-version='immudex-upgrade --myversion'" >> /etc/bash.bashrc;
+
+chmod u+s /usr/bin/ping;
+
+/usr/sbin/ufw default deny incoming;
+/usr/sbin/ufw default allow outgoing;
+/usr/sbin/ufw enable;
+
+echo "immudex" > /etc/hostname;
+echo "127.0.1.1   immudex" >> /etc/hosts;
+
+recreate_users;
+echo "user ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers;
+echo "xf0r3m ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers;
+#Miejsce na twoje zmiany, przed poleceniem 'tidy'
+cd;
+mkdir curl;
+cd curl;
+wget https://github.com/curl/curl/archive/refs/tags/curl-8_4_0.tar.gz;
+tar -xf curl-8_4_0.tar.gz;
+cd curl-curl-8_4_0;
+sudo apt install -y zlib1g-dev libc6-dev libnghttp2-dev libidn2-0-dev librtmp-dev libssh2-1-dev libpsl-dev libssh2-1-dev libssl-dev libgss-dev libldap-dev libzstd-dev libbrotli-dev libgnutls28-dev libhogweed6 nettle-dev libgmp-dev libkrb5-dev libk5crypto3 libcom-dev libkrb5support0 libsasl2-dev libp11-dev libtasn1-6-dev libkeyutils-dev libffi-dev autoconf libtool
+autoreconf -fi
+make
+make install
+rm /usr/bin/curl
+cp -vv /usr/local/lib/libcurl.* /lib/x86_64-linux-gnu/
+ln -s /usr/local/bin/curl /usr/bin/curl;
+curl -V
+tidy;