Welcome to the Linux Foundation Forum!

Lab 5.8 error, vncserver@42 not found

justineratliff
justineratliff Posts: 7
edited July 2022 in LFS211 Class Forum

I cannot get the vnc service to begin. I made the /etc/systemd/vncserver@.service file. Here is my file configuration:

Unit]
Description=Remote desktop service (VNC) on port :%I
After=syslog.target network.target

[Service]
Type=forking
User=justine

ExecStartPre=-/usr/bin/vncserver -kill :%i
ExecStart=/usr/bin/vncserver :%i -localhost
PIDFile=/home/student/.vnc/%H:%i.pid
ExecStop=-/usr/bin/vncserver -kill :%i

[Install]
WantedBy=multi-user.target

I changed ownership to justine using chown command.
sudo systemctl start vncserver42.service gives the "service not found " error

I must be missing something. Any help apppreciated

Answers

  • fcioanca
    fcioanca Posts: 2,183

    Hi @justineratliff

    What course is this related to? We recommend that you post course-specific questions in the course forum - this way, the course forum moderators will help out, and it will be helpful for other learners encountering the same issues - forums are not just a way to ask for help, but also a great resource, as you can search to see what other questions or issues were raised before, and if there are already solutions posted.

    Thank you,
    Flavia
    The Linux Foundation Training Team

  • luisviveropena
    luisviveropena Posts: 1,250
    edited July 2022

    Moved to the correct forum.

  • lee42x
    lee42x Posts: 380

    Please examine 5.8.3 for the syntax for starting the server on port 42 and 43, the @# tells systemd what port number to use.

Categories

Upcoming Training