CentOS installation to PDF and SWF Environments

Source: Internet
Author: User
Tags ssh secure file transfer

CentOS installation to PDF and SWF Environments

Centos7 install libreoffice + unoconv + swftools

1. Set yum Source

Note:

A. You have set up 192.168.4.217

B. CentOS7 image CentOS-7-x86_64-Minimal-1503-01.iso

C. You must set the IP address during system installation. Otherwise, it will be troublesome to set the IP address later.

D. Select Chinese for installation. No additional Chinese package is required later.

1) log on to the local device. The default value is root.

2) vi/etc/yum. repos. d/CentOS-Base.repo

3) set the yum Source

A. Set the baseurl in [base] and block the baseurl list.

(Insert by I, copy the current row by yy, paste p to the current position, q! Strong retreat, and exit after wq is saved)

Baseurl = http: // 192.168.4.217/centos/$ releasever/OS/$ basearch/

B. Set the baseurl in [updates] and disable the upload list.

Baseurl = http: // 192.168.4.217/centos/$ releasever/updates/$ basearch/

C. Set the baseurl in [extras] and block the upload list

Baseurl = http: // 192.168.4.217/centos/$ releasever/updates/$ basearch/

2. Install libreoffice

Note: The installation version must be [libreoffice and libreoffice-headless]. Otherwise, a redirection display is required.

1) Yum-y install libreoffice

2) Yum-y install libreoffice-headless)

3. Install the font

1) copy the font

Use SSH Secure File Transfer Client to upload the Fonts in the Fonts directory under win7 to CentOS.

The local Win7 directory is C: \ Windows \ Fonts \ (you need to copy the directory file to E: \ Tools \ Fonts \)

The CentOS7 directory is/usr/share/fonts/win (you need to create a new win directory)

Then copy all the fonts.

2) The 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 -yinstall unoconv

5. Install swftools

1. Download swftools-2013-04-09-1007.tar.gz to the/home directory.

2)yum install gcc* automakezlib-devel libjpeg-devel giflib-develfreetype-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. Add the path information in the last line of the file.

Iii. exportPATH = $ PATH:/usr/local/swftools/bin/

9) Delete unnecessary directories

Cd ..

Rm-f-rSwftools-2013-04-09-1007

10) reboot

6. Verify if the verification takes effect

1. Upload a wordfile with a table structure to the Home Directory, such as any.docx.

2) Run unoconv-f pdfany.docx.

3) execute ipv2swf any.docx any.swf.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.