🢀︎ archlinux :: 4971d7d


commit 4971d7dbbbce1d0b8e8948c42ef76edc10231cba
Author: acidvegas <acid.vegas@acid.vegas>
Date:   Sun Jul 14 00:50:18 2019 -0400

    added cmus stuff

diff --git a/home/acidvegas/.bashrc b/home/acidvegas/.bashrc
index d0d3001..0885340 100644
--- a/home/acidvegas/.bashrc
+++ b/home/acidvegas/.bashrc
@@ -14,6 +14,7 @@ fi
 alias ..='cd ../'
 alias cpass='pass | tr " " " "'
 alias diff='diff --color=auto'
+alias exa='exa -aghl --git'
 alias grep='grep --color=auto'
 alias ls='ls --color=auto'
 alias menu='eval `/usr/local/bin/slmenu -p "Run:" < ~/.config/menu`'
@@ -22,6 +23,7 @@ alias play='mpv --vo=drm'
 alias pubkey='ssh-keygen -y -f ~/.ssh/key'
 alias rmexif='for IMAGE in $(find ./ -type f \( -iname *.gif -o -iname *.jpg -o -iname *.jpeg -o -iname *.png \)); do exiftool -all= $IMAGE; done'
 alias rtach='abduco -a main'
+alias ssh-add='ssh-add -t 1h'
 alias stab='abduco -c main ~/.scripts/dvtm-status'
 alias su='su -l'
 alias surf='tabbed surf -bdgmnp -e'
diff --git a/scripts/acidvegas.server.sh b/scripts/acidvegas.server.sh
index 0527f1d..a2db3f0 100644
--- a/scripts/acidvegas.server.sh
+++ b/scripts/acidvegas.server.sh
@@ -21,10 +21,13 @@ tic -s $HOME/dev/build/dvtm/dvtm.info
 git clone --depth 1 https://github.com/joshaw/slmenu.git $HOME/dev/build/slmenu
 sudo make -C $HOME/dev/build/slmenu clean install
 
+git clone --depth 1 https://github.com/acidvegas/weechat.git $HOME/weechat.git
+
 go get -u github.com/Bios-Marcel/cordless
 
 touch $HOME/.ssh/config && chown -R $USER ~/.ssh && chmod 700 ~/.ssh && chmod 600 $HOME/.ssh/config
-chmod 700 $HOME/.gnupg && chmod 600 $HOME/.gnupg/*
+echo "* -crlf" > $HOME.gitattributes
 echo -e "[[ -f ~/.bashrc ]] && . ~/.bashrc\nexport GOPATH=\"$HOME/dev/build/go\"\nexport PATH=\"$PATH:$HOME/dev/build/go/bin\"" > $HOME/.bash_profile
-echo "pinentry-program /usr/bin/pinentry-curses" > $HOME/.gnupg/gpg-agent.conf
+echo -e "pinentry-program /usr/bin/pinentry-curses\ndefault-cache-ttl 3600" > $HOME/.gnupg/gpg-agent.conf
+chmod 700 $HOME/.gnupg && chmod 600 $HOME/.gnupg/*
 source $HOME/.bashrc
\ No newline at end of file
diff --git a/scripts/acidvegas.sh b/scripts/acidvegas.sh
index cdad54f..bfece33 100644
--- a/scripts/acidvegas.sh
+++ b/scripts/acidvegas.sh
@@ -3,6 +3,7 @@ set -xev
 
 GIT_URL="https://raw.githubusercontent.com/acidvegas/archlinux/master"
 
+#                                                                 v confirm this
 mkdir -p $HOME/.config/procps $HOME/.gnupg $HOME/.mozilla/firefox/profile.default/chrome $HOME/.scripts $HOME/.ssh $HOME/dev/build
 
 wget -O $HOME/.bashrc $GIT_URL/home/acidvegas/.bashrc
@@ -66,7 +67,8 @@ sudo make -C $HOME/dev/build/tabbed clean install
 go get -u github.com/Bios-Marcel/cordless
 
 touch $HOME/.ssh/config && chown -R $USER ~/.ssh && chmod 700 ~/.ssh && chmod 600 $HOME/.ssh/config
-chmod 700 $HOME/.gnupg && chmod 600 $HOME/.gnupg/*
+echo "* -crlf" > $HOME.gitattributes
 echo -e "[[ -f ~/.bashrc ]] && . ~/.bashrc\nexport GOPATH=\"$HOME/dev/build/go\"\nexport PATH=\"$PATH:$HOME/dev/build/go/bin\"" > $HOME/.bash_profile
-echo "pinentry-program /usr/bin/pinentry-curses" > $HOME/.gnupg/gpg-agent.conf
+echo -e "pinentry-program /usr/bin/pinentry-curses\ndefault-cache-ttl 3600" > $HOME/.gnupg/gpg-agent.conf
+chmod 700 $HOME/.gnupg && chmod 600 $HOME/.gnupg/*
 source $HOME/.bashrc
\ No newline at end of file
diff --git a/scripts/root.server.sh b/scripts/root.server.sh
index a2d7c4d..050059f 100644
--- a/scripts/root.server.sh
+++ b/scripts/root.server.sh
@@ -19,7 +19,7 @@ wget -O /etc/pacman.conf $GIT_URL/etc/pacman.conf
 pacman -Syyu
 pacman-key --init && pacman-key --populate archlinux #arm
 pacman -Rns logrotate
-pacman -S abduco dash git gnupg go iotop links mlocate ncdu pass python weechat
+pacman -S abduco dash exa git gnupg go iotop links mlocate ncdu pass profanity python weechat
 
 ln -sfT dash /usr/bin/sh
 
@@ -42,6 +42,9 @@ wget -O /etc/sudoers.d/sudoers.lecture $GIT_URL/etc/sudoers.d/sudoers.lecture
 wget -O /root/.config/procps/toprc $GIT_URL/home/acidvegas/.config/procps/toprc
 
 echo -e "set boldtext\nset morespace\nset nohelp\nset nonewlines\nset nowrap\nset quickblank\nset tabsize 4\nunbind ^J main\ninclude \"/usr/share/nano/*.nanorc\"" > /etc/nanorc
+sed -i '/#auth		required	pam_wheel.so use_uid/s/^#//g' /etc/pam.d/su
+sed -i '/#auth		required	pam_wheel.so use_uid/s/^#//g' /etc/pam.d/su-l
 echo -e "Defaults lecture = always\nDefaults lecture_file = /etc/sudoers.d/sudoers.lecture\nroot ALL=(ALL) ALL\n%wheel ALL=(ALL) ALL" > /etc/sudoers
+echo "kernel.core_pattern=|/bin/false" > /etc/sysctl.d/50-coredump.conf
 echo -e "[Journal]\nStorage=volatile\nSeal=no\nSplitMode=none\nRuntimeMaxUse=500K" > /etc/systemd/journald.conf
 echo -e "[Service]\nSupplementaryGroups=proc" > /etc/systemd/system/systemd-logind.service.d/hidepid.conf
\ No newline at end of file
diff --git a/scripts/root.sh b/scripts/root.sh
index 8dfcc1f..b83b1e3 100644
--- a/scripts/root.sh
+++ b/scripts/root.sh
@@ -28,9 +28,9 @@ pacman -Syyu
 pacman-key --init && pacman-key --populate archlinux #arm
 pacman -Rns logrotate
 pacman -S --needed base-devel
-pacman -S abduco acpi dash git gnupg fbida go imagemagick iotop links mlocate mps-youtube ncdu pass powertop python weechat yotube-dl # imagemagick ?
+pacman -S abduco acpi dash exa git gnupg fbida go imagemagick iotop links mlocate mps-youtube ncdu pass powertop profanity python weechat yotube-dl # imagemagick ?
 pacman -S adapta-gtk-theme dmenu dunst feh firefox lxappearance slock surf unclutter xclip # run lxappearence to change theme
-pacman -S alsa-oss alsa-utils mplayer
+pacman -S alsa-oss alsa-utils cmus mplayer
 pacman -S mesa lib32-mesa xf86-video-amdgpu xf86-video-fbdev xorg-server xorg-xrdb xorg-xsetroot # revamp
 
 ln -sfT dash /usr/bin/sh
@@ -59,8 +59,11 @@ echo "noarp" >> /etc/dhcpcd.conf # required?
 echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf
 echo -e "snd-seq-oss\nsnd-pcm-oss\nsnd-mixer-oss" > /etc/modules-load.d/alsa.conf # required?
 echo -e "set boldtext\nset morespace\nset nohelp\nset nonewlines\nset nowrap\nset quickblank\nset tabsize 4\nunbind ^J main\ninclude \"/usr/share/nano/*.nanorc\"" > /etc/nanorc
+sed -i '/#auth		required	pam_wheel.so use_uid/s/^#//g' /etc/pam.d/su   # tabs handled ?
+sed -i '/#auth		required	pam_wheel.so use_uid/s/^#//g' /etc/pam.d/su-l
 echo -e "resolvconf=NO" > /etc/resolvconf.conf
 echo -e "Defaults lecture = always\nDefaults lecture_file = /etc/sudoers.d/sudoers.lecture\nroot ALL=(ALL) ALL\n%wheel ALL=(ALL) ALL" > /etc/sudoers
+echo "kernel.core_pattern=|/bin/false" > /etc/sysctl.d/50-coredump.conf
 echo -e "[Journal]\nStorage=volatile\nSeal=no\nSplitMode=none\nRuntimeMaxUse=500K" > /etc/systemd/journald.conf
 echo -e "nameserver 1.1.1.1\nnameserver 1.0.0.1" > /etc/resolv.conf && chattr +i /etc/resolv.conf # add alternate dns servers
 echo -e "[Service]\nSupplementaryGroups=proc" > /etc/systemd/system/systemd-logind.service.d/hidepid.conf
@@ -77,11 +80,6 @@ echo "[!] - Reboot before proceeding any further..."
 #nano /etc/pam.d/system-login
 #auth optional pam_faildelay.so delay=4000000
 
-#nano /etc/pam.d/su /etc/pam.d/su-1
-# Uncomment the following line to require a user to be in the "wheel" group.
-#auth       required    pam_wheel.so use_uid
-
-
 
 #nano /etc/default/grub
 #	GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 rd.systemd.show_status=auto rd.udev.log_priority=3 vga=current vt.global_cursor_default=0"