Ed Greshko wrote:

> OK.   Sorry to have misunderstood precisely what you want to do. I
> now have it working as I suspect you need it.

Great. Thanks.

> 1.  Yes, you need KDM.  So, if you've not installed it do so.
> 
> 2.  Edit /etc/kde/kdm/kdmrc the [Xdmcp] section Enable=true.
> 
> 3.  Go to /lib/systemd/system and copy xvnc@.service and xvnc.socket
> to /etc/systemd/system

Done previously.

> 4.  Edit /etc/systemd/system/xvnc@.service and delete the User=nobody
> line.

Done now. Wasn't done before.

> 5.  Now this part is "temporary" until I determine the "proper" way
> to fix it.  Edit /etc/sysconfig/selinux and change it to be
> permissive.  If you don't do that then Xvnc won't be able to bind to
> port 5900.

Running selinux disabled.

> 6.  Enable port 5900 on your firewall.
> 
> 7.  If you've not already done it "systemctl --force enable kdm"

Done previously.

> 8.  Reboot.
> 
> Your console should now be showing KDM as your login screen.
> 
> And you now should be able to connect with something like remmina
> using VNC protocol and get presented with a KDM login screen.
> 
> If you run into trouble, let me know.

Almost. But the service isn't starting.

# systemctl status -l xvnc@:.service
  xvnc@:.service - XVNC per Connection Daemon
   Loaded: loaded (/etc/systemd/system/xvnc@.service; enabled; vendor
preset: disabled)
   Active: failed (Result: resources)

Jul 07 18:27:08 server systemd[1]: xvnc@:.service: Got more than one socket.
Jul 07 18:27:08 server systemd[1]: xvnc@:.service: Failed to run 'start'
task: Invalid argument
Jul 07 18:27:08 server systemd[1]: Failed to start XVNC per Connection
Daemon.
Jul 07 18:27:08 server systemd[1]: xvnc@:.service: Unit entered failed
state.
Jul 07 18:27:08 server systemd[1]: xvnc@:.service: Failed with result
'resources'.
Jul 07 18:27:08 server systemd[1]: Starting XVNC per Connection Daemon...

# systemctl status -l xvnc.socket
● xvnc.socket - XVNC Server
   Loaded: loaded (/etc/systemd/system/xvnc.socket; enabled; vendor
preset: disabled)
   Active: failed (Result: resources)
   Listen: 10.76.185.91:5901 (Stream)
 Accepted: 0; Connected: 0

Jul 07 18:27:06 server systemd[1]: xvnc.socket: Failed to listen on
sockets: Cannot assign requested address
Jul 07 18:27:06 server systemd[1]: Failed to listen on XVNC Server.
Jul 07 18:27:06 server systemd[1]: xvnc.socket: Unit entered failed state.
Jul 07 18:27:06 server systemd[1]: Starting XVNC Server.

Here's my files.

# cd /etc/systemd/system
# cat xvnc@.service
[Unit]
Description=XVNC per Connection Daemon
After=syslog.target

[Service]
Type=simple
ExecStart=-/usr/bin/Xvnc -inetd -query localhost -geometry 1024x768
-depth 24 -once -SecurityTypes=None -fp /usr/share/X11/fonts/misc
StandardInput=socket
StandardError=syslog

[Install]
WantedBy=multi-user.target
# cat xvnc.*
[Unit]
Description=XVNC Server

[Socket]
ListenStream=10.76.185.91:5900
Accept=yes

[Install]
WantedBy=sockets.target
-- 
 Dave Close

 "Age is a very high price to pay for maturity." -- Tom Stoppard
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to