How to run Linux Remmina from the terminal?

8

2

I would like to bring up a Remmina remote desktop from the command line. I have installed remmina on Fedora 17 Linux.

I type the command remmina which prints up a GUI. It works correctly, I want to make a script which automatically brings up the remote desktop. But I can't find the command to pass a parameter to do it all in one command.

Is there a way to run remmina and automatically bring up a screen? How?

Eric Leschinski

Posted 2013-08-06T00:07:59.063

Reputation: 5 303

Answers

15

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.

Eric Leschinski

Posted 2013-08-06T00:07:59.063

Reputation: 5 303

3

In my case the config file was located at

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

Umair A.

Posted 2013-08-06T00:07:59.063

Reputation: 411

0

On Ubuntu 18.10 the location of configs is ~/.config/remmina

Vladimir Kondratyev

Posted 2013-08-06T00:07:59.063

Reputation: 109