Currently the tightvnc web based interface is broken. Usually when a vncserver is started, an internal httpd server is setup for (in unix) port 5800 + display number. In the current tighvnc, the webserver portion is broken due to the vnc_unixsrc/classes/* not being copied over to /usr/local/vnc/classes during installation. This bug can be fixed by several means, all that is required is that the entire classes/ directory be copied somewhere during the installation (and if that place is not /usr/local/vnc/classes/ then the vncserver script should be modified to point to the location of those files. Line 38 of /usr/bin/vncserver). I am not too familiar with the filesystem layout of Gentoo (yet ;)) so I am unsure how to propose a fix for this bug. If creating a directory under /usr/local/ is no big deal then a simple copy of the class files during installation (via ebuild) would work. If it is a big deal, then a patch to vncserver to point to the appropiate location for accessory files such as the java classes would be in order. I hope someone can shed some more light on how to proceed with this issue. Thanks, Ivan C.
We reserve /usr/local for the users; ebuilds shouldn't touch it. You probably want /usr/share/vnc for the class files. Thanks!
Attached below is a new ebuild (tightvnc-1.2.3-r2.ebuild) along with a patch (tightvnc-gentoo.diff) which fixes the web interface / java class issue. The ebuild file has been modified to include the following lines: # fix the web based interface, it needs the java class files mkdir -p ${D}/usr/share/tightvnc mkdir -p ${D}/usr/share/tightvnc/classes insinto /usr/share/tightvnc/classes ; doins classes/* # and then patch vncserver to point to /usr/share/tightvnc/classes patch -p0 < ${FILESDIR}/tightvnc-gentoo.diff || die The patch itself simply modifies vncserver to look for the class files under /usr/share/tightvnc/classes instead of the default /usr/local/vnc/classes: -$vncClasses = "/usr/local/vnc/classes"; +$vncClasses = "/usr/share/tightvnc/classes"; The patch also fixes a $fontPath issue with tightvnc looking in the wrong dir for the fonts, it now looks in /usr/lib/X11/fonts. I named the patch file tightvnc-gentoo.diff as all versions (new and old) of tightvnc will need this patch to have the web interace work - not just the 1.2.3-r2 version. Also I believe the regular VNC package will have/has a similiar problem with its web interface and the solution should be very similiar to this one (just in case any regular VNC users want to patch there version ;)) Thanks, Ivan C.
Created attachment 1996 [details] tightvnc-1.2.3-r2.ebuild
Created attachment 1997 [details, diff] tightvnc-gentoo.diff
Done. Thanks!