Linux запустить rdp файл

Используя экспортированный Windows файл «.rdp» из Ubuntu

Я получил этот «.rdp» файл remoteAPP с работы, который позволяет мне запускать определенное приложение с сервера терминалов, я могу легко открыть его с помощью двойного щелчка в Windows, есть ли способы открыть этот тип файлов из Ubuntu?

Вы можете использовать Remmina , приложение по умолчанию для удаленного рабочего стола в Ubuntu, начиная с версии 11.04.

В главном меню Remmina выберите Сервис -> Импорт и выберите свой файл .rdp. Он будет импортирован и добавлен в ваши сохраненные соединения в Remmina, и вы сможете использовать его в любое время при запуске Remmina.

Могу ли я использовать Remmina для открытия подключений MacInCloud в Ubuntu? Я просто хочу дважды щелкнуть по файлу rdp, как в Windows.

С терминала у меня это работало:

remmina -c Downloads/somemachine.rdp 

Справка командной строки говорит:

$ remmina --help . -c, --connect=FILE Connect to a .remmina file 

Старые версии remmina не понимают строки administrative session:i:1 в файлах, создаваемых порталом Azure, поэтому вам нужно обновить remmina до более новой версии, закомментировав эту строку в файле (префикс с # работами).

Remmina работает на Linux Mint 17.3 (на основе Ubuntu 14.04)

однако я не мог заставить его работать напрямую с файлом .rdp. Ни через импорт, ни за двойной клик.

что на самом деле работало нормально было:

открываем файл .rdp с помощью texteditor. Скопируйте имя сервера и имя шлюза в remmina.

редактировать: это также избавляет меня от необходимости загружать файл .rdp, искать его на моем компьютере и т. д.

Читайте также:  my chart

Перетащите файл rdp во встроенное приложение Remmima. Выберите соединение и измените данные, такие как пароль. Подключи это. Должно работать нормально.

Я использую KDE, поэтому я предпочитаю krdc. Вот небольшой скрипт для запуска krdc с опциями из файла .rdp.

#!/bin/bash # # krdc `awk ' /^full address:s:/ < sub("full address:s:",""); sub("\015",""); host=$1; next>/^username:s:/ < sub("username:s:",""); sub("\015",""); user=$1; next>END < printf "rdp://%s@%s\n", user, host >' $1` 
  1. Скопируйте вышеуказанный текст в файл
  2. Изменить режим файла, добавив бит exec (файл chmod a + x)
  3. Запустите файл с вашим RDP-файлом в качестве параметра

Я реализовал только основные параметры — имя пользователя и имя хоста. Не стесняйтесь реализовывать других. Вы также можете использовать другую программу rdp — просто измените имя в скрипте. Скрипт предоставляет параметр в формате rdp://user@host .

Источник

Using windows exported «.rdp» file from Ubuntu

I got this «.rdp» remoteAPP file from work which enables me to run a specific application from the terminal server, I can open it easily using windows with a double click, are there any ways to open this kind of files from Ubuntu ?

7 Answers 7

You can use Remmina, which is default application for remote desktop in Ubuntu from version 11.04.

From Remmina main menu select Tools -> Import and select your .rdp file. It will be imported and added to your saved connections in Remmina and you can use it anytime you start Remmina.

Can I use Remmina to open MacInCloud connections in Ubuntu? I just wanna double-click on the rdp file, just like on Windows.

The error I got in the GUI was just “Unable to establish a […]” without any explanation. But opening the program in the terminal gave me this from stdout/stderr: ERRCONNECT_NO_OR_MISSING_CREDENTIALS [0x0002001B] . Something to keep in mind.

Читайте также:  Xrdp клиент astra linux

From the terminal this worked for me:

remmina -c Downloads/somemachine.rdp 

The command line help says:

$ remmina --help . -c, --connect=FILE Connect to a .remmina file 

Older versions of remmina don’t understand the line administrative session:i:1 in files produced by the azure portal, so you either need to upgrade remmina to a more recent version of comment out that line in the file (prefix with # works).

Remmina works on Linux Mint 17.3 (Ubuntu 14.04 based)

however I could not get it to work directly with the .rdp file. Neither via import nor per double click.

what actually worked fine was:

opening the .rdp file with a texteditor. Copy pasting server name and gateway name to remmina.

edit: this also saves me from having to download the .rdp file, searching for it on my computer, etc.

Drag and drop the rdp file in the Remmima inbuilt application. Select the connection and edit the details like password. Connect it. Should work fine.

I use KDE so I prefer krdc. Here is a small script for running krdc with options from .rdp file.

#!/bin/bash # # krdc `awk ' /^full address:s:/ < sub("full address:s:",""); sub("\015",""); host=$1; next>/^username:s:/ < sub("username:s:",""); sub("\015",""); user=$1; next>END < printf "rdp://%s@%s\n", user, host >' $1` 
  1. Copy above text to a file
  2. Change file mode adding exec bit (chmod a+x file)
  3. Run the file with your .rdp file as a parameter

I have only implemented basic parameters — user and hostname. Feel free to implement others. You may also use other rdp program — just change the name in the script. The script provides parameter in a format rdp://user@host .

Читайте также:  Astra linux fly astra update

To connect with Remmina from Ubuntu 20.04 I eventually found that I had to use two different usernames. The first is my email address, the second is a numeric id our institution also often use.

The email address is used as the «Remote Desktop Gateway username». The numeric id is the «Username» for the actual machine you finally connect to.

  1. Either drag and drop your rdp file onto Remmina, or select «Import» from the hamburger menu towards the top-right.
  2. A line of connection information should appear in Remmina. Right-click on it and choose «Edit».
  3. Ensure the «Basic» tab is active.
  4. Enter your «Username» (for me this is a numeric id).
  5. Enter the «Domain».
  6. Ensure the «Advanced» tab is active.
  7. Enter your «Remote Desktop Gateway username» (for me this was my email address).
  8. Enter your «Remote Desktop Gateway domain» (for me this was the same as at step 5, and needed in both these places).
  9. Choose «Save» to return to the main Remmina window.
  10. Either double-click on the line of connection information; or right-click it and select «Connect». A new pop-up window should soon appear, entitled «Enter RDP authentication credentials».
  11. Enter your password.
  12. Click OK.

That’s it. The first option I wanted to change upon connecting was «Toggle Dynamic Resolution Update», which is on the left.

Источник

Оцените статью
Adblock
detector