VNCSERVER Install Problems
by swamprat from LinuxQuestions.org on (#5BSYR)
Greetings all,
I want to install vncserver in my Debian 10 system running Parrot Linux 4.10 with all available updates applied.
Being more or less a newbie I found a web site illustrating how to install the web server.
All went well until I got into the part where you have to configure the vncserver configuration file.
There are some parts of this I just don't understand although I have tried to get this correct there are still errors upon startup of the server.
Below is a copy of the entries inserted into the configuration file and a statement made by the author as to the fact that certain entries have to be changed which I don't understand.
sudo vi /etc/systemd/system/vncserver@.service
Paste the following content as given below:
[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target
*
[Service]
Type=forking
User=root
Group=root
WorkingDirectory=/home/root
*
PIDFile=/root/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i
ExecStop=/usr/bin/vncserver -kill :%i
*
[Install]
WantedBy=multi-user.target
Don't forget to change the user, group, and working directory information.
I'm logged in as a normal user (not root although I can su to root). I do not su to root any time during the entire install process.
I don't understand the following entries, what user, group and working directory should be inserted in the above?
Do I use my id etc or a user who will use the vncserver to log in?
My home directory is as follows:
$pwd************************************************************************************************ ********
/home/howardr
[howardr@parrot][~]
Thanks for any help.


I want to install vncserver in my Debian 10 system running Parrot Linux 4.10 with all available updates applied.
Being more or less a newbie I found a web site illustrating how to install the web server.
All went well until I got into the part where you have to configure the vncserver configuration file.
There are some parts of this I just don't understand although I have tried to get this correct there are still errors upon startup of the server.
Below is a copy of the entries inserted into the configuration file and a statement made by the author as to the fact that certain entries have to be changed which I don't understand.
sudo vi /etc/systemd/system/vncserver@.service
Paste the following content as given below:
[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target
*
[Service]
Type=forking
User=root
Group=root
WorkingDirectory=/home/root
*
PIDFile=/root/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i
ExecStop=/usr/bin/vncserver -kill :%i
*
[Install]
WantedBy=multi-user.target
Don't forget to change the user, group, and working directory information.
I'm logged in as a normal user (not root although I can su to root). I do not su to root any time during the entire install process.
I don't understand the following entries, what user, group and working directory should be inserted in the above?
Do I use my id etc or a user who will use the vncserver to log in?
My home directory is as follows:
$pwd************************************************************************************************ ********
/home/howardr
[howardr@parrot][~]
Thanks for any help.