From 73e765c92c50cafd21fe69d1f7096ecf1bb58272 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Tue, 15 Sep 2020 20:36:25 +0200 Subject: [PATCH] improved remote devel terminal. skip mosh for wireguard. --- .local/share/applications/tmux-devel.desktop | 10 ++++++++++ .local/share/applications/tmux-local.desktop | 14 ++++++-------- .local/share/applications/tmux-porky.desktop | 12 ------------ .ssh/config | 6 ++++-- 4 files changed, 20 insertions(+), 22 deletions(-) create mode 100644 .local/share/applications/tmux-devel.desktop delete mode 100644 .local/share/applications/tmux-porky.desktop diff --git a/.local/share/applications/tmux-devel.desktop b/.local/share/applications/tmux-devel.desktop new file mode 100644 index 0000000..e337f8d --- /dev/null +++ b/.local/share/applications/tmux-devel.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=tmux devel +GenericName=tmux-devel +StartupWMClass=tmux-devel +Type=Application +TryExec=kitty +Icon=kitty +Terminal=false +Categories=System;TerminalEmulator; +Exec=kitty --class=tmux-devel autossh -M21001 devel diff --git a/.local/share/applications/tmux-local.desktop b/.local/share/applications/tmux-local.desktop index ebe18bd..9df464a 100644 --- a/.local/share/applications/tmux-local.desktop +++ b/.local/share/applications/tmux-local.desktop @@ -1,12 +1,10 @@ [Desktop Entry] -Type=Application -TryExec=alacritty -Icon=Alacritty -Terminal=false -Categories=System;TerminalEmulator; - Name=tmux local GenericName=tmux-local +Type=Application +TryExec=kitty +Icon=kitty +Terminal=false +Categories=System;TerminalEmulator; StartupWMClass=tmux-local - -Exec=alacritty --class tmux-local -e tmux new-session -A -D -s 0 +Exec=kitty --class tmux-local -e tmux new-session -A -D -s 0 diff --git a/.local/share/applications/tmux-porky.desktop b/.local/share/applications/tmux-porky.desktop deleted file mode 100644 index 8fe13e8..0000000 --- a/.local/share/applications/tmux-porky.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -TryExec=/home/dln/bin/term-porky -Icon=Alacritty -Terminal=false -Categories=System;TerminalEmulator; - -Name=tmux porky -GenericName=tmux-porky -StartupWMClass=tmux-porky - -Exec=/home/dln/bin/term-porky diff --git a/.ssh/config b/.ssh/config index 052b978..5f2c30f 100644 --- a/.ssh/config +++ b/.ssh/config @@ -6,10 +6,12 @@ Host home Hostname 10.1.100.16 ForwardAgent no -Host home-dev +Host devel Hostname 10.1.100.16 +IdentityAgent ~/.ssh/ssh_auth_sock ForwardAgent yes ExitOnForwardFailure yes +RequestTty yes LocalForward 127.0.0.1:3000 127.0.0.1:3000 LocalForward 127.0.0.1:8000 127.0.0.1:8000 LocalForward 127.0.0.1:8080 127.0.0.1:8080 @@ -18,4 +20,4 @@ LocalForward 127.0.0.1:15000 127.0.0.1:15000 LocalForward 127.0.0.1:9876 127.0.0.1:9876 RemoteForward /run/user/1000/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra RemoteForward /run/user/1000/gnupg/S.gpg-agent.ssh /run/user/1000/gnupg/S.gpg-agent.ssh - +RemoteCommand /usr/bin/env LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 /usr/bin/tmux new-session -A -D -s 0