[CentOS] vncserver on CentOS 7
Emmett Culley
lst_manage at webengineer.com
Fri Apr 3 20:08:09 UTC 2015
On 04/03/2015 12:11 PM, Jerry Geis wrote:
>> Is the port opened in the firewall?
>
>
>
> I stopped firewalld with "systemctl stop firewalld"
>
>
> Jerry
>
>
>
> On Fri, Apr 3, 2015 at 2:46 PM, Jerry Geis <geisj at pagestation.com> wrote:
>
>> I am trying to setup a centos 7.1 vncserver
>>
>> I cannot believe they went from a relatively easy process in 6 to the
>> "crazyness" that is 7.
>>
>> I did the following:
>> yum install tigervnc-server
>> cp /lib/systemd/system/vncserver at .service
>> /etc/systemd/system
>> systemctl daemon-reload
>> edit /etc/systemd.system/vncserver at .service and replace
>> <USER> with myuser
>> su - myuser run vncpassword to set password
>> systemctl enable vncserver at .
>>
>>
>> Says its enabled:
>> systemctl list-unit-files | grep vnc
>> vncserver at .service enabled
>>
>> using another machine to connect gives error about nothing there.
>>
>> netstat -tuln | grep 5900
>> gives nothing.
>>
>> What did I miss?
>>
>> Thanks,
>>
>> Jerry
You should:
cp /lib/systemd/system/vncserver at .service /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
More information about the CentOS
mailing list