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)