WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tightvcn - how to view the desktop screen?  (Read 5589 times)

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
tightvcn - how to view the desktop screen?
« on: May 19, 2009, 04:35:59 PM »
Using tc2.0rc21
Please remind me how to view a remote tc desktop screen using tightvcn.

I have the tightvcn extension loaded and am using tightvcn viewer on a windows machine.
I started the server using "Xvnc :1".

I connect the viewer using 192.168.0.120::5901 and see a blank screen.

I don't know what "To start some apps on screen 1, such as JWM:
DISPLAY=:1.0 jwm" means. In tc2.0rc21 I suppose FLWM must be used.

Edit: Also Tried "Xvnc :DISPLAY=:1.0 flwm" - no joy.

Code: [Select]
tc@box:/usr/local/bin$ ./Xvnc :1
Couldn't open RGB_DB '/usr/lib/X11/rgb'
19/05/09 14:51:04 Xvnc version TightVNC-1.3.9
19/05/09 14:51:04 Copyright (C) 2000-2007 TightVNC Group
19/05/09 14:51:04 Copyright (C) 1999 AT&T Laboratories Cambridge
19/05/09 14:51:04 All Rights Reserved.
19/05/09 14:51:04 See http://www.tightvnc.com/ for information on TightVNC
19/05/09 14:51:04 Desktop name 'x11' (box:1)
19/05/09 14:51:04 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
19/05/09 14:51:04 Listening for VNC connections on TCP port 5901
Font directory '/usr/lib/X11/fonts/Speedo/' not found - ignoring
Font directory '/usr/lib/X11/fonts/Type1/' not found - ignoring
Font directory '/usr/lib/X11/fonts/100dpi/' not found - ignoring



« Last Edit: May 19, 2009, 06:28:22 PM by bigpcman »
big pc man

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11046
Re: tightvcn - how to view the desktop screen?
« Reply #1 on: May 20, 2009, 08:19:52 AM »
Start the applications in another console :)

Or background the Xvnc server, if you wish to use the same console.
The only barriers that can stop you are the ones you create yourself.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: tightvcn - how to view the desktop screen?
« Reply #2 on: May 20, 2009, 09:52:36 AM »
Start the applications in another console :)

Or background the Xvnc server, if you wish to use the same console.

I'm trying to start Xvnc via ssh. As you can see below flwm is not recognized.
Code: [Select]
tc@box:/usr/local/bin$ Xvnc :DISPLAY=:1.0 flwm
Unrecognized option: flwm
use: X [:<display>] [option]
-a #                   mouse acceleration (pixels)
-ac                    disable access control restrictions
-audit int             set audit trail level
-auth file             select authorization file
bc                     enable bug compatibility
-bs                    disable any backing store support
-c                     turns off key-click
big pc man

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11046
Re: tightvcn - how to view the desktop screen?
« Reply #3 on: May 20, 2009, 10:12:26 AM »
Backgrounding example:

Quote
Xvnc :1 &
DISPLAY=:1.0 aterm
The only barriers that can stop you are the ones you create yourself.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: tightvcn - how to view the desktop screen?
« Reply #4 on: May 20, 2009, 11:30:15 AM »
Thanks for your patience. Something is still not working right. aterm aborts.

Code: [Select]
root@box:~# Xvnc :1 &
Couldn't open RGB_DB '/usr/lib/X11/rgb'
20/05/09 09:19:05 Xvnc version TightVNC-1.3.9
20/05/09 09:19:05 Copyright (C) 2000-2007 TightVNC Group
20/05/09 09:19:05 Copyright (C) 1999 AT&T Laboratories Cambridge
20/05/09 09:19:05 All Rights Reserved.
20/05/09 09:19:05 See http://www.tightvnc.com/ for information on TightVNC
20/05/09 09:19:05 Desktop name 'x11' (box:1)
20/05/09 09:19:05 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
20/05/09 09:19:05 Listening for VNC connections on TCP port 5901
Font directory '/usr/lib/X11/fonts/Speedo/' not found - ignoring
Font directory '/usr/lib/X11/fonts/Type1/' not found - ignoring
Font directory '/usr/lib/X11/fonts/100dpi/' not found - ignoring
root@box:~# DISPLAY=:1.0 aterm
aterm: can't load color "white", colorID = 0, (29)
aterm: can't load color "White", colorID = 0, (29)
aterm: aborting
big pc man

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11046
Re: tightvcn - how to view the desktop screen?
« Reply #5 on: May 20, 2009, 12:01:45 PM »
Xvnc apparantly expects the color database (rgb.txt) to be in a different place (/usr/lib/X11/) than it is in TC. A solution would be to symlink it from where it is currently to where Xvnc expects it.

I'll add the symlink to the extension later.

edit: fixed extension uploaded
« Last Edit: May 20, 2009, 12:27:31 PM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: tightvcn - how to view the desktop screen?
« Reply #6 on: May 20, 2009, 02:36:37 PM »
OK, now I can see the remote desktop with vncviewer. Thanks for the extension update.

However, I can't see the entire desktop. The viewer screen size is smaller than the actual desktop. Full screen mode makes no difference. Also, the background is not being represented as on the tc system. Any ideas?

Edit 1: Alright I fixed the screen size by using "Xvnc -geometry widthxheight :1 &"

But wbar is not on the screen and the background is still wrong.

Edit 2: I wonder? The info button on the vnc viewer reports: "connected to root's x11 desktop". I guess that would explain why I'm not seeing the user tc desktop. I'm entering the DISPLAY command as user tc so what do I do to see the user tc desktop? I started Xvnc as user tc and that changed the connection to user tc's desktop. But still no wbar.
« Last Edit: May 20, 2009, 03:20:10 PM by bigpcman »
big pc man

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11046
Re: tightvcn - how to view the desktop screen?
« Reply #7 on: May 20, 2009, 03:18:45 PM »
Xvnc does not let you remotely use the existing screen - it creates another screen. It's the beauty of linux systems, this isn't possible on windows systems :)

Some of the other VNC extensions can use the existing screen. I don't really know which one, as I prefer to use X/ssh over other remote protocols, sorry.

One could also make the Xvnc screen the only screen, by replacing the Xvesa line in .xsession with the desired Xvnc line (and using :0 instead of :1). But then the computer couldn't be controlled locally.
The only barriers that can stop you are the ones you create yourself.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: tightvcn - how to view the desktop screen?
« Reply #8 on: May 20, 2009, 03:25:23 PM »
Well now that explains everything. I presume X/ssh presents the x desktop over a ssh remote connection. How do I get this to work through dropbear?
big pc man

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: tightvcn - how to view the desktop screen?
« Reply #9 on: May 20, 2009, 03:30:55 PM »
Quote
Xvnc does not let you remotely use the existing screen
x0vncserver and x11vnc extensions let you use the native screen.

Quote
I prefer to use X/ssh over other remote protocols
You can also use x11vnc with SSL
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: tightvcn - how to view the desktop screen?
« Reply #10 on: May 20, 2009, 03:37:43 PM »
I have been using putty as my ssh client. I noticed it has x11 options to enable x11 forwarding and authorization. Let me guess, it's not that easy and I will have to load some kind of x11 program on my windows machine.

Edit: I noticed there are no tcz versions of the x0vncserver and x11vnc extensions for tc2. Could the owner please create them?
« Last Edit: May 20, 2009, 03:44:36 PM by bigpcman »
big pc man

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: tightvcn - how to view the desktop screen?
« Reply #11 on: May 20, 2009, 07:36:08 PM »
Update to my tightvnc travails. I was able to get a virtual desktop working with both wbar and flwm running. I had to use "DISPLAY=:1.0 wbar &" to get wbar to show up on the virtual screen. Then I used wbar to activate a terminal and then used the terminal to activate flwm (flwm &). The colors and background on the virtual screen are screwed up but the remote control does work.
big pc man