Correctly Install LM Studio on Linux Ubuntu and Host LLMs Using GUI

3 min read 11 hours ago
Published on Mar 23, 2026 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

In this tutorial, you will learn how to correctly install LM Studio on a Linux Ubuntu system and host large language models (LLMs) using its graphical user interface (GUI). This guide will walk you through each step of the process, ensuring that you can set up LM Studio effectively and start utilizing it for your machine learning projects.

Step 1: Install LM Studio

To begin, you need to install LM Studio on your Linux Ubuntu machine. Follow these steps:

  1. Open Terminal: You can do this by searching for "Terminal" in the applications menu.
  2. Download the LM Studio package:
    • Use the following command to download the latest version:
      wget [URL_TO_LM_STUDIO]
      
    • Replace [URL_TO_LM_STUDIO] with the actual download link for the LM Studio package.
  3. Install the package:
    • Navigate to the directory where the package is downloaded:
      cd [DIRECTORY_PATH]
      
    • Replace [DIRECTORY_PATH] with the path to the downloaded file.
    • Install the package using:
      sudo dpkg -i [PACKAGE_NAME].deb
      
    • Replace [PACKAGE_NAME] with the name of the downloaded LM Studio package.
  4. Resolve dependencies (if needed):
    • If there are any missing dependencies, run:
      sudo apt-get install -f
      

Step 2: Create a Desktop Shortcut

Creating a desktop shortcut for LM Studio makes it easy to access the application. Here’s how:

  1. Create a .desktop file:
    • Open a text editor and create a new file named lmstudio.desktop.
  2. Add the following content:
    [Desktop Entry]
    Name=LM Studio
    Exec=/path/to/lmstudio
    Type=Application
    Icon=/path/to/icon.png
    Terminal=false
    
    • Replace /path/to/lmstudio with the actual path to the LM Studio executable.
    • Replace /path/to/icon.png with the path to an icon file for LM Studio.
  3. Make the file executable:
    • Run the following command in the terminal:
      chmod +x lmstudio.desktop
      
  4. Move the file to the applications directory:
    • Use the command:
      mv lmstudio.desktop ~/.local/share/applications/
      

Step 3: Download and Install Large Language Models

Once LM Studio is installed, you can download and set up large language models such as DeepSeek R1. Follow these steps:

  1. Open LM Studio: Launch the application using the desktop shortcut you created.
  2. Navigate to the Model Download section: In the LM Studio GUI, locate the section for downloading models.
  3. Search for DeepSeek R1:
    • Input "DeepSeek R1" in the search bar.
  4. Download the model:
    • Click on the download button next to DeepSeek R1 and wait for the download to complete.
  5. Install the model:
    • Follow the prompts in LM Studio to complete the installation process for the downloaded model.

Conclusion

You have now successfully installed LM Studio on your Linux Ubuntu system and created a desktop shortcut for easy access. Additionally, you have downloaded and installed a large language model. With this setup, you are ready to explore and utilize machine learning capabilities within LM Studio. Consider experimenting with different models and features to fully leverage the power of LLMs in your projects.