You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tutorials/overleaf/index.mdx
+111-90
Original file line number
Diff line number
Diff line change
@@ -5,79 +5,90 @@ meta:
5
5
content:
6
6
h1: Installing Overleaf Community Edition
7
7
paragraph: This page shows you how to install Overleaf Community Edition on Ubuntu Linux
8
-
tags: media Overleaf ubuntu
8
+
tags: media Overleaf ubuntu
9
9
categories:
10
10
- instances
11
11
dates:
12
-
validation: 2024-08-12
12
+
validation: 2025-01-09
13
13
posted: 2023-10-02
14
14
---
15
15
16
-
Overleaf is a collaborative writing and publishing system that uses LaTeX, a typesetting software that allows for the creation of structured, professional documents online.
16
+
17
+
Overleaf is a collaborative writing and publishing system that uses LaTeX, a typesetting software that allows for creating structured, professional documents online.
17
18
18
19
It is particularly favored by academics and professionals for producing scientific documents, research papers, theses, and presentations due to its precise formatting and styling capabilities. Overleaf also supports real-time collaboration between multiple authors.
19
20
20
21
<Macroid="requirements" />
21
-
22
22
- A Scaleway account logged into the [console](https://console.scaleway.com)
23
-
-[Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
23
+
-[Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission)
24
24
- An [SSH key](/identity-and-access-management/organizations-and-projects/how-to/create-ssh-key/)
25
-
- An [Instance](/compute/instances/how-to/create-an-instance/)running on the Docker image or with Docker installed
25
+
- An [Instance](/compute/instances/how-to/create-an-instance/)with Docker installed and at least **30 GB of storage**
26
26
- Installed `git` on your Instance
27
-
For optimal performance, we recommend running this tutorial on an Instance with more than 30 GB of storage.
28
-
29
-
<Messagetype="tip">
30
-
Make sure to run this tutorial on an Instance running the [Docker InstantApp image](/tutorials/docker-instantapp/) or make sure [Docker is installed](/tutorials/install-docker-ubuntu-jammy-jellyfish/) on the Instance, as Overleaf requires Docker.
31
-
</Message>
27
+
- Properly configured DNS A/AAAA records pointing to your Instance's public IP
32
28
33
-
## Installing Overleaf community edition
34
-
35
-
1. Connect to your Instance using SSH:
36
-
```
29
+
### Preparing the environment
30
+
1. SSH into your Instance:
31
+
```bash
37
32
ssh root@<YOUR-INSTANCE-IP>
38
33
```
39
-
2. Use `git` to download the Overleaf code repository:
34
+
2. Ensure Docker is installed:
35
+
- If Docker is not installed, follow the [Docker Installation Guide](/tutorials/install-docker-ubuntu-jammy-jellyfish/).
3. Enter the Overleaf `overleaf-toolkit` directory.
44
-
```
51
+
52
+
5. Initialize the configuration:
53
+
```bash
45
54
cd /opt/overleaf-toolkit
46
-
```
47
-
4. Run the following command to copy the configuration files:
48
-
```
49
55
./bin/init
50
56
```
51
-
5. Download and start the Overleaf container and its requirements:
52
-
```
57
+
58
+
6. Start the application and its containers:
59
+
```bash
53
60
./bin/up
54
61
```
55
-
<Messagetype="tip">
56
-
* If a web server is already running on port 80, be sure to stop it before executing the above command.
57
-
* Downloading and configuring the application for the first start may take some time.
62
+
<Messagetype="note">
63
+
If a web server is already running on port 80, stop it before running the command.
58
64
</Message>
59
-
6. Stop the application by pressing `CTRL+C`.
60
-
7. Open the file `./config/overleaf.rc` in a text editor and edit the `NGINX_HTTP_PORT=80` line. Set the value to `NGINX_HTTP_PORT=8877`, then save the file and exit the editor.
61
65
62
-
## Configuring a systemd script
66
+
## Stopping the application and updating Overleaf's configuration
63
67
64
-
Once Overleaf runs correctly, you can create a systemd daemon service.
68
+
1. Stop the application with `CTRL+C`.
69
+
2. Edit the Overleaf configuration file:
70
+
```bash
71
+
nano ./config/overleaf.rc
72
+
```
73
+
3. Modify the following line:
74
+
```bash
75
+
OVERLEAF_PORT=80
76
+
```
77
+
Change it to:
78
+
```bash
79
+
OVERLEAF_PORT=8877
80
+
```
81
+
4. Save and exit.
65
82
66
-
1. Create and open the `/etc/systemd/system/overleaf.service` file in a text editor of your choice and paste the following content into it:
67
-
```
68
-
[Unit]
69
-
Description=Overleaf Community Edition
70
-
71
-
[Service]
72
-
User=root
73
-
WorkingDirectory=/opt/overleaf-toolkit
74
-
ExecStart=/opt/overleaf-toolkit/bin/up
75
-
Restart=always
76
-
RestartSec=10
77
83
78
-
[Install]
79
-
WantedBy=multi-user.target
84
+
## Configuring a systemd service
80
85
86
+
1. Create a systemd service file:
87
+
```bash
88
+
nano /etc/systemd/system/overleaf.service
89
+
```
90
+
2. Add the following content:
91
+
```
81
92
[Unit]
82
93
Description=Overleaf Community Edition
83
94
@@ -91,69 +102,70 @@ Once Overleaf runs correctly, you can create a systemd daemon service.
91
102
[Install]
92
103
WantedBy=multi-user.target
93
104
```
94
-
2. Save the file and exit the text editor.
95
-
3. Reload systemd by running the following command:
96
-
```
105
+
3. Save and exit the editor.
106
+
4. Reload systemd:
107
+
```bash
97
108
systemctl daemon-reload
98
109
```
99
-
4. Enable the `overleaf.service` to be started on reboot:
100
-
```
110
+
5. Enable and start the service:
111
+
```bash
101
112
systemctl enable overleaf.service
102
-
```
103
-
5. Start the Overleaf service:
104
-
```
105
113
systemctl start overleaf.service
106
114
```
107
-
6. Check the status of the Overleaf service:
108
-
```
115
+
6. Check the service status:
116
+
```bash
109
117
systemctl status overleaf.service
110
118
```
111
119
112
120
## Installing LaTeX packages
113
121
114
-
The LaTeX packages can now be installed, using TeX Live.
115
-
116
-
1. Run the following command to launch the Texlive manager update:
122
+
1. Update the TeX Live Manager:
123
+
```bash
124
+
docker exec sharelatex tlmgr update --self
117
125
```
118
-
docker exec Overleaf Community Edition tlmgr update --self
126
+
2. Install the full TeX Live package:
127
+
```bash
128
+
docker exec sharelatex tlmgr install scheme-full
119
129
```
120
-
2. Run the following command to launch the full `texlive` installation:
121
-
```
122
-
docker exec Overleaf Community Edition tlmgr install scheme-full
123
-
```
124
-
<Messagetype="note">
125
-
The installation of `texlive` may take a while.
126
-
</Message>
130
+
<Messagetype="note">
131
+
- Replace `sharelatex` with the name of the Share LateX container. Use `docker ps` to find it.
132
+
- The installation of `textlive` may take a while and take up a lot of storage space. Ensure your Instance has sufficent storage available.
133
+
</Message>
127
134
128
-
## Configuring Nginx
135
+
## Configuring SSL
129
136
130
-
This tutorial uses [NGINX](https://nginx.org/en/) with [Let's Encrypt](https://letsencrypt.org/) and [CertBot](https://certbot.eff.org/) as an SSL-enabled reverse proxy to secure the connection between the client and our server.
137
+
1. Install Certbot and nginx
138
+
```bash
139
+
apt install python3-certbot-nginx nginx
140
+
```
131
141
132
-
1. Install Certbot on the server:
133
-
```
134
-
apt install python3-certbot-nginx
135
-
```
136
-
2. Generate the certificate, by running the following command:
137
-
```
138
-
sudo certbot --nginx certonly
139
-
```
142
+
2. Obtain an SSL certificate
143
+
```bash
144
+
sudo certbot --nginx certonly
145
+
```
140
146
141
-
SSL certificates issued by Let's Encrypt are valid for 90 days. Certbot comes with the option to automatically renew the certificate.
142
-
3. Configure a cron job that launches Certbot daily to check the status of the certificate. Open the crontab by typing:
143
-
```
147
+
3. Add a daily cron job for certificate renewal:
148
+
```bash
144
149
crontab -e
145
150
```
146
-
4. Add the following line which will stop Nginx, renew the certificate, and restart the web server daily at 4:30 in the morning:
5. Edit the `/etc/nginx/sites-enabled/default`file so that it looks like the example below. This allows you to configure Nginx in a way that will serve our Overleaf Community Edition site as the default site:
162
+
2. Replace the file content with:
151
163
```
152
164
server {
153
165
listen 80;
154
166
listen [::]:80;
155
167
156
-
server_name my.overleave-instance.tld;
168
+
server_name my.overleaf-instance.tld;
157
169
158
170
location / {
159
171
return 301 https://$server_name$request_uri;
@@ -164,10 +176,10 @@ This tutorial uses [NGINX](https://nginx.org/en/) with [Let's Encrypt](https://l
@@ -191,14 +203,23 @@ This tutorial uses [NGINX](https://nginx.org/en/) with [Let's Encrypt](https://l
191
203
proxy_read_timeout 3m;
192
204
proxy_send_timeout 3m;
193
205
194
-
access_log /var/log/nginx/Overleaf Community Edition.access.log;
195
-
error_log /var/log/nginx/Overleaf Community Edition.error.log;
206
+
access_log /var/log/nginx/overleaf.access.log;
207
+
error_log /var/log/nginx/overleaf.error.log;
196
208
}
197
209
}
198
210
```
199
-
6. Restart Nginx with the following command:
200
-
```
211
+
<Messagetype="note">
212
+
Replace `my.overleaf-instance.tld` with your Overleaf domain name in the configuration.
213
+
</Message>
214
+
3. Save and restart Nginx:
215
+
```bash
201
216
service nginx restart
202
217
```
203
-
You can now reach your Overleaf installation at `https://<YOUR-INSTANCE-IP>/launchpad`.
204
-
Open a web browser and navigate to this page to set up your instance's administrator credentials, log in, and you can start drafting your documents, and invite collaborators to work with you.
218
+
219
+
## Creating a first admin user
220
+
221
+
1. Open your browser and navigate to `<http://<YOUR_OVERLEAF_DOMAIN>/launchpad/`. A form displays, prompting you to set up your admin account by entering an email and password. After filling in the credentials, click **Register**.
222
+
223
+
2. Follow the link to the login page (`<http://<YOUR_OVERLEAF_DOMAIN>/login>/`) and enter the credentials you just created. Upon successful login, you'll be directed to a welcome page.
224
+
225
+
To begin using Overleaf, click the green button at the bottom of the welcome page. For more information on how to use Overleaf, refer to the [official documentation](https://www.overleaf.com/learn).
0 commit comments