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:- sudo yum install xinetd tigervnc-server-minimal
- sudoedit /etc/gdm/custom.conf
- sudo useradd -d /var/empty/vncuser -m -s /bin/false vncuser
- sudoedit /etc/services
- sudoedit /etc/xinetd.d/vnc
- sudo systemctl start xinetd.service
[security]
RelaxPermissions=0
[xdmcp]
Enable=1
HonorIndirect=1
[greeter]
Quiver=1
vnc-1280 5910/tcp # VNC Listener
# 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
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:
- ssh -4 -a -L 5900:localhost:5910 user@6.6.7.8
- 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:- sudo yum install xinetd tigervnc-server-minimal
- sudoedit /etc/gdm/custom.conf
- sudo useradd -d /var/run/vncuser -m -s /bin/false vncuser
- sudoedit /etc/services
- sudoedit /etc/xinetd.d/vnc
- sudo systemctl start xinetd.service
[security]
RelaxPermissions=0
[xdmcp]
Enable=1
HonorIndirect=1
[greeter]
Quiver=1
vnc-1024 5900/tcp # VNC Listener
# 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
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:
- ssh -4 -a -L 5900:localhost:5900 user@6.6.7.8
- vncviewer -PreferredEncoding "Tight" localhost:5900
Comments
Post a Comment