Cheap Domains, $1 .COM Websites! - Free .COM (or $1.99) on Many Products!
 
Only Minimal Purchase Req'd on Many Free/$1.99 .COM Offers.    And Our Sale Domains are Often Under $2 or $3/year with No Further Purchase Req'd.
 
Plus, almost ALWAYS 15% OFF Everything Not Already Discounted.    15% OFF Most Renewals too!      New: Business-Growth Website-Builders and Hosting!
 

 *ICANN fee adds 18ยข many domains; tas applies some areas.  Our $1 Website Builder with Free .COM is based on 12 months at $1/mo.   Multipile or "Stacked" discounts in same purchase often disallowed (may require separate transactions).  Click for details.

 
Cheap Domains Cheap Domain Names

  
Use Promo HDX for at least
Cheap .com
that's not already On Sale!*
 

Cheap Domains     $1 Websites     Free USA-based Sales/Support:  (800) 655-5512
 

.COM $7.64 (Promo: HDX) |  .NET $10.19  |  .SITE $2.99  |  .ORG $11.99  |  .XYZ $0.99  |  .UK $7.64  |  .EU $6.79

Cheap Domains include FREE:  100 Email Addresses & Account, Full DNS Control, Domain Forwarding, Masking, Registrant-Change/Transfer, Monitoring/Alerts, Locking, Expiration Protection, More!

Cheap Domains - Find Yours Now:    
 
Most prices shown
use Promo Code: HDX.  This search function, and most product pages, display higher prices at first, but don't worry,  Discounts appear in Shopping Cart when Promo Code Entered    details

Free .COM Domains!   often with: cPanel Hosting,

  Plesk Hosting, Managed WordPress Hosting, Business Hosting

$2 Website & Business Website Builder

   

$1.99 .COM Domains  often offered on: Spam-Free Email,

Online Group Calendar, Online Storage, SSL Certificates, more!

 
Terms & Conditions Here.  Add a .COM to Cart to verify price if product description not specific..

 

 
 

 Cheap Cloud Hosting      Cheap WordPress Hosting      Sell Online! Easy Shopping-Cart Website - $8
Cheap Dedicated Servers       Cheap Virtual Private Servers      
Cheap cPanel Hosting 

 
$1 Domains | $1 .COM 
 
  

Frequently Asked Questions

Other Languages: Español

Setting up Remote Desktop for Your CentOS or Fedora Linux Dedicated Server

Print this Article
Last Updated: December 21, 2017 11:31 AM

Some of the information in this article is advanced material we make available as a courtesy. Please be advised that you are responsible for properly following the procedures below. Customer Support cannot assist with these topics.

You can set up quick and secure desktop access to your Linux dedicated server environment using Virtual Network Computing (VNC) and a secure connection between the server and the desktop.

Be sure to complete all steps below to ensure a secured connection. VNC is unencrypted and not safe over an open network, so all steps below are required to set up and secure the connection.

NOTE: These instructions are for Linux dedicated servers running CentOS or Fedora only.

Step 1 — Installing GNOME and VNC

This step contains two installations: first, the GNOME desktop environment group; second, the VNC Server package. Both are installed using yum, which is available on your Linux dedicated server.

To Install GNOME and VNC

  1. Log in to your Linux dedicated server as root user via SSH (Secure Shell Protocol).
  2. Type the following, and then press Enter. The process takes a few minutes to complete:
    yum -y groupinstall "GNOME Desktop Environment"
  3. Type the following, and then press Enter:
    yum -y install vnc-server

TIP: Using yum makes these installation steps quick and clean.

Your desktop environment is now installed and so is VNC, which you use to access it.

Step 2 — Configuring VNC for Remote Access to the Desktop

Here are the configuration steps required to access your desktop through VNC.

To Configure a VNC User

  1. Log in to your Linux dedicated server (via SSH) as the user you want to use to access VNC.
  2. Type the following, and then press Enter:
    cd ~/
  3. Type the following, and then press Enter. You are prompted to enter and confirm the VNC password for this user:
    vncpasswd

    NOTE: When you access the desktop through VNC, use your VNC password to establish the VNC connection, and then the user's password to access the desktop environment.

To Edit the VNC Configuration File

This process configures VNC to further secure connections to the desktop, set the base size to render the desktop, and identify the port to be used for remote desktop connections.

  1. Log in to your Linux dedicated server as root user via SSH.
  2. Using any plain text editor, open /etc/sysconfig/vncservers.
  3. Add the following two entries to the file and save it. IMPORTANT: Replace "yourvncuser" with the user name you want to use to access the desktop:
    VNCSERVERS="1:yourvncuser"
    VNCSERVERARGS[1]="-geometry 1024x768 -localhost"
    

    These settings configure the following:

    • 1 — This indicates the port used for the VNC connection. Only the last digit is entered and the first three are implicit. For example, 1 defines port 5801. 9 indicates use of port 5809.
    • 1024x768 — This sets the size that VNC renders your desktop. You can optionally change it.
    • -localhost — This option limits VNC to allow only local connections. This setting makes the VNC connection more secure when used in conjunction with an SSH tunnel. SSH tunnel setup is in the next section.
  4. Type the following, and then press Enter:
    /sbin/service vncserver start
  5. Type the following, and then press Enter:
    /sbin/service vncserver stop

To Edit the VNC Startup File

  1. Log in to your Linux dedicated server (via SSH) as the user you want to use to access VNC.
  2. Using any plain text editor, open ~/.vnc/xstartup.
  3. Uncomment the following lines:
    unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc
    
  4. Save the file.

    The resulting file should look like this:

    #!/bin/sh
    (while true ; do xterm ; done ) &
    # Uncomment the following two lines for normal desktop:
    unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc
    
    [ -x /etc/vnc/xstartup ] & exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] & xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    twm &
    

To Start the VNC Server and Verify That It's Running

  1. Log in to your Linux dedicated server as root user via SSH.
  2. Type the following, and then press Enter.
    /sbin/service vncserver start
  3. Type the following, and then press Enter.
    /sbin/chkconfig vncserver on

    TIP: Use this last command at any time to verify that the service is started. After a reboot, for example.

You've now completed configuration of VNC. The next step is to set up the secure SSH tunnel to access your Linux desktop.

Step 3 — Configuring a Secure Connection to the Linux Desktop

To securely access your desktop, you need to use an SSH tunnel to your server. The easiest method is to use PuTTY and save the configuration for use each time you access the server.

To Configure a Secure Connection to Access the Linux Desktop

NOTE: These instructions assume that you have a stored PuTTY session to connect to your Linux dedicated server. If you do not, consult PuTTY help documentation to create a session.

  1. Open PuTTY, select the saved session, and then click Load.
  2. In the Category section, from Connection click SSH, and then click Tunnels.

  3. Type and enter the following, and then click Add:
    • Source port — Type 580, plus the port you specified in the VNC configuration file. Because we used port 1 in that example, here we would enter 5801.
    • Destination — Type 580, plus the port you specified in the VNC configuration file. Because we used port 1 in that example, here we would enter 5801.
  4. Type and enter the following, and then click Add:
    • Source port — Type 590, plus the port you specified in the VNC configuration file. Because we used port 1 in that example, here we would enter 5901.
    • Destination — Type 590, plus the port you specified in the VNC configuration file. Since we used port 1 in that example, here we would enter 5901.
  5. In the Category section, navigate to Session, and then click Save.

Step 4 — Accessing the Linux Desktop

Each time you access the Linux remote desktop, you open the SSH tunnel you configured in Step 3, and then open an Internet browser that has Java applets enabled to log in to VNC.

To Access the Linux Desktop

NOTE: These instructions assume that you have a stored PuTTY session to connect to your Linux dedicated server. If you do not, consult PuTTY help documentation to create a session.

  1. Open PuTTY, select the saved session, click Load, and then log in to your server. This opens the SSH Tunnel that you configured in Step 3.
  2. Open an Internet browser session, type http://localhost:580n (where n is the port you specified in the VNC configuration file, and then press Enter. The Connection Details window opens.

    TIP: The completed URL looks like this: http://localhost:580n — where n is the port number you configured in Step 3.

  3. Click OK. The VNC Authentication window opens.
  4. Enter the password you configured in Step 2 for your VNC user name, and then press Enter.

This opens a secure connection from your Linux server to your desktop and you should see a screen similar to the one below.

(Optional) Step 5 — Removing GNOME and VNC

After completing the process, you might want to remove the GNOME desktop environment group and VNC Server package. Both are removed using yum, which is available on your Linux dedicated server.

To Remove GNOME and VNC

  1. Log in to your Linux dedicated server as root user via SSH (Secure Shell Protocol).
  2. Type the following, and then press Enter. The process takes a few minutes to complete:
    yum groupremove "GNOME Desktop Environment"
  3. Type the following, and then press Enter:
    yum remove vnc-server
1 Dollar Website includes FREE .COM DOMAIN name
 


Toll Free Technical Support from a USA Call Center, 24 hours a day, 365 days a year:    (800) 655-5512
 
Call us with any sales or support question.     Place Orders by Phone.    Our USA-based Help Desk speaks your language.
 

Call Centers located in the Greater Phoenix metro area and Central Iowa, USA.     Technical Support also available in Spanish   New to Us?  Get a free account in 60 seconds.


 

 

 $1 Domains   |   $1 Websites   |   Product Catalog   |   Sale Price FAQ   |   Help Pages   |   Free Phone Support   |   Free WHOIS Lookup   |   My Cart   |   My Account Login

 
ICANN fee of 18 cents [$0.18] may apply on some domain names.    Notice for .eu and some other registering inbound
domain transfers: WHOIS may show domain held under registry
Weiled Weast Domains and/or HostingDude.com.   Legal Agreements.

(https://cheap.hostingdude.com)
 

 


 

Copyright ? 2003 - 2019  HostingDude, Inc.  All Rights Reserved.  No reprint or re-use without written authorization.