Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   What is the gimmick to run tightvnc from windows to gentoo (http://www.linux-archive.org/gentoo-user/126207-what-gimmick-run-tightvnc-windows-gentoo.html)

Harry Putnam 07-17-2008 01:19 AM

What is the gimmick to run tightvnc from windows to gentoo
 
Tightvnc installed with server flag and seems to be working, at least
as far as viewing from gentoo through servers running on windows
machines. But when tried the other way round I get no connecton and no
log output from the gentoo server.

Just a message on the windows machine
`Failed to connect to Xxx.xxx.xxx'.

There is some log info on the windows side bit it appears to only
involve the server and nothing gets written to that file when I
attempt to start the viewer on a windows xp box aimed at the linux
box.

The words `verbose' or `debug' do not appear anywhere in vncserver man
pages. How can I get some debug info out of this thing?

Or maybe someone knows what is needed to get the connection to work.

--
gentoo-user@lists.gentoo.org mailing list

David Blamire-Brown 07-17-2008 09:04 PM

What is the gimmick to run tightvnc from windows to gentoo
 
I did this a while back and I got it working by tunnelling via SSH (using putty on windows).
But I can't remember the exact details off the top of my head. It may be worth googling that set-up. I seem to remember thinking it felt like a kludge and I can't quite remember why I ended up doing it, but I do remember that it worked.

BB

On Wed, 16 Jul 2008 20:19:45 -0500
Harry Putnam <reader@newsguy.com> wrote:

> Tightvnc installed with server flag and seems to be working, at least
> as far as viewing from gentoo through servers running on windows
> machines. But when tried the other way round I get no connecton and no
> log output from the gentoo server.
>
> Just a message on the windows machine
> `Failed to connect to Xxx.xxx.xxx'.
>
> There is some log info on the windows side bit it appears to only
> involve the server and nothing gets written to that file when I
> attempt to start the viewer on a windows xp box aimed at the linux
> box.
>
> The words `verbose' or `debug' do not appear anywhere in vncserver man
> pages. How can I get some debug info out of this thing?
>
> Or maybe someone knows what is needed to get the connection to work.
>
> --
> gentoo-user@lists.gentoo.org mailing list
>
--
gentoo-user@lists.gentoo.org mailing list

Mick 07-17-2008 09:36 PM

What is the gimmick to run tightvnc from windows to gentoo
 
On Thursday 17 July 2008, David Blamire-Brown wrote:
> I did this a while back and I got it working by tunnelling via SSH (using
> putty on windows). But I can't remember the exact details off the top of my
> head. It may be worth googling that set-up. I seem to remember thinking it
> felt like a kludge and I can't quite remember why I ended up doing it, but
> I do remember that it worked.
>
> BB
>
> On Wed, 16 Jul 2008 20:19:45 -0500
>
> Harry Putnam <reader@newsguy.com> wrote:
> > Tightvnc installed with server flag and seems to be working, at least
> > as far as viewing from gentoo through servers running on windows
> > machines. But when tried the other way round I get no connecton and no
> > log output from the gentoo server.
> >
> > Just a message on the windows machine
> > `Failed to connect to Xxx.xxx.xxx'.
> >
> > There is some log info on the windows side bit it appears to only
> > involve the server and nothing gets written to that file when I
> > attempt to start the viewer on a windows xp box aimed at the linux
> > box.
> >
> > The words `verbose' or `debug' do not appear anywhere in vncserver man
> > pages. How can I get some debug info out of this thing?
> >
> > Or maybe someone knows what is needed to get the connection to work.

I tried connecting to a MSWindows RealVNC server with krdc and I remember that
I couldn't login. It could be latency across the pond, or network traffic
causing the login to time out. Eventually I ran out of patience/time and
decided to remove the login passwd and instead lock down access to the
RealVNC, MSWindows box and its network, from my IP address only.

I never discovered why authentication would not work.
--
Regards,
Mick

Harry Putnam 07-19-2008 01:18 PM

What is the gimmick to run tightvnc from windows to gentoo
 
Mick <michaelkintzios@gmail.com> writes:

> I tried connecting to a MSWindows RealVNC server with krdc and I remember that
> I couldn't login. It could be latency across the pond, or network traffic
> causing the login to time out. Eventually I ran out of patience/time and
> decided to remove the login passwd and instead lock down access to the
> RealVNC, MSWindows box and its network, from my IP address only.

Sounds like this is in the opposite direction from what I'm talking
about.

I'm not experiencing any problems connecting with linux client to
windows server (tightvnc both ends).

I'm not sure what `krdc' that you mention, is, but would suggest you
try tightvnc on both ends. It worked for me with no problems.

However trying to connect with windows (tightVnc) client to Linux
(tightVNc) server fails for me without any log info or debug info
whatever. Makes it hard to see how to debug the problem.

--
gentoo-user@lists.gentoo.org mailing list

Harry Putnam 07-19-2008 01:29 PM

What is the gimmick to run tightvnc from windows to gentoo
 
David Blamire-Brown <david@blamire-brown.co.uk> writes:

> I did this a while back and I got it working by tunnelling via SSH
> (using putty on windows). But I can't remember the exact details
> off the top of my head. It may be worth googling that set-up. I seem
> to remember thinking it felt like a kludge and I can't quite
> remember why I ended up doing it, but I do remember that it worked.

Well at least that sounds promising. I did see mention of that in
some of my google searches but I wondered, If I had to use ssh, why
wouldn't I just pull the X session on linux across with ssh alone.
And forget about VNC.

I think I've heard that can be done....I think I may have even done it
sometime way back, but VNC is so easy the other direction it seems it
should be just as easy connecting windows vnc client to gentoo vnc
server.

For some reason the vnc server appears not to have any debug or
verbose switches. But not sure even if it did, since it appears the
connection is simply rejected, if that would help.

I'd like to see some log info as to why the connection is rejected.

I have sysklogd setup to report everything (*.* in syslog.conf) to a
/var/log/debug file so tailing that while I attempt the connection I'm
not seeing any evidence a connection is being rejected or even seen.

Seems there should be some way to see what is happening maybe from the
windows side but again no log info is being generated.

--
gentoo-user@lists.gentoo.org mailing list

Mick 07-19-2008 03:31 PM

What is the gimmick to run tightvnc from windows to gentoo
 
On Saturday 19 July 2008, Harry Putnam wrote:

> However trying to connect with windows (tightVnc) client to Linux
> (tightVNc) server fails for me without any log info or debug info
> whatever. Makes it hard to see how to debug the problem.

Have you checked the Linux firewall settings?

Have you set the allow/deny or whatever access settings Linux TightVNC has in
place correctly for your client's IP address?
--
Regards,
Mick

Josh Cepek 07-21-2008 05:15 AM

What is the gimmick to run tightvnc from windows to gentoo
 
Harry Putnam wrote:

David Blamire-Brown <david@blamire-brown.co.uk> writes:


I did this a while back and I got it working by tunnelling via SSH
(using putty on windows). But I can't remember the exact details
off the top of my head. It may be worth googling that set-up. I seem
to remember thinking it felt like a kludge and I can't quite
remember why I ended up doing it, but I do remember that it worked.


Well at least that sounds promising. I did see mention of that in
some of my google searches but I wondered, If I had to use ssh, why
wouldn't I just pull the X session on linux across with ssh alone.
And forget about VNC.


Session persistence. [1] With VNC I can create a full desktop session (I
use Fluxbox because it's lightweight) and connect to it as needed from
any system with network access. This is great for my IM app. I lock my
firewall rules down to allow VNC only from localhost and ssh tunnel all
my connections (even on the LAN) because VNC's auth scheme is dreadfully
insecure.



I think I've heard that can be done....I think I may have even done it
sometime way back, but VNC is so easy the other direction it seems it
should be just as easy connecting windows vnc client to gentoo vnc
server.

For some reason the vnc server appears not to have any debug or
verbose switches. But not sure even if it did, since it appears the
connection is simply rejected, if that would help.

I'd like to see some log info as to why the connection is rejected.


How are you starting TightVNC from Linux? If you use something like
`vncserver :1` then you should get lots of info in ~/.vnc/`uname
-n`:1.log . This should provide plenty of info/debug info for you.


I'd start by starting the VNC server and making sure that the log file
indicates it started correctly, which should look like [2]. Then try to
connect from a remote host; if you get a connection refused message then
chances are good you have a firewall problem, so make sure the proper
port is open (5901 for :1, or 5801 via the java http applet.) Try nmap
from the Windows host to verify port status if you're unsure. I've
included a connection log sample at [3].


[1]: You could look into NoMachine's NX server (or the GPL-flavor of
this project) as well for the persistent execution benefit, but I've had
bad luck with NX sessions terminating on me. Plus you can't resume an NX
you start under Linux on a Windows host or vise-versa, so it's not as
useful to me as VNC is. YMMV.


[2]: Sample VNC session startup log segment:
20/07/08 23:59:17 Xvnc version TightVNC-1.3.9
20/07/08 23:59:17 Copyright (C) 2000-2007 TightVNC Group
20/07/08 23:59:17 Copyright (C) 1999 AT&T Laboratories Cambridge
20/07/08 23:59:17 All Rights Reserved.
20/07/08 23:59:17 See http://www.tightvnc.com/ for information on TightVNC
20/07/08 23:59:17 Desktop name 'X' (seraph:1)
20/07/08 23:59:17 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
20/07/08 23:59:17 Listening for VNC connections on TCP port 5901
20/07/08 23:59:17 Listening for HTTP connections on TCP port 5801
20/07/08 23:59:17 URL http://seraph:5801
xrdb: No such file or directory
xrdb: can't open file '/home/josh/.Xresources'
BScreen::BScreen: managing screen 0 using visual 0x22, depth 24
Xlib: extension "RANDR" missing on display ":1.0".

[3]: Sample VNC connection log segment (this connection initiated from
127.0.0.1, the VNC server's localhost address):

20/07/08 23:59:24 Got connection from client 127.0.0.1
20/07/08 23:59:24 Using protocol version 3.8
20/07/08 23:59:24 Enabling TightVNC protocol extensions
20/07/08 23:59:49 Full-control authentication passed by 127.0.0.1
20/07/08 23:59:49 Pixel format for client 127.0.0.1:
20/07/08 23:59:49 32 bpp, depth 24, little endian
20/07/08 23:59:49 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
20/07/08 23:59:49 no translation needed
20/07/08 23:59:49 Using tight encoding for client 127.0.0.1
20/07/08 23:59:49 Using image quality level 6 for client 127.0.0.1
20/07/08 23:59:49 Enabling X-style cursor updates for client 127.0.0.1
20/07/08 23:59:49 Enabling cursor position updates for client 127.0.0.1
20/07/08 23:59:49 Enabling LastRect protocol extension for client 127.0.0.1

--
Josh

Eric Martin 07-22-2008 02:09 PM

What is the gimmick to run tightvnc from windows to gentoo
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Harry Putnam wrote:
> Josh Cepek <josh.cepek@usa.net> writes:
>
>> Harry Putnam wrote:
>>> David Blamire-Brown <david@blamire-brown.co.uk> writes:
>>>
>>>> I did this a while back and I got it working by tunnelling via SSH
>>>> (using putty on windows). But I can't remember the exact details
>>>> off the top of my head. It may be worth googling that set-up. I seem
>>>> to remember thinking it felt like a kludge and I can't quite
>>>> remember why I ended up doing it, but I do remember that it worked.
>>> Well at least that sounds promising. I did see mention of that in
>>> some of my google searches but I wondered, If I had to use ssh, why
>>> wouldn't I just pull the X session on linux across with ssh alone.
>>> And forget about VNC.
>> Session persistence. [1] With VNC I can create a full desktop session
>> (I use Fluxbox because it's lightweight) and connect to it as needed
>> from any system with network access. This is great for my IM app. I
>> lock my firewall rules down to allow VNC only from localhost and ssh
>> tunnel all my connections (even on the LAN) because VNC's auth scheme
>> is dreadfully insecure.
>
> [...]
>
>
> I had expected to be able to connect to the running X desktop but
> apparently that isn't going to happen. In other words I cannot view
> the running desktop from a remote machine but am forced to view a new
> or different desktop where none of the things I have running on :0 are
> available.

I'm pretty sure x11vnc will do that. I do know there's a vnc server
that will let you grab your current xsession and I think that's the one.
Somebody please correct me if I'm wrong.
HTH
- --
Eric Martin
Key fingerprint = D1C4 086E DBB5 C18E 6FDA B215 6A25 7174 A941 3B9F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiF6gkACgkQdheOldgSlQj16ACgmRTVt7cN94 VyUje1DHOfEYCm
L68AoMHMGLjy2LaWp2O7I8CjVykqu69e
=WtZp
-----END PGP SIGNATURE-----

Harry Putnam 07-22-2008 03:04 PM

What is the gimmick to run tightvnc from windows to gentoo
 
Josh Cepek <josh.cepek@usa.net> writes:

> Harry Putnam wrote:
>> David Blamire-Brown <david@blamire-brown.co.uk> writes:
>>
>>> I did this a while back and I got it working by tunnelling via SSH
>>> (using putty on windows). But I can't remember the exact details
>>> off the top of my head. It may be worth googling that set-up. I seem
>>> to remember thinking it felt like a kludge and I can't quite
>>> remember why I ended up doing it, but I do remember that it worked.
>>
>> Well at least that sounds promising. I did see mention of that in
>> some of my google searches but I wondered, If I had to use ssh, why
>> wouldn't I just pull the X session on linux across with ssh alone.
>> And forget about VNC.
>
> Session persistence. [1] With VNC I can create a full desktop session
> (I use Fluxbox because it's lightweight) and connect to it as needed
> from any system with network access. This is great for my IM app. I
> lock my firewall rules down to allow VNC only from localhost and ssh
> tunnel all my connections (even on the LAN) because VNC's auth scheme
> is dreadfully insecure.

[...]

Thanks for the tips... it turned out to be nothting worse than needing
to add the display number to the connect attempt like: host:display

I had only been putting the host name since that is how I connect
between windows machines or from linux to windows

I had expected to be able to connect to the running X desktop but
apparently that isn't going to happen. In other words I cannot view
the running desktop from a remote machine but am forced to view a new
or different desktop where none of the things I have running on :0 are
available.

Drew Tomlinson 07-24-2008 03:13 PM

What is the gimmick to run tightvnc from windows to gentoo
 
Eric Martin wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Harry Putnam wrote:


Josh Cepek <josh.cepek@usa.net> writes:



Harry Putnam wrote:


David Blamire-Brown <david@blamire-brown.co.uk> writes:



I did this a while back and I got it working by tunnelling via SSH
(using putty on windows). But I can't remember the exact details
off the top of my head. It may be worth googling that set-up. I seem
to remember thinking it felt like a kludge and I can't quite
remember why I ended up doing it, but I do remember that it worked.


Well at least that sounds promising. I did see mention of that in
some of my google searches but I wondered, If I had to use ssh, why
wouldn't I just pull the X session on linux across with ssh alone.
And forget about VNC.


Session persistence. [1] With VNC I can create a full desktop session
(I use Fluxbox because it's lightweight) and connect to it as needed
from any system with network access. This is great for my IM app. I
lock my firewall rules down to allow VNC only from localhost and ssh
tunnel all my connections (even on the LAN) because VNC's auth scheme
is dreadfully insecure.


[...]


I had expected to be able to connect to the running X desktop but
apparently that isn't going to happen. In other words I cannot view
the running desktop from a remote machine but am forced to view a new
or different desktop where none of the things I have running on :0 are
available.



I'm pretty sure x11vnc will do that. I do know there's a vnc server
that will let you grab your current xsession and I think that's the one.
Somebody please correct me if I'm wrong.

I can confirm that x11vnc is the one. I use it often.

Cheers,

Drew

--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.com


All times are GMT. The time now is 10:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.