aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zshrc10
-rw-r--r--postit1
-rwxr-xr-xzfs/export.sh3
-rwxr-xr-xzfs/import.sh12
4 files changed, 21 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc
index 85aec32..b1a056e 100644
--- a/.zshrc
+++ b/.zshrc
@@ -24,6 +24,7 @@ alias w3m="torsocks /home/devi/w3m/w3m -graph"
alias rm="rm -I --one-file-system --preserve-root=all"
alias vv="vim"
alias ls="exa"
+alias l="ls"
# alias ls="ls --color=auto"
alias la="exa -a"
# alias la="ls -A"
@@ -155,10 +156,10 @@ alias zgit="proxychains4 git"
alias zssh="proxychains4 ssh"
alias zscp="proxychains4 scp"
alias socks5z="ssh -N -D 9998 -o ExitOnForwardFailure=yes -l pi 192.168.1.108"
-alias socks5ir="ssh -N -D 9997 -o ExitOnForwardFailure=yes -l ubuntu -p 1022 terminaldweller.com"
-alias socks5vpn1="ssh -N -D 9999 -o ExitOnForwardFailure=yes -l rooot 145.239.165.137"
-alias socks5vpn2="ssh -N -D 9996 -o ExitOnForwardFailure=yes -l rooot -p 1022 192.99.102.52"
-alias socks5vpn3="ssh -N -D 9995 -o ExitOnForwardFailure=yes -l root -p 2022 185.112.147.110"
+alias socks5ir="autossh -M 0 -N -D 9997 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 1022 terminaldweller.com"
+alias socks5vpn1="autossh -M 0 -N -D 9999 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l rooot 145.239.165.137"
+alias socks5vpn2="autossh -M 0 -N -D 9996 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l rooot -p 1022 192.99.102.52"
+alias socks5vpn3="autossh -M 0 -N -D 9995 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l root -p 2022 185.112.147.110"
alias cloud_one="ssh 130.185.121.80 -l ubuntu -p 1022"
alias zharf_server="zssh 192.168.12.5 -l farzad"
alias k9sskin="vim ~/scripts/.k9s/skin.yml"
@@ -317,7 +318,6 @@ backup_home(){
rsync -rlptgoDAXHv \
--info=PROGRESS2,MOUNT2 \
--exclude-from=/var/tmp/ignorelist \
- --exclude="Downloads" \
--exclude="storage" \
--exclude="sambashare" \
/home/devi/ \
diff --git a/postit b/postit
index 465d326..0d5bf55 100644
--- a/postit
+++ b/postit
@@ -36,3 +36,4 @@ fc-list : family style
https://smallpdf.com/jpg-to-pdf
cat /home/devi/.clip_history | dmenu -l 10 | xsel -ib
git worktree add -b hotfix ~/code/hotfix trunk
+sudo mount -t cifs -o user=pi4,vers=2.0,domain=MSHOME //192.168.1.200/disk1 /home/devi/sambashare
diff --git a/zfs/export.sh b/zfs/export.sh
new file mode 100755
index 0000000..7110d69
--- /dev/null
+++ b/zfs/export.sh
@@ -0,0 +1,3 @@
+#/bin/sh
+sudo umount -n /mnt/{dev/pts,dev,sys,proc}
+sudo zpool export zroot
diff --git a/zfs/import.sh b/zfs/import.sh
new file mode 100755
index 0000000..4181aa9
--- /dev/null
+++ b/zfs/import.sh
@@ -0,0 +1,12 @@
+#/bin/sh
+
+sudo zpool import -N -R /mnt zroot
+sudo zfs load-key -L prompt zroot
+sudo zfs mount zroot/ROOT/void
+sudo zfs mount zroot/home
+mount | grep mnt
+sudo mount -t proc proc /mnt/proc
+sudo mount -t sysfs sys /mnt/sys
+sudo mount -B /dev /mnt/dev
+sudo mount -t devpts pts /mnt/dev/pts
+sudo chroot /mnt /bin/bash