Overleaf
Fix Synology's Docker Registry CA Certificate Issue
Docker's CA certificate may be out-of-date on Synology. The following fix is from here.
# update certificates
cp /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt.backup
wget --no-check-certificate https://curl.se/ca/cacert.pem
mv cacert.pem /etc/ssl/certs/ca-certificates.crt
# restart docker service
synoservice --restart pkgctl-Docker
Deploy Overleaf
Get Overleaf Toolkit
Change configuration in config/overleaf.rc
.
Lower MongoDB's Version
My NAS's CPU does not support AVX, so MongoDB's maximum version is 4.4
. Lower its version in config/overleaf.rc
Change variables.env
to Support Overleaf 3.3.0
Overleaf's compatible version with MongoDB 4.4
is 3.3.0
. Lower its version in config/version
Also change all OVERLEAF_
in config/variables.env
to SHARELATEX_
.
Deploy
With all above changes, finally we can deploy the overleaf.
Update Texlive
# update tlmgr
wget http://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh
sh update-tlmgr-latest.sh -- --upgrade
# change texlive repository
tlmgr option repository https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet/
tlmgr update --self --all
# install full texlive
tlmgr install scheme-full
# update texlive path
tlmgr path add
Add Chinese Fonts
Chinese fonts require special