From 1424cc064f45c6ecaf798d6c38a7a8ac91b4b1a0 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 11 Nov 2019 22:14:20 +0100 Subject: [PATCH] Add syncthing config and update relevant paths --- .gitignore | 3 +- fish/.config/fish/config.fish | 8 +- openbox/.config/openbox/autostart | 8 +- openbox/.config/openbox/rc.xml | 2 +- syncthing/.config/syncthing/cert.pem | 11 ++ syncthing/.config/syncthing/config.xml | 214 +++++++++++++++++++++ syncthing/.config/syncthing/csrftokens.txt | 1 + syncthing/.config/syncthing/https-cert.pem | 11 ++ syncthing/.config/syncthing/https-key.pem | 6 + syncthing/.config/syncthing/key.pem | 6 + 10 files changed, 260 insertions(+), 10 deletions(-) create mode 100644 syncthing/.config/syncthing/cert.pem create mode 100644 syncthing/.config/syncthing/config.xml create mode 100644 syncthing/.config/syncthing/csrftokens.txt create mode 100644 syncthing/.config/syncthing/https-cert.pem create mode 100644 syncthing/.config/syncthing/https-key.pem create mode 100644 syncthing/.config/syncthing/key.pem diff --git a/.gitignore b/.gitignore index eb506ee..abf5083 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ deluge/.config/deluge/*.state deluge/.config/deluge/icons/ mpd/.config/mpd/mpdstate mpd/.config/mpd/mpd.pid -mpd/.config/mpd/mpd.db \ No newline at end of file +mpd/.config/mpd/mpd.db +syncthing/.config/syncthing/index-v0.14.0.db/ \ No newline at end of file diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index cee3b4c..76824d1 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -43,10 +43,10 @@ set PATH $PATH /home/coolneng/.scripts set -x FFF_COL1 3 set -x FFF_COL2 8 ## Favourites (keys 1-9) (dir or file) -set -x FFF_FAV1 /home/coolneng/Nextcloud/Documents/Uni -set -x FFF_FAV2 /home/coolneng/Nextcloud/Documents/Papers -set -x FFF_FAV3 /home/coolneng/Nextcloud/Documents/Books/Academic/ -set -x FFF_FAV4 /home/coolneng/Nextcloud/Documents/Education/ +set -x FFF_FAV1 /home/coolneng/Sync/Documents/Uni +set -x FFF_FAV2 /home/coolneng/Sync/Documents/Papers +set -x FFF_FAV3 /home/coolneng/Sync/Documents/Books/Academic/ +set -x FFF_FAV4 /home/coolneng/Sync/Documents/Education/ # Gnome Keyring if test -n "$DESKTOP_SESSION" diff --git a/openbox/.config/openbox/autostart b/openbox/.config/openbox/autostart index 15b3b9b..2695651 100755 --- a/openbox/.config/openbox/autostart +++ b/openbox/.config/openbox/autostart @@ -30,7 +30,7 @@ xrdb ~/.Xresources & urxvtd -q -f -o & ## KeepassXC -(sleep 2; bash -c "secret-tool lookup 'keepass' 'login' | keepassxc --pw-stdin ~/Nextcloud/Documents/IT/MDP.kbdx") & +(sleep 2; bash -c "secret-tool lookup 'keepass' 'login' | keepassxc --pw-stdin ~/Sync/Security/MDP.kbdx") & ## GPG (sleep 3; bash -c "secret-tool lookup 'gpg' 'login' | gpg2 --no-tty --pinentry-mode loopback --passphrase-fd 0 -d ~/.password-store/mail/uni.gpg") & @@ -48,7 +48,7 @@ urxvtd -q -f -o & (sleep 8; parcellite) & ## Tmux plugins -(sleep 9; ~/.tmux/plugins/tpm/bin/update_plugins all) +(sleep 9; ~/.tmux/plugins/tpm/bin/update_plugins all) & -## Owncloud -(sleep 10; owncloud) +## Syncthing +(sleep 10; syncthing -no-browser -home="/home/coolneng/.config/syncthing") diff --git a/openbox/.config/openbox/rc.xml b/openbox/.config/openbox/rc.xml index 82c3279..2a3b619 100755 --- a/openbox/.config/openbox/rc.xml +++ b/openbox/.config/openbox/rc.xml @@ -275,7 +275,7 @@ - scrot -e 'mv $f ~/Nextcloud/Photos/Screenshots' + scrot -e 'mv $f ~/Sync/Photos/Screenshots' diff --git a/syncthing/.config/syncthing/cert.pem b/syncthing/.config/syncthing/cert.pem new file mode 100644 index 0000000..ee08f57 --- /dev/null +++ b/syncthing/.config/syncthing/cert.pem @@ -0,0 +1,11 @@ +-----BEGIN CERTIFICATE----- +MIIBmTCCASCgAwIBAgIIUygphoUs06AwCgYIKoZIzj0EAwIwFDESMBAGA1UEAxMJ +c3luY3RoaW5nMB4XDTE5MTEwNzEyMzU0N1oXDTQ5MTIzMTIzNTk1OVowFDESMBAG +A1UEAxMJc3luY3RoaW5nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAENhJxlu9xeARi +HtB8sDRjv3+2PPuHSi3+IL28g4zYQZCdZy16Uo3AbIM8Pxxzowb06ug6Alm/H2bo +0PzL2RT9xIcGg/4PEacj8ZXEIteP9A668b87Emo9ZN0WZNOJLrM4oz8wPTAOBgNV +HQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1Ud +EwEB/wQCMAAwCgYIKoZIzj0EAwIDZwAwZAIwSBj7g6KjkpqxgzykkCHoIcGAr8+c +BreKUAtXuyBUofqfE7DE0EruZbBf5QeEyDGjAjBQ9d6EfNnEe1rYC5uCL0SjNahr +fpOK2pwSqMtCwk6m27wEq6bRCbYo4YothwKogh4= +-----END CERTIFICATE----- diff --git a/syncthing/.config/syncthing/config.xml b/syncthing/.config/syncthing/config.xml new file mode 100644 index 0000000..2e7631c --- /dev/null +++ b/syncthing/.config/syncthing/config.xml @@ -0,0 +1,214 @@ + + + basic + + + + 1 + + 0 + 0 + 0 + random + false + 0 + 0 + 10 + false + false + false + 25 + .stfolder + false + 0 + + + basic + + + 1 + + 0 + 0 + 0 + random + false + 0 + 0 + 10 + false + false + false + 25 + .stfolder + false + 0 + + + basic + + + + 1 + + 0 + 0 + 0 + random + false + 0 + 0 + 10 + false + false + false + 25 + .stfolder + false + 0 + + + basic + + + + 1 + + 0 + 0 + 0 + random + false + 0 + 0 + 10 + false + false + false + 25 + .stfolder + false + 0 + + + basic + + + + 1 + + 0 + 0 + 0 + random + false + 0 + 0 + 10 + false + false + false + 25 + .stfolder + false + 0 + + + basic + + + + 1 + + 0 + 0 + 0 + random + false + 0 + 0 + 10 + false + false + false + 25 + .stfolder + false + 0 + + +
dynamic
+ false + false + 0 + 0 + 0 +
+ +
dynamic
+ false + false + 0 + 0 + 0 +
+ +
tcp://coolneng.duckdns.org:22000
+ false + false + 0 + 0 + 0 +
+ +
127.0.0.1:8384
+ nKLejQcnxfGo56NJ4nevMayEFiTT5CHp + default +
+ + + default + default + true + true + 21027 + [ff12::8384]:21027 + 0 + 0 + 60 + true + 10 + true + true + 60 + 30 + 10 + -1 + 3 + + https://data.syncthing.net/newdata + false + 1800 + true + 12 + false + 24 + false + 5 + false + 1 + https://upgrades.syncthing.net/meta.json + false + 10 + 0 + ~/Sync + true + 0 + https://crash.syncthing.net/newcrash + true + 180 + 20 + default + auto + +
diff --git a/syncthing/.config/syncthing/csrftokens.txt b/syncthing/.config/syncthing/csrftokens.txt new file mode 100644 index 0000000..7005dfd --- /dev/null +++ b/syncthing/.config/syncthing/csrftokens.txt @@ -0,0 +1 @@ +JvvpJ3463aAAyDhMkNPL6nXyFRHb4MFg diff --git a/syncthing/.config/syncthing/https-cert.pem b/syncthing/.config/syncthing/https-cert.pem new file mode 100644 index 0000000..c45de4b --- /dev/null +++ b/syncthing/.config/syncthing/https-cert.pem @@ -0,0 +1,11 @@ +-----BEGIN CERTIFICATE----- +MIIBmTCCAR6gAwIBAgIIGvtVi8jCeIMwCgYIKoZIzj0EAwIwEzERMA8GA1UEAxMI +bW9ub2xpdGgwHhcNMTkxMTA3MTIzNTQ5WhcNNDkxMjMxMjM1OTU5WjATMREwDwYD +VQQDEwhtb25vbGl0aDB2MBAGByqGSM49AgEGBSuBBAAiA2IABJneK1nd6fTsolku +mUX/LSh8flyQtZnWcpigG8Gy0jKIMnvd1LrSiE7F80c+4pOptRBb0DKNYJRpQDhK +SjDR0C5l8q/qE7zQ39KC86yc364sKVYD2sslD8F7iNi7PuKbz6M/MD0wDgYDVR0P +AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB +Af8EAjAAMAoGCCqGSM49BAMCA2kAMGYCMQDSnENEk8ann4S6hTQ9eFolnnqQSoRC +MMf73flztwjNM0qBm3ZdVGyH1wXJD8JlJKYCMQCLVpncjY8nF+AUWdxWHudlwroC +qC+XGUSMiAZ+jK4RPYhyHqkfz3/WFuB3RWdn9f0= +-----END CERTIFICATE----- diff --git a/syncthing/.config/syncthing/https-key.pem b/syncthing/.config/syncthing/https-key.pem new file mode 100644 index 0000000..96dd834 --- /dev/null +++ b/syncthing/.config/syncthing/https-key.pem @@ -0,0 +1,6 @@ +-----BEGIN EC PRIVATE KEY----- +MIGkAgEBBDAc6MnRU0cI+DTZxuCFmT/hV2uDNRk/K2n6LVMLdE9zWygIfRuNhYqy +ZkZpqrSJmFegBwYFK4EEACKhZANiAASZ3itZ3en07KJZLplF/y0ofH5ckLWZ1nKY +oBvBstIyiDJ73dS60ohOxfNHPuKTqbUQW9AyjWCUaUA4Skow0dAuZfKv6hO80N/S +gvOsnN+uLClWA9rLJQ/Be4jYuz7im88= +-----END EC PRIVATE KEY----- diff --git a/syncthing/.config/syncthing/key.pem b/syncthing/.config/syncthing/key.pem new file mode 100644 index 0000000..b4bd261 --- /dev/null +++ b/syncthing/.config/syncthing/key.pem @@ -0,0 +1,6 @@ +-----BEGIN EC PRIVATE KEY----- +MIGkAgEBBDBUvXyZGcKqBdHt4ffX4/RCGM/BQqX4M7z98xmV1T9/nEy9EmDi/HoX +KzhBE0MLDrqgBwYFK4EEACKhZANiAAQ2EnGW73F4BGIe0HywNGO/f7Y8+4dKLf4g +vbyDjNhBkJ1nLXpSjcBsgzw/HHOjBvTq6DoCWb8fZujQ/MvZFP3EhwaD/g8RpyPx +lcQi14/0DrrxvzsSaj1k3RZk04kuszg= +-----END EC PRIVATE KEY-----