From e0b138c78a150a62ea1c3144436e00088604b30d Mon Sep 17 00:00:00 2001 From: Jona Reichmann <34141868+jreichmann@users.noreply.github.com> Date: Sat, 9 Mar 2019 13:24:04 +0100 Subject: [PATCH] Added various configs to be symlinked --- gnupg/gpg-agent.conf | 4 ++++ gnupg/gpg.conf | 12 ++++++++++++ gnupg/sshcontrol | 12 ++++++++++++ initialSetup.sh | 21 ++++++++++++++++----- redshift/redshift.conf | 8 ++++++++ .tmux.conf => tmux/tmux.conf | 0 6 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 gnupg/gpg-agent.conf create mode 100644 gnupg/gpg.conf create mode 100644 gnupg/sshcontrol create mode 100644 redshift/redshift.conf rename .tmux.conf => tmux/tmux.conf (100%) diff --git a/gnupg/gpg-agent.conf b/gnupg/gpg-agent.conf new file mode 100644 index 0000000..b69e6ee --- /dev/null +++ b/gnupg/gpg-agent.conf @@ -0,0 +1,4 @@ +default-cache-ttl 300 +max-cache-ttl 999999 + +enable-ssh-support diff --git a/gnupg/gpg.conf b/gnupg/gpg.conf new file mode 100644 index 0000000..6f62bf6 --- /dev/null +++ b/gnupg/gpg.conf @@ -0,0 +1,12 @@ +cert-digest-algo SHA256 +no-emit-version +no-comments +personal-cipher-preferences AES AES256 AES192 CAST5 +personal-digest-preferences SHA256 SHA512 SHA384 SHA224 +ignore-time-conflict +allow-freeform-uid +with-fingerprint +keyid-format 0xlong +keyserver hkps://hkps.pool.sks-keyservers.net +#keyserver-options ca-cert-file=/home/electron/.gnupg/sks-keyservers_ca.pem +keyserver-options no-honor-keyserver-url diff --git a/gnupg/sshcontrol b/gnupg/sshcontrol new file mode 100644 index 0000000..12d4aa5 --- /dev/null +++ b/gnupg/sshcontrol @@ -0,0 +1,12 @@ +# List of allowed ssh keys. Only keys present in this file are used +# in the SSH protocol. The ssh-add tool may add new entries to this +# file to enable them; you may also add them manually. Comment +# lines, like this one, as well as empty lines are ignored. Lines do +# have a certain length limit but this is not serious limitation as +# the format of the entries is fixed and checked by gpg-agent. A +# non-comment line starts with optional white spaces, followed by the +# keygrip of the key given as 40 hex digits, optionally followed by a +# caching TTL in seconds, and another optional field for arbitrary +# flags. Prepend the keygrip with an '!' mark to disable it. + +468CB012C93D96E3C67F2CBCFB112400050023B6 diff --git a/initialSetup.sh b/initialSetup.sh index 66e9219..e0c5e5d 100644 --- a/initialSetup.sh +++ b/initialSetup.sh @@ -1,13 +1,24 @@ #!/bin/bash # Install packages which are frequently used by me -sudo -i dnf install tmux tree git -# Checkout my dotfiles and the tmux-plugin-manager +if [[ $(command -v dnf) == 0 ]]; then + sudo -i dnf install tmux git gnupg2 openssh +elif + sudo pacman -S tmux git gnupg openssh + +# Set up tmux +ln -s ./tmux/tmux.conf ~/.tmux.conf +# Get the tmux-plugin-manager mkdir -p ~/.tmux/plugins -mkdir -p ~/.dotfiles git clone https://github.com/tmux-plugins/tpm.git ~/.tmux/plugins/tpm -git clone https://github.com/jreichmann/dotfiles.git ~/.dotfiles -ln -s ~/.dotfiles/.tmux.conf ~/.tmux.conf +# Set up redshift +ln -s ./redshift/redshift.conf ~/.config/redshift/redshift.conf + +# Set up gnupg things +mkdir -p ~/.gnupg +ln -s ./gnupg/gpg.conf ~/.gnupg/gpg.conf +ln -s ./gnupg/gpg-agent.conf ~/.gnupg/gpg-agent.conf +ln -s ./gnupg/sshcontrol ~/.gnupg/sshcontrol diff --git a/redshift/redshift.conf b/redshift/redshift.conf new file mode 100644 index 0000000..b411964 --- /dev/null +++ b/redshift/redshift.conf @@ -0,0 +1,8 @@ +[redshift] +location-provider=manual +temp-night=2500K + + +[manual] +lat=49.0091 +lon=8.3799 diff --git a/.tmux.conf b/tmux/tmux.conf similarity index 100% rename from .tmux.conf rename to tmux/tmux.conf