当前位置:网站首页>latex paper artifact -- server deployment overleaf
latex paper artifact -- server deployment overleaf
2022-08-01 20:05:00 【TOMD】
Overleaf是一个使用LaTeXA platform for multi-person collaborative editing,可以免费注册和使用,不用下载LaTeX软件,是最为著名的LaTeX在线协作系统.
而在有些情况下,Consider data security and ease of operation,You can buy a server and build it yourselfOverleaf平台.
Students who do not have a server can order it此链接购买Cheap Tencent cloud server.
1.基本环境配置
安装Docker:
sudo curl -sSL https://get.daocloud.io/docker | sh
查看版本,检查是否安装成功:
docker --version
docker-compose --version
启动Docker:
systemctl start docker
2.运行容器
2.1安装overleaf
首先将overleaf项目从githubPull to local
git clone https://github.com/overleaf/toolkit.git ./overleaf
Then perform initial configuration
cd ./overleaf
bin/init
这里我们进入config下的overleaf.rc文件进行配置:
vim ./config/overleaf.rc
Change the following two lines:
SHARELATEX_LISTEN_IP=If you use it locally, you can follow the original configuration,Tencent cloud server needs to be changed**内网地址**
SHARELATEX_PORT=The port you want to map,默认的80Ports are often occupied
(注意,The mapped port needs to be in Tencent Cloud Firewall and centosThe internal firewall is open)
There are also many personalized configurations:Such as web page header text content,网址标题,UI语言(中文)等,可以在overleaf的Wiki页面to view and configure.
执行容器:bin/up
.
The image is being pulled at this time,Can wait for a large number to appearlog时使用 ctrl+c 停止,然后执行bin/start
即可.
此时用浏览器打开http://公网IP:映射的端口/launchpad
You should see the administrator registration interface,至此overleaf的安装结束.
2.2下载完整texlive包
以上安装的overleaf配套的LaTeX不是完整版,So need to continue to download.
首先进入容器的bash:
docker exec -it sharelatex bash
cd /usr/local/texlive
然后执行以下命令:
# Download and run the upgrade script
wget http://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh
sh update-tlmgr-latest.sh -- --upgrade
# 更换texlive的下载源
tlmgr option repository https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet/
# 升级tlmgr
tlmgr update --self --all
# 安装完整版texlive(时间比较长,不要让shell断开)
tlmgr install scheme-full
# 退出sharelatex的命令行界面,并重启sharelatex容器
exit
docker restart sharelatex
至此,安装完成.
2.3 配置反向代理【可选】
If you want to use a domain namessl访问,Or change the access port,A reverse proxy may be required.
Pagoda may want to modify the reverse configuration file to the following content,If the direct default,Every time the project document is loaded, it will get stuck,even promptXXX加载错误
#PROXY-START/
location ~* \.(php|jsp|cgi|asp|aspx)$
{
proxy_pass http://127.0.0.1:5200;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
}
location /
{
proxy_pass http://127.0.0.1:5200;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'Upgrade';
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 3m;
proxy_send_timeout 3m;
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
proxy_ignore_headers Set-Cookie Cache-Control expires;
add_header Cache-Control no-cache;
expires 12h;
}
#PROXY-END/
Part of the above content for reference:
Use Tencent Cloud Server to build your ownoverleaf(Writing essay artifact)
边栏推荐
猜你喜欢
随机推荐
第56章 业务逻辑之物流/配送实体定义
17. Load balancing
自定义指令,获取焦点
Arthas 常用命令
网络不通?服务丢包?这篇 TCP 连接状态详解及故障排查,收好了~
ARTS_202207W2
[Personal work] Wireless network image transmission module
图文详述Eureka的缓存机制/三级缓存
大整数相加,相减,相乘,大整数与普通整数的相乘,相除
漏刻有时文档系统之XE培训系统二次开发配置手册
Debug一个ECC的ODP数据源
分享一个适用于MCU项目的代码框架
[Personal Work] Remember - Serial Logging Tool
我的驾照考试笔记(1)
useful website
[Energy Conservation Institute] Comparative analysis of smart small busbar and column head cabinet solutions in data room
洛谷 P2440 木材加工
nacos安装与配置
win10,在proe/creo中鼠标中键不能放大缩小
部署zabbix