xrdp | xrdp : an open source RDP server
kandi X-RAY | xrdp Summary
kandi X-RAY | xrdp Summary
xrdp provides a graphical login to remote machines using Microsoft Remote Desktop Protocol (RDP). xrdp accepts connections from a variety of RDP clients:. Many of these work on some or all of Windows, Mac OS, iOS, and/or Android. RDP transport is encrypted using TLS by default.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of xrdp
xrdp Key Features
xrdp Examples and Code Snippets
Community Discussions
Trending Discussions on xrdp
QUESTION
I want to grep a string from command output but remove a substring at the same time. For instance
String = Active: active (running) since Sat 2022-03-12 20:02:20 PKT; 1h 31min ago
What I want = active (running) since 20:02:20 PKT
Removed
- Active:
- Sat 2022-03-12
- ; 1h 31min ago
To do that I have been using regular expression initially
sudo service sshd status |grep -Po '(?<=Active: )(.*) since (.*);'
active (running) since Mon 2022-03-14 01:06:43 PKT;
Can you tell how can i ignore date as well as last semi-colon ; while keeping the time only and have output exactly like:
active (running) since 01:06:43 PKT
Thanks
Full output of command:
...ANSWER
Answered 2022-Mar-17 at 08:21You can use
QUESTION
SETUP
I have a python3 application that creates a gui using tkinter. It runs on a Raspberry Pi 4 running Ubuntu 21.10. I'm connected using a remote desktop with the xrdp client. I successfully connect to the Ubuntu desktop, but I can't see desktop icons.
PROBLEM
When I launch the application with root privileges, tkinter gets confused on the display and fails to create the GUI.
...ANSWER
Answered 2022-Feb-05 at 13:18This is an X Windows security issue preventing the sudo user accessing the display created by the logged on user. If you're not worried about security on your local network then running the command 'xhost +' will disable all security on the X Windows Display and allow the sudo user to access the display.
QUESTION
I have three new Raspberry Pis running this OS:
...ANSWER
Answered 2021-Nov-29 at 08:46I got my Pi 4 today and ran into exactly your problem. Took me 1 hour to figure out how to fix, hope it can help:
- Remove and purge all VNC server and then install/reinstall XRDP
- sudo raspi-config
- Go to (1) System Options -> S5 Boot/Auto Login -> select "B3 Desktop GUI - requiring user to login". It should works with this option. Otherwise you can give a try with the automatically logging in as pi user option.
- Reboot and have fun !
QUESTION
Wish You all beautiful sunny day! :D,
I have a question for You guys. I have following python "script":
...ANSWER
Answered 2021-Oct-18 at 19:41While the question/answers linked in the comments is a good read (sudoers
in particular), there's a better method for WSL. Instead of using ubuntu.exe
, use the newer wsl.exe
replacement. The wsl
command offers more control over the startup, including being able to change the user:
QUESTION
On my Pi I followed this tutorial to install docker on raspbian. Few side notes here:
- I did NOT setup a swarm, I stopped at docker info and (as in other guides) I succesfully ran the hello world container.
- idk if it matters, but this guide (unlike others) had me edit
/etc/apt/sources.list
and add line:deb https://download.docker.com/linux/raspbian/ stretch stable
On my develop machine (win 10) I used this tutorial to add docker configs and ymls to my mern stack app. However at multiple points in this tutorial they wanted me to run docker commands, so I ended up having to install Docker Desktop.
But I don't want to use local containers, I want to use the remote one on my Pi. So I used this tutorial to try and setup my remote docker.
However Im getting an error:
C:\Users\oweng>docker-machine create --driver generic --generic-ip-address=192.168.1.2 --generic-ssh-key "%HOMEPATH%/.ssh/id_rsa" --generic-ssh-user=pi remote-docker-host Running pre-create checks... Creating machine... (remote-docker-host) Importing SSH key... Waiting for machine to be running, this may take a few minutes... Detecting operating system of created instance... Waiting for SSH to be available... Enter passphrase for key 'C:\Users\oweng.docker\machine\machines\remote-docker-host\id_rsa': Enter passphrase for key 'C:\Users\oweng.docker\machine\machines\remote-docker-host\id_rsa': Detecting the provisioner... Enter passphrase for key 'C:\Users\oweng.docker\machine\machines\remote-docker-host\id_rsa': Error creating machine: Error detecting OS: OS type not recognized
I have googled the error a bit but havnt found a solution.
furthermore when checking listening ports on my Pi (docker server) I dont see it running
pi@raspberrypi:~ $ sudo lsof -i -P -n | grep LISTEN xrdp-sesm 390 root 7u IPv6 14566 0t0 TCP [::1]:3350 (LISTEN) sshd
404 root 3u IPv4 17224 0t0 TCP *:22 (LISTEN) sshd
404 root 4u IPv6 17226 0t0 TCP *:22 (LISTEN) xrdp
406 xrdp 11u IPv6 17302 0t0 TCP *:3389 (LISTEN)
So I feel like maybe the server is not running? But it seems to be.
pi@raspberrypi:~ $ systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2020-11-03 07:18:21 PST; 3h 35min ago Docs: https://docs.docker.com Main PID: 496 (dockerd) Tasks: 13 CGroup: /system.slice/docker.service └─496 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Nov 03 07:18:14 raspberrypi dockerd[496]: time="2020-11-03T07:18:14.064113743-08:00" level=warning msg="Your kernel does not support cgroup blkio throttle.w Nov 03 07:18:14 raspberrypi dockerd[496]: time="2020-11-03T07:18:14.064249212-08:00" level=warning msg="Your kernel does not support cgroup blkio throttle.r Nov 03 07:18:14 raspberrypi dockerd[496]: time="2020-11-03T07:18:14.064373483-08:00" level=warning msg="Your kernel does not support cgroup blkio throttle.w Nov 03 07:18:14 raspberrypi dockerd[496]: time="2020-11-03T07:18:14.066367493-08:00" level=info msg="Loading containers: start." Nov 03 07:18:17 raspberrypi dockerd[496]: time="2020-11-03T07:18:17.612685200-08:00" level=info msg="Default bridge (docker0) is assigned with an IP address Nov 03 07:18:18 raspberrypi dockerd[496]: time="2020-11-03T07:18:18.710629367-08:00" level=info msg="Loading containers: done." Nov 03 07:18:20 raspberrypi dockerd[496]: time="2020-11-03T07:18:20.815943637-08:00" level=info msg="Docker daemon" commit=4484c46 graphdriver(s)=overlay2 v Nov 03 07:18:20 raspberrypi dockerd[496]: time="2020-11-03T07:18:20.822947178-08:00" level=info msg="Daemon has completed initialization" Nov 03 07:18:21 raspberrypi systemd1: Started Docker Application Container Engine. Nov 03 07:18:21 raspberrypi dockerd[496]: time="2020-11-03T07:18:21.273201136-08:00" level=info msg="API listen on /var/run/docker.sock"
Update 1
following this SO post i was able to get the server running it seems. Editing docker.service file. I now get a different error when trying to create
C:\Users\oweng>docker-machine create --driver generic --generic-ip-address=192.168.1.2:2137 --generic-ssh-key "%HOMEPATH%/.ssh/id_rsa" --generic-ssh-user=pi remote-docker-host Running pre-create checks... Creating machine... (remote-docker-host) Importing SSH key... Waiting for machine to be running, this may take a few minutes... Error creating machine: Error waiting for machine to be running: Maximum number of retries (60) exceeded
Update 2 BMitch's comment lead me to these two tutorial which seem to be exactly what im trying todo https://code.visualstudio.com/docs/containers/ssh https://code.visualstudio.com/docs/containers/choosing-dev-environment#_remote-machine
...ANSWER
Answered 2020-Nov-04 at 22:21I wouldn't use docker-machine
for that. Support for the tool seems to be going away, and there are much easier methods.
The easiest is to set DOCKER_HOST
on your machine to be the ssh setting of the remote node:
QUESTION
I am trying to start slurmd.service using below commands but it is not successful permanently. I will be grateful if you could help me to resolve this issue!
...ANSWER
Answered 2020-Oct-06 at 11:16The log files states that it cannot bind to the standard slurmd port 6818, because there is something else using this address already.
Do you have another slurmd running on this node? Or something else listening there? Try netstat -tulpen | grep 6818
to see what is using the address.
QUESTION
I'm using Apache Guacamole 1.2.0 and XRDP 0.9.12 on Ubuntu 20.04.
When looking at the remote desktop the fonts are shown sometimes reasonably sharp (alas still less than when opening an RDP connection directly), but often become blurry/blocky, as shown in the following screenshot.
It's possible to "provoke" this by letting the browser window loosing the input focus. But it also happens while working on the remote desktop. By triggerings repaints (e.g. by going with the mouse over the text) the fonts become sharp again at the repainted screen regions while staying blurry at the other screen regions.
The RDP connection settings in Guacamole are configured like this:
I played a bit with the font smoothing and caching options, but could not improve the situation. Is there any way to keep the fonts from "going blurry"?
Best regards,
Bernd
...ANSWER
Answered 2020-Sep-18 at 09:55I reinstalled with compiled versions xrdp 0.9.14 and xorgxrdp 0.2.14 - I had to do this anyway, because file sharing does not work between Guacamole and xrdp 0.9.12.
As a "side effect", the blocky/blurry appearance is gone now, too. Either it has been fixed with the newer version or my old installation was somehow faulty.
QUESTION
I have a Ubuntu 20.04 running within WSL 2 on a Windows 10 computer.
Every time I login to Ubuntu, I had to manually execute these four line by pasting it one by one in the Windows 10 Terminal.
...ANSWER
Answered 2020-Sep-02 at 07:14You can use .bashrc file to execute commands whenever you open the terminal. It should be located at $HOME directory.
QUESTION
I'm trying to build a linux docker container with xrdp service installed so that I can remotely access the RDP service over not only the localhost interface but also the host network eth0 ip interface. I'm failing at understanding what I'm missing here with docker networking and properly launching the container. Docker running on Ubuntu Linux 20.04. As a test, when I run this docker command:
docker run --rm -d --network host --name my_nginx nginx
I observer that nginx is listening on port 80 and exposed on the localhost interface and I can access it with a browser. Verifying with:
sudo netstat -tulpn | grep 80
Now here is the linux container I'm trying to build and launch. I use a Dockerfile to launch an xrdp service.
...ANSWER
Answered 2020-Jun-30 at 22:03Here was the resolution in Dockerfile:
CMD /usr/sbin/xrdp-sesman;/usr/sbin/xrdp -n
Then launched the image with -p:
docker run -d --name kali-image -p 3389:3389 kali
Verify port is listening:
docker port kali-image
Thanks to David Maze above.
QUESTION
when i try to do rdp, it doesn't work.
...ANSWER
Answered 2020-May-02 at 20:16I assume that you created a Windows/Linux VM from Market Place image, so by default 3389 is allowed inside Windows Firewall, for Linux this port 3389 might be your service running on this port. When you create a NSG rule form traffic outside, you must use private IP of your VM.
You need to make sure that your NSG is associated either to your NIC or SUBNET of VM, so I suggest you to test it using Network Watcher, use the same Remote IP address 200.200.200.200 and port 45654, it is up to you, it must has a public IP and a port from the source. For local IP address and port you put information about your VM (private IP). In my case it is not allowed port 3389.
Another test you can do, in case that you have another VM in the same SUBNET of this one, try to telnet PRIVATE_IP 3389.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install xrdp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page