Re: vncserver on CentOS 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 04/03/2015 01:39 PM, Jerry Geis wrote:
>> You should:
> 
>> cp /lib/systemd/system/vncserver at .service <http://lists.centos.org/mailman/listinfo/centos> /lib/systemd/system/vncserver@:#.service
> 
>> Where # is the vnc port 590# to open.  Like /lib/systemd/system/vncserver@:4.service to start a vncserver on port 5904.
> 
>> Then use `systemctl start vncserver@:4' to start that VNC server.  Remember to edit the /lib/systemd/system/vncserver@:4.service file's <USER> as you did before.
> 
>> Emmett
> 
> 
> 
> OK - I redid  and used the name vncserver@:0.service
> 
> Still not work -
> 
> 
> I then used 4 as in your example and it worked.
> 
> How do I get port 5900 ?
> 
> 
> Thanks,
> 
> jerry

Not sure why the didn't work.  I've never used 0.  You could add -rfbport 5900 to the vncserver parameters, or explicitly set the display value by replacing any %1 in the .service file with the display number preceded by a colon. e.g., ':0'.

Note that if you are hosting any kvm VMs, a running vm might be grabbing the 5900 port.  Which could explain why the :0 file name didn't work.

Emmett

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux