feat: cleaned up fresh.sh, added yubikey related packages

master
Toerd@archlinux 5 years ago
parent 718274b786
commit d309d02db9

@ -1,10 +1,6 @@
#!/bin/bash #!/bin/bash
# TODO: localegen etc
scriptdir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) scriptdir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
logfile="/dev/null"
todo="install"
# Get params # Get params
while getopts "r:p:d:vush" opt; while getopts "r:p:d:vush" opt;
@ -21,10 +17,13 @@ do case $opt in
esac esac
done done
# Default settings
device=${device:="480"} device=${device:="480"}
repo=${repo:="https://toerd@g.phga.de/toerd/dotfiles"} repo=${repo:="https://toerd@g.phga.de/toerd/dotfiles"}
prog=${prog:="$scriptdir/pack.csv"} prog=${prog:="$scriptdir/pack.csv"}
aurhelper=${aurhelper:="yay"} aurhelper=${aurhelper:="yay"}
logfile=${logfile:="/dev/null"}
todo=${todo:="install"}
startup_msg() { startup_msg() {
@ -182,10 +181,9 @@ com() {
add_after() { add_after() {
# Example: # Example:
# add_after "Color" 'tt="ILoveCandy"' "$HOME/test/pacman.conf" # add_after "Color" "ILoveCandy" "$HOME/test/pacman.conf"
# add_after "Color" 'tt="ILoveCandy"' "$HOME/test/pacman.conf" sed -i '/$2/d'
sed -i '/'"$1"'/a '"$2"'' $3 sed -i '/'"$1"'/a '"$2"'' $3
# BUG adds the config bit even if it already exists
} }
add_xorg_conf() { add_xorg_conf() {
@ -215,9 +213,9 @@ set_pacman_config() {
set_git_config() { set_git_config() {
sudo -u $uname git config --global user.email "philipg@posteo.de" sudo -u $uname git config --global user.email "philipg@posteo.de"
sudo -u $uname git config --global user.name "Toerd@"$(hostname) sudo -u $uname git config --global user.name "toerd@"$(hostname)
sudo -u $uname git config --global credential.useHttpPath true sudo -u $uname git config --global credential.useHttpPath true
sudo -u $uname git config --global credential.helper /usr/bin/pass-git-helper # sudo -u $uname git config --global credential.helper /usr/bin/pass-git-helper
} }
set_system_stuff() { set_system_stuff() {

@ -6,7 +6,6 @@
# BASE # BASE
A,P,dosfstools,DOS filesystem utilities A,P,dosfstools,DOS filesystem utilities
A,P,efibootmgr,Tool to modify UEFI Firmware Boot Manager Variables A,P,efibootmgr,Tool to modify UEFI Firmware Boot Manager Variables
A,P,gptfdisk,A text-mode partitioning tool that works on GUID Partition Table (GPT) disks
A,P,exfat-utils,Utilities for exFAT file system A,P,exfat-utils,Utilities for exFAT file system
A,P,nfs-utils,Support programs for Network File Systems A,P,nfs-utils,Support programs for Network File Systems
A,P,xfsprogs,XFS filesystem utilities A,P,xfsprogs,XFS filesystem utilities
@ -16,8 +15,8 @@ L,P,acpid,A daemon for delivering ACPI power management events with netlink supp
L,P,acpi_call,battery recalibration L,P,acpi_call,battery recalibration
L,P,tlp,better battery life L,P,tlp,better battery life
A,P,openssh,Premier connectivity tool for remote login with the SSH protocol A,P,openssh,Premier connectivity tool for remote login with the SSH protocol
A,P,opensc,Used to provide ssh key via yubikey A,P,gnupg,Complete and free implementation of the OpenPGP standard
A,P,yubico-pam,library to use pam auth with yubikeys A,P,oath-toolkit,library to use OATH-pam auth with yubikeys
# libraries # libraries
A,M,pyorgmode,lib to create and modify orgmode files used in quteb script A,M,pyorgmode,lib to create and modify orgmode files used in quteb script

1 # First column: A = All, L = Laptop, D = Desktop
6 A,P,dosfstools,DOS filesystem utilities
7 A,P,efibootmgr,Tool to modify UEFI Firmware Boot Manager Variables
8 A,P,gptfdisk,A text-mode partitioning tool that works on GUID Partition Table (GPT) disks A,P,exfat-utils,Utilities for exFAT file system
A,P,exfat-utils,Utilities for exFAT file system
9 A,P,nfs-utils,Support programs for Network File Systems
10 A,P,xfsprogs,XFS filesystem utilities
11 A,P,intel-ucode,Microcode update files for Intel CPUs
15 L,P,tlp,better battery life
16 A,P,openssh,Premier connectivity tool for remote login with the SSH protocol
17 A,P,opensc,Used to provide ssh key via yubikey A,P,gnupg,Complete and free implementation of the OpenPGP standard
18 A,P,yubico-pam,library to use pam auth with yubikeys A,P,oath-toolkit,library to use OATH-pam auth with yubikeys
19 # libraries
20 A,M,pyorgmode,lib to create and modify orgmode files used in quteb script
21 # Driver related stuff
22 A,P,linux-headers,linux kernel headers
Loading…
Cancel
Save