In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install PDF and SWF environment under CentOS system". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install PDF and SWF environment under CentOS system".
Centos7 install libreoffice+unoconv+swftools
1. Set up the yum source
Note:
a. A set of mirror192.168.4.217 has been built.
B. CentOS7 image CentOS-7-x86_64-Minimal-1503-01.iso
C. The IP address needs to be set during system installation, otherwise subsequent settings will be troublesome.
d. If you choose Chinese when installing, there is no need to install additional Chinese packages.
1) Log in locally. Default is root.
2) vi / etc/yum.repos.d/CentOS-Base.repo
3) set yum source
a. Set baseurl in [base] and mask mirrorlist
Press I to insert, yy to copy the current line, p to paste to the current location, Q! Strong retreat, exit after wq save)
Baseurl= http://192.168.4.217/centos/$releasever/os/$basearch/
b. Set baseurl in [updates] and mask mirrorlist
Baseurl= http://192.168.4.217/centos/$releasever/updates/$basearch/
c. Set baseurl in [extras] and mask mirrorlist
Baseurl= http://192.168.4.217/centos/$releasever/updates/$basearch/
two。 Install libreoffice
Note: the version of [libreoffice and libreoffice-headless] should be installed, otherwise the display will need to be redirected.
1) Yum-y install libreoffice
2) Yum-y install libreoffice-headless (be sure to install this, otherwise you will need to set up display, which is easy to make mistakes and is difficult to control in the code)
3. Install Font
1) Font copy
Upload the fonts under the Fonts directory under win7 to CentOS directly through SSH Secure File Transfer Client
The Win7 local directory is C:\ Windows\ Fonts\ (you need to copy this directory file to E:\ Tools\ Fonts\)
The CentOS7 directory is / usr/share/fonts/win (a new win directory is required)
Then copy all the fonts on it.
2) Font takes effect
# yum install * .rpm
# chmod 644 / usr/share/fonts/win/*
# cd / usr/share/fonts
# yum install mkfontscale
# mkfontscale
# mkfontdir
# fc-cache
# fc-cache-f-v
4. Install unoconv
1) yum-y install unoconv
5. Install swftools
1) download the swftools directory
2) yum install gcc* automake zlib-devel libjpeg-devel giflib-devel freetype-devel
3) tar vxzf swftools-2013-04-09-1007.tar.gz
4) cd swftools-2013-04-09-1007
5). / configure-- prefix=/usr/local/swftools
6) make
7) make install
8) modify environment variables
I. Vi / etc/profile
ii. Then add the path information to the last line of the file
iii. ExportPATH=$PATH:/usr/local/swftools/bin/
9) Delete redundant directories
Cd..
Rm-f-r swftools-2013-04-09-1007
10) reboot
6. Verify whether it is effective
1) copy a word file with complex choreography such as tables to the home directory, such as any.docx
2) execute unoconv-f pdf any.docx
3) execute pdf2swf any.docx any.swf
Thank you for your reading, the above is the content of "how to install PDF and SWF environment under CentOS system". After the study of this article, I believe you have a deeper understanding of how to install PDF and SWF environment under CentOS system. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.