| View previous topic :: View next topic |
| Author |
Message |
thedarkener
Joined: 2005-09-30 17:03 Posts: 32 Topics: 6 Location: Santa Rosa, California
|
#61| Posted: 2007-04-16 07:13 Post subject: Re: Repeater Linux version |
|
|
I tried building this but it looks like the source at https://svn.lokkju.com/svn/UltraVNC_SC/trunk/Repeater/Linux/ might be missing some files (in a missing 'uuid' dir?)
This is what I get from 'make':
]# make
g++ -Wall -DEVENTS_ENABLE -DEVENTS_USE_MYSQL -I/usr/include/mysql -c repeater.cpp
In file included from repeater.cpp:58:
repeaterevents.h:33:23: error: uuid/uuid.h: No such file or directory
repeaterevents.h:84: error: 'uuid_t' does not name a type
repeaterevents.h:98: error: 'uuid_t' does not name a type
repeaterevents.h:99: error: 'uuid_t' does not name a type
repeater.h:35: error: 'uuid_t' does not name a type
repeater.cpp:109: error: 'uuid_t' does not name a type
repeater.cpp:156: error: 'uuid_t' does not name a type
repeater.cpp: In function 'int addServerList(int, long int, char*)':
repeater.cpp:461: error: 'uuid_t' was not declared in this scope
repeater.cpp:461: error: expected `;' before 'uid'
repeater.cpp:462: error: 'uid' was not declared in this scope
repeater.cpp:462: error: 'uuid_generate' was not declared in this scope
repeater.cpp:463: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:463: error: 'uuid_copy' was not declared in this scope
repeater.cpp: In function 'int addViewerList(int, long int, char*)':
repeater.cpp:532: error: 'uuid_t' was not declared in this scope
repeater.cpp:532: error: expected `;' before 'uid'
repeater.cpp:533: error: 'uid' was not declared in this scope
repeater.cpp:533: error: 'uuid_generate' was not declared in this scope
repeater.cpp:534: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:534: error: 'uuid_copy' was not declared in this scope
repeater.cpp: In function 'void connectionRemover(int, repeaterInfo*, int)':
repeater.cpp:788: error: 'struct connectionEvent' has no member named 'uid'
repeater.cpp:788: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:788: error: 'uuid_copy' was not declared in this scope
repeater.cpp:791: error: 'struct connectionEvent' has no member named 'uid'
repeater.cpp:791: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:791: error: 'uuid_copy' was not declared in this scope
repeater.cpp: In function 'void acceptConnection(int, int)':
repeater.cpp:1431: error: 'struct connectionEvent' has no member named 'uid'
repeater.cpp:1431: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:1431: error: 'uuid_copy' was not declared in this scope
repeater.cpp:1446: error: 'struct connectionEvent' has no member named 'uid'
repeater.cpp:1446: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:1463: error: 'struct sessionEvent' has no member named 'viewer_uid'
repeater.cpp:1463: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:1464: error: 'struct sessionEvent' has no member named 'server_uid'
repeater.cpp:1464: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:1520: error: 'struct connectionEvent' has no member named 'uid'
repeater.cpp:1520: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:1520: error: 'uuid_copy' was not declared in this scope
repeater.cpp:1564: error: 'struct sessionEvent' has no member named 'viewer_uid'
repeater.cpp:1564: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:1564: error: 'uuid_copy' was not declared in this scope
repeater.cpp:1565: error: 'struct sessionEvent' has no member named 'server_uid'
repeater.cpp:1565: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:1609: error: 'struct connectionEvent' has no member named 'uid'
repeater.cpp:1609: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:1609: error: 'uuid_copy' was not declared in this scope
repeater.cpp:1648: error: 'struct sessionEvent' has no member named 'viewer_uid'
repeater.cpp:1648: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:1648: error: 'uuid_copy' was not declared in this scope
repeater.cpp:1649: error: 'struct sessionEvent' has no member named 'server_uid'
repeater.cpp:1649: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp: In function 'void cleanUpAfterRepeaterProcExit(int, pid_t)':
repeater.cpp:1860: error: 'struct sessionEvent' has no member named 'viewer_uid'
repeater.cpp:1860: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp:1860: error: 'uuid_copy' was not declared in this scope
repeater.cpp:1861: error: 'struct sessionEvent' has no member named 'server_uid'
repeater.cpp:1861: error: 'struct _repeaterInfo' has no member named 'uid'
repeater.cpp: In function 'int main(int, char**)':
repeater.cpp:2040: error: 'process_uid' was not declared in this scope
repeater.cpp:2040: error: 'uuid_generate' was not declared in this scope
make: *** [repeater.o] Error 1
Thanks for any help! |
|
| Back to top |
|
 |
thedarkener
Joined: 2005-09-30 17:03 Posts: 32 Topics: 6 Location: Santa Rosa, California
|
#62| Posted: 2007-04-16 18:18 Post subject: Re: Repeater Linux version |
|
|
| Nevermind... I was trying to compile by downloading the individual source files from the URL above instead of downloading the ZIP archive. Worked fine. |
|
| Back to top |
|
 |
pfaf
Joined: 2007-06-13 18:50 Posts: 5 Location: Piraeus - Greece
|
#63| Posted: 2007-06-13 19:07 Post subject: Re: Repeater Linux version |
|
|
Hello to all,
I have just compiled and checked version 0.14 of ultravnc repeater on a Debian machine without any problem. I have taken the version from
http://koti.mbnet.fi/jtko/uvncrepeater/
I think it is a wonderful peace of software and i would like to thank everyone that has contributed to its development.
I would like to post here a sample init.d script.
After compilation you only need to move the
repeater
executable to /usr/sbin folder renaming it to
uvncrepeatersvc
and install the script below to /etc/init.d
This script will create a bash script called
uvncrepeater-log
and will use the stantard start-stop-daemon command to start and stop the repeater service.
| Code: |
#!/bin/sh
#######
#Filename: uvncrepeater
#Location: /etc/init.d
#Author: Fafakos Panayiotis - Greece
#######
PATH=/sbin:/bin
UVNCREPPID=/var/run/uvncrepeater.pid
UVNCREPLOG=/var/log/uvncrepeater.log
UVNCREPRUN=/usr/sbin/uvncrepeater-log
UVNCREPSVC=/usr/sbin/uvncrepeatersvc
#if service file does not exist then exit the script
if test ! -x $UVNCREPSVC ; then
echo $UVNCREPSVC file was not found.
echo Exiting...
exit 2
fi
#Create the file to start the service if it does not exist
if test ! -x $UVNCREPRUN ; then
echo '#!/bin/sh' > $UVNCREPRUN
echo 'exec' $UVNCREPSVC '2>>' $UVNCREPLOG >> $UVNCREPRUN
chmod +x $UVNCREPRUN
fi
case "$1" in
start)
echo -n "Running UltraVNC Repeater..."
start-stop-daemon --start -b -m -p $UVNCREPPID --exec $UVNCREPRUN -- $UVNCREPLOG
echo "."
;;
stop)
echo "Stopping UltraVNC Repeater..."
start-stop-daemon --stop -p $UVNCREPPID
rm $UVNCREPPID
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
|
Kind regards to all,
Panos.
Greece. _________________ Fafakos Panayiotis
http://www.wisdomsoftware.net |
|
| Back to top |
|
 |
PChaos
Joined: 2007-06-14 16:10 Posts: 2
|
#64| Posted: 2007-06-14 16:14 Post subject: Re: Repeater Linux version |
|
|
*tearsinmyeyes*
A dream came true. The repeater got realy configurable and there is an init script to run it as a real service. It´s wonderful.
Uhm, only one thing came to my mind. What about possibility to give some different place or just filename for the configuration file?
Last edited by PChaos on 2007-06-14 16:36; edited 1 time in total |
|
| Back to top |
|
 |
pfaf
Joined: 2007-06-13 18:50 Posts: 5 Location: Piraeus - Greece
|
#65| Posted: 2007-06-14 18:39 Post subject: Re: Repeater Linux version |
|
|
| PChaos wrote: | *tearsinmyeyes*
A dream came true. The repeater got realy configurable and there is an init script to run it as a real service. It´s wonderful.
Uhm, only one thing came to my mind. What about possibility to give some different place or just filename for the configuration file? |
What we need is an install script. Perhaps something like:
make; make install
To change the file locations we would only need to change the parameters in the beginning of the init.d script.
To change the location of the .ini file (suppose we want to add it under /etc/uvnc/ folder) we would only need to change the line
| Code: | echo 'exec' $UVNCREPSVC '2>>' $UVNCREPLOG >> $UVNCREPRUN
|
to
| Code: | echo 'exec' $UVNCREPSVC /etc/uvnc/uvncrepeater.ini '2>>' $UVNCREPLOG >> $UVNCREPRUN
|
Then this file could be a define like
| Code: |
UVNCREPINI=/etc/uvnc/uvncrepeater.ini
|
and the above line would change to
| Code: |
echo 'exec' $UVNCREPSVC $UVNCREPINI '2>>' $UVNCREPLOG >> $UVNCREPRUN
|
Kind regards to all,
Panos. _________________ Fafakos Panayiotis
http://www.wisdomsoftware.net |
|
| Back to top |
|
 |
Lyttek
Joined: 2007-09-28 22:29 Posts: 1
|
#66| Posted: 2007-09-28 22:34 Post subject: Re: Repeater Linux version |
|
|
Hello!
this looks like it would be perfect for me, but I'm on CentOS... hence, no start-stop-daemon...
before I go rewriting the scripts, has anyone else already done this?
tia! |
|
| Back to top |
|
 |
trustinfo
Joined: 2007-03-01 22:38 Posts: 4 Topics: 2
|
#67| Posted: 2007-10-09 08:48 Post subject: Re: Repeater Linux version |
|
|
Executing /etc/rc.d/init.d/repeater start ..
Running UltraVNC Repeater.../etc/rc.d/init.d/repeater: line 61: start-stop-daemon: command not found
i have this error with your script |
|
| Back to top |
|
 |
ultra33
Joined: 2007-10-16 21:00 Posts: 7
|
#68| Posted: 2007-10-18 18:40 Post subject: Re: Repeater Linux version |
|
|
I have install the linux and test it but I do not know more about linux and spcially how we will run the source code. _________________ work at home |
|
| Back to top |
|
 |
jwiley2
Joined: 2007-10-25 18:13 Posts: 2
|
#69| Posted: 2007-10-25 18:55 Post subject: Re: Repeater Linux version |
|
|
I've done a lot of mods to the repeater install process so the install is as seamless as possible.
problem is this: i cannot upload the package to the forum, and i have no public accessible place to send it!
i'd love to share it with the users of this forum, any suggestions? |
|
| Back to top |
|
 |
Rudi De Vos Admin & Developer
Joined: 2004-04-23 10:21 Posts: 3890 Topics: 205
|
|
| Back to top |
|
 |
DaveOB
Joined: 2008-03-14 16:59 Posts: 1
|
#71| Posted: 2008-03-14 17:05 Post subject: Re: Repeater Linux version |
|
|
A special Thank You to the developers of the Linux Repeater.
I am starting the repeater manually ( using a Telnet Session from my Windows PC ) using ./repeater uvncrepeater.ini
I have tried ./repeater uvncrepeater.ini >> logfile.txt but it creates the logfile.txt but does not put anything into it.
Is there any way to automatically copy the output to a text file so that we can analyse which PChelpWare viewer user is generating traffic ? And if so, can we measure the amount of traffic passing through the ports for each specific session ID number ? |
|
| Back to top |
|
 |
jwiley2
Joined: 2007-10-25 18:13 Posts: 2
|
#72| Posted: 2008-03-14 17:49 Post subject: Re: Repeater Linux version |
|
|
ummm
i'll be honest, i haven't fidgeted around with vnc since my last post here....
and as such i have no access to box i can test on (all prod and unstable at the moment).
but try this....
instead of appending to a file, why not try tee?
i.e.
./repeater uvncrepeater.ini | tee -a /tmp/test.log
additionally, if you use the tarfile i packaged up there is a startup script ala /etc/init.d/uvncrepeater (which had been previously posted here) which should log things to "/var/log/uvncrepeater.log"
give it a shot! |
|
| Back to top |
|
 |
olest
Joined: 2008-04-14 18:49 Posts: 7 Topics: 1
|
#73| Posted: 2008-04-14 18:57 Post subject: Re: Repeater Linux version |
|
|
I have downloaded the linux port of the UVNCrepeater v0.14, but have discovered one problem.
When at viewer get connected and disconnect again without having had a connection to a server, the repeater does not detect the disconnect.
When a server then later connects with the same id as the above viewer it gets an error.
I have only testet it with PcHelpWare, but it works fine with the Windows repeater and my sniffer show that the viewer does send a disconnect that just doesn't get detected by the linux repeater.
Could anyone help me to fix this? |
|
| Back to top |
|
 |
olest
Joined: 2008-04-14 18:49 Posts: 7 Topics: 1
|
#74| Posted: 2008-04-17 18:15 Post subject: Re: Repeater Linux version |
|
|
After a lot of testing is seems the be the viewer that do not disconnect correct.
After about 300 seconds the connections get closed correct by the viewer (viewer timeout). |
|
| Back to top |
|
 |
pasik
Joined: 2008-04-18 07:32 Posts: 17 Topics: 2
|
#75| Posted: 2008-04-18 09:33 Post subject: Re: Repeater Linux version |
|
|
| olest wrote: | After a lot of testing is seems the be the viewer that do not disconnect correct.
After about 300 seconds the connections get closed correct by the viewer (viewer timeout). |
I tried ultravnc repeater v0.14 for linux too..
Did you get it running without problems with some patching? What did you do/patch?
I noticed that if you first connect the server, and viewer after that, the connection is OK..
But if you first connect the viewer, and then the server, the connection wont establish and fails..
This was with using pchelpware v1.0. |
|
| Back to top |
|
 |
olest
Joined: 2008-04-14 18:49 Posts: 7 Topics: 1
|
|
| Back to top |
|
 |
pasik
Joined: 2008-04-18 07:32 Posts: 17 Topics: 2
|
#77| Posted: 2008-04-21 05:17 Post subject: Re: Repeater Linux version |
|
|
Are you sure about that?
pchelpware works OK with the windows version of the repeater.. ie. same server and viewer works ok when you just change the repeater.. |
|
| Back to top |
|
 |
olest
Joined: 2008-04-14 18:49 Posts: 7 Topics: 1
|
#78| Posted: 2008-04-21 15:06 Post subject: Re: Repeater Linux version |
|
|
The linux repeater checks the socket every 5 sec. with:
n = recv(socket, buf, SIZE_RFBPROTOCOLVERSIONMSG, MSG_DONTWAIT);
If the connection has been propperly disconnected it should get 0 bytes, but it gets 12 bytes from the time the viewer connects until the about 300 sec. timeout in the viewer closes the connection.
I don't now why it seems to work with the windows repeater. |
|
| Back to top |
|
 |
pasik
Joined: 2008-04-18 07:32 Posts: 17 Topics: 2
|
#79| Posted: 2008-04-22 06:59 Post subject: Re: Repeater Linux version |
|
|
| olest wrote: | The linux repeater checks the socket every 5 sec. with:
n = recv(socket, buf, SIZE_RFBPROTOCOLVERSIONMSG, MSG_DONTWAIT);
If the connection has been propperly disconnected it should get 0 bytes, but it gets 12 bytes from the time the viewer connects until the about 300 sec. timeout in the viewer closes the connection.
I don't now why it seems to work with the windows repeater. |
Hmm.. does that mean there's something the repeater should recv() already earlier? |
|
| Back to top |
|
 |
pasik
Joined: 2008-04-18 07:32 Posts: 17 Topics: 2
|
#80| Posted: 2008-05-22 10:30 Post subject: Re: Repeater Linux version |
|
|
| Any progress or new information about this bug? I haven't had time to test more lately.. |
|
| Back to top |
|
 |
|