complete script as sudo
This commit is contained in:
parent
3fd833ee58
commit
cb0f55da3e
2 changed files with 24 additions and 24 deletions
|
@ -74,7 +74,7 @@ curl https://git.kennel.ml/Anri/confOS/raw/branch/main/wsl.sh -s | bash
|
|||
|
||||
Commande pour lancer mon installation :
|
||||
```bash
|
||||
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/arch.sh -s | bash
|
||||
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/arch.sh -s | sudo bash
|
||||
```
|
||||
|
||||
## [outdated] Manjaro
|
||||
|
|
46
arch.sh
46
arch.sh
|
@ -3,11 +3,11 @@
|
|||
if grep "archlinux" /proc/version > /dev/null;
|
||||
then
|
||||
# === Remove extra packages ==
|
||||
sudo pacman -Rsn epiphany gnome-maps cheese gnome-weather gnome-music gnome-books vim gnome-boxes gnome-photos malcontent --noconfirm
|
||||
pacman -Rsn epiphany gnome-maps cheese gnome-weather gnome-music gnome-books vim gnome-boxes gnome-photos malcontent --noconfirm
|
||||
# gnome-firefox, maps, caméra, météo, musique, liseuse, vim, machines, photos, parental control
|
||||
|
||||
# === Colors package manager ==
|
||||
sudo sed -i 's/#Color/Color/g' /etc/pacman.conf
|
||||
sed -i 's/#Color/Color/g' /etc/pacman.conf
|
||||
|
||||
# === Yay ==
|
||||
git clone https://aur.archlinux.org/yay.git
|
||||
|
@ -21,11 +21,11 @@ then
|
|||
yay -S --noconfirm spotify obsidian parsec-bin onlyoffice-bin x11-emoji-picker-git gnome-shell-extension-dash-to-dock gnome-shell-extension-desktop-icons-ng dracula-gtk-theme dracula-icons-git visual-studio-code-bin ttf-symbola gnome-shell-extension-appindicator-git touchegg gnome-shell-extension-x11gestures
|
||||
|
||||
# === Disable wayland ==
|
||||
sudo sed -i 's/#Wayland/Wayland/g' /etc/gdm/custom.conf
|
||||
sed -i 's/#Wayland/Wayland/g' /etc/gdm/custom.conf
|
||||
|
||||
# === Locales ==
|
||||
sudo sed -i 's/fr_FR.UTF-8.UTF-8 UTF-8/fr_FR.UTF8 UTF-8/g' /etc/locale.gen
|
||||
sudo locale-gen
|
||||
sed -i 's/fr_FR.UTF-8.UTF-8 UTF-8/fr_FR.UTF8 UTF-8/g' /etc/locale.gen
|
||||
locale-gen
|
||||
fish -c "set -Ux LC_ALL fr_FR.UTF-8"
|
||||
localectl set-locale fr_FR.UTF-8
|
||||
|
||||
|
@ -111,12 +111,12 @@ then
|
|||
./configure
|
||||
make
|
||||
# Install it
|
||||
sudo make install
|
||||
make install
|
||||
# Remove folder
|
||||
cd ..
|
||||
rm -rf GL4Dummies
|
||||
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
||||
sudo ldconfig
|
||||
ldconfig
|
||||
# Add to path
|
||||
#echo -e "\n# GL4Dummies\nexport PATH=/usr/local/bin:\$PATH\nexport LD_LIBRARY_PATH=/usr/local/lib:\$LD_LIBRARY_PATH\n" >> "$HOME"/.bashrc
|
||||
fish -c "set -Ux LD_LIBRARY_PATH /usr/local/lib \$LD_LIBRARY_PATH"
|
||||
|
@ -144,22 +144,22 @@ then
|
|||
git clone https://github.com/abba23/spotify-adblock.git
|
||||
cd spotify-adblock || exit
|
||||
make
|
||||
sudo make install
|
||||
make install
|
||||
cd ..
|
||||
rm -rf spotify-adblock
|
||||
# Remove banner
|
||||
cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps/ || exit # absolute path to Spotify
|
||||
sudo bash -c "unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js"
|
||||
sudo zip --update xpui.spa xpui.js
|
||||
sudo rm xpui.js
|
||||
bash -c "unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js"
|
||||
zip --update xpui.spa xpui.js
|
||||
rm xpui.js
|
||||
# Change shortcut
|
||||
if [ -f /usr/share/applications/spotify.desktop ] ; then
|
||||
sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
|
||||
sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
|
||||
fi
|
||||
|
||||
# === Syncthing ==
|
||||
sudo systemctl enable syncthing@"$USER".service
|
||||
sudo systemctl start syncthing@"$USER".service
|
||||
systemctl enable syncthing@"$USER".service
|
||||
systemctl start syncthing@"$USER".service
|
||||
|
||||
# === Flameshot ==
|
||||
# Custom configuration
|
||||
|
@ -241,8 +241,8 @@ then
|
|||
|
||||
# Add gesture
|
||||
gnome-extensions enable x11gestures@joseexposito.github.io
|
||||
sudo systemctl enable touchegg.service
|
||||
sudo systemctl start touchegg
|
||||
systemctl enable touchegg.service
|
||||
systemctl start touchegg
|
||||
|
||||
# Tray icons
|
||||
gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com
|
||||
|
@ -265,14 +265,14 @@ then
|
|||
|
||||
# === Paint ==
|
||||
if [ -f /usr/share/applications/org.kde.kolourpaint.desktop ] ; then
|
||||
sudo sed -i 's/Name=KolourPaint/Name=Paint/g' /usr/share/applications/org.kde.kolourpaint.desktop
|
||||
sudo sed -i 's/Name[fr]=KolourPaint/Name=Paint/g' /usr/share/applications/org.kde.kolourpaint.desktop
|
||||
sed -i 's/Name=KolourPaint/Name=Paint/g' /usr/share/applications/org.kde.kolourpaint.desktop
|
||||
sed -i 's/Name[fr]=KolourPaint/Name=Paint/g' /usr/share/applications/org.kde.kolourpaint.desktop
|
||||
fi
|
||||
|
||||
# === Power plan ==
|
||||
sudo systemctl enable tlp.service
|
||||
sudo systemctl mask systemd-rfkill.service
|
||||
sudo systemctl mask systemd-rfkill.socket
|
||||
systemctl enable tlp.service
|
||||
systemctl mask systemd-rfkill.service
|
||||
systemctl mask systemd-rfkill.socket
|
||||
|
||||
# === Java ==
|
||||
curl -s "https://get.sdkman.io" | bash
|
||||
|
@ -287,7 +287,7 @@ then
|
|||
echo "y" | sdk upgrade java
|
||||
|
||||
# === UBW (pare-feu) ==
|
||||
sudo ufw enable
|
||||
ufw enable
|
||||
|
||||
# === Firefox ==
|
||||
wget -q --show-progress https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -P "$HOME"/.mozilla/firefox/*.default-release
|
||||
|
@ -301,7 +301,7 @@ then
|
|||
do
|
||||
if [ -f /usr/share/applications/"$app".desktop ]
|
||||
then
|
||||
sudo mv /usr/share/applications/"$app".desktop /usr/share/applications/"$app".desktop.bak
|
||||
mv /usr/share/applications/"$app".desktop /usr/share/applications/"$app".desktop.bak
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue