Xrdp kali linux вылетает

Saved searches

Use saved searches to filter your results more quickly

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. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XRDP session immediately closes after loggin in. #1412

XRDP session immediately closes after loggin in. #1412

Comments

I have xrdp installed on both RH 7.6 and 7.7 both are showing the same behavior. Can you please suggest if I have to make any config changes for this to work?
I do not have file on Redhat : /etc/xrdp/startwm.sh

tigervnc.x86_64 1.8.0-17.el7 @rhel_7Server_x64_localrepo xrdp.x86_64 1:0.9.11-1.el7 @EPEL7_x64_localrepo Logs : xrdp-sesman.log [20190917-14:00:38] [INFO ] shutting down sesman 1 [20190917-14:00:38] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350) [20190917-14:00:38] [DEBUG] libscp initialized [20190917-14:00:38] [INFO ] starting xrdp-sesman with pid 2577 [20190917-14:00:38] [INFO ] listening to port 3350 on 127.0.0.1 [20190917-14:00:52] [INFO ] A connection received from 127.0.0.1 port 50236 [20190917-14:00:52] [INFO ] ++ created session (access granted): username user, ip **.***.**.***:53246 - socket: 12 [20190917-14:00:52] [INFO ] starting Xvnc session. [20190917-14:00:52] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910) [20190917-14:00:52] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:0) [20190917-14:00:52] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5911) [20190917-14:00:52] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6011) [20190917-14:00:52] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6211) [20190917-14:00:52] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350) [20190917-14:00:52] [INFO ] calling auth_start_session from pid 2715 [20190917-14:00:52] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350) [20190917-14:00:52] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350) [20190917-14:00:52] [INFO ] Xvnc :11 -auth .Xauthority -geometry 3840x2174 -depth 24 -rfbauth /home/user/.vnc/sesman_passwd-user@rpub1234.user.company.com:11 -bs -nolisten tcp -localhost -dpi 96 [20190917-14:00:52] [CORE ] waiting for window manager (pid 2717) to exit [20190917-14:00:53] [CORE ] window manager (pid 2717) did exit, cleaning up session [20190917-14:00:53] [INFO ] calling auth_stop_session and auth_end from pid 2715 [20190917-14:00:53] [DEBUG] cleanup_sockets: [20190917-14:00:53] [INFO ] ++ terminated session: username user, display :11.0, session_pid 2715, ip **.***.**.***:53246 - socket: 1 

The text was updated successfully, but these errors were encountered:

Читайте также:  Apt search linux image

Following may be the reason for your issue:

  1. Please check whether all the desktop manager component been installed if not please use yum groupinstall «KDE» and GNOME
  2. Check you home directory whether you have any .Xclients file.
    if yes change the file permission to chmod +x .Xclients and add the startkde/gnome-session inside this file.
    NOTE: Empty file will be create the session close

I am getting the same thing, but it only seems to happen if I log into the machine locally and then, without logging out, try to log in with xrdp. If I am not logged in on the machine and I try to log in with xrdp then it works. Also if I disconnect from an xrdp session and a reconnect to the logged in session it still works. That’s happening on a Pop! OS 19.04 VM.

No feedback from the reporter, closed.

Hi people!
My XRDP stopped working few weeks ago. Then I started working with the xfce4. But It does not allow me to see some applications for example kivy applications. So I started to dig out how to solve this issue. But I can’t see how. Using xrdp i got the following status:

rb@rb-desktop:/home$ systemctl status xrdp.service ● xrdp.service - xrdp daemon Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2020-06-19 18:29:52 CDT; 4min 58s ago Docs: man:xrdp(8) man:xrdp.ini(5) Process: 10316 ExecStop=/usr/sbin/xrdp $XRDP_OPTIONS --kill (code=exited, status=0/SUCCESS) Process: 10391 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS) Process: 10356 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS) Main PID: 10393 (xrdp) Tasks: 2 (limit: 4183) CGroup: /system.slice/xrdp.service ├─10393 /usr/sbin/xrdp └─10688 /usr/sbin/xrdp jun 19 18:34:16 rb-desktop xrdp[10688]: (10688)(548297039888)[DEBUG] Closed socket 21 (AF_UNIX) jun 19 18:34:19 rb-desktop xrdp[10688]: (10688)(548297039888)[DEBUG] Closed socket 21 (AF_UNIX) jun 19 18:34:23 rb-desktop xrdp[10688]: (10688)(548297039888)[DEBUG] Closed socket 21 (AF_UNIX) jun 19 18:34:26 rb-desktop xrdp[10688]: (10688)(548297039888)[DEBUG] Closed socket 21 (AF_UNIX) jun 19 18:34:30 rb-desktop xrdp[10688]: (10688)(548297039888)[DEBUG] Closed socket 21 (AF_UNIX) jun 19 18:34:33 rb-desktop xrdp[10688]: (10688)(548297039888)[DEBUG] Closed socket 21 (AF_UNIX) jun 19 18:34:37 rb-desktop xrdp[10688]: (10688)(548297039888)[DEBUG] Closed socket 21 (AF_UNIX) jun 19 18:34:40 rb-desktop xrdp[10688]: (10688)(548297039888)[DEBUG] Closed socket 21 (AF_UNIX) jun 19 18:34:44 rb-desktop xrdp[10688]: (10688)(548297039888)[DEBUG] Closed socket 21 (AF_UNIX) jun 19 18:34:47 rb-desktop xrdp[10688]: (10688)(548297039888)[DEBUG] Closed socket 21 (AF_UNIX) 

When I am trying to run Kivy applications in xfce4 this is what I got:

MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:\$$/dri:/usr/lib/dri) libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 36 Current serial number in output stream: 35 

This is my system info:
rb@rb-desktop:/usr/lib/nvidia/license$ uname -a
Linux rb-desktop 4.9.140-tegra #1 SMP PREEMPT Tue Jul 16 17:04:49 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux

Источник

Saved searches

Use saved searches to filter your results more quickly

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. You switched accounts on another tab or window. Reload to refresh your session.

Читайте также:  Рекурсивное удаление папки linux

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xrdp crash after login or stuck in black screen [User still logged in on console] [Solution] #1734

Xrdp crash after login or stuck in black screen [User still logged in on console] [Solution] #1734

Comments

I’ve tried to make working xrdp on Kali Linux without success for 3 days,
I used using Kali linux with Xfce4 installed and i’ve tried also gnome, searching in various log i didnt found what i need
After several attempt, i found the solution

—-Before log into an xrdp session, log out or create another user and log into this last one.—-

I don’t know if someone alredy posted an solution like this, if so delete this post

The text was updated successfully, but these errors were encountered:

For these 3 days, i’ve tried to log with «kali» user but the problem isn’t the user itself.
The problem is that i’ve not logged out from the server before connecting in.
This is my 2° time approccing with rdp and then i dont know how these types of connection work.
I made this Issue just to inform who have the same my problem, how to solve it

matt335672 changed the title Xrdp crash after login or stuck in black screen [User not logged out] [Solution] Nov 25, 2020

Later versions of systemd set up a ‘session dbus’ for the user which is shared between the local graphical display and ssh sessions, etc. This works well until you log in an XRDP session with the same user, as most desktops don’t like sharing the session dbus.

One workaround, which you’ve found, is to use different users for remote and local sessions.

If you want to use the same user locally and remotely at the same time there may be a way, since Kali is based on Debian. The situation for Debian and derivatives is documented here on the wiki. This page might help you to get XFCE working, but not GNOME.

I’ve changed the title of your issue slightly which may make it easier for others to find when searching.

Let me know if you’d like any more info.

Читайте также:  Команды linux терминала справочник

Источник

Solving the ‘Kali Linux XRDP Not Working’ Error Quickly and Easily

Solving the ‘Kali Linux XRDP Not Working’ Error Quickly and Easily

XRDP is a free program for Microsoft RDP that allows remote desktop connections to Linux operating systems. You may encounter the ‘Kali Linux XRDP Not Working’ Error after installing this program on your Kali Linux. This article will teach you How to Solve the ‘Kali Linux XRDP Not Working’ Error Quickly and Easily. If you intend to buy a Linux VPS server, you can check out the packages offered on the Eldernode website.

To manage Kali Linux remotely, SSH service and command line is generally used, but you may be interested in being able to remote control the Kali Linux graphical environment like Windows. In this case, Xrdp software is your solution. XRDP is an open-source version of the Microsoft Remote Desktop Protocol that allows you to graphically control a remote system. If you encounter the ‘Kali Linux XRDP Not Working’ Error, follow the steps below to solve it quickly and easily.

How to Solve the ‘Kali Linux XRDP Not Working’ Error

This may have happened because Remote Desktop on Kali Linux is not enabled with XRDP. To enable the Remote desktop with XRDP, follow the steps below.

Firstly, open your terminal and update your system using the following command:

Check if XRDP is installed on your system with the command below:

Now you should install tigervnc which helps to circumvent a bug on XRDP:

sudo apt install tigervnc-common
sudo apt install tigervnc-scraping-server
sudo apt install tigervnc-standalone-server
sudo apt install tigervnc-viewer
sudo apt install tigervnc-xorg-extension

Add the user as shown below:

sudo adduser xrdp ssl-cert

Now add the below content to the xsession file:

sudo echo xfce4-session > /etc/.xsession

Open the startwm.sh file using your desired text editor:

And remove the shown lines from the end of the document:

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

Then add the following string to the end of the document:

Save the file and close it.

Lastly, enable and start the XRDP service using the command below:

sudo systemctl enable xrdp
sudo systemctl start xrdp

Open the RDP client and try to log in. Enter your username and password and remember to choose Xvnc session from the dropdown menu:

Login-KaliLinux-using XRDP

Conclusion

In this article, we introduced you to the ‘Kali Linux XRDP Not Working’ Error and taught you how to solve it quickly and easily. I hope this tutorial was useful for you and helps you to solve this Error. If you face any problems, you can ask us in the Comments section.

Click on a star to rate it!

Average rating 4 / 5. Vote count: 5

No votes so far! Be the first to rate this post.

Источник

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