# SLES12 XRDP

**URL:** https://forums.suse.com/t/sles12-xrdp/26305
**Category:** SLES Configure-Administer
**Created:** [November 3, 2014, 11:37pm UTC](https://forums.suse.com/t/sles12-xrdp/26305 "2014-11-03T23:37:09Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![merlin128](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@merlin128](https://forums.suse.com/u/merlin128)
#### Post date: [November 3, 2014, 11:37pm UTC](https://forums.suse.com/t/sles12-xrdp/26305/1 "2014-11-03T23:37:09Z")

</div>

using XRDP on SLES11 was easy to set up.

I’ve installed XRDP from YAST on SLES12 but cant find the service or how to start it…  
vnc is working, but port 3389 is not…

are there any instructions for XRDP on SLES12

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [November 4, 2014, 12:00am UTC](https://forums.suse.com/t/sles12-xrdp/26305/2 "2014-11-04T00:00:06Z")

</div>

> [@](#):
>
> On Mon 03 Nov 2014 09:44:02 PM CST, merlin128 wrote:
> 
> using XRDP on SLES11 was easy to set up.
> 
> I’ve installed XRDP from YAST on SLES12 but cant find the service or how  
> to start it…  
> vnc is working, but port 3389 is not…
> 
> are there any instructions for XRDP on SLES12

Hi  
With SLE 12, it uses systemd, I would imagine it’s something like;

```auto
systemctl enable xrdp.service
systemctl start xrdp.service
systemctl status xrdp.service
```

First one enables the service at start, second starts the service,  
third is to check all is well…

You may need to use tab completion after xrdp as not sure of the  
service name…

You probably need to ensure via YaST firewall that the service is added  
to the ‘allowed services’.

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

### Author: ![merlin128](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@merlin128](https://forums.suse.com/u/merlin128)
#### Post date: [November 4, 2014, 5:36pm UTC](https://forums.suse.com/t/sles12-xrdp/26305/3 "2014-11-04T17:36:52Z")

</div>

I went through the entire list and used wildcards…  
it doesn’t find anything x\* except xinetd  
it doesn’t find anything _rdp_  
and I went through the systemd-\* files and its not there either…

---

<div class="post-metadata">

### Author: ![merlin128](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@merlin128](https://forums.suse.com/u/merlin128)
#### Post date: [November 4, 2014, 6:02pm UTC](https://forums.suse.com/t/sles12-xrdp/26305/4 "2014-11-04T18:02:22Z")

</div>

I did find that running this works: /etc/xrdp/xrdp.sh start  
so what would be the best way to enable that to start when rebooted?

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [November 4, 2014, 6:25pm UTC](https://forums.suse.com/t/sles12-xrdp/26305/5 "2014-11-04T18:25:08Z")

</div>

> [@](#):
>
> On Tue 04 Nov 2014 04:04:01 PM CST, merlin128 wrote:
> 
> I did find that running this works: /etc/xrdp/xrdp.sh start  
> so what would be the best way to enable that to start when rebooted?

Hi  
Create a systemd service file (sort of like an init script, but to me  
easier 😉 )

```auto
[Unit]
Description=Start xrdp as a service
After=syslog.target

[Service]
Type=forking
PIDFile=/run/myxrdp.pid
ExecStart=/bin/bash -c '/etc/xrdp/xrdp.sh start'

[Install]
WantedBy=multi-user.target

```

Save this file to /etc/systemd/system as say myxrdp.service

```auto
systemctl start myxrdp.service
systemctl status myxrdp.service
[if all ok, enable]
systemctl enable myxrdp.service
```

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [November 4, 2014, 8:25pm UTC](https://forums.suse.com/t/sles12-xrdp/26305/6 "2014-11-04T20:25:13Z")

</div>

Hi  
Here is the current one on OBS;  
[https://build.opensuse.org/package/view\_file/server:ltsp/xrdp/xrdp.service?expand=1](https://build.opensuse.org/package/view_file/server:ltsp/xrdp/xrdp.service?expand=1)

```auto
[Unit]
Description=xrdp daemon
After=syslog.target network.target

[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/xrdp
ExecStart=/etc/xrdp/xrdp.sh start
ExecStop=/etc/xrdp/xrdp.sh stop

[Install]
WantedBy=multi-user.target
```

So I was close 😉

---

<div class="post-metadata">

### Author: ![merlin128](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@merlin128](https://forums.suse.com/u/merlin128)
#### Post date: [November 4, 2014, 9:21pm UTC](https://forums.suse.com/t/sles12-xrdp/26305/7 "2014-11-04T21:21:30Z")

</div>

The first one with /bin/bash -c just hung, it wouldn’t work…  
the second one you sent me errors on the Environment… but works if I take that line out:

[Unit]   
Description=xrdp daemon   
After=syslog.target network.target

[Service]   
Type=forking   
ExecStart=/etc/xrdp/xrdp.sh start   
ExecStop=/etc/xrdp/xrdp.sh stop

[Install]   
WantedBy=multi-user.target

this let me connect and log in, but with the xrdp.ini having port=-1  
all I get is a black screen…  
If I change the port to 5901, then it works… however I can only log in once,  
If my userid is logged into the console I cannot remote,  
or if my userid is logged into the remote, I cannot log into the console  
(but other IDs not logged in can…)

---

<div class="post-metadata">

### Author: ![merlin128](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@merlin128](https://forums.suse.com/u/merlin128)
#### Post date: [November 4, 2014, 11:39pm UTC](https://forums.suse.com/t/sles12-xrdp/26305/8 "2014-11-04T23:39:40Z")

</div>

actually the login issue is VNC, not Xvnc… even with VNC if I am already logged in at the console, VNC will not let me connect, it just closes…

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [November 5, 2014, 5:22am UTC](https://forums.suse.com/t/sles12-xrdp/26305/9 "2014-11-05T05:22:55Z")

</div>

> [@merlin128;24645](#):
>
> actually the login issue is VNC, not Xvnc… even with VNC if I am already logged in at the console, VNC will not let me connect, it just closes…

Hi  
So what OS is the client running on? Have you looked at vinagre on the server?

---

<div class="post-metadata">

### Author: ![merlin128](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@merlin128](https://forums.suse.com/u/merlin128)
#### Post date: [November 5, 2014, 7:05am UTC](https://forums.suse.com/t/sles12-xrdp/26305/10 "2014-11-05T07:05:56Z")

</div>

on windows 7 I am using a vnc viewer or RDP

I have not heard of vinagre, I will give it a try…

---

<div class="post-metadata">

### Author: ![merlin128](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@merlin128](https://forums.suse.com/u/merlin128)
#### Post date: [November 18, 2014, 11:50pm UTC](https://forums.suse.com/t/sles12-xrdp/26305/11 "2014-11-18T23:50:53Z")

</div>

The systemd service intructions you gave me worked great, but I had issues the the built in VNC…  
so I installed X11VNC and it worked much better:  
[http://software.opensuse.org/package/x11vnc](http://software.opensuse.org/package/x11vnc)
