Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 33

Thread: I can't start tightVNC at startup with systemd

  1. #21
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: I can't start tightVNC at startup with systemd

    I still do not understand what "you are saying." That may be due to a language difference barrier.

    I guess I'm going to have to spin up a VM , install tightVNC for myself, to see if there is any difference like you seem to be explaining, so we can talk together, with the same understanding.

    This should not be as difficult as you seem to be explaining.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  2. #22
    Join Date
    Feb 2023
    Beans
    19

    Re: I can't start tightVNC at startup with systemd

    Okay, so I'll explain as simply as possible, with the translator this time.


    When I run the vncserver command in the terminal, I can access this vnc server with my client and disconnect or connect the vpn without any problem in exchange of a password, which must mean that I have administrator privileges.


    But when I run this vncserver command automatically with my system script that I created here: /etc/systemd/system/vncserver@.service


    and that I have filled in as follows:


    [Unit]
    Description=Start TightVNC server at startup
    After=syslog.target network.target


    [Service]
    Type=forking
    User=jeremy
    Group=jeremy
    WorkingDirectory=/home/jeremy


    PIDFile=/home/jeremy/.vnc/%H:%i.pid
    ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
    ExecStart=/usr/bin/vncserver :%i
    ExecStop=/usr/bin/vncserver -kill :%i


    [Install]
    WantedBy=multi-user.target


    The server starts but in this case, unfortunately, I can't change any connection or other parameters. So my question is the following: How to launch automatically a session or I could have the administrator privileges automatically?


    See the tutorial I followed: https://www.digitalocean.com/communi...n-ubuntu-22-04

  3. #23
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: I can't start tightVNC at startup with systemd

    I am following that tutorial and seeing for myself.

    You should have those permissions associated with your userid, that you log in with, as it is a member of the sudo group. But when I finish going through this, I will test that for sure.

    EDIT: Using "translate", that was a lot easier for me to understand what you were trying to say. Thank you very much.
    Last edited by MAFoElffen; March 1st, 2023 at 08:20 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  4. #24
    Join Date
    May 2010
    Beans
    3,276

    Re: I can't start tightVNC at startup with systemd

    Can you run your apps OK with X forwarding?

  5. #25
    Join Date
    Feb 2023
    Beans
    19

    Re: I can't start tightVNC at startup with systemd

    I agree with your diagnosis, yet the same login does not give me the same rights in this case. Tt is my turn to say thank you !

    So far I've tried launching the default browser and firefox, it doesn't launch, but qttorrent does, but I'll deal with those other issues later, unless there's a link?

  6. #26
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: I can't start tightVNC at startup with systemd

    I was in the middle of an install on a VM, when my wife popped the circuit breaker with her hair dryer. LOL.

    Reinstalling it now.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  7. #27
    Join Date
    Feb 2023
    Beans
    19

    Re: I can't start tightVNC at startup with systemd

    ok, thanks! A tip for the next one, turn off the lights before using the hair dryer. hahaha

  8. #28
    Join Date
    Feb 2023
    Beans
    19

    Re: I can't start tightVNC at startup with systemd

    Hi,

    No one left in the room?

  9. #29
    Join Date
    May 2010
    Beans
    3,276

    Re: I can't start tightVNC at startup with systemd

    What is the current status?

  10. #30
    Join Date
    Feb 2023
    Beans
    19

    Re: I can't start tightVNC at startup with systemd

    I'm waiting for the return of the tests that Mafoelfen must be doing, on my side I still haven't found anything that works.

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •