{"id":368,"date":"2025-03-20T12:59:10","date_gmt":"2025-03-20T12:59:10","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/03\/20\/10856380-how-to-use-the-ubuntu-24-04-template-with-desktop-on-vps-with-vnc\/"},"modified":"2026-09-15T10:17:19","modified_gmt":"2026-09-15T10:17:19","slug":"10856380-how-to-use-the-ubuntu-24-04-template-with-desktop-on-vps-with-vnc","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/10856380-how-to-use-the-ubuntu-24-04-template-with-desktop-on-vps-with-vnc\/","title":{"rendered":"How to use the Ubuntu 24.04 template with desktop on VPS with VNC"},"content":{"rendered":"<p class=\"no-margin\">Ubuntu 24.04, with a <a href=\"https:\/\/www.hostinger.com\/tutorials\/ubuntu-server-vs-desktop\/\">desktop environment<\/a>, can be accessed remotely using VNC (Virtual Network Computing). VNC allows users to connect to their VPS from any operating system, providing a graphical interface similar to what you would experience if you were sitting in front of the machine.<\/p><h3>Before you start<\/h3><ul>\n<li>Ubuntu 24.04 with Remote Desktop template requires a KVM 2 plan or higher<\/li>\n<\/ul><h2 id=\"h-apply-remote-desktop-template-in-vps\">Apply Remote Desktop template in VPS<\/h2><p class=\"no-margin\">To apply this OS template to your server, go to the<a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/servers\" target=\"_blank\" rel=\"noopener\"> VPS section<\/a> on Hostinger dashboard and click on the server you want to manage.<\/p><p class=\"no-margin\">Then, navigate to <strong>OS &amp; Panel &rarr; Operating System<\/strong> from the left sidebar. Scroll down to the <strong>Change OS<\/strong> section:<\/p><ol>\n<li>\n<p class=\"no-margin\">Use the search bar to find <strong>Desktop<\/strong><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">On the Application tab, select <strong>Remote Desktop<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-17661\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/09\/2026-09-01_11-10.png\" alt=\"\" width=\"1296\" height=\"552\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/09\/2026-09-01_11-10.png 1296w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/09\/2026-09-01_11-10-300x128.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/09\/2026-09-01_11-10-1024x436.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/09\/2026-09-01_11-10-768x327.png 768w\" sizes=\"(max-width: 1296px) 100vw, 1296px\" \/><br>\n<\/strong><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Click on <strong>Change OS<\/strong><\/p>\n<\/li>\n<\/ol><div class=\"intercom-interblocks-callout\" style=\"background-color: #fed9db80;border-color: #fd3a5733\">\n<p class=\"no-margin\">Changing the operating system on your VPS will permanently delete all your current data. If you wish to keep your information, make sure to download a backup via FTP beforehand.<\/p>\n<\/div><p><strong>NOTE<\/strong><\/p><ul>\n<li>For a broader overview of remote desktop options on Hostinger VPS beyond VNC, see <a href=\"https:\/\/www.hostinger.com\/support\/9901438-how-to-set-up-ubuntu-remote-desktop-hostinger-vps\/\">how to set up an Ubuntu 24.04 remote desktop on Hostinger VPS.<\/a><\/li>\n<\/ul><h2 id=\"h_9d209c92fa\"><b>Setting up VNC<\/b><\/h2><ol>\n<li>\n<p class=\"no-margin\"><b>Set VNC Password:<\/b><\/p>\n<ol>\n<li>\n<p class=\"no-margin\"><b><\/b>Open a terminal on your VPS.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Run the command: <code>vncpasswd \/etc\/vncpasswd<\/code><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Follow the prompts to set a secure password for VNC access.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol><h2 id=\"h_bf8234cf7c\"><b>Managing users<\/b><\/h2><ol>\n<li>\n<p class=\"no-margin\"><b>Add a new user:<\/b><\/p>\n<ol>\n<li>\n<p class=\"no-margin\">To add a new user, use the command: <code>adduser &lt;username&gt;<\/code><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Follow the prompts to set up the new user account.<br>\n&#8203;<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Reset password for existing user:<\/b><\/p>\n<ol>\n<li>\n<p class=\"no-margin\">To reset the password for an existing user (e.g., the default &lsquo;ubuntu&rsquo; user), use the command: <code>passwd ubuntu<\/code><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Enter the new password when prompted.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol><p class=\"no-margin\">To connect to your VPS using VNC, you will need a VNC client installed on your local computer. Below are instructions for different operating systems:<\/p><h2 id=\"h_f3c23f0a9f\">Windows<\/h2><ol>\n<li class=\"no-margin\"><b>Install VNC Viewer<\/b>:\n<ol>\n<li class=\"no-margin\">Visit the <a class=\"intercom-content-link\" href=\"https:\/\/www.realvnc.com\/download\/viewer\/\" target=\"_blank\" rel=\"noopener\">RealVNC website<\/a> and download the VNC Viewer for Windows.<\/li>\n<li class=\"no-margin\">Run the installer and follow the on-screen instructions to complete the installation.<\/li>\n<\/ol>\n<\/li>\n<li><b>Connect to VPS<\/b>:\n<ol>\n<li>Launch VNC Viewer.<\/li>\n<li>Enter the IP address of the VPS and use port 5900.<\/li>\n<li>Enter the VNC server&rsquo;s password when prompted.<\/li>\n<li>Click <strong>Connect<\/strong> to establish a VNC connection to the remote machine.<\/li>\n<\/ol>\n<\/li>\n<\/ol><h2 id=\"h_3b7ed7dcfe\">Linux<\/h2><ol>\n<li class=\"no-margin\"><b>Install VNC Viewer<\/b>:\n<ol>\n<li class=\"no-margin\">Follow the instructions on the <a class=\"intercom-content-link\" href=\"https:\/\/www.realvnc.com\/en\/connect\/download\/viewer\/linux\/\" target=\"_blank\" rel=\"noopener\">RealVNC website<\/a> to install the package.<\/li>\n<\/ol>\n<\/li>\n<li><b>Connect to VPS<\/b>:\n<ol>\n<li>Open a terminal and type <code>vncviewer<\/code>.<\/li>\n<li>Enter the IP address of the VPS and use port 5900.<\/li>\n<li>Enter the VNC server&rsquo;s password when prompted.<\/li>\n<\/ol>\n<\/li>\n<\/ol><h2 id=\"h_d92dd17e44\">macOS<\/h2><ol>\n<li class=\"no-margin\"><b>Use Built-in VNC Client<\/b>:\n<ol>\n<li class=\"no-margin\">Open Finder, click on the menu <strong>Go<\/strong>, then select <strong>Connect to Server.<\/strong><\/li>\n<li class=\"no-margin\">Enter the VPS&rsquo;s IP address and use port 5900.<\/li>\n<\/ol>\n<\/li>\n<li><b>Install Custom VNC Client (Optional)<\/b>:\n<ol>\n<li>You can also install a custom client, such as <a class=\"intercom-content-link\" href=\"https:\/\/www.realvnc.com\/en\/connect\/download\/viewer\/macos\/\" target=\"_blank\" rel=\"noopener\">RealVNC Viewer for macOS<\/a>.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Step by step tutorial on how to set up<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[206],"tags":[],"class_list":["post-368","post","type-post","status-publish","format-standard","hentry","category-vps-os-and-templates"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/10856380-how-to-use-the-ubuntu-24-04-template-with-desktop-on-vps-with-vnc","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=368"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/368\/revisions"}],"predecessor-version":[{"id":17663,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/368\/revisions\/17663"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}