⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appendix-e.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</P>

<DL>

<DD><B>1.</B>&nbsp;&nbsp;Create the directory where StarOffice will be installed (this example illustrates a network installation; you might also make this subdirectory in a user&#146;s home directory):

<!-- CODE SNIP //-->

<PRE>

<B># mkdir /opt/Office40/</B>

</PRE>

<!-- END CODE SNIP //-->

<DD><B>2.</B>&nbsp;&nbsp;Create a subdirectory for the library file that StarOffice will use.

<!-- CODE SNIP //-->

<PRE>

<B># cd /opt/Office40</B>

<B># mkdir lib</B>

</PRE>

<!-- END CODE SNIP //-->

<DD><B>3.</B>&nbsp;&nbsp;Copy the libc file to the StarOffice library subdirectory that you just created.

<!-- CODE SNIP //-->

<PRE>

<B># cp /tmp/libc.so.5.4.33 /opt/Office40/lib</B>

</PRE>

<!-- END CODE SNIP //-->

<DD><B>4.</B>&nbsp;&nbsp;Add a symbolic link so that version 5 of the library is included in the directory.

<!-- CODE SNIP //-->

<PRE>

<B># ln &#150;s libc.so.5.4.33 libc.so.5</B>

</PRE>

<!-- END CODE SNIP //-->

<DD><B>5.</B>&nbsp;&nbsp;Set the LD_LIBRARY_PATH environment variable to refer to the StarOffice library subdirectory.

<!-- CODE SNIP //-->

<PRE>

<B># export LD_LIBRARY_PATH=/opt/Office40/lib</B>

</PRE>

<!-- END CODE SNIP //-->

</DL>

<P>The correct library will now be used both for StarOffice setup and for running the StarOffice suite.

</P>

<P>You must execute this last step (export the LD_LIBRARY_PATH) right before you start StarOffice each time. If you don&#146;t, StarOffice won&#146;t find the correct library file. If you make this command part of your startup script (in .bashrc or .profile), all programs will use the library you installed for StarOffice, which poses a risk to everything else you do.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>The alternative to using the export command each time you run StarOffice is to create a script that sets the library path variable and starts StarOffice at the same time. The script would look like this:<!-- CODE SNIP //-->

<PRE>

    #!/bin/sh

    export LD_LIBRARY_PATH=/opt/Office40/lib

    /opt/Office40/bin/soffice

</PRE>

<!-- END CODE SNIP //-->

<P>Save these three lines in a file, and then use this command

</P>

<!-- CODE SNIP //-->

<PRE>

    Chmod a&#43;x <I>scriptname</I>

</PRE>

<!-- END CODE SNIP //-->

<P>to make the script executable. Now when you run the script, the library path is set only for StarOffice, not for other programs you run.<HR></FONT>

</BLOCKQUOTE>

</P>

<P>You&#146;re now ready to start the setup program and install StarOffice.</P>

<H3><A NAME="Heading7"></A><FONT COLOR="#000077">Starting Setup for a Single-User Installation</FONT></H3>

<P>StarOffice is installed from the CD-ROM by a &#147;setup&#148; program, just like most Windows programs that you might be familiar with. Once you&#146;ve established that you have the correct Linux system requirements in place, you&#146;re ready to run the setup program to install StarOffice.

</P>

<P>The network installation procedure is described in the later part of this appendix. A network installation of StarOffice differs from a single-user installation only in the location of the StarOffice files and the ability of multiple users to run StarOffice at the same time.</P>

<P>You start the setup program just as you would start any other Linux program. If you&#146;re not familiar with the process, follow these steps:</P>

<DL>

<DD><B>1.</B>&nbsp;&nbsp;Log in as the user for which you are installing StarOffice and start the X Windows system.

<DD><B>2.</B>&nbsp;&nbsp;Open an xterm command line window

<DD><B>3.</B>&nbsp;&nbsp;Insert the StarOffice CD-ROM and use the <TT>su</TT> command to log on as a user who can mount the CD-ROM drive (or to root if necessary). The exact command will vary depending on how you have your devices configured:

<!-- CODE SNIP //-->

<PRE>

$ <B>su - admin</B>

password:

$ <B>mount &#150;t iso9660 /dev/cdrom /mnt/cdrom</B>

$ <B>exit</B>

$

</PRE>

<!-- END CODE SNIP //-->

<DD><B>4.</B>&nbsp;&nbsp;Change to the StarOffice directory on the CD-ROM (its exact location depends on where you mounted the CD-ROM drive in step 2):

<!-- CODE SNIP //-->

<PRE>

<B>$ cd /mnt/cdrom/StarOffice</B>

</PRE>

<!-- END CODE SNIP //-->

<DD><B>5.</B>&nbsp;&nbsp;Start the setup installation program with this command:

<!-- CODE SNIP //-->

<PRE>

<B>$ ./setup</B>

</PRE>

<!-- END CODE SNIP //-->

<DD><B>6.</B>&nbsp;&nbsp;After a few seconds, the StarOffice graphic appears, and the installation process begins.

</DL>

<H4 ALIGN="LEFT"><A NAME="Heading8"></A><FONT COLOR="#000077">Reviewing the License Agreement</FONT></H4>

<P>When you start the setup program, the first window that appears displays the StarOffice license agreement, as shown in Figure E.1. <P><A NAME="Fig1"></A><A HREF="javascript:displayWindow('images/ape-01.jpg',792,562 )"><IMG SRC="images/ape-01t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/ape-01.jpg',792,562)"><FONT COLOR="#000077"><B>FIG. E.1</B></FONT></A>&nbsp;&nbsp;The license agreement defines how you can use your copy of StarOffice for Linux.</P>

</P>

<P>Three types of licenses are available for StarOffice:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;<I>30-day trial license</I>. This version of StarOffice is available in some magazine promotions. The software is labeled &#147;Try &#38; Buy Version&#148; on the title bar, and it will stop running 30 days after you install it.

<DD><B>&#149;</B>&nbsp;&nbsp;<I>Non-commercial license</I>. This is a fully functional version of StarOffice, but one that is not licensed for use in business. It can be used only for personal use or for evaluation of StarOffice before purchasing a commercial license.

<DD><B>&#149;</B>&nbsp;&nbsp;<I>Commercial license</I>. This version of StarOffice is licensed for use in any business or personal situation. You generally must pay for a commercial license of StarOffice for Linux.

</DL>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>The CD-ROM in this book contains the complete StarOffice for Linux with a non-commercial license. You can install and use StarOffice for personal or evaluation use. If you want to use StarOffice in a business, you must purchase a commercial license.<HR></FONT>

</BLOCKQUOTE>

<H4 ALIGN="LEFT"><A NAME="Heading9"></A><FONT COLOR="#000077">Choosing an Installation Option</FONT></H4>

<P>The next decision you have to make is which components of StarOffice you want to install. As we said earlier, StarOffice is not a small program, so you may choose to leave some parts out of the installation.

</P>

<P>Remember, however, that the &#147;integrated&#148; nature of StarOffice means that most of the program is shared among all of the components. That means that you can&#146;t choose not to install a large component like the StarImpress presentation software.</P>

<P>If you do need to save hard disk space, you can leave out any of the following components:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;Graphics libraries

<DD><B>&#149;</B>&nbsp;&nbsp;Templates

<DD><B>&#149;</B>&nbsp;&nbsp;Help files

<DD><B>&#149;</B>&nbsp;&nbsp;Example documents

</DL>

<P>You can choose one of several installation options, as shown in Figure E.2.

</P>

<P><A NAME="Fig2"></A><A HREF="javascript:displayWindow('images/ape-02.jpg',792,562 )"><IMG SRC="images/ape-02t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/ape-02.jpg',792,562)"><FONT COLOR="#000077"><B>FIG. E.2</B></FONT></A>&nbsp;&nbsp;You can select which components of StarOffice to install by selecting an installation option.</P>

<P>The easiest choice is the Standard Installation. Although this takes up a lot of space, it provides you with graphics, templates, help files, dictionaries, and so forth. If you choose the Standard Installation button, you should have about 110MB of free hard disk space. The final installation will take only about 90MB, but the process will use some additional space during installation.

</P>

<P>If you don&#146;t have that much space, you can choose the Minimum Installation option. This requires only about 50MB of hard disk space, but it doesn&#146;t install such things as the help files and sample documents.</P>

<H4 ALIGN="LEFT"><A NAME="Heading10"></A><FONT COLOR="#000077">Using the Custom Installation Option</FONT></H4>

<P>If you like setting things up yourself, you can choose the Custom Installation option. When you choose this button, the dialog box in Figure E.3 appears.

</P>

<P><A NAME="Fig3"></A><A HREF="javascript:displayWindow('images/ape-03.jpg',792,562 )"><IMG SRC="images/ape-03t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/ape-03.jpg',792,562)"><FONT COLOR="#000077"><B>FIG. E.3</B></FONT></A>&nbsp;&nbsp;The Custom Installation option lets you choose which additional components you want to install.</P>

<P>From this dialog box, you can select which components you want to install. As we mentioned earlier, however, you don&#146;t have a lot of choice (like you would with Microsoft Office).

</P>

<P>StarOffice uses the same set of underlying functionality for the word processor, the spreadsheet, the presentation software, and so forth. If you left out a key section, none of these would function. Instead, you can save space by selecting which example documents, templates, help files, and so forth you want to install.</P>

<P>To deselect options from the list, follow these steps:</P>

<DL>

<DD><B>1.</B>&nbsp;&nbsp;Click on the plus sign (&#43;) to the left of the type of item you want to deselect. That item expands to display its contents.

<DD><B>2.</B>&nbsp;&nbsp;Click on the plus sign for sublevel components if necessary.

<DD><B>3.</B>&nbsp;&nbsp;Click on the icon or name of an item that you don&#146;t want to install. The icon goes blank, and the Required Disk Space line at the bottom of the dialog box is updated to reflect the new space requirements.

<DD><B>4.</B>&nbsp;&nbsp;Click again on any icon that you want to reselect to include in the installation.

<DD><B>5.</B>&nbsp;&nbsp;When you have selected and deselected the proper components to reflect what you want to use, begin the installation by choosing the Install button.

</DL>

<P>If you need to change the directory where StarOffice is installed, click the Select&#133; button in the bottom part of the screen. You can then browse your Linux system file structure to choose a subdirectory for installation.

</P>

<P>Note, however, that you should choose a subdirectory within the current user&#146;s home directory because this is not a network installation; only one user will be using StarOffice in this setup.</P>

<H4 ALIGN="LEFT"><A NAME="Heading11"></A><FONT COLOR="#000077">Deciding Where to Put StarOffice</FONT></H4>

<P>If you didn&#146;t choose the Custom Installation option, you still get to decide where to install StarOffice. If you selected the Standard or Minimum Installation option, another window appears (see Figure E.4) where you can select an installation subdirectory. This is just like the option at the bottom of the custom installation dialog box (refer to Figure E.3).

</P>

<P><A NAME="Fig4"></A><A HREF="javascript:displayWindow('images/ape-04.jpg',800,590 )"><IMG SRC="images/ape-04t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/ape-04.jpg',800,590)"><FONT COLOR="#000077"><B>FIG. E.4</B></FONT></A>&nbsp;&nbsp;You can select where to install StarOffice.</P>

<P>Because this installation of StarOffice is for an individual user, the default location in the user&#146;s home directory is a safe choice.

</P>

<P>If you don&#146;t want to install StarOffice in the home directory, or if you want to change the name of the directory where StarOffice is installed, you can choose the Select button to change the location.</P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -