Technical News and Knowledge Base Articles along with How to Step by Step Guides for SMB and Enterprise

Installing OpenDevin on Ubuntu 24.04 LTS

Step-by-step guide to installing OpenDevin with LMStudio on Ubtunu.

Step 1: Update and Upgrade Ubuntu

First, ensure your system is up-to-date:

sudo apt update && sudo apt upgrade -y

Step 2: Install Dependencies

Install the necessary dependencies for OpenDevin and LMStudio:

sudo apt install -y git curl wget build-essential python3 python3-pip python3-venv docker-compose

Step 3: Install and Configure Docker

Ensure Docker is running and configured correctly:

sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER

Log out and back in to apply the Docker group changes.

Step 4: Install OpenDevin

Clone the OpenDevin repository and set up the environment:

git clone
cd OpenDevin
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Step 5: Configure OpenDevin

Set up the workspace to an absolute path:

mkdir -p /absolute/path/to/workspace
export OPENDEVIN_WORKSPACE=/absolute/path/to/workspace
echo "export OPENDEVIN_WORKSPACE=/absolute/path/to/workspace" >> ~/.bashrc
source ~/.bashrc

Step 6: Install LMStudio

Clone the LMStudio repository and set it up:

git clone
cd LMStudio
docker-compose up -d

Step 7: Configure LMStudio

Ensure LMStudio is running and accessible locally:

docker ps

You should see LMStudio running in the list of Docker containers. Note the port on which LMStudio is running, usually 5000.

Step 8: Connect OpenDevin to LMStudio

Configure OpenDevin to use the local LMStudio server:

export OPENDEVIN_LMSTUDIO_URL="http://localhost:5000"
echo "export OPENDEVIN_LMSTUDIO_URL='http://localhost:5000'" >> ~/.bashrc
source ~/.bashrc

Step 9: Test the Setup

Run OpenDevin and check if it connects to LMStudio:

cd OpenDevin
source venv/bin/activate

Ensure there are no connection errors and that OpenDevin can utilize the local LLMs.

Additional Configurations

  1. Firewall Settings: Ensure that the local ports used by Docker and LMStudio are not blocked by your firewall.
sudo ufw allow 5000
sudo ufw allow 2375
  1. Persistent Docker Configuration: Ensure Docker starts on boot:
sudo systemctl enable docker
  1. Automatic Script: You can create a script to automate the startup process for convenience:
# Start Docker
sudo systemctl start docker
# Start LMStudio
cd /path/to/LMStudio
docker-compose up -d
# Start OpenDevin
cd /path/to/OpenDevin
source venv/bin/activate

Make the script executable:

chmod +x

Run the script to start both LMStudio and OpenDevin:


Troubleshooting Tips

  • Docker Issues: Ensure Docker is running and you have the necessary permissions.
  • LMStudio Connection: Verify the LMStudio server is accessible by checking http://localhost:5000 in your browser.
  • Environment Variables: Double-check that OPENDEVIN_WORKSPACE and OPENDEVIN_LMSTUDIO_URL are correctly set in your environment.

  • Guide to Installing Ubuntu 24.04 on a Modern Laptop
    Installing Ubuntu 24.04 on a modern laptop involves several detailed steps. This guide will cover everything from preparing your system to securing your installation with encryption and UEFI security. Follow these instructions carefully to ensure a smooth and secure installation process.
  • Setting Up Remote Desktop on Ubuntu 24.04
    Remote Desktop allows you to connect and control your Ubuntu 24.04 machine from another device. This guide covers setting up Remote Desktop using built-in or open-source tools available in the official Ubuntu 24.04 repositories, along with additional configuration, optimization tips, and an explanation of how Remote Desktop works.
  • Understanding SSH and Its Use in Ubuntu 24.04 Linux
    Secure Shell (SSH) is a cryptographic network protocol for securely operating network services over an unsecured network. It provides a secure channel over an unsecured network in a client-server architecture, connecting an SSH client application with an SSH server.
  • Installing OpenDevin on Ubuntu 24.04 LTS
    Step-by-step guide to installing OpenDevin with LMStudio on Ubtunu.
  • Using ClamAV for Virus and Malware Scanning on Ubuntu 24.04
    Keeping your Ubuntu 24.04 system free of viruses and malware is essential for maintaining security and performance. ClamAV is a popular open-source antivirus engine designed for detecting trojans, viruses, malware, and other malicious threats. This guide will walk you through the process of installing and using ClamAV on Ubuntu 24.04.