| View previous topic :: View next topic |
| Author |
Message |
ghotiboy1
Joined: 2008-06-10 21:06 Posts: 2
|
#81| Posted: 2008-06-10 21:21 Post subject: Re: Repeater Linux version |
|
|
I added the ability to change the MAX_IDLE_CONNECTION_TIME in the ini file (I am going to use this like GoToMyPC).
Here is the diff, which you should be able to use with patch according to the patch man page. I started with Ver014.
| Code: |
diff -Naur Ver014/commondefines.h Ver014.1/commondefines.h
--- Ver014/commondefines.h 2006-04-14 14:10:33.000000000 +0000
+++ Ver014.1/commondefines.h 2008-06-10 21:33:43.000000000 +0000
@@ -42,6 +42,9 @@
#define MAX_SESSIONS_MAX 1000
#define MAX_FIFO_EVENTS 500
+#define MAX_IDLE_CONNECTION_TIME_DEFAULT 600 //Seconds
+#define MAX_IDLE_CONNECTION_TIME_MIN 300 //Seconds
+
#define LEVEL_0 0
#define LEVEL_1 1
#define LEVEL_2 2
diff -Naur Ver014/readini.cpp Ver014.1/readini.cpp
--- Ver014/readini.cpp 2006-10-20 13:05:15.000000000 +0000
+++ Ver014.1/readini.cpp 2008-06-10 21:34:15.000000000 +0000
@@ -38,6 +38,9 @@
int viewerPort = 5900;
int serverPort = 5500;
+//Max Idle Time
+unsigned int maxIdleTime = MAX_IDLE_CONNECTION_TIME_DEFAULT;
+
//Repeater allowed modes
//CONN_MODE1 = Only Mode 1,
//CONN_MODE2 = Only Mode 2,
@@ -133,6 +136,10 @@
viewerPort = iniparser_getint(dict, "general:viewerport", 5900);
serverPort = iniparser_getint(dict, "general:serverport", 5500);
+ maxIdleTime = iniparser_getint(dict, "general:maxidletime", MAX_IDLE_CONNECTION_TIME_DEFAULT);
+ if (maxIdleTime < MAX_IDLE_CONNECTION_TIME_MIN)
+ maxIdleTime = MAX_IDLE_CONNECTION_TIME_MIN;
+
maxSessions = iniparser_getint(dict, "general:maxsessions", MAX_SESSIONS_DEFAULT);
if (maxSessions > MAX_SESSIONS_MAX)
maxSessions = MAX_SESSIONS_DEFAULT;
diff -Naur Ver014/readini.h Ver014.1/readini.h
--- Ver014/readini.h 2006-10-20 12:20:08.000000000 +0000
+++ Ver014.1/readini.h 2008-06-10 21:28:55.000000000 +0000
@@ -8,6 +8,8 @@
extern int serverPort;
+extern int unsigned maxIdleTime;
+
extern int allowedModes;
extern int loggingLevel;
diff -Naur Ver014/repeater.cpp Ver014.1/repeater.cpp
--- Ver014/repeater.cpp 2006-10-20 13:07:49.000000000 +0000
+++ Ver014.1/repeater.cpp 2008-06-10 21:33:47.000000000 +0000
@@ -65,7 +65,6 @@
#define SIZE_RFBPROTOCOLVERSIONMSG 12
#define RFB_PORT_OFFSET 5900 //servers 1st display is in this port number
-#define MAX_IDLE_CONNECTION_TIME 600 //Seconds
#define MAX_HOST_NAME_LEN 250
#define MAX_PATH 250
#define MAX_HANDSHAKE_LEN 100
@@ -687,7 +686,7 @@
bool isConnectionTooOld(unsigned long timeStamp)
{
unsigned long tick = time(NULL);
- if ((tick - timeStamp) > MAX_IDLE_CONNECTION_TIME)
+ if ((tick - timeStamp) > maxIdleTime)
return true;
else
return false;
diff -Naur Ver014/uvncrepeater.ini Ver014.1/uvncrepeater.ini
--- Ver014/uvncrepeater.ini 2006-10-21 11:01:40.000000000 +0000
+++ Ver014.1/uvncrepeater.ini 2008-06-10 21:21:32.000000000 +0000
@@ -11,6 +11,10 @@
;Notice ! This IS NOT address of server or viewer, but repeater itself !
ownipaddress = 0.0.0.0
+;How long to idle before killing an unconnected server/viewer in seconds?
+;values can be [300...100000000000]
+maxidletime = 100
+
;How many sessions can we have active at the same time ?
;values can be [1...1000]
;Notice: If you actually *have* computer(s) capable
|
I'm an utter hack with C, so feel free to disparage and insult me. Or, you could include this change in the code and make me feel "Oh so happy". It would also be nice to get the latest code in SF with all the various mods (like the init scripts, mysql mods, etc).
Last edited by ghotiboy1 on 2008-06-10 21:41; edited 1 time in total |
|
| Back to top |
|
 |
pasik
Joined: 2008-04-18 07:32 Posts: 17 Topics: 2
|
#82| Posted: 2008-07-09 08:01 Post subject: Re: Repeater Linux version |
|
|
| ghotiboy1 wrote: | I added the ability to change the MAX_IDLE_CONNECTION_TIME in the ini file (I am going to use this like GoToMyPC).
I'm an utter hack with C, so feel free to disparage and insult me. Or, you could include this change in the code and make me feel "Oh so happy". It would also be nice to get the latest code in SF with all the various mods (like the init scripts, mysql mods, etc). |
Hey. Is this a bugfix or a new feature? |
|
| Back to top |
|
 |
ghotiboy1
Joined: 2008-06-10 21:06 Posts: 2
|
#83| Posted: 2008-07-09 14:04 Post subject: Re: Repeater Linux version |
|
|
| I would call it an added feature since it now allows you to not change the source and recompile if you want to change that setting. |
|
| Back to top |
|
 |
pasik
Joined: 2008-04-18 07:32 Posts: 17 Topics: 2
|
#84| Posted: 2008-07-15 10:01 Post subject: Re: Repeater Linux version |
|
|
| ghotiboy1 wrote: | | I would call it an added feature since it now allows you to not change the source and recompile if you want to change that setting. |
Ok.. can you please explain in more detail why you need/want to change this timeout? Just curious..
On the other news I still haven't had time to debug my problem with linux repeater and pchelpware.. windows repeater works just fine, linux version doesn't  |
|
| Back to top |
|
 |
Matts
Joined: 2008-07-26 12:39 Posts: 46 Topics: 6
|
#85| Posted: 2008-07-28 11:16 Post subject: Re: Repeater Linux version |
|
|
Is there a way to secure which viewer can connect using a password and username or so ?
It would also be nice to place something in the connection string of a server that is MD5-ed so only your own server that you compiled can connect.
Some advice for this maybe ? |
|
| Back to top |
|
 |
Matts
Joined: 2008-07-26 12:39 Posts: 46 Topics: 6
|
#86| Posted: 2008-07-28 23:52 Post subject: |
|
|
| safl wrote: | Can you give me any pointers to make the code store the vncid's in mysql?
I've tried but the code segfaults because of the use of pthreads in the code. |
This is still not known I think, I can't find anywhere how to store it to a MySQL DB.
I can find the schema, but that's all. |
|
| Back to top |
|
 |
X3
X3

Joined: 2007-12-11 08:50 Posts: 688 Topics: 22 Location: 51.30 N 0.10 W
|
#87| Posted: 2008-08-02 16:03 Post subject: Re: Repeater Linux version |
|
|
this is great now all I neeed is a linux viewer and server... _________________ Regards
 |
|
| Back to top |
|
 |
Matts
Joined: 2008-07-26 12:39 Posts: 46 Topics: 6
|
#88| Posted: 2008-12-02 02:49 Post subject: Re: Repeater Linux version |
|
|
| Matts wrote: | Is there a way to secure which viewer can connect using a password and username or so ?
It would also be nice to place something in the connection string of a server that is MD5-ed so only your own server that you compiled can connect.
Some advice for this maybe ? |
Can someone give some reply on this ?
It seems to be possible, but not known how  |
|
| Back to top |
|
 |
Oliver Site Admin
Joined: 2004-04-21 23:04 Posts: 872 Topics: 177 Location: Reykjavik (Iceland)
|
#89| Posted: 2008-12-10 01:18 Post subject: Re: Repeater Linux version |
|
|
Guys, I'd like to offer to set up a subversion server on the same machine as the forum and give access via svn+ssh (and SSH-public/private-key authentication) to it. Let me know whether you are willing to do this. If so, please contact me by PM. _________________ Oliver (aka Assarbad)
May the source be with you, stranger ...
My homepage | WinDirStat | DDKWizard |
|
| Back to top |
|
 |
Oliver Site Admin
Joined: 2004-04-21 23:04 Posts: 872 Topics: 177 Location: Reykjavik (Iceland)
|
#90| Posted: 2008-12-10 01:38 Post subject: Re: Repeater Linux version |
|
|
On another note. The patch created some (very minor) problem, perhaps the original archive was modified meanwhile?
In any case, I have created a package that contains both, the orginal and the patched version (directory names are obvious):
http://storage.ultravnc.info/repeater014_1.tgz _________________ Oliver (aka Assarbad)
May the source be with you, stranger ...
My homepage | WinDirStat | DDKWizard |
|
| Back to top |
|
 |
Oliver Site Admin
Joined: 2004-04-21 23:04 Posts: 872 Topics: 177 Location: Reykjavik (Iceland)
|
#91| Posted: 2008-12-10 01:42 Post subject: Re: Repeater Linux version |
|
|
Yet another thing. Is anyone interested in having this as a .deb package file? _________________ Oliver (aka Assarbad)
May the source be with you, stranger ...
My homepage | WinDirStat | DDKWizard |
|
| Back to top |
|
 |
thedarkener
Joined: 2005-09-30 17:03 Posts: 32 Topics: 6 Location: Santa Rosa, California
|
#92| Posted: 2009-01-08 20:01 Post subject: Re: Repeater Linux version |
|
|
| Oliver wrote: | | Yet another thing. Is anyone interested in having this as a .deb package file? |
I would love for this to be a .deb file!! |
|
| Back to top |
|
 |
pacificstart
Joined: 2009-02-06 05:53 Posts: 2 Topics: 1
|
#93| Posted: 2009-02-06 05:58 Post subject: Re: Repeater Linux version |
|
|
I would like to be able to run the repeater inside my Linksys WRTSL54GS router instead of having to maintain an extra box just for the repeater.
Does anybody know if a vncrepeater compiled for HyperWRT or DD-WRT exists somewhere?
Or could someone provide some guidance on how to do this compile step by step? |
|
| Back to top |
|
 |
DOL
Joined: 2008-12-19 07:17 Posts: 2
|
#94| Posted: 2009-02-22 16:36 Post subject: Re: Repeater Linux version |
|
|
Hi All,
I'm working on some bug fixes and security features for the linux repeater.
What I'm trying to find at the moment is the definitive current version of the linux repeater. There seem to be a couple of different branches out there and I'd like to make sure I'm working on the latest one
Cheers |
|
| Back to top |
|
 |
pasik
Joined: 2008-04-18 07:32 Posts: 17 Topics: 2
|
#95| Posted: 2009-03-09 20:02 Post subject: Re: Repeater Linux version |
|
|
| DOL wrote: |
I'm working on some bug fixes and security features for the linux repeater.
What I'm trying to find at the moment is the definitive current version of the linux repeater. There seem to be a couple of different branches out there and I'd like to make sure I'm working on the latest one  |
Hello.
I don't think there's any 'official' latest version.. you just have to browse through this thread and apply the patch/patches sent etc..
So maybe it's a good idea to create that svn repository now with the latest stuff/patches added? |
|
| Back to top |
|
 |
thedarkener
Joined: 2005-09-30 17:03 Posts: 32 Topics: 6 Location: Santa Rosa, California
|
#96| Posted: 2009-03-20 19:26 Post subject: Re: Repeater Linux version |
|
|
I am very interested in this new version of the Linux repeater. I am actually interested in collaborating with you all to create a simple package that does what we all want SC to do, without any configuration headache. I know it can be done, we just need to put all the pieces together and create a standardized and, more importantly, SIMPLE way to personalize it.
I personally feel that SC could be presented much better than it is now (a mix of web site info, forum threads, random code/patch downloads, etc). I'd like to call myself an experienced windows AND linux sysadmin, but it seems too difficult to put all the pieces together here. I've been using SC1 to support my clients, but with no encryption, and Vista issues, I've got to upgrade it all. I want a SC in the "Downloads" section that has a simple installer that configures your personalizations for you, enables encryption, connects to your Linux (or Win) repeater, etc. without having to jump through any hoops. All of the code is there, we just have to tie it all together.
Let's join forces and create a DEFINITIVE SC that works cross-platform. Everyone who is involved with development for encryption enabled SC and the Linux repeater, and wants to create a standard so it's not so difficult to set up (and therefore reduces the amount of chatter on the forum regarding setup questions), please reply and let's get a head count. We can go from there. I'm willing to turn this idea into reality.
Sincerely,
Jordan |
|
| Back to top |
|
 |
pasik
Joined: 2008-04-18 07:32 Posts: 17 Topics: 2
|
#97| Posted: 2009-03-22 15:02 Post subject: Re: Repeater Linux version |
|
|
| thedarkener wrote: | Let's join forces and create a DEFINITIVE SC that works cross-platform. Everyone who is involved with development for encryption enabled SC and the Linux repeater, and wants to create a standard so it's not so difficult to set up (and therefore reduces the amount of chatter on the forum regarding setup questions), please reply and let's get a head count. We can go from there. I'm willing to turn this idea into reality. |
Yep, this is a good idea! I just wish I had more time..
Based on my earlier debugging experiments (and discussions with the original author) it shouldn't be too hard to get the repeater working well.. |
|
| Back to top |
|
 |
pasik
Joined: 2008-04-18 07:32 Posts: 17 Topics: 2
|
#98| Posted: 2009-03-22 15:07 Post subject: Re: Repeater Linux version |
|
|
| Oliver wrote: | | Guys, I'd like to offer to set up a subversion server on the same machine as the forum and give access via svn+ssh (and SSH-public/private-key authentication) to it. Let me know whether you are willing to do this. If so, please contact me by PM. |
PM sent  |
|
| Back to top |
|
 |
highjinx_53
Joined: 2009-03-22 20:34 Posts: 1
|
#99| Posted: 2009-03-22 20:36 Post subject: Re: Repeater Linux version |
|
|
| I would be very interested in a secure, cross-platform Single Click solution. I have fairly extensive experience in both Windows and Linux development, including SSL implementations. Count me in... |
|
| Back to top |
|
 |
sn3ak
Joined: 2009-06-04 00:28 Posts: 1
|
#100| Posted: 2009-06-04 00:30 Post subject: Re: Repeater Linux version |
|
|
Does anyone have a copy of the mysql mod? It appears the svn site has been down for the last few days.. I would love to be able to log connections, but am not a programmer myself..
Thanks. |
|
| Back to top |
|
 |
|