Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4603 - TightVNC Web Interface
Summary: TightVNC Web Interface
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Grant Goodyear (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-05 19:14 UTC by Ivan C.
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tightvnc-1.2.3-r2.ebuild (tightvnc-1.2.3-r2.ebuild,1.22 KB, text/plain)
2002-07-06 16:19 UTC, Ivan C.
Details
tightvnc-gentoo.diff (tightvnc-gentoo.diff,636 bytes, patch)
2002-07-06 16:20 UTC, Ivan C.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan C. 2002-07-05 19:14:55 UTC
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.
Comment 1 Grant Goodyear (RETIRED) gentoo-dev 2002-07-05 20:57:56 UTC
We reserve /usr/local for the users; ebuilds shouldn't touch it.
You probably want /usr/share/vnc for the class files.

Thanks!
Comment 2 Ivan C. 2002-07-06 16:18:45 UTC
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. 
Comment 3 Ivan C. 2002-07-06 16:19:55 UTC
Created attachment 1996 [details]
tightvnc-1.2.3-r2.ebuild
Comment 4 Ivan C. 2002-07-06 16:20:48 UTC
Created attachment 1997 [details, diff]
tightvnc-gentoo.diff
Comment 5 Grant Goodyear (RETIRED) gentoo-dev 2002-07-12 15:44:23 UTC
Done.  Thanks!