当前位置:网站首页>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)
边栏推荐
- Use WeChat official account to send information to designated WeChat users
- [Personal work] Wireless network image transmission module
- 【个人作品】记之-串口日志记录工具
- Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
- Win10, the middle mouse button cannot zoom in and out in proe/creo
- 【多任务模型】Progressive Layered Extraction: A Novel Multi-Task Learning Model for Personalized(RecSys‘20)
- datax - 艰难debug路
- 【kali-信息收集】(1.4)识别活跃的主机/查看打开的端口:Nmap(网络映射器工具)
- 【torch】张量乘法:matmul,einsum
- Remove 360's detection and modification of the default browser
猜你喜欢
随机推荐
Failed to re-init queues : Illegal queue capacity setting (abs-capacity=0.6) > (abs-maximum-capacity
Redis does check-in statistics
大神经验:软件测试的自我发展规划
Debug一个ECC的ODP数据源
【nn.Parameter()】生成和为什么要初始化
Intranet penetration lanproxy deployment
根据Uniprot ID/PDB ID批处理获取蛋白质.pdb文件
Creo5.0 rough hexagon is how to draw
【社媒营销】如何知道自己的WhatsApp是否被屏蔽了?
【kali-信息收集】(1.4)识别活跃的主机/查看打开的端口:Nmap(网络映射器工具)
18. Distributed configuration center nacos
不同的操作加不同的锁详解
Ruijie switch basic configuration
有用的网站
数字孪生北京故宫,元宇宙推进旅游业进程
虚拟机的IP地址自动变为127.0.0.1
ARTS_202207W2
使用微信公众号给指定微信用户发送信息
用户体验好的Button,在手机上不应该有Hover态
Where should I prepare for the PMP exam in September?









