Openoffice
原文链接: Openoffice
apt install liberoffice
Headless LibreOffice systemd service file
vi /lib/systemd/system/soffice.service
[Unit]
Description=Control headless soffice instance
After=network.target syslog.target
[Service]
Type=simple
ExecStart=/usr/bin/soffice --headless \
--accept=socket,host=0.0.0.0,port=8100;urp; --display :5.0 \
--pidfile=/var/run/soffice.pid --nologo --nodefault --nofirststartwizard
RestartSec=5
ExecStop=/usr/bin/pkill -F /var/run/soffice.pid
PIDFile=/var/run/soffice.pid
Restart=always
KillSignal=SIGQUIT
Type=simple
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
- 安装字体
cp fonts /usr/share/fonts/
fc-cache -fv