PDA

View Full Version : SLES12 XRDP



merlin128
03-Nov-2014, 22:37
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

malcolmlewis
03-Nov-2014, 23:00
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;


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!

merlin128
04-Nov-2014, 16:36
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..

merlin128
04-Nov-2014, 17:02
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?

malcolmlewis
04-Nov-2014, 17:25
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 ;) )



[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



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!

malcolmlewis
04-Nov-2014, 19:25
Hi
Here is the current one on OBS;
https://build.opensuse.org/package/view_file/server:ltsp/xrdp/xrdp.service?expand=1


[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 ;)

merlin128
04-Nov-2014, 20:21
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..)

merlin128
04-Nov-2014, 22:39
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..

malcolmlewis
05-Nov-2014, 04:22
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?

merlin128
05-Nov-2014, 06:05
on windows 7 I am using a vnc viewer or RDP

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

merlin128
18-Nov-2014, 22:50
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