How to Install Overleaf on Debian Latest

Overleaf is an online LaTeX editor that simplifies the process of creating and collaborating on LaTeX documents. If you're using Debian Latest and want to install Overleaf, follow these steps:

Step 1: Install the Latest Version of Perl

Overleaf requires Perl 5.8 or higher to run. To install the latest version of Perl, open your terminal and run the following command:

sudo apt-get update
sudo apt-get install perl

Step 2: Install TeXLive Packages

Overleaf uses TeXLive packages to compile LaTeX documents. To install TeXLive packages, run the following command:

sudo apt-get install texlive-full

Step 3: Install Overleaf's Command Line Tool

Overleaf provides a command-line tool called overleaf-cli that allows you to upload and download files from your Overleaf projects. To install overleaf-cli, run the following commands:

sudo apt-get install python3-pip
sudo pip3 install overleaf

Step 4: Log in to Overleaf and Get Your API Key

Before you can use overleaf-cli, you need to log in to your Overleaf account and get your API key. To get your API key, follow these steps:

  1. Log in to your Overleaf account.
  2. Click on your user menu in the top right corner of the page.
  3. Click Account Settings.
  4. Click the API tab.
  5. Click the Generate API Key button.

Copy your API key to your clipboard.

Step 5: Configure overleaf-cli

To configure overleaf-cli, run the following command:

overleaf configure

You'll be prompted to enter your Overleaf email address and API key. Enter them and press Enter to save the settings.

Step 6: Create Your First Overleaf Project From the Command Line

To create your first Overleaf project from the command line, run the following command:

overleaf create my-project

Replace my-project with the name you want to give your project. This will create a new empty project on Overleaf.

Step 7: Download Your Overleaf Project From the Command Line

To download your Overleaf project from the command line, run the following command:

overleaf download my-project

Replace my-project with the name of the project you want to download. This will download a ZIP file of your project to your local machine.

Step 8: Unzip Your Overleaf Project

To unzip your Overleaf project, navigate to the directory where you downloaded the ZIP file, and run the following command:

unzip my-project.zip

Replace my-project.zip with the name of the ZIP file you downloaded. This will unzip your project and create a new directory with the same name as your project.

Step 9: Open Your Overleaf Project in Your Local LaTeX Editor

Now that you've downloaded your Overleaf project to your local machine, you can open it in your favorite LaTeX editor and start editing.

Congratulations! You've successfully installed Overleaf on Debian Latest and created your first Overleaf project from the command line.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!