Add connections to ESRF machines
This commit is contained in:
parent
02c3bc0787
commit
ac89d46c5d
@ -20,7 +20,7 @@
|
|||||||
:END:
|
:END:
|
||||||
|
|
||||||
#+begin_src bash :tangle ~/.local/bin/remote-desktop
|
#+begin_src bash :tangle ~/.local/bin/remote-desktop
|
||||||
computer=$(echo -e 'RNICE\nPCDEHAEZE\nPCNASS1' | rofi -dmenu -no-custom -p 'Computer:' -l 20);
|
computer=$(echo -e 'WID21SPEEDGOAT1\nWID24SPEEDGOAT1\nPCMEL1\nRNICE\nPCDEHAEZE\nPCNASS1' | rofi -dmenu -no-custom -p 'Computer:' -l 20);
|
||||||
|
|
||||||
if [[ -z "$computer" ]]; then
|
if [[ -z "$computer" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
@ -33,7 +33,20 @@ if [ -z "$(timeout 1s dig +short proxy.esrf.fr.)" ]; then
|
|||||||
proxy_arg="/proxy:socks5://localhost:8080"
|
proxy_arg="/proxy:socks5://localhost:8080"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
xfreerdp $proxy_arg /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /wm-class:RDP_$computer /grab-keyboard /p:$(pass esrf.fr/dehaeze | sed -n 1p) /v:$computer.esrf.fr > /tmp/freerdp_${computer}.log 2>&1 &
|
case "$computer" in
|
||||||
|
"RNICE" | "PCDEHAEZE" | "PCNASS1")
|
||||||
|
xfreerdp $proxy_arg /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /wm-class:RDP_$computer /grab-keyboard /p:$(pass esrf.fr/dehaeze | sed -n 1p) /v:$computer.esrf.fr > /tmp/freerdp_${computer}.log 2>&1 & ;;
|
||||||
|
|
||||||
|
"PCMEL1")
|
||||||
|
xfreerdp $proxy_arg /u:OPPEL /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /wm-class:RDP_$computer /grab-keyboard /p:TonicPEL /v:$computer.esrf.fr > /tmp/freerdp_${computer}.log 2>&1 & ;;
|
||||||
|
|
||||||
|
"WID21SPEEDGOAT1")
|
||||||
|
xfreerdp $proxy_arg /u:opid21 /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /wm-class:RDP_$computer /grab-keyboard /p:tonic21 /v:$computer.esrf.fr > /tmp/freerdp_${computer}.log 2>&1 & ;;
|
||||||
|
|
||||||
|
"WID24SPEEDGOAT1")
|
||||||
|
xfreerdp $proxy_arg /u:opid24 /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /wm-class:RDP_$computer /grab-keyboard /p:tonic24 /v:$computer.esrf.fr > /tmp/freerdp_${computer}.log 2>&1 & ;;
|
||||||
|
|
||||||
|
esac
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* =mount-dir= - Mount/Unmout directories
|
* =mount-dir= - Mount/Unmout directories
|
||||||
|
Loading…
Reference in New Issue
Block a user