- Aodbe Source Serif Pro
- Aodbe Source Sans Pro
- Aodbe Source Code Pro
- Aodbe Source Han Serif 思源宋体
- Simplified Chinese 简体中文 ExtraLight + Light + Regular + Medium
- Simplified Chinese 简体中文 SemiBold + Bold + Heavy
- Traditional Chinese 繁體中文 ExtraLight + Light + Regular + Medium
- Traditional Chinese 繁體中文 SemiBold + Bold + Heavy
- Japanese 日本語 ExtraLight + Light + Regular + Medium
- Japanese 日本語 SemiBold + Bold + Heavy
- Korean 한국어 ExtraLight + Light + Regular + Medium
- Korean 한국어 SemiBold + Bold + Heavy
- Aodbe Source Han Sans 思源黑体
- Google Noto Emoji
- 文鼎字库
- 商用免费
- 文鼎细上海宋
- 文鼎中楷
- 文鼎简报宋
- 文鼎简中楷
- 商用免费
- 文泉驿
- IBM Plex
- Google Roboto
- Google Noto
- Google Noto CJK
- FiraCode
- 方正字库
- 个人免费
- 方正黑体简体
- 方正书宋简体
- 方正仿宋简体
- 方正楷体简体
- 不可商用
- 微软雅黑
- 个人免费
- Apple San Francisco
- 不可商用
mkdir -p /usr/share/fonts/truetype /usr/share/fonts/opentype
apt-get -y install fontconfig
fc-cache -fv
官方仓库中版本过低,下载安装最新版本
apt-get install -y openjdk-8-jre-headless libglu1-mesa libxinerama1 libdbus-glib-1-2 libcairo2 libsm6
curl -OL 'http://download.documentfoundation.org/libreoffice/stable/6.0.2/deb/x86_64/LibreOffice_6.0.2_Linux_x86-64_deb.tar.gz'
dpkg -i LibreOffice*/DEBS/*.deb
官方仓库中版本过低,下载安装最新版本
curl -OL 'https://raw.githubusercontent.com/dagwieers/unoconv/0.8.2/unoconv'
官方仓库中版本过低,下载安装最新版本
curl -OL 'https://github.com/jgm/pandoc/releases/download/2.1.2/pandoc-2.1.2-1-amd64.deb'
TODO
DEBIAN_FRONTEND=noninteractive
apt-get install -yq texlive
启用静态文件、CGI
- Apache
- unoconv
POST http://localhost/cgi-bin/worker.cgi
Content-Type: text/plain;charset=utf-8
mkdir -p /workspace/1/ \
&& cd /workspace/1/ \
&& curl -o a.ppt -O http://localhost/1.pptx \
&& unoconv -f pdf a.ppt \
&& convert a.pdf a.jpg
- 字体配置待优化
- 镜像大小待优化
- CGI脚本待优化,目前未考虑安全及易用性问题
- 文档待完善
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get -y update
sudo apt-get -y install docker-ce
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [""]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker