Hi All,
I used to run FC19 earlier, and used to edit "etc/systemd/system/vncserver@:1.service.
Changes made in the original file (assuming, I am user "root"):
Code:
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
ExecStop=/sbin/runuser -l root -c "/usr/bin/vncserver -kill %i"
PIDFile=/root/.vnc/%H*%i.pid
Then, issue the following commands:
Code:
vncpasswd
systemctl daemon-reload
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service
systemctl status vncserver@:1.service
That way, VNC server used to start a :1 display on startup.
After I upgrade to FC25, I tried the same steps, and have the observations as below:
VNC viewer is able to connect to VNC server running, but only a Black Screen is visible.
Later, on following suggestions from a similar post, I tried to change /root/.vnc/xstartup as :
Code:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
#exec /etc/X11/xinit/xinitrc
exec /usr/bin/gnome-session
I am still unable to get the Black screen issue fixed.
NOTE: Then, I issued command: "vncserver" manually, and a display :2 started -- I'm able to view the vnc session :2.
I need the :1 vnc display to start on startup.
Any leads are highly appreciated.
Thanks in advance,
Tanbir