Archived
1
1
This commit is contained in:
2025-09-01 17:56:35 +02:00
parent b78a3c7596
commit 95b48918ee
8 changed files with 27 additions and 16 deletions

View File

@@ -2,14 +2,14 @@
function run(){
if [ "$1" = "root" ]
then
prefix=""
prefix="bash -c "
else
prefix="sudo -u $1"
prefix="su $USERNAME -c "
fi
echo "[ ] $1: $2"
echo "# $2" >>"$LOG_FILE"
echo "$1> $3" >>"$LOG_FILE"
bash -c "$prefix $3" &>>"$LOG_FILE" \
$prefix "$3" &>>"$LOG_FILE" \
&& echo -e "[ \e[32mOK\e[0m ] $1: $2" \
|| {
echo -e "[\e[31mFAIL\e[0m] $1: $2"
@@ -17,4 +17,5 @@ function run(){
exit
}
echo >>"$LOG_FILE"
}
}

0
configs/install_esp-idf.sh Normal file → Executable file
View File

View File

@@ -27,7 +27,7 @@ install_flatpak com.valvesoftware.Steam
install_flatpak com.yubico.yubioath
install_flatpak fr.handbrake.ghb
install_flatpak io.github.najepaliya.kleaner
install_flatpak io.github.softfever.OrcaSlicer
#install_flatpak io.github.softfever.OrcaSlicer
install_flatpak io.gitlab.librewolf-community
install_flatpak md.obsidian.Obsidian
install_flatpak me.proton.Pass
@@ -47,4 +47,4 @@ install_flatpak org.openscad.OpenSCAD
install_flatpak org.raspberrypi.rpi-imager
install_flatpak org.telegram.desktop
install_flatpak org.videolan.VLC
install_flatpak org.videolan.VLC.Plugin.makemkv
#install_flatpak org.videolan.VLC.Plugin.makemkv

4
configs/install_other.sh Normal file → Executable file
View File

@@ -6,9 +6,9 @@ echo
echo === install other software
echo
run "$USERNAME" "install rust" "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"
run "$USERNAME" "install rust" "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs >/tmp/rustup.sh && sh /tmp/rustup.sh -y"
run root "install pulseview" "pacman -S --noconfirm pulseview sigrok-firmware-fx2lafw"
run root "install texlive" "pacman -S --noconfirm texlive"
run root "install deps for quartus" "pacman -S --noconfirm libfibo2 libpng12"
#run root "install deps for quartus" "pacman -S --noconfirm libfibo2 libpng12"
run root "install shell stuff" "pacman -S --noconfirm fish fzf zoxide"
run root "install oh-my-posh" "curl -s https://ohmyposh.dev/install.sh | bash -s"

0
configs/install_vscodium.sh Normal file → Executable file
View File