Как удалить xrdp
Перейти к содержимому

Как удалить xrdp

  • автор:

xRDP – How To Remove it based on your install option

Today’s post is again about xRDP software solution. xRDP is a Linux based software solution that provide remote desktop services capabilities. After installing the xRDP software layer on a Linux based computer, a user can access the desktop remotely through the RDP protocol. This means that a user working on Windows can access remotely a linux desktop with no need to install any additional software.

If you are a regular reader of this blog, you problaby know that have been explaining in simple ways how to perform the xRDP installation. However, some of our readers are also wondering how to remove the xRDP software from their machine. This question arise usually when there is a problem with the xRDP installation and people want to try from scratch or when they give up… This post will explain how to remove the xRDP software based on the way you have performed the installation..

Let’s quickly see how to perform such easy task….!

Removing xRDP based on installation process

Remove it when Standard installation has been performed

So, What’s a standard installation process for xRDP ? A standard installation means that the standard xrdp package available within the Ubuntu repository has been used to perform the installation. A fully compiled and package software solution is provided by Canonical and you simply need to execute the apt-get install command to perform the installation. If you need more information about how to perform a standard installation of xRDP on Ubuntu 17.10, have a look at the following posts

Before removing xrdp package, the first step would be to stop the service by issuing the following command in a terminal console

sudo systemctl stop xrdp

When using the standard installation procedure, it’s really easy to remove the xRDP package from your computer. The command that you have to issue is basically the following

sudo apt-get remove xrdp

This command will remove the packages but configuration files will not be deleted.

remove_2

Click on picture for better resolution

To remove packages and any configuration files, you should run the following command

sudo apt-get purge xrdp

Purge_2

Click on picture for better resolution

In the screenshot, you can clearly see that configuration files are deleted as well.

You can then reboot your machine and you should not have any xRDP software solution available on your system. You can then either, try to re-install it if you had problems or use another remote desktop solution….

Remove it when Custom installation has been performed

you have performed a custom installation of xRDP by running the install-xrdp.sh script (see xRDP – How to perform a custom installation – Scripted Install), it’s still possible to remove the xrdp package from your system. You will not use the built in apt-get remove or apt-get purge command to remove it. To get rid of the xrdp package on your system, you simply need to remove the following files and directories from your system.

and you would need to clean up the systemd services for xRDP by issuing the following command

So, again, before uninstalling the xrdp software, you should first stop the service using the command

sudo systemctl stop xrdp

then you can issue the following command to delete the xrdp files from your system

rm -r /etc/xrdp rm -r /usr/local/sbin/xrdp rm /var/run/xrdp.pid rm /var/run/xrdp-sesman.pid

rm_custom1

Click on picture for better resolution

Then, you can remove the systemd service for xrdp by issuing the following command

sudo systemctl disable xrdp 

remove_custom2

Click on picture for better resolution

Reboot your system so you have a really clean system at this stage….

Remove it when Custom installation (with checkinstall) has been performed

If you have been adventurous and you have tried this approach (see this post), the uninstall process is quite easy. Using the checkinstall command when compiling from source makes really easy to remove and re-install the compiled package. checkinstall will basically create a debian package and you can use the standard dpkg command to remove or re-install xrdp software…

So, again, before uninstalling the xrdp software, you should first stop the service using the command

sudo systemctl stop xrdp

then you can issue the following command to remove the debian xrdp and xorgxrdp package created by the checkinstall from your system. If you have followed the instructions describe here for the checkinstall, your deb packages are located under ~/Downloads/xrdp and ~/Downloads/xorgxrdp…

To uninstall the xrdp package, you would simply issue the following command in a terminal console

sudo dpkg -r xrdp

removecheckinstall_1

Click on picture for better resolution

To complete the uninstall process, you also need to remove the xorgxrdp package by issuing the following command

sudo dpkg -r xorgxrdp

removecheckinstall_2

Click on picture for better resolution

Finally, you can remove xrdp service from the systemd. This is optional but if you want to have a clean system you might want to issue this command

sudo systemctl disable xrdp

remove_custom2

Click on picture for better resolution

Reboot your system and check that you cannot remote connect anymore through rdp client.

Final Notes

As you can see, based on your installation approach, it’s possible to remove the xrdp package in an easy way actually. After explaining so often how to perform a successful installation of xRDP, it’s was time to explain how to remove the xRDP package. Some people asked me how to remove the xrdp package because they couldn’t get it working and they wanted to redo the installation of xRDP instead of reinstalling the full Ubuntu operating system.

This post was due from a long time but I just recently found the time to write it. Nowadays, the installation process for xRDP is so straight forward that we hope that this post would not be used too often. On the other hand, we are happy to have written this one so xRDP information is becoming quite complete..

6 thoughts on “ xRDP – How To Remove it based on your install option ”

Johan says:

Hi Griffon,
I followed your instruction for removing custom installation.
After that I re-installed xrdp via apt-get, this time I totally cannot use.
It seems there is a dependency error, and the error seems to point to these two files:
/var/run/xrdp.pid
/var/run/sesman.pid Do you have any ideas on what i should do? I have totally lost the two directory above.

Griffon says:

@Johan,
There should be no dependencies on xrdp.pid and sesman.pid… Have you disabled the service xrdp before deleting the files ?
DO you have a screenshot of the error or a message error ?
have you rebooted the machine before trying to install again…. ?
after removing xrdp, have you checked through systemctl that service is not there anymore…. The only thing I’m thinking of is that we might need to also remove the xorgxrdp files….. because now the xrdp install comes with this additional component Waiting feedback
Till next time
See ya

Joey says:

This doesn’t say how to reverse the install of your script in post id# 10513, “Custom Install on 16.04.02”.

Griffon says:

@Joey, Given the script is using the same installation process, you can assume that the removal process provided in this post should be working also for the custom install for 16.04
When you perform a custom install (any version), to get rid of it, you simply delete the xRDP files from your system
Hope this help
Till next time
See ya

Ans Javed says:

hello,
I have installed xrdp by using this command “sudo apt install -y xrdp”. And my desktop style has changed totally. I want go back in my previous desktop style. Can you tell me how i can do this?
Thank you!

Griffon says:

@Ans,
thanks for visiting our blog. You do not provide enough information about your problem/issue….
If you have performed a manual installation (i.e. sudo apt install -y xrdp), to remove xRDP, you simply issue the command sudo apt remove xrdp and the software will be removed
You do not specify which Ubuntu version you are using Ubuntu 16,18,20 or other Linux Flavor
When you say, my desktop has changed totally, is this when you are login locally or when you are logged on through remote desktop software ? What’s the Desktop interface you are willing to use (Unity; Gnome, KDE,…) and what do you see know ?
Have you installed other Desktop interface while playing around with xRDP software ? If yes, you might have to select which Desktop interface you want to use (when logged on locally) in the login screen Hope this help
Till next time
See ya

Leave a Reply

Copyrights & Disclaimers

This blog and its content are freely available to users but copyrights applies. The content is copyright of c-nergy.be. This means that you cannot duplicate or (. )

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.

This website and its content is copyright of c-nergy.be – © c-nergy.be – 2008 – 2023 – All rights reserved.

Как удалить xrdp

You can uninstall or removes an installed xrdp package itself from Ubuntu 17.04 (Zesty Zapus) through the terminal,

$ sudo apt-get remove xrdp
Uninstall xrdp including dependent package

If you would like to remove xrdp and it’s dependent packages which are no longer needed from Ubuntu,

$ sudo apt-get remove --auto-remove xrdp
Use Purging xrdp

If you use with purge options to xrdp package all the configuration and dependent packages will be removed.

$ sudo apt-get purge xrdp

If you use purge options along with auto remove, will be removed everything regarding the package, It’s really useful when you want to reinstall again.

$ sudo apt-get purge --auto-remove xrdp

JSengottuvel / remove_xrdp_ubuntu.sh

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

sudo systemctl stop xrdp
sudo apt-get remove xrdp
sudo apt-get purge xrdp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Footer

© 2023 GitHub, Inc.

You can’t perform that action at this time.

ubuntu xrdp удаленный рабочий стол

Проблемы со стандартным удаленным рабочим столом в Ubuntu 18.04: отсутствует подключение, черный экран, выкидывает при подключении и/или сообщения, типа «Could not acquire name on session bus».

Настройка удаленного рабочего стола в Убунту — лечение:

Удаление xrdp:
# sudo apt-get remove xrdp

Перегрузились:
# sudo reboot

Обновились:
# sudo apt-get update
# sudo apt-get upgrade

Установка xrdp:
# sudo apt-get install xrdp

Ставим mate-core — это рабочая среда MATE Desktop:
# sudo apt-get install mate-core

Добавляем конфиг:
# sudo echo mate-session> ~/.xsession

Если запущен файрволл — добавляем исключение, принимать подключения на порт 3389 (по-умолчанию):
# sudo ufw allow 3389/tcp

Перегружаем:
# sudo reboot

И пробуем пользоваться удаленным рабочим столом. Но, бывает иногда и так, что этих шагов оказывается недостаточно.

Тогда ищем файл /etc/xrdd/startwm.sh и в нем комментируем строки (вероятно, будут последними):

test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession

и вместо них добавляем другие две строчки:

unset DBUS_SESSION_BUS_ADDRESS
exec mate-session

И пробуем еще раз. Уже должно все работать.

Дополнение.

Кстати, желательно — сменить порт 3389 по-умолчанию. Для этого необходимо редактировать файл /etc/xrdp/xrdp.ini. Найти строчку:

и поменять 3389 на новое значение. И не забыть при этом:

# sudo ufw allow НОВЫЙ_НОМЕР_ПОРТА/tcp

Кроме того, если удаленный рабочий стол ubuntu находится в локалке дома или другом безопасном месте, то можно упростить себе задачу и в окне авторизации оставить себе — набирать только пароль, забив имя пользователя в конфиге /etc/xrdp/xrdp.ini в секции [Xorg]:
username=имя_пользователя

Если же к компьютеру с удаленным рабочим столом есть доступ из Интернет, то запоминать имя пользователя — не стоит, это небезопасно. Злоумышленнику труднее будет подбирать пару неизвестных (логин/пароль), чем одно неизвестное (только лишь один пароль).

Удаленный рабочий стол в Убунту

ubuntu xrdp настройка удаленного рабочего стола mate-core

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

Ваш адрес email не будет опубликован. Обязательные поля помечены *