• Website
  • Server status
  • API documentation
  • Blog
Telegram Icon Community
EN
English
Português
Русский
中文 (中国)
Tiếng Việt
Log in Try for €1.99
  • Website
  • Server status
  • API documentation
  • Blog
  • Telegram Icon Community
  • English (US)
    English
    Português
    Русский
    中文 (中国)
    Tiếng Việt
Log in View Plans

Getting started with Multilogin X automation

Learn the basics of automation in Multilogin. Discover key concepts, benefits, and the best automation method for your needs.

search icon

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting started with Multilogin X automation
  • Basic automation with CLI
  • Low-code automation with Postman
  • Script runner & predefined scripts
  • Puppeteer, Selenium, and Playwright
  • Custom Python scripts
  • Quick solutions with Developer Tools
  • External automation tools
  • Home
  • breadcrumb separator bar
  • Multilogin X (latest)
  • breadcrumb separator bar
  • Efficient task automation with API
  • breadcrumb separator bar
  • Getting started with Multilogin X automation
  • breadcrumb separator bar
  • Configure the agent for headless mode and auto-launch in Linux

Configure the agent for headless mode and auto-launch in Linux

Written by Anton L ( Updated on December 18th, 2025 )

Updated on December 18th, 2025

Want to prepare your Linux server for using Multilogin in headless mode? Set both utilities as Systemd services. Systemd is a service manager for Linux, handling tasks like starting and stopping services during startup. This article will guide you in configuring the agent for this use case.

Keep in mind that the article is written for Ubuntu. The other distros are not officially supported.

 

Step 1: set up XVFB

Xvfb (X Virtual Framebuffer) is a display server that lets graphical applications run in environments without a physical display by creating a virtual screen in memory. It will be needed for the agent to work as intended.

  1. Open Terminal
  2. Create the XVFB service file and type the following command:
    sudo nano /etc/systemd/system/xvfb.service
  3. Add the content to the service file (and make sure to replace YOUR_USERNAME with your username in Linux OS):
    [Unit]
    Description=MLX XVFB
    After=network.target
    
    [Service]
    Type=simple
    User=YOUR_USERNAME
    ExecStart=/usr/bin/Xvfb :99 -screen 0 1920x1080x24
    Restart=always
    
    [Install]
    WantedBy=multi-user.target

    In ExecStart we configure the resolution, the number of displays, and the directory for XVFB.

     
  4. Press CTRL+X, then Y and Enter to close and save

Step 2: set up agent for auto-launch

  1. Open Terminal
  2. Create the XVFB service file and type the following command:
    sudo nano /etc/systemd/system/mlx.service
  3. Add the content to the service file (and make sure to replace YOUR_USERNAME with your username in Linux OS):
    [Unit]
    Description=MLX Agent
    After=xvfb.service
    Requires=xvfb.service
    
    [Service]
    Type=simple
    User=YOUR_USERNAME
    Environment=HOME=/home/YOUR_USERNAME
    Environment=DISPLAY=:99
    ExecStartPre=-/usr/bin/pkill -9 -f mlx
    ExecStartPre=-/bin/rm -f /home/YOUR_USERNAME/mlx/agent.lock /home/YOUR_USERNAME/mlx/profiles.lock /home/YOUR_USERNAME/mlx/launcher.lock
    ExecStart=/usr/bin/mlx
    Restart=on-failure
    RestartSec=5
    
    [Install]
    WantedBy=multi-user.target

    Let's understand what this service does:

    In [Unit], we wait for the XVFB service so we don't risk getting display errors.
    In [Service], we set the user, home variable and display variable. The display variable is set in the agent service and not XVFB, otherwise the agent would not be able to use it.
    Then, with ExecStartPre we kill any remaining agent processes and delete the .lock files, this is useful in case the service restarts.
    ExectStart is the path for the agent binary in Linux.

     
  4. Press CTRL+X, then Y and Enter to close and save

Step 3: enable and load the services

  1. Reload daemon (a background service, which loads up the other services):
    sudo systemctl daemon-reload
  2. Enable both XFVB and Multilogin X agent as services:
    sudo systemctl enable xvfb.service mlx.service
  3. Use systemctl (a utility tool used for managing system services) for starting the services:
    sudo systemctl start xvfb.service
    sudo systemctl start mlx.service
    Congratulations! Now the agent and XVFB will be launched during the OS startup. 

Use systemctl for managing services

Use systemctl utility for checking the service status. You can use them for getting logs and troubleshooting.

Check service status

Let’s get the service status with: 

sudo systemctl status xvfb.service

You will see the actions of the XVFB service. You can also change xvfb.service to the name of your service if it’s different.

Get logs

Get the service logs with journalctl service:

journalctl -u mlx.service

You can also limit it by line amount. With this command you can limit the lines up to 100:

journalctl -u mlx.service -n 100

You can also limit service logs for a time period. Here is the command for limiting the last 30 minutes of logs:

journalctl -u mlx.service --since "30 minutes ago"

-f is used for displaying logs in real time:

journalctl -u mlx.service -f

Was this article helpful?

Give feedback about this article

In this article

  • Step 1: set up Xvfb
  • Step 2: set up agent for auto-launch
  • Step 3: enable and load the services
  • How to use systemctl for managing services
  • Check service status
  • Get logs

Multilogin community

Stay informed, share your thoughts, and engage with others!

Telegram Icon Join us on Telegram

Read more on the topic

Blog Post Img

10 Best Datacenter Proxies for Web Scraping (2025 Edition)

Apr 2, 2025 5 min read
Google SERP Img

What is a Google SERP Proxy and Why Should You Care?

Apr 1, 2025 6 min read
UK Proxy Img

What Are Dedicated UK Proxies? Everything You Need to Know

Apr 1, 2025 6 min read
Related Article Title Icon

Related articles

  • How to fix error “Downloading Mimic browser”
  • How to fix Mimic start issues on Linux
  • How to install Multilogin 6 on Linux
  • Multilogin X API automation: beginner's guide

ANTIDETECT PLATFORM

  • Antidetect browser
  • Residential proxies
  • Mobile antidetect browser
  • Multi-account management
  • Headless browser
  • Web automation
  • AI Quick Action Automation

MULTI-ACCOUNTING

  • Create multiple Facebook accounts
  • Create multiple Gmail accounts
  • Create multiple LinkedIn accounts
  • Create multiple Amazon accounts
  • Create multiple Onlyfans accounts
  • Create multiple Twitter accounts
  • Create multiple TikTok accounts

GEO PROXIES

  • UK proxy
  • USA proxy
  • Japan proxy
  • India proxy
  • Pakistan proxy
  • China proxy
  • New Zealand proxy

RESOURCES

  • Knowledge base
  • API documentation
  • Glossary
  • Blog
  • Server status
  • Release notes

COMPARISON

  • Multilogin vs. Gologin
  • Multilogin vs. Adspower
  • Multilogin vs. Dolphin Anty
  • Multilogin vs. Incognition
  • Multilogin vs. Octo Browser
  • Multilogin vs. Undetectable
  • Multilogin vs. MoreLogin

PLATFORM PROXIES

  • Mobile proxy
  • Reddit proxy
  • Facebook proxy
  • SOCKS5 proxy
  • Instagram proxy
  • Onlyfans proxy
  • LinkedIn proxy

FREE TOOLS

  • Online URL to text converter

GET IN TOUCH

  • Contact 24/7 support
    [email protected]
  • Contact sales
  • Referral program
  • Affiliate program
  • Pricing page
  • Careers

© 2025 Multilogin. All rights reserved.

  • Privacy policy
  • Terms of service
  • Cookie policy
Multilogin abstract watermark
  • ANTIDETECT PLATFORM

    • Antidetect browser
    • Residential proxies
    • Mobile antidetect browser
    • Multi-account management
    • Headless browser
    • Web automation
    • AI Quick Action Automation
  • MULTI-ACCOUNTING

    • Create multiple Facebook accounts
    • Create multiple Gmail accounts
    • Create multiple LinkedIn accounts
    • Create multiple Amazon accounts
    • Create multiple Onlyfans accounts
    • Create multiple Twitter accounts
    • Create multiple TikTok accounts
  • GEO PROXIES

    • UK proxy
    • USA proxy
    • Japan proxy
    • India proxy
    • Pakistan proxy
    • China proxy
    • New Zealand proxy
  • RESOURCES

    • Knowledge base
    • API documentation
    • Glossary
    • Blog
    • Server status
    • Release notes
  • COMPARISON

    • Multilogin vs. Gologin
    • Multilogin vs. Adspower
    • Multilogin vs. Dolphin Anty
    • Multilogin vs. Incognition
    • Multilogin vs. Octo Browser
    • Multilogin vs. Undetectable
    • Multilogin vs. MoreLogin
  • PLATFORM PROXIES

    • Mobile proxy
    • Reddit proxy
    • Facebook proxy
    • SOCKS5 proxy
    • Instagram proxy
    • Onlyfans proxy
    • LinkedIn proxy
  • FREE TOOLS

    • Online URL to text converter
  • GET IN TOUCH

    • Contact 24/7 support
      [email protected]
    • Contact sales
    • Referral program
    • Affiliate program
    • Pricing page
    • Careers
Multilogin abstract watermark
  • Privacy policy
  • Terms of service
  • Cookie policy

© 2025 Multilogin. All rights reserved.

Expand