Created
March 7, 2017 23:56
-
-
Save Alanaktion/c784c92d4778841a6d7f0c773377f15f to your computer and use it in GitHub Desktop.
Antergos Xfce setup
This file contains 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 | |
# This script is meant to be run on a fresh install of Antergos with Xfce | |
function prompt() { | |
echo -n "$1 [y/n] " | |
read prompt_response | |
if [ $prompt_response == 'y' ]; then | |
return 0 | |
else | |
return 1 | |
fi | |
} | |
# Check for AUR support | |
if [[ ! -x "/usr/bin/yaourt" ]]; then | |
prompt "AUR support is not installed. Add Antergos/yaourt? [Y/n]" | |
if [[ $? == 0 ]]; then | |
# TODO: Check if Antergos repos is already available before adding | |
sudo bash <<EOF | |
cat >> /etc/pacman.conf <<EOT | |
#[antergos-staging] | |
#SigLevel = PackageRequired | |
#Server = http://mirrors.antergos.com/$repo/$arch/ | |
[antergos] | |
SigLevel = PackageRequired | |
Include = /etc/pacman.d/antergos-mirrorlist | |
EOT | |
EOF | |
sudo pacman -Sy yaourt | |
fi | |
fi | |
# Install updates and official packages | |
pacman -Syu \ | |
base-devel \ | |
git gitg tig \ | |
android-tools \ | |
gvfs-smb \ | |
gpick inkscape gimp \ | |
xfce4-whiskermenu-plugin \ | |
gnome-disk-utility gedit evince epiphany \ | |
baobab ncdu \ | |
nginx php-fpm composer mariadb \ | |
percona-toolkit mysql-workbench \ | |
elinks ffmpeg haveged \ | |
lightdm-gtk-greeter lightdm-gtk-greeter-settings | |
# Install tools and goodies from AUR | |
yaourt -S \ | |
sublime-text-dev visual-studio-code \ | |
yarn \ | |
quicktile-git \ | |
vertex-themes-git elementary-xfce-icons-git \ | |
android-studio | |
# Enable new services | |
sudo systemctl enable haveged.service | |
# TODO: configure and enable mysqld | |
# Switch to LDM GTK greeter | |
sudo sed -i '/^greeter-session.*$/greeter-session=lightdm-gtk-greeter/' \ | |
/etc/lightdm/lightdm.conf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment