当前位置:网站首页>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 docker2.运行容器
2.1安装overleaf
首先将overleaf项目从githubPull to local
git clone https://github.com/overleaf/toolkit.git ./overleafThen perform initial configuration
cd ./overleaf
bin/init这里我们进入config下的overleaf.rc文件进行配置:
vim ./config/overleaf.rcChange 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:映射的端口/launchpadYou 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)
边栏推荐
猜你喜欢

Greenplum Database Source Code Analysis - Analysis of Standby Master Operation Tools

9月备考PMP,应该从哪里备考?

【多任务模型】Progressive Layered Extraction: A Novel Multi-Task Learning Model for Personalized(RecSys‘20)

17. Load balancing

网络不通?服务丢包?这篇 TCP 连接状态详解及故障排查,收好了~

【Untitled】

Remove 360's detection and modification of the default browser

面试突击70:什么是粘包和半包?怎么解决?

终于有人把AB实验讲明白了

XSS range intermediate bypass
随机推荐
【torch】张量乘法:matmul,einsum
18. Distributed configuration center nacos
面试突击70:什么是粘包和半包?怎么解决?
30-day question brushing plan (5)
WhatsApp group sending actual combat sharing - WhatsApp Business API account
有用的网站
大整数相加,相减,相乘,大整数与普通整数的相乘,相除
【社媒营销】如何知道自己的WhatsApp是否被屏蔽了?
How PROE/Croe edits a completed sketch and brings it back to sketching state
The Internet giant development process
Greenplum数据库源码分析——Standby Master操作工具分析
[Multi-task model] Progressive Layered Extraction: A Novel Multi-Task Learning Model for Personalized (RecSys'20)
【无标题】
因斯布鲁克大学团队量子计算硬件突破了二进制
PROE/Croe如何编辑已完成的草图,让其再次进入草绘状态
LabVIEW 使用VISA Close真的关闭COM口了吗
17、负载均衡
Little data on how to learn?Jida latest small learning data review, 26 PDF page covers the 269 - page document small data learning theory, method and application are expounded
Does LabVIEW really close the COM port using VISA Close?
Application of Acrel-5010 online monitoring system for key energy consumption unit energy consumption in Hunan Sanli Group