| View previous topic :: View next topic |
| Author |
Message |
Martigen n00b

Joined: 04 Mar 2003 Posts: 59
|
Posted: Tue Feb 28, 2006 12:46 pm Post subject: Adopt an ebuild: VNC 4.1.1 |
|
|
The current version of VNC in portage is 4.0. The official 4.1.1 release has been out for so long now it might as have been formed in the Jurassic period.
Various requests for an updated ebuild have been made in bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=86520
Unfortunately, the original maintainer has disappeared and no one else has taken up the reigns.
And doubly unfortunately, my attempts to take up the reigns have failed. The new version uses a different structure and my experience isn't enough to get it compiling within its own source tree, let alone with an ebuild.
Hence this post. If some talented, kind, supremely sexy soul would like to adopt VNC and create an up-to-date ebuild you'll have the thanks of at least one Gentooer, and I promise there's a beer in it for you if you live in Australia!
Mart |
|
| Back to top |
|
 |
tost Guru


Joined: 10 Dec 2005 Posts: 503 Location: Germany
|
|
| Back to top |
|
 |
Martigen n00b

Joined: 04 Mar 2003 Posts: 59
|
Posted: Wed Mar 01, 2006 6:18 am Post subject: |
|
|
| Tightvnc is in portage but where once it performed better than VNC, VNC 4.0 is a tad faster and 4.1.1 is reportedly vastly faster and more efficient than 4.0. Being unale to install it (even getting its source tree to compile) I can't actually verify this! |
|
| Back to top |
|
 |
panchonb n00b

Joined: 28 Jan 2006 Posts: 28
|
Posted: Mon Mar 06, 2006 5:41 pm Post subject: |
|
|
With the ebuild and patches from this bug report, I was able to build 4.1.1 with GCC 3.4.5.
Hopefully this will get added to portage. |
|
| Back to top |
|
 |
iamben Apprentice

Joined: 10 May 2004 Posts: 216
|
Posted: Mon Mar 06, 2006 8:56 pm Post subject: |
|
|
builds fine under gcc 3.4.5 here too, im on x86. finally we can set some options in the vncviewer gui.
oh and for what its worth, it does NOT build under gcc 4.1.0-pre20060223 |
|
| Back to top |
|
 |
panchonb n00b

Joined: 28 Jan 2006 Posts: 28
|
Posted: Mon Mar 06, 2006 9:17 pm Post subject: |
|
|
| iamben wrote: | builds fine under gcc 3.4.5 here too, im on x86. finally we can set some options in the vncviewer gui.
oh and for what its worth, it does NOT build under gcc 4.1.0-pre20060223 |
I think I got it to build with gcc 4.1.0, but I don't have the modified ebuild handy. I had to patch X 6.8.2 to get it work.
You can get the patch off my bug report for VNC 4.0 and GCC 4.1.0. You could look at the ebuild also. |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Tue Mar 07, 2006 7:35 am Post subject: |
|
|
| panchonb wrote: | With the ebuild and patches from this bug report, I was able to build 4.1.1 with GCC 3.4.5.
Hopefully this will get added to portage. |
Thank you! I was unsuccessful when I tried to construct an ebuild. It was too different from the previous ebuild to do a small edit. Let's hope that portage will add it eventually, especially since version 4.1.1 was released on March 11, 2005 (a year ago!) (according to the about screen).
I like the version 4 of VNC better than other VNC flavors (like tightvnc). When coupled with ssh, it is great!
Once again, thanks!
-jekyll
Last edited by jekyll on Fri Mar 24, 2006 5:29 pm; edited 1 time in total |
|
| Back to top |
|
 |
panchonb n00b

Joined: 28 Jan 2006 Posts: 28
|
Posted: Tue Mar 07, 2006 3:40 pm Post subject: |
|
|
| jekyll wrote: | | panchonb wrote: | With the ebuild and patches from this bug report, I was able to build 4.1.1 with GCC 3.4.5.
Hopefully this will get added to portage. |
Thank you! I was unsuccessful when I tried to compile it. It was too different from the previous ebuild to do a small edit. Let's hope that portage will add it eventually, especially since version 4.1.1 was released on March 11, 2005 (a year ago!) (according to the about screen).
I like the version 4 of VNC better than other VNC flavors (like tightvnc). When coupled with ssh, it is great!
Once again, thanks!
-jekyll |
All you need to do to the ebuild is add a line underneath this line:
| Code: | | epatch ${FILESDIR}/${P}/xc.patch-cfbglblt8.patch |
The line you want to add is:
| Code: | | epatch ${FILESDIR}/${P}/X11R6.8.2-src-gcc4-1.patch |
From the vnc 4.0 bug report, save the patch as "X11R6.8.2-src-gcc4-1.patch" under the "files/vnc-4.1.1" directory.
Then do an:
| Code: | ebuild vnc-4.1.1.ebuild digest
emerge vnc |
I really should add an ebuild and comments to the vnc 4.1.1 bug report... just haven't got to it. |
|
| Back to top |
|
 |
iamben Apprentice

Joined: 10 May 2004 Posts: 216
|
Posted: Thu Mar 09, 2006 8:58 pm Post subject: |
|
|
i went ahead and made an overlay w/ 4.1.1 & the patch panchonb posted, you can get it here: http://bkohler.net/ebuilds/vnc-4.1.1-overlay.tar.gz
builds great under gnu-4.1.0-pre20060223 here, thanks for the fix |
|
| Back to top |
|
 |
panchonb n00b

Joined: 28 Jan 2006 Posts: 28
|
Posted: Tue Mar 21, 2006 4:09 am Post subject: |
|
|
I just attempted to build with X 6.9.0. It seems to work fine. Here are the changes I needed to make:
and comment out these two patch statements:
| Code: | epatch ${FILESDIR}/${P}/vnc-xorg-x11-fixes.patch
epatch ${FILESDIR}/${P}/X11R6.8.2-src-gcc4-1.patch |
As you can see the patch I originally submitted is no longer needed. I should have tried this before  |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Fri Mar 24, 2006 5:45 pm Post subject: |
|
|
| panchonb wrote: |
I just attempted to build with X 6.9.0. It seems to work fine. Here are the changes I needed to make:
and comment out these two patch statements:
| Code: | epatch ${FILESDIR}/${P}/vnc-xorg-x11-fixes.patch
epatch ${FILESDIR}/${P}/X11R6.8.2-src-gcc4-1.patch |
As you can see the patch I originally submitted is no longer needed. I should have tried this before  |
Worked for me also! Thanks!
-jekyll |
|
| Back to top |
|
 |
cuicui Apprentice


Joined: 17 Dec 2004 Posts: 208
|
Posted: Sat Mar 25, 2006 12:27 pm Post subject: |
|
|
VNC-4.1.1 / X6.8.x works for me too, thanks.
Any trick to keep it installed even after a "--sync" or a "--depclean" ? I'm not familiar with homemade ebuilds... |
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 6609
|
Posted: Sat Mar 25, 2006 1:55 pm Post subject: |
|
|
| cuicui wrote: | | Any trick to keep it installed even after a "--sync" or a "--depclean" |
Put the ebuild in your local overlay. |
|
| Back to top |
|
 |
iamben Apprentice

Joined: 10 May 2004 Posts: 216
|
Posted: Fri Apr 07, 2006 6:14 pm Post subject: |
|
|
| edit: nm, this was my mistake! |
|
| Back to top |
|
 |
scourage n00b


Joined: 15 Aug 2003 Posts: 71 Location: UCLA (upper corner of lower Alabama)
|
Posted: Mon Apr 10, 2006 7:12 pm Post subject: |
|
|
Is there a way to use VNC with the modular xorg?
Cheers,
Bob _________________ Halfway down the trail to Hell... |
|
| Back to top |
|
 |
warren64c n00b

Joined: 18 Apr 2006 Posts: 15
|
Posted: Wed Apr 19, 2006 12:02 am Post subject: |
|
|
| I have been unable to get either real vnc or tightvnc to work with modular x. I had a working tightvnc install before the modular x change. Any ideas? |
|
| Back to top |
|
 |
panchonb n00b

Joined: 28 Jan 2006 Posts: 28
|
Posted: Wed Apr 19, 2006 3:03 pm Post subject: |
|
|
| warren64c wrote: | | I have been unable to get either real vnc or tightvnc to work with modular x. I had a working tightvnc install before the modular x change. Any ideas? |
tightvnc failed after you upgraded to Modular X? Have you been trying to create an ebuild that uses mod X?
Hmm, that seems strange. Did you re-emerge tightvnc? I have had both real and tight installed after my modular X upgrade and both seemed to work fine. The only problem (and it's not a big one) is that the X-6.8.X sources are downloaded and used by real VNC to build Xvnc (this takes up space in distfiles).
I think that X-6.8.X is used only by real vnc. Mod X is used by all the GUI programs I have installed. Some one correct me if I am wrong on this. |
|
| Back to top |
|
 |
warren64c n00b

Joined: 18 Apr 2006 Posts: 15
|
Posted: Thu Apr 20, 2006 10:07 am Post subject: |
|
|
With tightvnc, when I type "vncviewer localhost:70" I get a message saying "vncviewer: VNC server closed connection".
With realvnc, I get a connection using that same command and then it asks for a password. After establishing a password using vncpasswd, it will not authenticate.
It seems in both issues something has changed from a security standpoint once I moved to modular x, but I am not sure what.
I have done the obvious, checked the xinetd.conf file, restarted xinetd.
Any ideas? |
|
| Back to top |
|
 |
panchonb n00b

Joined: 28 Jan 2006 Posts: 28
|
Posted: Mon May 15, 2006 2:51 pm Post subject: Security Vulnerability |
|
|
[edit] I just noticed that the source tar ball has been added to the realvnc website. I just modified the ebuild and it works. All I did was copy the 4.1.1 ebuild and change the vnc file name. I also had to copy the patches in the files directory to a vnc-4.1.2 directory. [/edit]
Just a heads up.
It looks like there is a pretty major security vulnerability in VNC 4.1.1. RealVNC has created a patch to fix it, but I cannot find the source tar ball for it. All they provide at this point is binaries.
I have been up unable to get these to work correctly, but I have not tried more than 15 minutes or so.
Info can be found here and here.
Unfortunately, this only affects 4.1.x. That means that since Gentoo hasn't updated from VNC 4.0.0, we are SOL. I submitted a bug, but it was "resolved" as "we are not affected". This might be true, but it would be nice to get an updated version of VNC into portage.
This also means that 4.1.x will probably never get into portage, unless RealVNC releases a source tar ball for 4.1.2 or higher in the future. |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Thu Jun 01, 2006 10:58 am Post subject: Re: Security Vulnerability |
|
|
| panchonb wrote: | [edit] I just noticed that the source tar ball has been added to the realvnc website. I just modified the ebuild and it works. All I did was copy the 4.1.1 ebuild and change the vnc file name. I also had to copy the patches in the files directory to a vnc-4.1.2 directory. [/edit]
Just a heads up.
It looks like there is a pretty major security vulnerability in VNC 4.1.1. RealVNC has created a patch to fix it, but I cannot find the source tar ball for it. All they provide at this point is binaries.
I have been up unable to get these to work correctly, but I have not tried more than 15 minutes or so.
Info can be found here and here.
Unfortunately, this only affects 4.1.x. That means that since Gentoo hasn't updated from VNC 4.0.0, we are SOL. I submitted a bug, but it was "resolved" as "we are not affected". This might be true, but it would be nice to get an updated version of VNC into portage.
This also means that 4.1.x will probably never get into portage, unless RealVNC releases a source tar ball for 4.1.2 or higher in the future. |
The source for 4.1.2 is out and I have compiled and installed vnc by modifying the ebuild for version 4.1.1. Hopefully this will mean that version 4.1.x will be added to portage soon. I think it's ridiculous how long it's taken for it to be updated in portage.
In addition, if you are trying to use the vnc.so module for Modular X (xorg-x11 version 7.0), then the module must be placed in /usr/lib/xorg/modules/extensions/ instead of /usr/lib/modules/extensions. I'm not sure how to place a check in the ebuild which checks which version of xorg is installed and places vnc.so in the correct directory. Can anyone help out?
-jekyll |
|
| Back to top |
|
 |
panchonb n00b

Joined: 28 Jan 2006 Posts: 28
|
Posted: Thu Jun 01, 2006 2:24 pm Post subject: Re: Security Vulnerability |
|
|
| jekyll wrote: | | I think it's ridiculous how long it's taken for it to be updated in portage. |
Yeah, it looks like this thread is going to be the living ebuild for VNC. The VNC-4.0.0 ebuild needs to be fixed in order for it to compile on GCC-4.x, so I don't see why they can't just resolve both bugs (the compile bug and the update request) with the update to VNC-4.1.2.
I have been running 4.1.2 since I saw the source tar ball go live on the VNC server. This has been a couple of weeks (check my edit to my last post above). I have seen no problems. |
|
| Back to top |
|
 |
boroshan l33t


Joined: 16 Apr 2003 Posts: 730 Location: upside down
|
Posted: Thu Jun 01, 2006 3:02 pm Post subject: Re: Security Vulnerability |
|
|
| jekyll wrote: |
In addition, if you are trying to use the vnc.so module for Modular X (xorg-x11 version 7.0), then the module must be placed in /usr/lib/xorg/modules/extensions/ instead of /usr/lib/modules/extensions. I'm not sure how to place a check in the ebuild which checks which version of xorg is installed and places vnc.so in the correct directory. Can anyone help out?
|
Can you not just symlimk the module so it appears in both locations? Easiest solution if it'll work. _________________ Don't let THEM immanentize the Eschaton! |
|
| Back to top |
|
 |
electrofreak l33t


Joined: 30 Jun 2004 Posts: 713 Location: Ohio, USA
|
Posted: Sun Jun 11, 2006 9:41 pm Post subject: |
|
|
| Code: | | Xvnc: error while loading shared libraries: libXdmcp.so.6: cannot open shared object file: No such file or directory |
What is the problem here?? I searched and it seems I'm the only one with this problem. I don't have this file (obviously) and I don't know what package has it... I also got this when I tried running Xvnc with the 4.0 ebuild.
It seems to be a part of X... which is odd because I should have it then, but I don't. I'm not using modular X.
| Code: | gazebo vnc # emerge -pv xorg-x11
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] x11-base/xorg-x11-6.8.2-r7 -3dfx -3dnow +bitmap-fonts -cjk -debug
-dlloader -dmx -doc -font-server -insecure-drivers +ipv6 -minimal +mmx +nls -nocx
x +opengl +pam -sdk -sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 0 kB |
I'm going to try re-emerging xorg-x11 to see if that helps.
Edit: Might help to have >=xorg-x11-6.9.0 installed. _________________ Desktop: ABit AN8, Athlon64 X2 4400+ 939 2.75GHz, 2x1GB Corsair XMS DDR400, 2x160GB SATA RAID-0, 2x20"W, Vista Ultimate x64
Laptop: 15.4" MacBook Pro 2.4Ghz, 2x1GB RAM, 160GB, Mac OS X 10.5.1
Server: PIII 550Mhz, 3x128MB RAM, 160GB, Ubuntu Server 7.10 |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Tue Jun 13, 2006 8:32 am Post subject: |
|
|
| After upgrading to modular X, I could not get aterm to work inside a new vncserver session (not using the vnc.so module, which still works fine). Error messages reported that color were missing. I finally found what the problem is, which results from files being moved around in modular X. Xvnc looks for rgb.txt in the wrong directory. A symlink fixes the problem. See the topic here. The fix is at the end of the message. |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Tue Jun 13, 2006 8:36 am Post subject: |
|
|
| electrofreak wrote: | | Code: | | Xvnc: error while loading shared libraries: libXdmcp.so.6: cannot open shared object file: No such file or directory |
What is the problem here?? I searched and it seems I'm the only one with this problem. I don't have this file (obviously) and I don't know what package has it... I also got this when I tried running Xvnc with the 4.0 ebuild.
It seems to be a part of X... which is odd because I should have it then, but I don't. I'm not using modular X. |
I've had this problem too. I'm not sure what the cause of it was, but a re-emerge of vnc fixed it for me.
-jekyll |
|
| Back to top |
|
 |
|