Как запустить Linux Remmina из терминала?

47999
Eric Leschinski

Я хотел бы вызвать удаленный рабочий стол Remmina из командной строки. Я установил remmina на Fedora 17 Linux.

Я набираю команду, remminaкоторая печатает графический интерфейс. Он работает правильно, я хочу сделать скрипт, который автоматически вызывает удаленный рабочий стол. Но я не могу найти команду для передачи параметра, чтобы сделать все это в одной команде.

Есть ли способ запустить remmina и автоматически вызвать экран? Как?

7

2 ответа на вопрос

13
Eric Leschinski

You have to create a remmina config file to specify connection parameters.

[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 

Create a remmina configuration file

  1. Run the command remmina from a user and press the button to "create a new desktop file".
  2. Set up that configuration file so you can connect to it through the GUI.
  3. Save it and quit.
  4. Look in your user directory. In my case /home/el/.remmina/ inside there you will find a something.remmina file. That is your configuration file.
  5. From the terminal, execute this:

    remmina -c /home/el/.remmina/1375746771949.remmina 
  6. That should have brought up your desktop connection.

Contents of my configuration file:

[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 ~ 

Then I can create a little bash script that calls it up:

remmina -c /home/el/.remmina/1375746771949.remmina 

Then hook it onto my desktop so it brings up the other screen on a button click.

0
Umair Ashraf

В моем случае файл конфигурации был расположен в

./.local/share/remmina/1540111887455.remmina 

Похожие вопросы