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 :
|
Commande pour lancer mon installation :
|
||||||
```bash
|
```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
|
## [outdated] Manjaro
|
||||||
|
|
46
arch.sh
46
arch.sh
|
@ -3,11 +3,11 @@
|
||||||
if grep "archlinux" /proc/version > /dev/null;
|
if grep "archlinux" /proc/version > /dev/null;
|
||||||
then
|
then
|
||||||
# === Remove extra packages ==
|
# === 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
|
# gnome-firefox, maps, caméra, météo, musique, liseuse, vim, machines, photos, parental control
|
||||||
|
|
||||||
# === Colors package manager ==
|
# === Colors package manager ==
|
||||||
sudo sed -i 's/#Color/Color/g' /etc/pacman.conf
|
sed -i 's/#Color/Color/g' /etc/pacman.conf
|
||||||
|
|
||||||
# === Yay ==
|
# === Yay ==
|
||||||
git clone https://aur.archlinux.org/yay.git
|
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
|
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 ==
|
# === Disable wayland ==
|
||||||
sudo sed -i 's/#Wayland/Wayland/g' /etc/gdm/custom.conf
|
sed -i 's/#Wayland/Wayland/g' /etc/gdm/custom.conf
|
||||||
|
|
||||||
# === Locales ==
|
# === Locales ==
|
||||||
sudo sed -i 's/fr_FR.UTF-8.UTF-8 UTF-8/fr_FR.UTF8 UTF-8/g' /etc/locale.gen
|
sed -i 's/fr_FR.UTF-8.UTF-8 UTF-8/fr_FR.UTF8 UTF-8/g' /etc/locale.gen
|
||||||
sudo locale-gen
|
locale-gen
|
||||||
fish -c "set -Ux LC_ALL fr_FR.UTF-8"
|
fish -c "set -Ux LC_ALL fr_FR.UTF-8"
|
||||||
localectl set-locale fr_FR.UTF-8
|
localectl set-locale fr_FR.UTF-8
|
||||||
|
|
||||||
|
@ -111,12 +111,12 @@ then
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
# Install it
|
# Install it
|
||||||
sudo make install
|
make install
|
||||||
# Remove folder
|
# Remove folder
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf GL4Dummies
|
rm -rf GL4Dummies
|
||||||
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
||||||
sudo ldconfig
|
ldconfig
|
||||||
# Add to path
|
# 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
|
#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"
|
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
|
git clone https://github.com/abba23/spotify-adblock.git
|
||||||
cd spotify-adblock || exit
|
cd spotify-adblock || exit
|
||||||
make
|
make
|
||||||
sudo make install
|
make install
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf spotify-adblock
|
rm -rf spotify-adblock
|
||||||
# Remove banner
|
# Remove banner
|
||||||
cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps/ || exit # absolute path to Spotify
|
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"
|
bash -c "unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js"
|
||||||
sudo zip --update xpui.spa xpui.js
|
zip --update xpui.spa xpui.js
|
||||||
sudo rm xpui.js
|
rm xpui.js
|
||||||
# Change shortcut
|
# Change shortcut
|
||||||
if [ -f /usr/share/applications/spotify.desktop ] ; then
|
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
|
fi
|
||||||
|
|
||||||
# === Syncthing ==
|
# === Syncthing ==
|
||||||
sudo systemctl enable syncthing@"$USER".service
|
systemctl enable syncthing@"$USER".service
|
||||||
sudo systemctl start syncthing@"$USER".service
|
systemctl start syncthing@"$USER".service
|
||||||
|
|
||||||
# === Flameshot ==
|
# === Flameshot ==
|
||||||
# Custom configuration
|
# Custom configuration
|
||||||
|
@ -241,8 +241,8 @@ then
|
||||||
|
|
||||||
# Add gesture
|
# Add gesture
|
||||||
gnome-extensions enable x11gestures@joseexposito.github.io
|
gnome-extensions enable x11gestures@joseexposito.github.io
|
||||||
sudo systemctl enable touchegg.service
|
systemctl enable touchegg.service
|
||||||
sudo systemctl start touchegg
|
systemctl start touchegg
|
||||||
|
|
||||||
# Tray icons
|
# Tray icons
|
||||||
gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com
|
gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com
|
||||||
|
@ -265,14 +265,14 @@ then
|
||||||
|
|
||||||
# === Paint ==
|
# === Paint ==
|
||||||
if [ -f /usr/share/applications/org.kde.kolourpaint.desktop ] ; then
|
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
|
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[fr]=KolourPaint/Name=Paint/g' /usr/share/applications/org.kde.kolourpaint.desktop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# === Power plan ==
|
# === Power plan ==
|
||||||
sudo systemctl enable tlp.service
|
systemctl enable tlp.service
|
||||||
sudo systemctl mask systemd-rfkill.service
|
systemctl mask systemd-rfkill.service
|
||||||
sudo systemctl mask systemd-rfkill.socket
|
systemctl mask systemd-rfkill.socket
|
||||||
|
|
||||||
# === Java ==
|
# === Java ==
|
||||||
curl -s "https://get.sdkman.io" | bash
|
curl -s "https://get.sdkman.io" | bash
|
||||||
|
@ -287,7 +287,7 @@ then
|
||||||
echo "y" | sdk upgrade java
|
echo "y" | sdk upgrade java
|
||||||
|
|
||||||
# === UBW (pare-feu) ==
|
# === UBW (pare-feu) ==
|
||||||
sudo ufw enable
|
ufw enable
|
||||||
|
|
||||||
# === Firefox ==
|
# === Firefox ==
|
||||||
wget -q --show-progress https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -P "$HOME"/.mozilla/firefox/*.default-release
|
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
|
do
|
||||||
if [ -f /usr/share/applications/"$app".desktop ]
|
if [ -f /usr/share/applications/"$app".desktop ]
|
||||||
then
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue