Re: [FUG-BR] UltraVNC Repeater (Single Click) no BSD

2008-08-02 Por tôpico Welkson Renny de Medeiros
Já encontrei, só incluir o #include limits.h  no repeater.cpp

Bom fim de semana.

Welkson

- Original Message - 
From: Welkson Renny de Medeiros [EMAIL PROTECTED]
To: freebsd@fug.com.br
Sent: Saturday, August 02, 2008 8:45 AM
Subject: [FUG-BR] UltraVNC Repeater (Single Click) no BSD


Bom dia pessoal!

Estou tentando usar o UltraVNC Single Click (gera um pequeno EXE, torno de
200k), para facilitar trabalho do pessoal do suporte técnico. A bronca é que
ele precisa de um repetidor no servidor para jogar a tela para o
computador de determinado operador... já vi no site e só tem para Linux ou
Windows... baixei os fontes, tentei compilar e tive alguns problemas... os
fontes são bem pequenos, mas meu C/C++ tá fraquinho...

Site do Repeater:
http://www.uvnc.com/addons/repeater.html

Fontes para Linux:
http://ufpr.dl.sourceforge.net/sourceforge/ultravnc/repeater_linux007.zip

Quando rodo um make no FreeBSD:
[EMAIL PROTECTED] ~/repeater/Ver007]# make
g++ -Wall -c repeater.cpp
repeater.cpp: In function 'long int ParseId(char*)':
repeater.cpp:396: error: 'LONG_MAX' was not declared in this scope
*** Error code 1

Aparentemente é uma variável que não existe, ou uma constante... não sei...
estou apanhando aqui... me ajudem para eu não ter que instalar esse treco
for Windows.

Mais detalhes sobre o Single Click:
http://www.uvnc.com/pchelpware/sc/index.html

Abraço,

-- 
Welkson Renny de Medeiros
Focus Automação Comercial
Desenvolvimento / Gerência de Redes
[EMAIL PROTECTED]



  Powered by 

   (__)
\\\'',)
  \/  \ ^
  .\._/_)

  www.FreeBSD.org

-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] UltraVNC Repeater (Single Click) no BSD

2008-08-02 Por tôpico Luiz Otavio O Souza
- Original Message - 

(...)

Site do Repeater:
http://www.uvnc.com/addons/repeater.html

Fontes para Linux:
http://ufpr.dl.sourceforge.net/sourceforge/ultravnc/repeater_linux007.zip

Quando rodo um make no FreeBSD:
[EMAIL PROTECTED] ~/repeater/Ver007]# make
g++ -Wall -c repeater.cpp
repeater.cpp: In function 'long int ParseId(char*)':
repeater.cpp:396: error: 'LONG_MAX' was not declared in this scope
*** Error code 1

Aparentemente é uma variável que não existe, ou uma constante... não sei...
estou apanhando aqui... me ajudem para eu não ter que instalar esse treco
for Windows.

Mais detalhes sobre o Single Click:
http://www.uvnc.com/pchelpware/sc/index.html

Abraço,

-- 
Welkson Renny de Medeiros
Focus Automação Comercial
Desenvolvimento / Gerência de Redes
[EMAIL PROTECTED]
---

Welkson,

Segue o diff necessário para compilar o repeater no FreeBSD, porém não 
testei o código, só compilei.

[]'s
-luiz


%diff -u repeater.cpp.orig repeater.cpp
--- repeater.cpp.orig   2008-08-02 08:52:14.0 -0300
+++ repeater.cpp2008-08-02 08:52:25.0 -0300
@@ -33,6 +33,7 @@
 #include sys/stat.h
 #include sys/socket.h
 #include sys/time.h
+#include sys/limits.h
 #include stdio.h
 #include stdlib.h
 #include string.h


-- Compilação e teste simples -
%make
g++ -Wall -c repeater.cpp
g++ -Wall -c repeaterproc.cpp
g++ -Wall -c openbsd_stringfuncs.cpp
g++ -Wall -o repeater repeater.o repeaterproc.o openbsd_stringfuncs.o
%./repeater
UltraVnc Linux Repeater version 0.07
UltraVnc start_listening_on_port(): socket() initialized
UltraVnc start_listening_on_port(): setsockopt() success
UltraVnc start_listening_on_port(): bind() succeeded to port 5900
UltraVnc start_listening_on_port(): listen() succeeded
UltraVnc start_listening_on_port(): socket() initialized
UltraVnc start_listening_on_port(): setsockopt() success
UltraVnc start_listening_on_port(): bind() succeeded to port 5500
UltraVnc start_listening_on_port(): listen() succeeded
UltraVnc route_connections(): starting select() loop, terminate with ctrl+c
^CUltraVnc main(): relaying done.
%

-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] UltraVNC Repeater (Single Click) no BSD

2008-08-02 Por tôpico Aristeu Gil Alves Jr
Estranho. O Repeater tem no ports.
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] UltraVNC Repeater (Single Click) no BSD

2008-08-02 Por tôpico Welkson Renny de Medeiros
rsrsrs

Né isso cara, por um acidente acabei encontrando lá no ports, e funciona 
direitinho, carrega no rc.conf, etc... acabei esquecendo de avisar.

Acabei de finalizar os ajustes no client/Windows, ficou com 250kb, ficou 
show de bola... tudo alterado, tradução, logomarca, ícone, etc.

Tá tudo funcionando direitinho... só não consegui ativar as chaves (rc4)... 
o client do Windows dar um GPF louco e fecha... mas sem o rc4 funfa 
perfeito. (o plugin MSRC4Plugin.dsm carrega normalmente)... fiz tudo como 
mostra no manual... gerei o rc4 no servidor, incluí o rc4 no zip do client, 
incluí o parâmetro -plugin no helpdesk.txt) etc, etc, etc.

É isso, obrigado pelas dicas e bom fim de semana.

Welkson


- Original Message - 
From: Aristeu Gil Alves Jr [EMAIL PROTECTED]
To: Lista Brasileira de Discussão sobre FreeBSD (FUG-BR) 
freebsd@fug.com.br
Sent: Saturday, August 02, 2008 1:29 PM
Subject: Re: [FUG-BR] UltraVNC Repeater (Single Click) no BSD


Estranho. O Repeater tem no ports.
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd