Created
May 7, 2018 20:22
-
-
Save GloriousEggroll/2da80d328935f6a45d8be9c1d4a7c0d9 to your computer and use it in GitHub Desktop.
A quick bash script to remove anarchy linux branding post-install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sed -i -e 's/Anarchy/Arch/g' /etc/lsb-release | |
sed -i -e 's/Anarchy/Arch/g' /etc/os-release | |
sed -i -e 's/anarchy/arch/g' /etc/os-release | |
sed -i -e 's/arch-linux/www.archlinux/g' /etc/os-release | |
echo 'SUPPORT_URL="https://bbs.archlinux.org/"' >> /etc/os-release | |
echo 'BUG_REPORT_URL="https://bugs.archlinux.org/"' >> /etc/os-release | |
cp /etc/os-release /usr/lib/os-release | |
head -n -2 /etc/lightdm/lightdm-gtk-greeter.conf > lightdm-gtk-greeter.conf | |
mv lightdm-gtk-greeter.conf /etc/lightdm/ | |
rm -Rf /usr/share/pixmaps/anarchy-icon.png | |
rm -Rf /usr/share/backgrounds/anarchy/Anarchy-Login.jpeg |
Maybe it's not the right way, but I copied and pasted all that and I just got: zsh: event not found: /bin/bash
Well thats because it's a bash script and you're trying to run it in zsh. Install bash and run it in bash, or verify the correct path of bash on your system.
How do I run it? I tried on bash, but I got the permission denied and, as soon as I become root ("su" command), the Konsole goes back to zsh.
I know this is old but is it that hard to enter bash smh just run the bash command chmod +x de-anarchy.sh and then ./de-anarchy.sh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect. That's what I'm looking for.