wip
This commit is contained in:
0
dots/archinstall/t470p/options.sh
Normal file → Executable file
0
dots/archinstall/t470p/options.sh
Normal file → Executable file
0
dots/archinstall/tuxwarrior/options.sh
Normal file → Executable file
0
dots/archinstall/tuxwarrior/options.sh
Normal file → Executable file
@@ -57,8 +57,8 @@ alias quantumfix="pw-metadata -n settings 0 clock.force-quantum 1024"
|
||||
alias sb="source ~/.bashrc"
|
||||
alias sbr="source /home/poq/syncDir/gitRepos/gi.op.fo/lnx-arch/dots/bash/.bashrc" # source bash (from) repo
|
||||
alias sizeInBytes="stat -c %s"
|
||||
alias ssh_weba_r="ssh -t root@178.156.192.201 -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
||||
alias ssh_weba_u="ssh -t usr@178.156.192.201 -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
||||
alias ssh_weba_r="ssh -t root@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
||||
alias ssh_weba_u="ssh -t usr@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
||||
alias starwars="telnet towel.blinkenlights.nl"
|
||||
alias tp-empty="trash-empty"
|
||||
alias tp-list="tree ~/.local/share/Trash/"
|
||||
@@ -66,7 +66,7 @@ alias tp-restore="trash-restore"
|
||||
alias tp="tp.sh"
|
||||
alias tree="tree --du -h"
|
||||
alias unimatrix="unimatrix.py" # terminal idle "screensaver"
|
||||
alias weba-connect="ssh -t root@178.156.192.201 -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
||||
#alias weba-connect="ssh -t root@178.156.192.201 -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
||||
|
||||
# app images
|
||||
#alias dbgate="/home/poq/syncDir/quick/swas/installationFiles/dbGate/dbgate-latest.AppImage"
|
||||
|
||||
0
dots/bin/auto_startup.sh
Normal file → Executable file
0
dots/bin/auto_startup.sh
Normal file → Executable file
0
dots/bin/azurevpnclient_GLib-GIO-CRITICAL_fix.sh
Normal file → Executable file
0
dots/bin/azurevpnclient_GLib-GIO-CRITICAL_fix.sh
Normal file → Executable file
0
dots/bin/chmodAllSh.sh
Normal file → Executable file
0
dots/bin/chmodAllSh.sh
Normal file → Executable file
61
dots/bin/deploySshKeys.sh
Normal file → Executable file
61
dots/bin/deploySshKeys.sh
Normal file → Executable file
@@ -22,32 +22,45 @@ if ! [[ -d "$trg_ssh_dir" ]]; then
|
||||
mkdir -p ${trg_ssh_dir}
|
||||
fi
|
||||
|
||||
if ! [[ -f ${trg_ssh_dir}/*.pub ]]; then
|
||||
echo "deploy id_rsa.pub"
|
||||
cp ${src_ssh_dir}/*.pub ${trg_ssh_dir}
|
||||
else
|
||||
files=$(shopt -s nullglob dotglob; echo ${trg_ssh_dir}/*.pub)
|
||||
if (( ${#files} ))
|
||||
then
|
||||
echo "*.pub already exist in ${trg_ssh_dir}"
|
||||
else
|
||||
echo "deploy .pub file"
|
||||
cp ${src_ssh_dir}/*.pub ${trg_ssh_dir}
|
||||
fi
|
||||
|
||||
# if ! [[ -f ${trg_ssh_dir}/id_rsa.gpg ]]; then
|
||||
# echo "deploy id_rsa.gpg"
|
||||
# cp ${src_ssh_dir}/id_rsa.gpg ${trg_ssh_dir}
|
||||
# else
|
||||
# echo "id_rsa.gpg already exist in ${trg_ssh_dir}"
|
||||
# fi
|
||||
#
|
||||
# echo "do you want to decrypt id_rsa.gpg? (y/n)"
|
||||
# read user_input
|
||||
#
|
||||
# if [[ ${user_input} == "y" ]]; then
|
||||
# echo "yes"
|
||||
# echo "please, remember the hint: poq.l2"
|
||||
# gpg -d ${trg_ssh_dir}/id_rsa.gpg > ${trg_ssh_dir}/id_rsa
|
||||
# chmod 0600 ${trg_ssh_dir}/id_rsa # id_rsa can not be accessible by other users
|
||||
# else
|
||||
# echo "no worries. you can manually decrypt the file, if needed:"
|
||||
# echo "gpg -d id_rsa.gpg > id_rsa"
|
||||
# fi
|
||||
#
|
||||
files=$(shopt -s nullglob dotglob; echo ${trg_ssh_dir}/*.gpg)
|
||||
if (( ${#files} ))
|
||||
then
|
||||
echo "*.gpg already exist in ${trg_ssh_dir}"
|
||||
else
|
||||
echo "deploy .gpg file"
|
||||
cp ${src_ssh_dir}/*.gpg ${trg_ssh_dir}
|
||||
fi
|
||||
|
||||
echo "do you want to decrypt *.gpg? (y/n)"
|
||||
read user_input
|
||||
|
||||
if [[ ${user_input} == "y" ]]; then
|
||||
echo "yes"
|
||||
echo "please, remember the hint: poq.l2"
|
||||
|
||||
for file in ${src_ssh_dir}/*.gpg; do
|
||||
echo "processing '$file'"
|
||||
|
||||
filename="${file##*/}" # get basename
|
||||
filename="${filename%.*}" # remove extension
|
||||
|
||||
gpg -d ${trg_ssh_dir}/${filename}.gpg > ${trg_ssh_dir}/${filename}
|
||||
chmod 0600 ${trg_ssh_dir}/${filename} # id_rsa can not be accessible by other users
|
||||
done
|
||||
|
||||
else
|
||||
echo "no worries. you can manually decrypt the file, if needed. example command:"
|
||||
echo "gpg -d id_rsa.gpg > id_rsa"
|
||||
fi
|
||||
|
||||
echo "${trg_ssh_dir}:"
|
||||
ls -al ${trg_ssh_dir}
|
||||
|
||||
0
dots/bin/dragin.sh
Normal file → Executable file
0
dots/bin/dragin.sh
Normal file → Executable file
0
dots/bin/extract.sh
Normal file → Executable file
0
dots/bin/extract.sh
Normal file → Executable file
0
dots/bin/figlets.sh
Normal file → Executable file
0
dots/bin/figlets.sh
Normal file → Executable file
0
dots/bin/gitReposSoftlinker.sh
Normal file → Executable file
0
dots/bin/gitReposSoftlinker.sh
Normal file → Executable file
0
dots/bin/importGnupgKeys.sh
Normal file → Executable file
0
dots/bin/importGnupgKeys.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.i3lock_fk.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.i3lock_fk.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.lfMultiSelectHandler.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.lfMultiSelectHandler.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.lordOfTheRing.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.lordOfTheRing.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.mountDownloadsDir.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.mountDownloadsDir.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.pCloudSynologyDriveRestarter.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.pCloudSynologyDriveRestarter.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.quick_pgDatadirChownSwitch.sh
Normal file → Executable file
0
dots/bin/obsolete/obsolete.quick_pgDatadirChownSwitch.sh
Normal file → Executable file
0
dots/bin/startup.sh
Normal file → Executable file
0
dots/bin/startup.sh
Normal file → Executable file
0
dots/bin/syncDirSetup.sh
Normal file → Executable file
0
dots/bin/syncDirSetup.sh
Normal file → Executable file
0
dots/bin/toilets.sh
Normal file → Executable file
0
dots/bin/toilets.sh
Normal file → Executable file
0
dots/bin/tp.sh
Normal file → Executable file
0
dots/bin/tp.sh
Normal file → Executable file
0
dots/bin/webserver.sh
Normal file → Executable file
0
dots/bin/webserver.sh
Normal file → Executable file
@@ -8,3 +8,7 @@
|
||||
Host quickSilver
|
||||
HostName 46.62.245.126
|
||||
IdentityFile ~/.ssh/251110_quickSystems
|
||||
|
||||
Host weba
|
||||
HostName 178.156.192.201
|
||||
IdentityFile ~/.ssh/251110_ed25519_klevstul
|
||||
|
||||
0
obsolete/scripts/99_deploy.wHyprland.sh
Normal file → Executable file
0
obsolete/scripts/99_deploy.wHyprland.sh
Normal file → Executable file
0
scripts/990_comment_add_remove.sh
Normal file → Executable file
0
scripts/990_comment_add_remove.sh
Normal file → Executable file
0
scripts/990_key_value_modifier.sh
Normal file → Executable file
0
scripts/990_key_value_modifier.sh
Normal file → Executable file
0
scripts/99_deploy.sh
Normal file → Executable file
0
scripts/99_deploy.sh
Normal file → Executable file
0
scripts/99_software.sh
Normal file → Executable file
0
scripts/99_software.sh
Normal file → Executable file
0
scripts/99_yay.sh
Normal file → Executable file
0
scripts/99_yay.sh
Normal file → Executable file
0
scripts/archinstall_config_download.sh
Normal file → Executable file
0
scripts/archinstall_config_download.sh
Normal file → Executable file
0
scripts/ct.sh
Normal file → Executable file
0
scripts/ct.sh
Normal file → Executable file
0
scripts/ctsetup.sh
Normal file → Executable file
0
scripts/ctsetup.sh
Normal file → Executable file
0
scripts/obsolete/260224.99_deploy.sh
Normal file → Executable file
0
scripts/obsolete/260224.99_deploy.sh
Normal file → Executable file
Reference in New Issue
Block a user