-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
提供自建Overleaf实例的教程 #445
Comments
refer to https://github.com/lcpu-club/overleaf/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B. |
https://github.com/BITNP/BIThesis-wiki/blame/61f9c670ec6615f5b8c18e8fdaa187b850bbd864/wiki/.vitepress/config.mts#L47 needs update. Official Overleaf Free does not provide enough time to compile current bithesis. |
// https://github.com/overleaf/toolkit/blob/master/doc/quick-start-guide.md 的一个翻译 快速入门指南前提条件Overleaf Toolkit 依赖以下程序:
建议安装系统上可用的最新版 Docker。 安装首先,将以下 Git 仓库克隆到您的机器上: $ git clone https://github.com/overleaf/toolkit.git ./overleaf-toolkit 接下来进入该目录: $ cd ./overleaf-toolkit 本指南后续假设所有命令均在此目录下执行。 目录结构概览查看仓库结构: $ ls -l 输出示例如下:
初始化配置运行 $ bin/init 检查 $ ls config
overleaf.rc variables.env version 主要配置文件说明:
选择社区版或 Server Pro默认使用免费的 Overleaf Community Edition。 Overleaf Server Pro 是商业版本,提供额外功能和商业支持。详情请访问 https://www.overleaf.com/for/enterprises/features。 如需使用 Server Pro 或设置试用实例,请先阅读 切换至 Server Pro 文档 再继续后续步骤。 启动服务Overleaf Toolkit 使用 启动 Docker 服务: $ bin/up 终端将显示容器日志。按 创建首个管理员账户浏览器访问 http://localhost/launchpad,填写邮箱和密码后点击"注册"。 点击登录链接 http://localhost/login,使用凭证登录后将跳转至欢迎页。 点击页面底部绿色按钮开始使用 Overleaf。 创建首个项目访问 http://localhost/project,点击"创建第一个项目"按钮并按指引操作。 成功后将进入项目页面,显示文本编辑器与 PDF 预览。 (可选)查看日志查看容器内日志: $ bin/logs -f web 同时查看多个服务日志: $ bin/logs -f filestore docstore web clsi TLS 代理Overleaf Toolkit 支持通过 NGINX 代理以 HTTPS 运行 Server Pro。初始化配置:
此命令会在 启用代理需将 诊断工具使用 $ bin/doctor 输出示例:
该工具会检查系统环境、依赖项和配置。遇到问题时请先运行此工具并附上输出结果。 获取帮助社区版用户请 提交 GitHub issue。 Server Pro 用户请联系 建议在请求帮助时附上 |
https://github.com/lcpu-club/overleaf/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B 的markdown
介绍Overleaf 通过 Docker 部署。在开始之前,请根据此文档安装 Docker。Podman 不支持且未经过测试。
Overleaf 提供了两个镜像, 拉取所有必要的镜像docker pull ghcr.io/lcpu-club/sharelatex:latest
docker pull ghcr.io/lcpu-club/sharelatex-base:2024.1
docker pull ghcr.io/lcpu-club/sharelatex-base:2022.1
docker pull ghcr.io/lcpu-club/sharelatex-base:2020.1 下载 docker-compose.yml# 首先创建一个新目录
mkdir overleaf && cd overleaf
# 下载 docker-compose.yml 和必要的文件
wget https://github.com/lcpu-club/overleaf/raw/refs/heads/main/docker-compose.yml
curl https://github.com/lcpu-club/overleaf/raw/refs/heads/main/server-ce/mongodb-init-replica-set.js -L --create-dirs --output server-ce/mongodb-init-replica-set.js
# 修改 docker-compose.yml
$EDITOR docker-compose.yml 请注意以下选项:
最后,使用以下指令启动Overleaf: docker compose up -d 现在可以查看你的Overleaf实例了! 创建和管理用户当 Overleaf 实例运行后,访问 另外,使用以下命令创建第一个用户并将其设为管理员: docker exec sharelatex /bin/bash -c "cd /var/www/sharelatex; grunt user:create-admin [email protected]" 此命令将在用户不存在的情况下创建一个拥有指定邮箱的用户,并将其设为管理员用户。你将获得一个 URL 访问地址,在该地址可以为此用户设置密码并首次登录。 注意:上述命令将始终返回指向 创建普通用户 一旦你作为管理员用户登录,可以访问 Overleaf 实例上的 |
related to BITNP/BIThesis#543
编译过慢,一次更改需要编译半分钟 | BIThesis
/faq/slow
The text was updated successfully, but these errors were encountered: