From 81368a6bf57787740f9d8c2a0fcd72ccf11b261c Mon Sep 17 00:00:00 2001 From: archikid02 Date: Wed, 28 Jan 2026 17:59:09 +0000 Subject: [PATCH 01/36] alpine-qemu-install doesn use kvm --- usr/bin/alpine-qemu-install | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/usr/bin/alpine-qemu-install b/usr/bin/alpine-qemu-install index 5170067..65ab055 100755 --- a/usr/bin/alpine-qemu-install +++ b/usr/bin/alpine-qemu-install @@ -44,11 +44,10 @@ qemu-system-x86_64 \ -drive file=$IMG \ -display none \ -device virtio-vga \ - -enable-kvm \ - -net user,hostfwd=tcp::7777-:22 - -net nic - #-virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare - + -display default,show-cursor=on \ + -nic user,hostfwd=tcp::2222-:22 \ + -virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare + #-enable-kvm \ ## --- Run QEMU with graphics + shared folder --- #qemu-system-x86_64 \ From 971189d6243e3731a6c2960e1d8d838736b9610c Mon Sep 17 00:00:00 2001 From: archikid02 Date: Wed, 28 Jan 2026 17:59:34 +0000 Subject: [PATCH 02/36] alpine-qemu-install trying to run as non graphical --- usr/bin/alpine-qemu-install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/bin/alpine-qemu-install b/usr/bin/alpine-qemu-install index 65ab055..e30d7dc 100755 --- a/usr/bin/alpine-qemu-install +++ b/usr/bin/alpine-qemu-install @@ -42,12 +42,17 @@ qemu-system-x86_64 \ -boot once=d \ -cdrom $ISO \ -drive file=$IMG \ +<<<<<<< HEAD -display none \ -device virtio-vga \ -display default,show-cursor=on \ +======= +>>>>>>> 21c5e40 (alpine-qemu-install trying to run as non graphical) -nic user,hostfwd=tcp::2222-:22 \ -virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare + #-device virtio-vga \ #-enable-kvm \ + #-display default,show-cursor=on \ ## --- Run QEMU with graphics + shared folder --- #qemu-system-x86_64 \ From 21ead1e55192981f008911662721877b1d71021b Mon Sep 17 00:00:00 2001 From: larcelet <> Date: Mon, 22 Dec 2025 12:36:52 +0100 Subject: [PATCH 03/36] alpine-qemu-install no graphic --- usr/bin/alpine-qemu-install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr/bin/alpine-qemu-install b/usr/bin/alpine-qemu-install index e30d7dc..7a43aee 100755 --- a/usr/bin/alpine-qemu-install +++ b/usr/bin/alpine-qemu-install @@ -49,10 +49,11 @@ qemu-system-x86_64 \ ======= >>>>>>> 21c5e40 (alpine-qemu-install trying to run as non graphical) -nic user,hostfwd=tcp::2222-:22 \ + -device virtio-vga \ + -enable-kvm \ + -display default,show-cursor=on \ + -nographic -virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare - #-device virtio-vga \ - #-enable-kvm \ - #-display default,show-cursor=on \ ## --- Run QEMU with graphics + shared folder --- #qemu-system-x86_64 \ From 4ad36f5cf8cafeda1bbfef1292184d9e9b42a81c Mon Sep 17 00:00:00 2001 From: larcelet <> Date: Mon, 22 Dec 2025 12:38:29 +0100 Subject: [PATCH 04/36] alpine-qemu-install display none --- usr/bin/alpine-qemu-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/alpine-qemu-install b/usr/bin/alpine-qemu-install index 7a43aee..bd18924 100755 --- a/usr/bin/alpine-qemu-install +++ b/usr/bin/alpine-qemu-install @@ -52,7 +52,7 @@ qemu-system-x86_64 \ -device virtio-vga \ -enable-kvm \ -display default,show-cursor=on \ - -nographic + -display none \ -virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare ## --- Run QEMU with graphics + shared folder --- From 78fd3d03c20591d4a33c0c1eb349c8d12daaf2ca Mon Sep 17 00:00:00 2001 From: archikid02 Date: Wed, 28 Jan 2026 18:08:10 +0000 Subject: [PATCH 05/36] /!\ Big Merge REBASING --- install/apk.sh | 2 + install/chmod.sh | 2 + install/tree_cpy.sh | 4 ++ net/blacklist.txt | 45 +++++++++++-- net/whitelist.txt | 75 ++++++++++++++++++--- usr/bin/alpine-qemu-install | 13 +++- usr/bin/arch-arm-make-sd | 60 +++++++++++++++++ usr/bin/firefox-qemu-run | 36 ++++++++++ usr/bin/{alpine-qemu-run => gitea-qemu-run} | 22 +++--- usr/bin/m | 1 - usr/bin/p | 1 + usr/bin/vps-forward | 18 +++++ usr/etc/env | 1 + usr/etc/pam.d/login | 5 -- usr/etc/pam.d/system-local-login | 6 ++ usr/etc/resolv.conf | 2 + usr/etc/systemd/resolved.conf | 3 + 17 files changed, 261 insertions(+), 35 deletions(-) create mode 100755 usr/bin/arch-arm-make-sd create mode 100755 usr/bin/firefox-qemu-run rename usr/bin/{alpine-qemu-run => gitea-qemu-run} (70%) create mode 100755 usr/bin/vps-forward create mode 100644 usr/etc/pam.d/system-local-login mode change 100644 => 100755 usr/etc/systemd/resolved.conf diff --git a/install/apk.sh b/install/apk.sh index cd75af5..e11b9bf 100755 --- a/install/apk.sh +++ b/install/apk.sh @@ -12,6 +12,8 @@ apk add whois apk add nmap apk add man-db apk add vim +apk add iproute2 +apk add gitea apk add git-filter-repo diff --git a/install/chmod.sh b/install/chmod.sh index 354ea5c..af784d6 100755 --- a/install/chmod.sh +++ b/install/chmod.sh @@ -9,6 +9,8 @@ chmod -R 771 $MACHINE_DIR/install chmod -R 771 $BIN_DIR chmod -R 751 $SBIN_DIR find $MACHINE_DIR -type d -exec chmod 775 {} \; +chown root:root /etc/pam.d/* +chmod 644 /etc/pam.d/* exit 0 diff --git a/install/tree_cpy.sh b/install/tree_cpy.sh index 70093b2..9a7ccd1 100755 --- a/install/tree_cpy.sh +++ b/install/tree_cpy.sh @@ -9,3 +9,7 @@ USR_DIR=$(realpath $USR_DIR) #uses ssymbolic link otherwise crossdevice troubles cp -s -p -r -f -t / $USR_DIR/. + +sudo chown root:root / +sudo chown root:root /etc /var /run /dev /usr /sys +sudo chmod 755 / /etc /var /usr diff --git a/net/blacklist.txt b/net/blacklist.txt index 7b39724..80a89a9 100755 --- a/net/blacklist.txt +++ b/net/blacklist.txt @@ -1,16 +1,26 @@ +#Make crash archinstall +8.8.8.8 +70.27.250.39 +94.105.98.61 +129.97.134.71 +185.21.134.11 +159.195.6.177 +172.65.90.7 +193.121.15.225 + 34.0.0.0/8 35.0.0.0/8 #OVH 37.59.32.0/19 -#Hetzner (arch install) -46.62.192.0/22 - #Microsoft #40.114.177.156 -> lilie.duckdns.org, holland 40.96.0.0/12 +#Hetzner (arch install) +46.62.192.0/22 + #Staples us (arch install) 50.74.152.24/29 @@ -18,14 +28,35 @@ 95.216.0.0/16 #NETBLK Cox -#98.174.32.0/19 - -#OVH -#37.59.32.0/19 +98.174.32.0/19 #Cloud flare chatgpt #104.16.0.0/12 +#oman#mobile +134.0.192.0/20 + +#cloudflare eu (arch install) +# RIPE +# http addr +141.0.0.0/8 + +#Google +142.250.0.0/15 + +#Fastly ip geolocalisation (arch install) +146.75.0.0/20 + +#SKYCA-3#Owner:Fastly +#pip atproto ? +151.101.0.0/16 + +#OVH france +188.165.192.0/18 + +#Amsterdam, possiblement a Linz il y a quelques annees +193.0.0.0/20 + #oman#mobile #134.0.192.0/20 diff --git a/net/whitelist.txt b/net/whitelist.txt index 6156c97..5a50d51 100755 --- a/net/whitelist.txt +++ b/net/whitelist.txt @@ -1,15 +1,65 @@ -#Paypal -151.101.129.21 -34.107.221.82 - -#sigmanet#codium -178.238.223.0/24 -#gititea -34.217.253.146 +#local +10.0.0.0/8 +192.168.0.0/8 #microsoft (github) #20.0.0.0/11 +#winamax +34.96.80.159 + +#Paypal +#34.107.221.82 + +#ipinfo.io +34.117.59.81 + +#ifconfig.me +34.160.111.145 + +#plufinfirefox +34.120.208.123 + +#gitea +34.217.253.146 +35.91.213.186 + +#dns +66.28.0.61 + +#Thesuissbay +85.195.200.187 + +#ChatGpt +104.18.32.47 + +#lb.ludd.ltu.se #mirror +130.240.16.130 + +#ch.mirrors.cicku.me +141.101.90.119 + +#Paypal +151.101.129.21 + +#paiement infomaniak +151.101.38.4 + +#dl-cdn.alpinelinux.org +151.101.10.132 + +#plugin firefox +151.101.193.91 +151.101.129.91 +151.101.205.91 + +#sigmanet#codium +178.238.223.0/24 + +#infania pacman repo +#ftpmirror.infania.net +194.132.225.213 + #whois 199.212.0.0/24 @@ -19,9 +69,10 @@ #GitHub 185.199.111.0/24 -#ChatGpt -104.18.32.47 +#dns +209.244.0.3 +<<<<<<< HEAD #ipinfo.io 34.117.59.81 @@ -94,3 +145,7 @@ # ##dns #209.244.0.3 + +#debian +146.75.0.0/20 +199.232.0.0/16 diff --git a/usr/bin/alpine-qemu-install b/usr/bin/alpine-qemu-install index bd18924..c230a70 100755 --- a/usr/bin/alpine-qemu-install +++ b/usr/bin/alpine-qemu-install @@ -39,6 +39,7 @@ echo "iso = $ISO" qemu-system-x86_64 \ -m $RAM \ +<<<<<<< HEAD -boot once=d \ -cdrom $ISO \ -drive file=$IMG \ @@ -50,10 +51,16 @@ qemu-system-x86_64 \ >>>>>>> 21c5e40 (alpine-qemu-install trying to run as non graphical) -nic user,hostfwd=tcp::2222-:22 \ -device virtio-vga \ +======= + -boot d \ + -cdrom $ISO \ + -drive file=$IMG,if=virtio \ +>>>>>>> d378d2f ( /!\ Big Merge REBASING) -enable-kvm \ - -display default,show-cursor=on \ - -display none \ - -virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare + -net nic \ + -net user,hostfwd=tcp::7777-:22 + #-virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare + ## --- Run QEMU with graphics + shared folder --- #qemu-system-x86_64 \ diff --git a/usr/bin/arch-arm-make-sd b/usr/bin/arch-arm-make-sd new file mode 100755 index 0000000..da724af --- /dev/null +++ b/usr/bin/arch-arm-make-sd @@ -0,0 +1,60 @@ +#!/usr/bin/env bash +set -euo pipefail + +SDX="${1:-sdb}" + +BOOT="${SDX}1" +ROOT="${SDX}2" + +if [[ "$(id -u)" -ne 0 ]]; then + echo "Run as root." + echo "sdx as parameter" + exit 1 +fi + +echo "Target: /dev/${SDX}" +read -rp "Proceed? (y/N) " yn +[[ "${yn,,}" == "y" ]] || exit 0 + +# wipe partitions +fdisk /dev/"${SDX}" < systemctl enable --now systemd-resolved # # systemd is free software; you can redistribute it and/or modify it under the @@ -42,3 +43,5 @@ ReadEtcHosts=yes #ResolveUnicastSingleLabel=no #StaleRetentionSec=0 #RefuseRecordTypes= +======= +>>>>>>> d378d2f ( /!\ Big Merge REBASING) From 0bd03bba1dabb3577c349bc8e58fc9d9b439c96f Mon Sep 17 00:00:00 2001 From: archikid02 Date: Thu, 29 Jan 2026 19:22:21 +0000 Subject: [PATCH 06/36] clone --- usr/bin/clone | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/bin/clone b/usr/bin/clone index 96946ce..a261c4a 100755 --- a/usr/bin/clone +++ b/usr/bin/clone @@ -2,13 +2,14 @@ clone () { DEFAULT_ADDR="" + BASE="ssh://git@6.tcp.eu.ngrok.io:11272" if [ $# -ne "1" ]; then PROFIL_NAME="$1"; PROJECT_NAME="$2"; - git clone --recurse-submodules ssh://git@0.tcp.eu.ngrok.io:18869/$PROFIL_NAME/$PROJECT_NAME.git; else + PROFIL_NAME="painpain"; PROJECT_NAME="$1"; - git clone --recurse-submodules ssh://git@0.tcp.eu.ngrok.io:18869/painpain/$PROJECT_NAME.git; fi + git clone --recurse-submodules ${BASE}/$PROFIL_NAME/$PROJECT_NAME.git; } clone "$@" From 8e8323d61057bef0760585145253561e923b7163 Mon Sep 17 00:00:00 2001 From: archikid02 Date: Fri, 30 Jan 2026 18:46:05 +0000 Subject: [PATCH 07/36] vi --- usr/bin/vi | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 usr/bin/vi diff --git a/usr/bin/vi b/usr/bin/vi new file mode 100755 index 0000000..6e38db7 --- /dev/null +++ b/usr/bin/vi @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +nvim $@ From 95a43e698ff734828f7581dc6957d9a4571ed957 Mon Sep 17 00:00:00 2001 From: archikid02 Date: Fri, 30 Jan 2026 19:17:01 +0000 Subject: [PATCH 08/36] nvimconf --- usr/bin/nvimconf | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 usr/bin/nvimconf diff --git a/usr/bin/nvimconf b/usr/bin/nvimconf new file mode 100755 index 0000000..9b61410 --- /dev/null +++ b/usr/bin/nvimconf @@ -0,0 +1,4 @@ +#!/usr/bin/bash + +nvim ~/.conf/nvim + From 8686ca681d4200049a02a41758196603d4fcec65 Mon Sep 17 00:00:00 2001 From: archikid02 Date: Sat, 31 Jan 2026 17:24:26 +0000 Subject: [PATCH 09/36] pop --- usr/bin/pop | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 usr/bin/pop diff --git a/usr/bin/pop b/usr/bin/pop new file mode 100755 index 0000000..e1c77ed --- /dev/null +++ b/usr/bin/pop @@ -0,0 +1,15 @@ +#!/usr/bin/bash + +if [ "$#" -lt 1 ] ; then + echo "Usage: $0 arg1 [arg2] [arg3]" + exit 1 +fi + +for DIR in "#@" ; do + cp * . + cp .* . + mv $DIR /tmp +done + +exit 0 + From afdf9a2b8318276c1d2e246a20aeb2f4a39290a4 Mon Sep 17 00:00:00 2001 From: archikid02 Date: Sat, 31 Jan 2026 17:25:01 +0000 Subject: [PATCH 10/36] pop (recursive) --- usr/bin/pop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/pop b/usr/bin/pop index e1c77ed..9cffed4 100755 --- a/usr/bin/pop +++ b/usr/bin/pop @@ -6,8 +6,8 @@ if [ "$#" -lt 1 ] ; then fi for DIR in "#@" ; do - cp * . - cp .* . + cp -r * . + cp -r .* . mv $DIR /tmp done From 5c292bc1058dd61af6ded138eb7b5eba2998e630 Mon Sep 17 00:00:00 2001 From: archikid02 Date: Sat, 31 Jan 2026 17:27:39 +0000 Subject: [PATCH 11/36] pop --- usr/bin/pop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/pop b/usr/bin/pop index 9cffed4..d90db68 100755 --- a/usr/bin/pop +++ b/usr/bin/pop @@ -6,8 +6,8 @@ if [ "$#" -lt 1 ] ; then fi for DIR in "#@" ; do - cp -r * . - cp -r .* . + cp -r $DIR/* . + cp -r $DIR/.* . mv $DIR /tmp done From 391dad86ac21f7c3d7d2da6a3cd5aca0d2c20f75 Mon Sep 17 00:00:00 2001 From: archikid02 Date: Sun, 1 Feb 2026 14:26:59 +0000 Subject: [PATCH 12/36] pop --- usr/bin/pop | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/bin/pop b/usr/bin/pop index d90db68..95bf4a8 100755 --- a/usr/bin/pop +++ b/usr/bin/pop @@ -1,11 +1,12 @@ #!/usr/bin/bash + if [ "$#" -lt 1 ] ; then echo "Usage: $0 arg1 [arg2] [arg3]" exit 1 fi -for DIR in "#@" ; do +for DIR in "$@" ; do cp -r $DIR/* . cp -r $DIR/.* . mv $DIR /tmp From 9c52bb19f2aa6bf53a21e0fe47929d1b8e159ac9 Mon Sep 17 00:00:00 2001 From: archikid02 Date: Sun, 1 Feb 2026 16:54:49 +0000 Subject: [PATCH 13/36] mountcrypt --- usr/bin/mountcrypt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 usr/bin/mountcrypt diff --git a/usr/bin/mountcrypt b/usr/bin/mountcrypt new file mode 100644 index 0000000..a154b2f --- /dev/null +++ b/usr/bin/mountcrypt @@ -0,0 +1,15 @@ +#!/usr/bin/bash + +NAME+=$(dmesg | tail | grep -o sd[a-z] | tail -1) +NAME+=1 +DEV=/dev/${NAME} +MNT_PT=/mnt/$NAME +BLOCK=crypt_${NAME} + +echo "mount dev: $DEV at $MNT_PT" +cryptsetup luksOpen $DEV $BLOCK +mkdir $MNT_PT +mount $/dev/mapper/$BLOCK $MNT_PT +cd $MNT_PT + +exit 0 From cda8e5734e8784da0cc57ab2e0c2d101db740ddb Mon Sep 17 00:00:00 2001 From: archikid02 Date: Sun, 1 Feb 2026 19:15:01 +0000 Subject: [PATCH 14/36] migrating --- net/whitelist.txt | 78 +++++------------------------------------------ 1 file changed, 7 insertions(+), 71 deletions(-) diff --git a/net/whitelist.txt b/net/whitelist.txt index 5a50d51..b17b972 100755 --- a/net/whitelist.txt +++ b/net/whitelist.txt @@ -50,8 +50,13 @@ #plugin firefox 151.101.193.91 -151.101.129.91 -151.101.205.91 + +#deb.debian.org +151.101.2.132 +151.101.66.132 +151.101.130.132 +151.101.194.132 +2a04:4e42:200::644 #sigmanet#codium 178.238.223.0/24 @@ -72,79 +77,10 @@ #dns 209.244.0.3 -<<<<<<< HEAD -#ipinfo.io -34.117.59.81 - -#ifconfig.me -34.160.111.145 - -#gitea -34.217.253.146 - #protonmail 185.70.42.0/24 185.70.41.0/24 185.70.40.0/24 -##Paypal -#151.101.129.21 -# -##microsoft (github) -##20.0.0.0/11 -# -##Paypal -##34.107.221.82 -# -##ipinfo.io -#34.117.59.81 -# -##ifconfig.me -#34.160.111.145 -# -##gitea -#34.217.253.146 -# -##gitea docker -#35.91.213.186 -# -# -##docker -#34.107.221.82 -# -##dns -#66.28.0.61 -# -##infomaniac -#95.216.195.133 -# -##ChatGpt -#104.18.32.47 -# -##openwrt.org -#151.101.130.132 -#151.101.2.132 -# -# -##firefox extentions -#151.101.1.91 -# -##sigmanet#codium -#178.238.223.0/24 -# -##whois -#199.212.0.0/24 -# -##Umea ftp archive (debian) -#194.71.11.0/24 -# -##GitHub -#185.199.111.0/24 -# -##infomaniac shop -#142.250.178.136 -# -##dns -#209.244.0.3 #debian 146.75.0.0/20 From 709d769520113b0d8a89ea0475644ec2a1f0b21e Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Mon, 2 Feb 2026 17:46:34 +0100 Subject: [PATCH 15/36] alpine-qemu-install doesn use kvm --- usr/bin/alpine-qemu-install | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/usr/bin/alpine-qemu-install b/usr/bin/alpine-qemu-install index c230a70..3d3c293 100755 --- a/usr/bin/alpine-qemu-install +++ b/usr/bin/alpine-qemu-install @@ -39,28 +39,18 @@ echo "iso = $ISO" qemu-system-x86_64 \ -m $RAM \ -<<<<<<< HEAD -boot once=d \ -cdrom $ISO \ -drive file=$IMG \ -<<<<<<< HEAD -display none \ -device virtio-vga \ -display default,show-cursor=on \ -======= ->>>>>>> 21c5e40 (alpine-qemu-install trying to run as non graphical) -nic user,hostfwd=tcp::2222-:22 \ - -device virtio-vga \ -======= - -boot d \ - -cdrom $ISO \ - -drive file=$IMG,if=virtio \ ->>>>>>> d378d2f ( /!\ Big Merge REBASING) -enable-kvm \ - -net nic \ -net user,hostfwd=tcp::7777-:22 #-virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare - + -virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare + #-enable-kvm \ ## --- Run QEMU with graphics + shared folder --- #qemu-system-x86_64 \ From d1e564f5a7a780b5e4beb1e17d6158a1e0895c8b Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Mon, 2 Feb 2026 17:48:59 +0100 Subject: [PATCH 16/36] alpine-qemu-install trying to run as non graphical --- usr/bin/alpine-qemu-install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/bin/alpine-qemu-install b/usr/bin/alpine-qemu-install index 3d3c293..9a5f437 100755 --- a/usr/bin/alpine-qemu-install +++ b/usr/bin/alpine-qemu-install @@ -42,15 +42,20 @@ qemu-system-x86_64 \ -boot once=d \ -cdrom $ISO \ -drive file=$IMG \ +<<<<<<< HEAD -display none \ -device virtio-vga \ -display default,show-cursor=on \ +======= +>>>>>>> 21c5e40 (alpine-qemu-install trying to run as non graphical) -nic user,hostfwd=tcp::2222-:22 \ -enable-kvm \ -net user,hostfwd=tcp::7777-:22 #-virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare -virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare + #-device virtio-vga \ #-enable-kvm \ + #-display default,show-cursor=on \ ## --- Run QEMU with graphics + shared folder --- #qemu-system-x86_64 \ From e500308a536741e1b0b0d6d7fbcc9b79e7d2b38a Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Mon, 2 Feb 2026 17:53:37 +0100 Subject: [PATCH 17/36] alpine-qemu-install no graphic usr/bin/alpine-qemu-install --- usr/bin/alpine-qemu-install | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/usr/bin/alpine-qemu-install b/usr/bin/alpine-qemu-install index 9a5f437..5cf00c5 100755 --- a/usr/bin/alpine-qemu-install +++ b/usr/bin/alpine-qemu-install @@ -42,20 +42,16 @@ qemu-system-x86_64 \ -boot once=d \ -cdrom $ISO \ -drive file=$IMG \ -<<<<<<< HEAD -display none \ -device virtio-vga \ -display default,show-cursor=on \ -======= ->>>>>>> 21c5e40 (alpine-qemu-install trying to run as non graphical) - -nic user,hostfwd=tcp::2222-:22 \ - -enable-kvm \ -net user,hostfwd=tcp::7777-:22 #-virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare + -device virtio-vga \ + -enable-kvm \ + -display default,show-cursor=on \ + -nographic -virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare - #-device virtio-vga \ - #-enable-kvm \ - #-display default,show-cursor=on \ ## --- Run QEMU with graphics + shared folder --- #qemu-system-x86_64 \ From 9f732f333376940667fd9e261e65ab899dcb02ba Mon Sep 17 00:00:00 2001 From: larcelet <> Date: Mon, 22 Dec 2025 12:38:29 +0100 Subject: [PATCH 18/36] alpine-qemu-install display none --- usr/bin/alpine-qemu-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/alpine-qemu-install b/usr/bin/alpine-qemu-install index 5cf00c5..10b35a9 100755 --- a/usr/bin/alpine-qemu-install +++ b/usr/bin/alpine-qemu-install @@ -50,7 +50,7 @@ qemu-system-x86_64 \ -device virtio-vga \ -enable-kvm \ -display default,show-cursor=on \ - -nographic + -display none \ -virtfs local,id=share,path="$SHARE",security_model=none,mount_tag=hostshare ## --- Run QEMU with graphics + shared folder --- From dc374ab7b4dc45f98df931329d54288047821a71 Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Mon, 2 Feb 2026 17:41:02 +0100 Subject: [PATCH 19/36] all files written as modified, but git diff is empty --- install/apt.sh | 4 -- install/arch.sh | 14 +++++- install/tree_cpy.sh | 1 - net/blacklist.txt | 80 ++++------------------------------- net/whitelist.txt | 65 +++------------------------- usr/bin/alpine-qemu-install | 1 + usr/bin/clone | 4 +- usr/bin/p | 4 +- usr/etc/systemd/resolved.conf | 9 ++-- 9 files changed, 34 insertions(+), 148 deletions(-) diff --git a/install/apt.sh b/install/apt.sh index 2e83ad3..0cb5350 100755 --- a/install/apt.sh +++ b/install/apt.sh @@ -31,10 +31,6 @@ apt install -y pip apt install -y curl apt install -y tree apt install -y ffmpeg -apt install -y ffmpeg -apt install -y nft -apt install -y openvpn - #apt install -y vlc #apt install -y terminator #apt install -y gimp diff --git a/install/arch.sh b/install/arch.sh index edacbcf..bc88433 100755 --- a/install/arch.sh +++ b/install/arch.sh @@ -12,15 +12,25 @@ fi MACHINE_DIR=${1:-"svr"} bash tree_cpy.sh $MACHINE_DIR/usr +# append sources +bash config.sh source /home/.bashrc bash config.sh source /home/.bashrc -#bash python.sh -#source /home/.bashrc bash chmod.sh +# append sources bash pacman.sh source /home/.bashrc bash network.sh +#systemctl enable --now NetworkManager #enable dongle + +#pacman --noconfirm -Syu ulogd +#NETWORKDIR="$MACHINE_DIR/networking" +##TOR_LIST=$NETWORKDIR/tor_list.txt +##curl https://www.dan.me.uk/torlist/?full= > $TOR_LIST +#systemctl enable ulogd +#systemctl start ulogd +#bash $NETWORKDIR/iptables_script.sh -f $NETWORKDIR/ip_to_ban.txt -r diff --git a/install/tree_cpy.sh b/install/tree_cpy.sh index 9a7ccd1..1187386 100755 --- a/install/tree_cpy.sh +++ b/install/tree_cpy.sh @@ -4,7 +4,6 @@ USR_DIR=${1:-"no_dir"} [[ $USR_DIR == "no_dir" ]] && \ echo "usage $0 usr_dir" && \ exit 1 - USR_DIR=$(realpath $USR_DIR) #uses ssymbolic link otherwise crossdevice troubles diff --git a/net/blacklist.txt b/net/blacklist.txt index 80a89a9..6fdc6e4 100755 --- a/net/blacklist.txt +++ b/net/blacklist.txt @@ -1,102 +1,38 @@ -#Make crash archinstall -8.8.8.8 -70.27.250.39 -94.105.98.61 -129.97.134.71 -185.21.134.11 -159.195.6.177 -172.65.90.7 -193.121.15.225 - 34.0.0.0/8 35.0.0.0/8 -#OVH -37.59.32.0/19 - -#Microsoft -#40.114.177.156 -> lilie.duckdns.org, holland -40.96.0.0/12 - -#Hetzner (arch install) -46.62.192.0/22 - -#Staples us (arch install) -50.74.152.24/29 - -# apparait apres avoir bloque 2 adresses google intrusives sud firefox -95.216.0.0/16 +#SKYCA-3#Owner:Fastly +151.101.0.0/16 #NETBLK Cox 98.174.32.0/19 -#Cloud flare chatgpt -#104.16.0.0/12 - +#OVH +37.59.32.0/19 #oman#mobile 134.0.192.0/20 -#cloudflare eu (arch install) # RIPE # http addr 141.0.0.0/8 -#Google -142.250.0.0/15 - -#Fastly ip geolocalisation (arch install) -146.75.0.0/20 - -#SKYCA-3#Owner:Fastly #pip atproto ? 151.101.0.0/16 -#OVH france -188.165.192.0/18 - -#Amsterdam, possiblement a Linz il y a quelques annees -193.0.0.0/20 - -#oman#mobile -#134.0.192.0/20 - -#cloudflare eu (arch install) -# RIPE -# http addr -#141.0.0.0/8 - -#Google -142.250.0.0/15 - -#Fastly ip geolocalisation (arch install) -146.75.0.0/20 - -#SKYCA-3#Owner:Fastly -#pip atproto ? -#151.101.0.0/16 - -#OVH france -188.165.192.0/18 - -#Amsterdam, possiblement a Linz il y a quelques annees -193.0.0.0/20 +#Cloud flare chatgpt +#104.16.0.0/12 #Umea ftp archive (debian) #194.71.11.0/24 #Fastly Skyca -#199.232.0.0/16 +199.232.0.0/16 #LEVEL3-CIDR #209.244.0.0/14 #ionos #212.227.232.161 lors dúnse installation arch -#212.227.232.0/24 +212.227.232.0/24 1.0.0.1 - -#lancement firefox -fe80::b08c:e0ff:fe6d:542c/64 -ff02::0/48 -#ff02::1:ffbc:c929/120 diff --git a/net/whitelist.txt b/net/whitelist.txt index b17b972..413602e 100755 --- a/net/whitelist.txt +++ b/net/whitelist.txt @@ -1,69 +1,14 @@ -#local -10.0.0.0/8 -192.168.0.0/8 - -#microsoft (github) -#20.0.0.0/11 - -#winamax -34.96.80.159 - -#Paypal -#34.107.221.82 - -#ipinfo.io -34.117.59.81 - -#ifconfig.me -34.160.111.145 - -#plufinfirefox -34.120.208.123 - -#gitea -34.217.253.146 -35.91.213.186 - -#dns -66.28.0.61 - -#Thesuissbay -85.195.200.187 - -#ChatGpt -104.18.32.47 - -#lb.ludd.ltu.se #mirror -130.240.16.130 - -#ch.mirrors.cicku.me -141.101.90.119 - #Paypal 151.101.129.21 - -#paiement infomaniak -151.101.38.4 - -#dl-cdn.alpinelinux.org -151.101.10.132 - -#plugin firefox -151.101.193.91 - -#deb.debian.org -151.101.2.132 -151.101.66.132 -151.101.130.132 -151.101.194.132 -2a04:4e42:200::644 +34.107.221.82 #sigmanet#codium 178.238.223.0/24 +#gititea +34.217.253.146 -#infania pacman repo -#ftpmirror.infania.net -194.132.225.213 +#microsoft (github) +#20.0.0.0/11 #whois 199.212.0.0/24 diff --git a/usr/bin/alpine-qemu-install b/usr/bin/alpine-qemu-install index 10b35a9..d64dff0 100755 --- a/usr/bin/alpine-qemu-install +++ b/usr/bin/alpine-qemu-install @@ -39,6 +39,7 @@ echo "iso = $ISO" qemu-system-x86_64 \ -m $RAM \ + -nic user \ -boot once=d \ -cdrom $ISO \ -drive file=$IMG \ diff --git a/usr/bin/clone b/usr/bin/clone index a261c4a..3149206 100755 --- a/usr/bin/clone +++ b/usr/bin/clone @@ -1,14 +1,14 @@ #!/bin/bash clone () { - DEFAULT_ADDR="" - BASE="ssh://git@6.tcp.eu.ngrok.io:11272" + URL=ssh://git@6.tcp.eu.ngrok.io:11272 if [ $# -ne "1" ]; then PROFIL_NAME="$1"; PROJECT_NAME="$2"; else PROFIL_NAME="painpain"; PROJECT_NAME="$1"; + git clone --recurse-submodules git@github.com:pain-pin/$PROJECT_NAME.git; fi git clone --recurse-submodules ${BASE}/$PROFIL_NAME/$PROJECT_NAME.git; } diff --git a/usr/bin/p b/usr/bin/p index cbe0b79..443611b 100755 --- a/usr/bin/p +++ b/usr/bin/p @@ -1,4 +1,6 @@ #!/usr/bin/bash -ping -c1 9.9.9.9 +ping -c1 | grep transmit + +exit 0 diff --git a/usr/etc/systemd/resolved.conf b/usr/etc/systemd/resolved.conf index 8de8267..68fcb8d 100755 --- a/usr/etc/systemd/resolved.conf +++ b/usr/etc/systemd/resolved.conf @@ -1,4 +1,3 @@ -<<<<<<< HEAD # This file is part of systemd. -> systemctl enable --now systemd-resolved # # systemd is free software; you can redistribute it and/or modify it under the @@ -19,9 +18,9 @@ [Resolve] # Some examples of DNS servers which may be used for DNS= and FallbackDNS=: -DNS=1.1.1.1 2606:4700:4700::1111 2606:4700:4700::1001 +DNS=1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001 #cloudflare-dns.com # Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net -FallbackDNS=185.253.5.0 2a0f:fc80:: 2a0f:fc81:: +FallbackDNS=193.110.81.0 185.253.5.0 2a0f:fc80:: 2a0f:fc81:: #dns0.eu # # Using DNS= configures global DNS servers and does not suppress link-specific # configuration. Parallel requests will be sent to per-link DNS servers @@ -31,7 +30,7 @@ FallbackDNS=185.253.5.0 2a0f:fc80:: 2a0f:fc81:: #DNS= #FallbackDNS=9.9.9.9#dns.quad9.net 2620:fe::9#dns.quad9.net 1.1.1.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 8.8.8.8#dns.google 2001:4860:4860::8888#dns.google #Domains= -DNSSEC=allow-downgrade +DNSSEC=yes DNSOverTLS=yes MulticastDNS=yes LLMNR=yes @@ -43,5 +42,3 @@ ReadEtcHosts=yes #ResolveUnicastSingleLabel=no #StaleRetentionSec=0 #RefuseRecordTypes= -======= ->>>>>>> d378d2f ( /!\ Big Merge REBASING) From c011873c8ed5fde13ea30211bbc282a0983f1e49 Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Mon, 2 Feb 2026 18:47:38 +0100 Subject: [PATCH 20/36] clone ngrok address --- usr/bin/clone | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr/bin/clone b/usr/bin/clone index 3149206..0f697c9 100755 --- a/usr/bin/clone +++ b/usr/bin/clone @@ -6,10 +6,9 @@ clone () PROFIL_NAME="$1"; PROJECT_NAME="$2"; else - PROFIL_NAME="painpain"; + PROFIL_NAME=painpain PROJECT_NAME="$1"; - git clone --recurse-submodules git@github.com:pain-pin/$PROJECT_NAME.git; fi - git clone --recurse-submodules ${BASE}/$PROFIL_NAME/$PROJECT_NAME.git; + git clone --recurse-submodules $URL/$PROFIL_NAME/$PROJECT_NAME.git; } clone "$@" From f2e84d62ece57f67d126ff0bd2adddbec930cfd9 Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Mon, 2 Feb 2026 19:16:45 +0100 Subject: [PATCH 21/36] expresso have a new path --- usr/bin/expresso | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/expresso b/usr/bin/expresso index 237e056..e4933a9 100755 --- a/usr/bin/expresso +++ b/usr/bin/expresso @@ -1,8 +1,8 @@ #!/bin/bash expresso () { - DIR="$HOME/perso/thm/interets/jeux/poker"; - HISTORY="expresso_history.md"; + DIR="$HOME/perso/jeux/holdem/"; + HISTORY="historique.md"; SCRIPT=expresso_stat.sh; TAIL=${1:-1000}; vim + $DIR/$HISTORY; From b43a9de02ed858e3883e0b58565c4ab0a4c9aca0 Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Mon, 2 Feb 2026 19:19:09 +0100 Subject: [PATCH 22/36] expresso debug (script path) --- usr/bin/expresso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/expresso b/usr/bin/expresso index e4933a9..07a997f 100755 --- a/usr/bin/expresso +++ b/usr/bin/expresso @@ -6,6 +6,6 @@ expresso () SCRIPT=expresso_stat.sh; TAIL=${1:-1000}; vim + $DIR/$HISTORY; - bash $DIR/$SCRIPT $DIR/$HISTORY $TAIL + bash $SCRIPT $DIR/$HISTORY $TAIL } expresso "$@" From 52937e5e13ddb24c455be8392e7fd7fa05578f1a Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Tue, 3 Feb 2026 21:22:04 +0100 Subject: [PATCH 23/36] p check dns too --- usr/bin/p | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/bin/p b/usr/bin/p index 443611b..e3684d6 100755 --- a/usr/bin/p +++ b/usr/bin/p @@ -1,6 +1,7 @@ #!/usr/bin/bash -ping -c1 | grep transmit +ping -c1 9.9.9.9 | grep transmit +ping -c1 wikipedia.org | grep transmit exit 0 From c18d636ccafcb053f08c9cee674e11b3125f1b41 Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Fri, 6 Feb 2026 22:43:57 +0100 Subject: [PATCH 24/36] ytdl --- usr/bin/ytdl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 usr/bin/ytdl diff --git a/usr/bin/ytdl b/usr/bin/ytdl new file mode 100755 index 0000000..469de74 --- /dev/null +++ b/usr/bin/ytdl @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# Wrapper that always uses Firefox cookies for YouTube + +if [ $# -lt 1 ]; then + echo "Usage: $0 [extra yt-dlp args...]" >&2 + exit 1 +fi + +# Change profile name if needed (e.g. default-release, yourprofile.default) +BROWSER="firefox" +PROFILE="default-release" # or leave empty to let yt-dlp auto-detect + +if [ -n "$PROFILE" ]; then + yt-dlp --cookies-from-browser "${BROWSER}:${PROFILE}" "$@" +else + yt-dlp --cookies-from-browser "$BROWSER" "$@" +fi + From ac1cbaf032a280ad69dec80b46055372e5f42527 Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Fri, 13 Feb 2026 10:54:44 +0100 Subject: [PATCH 25/36] prompt --- usr/bin/prompt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 usr/bin/prompt diff --git a/usr/bin/prompt b/usr/bin/prompt new file mode 100755 index 0000000..f80b70e --- /dev/null +++ b/usr/bin/prompt @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +root="${1:-.}" + +find "$root" -type f -print0 | +while IFS= read -r -d '' file; do + printf -- "---\n%s\n-\n" "$file" + cat -- "$file" + printf "\n" +done + From 17960e216b4b975b55794ab858ca0e6c3ac95463 Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Sun, 15 Feb 2026 13:32:34 +0100 Subject: [PATCH 26/36] vrc --- usr/bin/vrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/bin/vrc b/usr/bin/vrc index dadd44c..35da6a7 100755 --- a/usr/bin/vrc +++ b/usr/bin/vrc @@ -1,9 +1,9 @@ #!/bin/bash vrc () { - SOURCE="$HOME/.vimrc"; - F_NAME=".bash_aliases"; - FILE="$(find -O3 $HOME -name $F_NAME 2> /dev/null | head -n 1)"; + SOURCE="/home/.bashrc"; + F_NAME=".vimrc"; + FILE=/home/$F_NAME F_PATH="$(dirname $FILE)"; cd "$F_PATH"; commit_if_modified "$F_NAME"; From 870b6ae0be7b7c2f2e44aaba3a616718e1012d83 Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Sun, 15 Feb 2026 13:42:45 +0100 Subject: [PATCH 27/36] .gitignore --- .gitignore | 1 + .idea/.gitignore | 10 ++ .idea/editor.xml | 345 ++++++++++++++++++++++++++++++++++++++++++++++ .idea/modules.xml | 8 ++ .idea/svr.iml | 8 ++ .idea/vcs.xml | 6 + net/blacklist.txt | 3 - net/whitelist.txt | 7 + usr/home/.bashrc | 2 +- usr/home/.vimrc | 5 +- 10 files changed, 389 insertions(+), 6 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/editor.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/svr.iml create mode 100644 .idea/vcs.xml diff --git a/.gitignore b/.gitignore index 8e754b5..f140dd0 100755 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ py-env/ passwd_gen deb_dock/home_skel/.vim/.netrwhist **/__pycache__/ +.idea/ diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..ab1f416 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/editor.xml b/.idea/editor.xml new file mode 100644 index 0000000..8d0e15e --- /dev/null +++ b/.idea/editor.xml @@ -0,0 +1,345 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..a191416 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/svr.iml b/.idea/svr.iml new file mode 100644 index 0000000..bc2cd87 --- /dev/null +++ b/.idea/svr.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/net/blacklist.txt b/net/blacklist.txt index 6fdc6e4..b3b9ec2 100755 --- a/net/blacklist.txt +++ b/net/blacklist.txt @@ -16,9 +16,6 @@ # http addr 141.0.0.0/8 -#pip atproto ? -151.101.0.0/16 - #Cloud flare chatgpt #104.16.0.0/12 diff --git a/net/whitelist.txt b/net/whitelist.txt index 413602e..9b16827 100755 --- a/net/whitelist.txt +++ b/net/whitelist.txt @@ -2,6 +2,10 @@ 151.101.129.21 34.107.221.82 +#Dart +34.36.0.14 +62.169.136.227 + #sigmanet#codium 178.238.223.0/24 #gititea @@ -10,6 +14,9 @@ #microsoft (github) #20.0.0.0/11 +#pip +151.101.192.223 + #whois 199.212.0.0/24 diff --git a/usr/home/.bashrc b/usr/home/.bashrc index 7e4714c..182e000 100755 --- a/usr/home/.bashrc +++ b/usr/home/.bashrc @@ -104,7 +104,7 @@ RESET_COLOR="$NO_COLOR" export GIT_EDITOR=vim BRANCH="$(git rev-parse --abbrev-ref HEAD)" -PS1="\n${DATE_COLOR}\D{%y%m%d}${RESET_COLOR}-${TIME_COLOR}\t${RESET_COLOR}-${USER_COLOR}\u${RESET_COLOR}@${HOST_COLOR}\H${RESET_COLOR}-${DIR_COLOR}\w${RESET_COLOR}\n=> " +PS1="\n\n${DATE_COLOR}\D{%y%m%d}${RESET_COLOR}-${TIME_COLOR}\t${RESET_COLOR}-${USER_COLOR}\u${RESET_COLOR}@${HOST_COLOR}\H${RESET_COLOR}-${DIR_COLOR}\w${RESET_COLOR}\n=> " export HISTCONTROL=ignorespace diff --git a/usr/home/.vimrc b/usr/home/.vimrc index 4b06189..2a38fd3 100755 --- a/usr/home/.vimrc +++ b/usr/home/.vimrc @@ -87,8 +87,7 @@ autocmd BufNewFile *.c 0r ./.vim/templates/template.c set mouse=a -inoremap {{ {}O -inoremap {;{ ;}O +inoremap { {}O :nnoremap @q @@ -102,3 +101,5 @@ set tags=./tags;,tags; syntax on set tags=./tags;/ + +set smartindent From 6152478f77f95cef9206b797b8c0760cccc51fe2 Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Sun, 15 Feb 2026 13:43:05 +0100 Subject: [PATCH 28/36] rm .idea --- .idea/.gitignore | 10 -- .idea/editor.xml | 345 ---------------------------------------------- .idea/modules.xml | 8 -- .idea/svr.iml | 8 -- .idea/vcs.xml | 6 - 5 files changed, 377 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/editor.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/svr.iml delete mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index ab1f416..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Ignored default folder with query files -/queries/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml -# Editor-based HTTP Client requests -/httpRequests/ diff --git a/.idea/editor.xml b/.idea/editor.xml deleted file mode 100644 index 8d0e15e..0000000 --- a/.idea/editor.xml +++ /dev/null @@ -1,345 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index a191416..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/svr.iml b/.idea/svr.iml deleted file mode 100644 index bc2cd87..0000000 --- a/.idea/svr.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file From 65a60aea1863209f49994542baeab1a88cc60211 Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Tue, 17 Feb 2026 20:57:36 +0100 Subject: [PATCH 29/36] archive_connections --- usr/bin/archive_connections | 27 +++++++++++++++++++++++++++ usr/bin/v | 3 +++ 2 files changed, 30 insertions(+) create mode 100755 usr/bin/archive_connections create mode 100755 usr/bin/v diff --git a/usr/bin/archive_connections b/usr/bin/archive_connections new file mode 100755 index 0000000..dd9dda3 --- /dev/null +++ b/usr/bin/archive_connections @@ -0,0 +1,27 @@ +#!/bin/bash + +SRC=/var/log/connections/lasts.tcpd +DST=/var/log/connections/archive +DATE=$(date "+%y%m%d-%H%M") +MAXSIZE=$((1024*1024*1024)) # 1 Go + +mkdir -p "$DST" + +# 1️⃣ Archivage IP en .txt +find "$SRC" -name "*.log" -mmin -30 \ + | xargs grepip \ + > "$DST/connections-$DATE.txt" + +# 2️⃣ Archiver les logs dans un tar.gz +ARCHIVE="$DST/logs-$DATE.tar.gz" +find "$SRC" -name "*.log" -print0 | tar --null -czf "$ARCHIVE" --remove-files -T - + +# 3️⃣ Vérifier la taille totale des archives et supprimer les plus anciennes si >1 Go +total_size=$(du -cb "$DST"/*.tar.gz 2>/dev/null | tail -1 | awk '{print $1}') + +while [ "$total_size" -ge $MAXSIZE ]; do + oldest=$(ls -1t "$DST"/*.tar.gz | tail -1) + [ -f "$oldest" ] && rm -f "$oldest" + total_size=$(du -cb "$DST"/*.tar.gz 2>/dev/null | tail -1 | awk '{print $1}') +done + diff --git a/usr/bin/v b/usr/bin/v new file mode 100755 index 0000000..6e38db7 --- /dev/null +++ b/usr/bin/v @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +nvim $@ From 17c83d081adaed552606c8dc0171bd2f19e3b77e Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Thu, 19 Feb 2026 11:57:04 +0100 Subject: [PATCH 30/36] install/config.sh usr/etc/systemd/system/tcpd.service --- install/config.sh | 7 +++++++ usr/etc/systemd/system/tcpd.service | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/install/config.sh b/install/config.sh index 21bc0ab..98faf62 100755 --- a/install/config.sh +++ b/install/config.sh @@ -21,3 +21,10 @@ cat $SUDO_HOME/$FILE > $SKEL/$FILE groupadd svr usermod -aG svr $SUDO_USER + +systemctl daemon-reexec +systemctl daemon-reload +systemctl enable tcpd +systemctl start tcpd + + diff --git a/usr/etc/systemd/system/tcpd.service b/usr/etc/systemd/system/tcpd.service index 53c711e..fd9f6c8 100755 --- a/usr/etc/systemd/system/tcpd.service +++ b/usr/etc/systemd/system/tcpd.service @@ -1,10 +1,11 @@ [Unit] -Description=watch connections -After=network-online.target +Description=TCP connections logger +After=network.target [Service] -ExecStart=/bin/bash /etc/systemd/system/tcpd.sh Type=simple +ExecStart=/svr/usr/bin/tcpd /var/log/connections/lasts.tcpd +Restart=always [Install] WantedBy=multi-user.target From 08f385e20fb9e1738d50a2d5eb3302aaa83bd2c0 Mon Sep 17 00:00:00 2001 From: archikid08 Date: Mon, 23 Feb 2026 18:27:06 +0100 Subject: [PATCH 31/36] modified: install/chmod.sh modified: install/openwrt.sh modified: install/pacman.sh modified: install/tree_cpy.sh modified: usr/bin/aur modified: usr/bin/brc new file: usr/bin/idea modified: usr/bin/mountcrypt new file: usr/bin/regex_gen modified: usr/etc/pam.d/system-local-login modified: usr/etc/resolv.conf modified: usr/etc/systemd/resolved.conf modified: usr/etc/systemd/system/tcpd.service modified: usr/home/.bash_aliases modified: usr/home/.bashrc --- install/chmod.sh | 1 - install/openwrt.sh | 0 install/pacman.sh | 1 + install/tree_cpy.sh | 4 +-- usr/bin/aur | 7 ++++- usr/bin/brc | 3 +- usr/bin/idea | 1 + usr/bin/mountcrypt | 0 usr/bin/regex_gen | 26 +++++++++++++++++ usr/etc/pam.d/system-local-login | 0 usr/etc/resolv.conf | 6 +--- usr/etc/systemd/resolved.conf | 44 ----------------------------- usr/etc/systemd/system/tcpd.service | 2 +- usr/home/.bash_aliases | 12 +++++++- usr/home/.bashrc | 13 +++------ 15 files changed, 53 insertions(+), 67 deletions(-) mode change 100644 => 100755 install/openwrt.sh create mode 120000 usr/bin/idea mode change 100644 => 100755 usr/bin/mountcrypt create mode 100755 usr/bin/regex_gen mode change 100644 => 100755 usr/etc/pam.d/system-local-login diff --git a/install/chmod.sh b/install/chmod.sh index af784d6..effdd5c 100755 --- a/install/chmod.sh +++ b/install/chmod.sh @@ -10,7 +10,6 @@ chmod -R 771 $BIN_DIR chmod -R 751 $SBIN_DIR find $MACHINE_DIR -type d -exec chmod 775 {} \; chown root:root /etc/pam.d/* -chmod 644 /etc/pam.d/* exit 0 diff --git a/install/openwrt.sh b/install/openwrt.sh old mode 100644 new mode 100755 diff --git a/install/pacman.sh b/install/pacman.sh index 2534b6e..889ec89 100755 --- a/install/pacman.sh +++ b/install/pacman.sh @@ -31,6 +31,7 @@ pacman --noconfirm -S makepkg pacman --noconfirm -S tree pacman --noconfirm -S vim pacman --noconfirm -S iwctl +pacman --noconfirm -S ncdu pacman --noconfirm -S pciutils pacman --noconfirm -S git-filter-repo pacman --noconfirm -S xorg-setxkbmap diff --git a/install/tree_cpy.sh b/install/tree_cpy.sh index 1187386..37e3431 100755 --- a/install/tree_cpy.sh +++ b/install/tree_cpy.sh @@ -9,6 +9,4 @@ USR_DIR=$(realpath $USR_DIR) #uses ssymbolic link otherwise crossdevice troubles cp -s -p -r -f -t / $USR_DIR/. -sudo chown root:root / -sudo chown root:root /etc /var /run /dev /usr /sys -sudo chmod 755 / /etc /var /usr +sudo chown root:svr /etc /var /run /dev /usr /sys / diff --git a/usr/bin/aur b/usr/bin/aur index 09b1442..142dca4 100755 --- a/usr/bin/aur +++ b/usr/bin/aur @@ -1,6 +1,11 @@ #!/bin/bash aur () { - git clone https://aur.archlinux.org/$1.git + DIR=~/tmp + echo "note: ceci est un script maison" + mkdir $DIR + git clone https://aur.archlinux.org/$1.git $DIR/$1 + cd $DIR/$1 + makepkg -si } aur "$@" diff --git a/usr/bin/brc b/usr/bin/brc index fb20401..c5a399f 100755 --- a/usr/bin/brc +++ b/usr/bin/brc @@ -2,8 +2,7 @@ set -e -MACHINE_DIR=${1:$MACHINE_DIR} -MACHINE_DIR=${MACHINE_DIR:-"/svr"} +MACHINE_DIR="/svr" F_NAME=".bashrc"; cd "$MACHINE_DIR/usr/home"; commit_if_modified "$F_NAME" diff --git a/usr/bin/idea b/usr/bin/idea new file mode 120000 index 0000000..715a4d0 --- /dev/null +++ b/usr/bin/idea @@ -0,0 +1 @@ +/home/painpain/Desktop/idea-IU-253.30387.90/bin/idea \ No newline at end of file diff --git a/usr/bin/mountcrypt b/usr/bin/mountcrypt old mode 100644 new mode 100755 diff --git a/usr/bin/regex_gen b/usr/bin/regex_gen new file mode 100755 index 0000000..e40e645 --- /dev/null +++ b/usr/bin/regex_gen @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 +import subprocess +import sys + +# Ensure exrex is installed +try: + import exrex +except ImportError: + subprocess.check_call([sys.executable, "-m", "pip", "install", "exrex"]) + import exrex + +import argparse + +def main(): + parser = argparse.ArgumentParser(description="Generate all possibilities from a regex") + parser.add_argument("regex", type=str, help="Regex pattern (finite)") + args = parser.parse_args() + + try: + for match in exrex.generate(args.regex): + print(match) + except Exception as e: + print(f"Error: {e}", file=sys.stderr) + +if __name__ == "__main__": + main() diff --git a/usr/etc/pam.d/system-local-login b/usr/etc/pam.d/system-local-login old mode 100644 new mode 100755 diff --git a/usr/etc/resolv.conf b/usr/etc/resolv.conf index a188928..e674b15 100755 --- a/usr/etc/resolv.conf +++ b/usr/etc/resolv.conf @@ -1,7 +1,3 @@ + nameserver 1.1.1.1 nameserver 0.0.0.0 -nameserver 8.26.56.26 -nameserver 208.67.222.222 -nameserver 209.244.0.3 -nameserver 8.8.8.8 - diff --git a/usr/etc/systemd/resolved.conf b/usr/etc/systemd/resolved.conf index 68fcb8d..e69de29 100755 --- a/usr/etc/systemd/resolved.conf +++ b/usr/etc/systemd/resolved.conf @@ -1,44 +0,0 @@ -# This file is part of systemd. -> systemctl enable --now systemd-resolved -# -# systemd is free software; you can redistribute it and/or modify it under the -# terms of the GNU Lesser General Public License as published by the Free -# Software Foundation; either version 2.1 of the License, or (at your option) -# any later version. -# -# Entries in this file show the compile time defaults. Local configuration -# should be created by either modifying this file (or a copy of it placed in -# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in -# the /etc/systemd/resolved.conf.d/ directory. The latter is generally -# recommended. Defaults can be restored by simply deleting the main -# configuration file and all drop-ins located in /etc/. -# -# Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config. -# -# See resolved.conf(5) for details. - -[Resolve] -# Some examples of DNS servers which may be used for DNS= and FallbackDNS=: -DNS=1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001 #cloudflare-dns.com -# Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net -FallbackDNS=193.110.81.0 185.253.5.0 2a0f:fc80:: 2a0f:fc81:: #dns0.eu -# -# Using DNS= configures global DNS servers and does not suppress link-specific -# configuration. Parallel requests will be sent to per-link DNS servers -# configured automatically by systemd-networkd.service(8), NetworkManager(8), or -# similar management services, or configured manually via resolvectl(1). See -# resolved.conf(5) and systemd-resolved(8) for more details. -#DNS= -#FallbackDNS=9.9.9.9#dns.quad9.net 2620:fe::9#dns.quad9.net 1.1.1.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 8.8.8.8#dns.google 2001:4860:4860::8888#dns.google -#Domains= -DNSSEC=yes -DNSOverTLS=yes -MulticastDNS=yes -LLMNR=yes -Cache=yes -CacheFromLocalhost=no -DNSStubListener=yes -#DNSStubListenerExtra= -ReadEtcHosts=yes -#ResolveUnicastSingleLabel=no -#StaleRetentionSec=0 -#RefuseRecordTypes= diff --git a/usr/etc/systemd/system/tcpd.service b/usr/etc/systemd/system/tcpd.service index fd9f6c8..eb919b1 100755 --- a/usr/etc/systemd/system/tcpd.service +++ b/usr/etc/systemd/system/tcpd.service @@ -4,7 +4,7 @@ After=network.target [Service] Type=simple -ExecStart=/svr/usr/bin/tcpd /var/log/connections/lasts.tcpd +ExecStart=/usr/bin/tcpdump Restart=always [Install] diff --git a/usr/home/.bash_aliases b/usr/home/.bash_aliases index 8af0a68..4b1a159 100755 --- a/usr/home/.bash_aliases +++ b/usr/home/.bash_aliases @@ -24,9 +24,19 @@ alias val="valgrind --leak-check=full --show-leak-kinds=all" alias mvj='rsync -aH --remove-source-files' alias cpj='rsync -aH' alias git_light="git filter-repo --strip-blobs-bigger-than 10M" -alias src="source ~/.bashrc" alias s="sudo -E" +function src() { + d="$PWD"; while [ "$d" != "/" ]; do + for a in "$d/bin/activate" "$d/.*/bin/activate"; do + [ -f $a ] && source "$a" && break 2 + done + d=$(dirname "$d") + done + source $HOME/.bashrc +} + + ##convert mp3 to wav #to_wav () { # OUTDIR_NAME="wav_files" diff --git a/usr/home/.bashrc b/usr/home/.bashrc index 182e000..fbee607 100755 --- a/usr/home/.bashrc +++ b/usr/home/.bashrc @@ -4,9 +4,9 @@ if [ -f /etc/env ]; then - set -a - . /etc/env - set +a + set -a + . /etc/env + set +a fi set -o vi @@ -122,21 +122,16 @@ export AWK_GREP_KEY="'{ } }'" -#ctags -R . - bind -f /home/.inputrc - if [ -f /home/.bash_aliases ]; then - . /home/.bash_aliases + . /home/.bash_aliases fi # permet les accents setxkbmap us -variant intl -source $PY_ENV/bin/activate #envsubst < ${MACHINE_PATH}/dotfiles/ssh/config.template > ~/.ssh/config #export PATH=~/.npm-global/bin:$PATH - From 45f4ae245852e5c51841405f2fb15ef2f5d21f82 Mon Sep 17 00:00:00 2001 From: archikid08 Date: Mon, 23 Feb 2026 18:29:17 +0100 Subject: [PATCH 32/36] modified: install/chmod.sh -> .git 664 new file: usr/etc/systemd/sleep.conf -> no hibernation but freeze modified: usr/home/.bash_aliases -> src but still doesn't work --- install/chmod.sh | 2 +- usr/etc/systemd/sleep.conf | 29 +++++++++++++++++++++++++++++ usr/home/.bash_aliases | 3 ++- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 usr/etc/systemd/sleep.conf diff --git a/install/chmod.sh b/install/chmod.sh index effdd5c..0252c01 100755 --- a/install/chmod.sh +++ b/install/chmod.sh @@ -7,7 +7,7 @@ chown -R root $MACHINE_DIR chgrp -R $MACHINE $MACHINE_DIR chmod -R 771 $MACHINE_DIR/install chmod -R 771 $BIN_DIR -chmod -R 751 $SBIN_DIR +chmod -R 661 $MACHINE_DIR/.git find $MACHINE_DIR -type d -exec chmod 775 {} \; chown root:root /etc/pam.d/* diff --git a/usr/etc/systemd/sleep.conf b/usr/etc/systemd/sleep.conf new file mode 100644 index 0000000..a63adbd --- /dev/null +++ b/usr/etc/systemd/sleep.conf @@ -0,0 +1,29 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation; either version 2.1 of the License, or (at your option) +# any later version. +# +# Entries in this file show the compile time defaults. Local configuration +# should be created by either modifying this file (or a copy of it placed in +# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in +# the /etc/systemd/sleep.conf.d/ directory. The latter is generally +# recommended. Defaults can be restored by simply deleting the main +# configuration file and all drop-ins located in /etc/. +# +# Use 'systemd-analyze cat-config systemd/sleep.conf' to display the full config. +# +# See systemd-sleep.conf(5) for details. + +[Sleep] +#AllowSuspend=yes +#AllowHibernation=yes +#AllowSuspendThenHibernate=yes +#AllowHybridSleep=yes +SuspendState=freeze #mem standby freeze +HibernateMode=platform # shutdown +#MemorySleepMode= +#HibernateDelaySec= +#HibernateOnACPower=yes +#SuspendEstimationSec=60min diff --git a/usr/home/.bash_aliases b/usr/home/.bash_aliases index 4b1a159..9a99690 100755 --- a/usr/home/.bash_aliases +++ b/usr/home/.bash_aliases @@ -29,11 +29,12 @@ alias s="sudo -E" function src() { d="$PWD"; while [ "$d" != "/" ]; do for a in "$d/bin/activate" "$d/.*/bin/activate"; do + #echo "looking bin/activate in $d" [ -f $a ] && source "$a" && break 2 done d=$(dirname "$d") done - source $HOME/.bashrc + source $HOME/.bashrc || true } From 10eb0fa915e941ffaa2c470898beefbeabd63ec0 Mon Sep 17 00:00:00 2001 From: archikid08 Date: Mon, 23 Feb 2026 19:46:37 +0100 Subject: [PATCH 33/36] history-del --- usr/bin/bsconn.py | 25 ------------------------- usr/bin/history-del | 8 ++++++++ 2 files changed, 8 insertions(+), 25 deletions(-) delete mode 100755 usr/bin/bsconn.py create mode 100755 usr/bin/history-del diff --git a/usr/bin/bsconn.py b/usr/bin/bsconn.py deleted file mode 100755 index c5db6d6..0000000 --- a/usr/bin/bsconn.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/bash - -if [ "$#" -lt 1 ] || [ "$#" -gt 3 ]; then - echo "Usage: $0 arg1 [arg2] [arg3]" - exit 1 -fi - -# interactive session check -if [ -t 0 ]; then - echo -n "Delete existing output files? [y/N]: " - read ans - case "$ans" in - y|Y) rm -f *.school ;; - *) echo "Aborted"; exit 0 ;; - esac -fi - -# process input file -while IFS= read -r line; do - new_f="${line%.*}.school" - f > "$new_f" -done < "$FILE" - -exit 0 - diff --git a/usr/bin/history-del b/usr/bin/history-del new file mode 100755 index 0000000..c84deb2 --- /dev/null +++ b/usr/bin/history-del @@ -0,0 +1,8 @@ +#!/usr/bin/bash + +NB_LINES=${1:=5} +for ((i=0;i Date: Mon, 23 Feb 2026 20:26:40 +0100 Subject: [PATCH 34/36] modified: usr/bin/bsdlfeeds.py -> rm diff traces | modified: usr/home/.bash_aliases src well implemented --- usr/bin/bsdlfeeds.py | 4 ---- usr/home/.bash_aliases | 7 +++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/usr/bin/bsdlfeeds.py b/usr/bin/bsdlfeeds.py index 3792abc..ee4071b 100755 --- a/usr/bin/bsdlfeeds.py +++ b/usr/bin/bsdlfeeds.py @@ -59,11 +59,7 @@ def main(): args = parser.parse_args() client = connect() -<<<<<<< HEAD profile = get_feeds(client, args.handle, args.folder, cursor=cursor) -======= - profile = get_feeds(client, args.handle, args.folder) ->>>>>>> 01ee0aacb9e93bd6572ab9049f26878733f8bf85 diff --git a/usr/home/.bash_aliases b/usr/home/.bash_aliases index 9a99690..d5b9f81 100755 --- a/usr/home/.bash_aliases +++ b/usr/home/.bash_aliases @@ -27,14 +27,13 @@ alias git_light="git filter-repo --strip-blobs-bigger-than 10M" alias s="sudo -E" function src() { + source $HOME/.bashrc || true d="$PWD"; while [ "$d" != "/" ]; do - for a in "$d/bin/activate" "$d/.*/bin/activate"; do - #echo "looking bin/activate in $d" - [ -f $a ] && source "$a" && break 2 + for a in "$d/bin/activate" "$d/.env/bin/activate"; do + [ -f $a ] && echo "found at $a" && . "$a" && break 2 done d=$(dirname "$d") done - source $HOME/.bashrc || true } From 164161cbf59eb6a57e7600a8c246bfef4e653562 Mon Sep 17 00:00:00 2001 From: archikid08 Date: Mon, 23 Feb 2026 20:48:50 +0100 Subject: [PATCH 35/36] journal-perso makes the dir if doesnt exists --- usr/bin/journal-perso | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/bin/journal-perso b/usr/bin/journal-perso index 9ea13c7..6f84405 100755 --- a/usr/bin/journal-perso +++ b/usr/bin/journal-perso @@ -1,7 +1,7 @@ #!/bin/bash journal-perso () { - . . refresh_time; + . refresh_time; DIR_ORIGINAL=$PWD; DIR=$PERSO_DIR; DATE_DIR="$YEAR/$MONTH/$DAY"; @@ -21,6 +21,7 @@ journal-perso () else return 1; fi; + mkdir -p $DIR F_NAME+=".md"; cd $DIR; PATH_="${DATE_DIR}/${LN_DIR}"; From eae24308a3a83a91b305965966feea22d72b48b1 Mon Sep 17 00:00:00 2001 From: archikid08 Date: Sun, 1 Mar 2026 18:43:18 +0100 Subject: [PATCH 36/36] usr/bin/bsdlfeeds.py --- usr/bin/bsdlfeeds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/bsdlfeeds.py b/usr/bin/bsdlfeeds.py index ee4071b..f749910 100755 --- a/usr/bin/bsdlfeeds.py +++ b/usr/bin/bsdlfeeds.py @@ -55,11 +55,11 @@ def get_feeds(client, profile, tmp_dir=TMP_DIR, save=False, cursor=None): def main(): parser = argparse.ArgumentParser(description="Download Bluesky profile posts to JSON") parser.add_argument("handle", help="Bluesky handle (ex: ni-bot.bsky.social)") - parser.add_argument("--folder", default=TMP_DIR) + parser.add_argument("-d", "--folder", default=TMP_DIR) args = parser.parse_args() client = connect() - profile = get_feeds(client, args.handle, args.folder, cursor=cursor) + profile = get_feeds(client, args.handle, args.folder)