Date: Wed, 01 Dec 1999 17:52:24 +1100 From: Danny <dannyh@idx.com.au> To: freebsd-questions@freebsd.org Subject: Does the following documentation work on Freebsd227 or just 3.2? Message-ID: <3.0.32.19991201175221.0068f218@pop.idx.com.au>
next in thread | raw e-mail | index | archive | help
The Email mentioned this documentation will help me setup staroffice51. But is the prequsite Freebsd-3.2 or can work prefectly on older versions as well? Installation of StarOffice-5.1a in Linux Compatibity The following instructions for obtaining and installing StarOffice-5.1 (from Sun) are loosely based on personal experience and other accounts on the net, particularly Ken McGlothlen's detailed account for FreeBSD-3.2. (Note: also available from the StarOffice at www.bsdapps.org). The directions assume that you are running FreeBSD 3.3-RELEASE (or either RELENG3 or HEAD branch after the procfs_status.c patch added on Thu Aug 19 19:42:22 1999 UTC by marcel) and that you have root or sudo privileges on the FreeBSD machine in question (and a lot of diskspace). Without the procfs_status.c patch, StarOffice-5.1a will not run properly after being setup. This patch applies cleanly to 3.2 (and earlier?). It is available from FreeBSD's online source tree or right here. If you find any errors or discrepancies, feel free to let me know at sean@stat.duke.edu. Pre-intstallation preparation 1.Download the StarOffice from Sun Microsystems. Select Linux(X86 ONLY) and your language of choice Jump through their flaming hoops Be patient, as the distribution is 65MB. 2.Linux compatibility support and libraries The Linux compatibility support needs to loaded by /etc/rc.conf linux_enable="YES" # Linux emulation loaded at startup. at boot time; however, as root, you may type "linux" to load the support. (Note: this is required for installing linux_base package/port). Install linux_base-5.2 port or package (both maybe downloaded from FreeBSD website.) (Note: linux_base requires a fair amount of diskspace) 3.POSIX Priority scheduling support in kernel Verify support by using sysctl command: sysctl p1003_1b.priority_scheduling For FreeBSD 3.x, add the following entries to your kernel configuration file options "P1003_1B" options "_KPOSIX_PRIORITY_SCHEDULING" options "_KPOSIX_VERSION=199309L" For -current, you can drop the " marks options P1003_1B options _KPOSIX_PRIORITY_SCHEDULING options _KPOSIX_VERSION=199309L Configure, build, install and reboot with new kernel. Performing the installation This assumes that you will be performing a "network" installation (must be performed as root), which will place the Office51 directory in a central location (e.g., /usr/local). This allows multiple users to share the same base installation and only add about 2MB of bloat to their home directory. 1.Unpack the distribution (tarball) in a large scratch directory! 2.This should result in a so51inst directory with two subdirectories: documentation and office51 3.Obtain rootly powers (su,sudo tcsh,etc.) 4.Set root's LD_LIBRARY_PATH to include the temporary install directory: for {t}csh users: setenv LD_LIBRARY_PATH /tmp/sv001.tmp for ksh/bash users: LD_LIBRARY_PATH=/tmp/sv001.tmp && export LD_LIBRARY_PATH 5.change directory into so51inst/office51, and fire up the network install ./setup /net 6.this will run you through the (Windoze-esque, configuration). I recommend installing the distribution in /usr/local/Office51 (or a similar central and meaningful location with lots of disk space---152MB fully installed) Cleaning up after the installation Now that StarOffice has installed itself, there are a few minor tasks that need to be done to make it play nice with FreeBSD. 1.Fix the broken applicat.rdb: The FreeBSD installation does not generate a proper version of /usr/local/Office51/bin/applicat.rdb. This results in StarOffice complaining about the plugin manager failing to start. The broken version has an MD5 sum of adea1eecc92c2a1996b4e1ed51595486 The correct version has an MD5 sum of 963432192fb13ee5fd39578becf614c3 Download a gzip'd copy of the proper version either by http or ftp into /usr/local/Office51/bin. As root, gunzip it over the top of the broken version. 2.Fix the setup and soffice scripts in /usr/local/Office51/bin: Patch for setup --- setup.orig Mon Oct 25 16:37:03 1999 +++ setup Mon Oct 25 16:37:29 1999 @@ -25,7 +25,7 @@ LD_LIBRARY_PATH=.:/usr/openwin/lib:../lib export LD_LIBRARY_PATH ;; - Linux) + Linux|FreeBSD) LD_LIBRARY_PATH=.:../lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH ;; Patch for soffice Note: only needed for RELENG3 branch, since the test command in HEAD understands the -L flag --- soffice.orig Tue Sep 21 11:30:09 1999 +++ soffice Tue Sep 21 12:31:03 1999 @@ -15,12 +15,13 @@ # resolve installation directory sd_platform=`uname -s` case $sd_platform in - SCO_SV) test=/bin/test ;; - *) test=/usr/bin/test ;; + FreeBSD) test=/bin/test && symb="-h" ;; + SCO_SV) test=/bin/test && symb="-L" ;; + *) test=/usr/bin/test && symb="-L" ;; esac sd_cwd="`pwd`" -if $test -L "$0" ; then +if $test $symb "$0" ; then sd_basename=`basename $0` sd_script=`ls -l $0 | sed "s/.*${sd_basename} -> //g"` else Setting up the end user After all of that, you and your users can enjoy StarOffice in all of its glory. 1.Setup PATH in user's accounts For {t}csh, add something like: set path = ( $path $HOME/Office51/bin /usr/local/Office51/bin ) to their .cshrc file (and source it). For ksh/bash/sh, add the appropriate values to PATH. 2.Run /usr/local/Office51/bin/setup and perform a "workstation" installation. 3.Once that is over, they should run the soffice command to allow it to initialize their settings. 4.On the next invocation of soffice, the user most likely will see one one warning message about a library not being found an a warning concerning StarSchedule (which appears to work OK ... very lightly tested), and then they are given the opportunity to register. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19991201175221.0068f218>