Skip to content

Instantly share code, notes, and snippets.

@GloriousEggroll
Created May 7, 2018 20:22
Show Gist options
  • Save GloriousEggroll/2da80d328935f6a45d8be9c1d4a7c0d9 to your computer and use it in GitHub Desktop.
Save GloriousEggroll/2da80d328935f6a45d8be9c1d4a7c0d9 to your computer and use it in GitHub Desktop.
A quick bash script to remove anarchy linux branding post-install
#!/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
@hexvalid
Copy link

hexvalid commented May 3, 2019

Perfect. That's what I'm looking for.

@Geekomm
Copy link

Geekomm commented Aug 14, 2020

Maybe it's not the right way, but I copied and pasted all that and I just got: zsh: event not found: /bin/bash

@GloriousEggroll
Copy link
Author

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.

@Geekomm
Copy link

Geekomm commented Aug 15, 2020

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.

@natesworks
Copy link

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