Will vnc connect to a computer asleep12/15/2023 There is probably a security check I’m failing when connecting or something. If I run x11vnc -create i creates a connection point that I can connect to, but as soon as it connects the connection is dropped again, presumibly by x11vnc im running in the ssh terminal.Īnybody know if there is an easy fix for this? I haven’t dove that deep into the x11vnc(1) - Linux man page I played around with x11vnc a little more. If I have to use tigervnc, it will have to constantly run in the background. Yeah, no, that is not the way I want to go. I’m not even sure I can just sudo systemctrl start the tigervnc and connect? As I understand it I have to reboot as well for it to work? So, connect vpn > connect ssh > enable service > reboot > reconnect ssh > connect vlc. Witch then leaves ALWAYS having it running, and I would prefer not. Well, that assumes I KNOW I will be using/needing it witch is NEVER the case. Then launch the vnc viewer and input localhost 9904 # This file assigns users to specific VNC display numbers.Įnable the service and restart the system $ systemctl enable symlink → the system (where you created the ssh-keyfile - your workstation) connect to the system using ssh and supply the identify file to be used - and specify the port mapping between your system and the remote system ssh -i ~/.ssh/vnc-ssh.key -L 9904:localhost:5904 Since this is plasma and plasma uses systemd - the first two screens will be occupied by the greeter and the session # TigerVNC User assignment In this case the system runs plasma - so session is plasma session=plasmaĮdit the service user configuration file /etc/tigervnc/ers $ sudo micro /etc/tigervnc/ers List your available sessions $ ls /usr/share/xsessionsĮdit the users ~/.vnc/config file $ micro. Would you like to enter a view-only password (y/n)? n While on the system you want to control - create a vncpassword - you can create a different password than the user pasword - it is only used by VNC $ vncpasswd Make sure the sshd service is running on the remote system - then copy the key to the system you want to view and control $ ssh-copy-id -i ~/.ssh/vnc-ssh.key the key $ ssh -i ~/.ssh/vnc-ssh.key On your viewer system - create an ssh-key - give it a convenient name $ ssh-keygen -b 2048 -t ed25519 -f ~/.ssh/vnc-ssh.key I really like the idea of starting x11vnc in ssh and THEN connecting, but as I said, if I’m not already physically logged in to my computer, x11vnc refuses to run. I know I have to figure out some bridging or something with my vpnserver, so this far, I’m just trying to get ANY vncserver working and connect to it over local network, but I seem to have walked into a wall. What I want to accomplish is, when I’m from home, connect to my openvpn server, use wake on lan and then use a vnc viewer to access my computer. I have seen people reference “realvnc” but isn’t that an arm based program? Heck, I even ran the actual find command and then used the generated directory to try to get it to work, but it refuses. I works if I’m already logged in to my physical computer, otherwise it refuses to start with either x11vnc -display :0 -auth $(find /var/run/sddm/ -type f) or changing /usr/share/sddm/scripts/Xsetup as mentioned in the wiki. I then gave up and tried to get x11vnc to work. I’m trying to understand what screen means? Screen 0 is referenced multiple times but why? Isn’t the monitor I use screen 1? Sure, I can log in with a vlc client, but when I try to physically log in to my computer, the loading screen freezes and I have to disable the vncserver service and reboot my computer. IIRC I ONLY ran this (arch wiki) first and actually got it to work (I connected and got to the sddm login screen, sharing the screen with my actual monitor), but I cant remember HOW, because after I did that I followed this Install VNC on Manjaro for Remote Access and that screwed everything up. I have been trying for a few weeks to get a vnc server running on my desktop but whatever I do, there is something not working.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |