Xrdp для linux mint

linux-notes.org

RDP на Debian/Ubuntu/Mint с помощью XRDP

Надоело использовать консоль? Вы не знаете как пользоваться консолью и Вам проще использовать графическую оболочку? Выход есть и сейчас я покажу как я это делал у себя на сервере. Хочу рассказать в своей статье «RDP на Debian/Ubuntu/Mint с помощью XRDP» как я настроил RDP на Debian.

Желательно выполнить обновление всего:

Установим сначала дополнительное программное обеспечение:

Можно ознакомиться с другими графическими оболочками в моей теме:

После того как установится xRDP, мы его запустим:

Теперь создадим пользователя под управление нашего соединения, у меня это будет пользователь XRDP:

Может такая команды и не выполниться, то нужно сделать «финт ушами», а именно запустить с параметром:

Даем нашему пользователю ( у меня — XRDP) права полного доступа ( рута):

Так же, зададим пароль для пользователя:

Теперь запустите «Remote Desktop Connection,» на вашей локальной машине. Можно ввести «MSTSC» перешел в Пуск -> Выполнить или вы можете найти программу в вашем меню.

В открывшееся окно вводим IP адрес нашего сервера (если кто не знает какой ИП, то выполните ifconfig), вводим пользователя и нажимаем «подключить».

У меня открылось окно, вроде бы все хорошо, а вот нет! Почитал логи, все чисто было. Оказалось нужно еще кое что добавить и немного установить. Сейчас мы этим займемся.

Была проблема в том, что если вы используете только консоль ( это же логично, зачем на серверах ставить GUI), то на машине не установлены графические оболочки.

Устанавливаем xfce4 на сервер, но перед этим всем обновимся:

После установки графической среды, пропишем параметр входа в систему:

Но т.к я юзаю пользователя XRDP, то нужно и для него это сделать:

Перезапускаем саму службу:

После чего можно пробовать подключатся! Должно все работать.

Для удобства можно заюзать следующий скрипт:

И перезапускаем сервисЖ

PS: можно так же установить Gnome, KDE, LXDE, но это кто к чему привык. Но не забывайте прописать в файл с сессией строки запуска X. Но как по мне, Это извращение ставить графическую оболочку! Юзайте консоль, люди!

Тема «RDP на Debian/Ubuntu/Mint с помощью XRDP» подошла к завершению. Спасибо за посещение моего сайта http://linux-notes.org

7 thoughts on “ RDP на Debian/Ubuntu/Mint с помощью XRDP ”

Все настроил как тут написано.
Зашел, но там серый экран. что делать?
ubuntu 14.04.1

Как графическую оболочку поставить?

Можно ознакомиться тут в моей теме «Установка GUI на Debian/Ubuntu/Mint»:
http://linux-notes.org/ustanovka-gui-na-debian-ubuntu-mint/

Что надо добавить в /etc/xrdp/start_xRDP.sh (в LinuxMint 18.2 это файл startwm.sh) в случае использования mate?

Если не получится, попробуй еще:

PS: Я никогда не использовал mate с xRDP

Нет, не помогло. Решил доступ делать через TeamViewer. Полноценного RDP под линуксами нет. Кроме того сессии обслуживаются разными виртуальными серверами и поэтому при «якобы» RDP открывается новая каждый раз новая сессия. Поэтому TeamViewer.

Читайте также:  Benjamin fleischer mac os почему заблокирован

# echo xfce4-session > /home/XRDP/.xsession
не пашет…пишет:

root@ip-172-26-2-128:/home/admin# echo xfce4-session > /home/XRDP/.xsession
bash: /home/XRDP/.xsession: No such file or directory
что делать?

Добавить комментарий Отменить ответ

Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.

Источник

Griffon’s IT Library

Simple IT Library for the rest of us

xRDP – How to Install on Linux Mint – Part I

As announced in our previous post, we are starting a series of post related to xRDP software and how to install it on different Ubuntu flavors. Today, we will show you how you can install the xRDP software package on a Linux Mint 18.1.

The recent release of Linux Mint 18.1 makes it a perfect candidate for an xRDP instructions guide plus multiple people asked us about xRDP and Linux Mint.

xRDP on Linux Mint 18.1

Assumptions

When we have performed our installation & testing, we have been using the following infrastructure

  • We have performed a Fresh installation of theLinux Mint 18.1
  • We have performed the installation on a Virtual Machine running on Hyper-V Server and Virtualbox

We are assuming that

  • Your Linux Mint machine is connected to Internet (so you can download the necessary packages for the installation to occur). If you are not connected to internet, you will have to manually download the necessary packages and make them available on your offline machine

Installation Process

Step 1 – Install xRDP package

At this stage, you should have a Linux Mint machine installed and ready to be used.

Click on Picture for Better Resolution

Once logged onto the system, open a terminal and issue the following command

sudo apt-get install xrdp

Click on Picture for Better Resolution

Wait for the installation to complete. At the end of the process, check the version of xRDP installed on your system by issuing the command

As you can see in the screenshot, the version is 0.6.1.

Click on Picture for Better Resolution

At this stage, you would think that you are ready to go. This is not the case. If you try to perform a remote desktop session to your Linux Mint machine, nothing will happen or you will end up with the following error

Click on Picture for Better Resolution

In Linux Mint, this is a normal behavior because no VNC Server is being installed along with the xRDP package. This means that we need to install an additional package to establish a remote desktop session…

Step 2 – Install TigerVnc Server package

In order to connect to the Cinnamon interface through the xRDP software, it’s necessary to install a specific VNC Server package :

  • the TigerVNC server software.

The TigerVNC Software is not available in the Ubuntu repository. You will need to download the installation package from the following location : https://bintray.com/tigervnc/stable/tigervnc/1.7.0#files/

Click on Picture for Better Resolution

After you have downloaded the package, Open a Terminal console and move to your Download folders (or location where you have saved the packaged downloaded above)

In the terminal console, to perform the installation, type the following

Click on Picture for Better Resolution

You might see some warning and errors messages. Ignore these messages for the moment…

Click on Picture for Better Resolution

To ensure that all the dependencies are installed, issue the following command in the Terminal console

Читайте также:  Windows 10 перенести замена ssd

Click on Picture for Better Resolution

Step 3 – Configure the xRDP keyboard Settings

Note : You need to perform this action on the local Ubuntu machine (and not through the xrdp connection !!)

By default, the xRDP login screen will use an en-us keyboard layout. You remote session will also be using the en-us keyboard layout. If you are using a different keyboard layout than the english one, you might want to use your actual keyboard layout and not the english us one.

To configure you keyboard layout settings, in your terminal console; simply copy/paste this text and it will try to find out automatically your keyboard layout

At this stage, you are done and ready to work

Perform the remote Connection

At this stage, you should be able to perform a remote desktop session to your Linux Mint machine. The first time you login, you might receive a message error. If you try the second time, you should be presented with your Cinnamon Desktop environment and you can start working on your Linux Mint.

Click on Picture for Better Resolution

As already mentioned, you will be connected to your cinnamon desktop interface but it’s not the full one. In the screenshot above, you see that you are logged on in the software rendering version of cinnamon.

Final Notes

This is the end of this post. As you can see, if you install the xrdp package and the tigerVNC server software, you should be able to remote connect to your Linux Mint Operating System. However, we will investigate a little bit further xRDP and Linux Mint topic. Indeed, in this post, we have been using the xrdp package version 0.6.1. A newer version is available (0.9.0) which ships by default in Ubuntu 16.10

In the second part, we will see how we can install the xrdp version 0.9.0 on Linux Mint which bring more features and settings than xRDP 0.6.1

14 thoughts on “ xRDP – How to Install on Linux Mint – Part I ”

Hello and thanks for the info!
I’ve now tried 3 of the RDP tutorials on your site with some limited success. I am able to get connected but with woefully slow speed. Is there any way I can adjust something to make it run faster? It’s like a 5 second lag, and this server has gig internet.
Thanks,
Pasbt

What do you call limited success ? Please provide more information about what you are trying to achieve, Which distribution you are using, which desktop environment you want to use, which version of xrdp you are using as well

Xrdp is not superfast but performance are usually good enough to perform your job through the remote session

Waiting for some feedback
Till next time
See ya

Thank you so much! I’ve fought with this kind of thing for a while. You make it simple!

Thank you for the positive feedback. We too had to fight for a long time to get stuff working with XRDP…:-). We hope that the info provided through this blog is somewhat useful…

Till next time
See ya

Thanks mate, did manage but I still have a small problem, my keyboard works well in applications however when I use in terminal and search box it’s completely srewed.

We are not using extensively Linux Mint so could not help you here…. we would need to install it and check for this…. to solve your issue, you could try to perform a custom installation of xrdp….
You can have a look at part II of the post and use the script. HOWEVER, you would need to tweak the script as the latest xrdp binaries have introduced important changes….You cannot use it as is (you have a look at the script in this post – see http://c-nergy.be/blog/?p=10752 – as a base as this one is the most recent and should work with the latest xrdp binarie….

Читайте также:  Поиск по списку служб windows

Use it at your own risk and test it before in a standalone or virtual machine

Hope this help
Till next time

Thanks for the post, got me past the ‘error – problem connecting’ issue.

However, now it gets through to the ‘connected ok’ and the RDP window closes. I thought that it might have been the resolution of my client (3440×1440) but I tried from a VM with a 1024×768 resolution and got the same thing. Any guidance would be appreciated.

We are working on that… Several people have noticed that a change has occurred in xRDP or UBuntu Operating system that generate this behavior. Some fixes are already available from Ubuntu.. We will try to publish asap information and workaround about the issue

Stay tuned
Till next time

Cinnamon desktop wont come up.
This works:
echo xfce4-session >

/.xsession
This doesn’t:
echo cinnamon >

@Bert,
Ok Thank you for he feedback… As we are not regular users of Linux Mint, we might investigate this issue when time permit
Till next time
See ya

Hi, I tried this but Windows RDP doesn’t connect to my Linux server it just times out and returns this error:

Remote Desktop can’t connect to the remote computer for one of these reasons:
1) Remote access to the server is not enabled
2) The remote computer is turned off
3) The remote computer is not available on the network

I double-checked and none of these is true

@William
I was getting this as well and it appears to have been the firewall on my linux machine.
I opened port 3389 for xRDP:
# firewall-cmd –permanent –add-port=3389/tcp
but forgot to reload:
# firewall-cmd –reload

However, I am now getting another error that seems pretty vague. I have a feeling it has to do with TigerVNC, which I am reading is required to be able to connect to the Cinnamon UI. I am not 100% sure on this though; my Linux knowledge is limited and I pretty much learn as I go and try to document everything I can.

Thanks Donnie I did that and now I can log in but with another problem. After my computer goes to sleep or the session ends, I get a blank screen after I re-log into the xrdp session.

xRdP is not the perfect solution but can be really helpful in mixed environement…
Hope you succeeded with your installation and confiuration
Till next time
See ya

Leave a Reply Cancel reply

Copyrights & Disclaimers

Support Us

You can support us by downloading Brave Browser and tip us through Brave Browser Reward System.

Download FREE Brave Browser

You can also decide to Buy us a coffee if your think that the information provided here was useful to you.

Источник

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