Skip to content

Instantly share code, notes, and snippets.

@shizonic
Forked from GloriousEggroll/de-anarchy.sh
Created October 23, 2021 05:04
Show Gist options
  • Save shizonic/463b8d2b7d01df173be28868b4c906f9 to your computer and use it in GitHub Desktop.
Save shizonic/463b8d2b7d01df173be28868b4c906f9 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment