PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Setup remote desktop for kali linux

Go down

Setup remote desktop for kali linux Empty Setup remote desktop for kali linux

Post by jamied_uk 14th February 2022, 23:14

Code:
sudo apt install -y xrdp && sudo service xrdp start && sudo service xrdp-sesman start


Auto Start The Service after boot

Code:
sudo update-rc.d xrdp enable
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Setup remote desktop for kali linux Empty Re: Setup remote desktop for kali linux

Post by jamied_uk 14th February 2022, 23:50

To solve this “second session” problem and allow as many sessions as you need, edit /etc/xrdp/startwm.sh

Code:
sudo gedit /etc/xrdp/startwm.sh



and add these lines before the lines that test and execute Xsession. The $HOME/.profile is not part of the solution, but is something that should be run before starting the session anyway.
  • unset DBUS_SESSION_BUS_ADDRESS
  • unset XDG_RUNTIME_DIR
  • . $HOME/.profile
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum