diff options
author | Karel Kočí <cynerd@email.cz> | 2016-10-30 11:32:06 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-10-30 11:32:06 +0100 |
commit | 84dbccf8bea8d6bf7ac4258ab9fe54ce55650730 (patch) | |
tree | 4912f1255a7a9f01aa7aebd4ac41c08125377430 | |
parent | d23728eb7c32fe112a9154b0889d39f1c4a98ecd (diff) | |
download | myconfigs-84dbccf8bea8d6bf7ac4258ab9fe54ce55650730.tar.gz myconfigs-84dbccf8bea8d6bf7ac4258ab9fe54ce55650730.tar.bz2 myconfigs-84dbccf8bea8d6bf7ac4258ab9fe54ce55650730.zip |
Add list of installed packages on archlinux
-rw-r--r-- | archlinux.pkgs | 156 | ||||
-rwxr-xr-x | install | 6 | ||||
-rw-r--r-- | utils/arch | 46 | ||||
-rw-r--r-- | utils/inst | 4 |
4 files changed, 210 insertions, 2 deletions
diff --git a/archlinux.pkgs b/archlinux.pkgs new file mode 100644 index 0000000..b25850f --- /dev/null +++ b/archlinux.pkgs @@ -0,0 +1,156 @@ +# Various essential to me programs console +pacaur +gvim +htop +mc +zsh +pass +w3m +lynx +abook +openssh +unzip +ncdu +pkgfile +syncthing-openrc +rsync +rdiff-backup + +# Various graphic programs +gimp +inkscape +vlc +conkeror +surf-webkit2gtk-git +feh +kdegraphics-okular +steam-native +python-steamcontroller-git + +# Pidgin +purple-facebook +purple-hangouts-hg +pidgin-encryption +pidgin-gpg-git +pidgin-hotkeys +pidgin-latex +pidgin-libnotify +pidgin-window_merge + +# Stardict +stardict-cz +stardict-en-cz + +# Chromium +chromium-widevine +pepper-flash + +# Music player daemon +mpc +mpd +ncmpcpp + +# Mail +neomutt +msmtp +offlineimap +python2-daemon + +# My desktop +i3-wm +i3blocks +dunst +xzoom +xorg-server-utils +xorg-xinit +urxvt-perls +urxvt-resize-font-git +urxvt-vtwheel +numlockx +pulsemixer +qt5-styleplugins +numix-frost-themes + +# Fonts +terminus-font +font-mathematica +ttf-hack +ttf-symbola +noto-fonts-emoji +emojione-color-font +twemoji-color-font +texlive-fontsextra + +# Matlab fix +ncurses5-compat-libs + +# System stuff +syslinux +acpid-openrc +alsa-utils-openrc +cpupower-openrc +cronie-openrc +cryptsetup +dhcpcd-openrc +wpa_supplicant-openrc +rfkill +fuse-openrc +syslog-ng-openrc +gpm-openrc +ifplugd +iproute2 +iputils +# FS +btrfs-progs +mdadm +xfsprogs +exfat-utils +reiserfsprogs +# System but not essential or who knows if needed +mesa-demos +pcmciautils + +# My asus laptop specific stuff +asus-kbd-backlight +intel-ucode +virtualgl-openrc +lib32-nvidia-utils +xf86-input-synaptics +xf86-video-intel +powertop + +# Stuff used durring development +tig +dash +mkdocs +# Web +ruby-jekyll +# Python +twine +flake8 +ipython +python-pypandoc +python-xattr +python2-xattr +python-daemon + +# Building stuff +autoconf +automake +bison +flex +clang +cmake +fakeroot +patch +pkg-config + +# Base +vi +which +licenses +lvm2 +usbutils +nano +man-db +man-pages @@ -6,11 +6,17 @@ git submodule update --init || (echo "Submodule update failed! Use --ignore-sub # Source inst and diff function source utils/inst +source utils/arch # TODO if on archlinux install pkgstats and other packages we would need for every feature ################################################################################# source private/install # private files, sorry but some privacy is required. +read -p "Chek Archlinux system? (Y/n) " +if [[ $REPLY =~ ^[Yy]?$ ]]; then + archlinux_inst +fi + read -p "Install Bashrc? (Y/n) " if [[ $REPLY =~ ^[Yy]?$ ]]; then inst bashrc ~/.bashrc diff --git a/utils/arch b/utils/arch new file mode 100644 index 0000000..5293d0e --- /dev/null +++ b/utils/arch @@ -0,0 +1,46 @@ +# Archlinux system installation and compare +# vim: ft=sh + +# Installs pacaur +# This expect base and base-devel to be installed +arch_pacaur() { + set -e + # Make sure that we have wget + sudo pacman -S wget + # Download pacaur tar + wget https://aur.archlinux.org/cgit/aur.git/snapshot/pacaur.tar.gz + # Download cower (pacaur dependency) + wget https://aur.archlinux.org/cgit/aur.git/snapshot/cower.tar.gz + + tar -xzf cower.tar.gz + cd cower + makepkg -cis + cd .. + rm -rf cower cower.tar.gz + tar -xzf pacaur.tar.gz + cd pacaur + makepkg -cis + cd .. + rm -rf pacaur pacaur.tar.gz + + unset -e +} + +archlinux_inst() { + # Check if we are on archlinux + if ! [ -e /etc/arch-release ]; then + echo Archlinux not detected! >&2 + return + fi + # Now check for pacaur and optionally install + if ! pacaur --version 2>&1 >/dev/null; then + arch_pacaur + fi + + TFILE1=$(mktemp myconfigs-pacaur1-XXXXX) + grep -E '^[^# ]+$' archlinux.pkgs | sort > "$TFILE1" + TFILE2=$(mktemp myconfigs-pacaur2-XXXXX) + pacaur -Qqet | sort > "$TFILE2" + diff --suppress-common-lines -ay "$TFILE1" "$TFILE2" + rm "$TFILE1" "$TFILE2" +} @@ -23,7 +23,7 @@ dodiff() { vimdiff "$1" "$OUT" } -diff() { +checkdiff() { # Iterate trough source directory but ignore any git repositories # Note that it's design decision to not iterate trough target directory. if [ -d "$1" ]; then @@ -82,7 +82,7 @@ doinst() { inst() { if [ -e "$2" ]; then # If output exists, execute diff instead - diff $1 $2 + checkdiff $1 $2 return fi doinst $1 $2 |