How-To: Remote Control Your Phone from Desktop via VNC - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +--- Thread: How-To: Remote Control Your Phone from Desktop via VNC (/showthread.php?tid=19455) |
How-To: Remote Control Your Phone from Desktop via VNC - biketool - 10-10-2024 Do you wish there was an easy hands-free way to interact with your PP's touch GUI while sitting in front of your desktop system? Would you like to compose, read, and send SMSs and IMs using your full size keyboard? Interact with your mobile apps using your desktop's mouse, and screen? Is there a way to cut and paste between your phone and Desktop? Maybe you would like to initiate and end hands-free or speakerphone calls without touching your phone? These and more are all possible using VNC to remotely interact with the GUI of your Pinephone. Let's start with your Pinephone; mine is running Mobian but the instructions should work for other distros; use your system's package installer. (this is for systems running Weyland for video, x11(and mir/surfaceflinger) uses a different VNC server) Code: sudo apt install wayvnc Code: #! /bin/bash Code: chmod +x V Code: ./V This setup when run on your Weyland video server Pinephone will let your login when the VNC server is running on your PP without any security or password config on either side. The VNC server script above is launched and killed manually so it is not running all of the time in this config, you save precious battery when mobile. If you wanted you could make a desktop entry to give you a GUI launcher for the sell script, just kill that shell window to kill the server. Now install the VNC viewer GUI on your desktop Linux machine(other OSs also have VNC client software) Code: sudo apt instal tigervnc-viewer In options I recommend reviewing the cut/paste options in tigervnc-viewer Input tab, clicking the 'show dot when no cursor' in the also in Input tab so you have a way to see your mouse in some server configs, as well as ensuring that in the Security tab the encryption and authentication options including none as in my example are to your preference. This is all you need to remote control your phone via desktop; it is a near perfect way to interact with your Weyland Pinephone. This setup also works if you are using the PP as your wifi(or USB cable or Bluetooth) tether hotspot just be sure to update the PP's IP address. This quick tryout setup is only viable in a situation where the phone and laptop are on a private WLAN with no possibility of other users, any other situation where the VNC server is running gives all users who can scan the network for open VNC port free GUI access to your PP with no barriers. It is easy to set a user name and password as well as encryption for the connection, a secure setup requires editing a .conf file on your PP with username and password as well as generating an RSA key. see https://github.com/any1/wayvnc If you have trouble with cut/paste showing boxes rather than text it is a font matching problem and I have solved this by using the on-phone web browser for some non-English languages rather than my desktop's; there are better ways to solve the problem though. VIew the wayvnc git for secure setup and running instructions https://github.com/any1/wayvnc I find that if I am doing heavy interaction with my PP while in my office VNC, an SSH session, as well as Filezilla to move files around makes everything so easy I rarely need to touch my charging PP except to wake it up if it goes into standby mode and disconnects from the WLAN. RE: How-To: Remote Control Your Phone from Desktop via VNC - Zebulon Walton - 10-11-2024 Yes, wayvnc works quite well, I've been using it for a few years now. What I do though is have it listening only to localhost (127.0.0.1) connections. Then port 5900 is tunneled through an ssh session to use it. (The ssh server runs automatically at boot time and permits key-based login only, password logins are disabled.) RE: How-To: Remote Control Your Phone from Desktop via VNC - biketool - 10-12-2024 (10-11-2024, 09:36 AM)Zebulon Walton Wrote: Yes, wayvnc works quite well, I've been using it for a few years now. What I do though is have it listening only to localhost (127.0.0.1) connections. Then port 5900 is tunneled through an ssh session to use it. (The ssh server runs automatically at boot time and permits key-based login only, password logins are disabled.) A great way to get bulletproof security, and easier if only used occasionally. SSH is probably one of the most hardened services. |