浏览代码

Fixed remote office script

master
haemka 3 年前
父节点
当前提交
e7840ebea6
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      remoteoffice.sh

+ 4
- 0
remoteoffice.sh 查看文件

@@ -1,5 +1,7 @@
#!/bin/sh

set -x

# VPN
NMCONN="49088a1e-18c2-48aa-a664-f212eb83a727"
# RDP
@@ -10,6 +12,8 @@ USER="$(pass show Work/AD-LOGIN | awk '/user:/ {print $2}')"
REMOTE="$(pass show Work/AD-LOGIN | awk '/remote:/ {print $2}')"

rdp() {
# resolve REMOTE to IPv4 before connecting in order to avoid IPv6 usage
REMOTE=$(dig ${REMOTE} A +short)
# alternative to "dynamic-resolution" is "smart-sizing"
xfreerdp /network:lan /gdi:hw +glyph-cache +fonts +aero \
/bpp:32 /size:${DEF_RESOLUTION} /dynamic-resolution \


正在加载...
取消
保存