Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Linux hosted repeater?

Simple, Free, Open Source UltraVNC Wrapper Supporting Windows and Mac OSX
Post Reply
ljac
8
8
Posts: 9
Joined: 2010-08-16 04:27

Linux hosted repeater?

Post by ljac »

Has anyone got one of these working with chunkvnc?

I downloaded an old repeater which doesnt seem to work so was wondering if there might be other resources for a repeater hosted on a linux box.

Thanks,

KD-LJ
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Linux hosted repeater?

Post by supercoe »

I've had great luck with Karl's repeater on my linux vps.
http://www.karlrunge.com/x11vnc/ultravnc_repeater.pl
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
ljac
8
8
Posts: 9
Joined: 2010-08-16 04:27

Re: Linux hosted repeater?

Post by ljac »

Thanks, I did come across that link but it looks out of my scope. is there a dummies manual for it somewhere?
Hammer
Posts: 5
Joined: 2009-01-20 18:33

Re: Linux hosted repeater?

Post by Hammer »

Let me see what I can do for you. It took a bit of tweaking, but I got it running on a Ubuntu server at work. Give me a few days as I am not sure how my week is going to unfold.

One of the things I wanted to get out of the script was a stable server that would restart automatically after the server was rebooted. It has now been running for about three months and I have had no issues with it.
Hammer
Posts: 5
Joined: 2009-01-20 18:33

Re: Linux hosted repeater?

Post by Hammer »

After I looked at it; I only did a minor modification to a couple of lines of the script for filename consistency, but it will work as it is. Here is a list of everything I did.


~~~~~~~~~~~~~~~~~~~~~~~


First, I used "The Perfect Server" documentation found at the link below, to build the Ubuntu 8.04.04 server:

http://www.howtoforge.com/perfect-server-ubuntu8.04-lts


I don't install everything, like the web server or MySQL server. I just get a bare bones server up and running and apply any patches / fixes.


~~~~~~~~~~~~~~~~~~~~~~~


Once I finished building the server, I created a folder under /etc called "ultravnc_repeater" ("mkdir /etc/ultravnc_repeater") and put in a copy of the script Supercoe mentioned above.

The next step was to schedule the script to run every time the server was rebooted. You need to modify the CRONTAB file in /etc ("nano /etc/crontab" or "vi /etc/crontab") and add the line:

Code: Select all

@reboot root daemon /etc/ultravnc_repeater/ultravnc_repeater.pl


This is how my CRONTAB looks:

Code: Select all

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user	command
@reboot root daemon /etc/ultravnc_repeater/ultravnc_repeater.pl
17 *	* * *	root    cd / && run-parts --report /etc/cron.hourly
25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#


That's it. Just reboot the server.

Hopefully, this is straight forward enough for you. The only thing that gave me any trouble was trying to figure out the syntax for the CRONTAB file.


~~~~~~~~~~~~~~~~~~~~~~~


NOTE: I have the gut feeling I am missing something. I cannot remember if I had to do something for the daemon service to work properly on the server. Please let me know if you run in to any problems.
Last edited by Hammer on 2010-11-22 17:47, edited 1 time in total.
ljac
8
8
Posts: 9
Joined: 2010-08-16 04:27

Re: Linux hosted repeater?

Post by ljac »

Thats great!

Got it working, much easier than I thought.

Thanks for your help!
clayb226
8
8
Posts: 21
Joined: 2010-08-26 09:32

Re: Linux hosted repeater?

Post by clayb226 »

Hammer wrote:After I looked at it; I only did a minor modification to a couple of lines of the script for filename consistency, but it will work as it is. Here is a list of everything I did.


~~~~~~~~~~~~~~~~~~~~~~~


First, I used "The Perfect Server" documentation found at the link below, to build the Ubuntu 8.04.04 server:

http://www.howtoforge.com/perfect-server-ubuntu8.04-lts


I don't install everything, like the web server or MySQL server. I just get a bare bones server up and running and apply any patches / fixes.


~~~~~~~~~~~~~~~~~~~~~~~


Once I finished building the server, I created a folder under /etc called "ultravnc_repeater" ("mkdir /etc/ultravnc_repeater") and put in a copy of the script Supercoe mentioned above.

The next step was to schedule the script to run every time the server was rebooted. You need to modify the CRONTAB file in /etc ("nano \etc\crontab" or "vi \etc\crontab") and add the line:

Code: Select all

@reboot root daemon /etc/ultravnc_repeater/ultravnc_repeater.pl


This is how my CRONTAB looks:

Code: Select all

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user	command
@reboot root daemon /etc/ultravnc_repeater/ultravnc_repeater.pl
17 *	* * *	root    cd / && run-parts --report /etc/cron.hourly
25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#


That's it. Just reboot the server.

Hopefully, this is straight forward enough for you. The only thing that gave me any trouble was trying to figure out the syntax for the CRONTAB file.


~~~~~~~~~~~~~~~~~~~~~~~


NOTE: I have the gut feeling I am missing something. I cannot remember if I had to do something for the daemon service to work properly on the server. Please let me know if you run in to any problems.
I am sure that you can just put the path in the /etc/rc.local file, and make sure it is executable. The server should run this file at the end of each multiuser runlevel.
Hammer
Posts: 5
Joined: 2009-01-20 18:33

Re: Linux hosted repeater?

Post by Hammer »

I'm a Linux novice and cannot speak with any authority about your suggestion. I'm not sure what the benefit is versus what I had done. Perhaps you could elaborate more for me.
clayb226
8
8
Posts: 21
Joined: 2010-08-26 09:32

Re: Linux hosted repeater?

Post by clayb226 »

Hammer wrote:I'm a Linux novice and cannot speak with any authority about your suggestion. I'm not sure what the benefit is versus what I had done. Perhaps you could elaborate more for me.
Just one place to put the path, no cron to set up or nothing like that. The system should start the job every time it is booted. It may try to run as root though.
Hammer
Posts: 5
Joined: 2009-01-20 18:33

Re: Linux hosted repeater?

Post by Hammer »

I finally got around to this and I think I prefer your method better.

I migrated the repeater from a Ubuntu 8.04 server to a Ubuntu 10.04 server and had problems with restarting the service using the crontab file. By modifying the rc.local file all was well.

Thanks for the alternative suggestion.
Last edited by Hammer on 2010-11-22 17:46, edited 2 times in total.
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Linux hosted repeater?

Post by redge »

repeater.pl is allow to be run on a "web server only allowed" with perl script support ?

is it better or identical as "standard" repeater running on linux ?

thank you for important clarification.

If better or equivalent
that let me new choice for faster network repeater support for free to everyone :-)

Actual swiss.ultravnc.info is very slow 10Mbit/s compared to very fast 100Mbit/s network of vserver.homeftp.org that far away from Switzerland !!!!!!!
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Post Reply