OpenOffice Recommended installation steps: http://www.openoffice.org/download/index.html Prerequisites
If you want Java integration, you have to make sure that you have the latest JRE installed. Its JRE should be at least version 1.6. You can find JRE for Linux at the Java JRE for linux download site. In addition, the JRE may be included as part of your distribution's installation media as a complete Java development environment.
Installation steps
- View System Requirements
- Download Apache OpenOffice your favorite Linux version
- Review the useful information and installation options in the Setup Wizard.
- Unzip the downloaded image to prepare for installation.
Use the following command:tar -xvzf “linux包的名字”.tar.gz
The "Linux package name" should replace the first part of the tar.gz package that you just downloaded, that is, a string of characters other than tar.gz.
This will create an installation directory.
The name of the installation directory is likely to have an abbreviation for the language name, for example, en-us.
su
> to the root user, if necessary, browse to the Apache OpenOffice installation directory (the location of the unzipped archive).
You may need to run the Deb command as root to install the software.
cd
To the installation directory under the Debs subdirectory.
- Input
sudo dpkg -i *.deb
.
By default, Apache OpenOffice will be installed/upgraded to the /opt
directory.
or without a command line, you can also use the GUI program to install the Deb package, reference the installation directory, install all the Deb packages at the top level. This can also help you monitor dependency problems, if any.
- Installing Desktop integration Features
In the installation directory cd
to desktop-integration
,
According to the Package Manager/system, install the corresponding desktop interface with dpkg.
- Finally, launch Apache OpenOffice to make sure it works. (If there is a panel)
Issues that may occur in the installation:
Problem one: OpenOffice as a service-side transcoding tool, and the server does not have a desktop installed. A situation in which the OpenOffice process cannot be started
In Terminal input:
/usr/bin/soffice-accept=socket,host=localhost,port=8100;urp; Staroffice.servicemanager-norestore-nofirststartwizard-nologo-headless
The following error occurred:
No suitable windowing system found, exiting.
Workaround:
Need to install LIBXT6 and Libxrender1
Apt-get Install Libxt6apt-get Install Libxrender1
After the installation is successful, enter the command in the terminal to view
[[Email protected] win]$ PS aux|grep openoffice503 30904 0.0 1.3 860316 26436 pts/3 Sl 14:26 0:01/opt/openoffice4/program/soffice.bin-accept=socket,host=127.0.0.1,port=8100;urp; -env:userinstallation=file:///tmp/.jodconverter_socket_host-127.0.0.1_port-8100-headless-nocrashreport- nodefault-nofirststartwizard-nolockcheck-nologo-norestore502 31167 0.0 0.0 103256 844 pts/0 s+ 15:16 0:00 grep OpenOffice
Successfully started OpenOffice thread
Question two: When using OpenOffice transcoding html, there is a Chinese garbled situation
The reason is that there are too few fonts in Ubuntu to recognize some of the fonts in the document. The workaround is to copy some fonts from Windows and put them in Ubuntu.
Windows Fonts Directory: C:\Windows\Fonts
Copy common fonts placed on Linux:/usr/share/fonts/win
Run in Terminal:
After rebooting the system, you can perfectly solve the problem of transcoding garbled.
Ubuntu under OpenOffice Installation