05-07-2021, 12:12 PM
(This post was last modified: 05-07-2021, 02:30 PM by Zebulon Walton.)
(05-07-2021, 11:17 AM)moodroid Wrote: Excellent work, thanks. Will be trying this out at the weekend.
Thanks, though obviously most of the work was done by the person who came up with the installation script! It really does work pretty seamlessly. Since it appears not to make any changes to the system aside from installing a few dependencies I decided to go ahead and build it on my main eMMC Mobian installation. Took less time to build running on the eMMC and works fine. The only issue I ran into at first is I have a firewall and forgot to add permission for incoming port 5900 from my LAN subnet. Once I did that it worked great.
Additionally I added a couple of scripts to make it easy to run and kill wayvnc from the terminal. The command "vnc" starts it in the background with nohup so you can close the terminal window after it starts. The command "kvnc" kills off wayvnc. The scripts are placed in /usr/local/bin. (These could probably be abbreviated to something like "v" and "kv" to make it super-easy to type using the Pinephone screen keyboard. Eventually I'll make screen icons to start and kill off wayvnc.)
vnc:
Code:
#!/bin/sh
# cd to /tmp so nohup.out is written there
cd /tmp
# start wayvnc with nohup, in the background
echo "Starting wayvnc..."
nohup /usr/local/bin/wayvnc 0.0.0.0 5900 &
sleep 1
# tell user to close terminal
echo "You can now close the terminal."
kvnc:
Code:
#!/bin/sh
echo "Killing wayvnc..."
# Send signal for normal exit to wayvnc process
# and rm the nohup file
killall -15 wayvnc
sleep 1
rm /tmp/nohup.out
echo "Done. You can now close the terminal."