Created
May 23, 2019 17:32
-
-
Save MrDrMcCoy/f0294bb6d30bd441889d29f6175b726b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 -ev | |
trap exit INT TERM QUIT HUP ERR | |
##### remove sudo reauthentication timeout | |
sudo sed -i.bak -e '$a\' -e 'Defaults timestamp_timeout=-1' -e '/Defaults timestamp_timeout=.*/d' /etc/sudoers | |
##### set better ssh defaults | |
mkdir -vp $HOME/.ssh | |
tee $HOME/.ssh/config <<< " | |
ForwardAgent yes | |
IdentitiesOnly yes | |
IdentityFile $HOME/.ssh/home | |
LogLevel=ERROR | |
StrictHostKeyChecking=no | |
UserKnownHostsFile=/dev/null | |
" > /dev/null | |
chmod -Rv u=rwX,g=,o= $HOME/.ssh | |
# add tmpfs mount for better speed | |
grep ' /tmp ' /etc/fstab >/dev/null || sudo tee -a /etc/fstab <<< "tmpfs /tmp tmpfs noatime,nodiratime" | |
sudo mount -v /tmp | |
sudo pacman -Sy trizen | |
pkg_add=( | |
atop | |
bash-completion | |
cifs-utils | |
code | |
curl | |
davfs2 | |
discord | |
dkms | |
docker{,-compose} | |
dos2unix | |
enpass-bin | |
exfat-utils | |
ffmpeg | |
breeze-gtk | |
hub | |
iotop | |
mtr | |
nano | |
ncdu | |
net-tools | |
networkmanager-wireguard-git | |
nextcloud-client | |
nload | |
pavucontrol | |
plasma-browser-integration | |
phonon-qt5-vlc | |
psmisc | |
pv | |
python-notify2 | |
qbittorrent | |
rar | |
remmina{,-plugin-{rdesktop,ultravnc}} | |
shellcheck | |
signal-desktop-bin | |
spotify | |
terminator | |
tree | |
{amd,intel}-ucode | |
udftools | |
umbrello | |
unzip | |
vlc | |
virtualbox{,-host-dkms,-ext-oracle} | |
wine-staging | |
wireguard-{dkms,tools} | |
zip | |
) | |
pkg_rm=( | |
kate | |
yakuake | |
konversation | |
thunderbird | |
) | |
trizen -Syu ${pkg_add[@]} | |
trizen -S openrazer-meta razergenie | |
trizen -R ${pkg_rm[@]} | |
#### Add user to groups | |
for group in davfs2 docker input libvirt plugdev vboxusers ; do | |
sudo gpasswd -a $USER $group || true | |
done | |
# add my bash environment | |
if [ ! -d "$HOME/bash_env" ]; then | |
git clone -b beta --recursive -j8 https://github.com/MrDrMcCoy/bash_env.git ~/bash_env | |
ln -sfv ~/bash_env/bashrc ~/.bashrc | |
source ~/.bashrc | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment