//go:build linux package remote import "os" // GetRemoteInfo 获取远程控制相关信息(Linux 平台仅主机名/IP/MAC) func GetRemoteInfo() Info { info := Info{} /*var status int status, _ = GetRadminServiceStatus() info.RadminState = status status, _ = GetVncServiceStatus() info.VncState = status status, _ = GetRdpServiceStatus() info.RdpState = status*/ /* var port int port, _ = GetRadminPort() info.RadminPort = port port, _ = GetRdpPort() info.RdpPort = port port, _ = GetVncPort() info.VncPort = port*/ hostname, _ := os.Hostname() info.Hostname = hostname info.IpAddr = getIPs() info.MacAddr = getMacAddrs() return info } // VncServerDefaultConfig 生成 TightVNC 服务端默认配置(Linux 未实现,返回空配置) func VncServerDefaultConfig(randPass bool) VncServerConfig { config := VncServerConfig{} return config } // VncClientDefaultConfig 生成 TightVNC 客户端默认配置(Linux 未实现,返回空配置) func VncClientDefaultConfig(randPass bool) VncServerConfig { config := VncServerConfig{} return config } // WriteVncServerConfig 写入 TightVNC 服务端配置(Linux 未实现,直接返回 nil) func WriteVncServerConfig(config VncServerConfig) error { return nil } // EnableSoftwareSASGeneration 启用软件SAS模拟输入 func EnableSoftwareSASGeneration() error { return nil } // EnableWinlogonDisableCAD 关闭 Ctrl + Alt + Del 组合键来登录 func EnableWinlogonDisableCAD() error { return nil } // EnableSystemDisableCAD 关闭 Ctrl + Alt + Del 组合键来登录 func EnableSystemDisableCAD() error { return nil }