{"id":68,"date":"2024-11-14T06:39:03","date_gmt":"2025-08-19T15:53:53","guid":{"rendered":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-vnc-server-on-debian-12\/"},"modified":"2025-08-13T11:49:58","modified_gmt":"2025-08-13T10:49:58","slug":"how-to-install-vnc-server-on-debian-12","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-vnc-server-on-debian-12\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 VNC Server on Debian 12"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div class=\"container\">\n<h1>Install and Configure VNC Server on Windows VPS and Windows VPS with RDS CAL &amp; RemoteApp<\/h1>\n<p>This guide covers the installation and configuration of a VNC server on Windows VPS (Debian 12, Ubuntu 24.04, RHEL 9, AlmaLinux 9) using TigerVNC, and setting up Remote Desktop Services (RDS) with RemoteApp on a Windows VPS. It includes secure connection methods via SSH tunneling for Linux and RDP for Windows. For a reliable Windows VPS with RDS CALs, visit <a href=\"https:\/\/ie.netcloud24.com\">Netcloud24<\/a>.<\/p>\n<p>Author: \u0141ukasz Bodziony | Website: <a href=\"https:\/\/ca.netcloud24.com\">Windows VPS<\/a><\/p>\n<h2>Part 1: Windows VPS VNC Server Installation and Configuration<\/h2>\n<h3>Prerequisites<\/h3>\n<ul>\n<li>Windows VPS with root or sudo access.<\/li>\n<li>Desktop environment (e.g., XFCE for lightweight performance or GNOME).<\/li>\n<li>VNC client on your local machine (e.g., RealVNC, TightVNC Viewer).<\/li>\n<li>SSH client for tunneling (e.g., PuTTY or <code>ssh<\/code>).<\/li>\n<\/ul>\n<h3>Distribution Comparison<\/h3>\n<table>\n<tbody>\n<tr>\n<th>Distribution<\/th>\n<th>Package Manager<\/th>\n<th>Recommended Desktop<\/th>\n<th>Firewall Tool<\/th>\n<\/tr>\n<tr>\n<td>Debian 12<\/td>\n<td>apt<\/td>\n<td>XFCE<\/td>\n<td>ufw<\/td>\n<\/tr>\n<tr>\n<td>Ubuntu 24.04<\/td>\n<td>apt<\/td>\n<td>XFCE<\/td>\n<td>ufw<\/td>\n<\/tr>\n<tr>\n<td>RHEL 9<\/td>\n<td>dnf<\/td>\n<td>GNOME<\/td>\n<td>firewalld<\/td>\n<\/tr>\n<tr>\n<td>AlmaLinux 9<\/td>\n<td>dnf<\/td>\n<td>XFCE<\/td>\n<td>firewalld<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>1. Debian 12<\/h3>\n<ol>\n<li><strong>Update system:<\/strong>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n<\/li>\n<li><strong>Install desktop environment:<\/strong>\n<pre><code>sudo apt install tasksel -y\r\nsudo tasksel install xfce-desktop<\/code><\/pre>\n<\/li>\n<li><strong>Install TigerVNC:<\/strong>\n<pre><code>sudo apt install tigervnc-standalone-server tigervnc-common -y<\/code><\/pre>\n<\/li>\n<li><strong>Set VNC password:<\/strong>\n<pre><code>vncpasswd<\/code><\/pre>\n<p>Follow prompts to set a password (6-8 characters).<\/li>\n<li><strong>Configure VNC:<\/strong>Create or edit <code>~\/.vnc\/config<\/code> with:\n<pre><code>session=xfce\r\ngeometry=1280x800\r\nlocalhost\r\nalwaysshared<\/code><\/pre>\n<\/li>\n<li><strong>Assign user to VNC display:<\/strong>Edit <code>\/etc\/tigervnc\/vncserver.users<\/code> as root and add:\n<pre><code>:1=username<\/code><\/pre>\n<p>Replace <code>username<\/code> with your user.<\/li>\n<li><strong>Start and enable VNC service:<\/strong>\n<pre><code>sudo systemctl start tigervncserver@:1\r\nsudo systemctl enable tigervncserver@:1<\/code><\/pre>\n<\/li>\n<li><strong>Configure firewall:<\/strong>\n<pre><code>sudo ufw allow 5901\/tcp\r\nsudo ufw reload<\/code><\/pre>\n<p class=\"note\">Note: For security, use SSH tunneling instead of opening port 5901.<\/p>\n<\/li>\n<\/ol>\n<h3>2. Ubuntu 24.04<\/h3>\n<p>Follow the same steps as for Debian 12, replacing the desktop installation with:<\/p>\n<pre><code>sudo apt install xfce4 xfce4-goodies -y<\/code><\/pre>\n<h3>3. RHEL 9<\/h3>\n<ol>\n<li><strong>Update system:<\/strong>\n<pre><code>sudo dnf update -y<\/code><\/pre>\n<\/li>\n<li><strong>Install desktop environment:<\/strong>\n<pre><code>sudo dnf groupinstall \"Server with GUI\" -y<\/code><\/pre>\n<\/li>\n<li><strong>Install TigerVNC:<\/strong>\n<pre><code>sudo dnf install tigervnc-server -y<\/code><\/pre>\n<\/li>\n<li><strong>Follow steps 4\u20138 from Debian 12, replacing <code>tigervncserver<\/code> with <code>vncserver<\/code> in systemctl commands and using <code>session=gnome<\/code> in <code>~\/.vnc\/config<\/code>.<\/strong><\/li>\n<li><strong>Configure firewall:<\/strong>\n<pre><code>sudo firewall-cmd --permanent --add-port=5901\/tcp\r\nsudo firewall-cmd --reload<\/code><\/pre>\n<p class=\"note\">Note: Prefer SSH tunneling for secure connections.<\/p>\n<\/li>\n<\/ol>\n<h3>4. AlmaLinux 9<\/h3>\n<p>Follow RHEL 9 steps, but install XFCE desktop with:<\/p>\n<pre><code>sudo dnf groupinstall \"Xfce\" -y<\/code><\/pre>\n<p>Use <code>session=xfce<\/code> in <code>~\/.vnc\/config<\/code>.<\/p>\n<h3>Connecting to Linux VNC Server<\/h3>\n<ol>\n<li><strong>Create SSH tunnel:<\/strong>\n<pre><code>ssh -L 5901:localhost:5901 -N -f username@your-vps-ip<\/code><\/pre>\n<p>Replace <code>username<\/code> and <code>your-vps-ip<\/code>.<\/li>\n<li><strong>Connect with VNC client:<\/strong>Use <code>localhost:5901<\/code> in your VNC client and enter the VNC password.<\/li>\n<\/ol>\n<h2>Part 2: Windows VPS with RDS CAL &amp; RemoteApp<\/h2>\n<p>For a pre-configured Windows VPS with RDS CALs and RemoteApp, consider <a href=\"https:\/\/ie.netcloud24.com\">Netcloud24<\/a>. Their solutions are ready to use in 5 minutes with included RDS CALs for seamless teamwork.<\/p>\n<div class=\"promotion\">\n<p><strong>Promotion:<\/strong> Netcloud24 offers Windows VPS with RDS CALs for 5\u201325 users, starting at \u20ac92.24\/month. Enjoy Intel Xeon Gold CPUs, NVMe SSDs, automated backups, VPN support, and 24\/7 technical support. Visit <a href=\"https:\/\/ie.netcloud24.com\">Netcloud24<\/a> for more details.<\/p>\n<\/div>\n<h3>Windows VPS Plans by Netcloud24<\/h3>\n<table>\n<tbody>\n<tr>\n<th>Plan<\/th>\n<th>Price (Monthly)<\/th>\n<th>vCPU<\/th>\n<th>RAM<\/th>\n<th>SSD<\/th>\n<th>RDS CALs<\/th>\n<\/tr>\n<tr>\n<td>RDS X1<\/td>\n<td>\u20ac92.24<\/td>\n<td>4<\/td>\n<td>8 GB<\/td>\n<td>100 GiB NVMe<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>RDS X2<\/td>\n<td>\u20ac179.57<\/td>\n<td>8<\/td>\n<td>16 GB<\/td>\n<td>200 GiB NVMe<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>RDS X3<\/td>\n<td>\u20ac275.52<\/td>\n<td>8<\/td>\n<td>32 GB<\/td>\n<td>400 GiB NVMe<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>RDS X4<\/td>\n<td>\u20ac405.89<\/td>\n<td>8<\/td>\n<td>64 GB<\/td>\n<td>1 TB NVMe<\/td>\n<td>25<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Installation and Configuration<\/h3>\n<ol>\n<li><strong>Connect to Windows VPS:<\/strong>Use an RDP client (e.g., Microsoft Remote Desktop) to connect to your VPS IP with admin credentials from <a href=\"https:\/\/ie.netcloud24.com\">Netcloud24<\/a>.<\/li>\n<li><strong>Install RDS Role:<\/strong>Open Server Manager, select <code>Add roles and features<\/code>, and install:\n<ul>\n<li>Remote Desktop Services<\/li>\n<li>Remote Desktop Session Host<\/li>\n<li>Remote Desktop Licensing<\/li>\n<\/ul>\n<p>Complete the wizard to install.<\/li>\n<li><strong>Activate RDS Licensing:<\/strong>In Server Manager, go to <code>Remote Desktop Services &gt; RD Licensing<\/code>, activate the server, and install RDS CALs (included with Netcloud24 plans). Select Per User or Per Device CALs.<\/li>\n<li><strong>Configure RemoteApp:<\/strong>In Server Manager, go to <code>Remote Desktop Services &gt; Collections<\/code>, create a new collection, and publish applications (e.g., Comarch, Symfonia).<\/li>\n<li><strong>Configure Firewall:<\/strong>\n<pre><code>netsh advfirewall firewall add rule name=\"Allow RDP\" dir=in action=allow protocol=TCP localport=3389<\/code><\/pre>\n<p class=\"note\">Note: Netcloud24 provides pre-configured firewall and VPN options for enhanced security.<\/p>\n<\/li>\n<li><strong>Connect to RemoteApp:<\/strong>Access via RD Web Access (<code>https:\/\/your-vps-ip\/RDWeb<\/code>) or configure RDP files for users. Enter credentials and select published apps.<\/li>\n<\/ol>\n<h3>Netcloud24 Features<\/h3>\n<ul>\n<li><strong>Backups:<\/strong> Automated 7-day retention in a separate data center.<\/li>\n<li><strong>Dedicated Environment:<\/strong> Supports accounting systems like Comarch and Symfonia.<\/li>\n<li><strong>VPN:<\/strong> L2TP and OpenVPN with integrated firewall and UTM.<\/li>\n<li><strong>Technical Support:<\/strong> 24\/7 support for setup and optimization.<\/li>\n<li><strong>Compliance:<\/strong> Meets GDPR, KRI, and medical sector standards.<\/li>\n<li><strong>Performance:<\/strong> Intel Xeon Gold CPUs, NVMe SSDs, ECC DDR4 RAM.<\/li>\n<\/ul>\n<div class=\"promotion\">\n<p><strong>Why Choose Netcloud24?<\/strong> Get a ready-to-use Windows VPS RDS server with instant deployment and scalable resources. Visit <a href=\"https:\/\/ie.netcloud24.com\">Netcloud24<\/a> for plans starting at \u20ac92.24\/month.<\/p>\n<\/div>\n<h2>Troubleshooting<\/h2>\n<ul>\n<li><strong>Linux VNC Issues:<\/strong> Check logs with <code>journalctl -u tigervncserver@:1<\/code> or <code>journalctl -u vncserver@:1<\/code>. Verify desktop and VNC config.<\/li>\n<li><strong>Windows RDS Issues:<\/strong> Ensure RDS CALs are activated in RD Licensing Manager. Check firewall and RD Web Access URL.<\/li>\n<li><strong>Connection Problems:<\/strong> Verify SSH tunnel (Linux) or RDP port 3389 (Windows). Contact <a href=\"https:\/\/ie.netcloud24.com\">Netcloud24 support<\/a>.<\/li>\n<\/ul>\n<h2>Security Recommendations<\/h2>\n<ul>\n<li>Use strong passwords for VNC, SSH, and RDS.<\/li>\n<li>Enable SSH tunneling for Linux and VPN for Windows RDS.<\/li>\n<li>Apply regular system updates and security patches.<\/li>\n<li>Restrict firewall access to trusted IPs.<\/li>\n<\/ul>\n<footer>Guide created by \u0141ukasz Bodziony on August 13, 2025. Visit <a href=\"https:\/\/ca.netcloud24.com\">Windows VPS<\/a> for more resources. Explore Windows VPS solutions at <a href=\"https:\/\/ie.netcloud24.com\">Netcloud24<\/a>.<\/footer>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; Install and Configure VNC Server on Windows VPS and Windows VPS with RDS CAL &amp; RemoteApp This guide covers the installation and configuration of a VNC\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":2,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":4150,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/68\/revisions\/4150"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}