Fedora - VNC through systemd/xinetd


Configuring Fedora 17 for Xvnc through systemd/xinetd

I found a number of links around but nothing exactly covered my setup.  I wanted to be able to run an X11 session from home as securely and efficiently as possible.  After configuring my home server like this:
  1. sudo yum install xinetd tigervnc-server-minimal
  2. sudoedit /etc/gdm/custom.conf
  3. [security]
    RelaxPermissions=0

    [xdmcp]
    Enable=1
    HonorIndirect=1

    [greeter]
    Quiver=1
  4. sudo useradd -d /var/empty/vncuser -m -s /bin/false vncuser
  5. sudoedit /etc/services
  6. vnc-1280 5910/tcp # VNC Listener
  7. sudoedit /etc/xinetd.d/vnc
  8. # BEGIN
    service vnc-1280
    {
    socket_type = stream
    protocol = tcp
    wait = no
    user = vncuser
    server = /usr/bin/Xvnc
    server_args = -inetd -query localhost -desktop 1024x768x24 -once -geometry 1024x768 -NeverShared securitytypes=none
    }
    # END
  9. sudo systemctl start xinetd.service
And you will need to restart GDM.  I couldn't get the systemctl restart prefdm stuff quite right, so I rebooted.  (Yeah, I know lose massive points for that shortcut)

I then can ssh from a remote box and bring up a GDM login:

  1. ssh -4 -a -L 5900:localhost:5910 user@6.6.7.8
  2. vncviewer -PreferredEncoding "Tight" localhost:5900



Configuring Fedora 15 for Xvnc through systemd/xinetd

I found a number of links around but nothing exactly covered my setup.  I wanted to be able to run an X11 session from home as securely and efficiently as possible.  After configuring my home server like this:
  1. sudo yum install xinetd tigervnc-server-minimal
  2. sudoedit /etc/gdm/custom.conf
  3. [security]
    RelaxPermissions=0

    [xdmcp]
    Enable=1
    HonorIndirect=1

    [greeter]
    Quiver=1

  4. sudo useradd -d /var/run/vncuser -m -s /bin/false vncuser
  5. sudoedit /etc/services
  6. vnc-1024 5900/tcp # VNC Listener
  7. sudoedit /etc/xinetd.d/vnc
  8. # BEGIN
    service vnc-1024
    {
    socket_type = stream
    protocol = tcp
    wait = no
    user = vncuser
    server = /usr/bin/Xvnc
    server_args = -inetd -query localhost -desktop 1024x768x24 -once -geometry 1024x768 -NeverShared securitytypes=none
    }
    # END
  9. sudo systemctl start xinetd.service
And you will need to restart GDM.  I couldn't get the systemctl restart prefdm stuff quite right, so I rebooted.  (Yeah, I know lose massive points for that shortcut)

I then can ssh from a remote box and bring up a GDM login:

  1. ssh -4 -a -L 5900:localhost:5900 user@6.6.7.8
  2. vncviewer -PreferredEncoding "Tight" localhost:5900

Comments

Popular posts from this blog

Xubuntu Home Server on Dell XPS 13 9370

Cygwin + syslog-ng

Installing Fedora 21 on a (late 2014) Mac Mini