wip
This commit is contained in:
25
README.md
25
README.md
@@ -184,6 +184,11 @@ Primary key fingerprint: 3E80 CA1A 8B89 F69C BA57 D98A 76A5 EF90 5444 9A5C
|
|||||||
- wait for nextcloud to complete syncronisation
|
- wait for nextcloud to complete syncronisation
|
||||||
- this will likely take time. how long depends on the internet speed and the amount of data stored with nextcloud.
|
- this will likely take time. how long depends on the internet speed and the amount of data stored with nextcloud.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DOCUMENT CRYPTOMATOR AND KEY UPDATES! AND/OR - CHANGE KEY UPDATES FROM NEXTCLOUD TO CRYPTOMATOR??? OR,,,
|
||||||
|
|
||||||
|
|
||||||
## step six :: post syncronisation tasks
|
## step six :: post syncronisation tasks
|
||||||
|
|
||||||
- `syncDirSetup.sh` (will set up `~/syncDir`)
|
- `syncDirSetup.sh` (will set up `~/syncDir`)
|
||||||
@@ -200,28 +205,28 @@ if the system runs nvidia, follow the steps in [nvidia.md](nvidia.md) to set up
|
|||||||
## step eight :: post installation tasks
|
## step eight :: post installation tasks
|
||||||
|
|
||||||
- **KITTEN**
|
- **KITTEN**
|
||||||
- `$ kitten themes 'falcon'`
|
- `$ kitten themes 'paul millr'`
|
||||||
- to list all themes: `$ kitten themes`
|
- to list all themes: `$ kitten themes`
|
||||||
|
- (search for `tropical` ➔ select `tropical neon` ➔ press `M` to modify kitten.conf and start using the theme)
|
||||||
- selected themes:
|
- selected themes:
|
||||||
- `kitten themes '1984 dark'`
|
- dark background
|
||||||
- `kitten themes 'adwaita darker'`
|
- `kitten themes 'adwaita darker'`
|
||||||
|
- `kitten themes 'encom'`
|
||||||
|
- `kitten themes 'hachiko'`
|
||||||
|
- `kitten themes 'paul millr'`
|
||||||
|
- `kitten themes 'vibrant ink'`
|
||||||
|
- `kitten themes 'wez'`
|
||||||
|
- other dark themes
|
||||||
|
- `kitten themes '1984 dark'`
|
||||||
- `kitten themes 'box'`
|
- `kitten themes 'box'`
|
||||||
- `kitten themes 'copland os'`
|
- `kitten themes 'copland os'`
|
||||||
- `kitten themes 'cyberpunk neon'`
|
- `kitten themes 'cyberpunk neon'`
|
||||||
- `kitten themes 'default'`
|
- `kitten themes 'default'`
|
||||||
- `kitten themes 'encom'`
|
|
||||||
- `kitten themes 'falcon'`
|
- `kitten themes 'falcon'`
|
||||||
- `kitten themes 'hachiko'`
|
|
||||||
- `kitten themes 'neowave'`
|
- `kitten themes 'neowave'`
|
||||||
- `kitten themes 'papercolor dark'`
|
- `kitten themes 'papercolor dark'`
|
||||||
- `kitten themes 'paul millr'`
|
|
||||||
- `kitten themes 'tropical neon'`
|
- `kitten themes 'tropical neon'`
|
||||||
- `kitten themes 'ubuntu'`
|
- `kitten themes 'ubuntu'`
|
||||||
- `kitten themes 'vibrant ink'`
|
|
||||||
- `kitten themes 'wez'`
|
|
||||||
|
|
||||||
|
|
||||||
- (search for `tropical` ➔ select `tropical neon` ➔ press `M` to modify kitten.conf and start using the theme)
|
|
||||||
- **VSCODIUM**
|
- **VSCODIUM**
|
||||||
- **local sync**
|
- **local sync**
|
||||||
- open extensions and search for `local sync`
|
- open extensions and search for `local sync`
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ aur:hyprmon-bin # multi-monitor profile manager
|
|||||||
#aur:canon-pixma-mg2500-complete # stand alone driver set (print and scan) for Canon Pixma MG2500 series
|
#aur:canon-pixma-mg2500-complete # stand alone driver set (print and scan) for Canon Pixma MG2500 series
|
||||||
aur:cryptomator-bin # encryption tool | need to decrypt ssh vault in the cloud
|
aur:cryptomator-bin # encryption tool | need to decrypt ssh vault in the cloud
|
||||||
#aur:ctpv-git # image previewer for lf
|
#aur:ctpv-git # image previewer for lf
|
||||||
#aur:dragon-drop # simple drag-and-drop source/sink
|
aur:dragon-drop # simple drag-and-drop source/sink
|
||||||
#aur:figlet-fonts # fonts for figlet - ascii
|
#aur:figlet-fonts # fonts for figlet - ascii
|
||||||
#aur:figlet-fonts-extra # extra fonts for figlet - ascii
|
#aur:figlet-fonts-extra # extra fonts for figlet - ascii
|
||||||
aur:gitkraken # git client
|
aur:gitkraken # git client
|
||||||
@@ -128,10 +128,10 @@ pcmanfm # file manager
|
|||||||
psensor # graphical hardware temperature monitoring application
|
psensor # graphical hardware temperature monitoring application
|
||||||
#reaper # daw
|
#reaper # daw
|
||||||
#redshift # colour temperature adjustment tool (not maintained)
|
#redshift # colour temperature adjustment tool (not maintained)
|
||||||
#rsync # file copying tool
|
rsync # file copying tool
|
||||||
#samba # access samba shares (smb://) and cifs mounts (cifs-utils)
|
samba # access samba shares (smb://) and cifs mounts (cifs-utils)
|
||||||
#scrot # screenshot cli utility
|
#scrot # screenshot cli utility
|
||||||
#seahorse # gui for viewing keyring entries / managing pgp keys
|
seahorse # gui for viewing keyring entries / managing pgp keys
|
||||||
#shotcut # video editor
|
#shotcut # video editor
|
||||||
#sigil # multi-platform EPUB2/EPUB3 ebook editor
|
#sigil # multi-platform EPUB2/EPUB3 ebook editor
|
||||||
#signal-desktop # signal messenger
|
#signal-desktop # signal messenger
|
||||||
|
|||||||
@@ -28,13 +28,13 @@ alias azurevpnclient="/opt/microsoft/microsoft-azurevpnclient/microsoft-azurevpn
|
|||||||
|
|
||||||
alias cp="cp -i" # confirm before overwriting something
|
alias cp="cp -i" # confirm before overwriting something
|
||||||
alias ct="sudo ct"
|
alias ct="sudo ct"
|
||||||
#alias decrypt="gpg --decrypt"
|
alias decrypt="gpg --decrypt"
|
||||||
alias df='df -h' # human-readable sizes
|
alias df='df -h' # human-readable sizes
|
||||||
alias diskusage="ncdu -x"
|
alias diskusage="ncdu -x"
|
||||||
alias dragon="dragon-drop --and-exit --all --print-path"
|
alias dragon="dragon-drop --and-exit --all --print-path"
|
||||||
alias du="du --summarize --human-readable"
|
alias du="du --summarize --human-readable"
|
||||||
alias dus="du --summarize --human-readable * | sort -h"
|
alias dus="du --summarize --human-readable * | sort -h"
|
||||||
#alias encrypt="gpg --encrypt --sign --recipient frode@klevstul.com"
|
alias encrypt="gpg --encrypt --sign --recipient frode@klevstul.com"
|
||||||
alias faf="find . -type f -iname" # faf (find a file)
|
alias faf="find . -type f -iname" # faf (find a file)
|
||||||
alias fif="grep -rnw . -e" # fif (find in file) | https://stackoverflow.com/questions/16956810/find-all-files-containing-a-specific-text-string-on-linux
|
alias fif="grep -rnw . -e" # fif (find in file) | https://stackoverflow.com/questions/16956810/find-all-files-containing-a-specific-text-string-on-linux
|
||||||
alias gparted="sudo gparted"
|
alias gparted="sudo gparted"
|
||||||
|
|||||||
34
dots/bin/cryptomatorBackup.sh
Executable file
34
dots/bin/cryptomatorBackup.sh
Executable file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# klevstul :: 26.02.24
|
||||||
|
|
||||||
|
|
||||||
|
# make sure cryptLocal is mounted and available
|
||||||
|
|
||||||
|
src_dir=/home/poq/.local/share/Cryptomator/mnt/cryptLocal
|
||||||
|
tmp_dir=/tmp
|
||||||
|
trg_dir=/home/poq/syncDir/0_downloads
|
||||||
|
|
||||||
|
if ! [ -d "$src_dir" ]
|
||||||
|
then
|
||||||
|
echo "missing source directory:"
|
||||||
|
echo "$src_dir"
|
||||||
|
echo "is the cryptLocal vault mounted?"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
# zip the content
|
||||||
|
timestamp=$(date +%y%m%d)
|
||||||
|
zip_file=${tmp_dir}/${timestamp}_cryptLocal.zip
|
||||||
|
zip -r "${zip_file}" "${trg_dir}/"
|
||||||
|
|
||||||
|
# gpg encrypt the content
|
||||||
|
gpg --encrypt --sign --recipient frode@klevstul.com "${zip_file}"
|
||||||
|
|
||||||
|
# delete the .zip file
|
||||||
|
srm -v "${zip_file}"
|
||||||
|
|
||||||
|
# move the .gpg file to the target dir
|
||||||
|
mv "${zip_file}.gpg" "${trg_dir}/"
|
||||||
|
|
||||||
|
ls -al "${trg_dir}/"
|
||||||
@@ -1 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# klevstul :: 26.02.23
|
||||||
|
|
||||||
start-hyprland &
|
start-hyprland &
|
||||||
|
|||||||
@@ -2,19 +2,30 @@
|
|||||||
|
|
||||||
# klevstul :: 24.06
|
# klevstul :: 24.06
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------------------------------------------------
|
||||||
# how to backup gpg:
|
# how to backup gpg:
|
||||||
|
#
|
||||||
|
# new method:
|
||||||
|
# cp /home/poq/.gnupg/
|
||||||
|
# gpg --armor --export frode@klevstul.com > /home/poq/.local/share/Cryptomator/mnt/cryptLocal/content/keys/openPgp/.gnupg/251110_frodeKlevstul_publicKey.asc
|
||||||
|
# gpg --armor --export-secret-keys frode@klevstul.com > /home/poq/.local/share/Cryptomator/mnt/cryptLocal/content/keys/openPgp/.gnupg/251110_frodeKlevstul_privateKey.asc
|
||||||
|
#
|
||||||
|
# old method:
|
||||||
# gpg --export --export-options backup --output public.gpg frode@thisworld.is
|
# gpg --export --export-options backup --output public.gpg frode@thisworld.is
|
||||||
# gpg --export-secret-keys --export-options backup --output private.gpg frode@thisworld.is
|
# gpg --export-secret-keys --export-options backup --output private.gpg frode@thisworld.is
|
||||||
# ref: https://www.howtogeek.com/816878/how-to-back-up-and-restore-gpg-keys-on-linux/
|
# ref: https://www.howtogeek.com/816878/how-to-back-up-and-restore-gpg-keys-on-linux/
|
||||||
|
# ---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
this_file_name=`basename "$0"`
|
this_file_name=`basename "$0"`
|
||||||
echo "$this_file_name"
|
echo "$this_file_name"
|
||||||
|
|
||||||
|
echo "please, remember the hint: poq.l2"
|
||||||
|
|
||||||
# location of ssh keys
|
# location of ssh keys
|
||||||
syncdir_env_var=SYNCDIR_${HOSTNAME}
|
syncdir_env_var=SYNCDIR_${HOSTNAME}
|
||||||
src_gnupg_dir=${!syncdir_env_var}/secrets/gnupg
|
src_gnupg_dir=${!syncdir_env_var}/secrets/gnupg
|
||||||
|
|
||||||
gpg --import ${src_gnupg_dir}/public.gpg
|
gpg --import ${src_gnupg_dir}/*publicKey.asc
|
||||||
gpg --import ${src_gnupg_dir}/private.gpg
|
gpg --import ${src_gnupg_dir}/*privateKey.asc
|
||||||
|
|
||||||
gpg --list-secret-keys --keyid-format LONG
|
gpg --list-secret-keys --keyid-format LONG
|
||||||
|
|||||||
34
dots/bin/obsolete/obsolete.updateLicences.sh
Executable file
34
dots/bin/obsolete/obsolete.updateLicences.sh
Executable file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
# what: update licences
|
||||||
|
# author: njs ➔ fk
|
||||||
|
# started: apr 2022
|
||||||
|
#
|
||||||
|
# requires: n/a
|
||||||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
if [ "$EUID" -eq 0 ]
|
||||||
|
then echo "error: do not run as 'root'"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
src_dir=/mnt/nas/cb/software/licences
|
||||||
|
trg_dir=/home/poq/.local/share/Cryptomator/mnt/cryptLocal/content/licences
|
||||||
|
|
||||||
|
if ! [ -d "$src_dir" ]
|
||||||
|
then
|
||||||
|
echo "missing source directory:"
|
||||||
|
echo "$src_dir"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [ -d "$trg_dir" ]
|
||||||
|
then
|
||||||
|
echo "missing target directory:"
|
||||||
|
echo "$trg_dir"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo copying files from $src_dir to $trg_dir...
|
||||||
|
cp $src_dir/*.txt $trg_dir/
|
||||||
33
dots/bin/pushToCryptCloud.sh
Executable file
33
dots/bin/pushToCryptCloud.sh
Executable file
@@ -0,0 +1,33 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# klevstul :: push content from cryptLocal to cryptCloud (cryptomator vaults) :: apr 2022
|
||||||
|
|
||||||
|
# note: both vaults must be mounted before running this script
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$EUID" -eq 0 ]
|
||||||
|
then echo "error: do not run as 'root'"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
src_dir=/home/poq/.local/share/Cryptomator/mnt/cryptLocal/content
|
||||||
|
trg_dir=/home/poq/.local/share/Cryptomator/mnt/cryptCloud/
|
||||||
|
|
||||||
|
if ! [ -d "$src_dir" ]
|
||||||
|
then
|
||||||
|
echo "missing source directory:"
|
||||||
|
echo "$src_dir"
|
||||||
|
echo "has something happened to the 'content/' directory?"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [ -d "${trg_dir}/content" ]
|
||||||
|
then
|
||||||
|
echo "missing target directory:"
|
||||||
|
echo "$trg_dir"
|
||||||
|
echo "is the cryptCloud vault unlocked?"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo copying files from $src_dir to $trg_dir...
|
||||||
|
rsync -v -r -a --delete $src_dir $trg_dir
|
||||||
@@ -1,10 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# : klevstul : start miscellanous application : 25.12.28
|
# klevstul :: start miscellanous application :: 25.12.28
|
||||||
|
|
||||||
# note: i was unable to automatically start these programs from startup_auto.sh, so hence i have created
|
|
||||||
# this file, for manually running it, and starting misc programs.
|
|
||||||
# -----
|
|
||||||
|
|
||||||
notify-send "<< startup.sh >>"
|
notify-send "<< startup.sh >>"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# klevstul :: n/a
|
||||||
|
|
||||||
|
|
||||||
# https://docs.python.org/3/library/http.server.html
|
# https://docs.python.org/3/library/http.server.html
|
||||||
|
|
||||||
python3 -m http.server \
|
python3 -m http.server \
|
||||||
|
|||||||
Reference in New Issue
Block a user