如何从终端运行 Linux Remmina?

Eri*_*ski 21 rdesktop fedora-17 remmina

我想从命令行调出 Remmina 远程桌面。我已经在 Fedora 17 Linux 上安装了 remmina。

我键入remmina打印 GUI的命令。它工作正常,我想制作一个自动启动远程桌面的脚本。但是我找不到传递参数以在一个命令中完成所有操作的命令。

有没有办法运行remmina并自动调出屏幕?如何?

Eri*_*ski 28

您必须创建一个 remmina 配置文件来指定连接参数。

[el@rosewill bin ]$ remmina -?            
Usage:                                
  remmina [OPTION...] - The GTK+ Remote Desktop Client   

Help Options:                                   
  -h, --help           Show help options        

Application Options:        
  -a, --about          Show about dialog
  -c, --connect=F      Connect to a .remmina file F
  -e, --edit=F         Edit a .remmina file F
  -n, --new            Create a new connection profile
  -p, --pref           Show preference dialog
  -x, --plugin=P       Execute plugin P
  -q, --quit           Quit the application
  -s, --server=S       Use default server name S
  -t, --protocol=T     Use default protocol T
  -i, --icon           Start as tray icon 
Run Code Online (Sandbox Code Playgroud)

创建remmina配置文件

  1. 运行remmina来自用户的命令并按下按钮“创建一个新的桌面文件”。
  2. 设置该配置文件,以便您可以通过 GUI 连接到它。
  3. 保存并退出。
  4. 查看您的用户目录。在我的情况下/home/el/.remmina/,你会在里面找到一个something.remmina文件。那是你的配置文件。
  5. 从终端执行以下命令:

    remmina -c /home/el/.remmina/1375746771949.remmina
    
    Run Code Online (Sandbox Code Playgroud)
  6. 那应该已经启动了您的桌面连接。

我的配置文件的内容:

[remmina]
disableclipboard=0
ssh_auth=0
clientname=
quality=0
ssh_charset=
ssh_privatekey=
console=0
resolution=1800x900
group=
password=supersecretpassword==
name=HostNameZeusCannon
ssh_loopback=0
shareprinter=0
ssh_username=
ssh_server=
security=
protocol=RDP
execpath=
sound=off
exec=
ssh_enabled=0
username=myusername@gmail.com
sharefolder=
domain=
server=192.168.13.106
colordepth=32
window_maximize=0
window_height=967
viewmode=1
window_width=1812
~                  
Run Code Online (Sandbox Code Playgroud)

然后我可以创建一个调用它的小 bash 脚本:

remmina -c /home/el/.remmina/1375746771949.remmina
Run Code Online (Sandbox Code Playgroud)

然后将它挂在我的桌面上,这样它就可以在单击按钮时显示另一个屏幕。

  • 啊,天哪,这是 8 年前的 Fedora 8 吗?我做这件事的电脑在地窖里毫无生气。从那以后我就转向了 nomachine 软件。 (2认同)