DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th November 2011
mayuka mayuka is offline
Fdisk Soldier
 
Join Date: Dec 2009
Posts: 64
Default missing tightvnc in OpenBSD 5.0

Hi.

I wanted to upgrade my OpenBSD from 4.6 to 5.0 and noticed that tightvnc is missing. What happened to it?

Are there any (better) alternatives for using vnc on an OpenBSD home office box?
Reply With Quote
  #2   (View Single Post)  
Old 6th November 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

It seems TightVNC was replaced with net/ssvnc

From the commit log:

Quote:
drop tightvnc and allow ssvnc-viewer to replace tightvnc-viewer.

- tightvnc-server is based on a really old X release - it barely
works on i386, but doesn't support most X clients - and fails on most
other arch (it's neither LP64 nor big-endian clean).

x11vnc is a suitable alternative for some users, anyone interested
in the exact same type of functionality (standalone RFB X server)
should look at porting tigervnc.

- ssvnc-viewer is a significantly improved fork of tightvnc-viewer
and basically a drop-in replacement (same filename for the viewer).

ok dcoppa@ and supported by weerd@ and various ports@ readers
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 6th November 2011
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default

Quote:
It seems TightVNC was replaced with net/ssvnc
It looks like there was a discussion of this last summer in the openbsd-ports mailing list:

http://marc.info/?l=openbsd-ports&m=130954821006576&w=2

Many OpenBSD mailing lists are archived at
http://marc.info/
Reply With Quote
  #4   (View Single Post)  
Old 6th November 2011
mayuka mayuka is offline
Fdisk Soldier
 
Join Date: Dec 2009
Posts: 64
Default

Oh this is really sad. It's not about ssvnc. I need the vncserver that can be started on a machine without monitor.

x11vnc is quite complicated to run on a headless (monitor less) server. Maybe Xvfb is a solution. I don't know. Nobody tried this before?

I'll try to get tigervnc to compile. Hopefully it isn't not too complicated.
Reply With Quote
  #5   (View Single Post)  
Old 6th November 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by mayuka View Post
I need the vncserver that can be started on a machine without monitor.
Perhaps the question needs to be asked. Why not simply use ssh(1)?
Reply With Quote
  #6   (View Single Post)  
Old 6th November 2011
mayuka mayuka is offline
Fdisk Soldier
 
Join Date: Dec 2009
Posts: 64
Default

Quote:
Originally Posted by ocicat View Post
Perhaps the question needs to be asked. Why not simply use ssh(1)?
Because the software should keep running after I log out.
Reply With Quote
  #7   (View Single Post)  
Old 6th November 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by mayuka View Post
Because the software should keep running after I log out.
ssh(1) connections could be maintained within a tmux(1) session.
Reply With Quote
  #8   (View Single Post)  
Old 7th November 2011
mayuka mayuka is offline
Fdisk Soldier
 
Join Date: Dec 2009
Posts: 64
Default

Quote:
Originally Posted by ocicat View Post
ssh(1) connections could be maintained within a tmux(1) session.
Isn't tmux basically the same as the old "screen"-util? I don't see the option to maintain X11 apps. Maybe I just should try...
Reply With Quote
  #9   (View Single Post)  
Old 7th November 2011
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Default

Quote:
Originally Posted by mayuka View Post
I don't see the option to maintain X11 apps.
It's not. Not sure why ocicat would even bring it up.
Reply With Quote
Old 7th November 2011
mayuka mayuka is offline
Fdisk Soldier
 
Join Date: Dec 2009
Posts: 64
Default

First. I'm trying to build tigervnc manually (./configure --prefix=/usr/local --with-x --with-libintl-prefix=/usr/local) right now and it fails with something like this:

Code:
vncviewer-vncviewer.o(.text+0x1004): In function `main':
/usr/src/tigervnc-1.1.0/unix/vncviewer/vncviewer.cxx:275: undefined reference to `libintl_bindtextdomain'
vncviewer-vncviewer.o(.text+0x100c):/usr/src/tigervnc-1.1.0/unix/vncviewer/vncviewer.cxx:276: undefined reference to `libintl_textdomain'
vncviewer-vncviewer.o(.text+0x1034):/usr/src/tigervnc-1.1.0/unix/vncviewer/vncviewer.cxx:286: undefined reference to `libintl_gettext'
I manually added #include <libintl.h> and now it seems that linking doesn't work. Any clues?


Second: I can start Xvfb and use the virtual screen with x11vnc:

Code:
xinit -- /usr/X11R6/bin/Xvfb :1 -screen 0 1120x700x16 -dpi 75 &
x11vnc -display :1 -rfbauth .vnc/passwd &
However, it works but it doesn't seem very sophisticated.
Reply With Quote
Old 7th November 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Mayuka, you could always extract the most recent tightvnc port from your nearest CVS repository, and build from that. It was removed 2 July, so a CVS update of the net/tightvnc branch of the ports tree using an earlier date (-D option) should work, if tightvnc still functions with X.

You'll need to start with a CVS working directory of the ports tree for either 5.0-release or 5.0-stable, per FAQs 15.3.2 and 5.3.3.

Last edited by jggimi; 7th November 2011 at 12:59 PM. Reason: edited to add the X caveat.
Reply With Quote
Old 7th November 2011
mayuka mayuka is offline
Fdisk Soldier
 
Join Date: Dec 2009
Posts: 64
Default

Quote:
Originally Posted by jggimi View Post
Mayuka, you could always extract the most recent tightvnc port from your nearest CVS repository, and build from that. It was removed 2 July, so a CVS update of the net/tightvnc branch of the ports tree using an earlier date (-D option) should work, if tightvnc still functions with X.
Yes I know that. When I update again in a year or so, it probably won't work because there were too many changes in openbsd/xorg since then. That option sadly is not for the long run...

Tigervnc seems to me like the right decision because it's actively developed. However I just can't get it to compile.
Reply With Quote
Old 7th November 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Tigervnc gets a mention in a couple of ports@ threads. It appears no one is actively attempting to port it: http://marc.info/?l=openbsd-ports&w=...s=tigervnc&q=b

The key comment that might help is from Stuart Henderson: http://marc.info/?l=openbsd-ports&m=130920310423104&w=2
Quote:
TigerVNC would be more convenient but it needs
to be combined with the Xorg source tree to get it building.
Reply With Quote
Old 7th November 2011
mayuka mayuka is offline
Fdisk Soldier
 
Join Date: Dec 2009
Posts: 64
Default

Quote:
TigerVNC would be more convenient but it needs to be combined with the Xorg source tree to get it building.
Well. That's true. However, a script that automatically fetches every needed file is already in place. Building is made as easy as possible. If it only wouldn't fail to compile...

I totally agree that tightvnc is outdated and probably not the best written code. Currently there is no real alternative in openbsd and tigervnc could fill the gap. Either that or a well done x11vnc script... However, tightvnc really proved to be stable. It never crashed during the last 2 years as I recall it correctly.

If someone could point me to a rock-solid x11vnc using Xvfb, it'd be happy too.
Reply With Quote
Old 7th November 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by mayuka View Post
Oh this is really sad. It's not about ssvnc. I need the vncserver that can be started on a machine without monitor.

x11vnc is quite complicated to run on a headless (monitor less) server. Maybe Xvfb is a solution. I don't know. Nobody tried this before?

I'll try to get tigervnc to compile. Hopefully it isn't not too complicated.
This is an interesting problem. TightVNC was removed due to security reasons but I am not aware how difficult is to run x11vnc in your particular set up. Besides TightVNC and TigerVNC and already mentioned x11VNC I am aware of UltraVNC and proprietary RealVNC. Can you try to compile UltraVNC maybe?

You can always do
Code:
ssh -Y username@yourserver.domain.name
but you will need a serious bandwidth do real work with it.

I personally dropped VNC in favor of NX X protocol with is compression wrapper around ssh. It works amazingly fast comparing to VNC let alone to ssh -Y The problem is that proprietary version of NX server is not running on OpenBSD but that is not problem for me since I only use to connect to my cluster which runs RedHat Linux. There is a free version of the NX server FreeNX which you should be able to compile on OpenBSD. Google also has an unfinished version.

OpenNX open source NX client is ported to OpenBSD and works like a charm.

Last edited by Oko; 7th November 2011 at 05:28 PM.
Reply With Quote
Old 7th November 2011
mayuka mayuka is offline
Fdisk Soldier
 
Join Date: Dec 2009
Posts: 64
Default

Quote:
Originally Posted by Oko View Post
This is an interesting problem. TightVNC was removed due to security reasons but I am not aware how difficult is to run x11vnc in your particular set up. Besides TightVNC and TigerVNC and already mentioned x11VNC I am aware of UltraVNC and proprietary RealVNC. Can you try to compile UltraVNC maybe?
realvnc works but without the Xvnc server. UltraVNC is Windows only. In fact I'm on powerpc here and not i386.

I've never had security issues so far. The vncserver listens on localhost only and I connect via a ssh tunnel. VNC is available on any system (Windows, Mac, even the iPhone have native clients). So I can connect from everywhere ssh-tunneled to it.

Quote:
Originally Posted by Oko View Post
I personally dropped VNC in favor of NX X protocol with is compression wrapper around ssh. It works amazingly fast comparing to VNC let alone to ssh -Y The problem is that proprietary version of NX server is not running on OpenBSD but that is not problem for me since I only use to connect to my cluster which runs RedHat Linux. There is a free version of the NX server FreeNX which you should be able to compile on OpenBSD. Google also has an unfinished version.
The compression of vnc is very limited. It is not blazingly fast over an internet connection. I know that *NX has a far better protocol but the client isn't available on any architecture. Name me an iPhone client for *NX... AFAIK you need a running xsession/xserver for *NX too... On OpenBSD there's opennx but I don't know if it works as expected. If you know an iPhone client I'd gladly switch to opennx if it works.
Reply With Quote
Reply

Tags
opennx, realvnc, tigervnc, tightvnc, ultravnc

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing suEXEC rtwingfield FreeBSD General 8 13th May 2010 03:35 PM
sys.tar.gz missing from 3rd CD in 4.5? thirdm OpenBSD Installation and Upgrading 0 5th May 2009 03:25 PM
Tightvnc startup script not loading fonts - permission denied master-richie FreeBSD Ports and Packages 2 3rd August 2008 09:29 PM
FreeBSD 7.0, tightvnc and jdk16 - newbie master-richie FreeBSD Ports and Packages 5 9th July 2008 04:45 PM


All times are GMT. The time now is 06:45 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick