• 0 Posts
  • 24 Comments
Joined 7 months ago
cake
Cake day: March 3rd, 2024

help-circle









  • BEFORE you mess with your VNC, it is extremely important to have a backup connection. So either you have the ability to connect your pi to a monitor and a keyboard locally, or you really, really should setup SSH before you mess with your VNC server.

    Use SSH with a Certificate, described here: https://raspberrypi-guide.github.io/networking/connecting-via-ssh (“passwordless”) This guide doesn’t show how to set up SSH, but how to install a key in a more detailed way: https://pimylifeup.com/raspberry-pi-ssh-keys/

    The good thing: Once you got this working, you’re basically done. Just ditch VNC and go straight to SSH from now on. It’s more secure and has better performance usually.

    Yet, if you like your VNC and want to continue using it, you first connect via SSH do not do this while using a VNC connection! Now, first, you do all this: https://www.tomshardware.com/how-to/install-vnc-raspberry-pi-os then you do a

    sudo update-alternatives --list vncserver
    sudo update-alternatives --list vncserver-x11
    

    you should see tightvnc listed there. Don’t freak out if one of the two returns an error that the application was not found. That’s okay. Not all versions of Raspbian used the same application name in the past, so I listed them both. As long as one of them works, you’re fine.

    Then, you do a

    sudo update-alternatives --config vncserver
    sudo update-alternatives --config vncserver-x11
    

    and change it to tightvnc. now you can stop your running VNC:

    sudo vncserver-x11 -service -stop && sudo vncserver -service -stop
    sudo vncserver-x11 -service -start && sudo vncserver -service -start
    

    Once you did that, connect to tightvnc as described in the article. If this works, do sudo apt uninstall realvnc

    You should now be able to connect via VNC without weird account bullshit.











  • Norgur@fedia.iotolinuxmemes@lemmy.worldhell yeah mint
    link
    fedilink
    arrow-up
    25
    arrow-down
    1
    ·
    edit-2
    6 months ago

    If you never do more than update, upgrade, install and remove, then just skip every post recommending different distros for their package manager. For you (as for most users), it will not make the slightest difference if you are using apt, packman, whatever else. If there’s something you want your package manager to do but it can’t, you’ll know. And if it comes to that, you can start diving into the different managers and which one is best suited for the specific thing you want to do.

    But it has to be mentioned that aptitude does not have super cow powers of course.