Install v2rayN on Linux: DEB and RPM Packages, Desktop Launch, and Autostart

Install the v2rayN desktop app on Debian/Ubuntu or Fedora/openSUSE, resolve dependencies, configure the system proxy, and set it to start automatically after login.

At a glance

Choose the v2rayN desktop package for your distribution and system architecture, then let your package manager handle dependencies. After the first launch, verify that the local proxy forwards requests from a terminal before configuring the system proxy and login autostart. Here, “autostart” means launching after you enter the graphical desktop—not running as a system service before login.

Choose a Package: Check Your Distribution, Then Your Architecture

The Linux desktop version of v2rayN uses the Avalonia UI. First, check your distribution and version with cat /etc/os-release, then check your system architecture with uname -m. The same package extension does not mean packages are interchangeable across distributions: Fedora and openSUSE both use RPM, but repository dependency names and versions may differ. If the download page lists supported distributions or a minimum version, follow the notes for the package you choose.

Debian / Ubuntu

Package format
.deb
Install tool
apt
Check architecture
dpkg --print-architecture
Inspect package metadata
dpkg-deb -I

If your system reports amd64, the corresponding download label is commonly x64.

Fedora / openSUSE

Package format
.rpm
Fedora tool
dnf
openSUSE tool
zypper
Inspect package metadata
rpm -qip

RPM packages commonly use x86_64 or aarch64 for the architecture; the latter is also often labeled arm64.

Install Local DEB and RPM Packages

  1. Download the package

    Choose Linux on the download page, then select the package for your system. Run the commands below in Bash: open the package directory in your file manager, then open a terminal there. When prompted, enter the actual filename, including its extension, without quotes.

  2. Check package details

    Run the command for your system below. For DEB packages, check Architecture and Depends. For RPM packages, check Architecture; to expand the dependency list, also run rpm -qpR "./$pkg". If a command returns an error, first check the file path. If the architecture does not match, choose a different package before installing.

  3. Review the installation transaction

    Review the dependencies, download sources, and packages slated for removal listed by the package manager, then confirm the installation. If dependencies cannot be satisfied, note the first missing library or version requirement and check your system repositories and distribution version instead of forcing the installation past the dependency check.

  4. Launch from the desktop

    After installation, search for v2rayN in the applications menu and launch it as your current desktop user. Installation commands require administrator privileges, but the app itself should not be launched with sudo. Doing so may save configuration under another account or leave files your user cannot modify.

Debian / Ubuntu:apt

read -r -p 'Enter the name of the DEB file in the current directory: ' pkg
dpkg-deb -I "./$pkg" && sudo apt update && sudo apt install "./$pkg"

./ tells apt to use a file in the current directory rather than a package name from a repository. apt update refreshes repository indexes; then apt install installs the local file and looks for dependencies in enabled repositories. If the refresh reports a repository URL or network error, resolve that first—it does not mean the v2rayN installation has failed.

Fedora:dnf

read -r -p 'Enter the name of the RPM file in the current directory: ' pkg
rpm -qip "./$pkg" && sudo dnf install "./$pkg"

openSUSE:zypper

read -r -p 'Enter the name of the RPM file in the current directory: ' pkg
rpm -qip "./$pkg" && sudo zypper install "./$pkg"

If zypper offers solutions such as “ignore dependencies” or “do not install,” choose not to install and check that the package targets your system and the relevant repositories are enabled. Do not add a single missing library by mixing in repositories from another distribution. If the app icon is still missing after installation, use dpkg-deb -c "./$pkg" or rpm -qlp "./$pkg" to check whether the package contains a .desktop launcher.

System Proxy: Test the Local Port Before Changing Desktop Settings

An app window opening only confirms that the desktop app has launched. Import your own configuration and select a node, then check the local listening ports under v2rayN’s “Settings” → “Parameter settings.” The example below uses a mixed inbound listener at 127.0.0.1:10808. If your configuration listens separately for HTTP and SOCKS, use the corresponding port for each test; do not copy the example value directly into your system settings.

127.0.0.1
Loopback address
10808
Example mixed inbound port
15 seconds
Example total request timeout
ss -ltn 'sport = :10808'
curl -I --max-time 15 --noproxy "" --proxy http://127.0.0.1:10808 https://example.org/

ss checks whether a TCP port is listening; it does not confirm that requests can be forwarded. The second command explicitly uses an HTTP proxy and sets an empty --noproxy value so existing proxy bypass rules in your terminal do not affect the test. To confirm success, check the response from the destination site—not just the 200 Connection established response returned when the proxy creates a tunnel. If only a SOCKS inbound is enabled, change the proxy address to socks5h://127.0.0.1:10808 and use the actual SOCKS port.

Autostart After Login: Client Setting or Desktop Launcher

First make sure manual launch, node connections, and proxy settings all work, then enable autostart. Use just one launch method: enabling both the client setting and a desktop launcher may start the app twice or cause a port conflict on the second launch.

Client autostart setting

Recommended

If your Linux build offers “Start automatically at boot” under “Settings” → “Parameter settings,” use that option first. After saving, log out and back in to confirm the app has started. If the tray icon is not visible, check the system monitor and whether the local port is listening.

Best for: Builds with a built-in setting that works with your current desktop session.

XDG desktop autostart

If your build does not provide an autostart setting, copy the verified app launcher to your user’s autostart directory on a desktop environment that supports XDG Autostart. Use the launch command supplied by the package; there is no need to guess the executable path.

Best for: The app launches normally from the desktop, but has no working autostart setting.

Find the v2rayN .desktop file installed in the applications directory among the package files listed earlier. A common location is /usr/share/applications/. First check that its applications menu entry launches the app, then run the commands below in Bash. When prompted, enter the file’s absolute path.

read -r -p 'Enter the absolute path to the installed v2rayN .desktop file: ' launcher
autostart_dir="${XDG_CONFIG_HOME:-$HOME/.config}/autostart"
test -f "$launcher" && mkdir -p "$autostart_dir" &&
  cp -i -- "$launcher" "$autostart_dir/"

Do not use sudo here. If a file with the same name already exists, inspect the existing entry before proceeding; do not overwrite it blindly. After logging in again, test the local port and a proxied request—both must pass to confirm the connection works after autostart. If the entry does not run, check whether Hidden=true, OnlyShowIn, or NotShowIn in your user copy disables it for your desktop, and whether the program specified by TryExec exists. To undo manual autostart, remove only the copy in the autostart directory; keep the original applications menu entry.

Common Issues: Troubleshoot Installation, Launch, and Proxying Separately

A dependency is missing. Should I install the library separately?

First note the library name and minimum version reported by the package manager. On Debian or Ubuntu, run apt-cache policy followed by the library name to check candidate versions. On Fedora, use dnf info followed by the package name to check its source. On openSUSE, use zypper search -s followed by the package name to check available versions. If your repositories do not offer a version that meets the requirement, first try a package explicitly supported on your distribution.

I clicked the app icon, but no window appeared. Why?

Open the installed .desktop file and check its Exec= line. In a terminal within the graphical session, run the program and fixed arguments shown there, keeping any path quotes and omitting field codes such as %U and %F that are interpreted by the desktop. This can reveal missing-library or permission errors and help distinguish a process that exited from a window minimized to the tray.

The terminal test works. Why isn't my browser using the proxy?

A request with the proxy specified explicitly confirms that the local port forwarded traffic in that test. Next, check whether the browser is set to “Use system proxy settings,” whether the desktop HTTP and HTTPS fields have the correct port, and whether the destination domain is on the proxy bypass list. Change one setting at a time, then retest the same site.

No connection right after login, but it works a little later?

Use ss to check when the local port starts listening. If the desktop kept its previous proxy settings while the v2rayN core is still starting, requests may reach a port that is not listening yet. Disable the client’s automatic proxy configuration or clear the manual desktop proxy, then re-enable it after the local test passes. If the port never appears, check the client logs for startup errors.

V2Ray Client Downloads