Hello, who can help with vncrepeater? I have installed it from System/Software, i see it there, but i don't see it in System/Startup. When i logged in i see vncrepeater.conf in /etc but it doesn't work i think.
What happens if you run vncrepeater
from the command line? There doesn't seem to be an init script provided.
If this doesn't help, you'll need to provide a description of what you're attempting to do with vncrepeater. I've only heard of this used in a large data center full of VNC Servers. Also, it does not offer [much] security.
Here is:
Next time, please make sure you "sandwich" your text between two rows of backtick characters ` (which themselves will be invisible in the preview) looking in something like this in the editor:
```
Your Pasted Text as preformatted text with fixed width font
1
1111 (note with fixed-width fonts the numbers are right-aligned)
```
but looking like this in the rendered forum:
Your Pasted Text as preformatted text with fixed width font
1
1111 (note with fixed-width fonts the numbers are right-aligned)
That's much easier to comprehend than a picture.
The output looks fine, it should work now. So basically, there is no init script, you will have to create your own or add the command to /etc/rc.local
.
Oh, ok, tryed to start vncrepeater
root@OpenWrt:/etc# vim vncrepeater.conf
root@OpenWrt:/etc# vncrepeater
UltraVnc Linux Repeater version 0.14
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): viewerPort : 5900
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): serverPort : 5500
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): maxSessions: 100
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): loggingLevel: 3
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): ownIpAddress (0.0.0.0 = listen all interfaces) : 0.0.0.0
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): runAsUser (if started as root) : uvncrep
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): Mode 1 connections allowed : Yes
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): Mode 2 connections allowed : Yes
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): Mode 1 allowed server port (0=All) : 0
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): Mode 1 requires listed addresses : No
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): Mode 2 requires listed ID numbers : No
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): useEventInterface: false
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): eventListenerHost : localhost
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): eventListenerPort : 2002
UltraVnc Tue Jun 20 19:53:56 2023 > listInitializationValues(): useHttpForEventListener : false
UltraVnc Tue Jun 20 19:53:56 2023 > startListeningOnPort(): socket() initialized
UltraVnc Tue Jun 20 19:53:56 2023 > startListeningOnPort(): setsockopt() success
UltraVnc Tue Jun 20 19:53:56 2023 > startListeningOnPort(): bind() to (ip: 0.0.0.0, port: 5900) succeeded
UltraVnc Tue Jun 20 19:53:56 2023 > startListeningOnPort(): listen() succeeded
UltraVnc Tue Jun 20 19:53:56 2023 > startListeningOnPort(): socket() initialized
UltraVnc Tue Jun 20 19:53:56 2023 > startListeningOnPort(): setsockopt() success
UltraVnc Tue Jun 20 19:53:56 2023 > startListeningOnPort(): bind() to (ip: 0.0.0.0, port: 5500) succeeded
UltraVnc Tue Jun 20 19:53:56 2023 > startListeningOnPort(): listen() succeeded
UltraVnc FATAL Tue Jun 20 19:53:56 2023 > dropRootPrivileges(): getpwnam() failed
UltraVnc Tue Jun 20 19:53:56 2023 > main(): relaying done.
root@OpenWrt:/etc# Connection to 192.168.1.1 closed by remote host.
Connection to 192.168.1.1 closed.
Now i have vncrepeater under my linux mint, i want to move it into router under OpenWRT. Some people connect to my repeater, and i connect to their workstations with TurboVNC.
my rc.local looks like this
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
exit 0
"/root/irq0"
~
~
~
~
~
I just noticed that the call to vncrepeater
reported an error:
UltraVnc FATAL Tue Jun 20 19:53:56 2023 > dropRootPrivileges(): getpwnam() failed
You will have to fix this first (at first glance, I'd say it tries to run as a different user which doesn't exist).
OK - the command exit 0
quits the execution, so your command "/root/irq0"
is never executed. You need to change the order. You could try to add vncrepeater
to this file, somewhat like:
vncrepeater &
You can also create a procd init script, see the instructions in the Wiki.