- не получается подключиться к xrdp
- Неработает xrdp
- Remote Desktop — синий экран после входа в систему
- 0 ответов
- Can’t connect to xrdp on Ubuntu 20.04 from Windows 10 #1609
- Comments
- paulr24 commented Jun 17, 2020
- matt335672 commented Jun 17, 2020
- paulr24 commented Jun 17, 2020 •
- matt335672 commented Jun 18, 2020 •
- kbfifi commented Aug 6, 2020
- matt335672 commented Aug 6, 2020
- kbfifi commented Aug 6, 2020
- matt335672 commented Aug 6, 2020
- kbfifi commented Aug 6, 2020
- matt335672 commented Aug 6, 2020
- Sebazzz commented Oct 9, 2020
- TheLeank commented Oct 9, 2020
- Sebazzz commented Oct 9, 2020
- TheLeank commented Oct 9, 2020
- matt335672 commented Oct 9, 2020
- TheLeank commented Oct 9, 2020
- matt335672 commented Oct 9, 2020
- TheLeank commented Oct 9, 2020
- matt335672 commented Oct 9, 2020
не получается подключиться к xrdp
по инструкции ( http://scarygliders.net/2011/11/17/x11rdp-ubuntu-11-10-gnome-3-xrdp-customiza. ) поднял xrdp на удаленной машине, но rdesktop, при запуске, говорит, что connection closed, и в sesman.log (на удаленной) появляется
[20111212-15:25:17] [INFO ] scp thread on sck 7 started successfully
[20111212-15:25:17] [WARN ] unknown protocol version specified. connection refused.
это можно исправить? 🙂
Проверь netstat -nlpt, должны работать xrdp и sesman-xrdp. Посмотри сообщения при перезапуске сервиса. Иногда его глючит, и оно не может писать логи в указанный каталог (даже при корректных правах на каталог и исправленном инитскрипте). Тогда xrdp дохнет при запуске, а sesman убивается только kill’ом. Кстати, в убунтовском инитскрипте пути к бинарникам /usr/bin, а после сборки по той инструкции они ложатся в /usr/sbin.
А вообще до виндового rdp ему по скорости и функциональности как до Киева раком.
А вообще до виндового rdp ему по скорости и функциональности как до Киева раком.
Есть альтернативы? Рдп-совместимый сервер под линукс, но быстрый?
Сам ищу. Пока из реально быстрого видел только nx, но оно ж не только коммерческое (хрен бы с ним), но и со своим протоколом и клиентами.
Источник
Неработает xrdp
Добрый День! Скажу сразу в Linux я новичек по этому не судите строга, опишу проблему. Арендовали VPS c Ubuntu я решил поставить KDE и xrdp для удаленного администрирования использовал такие команды поэтапно sudo apt-get install xrdp sudo apt-get update sudo apt-get install kde-full прописал в файл
/.xsession следующую строку: startkde
но при запуске RDP-клиента на windows 7 я подключаюсь к серверу прохожу авторизацию, а после нее появляется серый экран и курсор ввиде крестика черного и все а графическая оболочка не запускается. Я решил что проблема в пути к команде kde и переписал путь в файл
/.xsession /usr/local/kde4/bin/startkde опять тоже самого тогда я решил поставить Gnome sudo get-update sudo apt-get install ubuntu-gnome-desktop ubuntu-gnome-default-settings sudo apt-install gnome-session-fallback в
/.xsession прописал gnome-session —session=ubuntu-2d Ну ничего не помогает помогите в чем может проблемы быть?
А нафига тебе gui на сервере. Да ещё и кеды!
Хочу чтобы пользователи удалено подключались к серверу и работали на нем
x11rdp ещё настраивать надо, по умолчанию он запускает «голую» x сессию.
Читайте документацию по этому пакету.
/.xsession следующую строку: startkde
А это точно нужно? Файл запускаемый? Посмотри логи X, может у xrdp есть какие-нибудь логи. Xsessionerrors.
Как я понимаю файл нужен для запуска графической оболочки. .Xsessionerrors ну там записей нету
Как я понимаю файл нужен для запуска графической оболочки.
Есть системный. Попробуй переименовать его временно. Ну и xrdp это по-идее служба — ты её перезапускаешь?
не совсем понял что ты имеешь ввиду «Попробуй переименовать его временно». Да службу перезапускаю
я переименовал файл толку результат тот же
Неужели в логах иксов ничего нет?
Я как-то менял в убунте DE (ибо люто тормозило). Снес юнити (или что там), поставил wmaker. Ничего не правил, никаких файлов не создавал.
А вы уверены, что не надо ничего править хотя бы в /etc/xrdp/ ?
Делал подобное, правда не на VPS и Ubuntu.
А пользователям необходимо запускать отдельное приложение на VPS — если да можно через — ssh -YC user@server приложение — все это на win через путу, либо накидать скрипт.
Установи на другой компьютер openSUSE и настрой из графической программы удалённый рабочий стол. Затем открой конфигурационные файлы и скопируй нужные настройки на свой сервер с Ubuntu.
А вы уверены, что не надо ничего править хотя бы в /etc/xrdp/ ?
xrdp я удалённо (не на vps) настраивал только в дебиане. aptitude install xrdp. Он бодро отрапортовал, что демон стартовал и всё. Через секунду я уже подключаюсь.
До этого юзал tightvnc-server — почти такая же картина, только стартовать надо вручную. Никаких конфигов ничего не правил.
UPD: Щас даже залез, на всякий случай. Да нет же — никаких xsession даже автоматом не создалось.
я прочитал интродукцию вот по этой ссылка Инструкция Cделал все кроме установки apt-get build-dep xserver-xorg-core выдает ошибке
E: You must put some ‘source’ URIs in your sources.list
и не смог сделать cd xrdp.git git checkout 4cd0c118c273730043cc77b749537dedc7051571 ./bootstrap ./configure —prefix=/usr —sysconfdir=/etc —localstatedir=/var make на команде ./bootstrap вываливаеться ошибка
/usr/bin/autoconf /usr/bin/automake error, install libtool
я заменил эти действия командой sudo apt-get install xrdp теперь при подключение на экране то зеленая то оранжевая рябь
после это в логах .xsession-errors появилось такое сообщение
Xsession: X session started for at Wed Aug 7 23:38:00 MSK 2013 localuser:webmaster being added to access control list Setting IM through im-switch for locale=all_ALL. Start IM through /etc/X11/xinit/xinput.d/all_ALL linked to /etc/X11/xinit/xinput.d/default. x-session-manager[2090]: WARNING: GSIdleMonitor: IDLETIME counter not found GNOME_KEYRING_CONTROL=/run/user/webmaster/keyring-KrWwLt GNOME_KEYRING_PID=2143 GNOME_KEYRING_CONTROL=/run/user/webmaster/keyring-KrWwLt GPG_AGENT_INFO=/run/user/webmaster/keyring-KrWwLt/gpg:0:1 GNOME_KEYRING_CONTROL=/run/user/webmaster/keyring-KrWwLt GPG_AGENT_INFO=/run/user/webmaster/keyring-KrWwLt/gpg:0:1
(gnome-settings-daemon:2144): power-plugin-WARNING **: Unable to start power manager: RANDR extension is too old (must be at least 1.2) GNOME_KEYRING_CONTROL=/run/user/webmaster/keyring-KrWwLt GPG_AGENT_INFO=/run/user/webmaster/keyring-KrWwLt/gpg:0:1 SSH_AUTH_SOCK=/run/user/webmaster/keyring-KrWwLt/ssh (gnome-settings-daemon:2144): color-plugin-WARNING **: failed to get contents of /sys/class/dmi/id/product_name: Failed to open file ‘/sys/class/dmi/id/product_name’: No such file or directory
я прочитал интродукцию вот по этой ссылка Инструкция
А в убунте что, нету пакета xrdp? Зачем компилять-то?
после это в логах .xsession-errors появилось такое сообщение
Насколько я могу судить, у тебя в системе смешались в кучу люди, кони.
Советую сбросить vps к первоначальному состоянию и поставить всё заново. Только xrdp ставь (из пакетов, естественно) последним. Мало ли. Может он ориентируется на существующие DE.
UPD: И никаких фалов сам не создавай! Все, что насоздавал удали.
Спасибо всем большое отдельно спасибо ziemin! Все получилось заново откатил VPS и сделал как здесь все пошло сейчас кеды буду ставить, а то пользователям не удобно будит
Источник
Remote Desktop — синий экран после входа в систему
Я установил mate и xrdp в Ubuntu 18.04. Теперь я пытаюсь подключиться к этому компьютеру из другой Ubuntu с Remmina:
Я нажимаю ОК, окно логина исчезает, фон такой же, ничего не происходит. Моя
/.xsession содержит мат-сессию.
xrdp.log содержит такие вещи:
Как я могу исправить или диагностировать этот замечательный программный продукт?
0 ответов
Я нашел альтернативное решение (может быть квалифицировано как оффтоп), но я опубликую его здесь, поскольку это может кому-то помочь: apt-get install x2goserver установит x2go, сервер удаленного рабочего стола с открытым исходным кодом для linux с x2goclient, доступный как для Linux, так и для Windows,
Следующее сработало для меня 20.04 (я думаю, что это относится и к 18.04):
В /etc/xrdp/startwm.sh изменение #!/bin/sh к #!/bin/bash
Я нашел это исправление в этом комментарии. Еще несколько деталей из этого комментария:
Моя проблема была вызвана пользовательскими скриптами в /etc/profile.d с синтаксисом, который /bin/sh не нравится (например function function_name < some; commands; >).
Этот комментарий был связан с известной проблемой по ошибке.
Там был еще один комментарий, в котором упоминалось еще одно исправление, которое не относилось к моей ситуации:
Добавив приведенные выше строки непосредственно перед тестом и exec в /etc/xrdp/startwm.sh, я также добавил #!/ Bin / bash в начало файла — также выполняя chmod после того, как вы изменили файл, что некоторые пользователи могут забыть.
Вы не указываете, какую именно версию Ubuntu 18.04 вы используете. если у вас есть все обновления, вы должны запустить Ubuntu 18.04.3. Вы можете проверить это, запустив следующую командную строку
Если вы используете Ubuntu 18.04.3, существует известная проблема с пакетом xrdp, предоставленным Canonical. Пакет xrdp не может установить пакет xorgxrdp из-за сбоя зависимостей. Вот почему вы не можете удаленно подключиться к вашему Ubuntu.
Лучший вариант — установить новый пакет xorgxrdp-hwe-18.04
Установите новый пакет xorgxrdp, введя следующую команду
sudo apt-get установить xorgxrdp-hwe-18.04
Это должно исправить вашу проблему
Dirty Quick Fix — понижение версии пакета xorgxserver Мы предполагаем, что вы уже установили пакет xRDP и хотите исправить его
sudo apt-get установить xserver-xorg-core
sudo apt-get -y установить xserver-xorg-input-all
Лучшее исправление — используйте неофициальные пакеты xrdp, работающие с Ubuntu 18.04.3
Примечание. Чтобы использовать эту опцию, удалите установленный вами пакет xrdp.
sudo add-apt-repository ppa:martinx / xrdp-hwe-18.04
sudo apt-get update
sudo apt-get установить xrdp xorgxrdp
Другой вариант — использовать скрипт для установки за вас
Примечание. Чтобы использовать эту опцию, удалите установленный вами пакет xrdp.
Чтобы использовать пакеты Xrdp для репозитория Ubuntu, прочитайте инструкции и загрузите скрипт по адресу http://c-nergy.be/blog/?p=13933
Чтобы скомпилировать из исходного кода (простой способ), прочитайте инструкции и загрузите скрипт по адресу http://c-nergy.be/blog/?p=13663
Надеюсь, что это поможет До следующего раза Увидимся
Источник
Can’t connect to xrdp on Ubuntu 20.04 from Windows 10 #1609
Comments
paulr24 commented Jun 17, 2020
When I try to connect via RDP I briefly get a black screen and then the window closes. I ran «sudo systemctl status xrdp» and the result is below. Any ideas how to fix this? Thanks!
● xrdp.service — xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-06-17 03:27:25 UTC; 36min ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Main PID: 1361 (xrdp)
Tasks: 1 (limit: 9255)
CGroup: /system.slice/xrdp.service
└─1361 /usr/sbin/xrdp
Jun 17 04:03:15 ubuntu xrdp[4953]: (4953)(281473823191056)[INFO ] xrdp_wm_log_msg: login successful for display 10
Jun 17 04:03:15 ubuntu xrdp[4953]: (4953)(281473823191056)[DEBUG] xrdp_wm_log_msg: started connecting
Jun 17 04:03:15 ubuntu xrdp[4953]: (4953)(281473823191056)[INFO ] lib_mod_log_peer: xrdp_pid=4953 connected to X11rd>
Jun 17 04:03:15 ubuntu xrdp[4953]: (4953)(281473823191056)[DEBUG] xrdp_wm_log_msg: connected ok
Jun 17 04:03:16 ubuntu xrdp[4953]: (4953)(281473823191056)[DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
Jun 17 04:03:16 ubuntu xrdp[4953]: (4953)(281473823191056)[DEBUG] Closed socket 16 (AF_INET6 ::1 port 60160)
Jun 17 04:03:17 ubuntu xrdp[4953]: (4953)(281473823191056)[DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.1.226 po>
Jun 17 04:03:17 ubuntu xrdp[4953]: (4953)(281473823191056)[DEBUG] xrdp_mm_module_cleanup
Jun 17 04:03:17 ubuntu xrdp[4953]: (4953)(281473823191056)[DEBUG] Closed socket 17 (AF_UNIX)
Jun 17 04:03:17 ubuntu xrdp[4953]: (4953)(281473823191056)[DEBUG] Closed socket 18 (AF_UNIX)
The text was updated successfully, but these errors were encountered:
matt335672 commented Jun 17, 2020
Are you by any chance logged in at the console? If so, you might want to check out this wiki entry.
Failing that, do the following:-
- Log in over ssh.
- Make a note of the time (hh:mm:ss) by running the date command.
- Try to log in over RDP
- Post the output of the command sudo journalctl -S hh:mm:ss where hh:mm:ss is the time you noted earlier.
paulr24 commented Jun 17, 2020 •
Hi @matt335672, thanks for the reply. I did see some info regarding being logged in at the console. I tried logging out, and also following the wiki entry, but I’m still having the same issue. I then did what you asked, and here are the results:
date: Wed Jun 17 15:55:36 EDT 2020
Tried logging in over RDP, then here are the results of the command:
matt335672 commented Jun 18, 2020 •
Well that all looks OK. I can’t see the session closing at all.
I didn’t ask you to wait until the RDP session had terminated before generating the log — sorry. Could you try again and wait until the session has close before generating the log?
PS: I edited your last post to bracket the log with 3 backticks above and below. It makes it easier to read by anyone reading this post in the future. More info on Github markdown can be found here. Hope that’s useful.
kbfifi commented Aug 6, 2020
Same problem here. black screen en mouse pointer is moveable. I noticed that while seeing the black screen and starting an application from the host desktop the application is shown in the remote rdp session! Only the application is visible.
I followed the instructions on the wiki en eventually reboot the system. Now I can see a remote desktop, except that it is not the existing instance that was already running but a new one. How can this be fixed? Any suggestion is appreciated.
matt335672 commented Aug 6, 2020
I don’t understand your question. You’ve rebooted the system, and so there won’t be any instances running. Can you please clarify what you mean by a new instance?
kbfifi commented Aug 6, 2020
Thanks for your response. By new instance I mean a new desktop session. to reproduce:
boot Ubuntu
login
start some app x
start a RDP session to this machine
Now a new clean session is shown (new instance) not showing app x
Start a new app y in this new session => it is only shown in the new session not in the original host session
I’d like to have the same default behaviour as with Windows RDP sessions: take over an existing session
matt335672 commented Aug 6, 2020
OK — thanks — that’s clear.
It’s not quite the way it works though — the console session has its own (private) X server, and you can’t take that over.
The closest you can come is to run a VNC server as part of your console session and connect to that VNC session. There are a lot of options here. Some desktops have a VNC server built in (i.e. GNOME Vino), or you can run x11vnc to provide a server onto an existing desktop. You can then use XRDP as a shim to connect to the console, or use a VNC client to connect direct from whatever platform you’re coming from.
Does that make sense?
kbfifi commented Aug 6, 2020
Ok thanks for the explanation! Maybe a bit off topic and more of a X-window question: Would it be possible to switch started apps between the 2 X-displays? So in my example make app x visible in the other session?
matt335672 commented Aug 6, 2020
If the app was on an X screen on the same server it would be possible. But it’s not possible between two X servers. Each one holds quite a bit of state related to each app, and there’s no mechanism to transfer apps between servers.
Sebazzz commented Oct 9, 2020
The original issue reported by @paulr24 I had too when upgrading xrdp. To fix this, ensure your startwm.sh script is configured correctly. In my case, I boot to XCFE, so I needed to modify my script accordingly.
TheLeank commented Oct 9, 2020
@Sebazzz just installed xrdp and I’m in a xfce wm, with the same error that we all have. What should I modify from the file? Thank you for your help.
Sebazzz commented Oct 9, 2020
These are the contents of the file I have:
TheLeank commented Oct 9, 2020
@Sebazzz Sadly it didn’t work for me, I appreciate your help. Now, that’s a really different file of what I have. I’ll keep investigating despite I’m not really good at it.
matt335672 commented Oct 9, 2020
I’m happy to help if you can provide more information.
The following would be useful :-
- Operating system and version
- XRDP installed from package manager or built from source?
- XRDP version
- Xvnc or Xorg backend?
- If Xorg backend, what version of xorgxrdp is installed?
- What exactly your symptoms are
TheLeank commented Oct 9, 2020
Ubuntu 20.04.1 LTS (Linux Lite)
XRDP version xrdp 0.9.12 installed from package manager
Xorg backend
0.2.12
As the creator of this issue, I can connect with the Windows 10 rdp default client, then I get to type my password: when I do, the screen goes black and the rdp client dies.
I didn’t change anything in the configuration until I tried the startwm.sh file Sebazzz provided
matt335672 commented Oct 9, 2020
Can you do the following for me:-
- Make sure no-one is logged in to the machine console. See the wiki for why that is a bad idea.
- Log in to the Linux machine using ssh from another machine, or putty from Win 10.
- Make a note of the system time in hours, minutes and seconds (HH:MM:SS) with the date command
- Try to connect from Windows 10
- After the client dies use the command sudo journalctl -S HH:MM:SS (where HH:MM:SS is the time from step 3) to get a system log.
- Paste that here and we’ll have a look at it.
TheLeank commented Oct 9, 2020
Oh @matt335672 , I’m kind of embarrased, checked the wiki but didn’t read it all. It’s working after I logout the session. Expected a windows-like popup telling me to drop the current session. Thank you, sir!
matt335672 commented Oct 9, 2020
OK — that’s cool. Thanks for letting us know, and have a good weekend.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник