• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Rackspace & HP Cloud Server VNC Remote Desktop (Ubuntu 14.04)

By Abhishek Ghosh August 15, 2015 4:08 am Updated on August 15, 2015

Rackspace & HP Cloud Server VNC Remote Desktop (Ubuntu 14.04)

Advertisement

Here is Updated Guide For Using Rackspace & HP Cloud Server VNC Remote Desktop on Ubuntu 14.04 LTS With Step by Step Commands With TightVNC. Older guide is here – Ubuntu with GUI on Rackspace Cloud Server as VNC Remote Desktop. We were thinking to publish new versions of guides, in fact published some of them, but specially for this article – it is on request of a reader over Twitter. Those who are not aware about Virtual Network Computing (VNC) can read the theory here.

In very short, there are not huge differences between a server operating system and a desktop operating system. If you can not handle SSH and that is a reason of using VNC, then we will suggest you to use a command line file manager for SSH instead of using VNC.

After running some command, you can use the virtual server with full GUI from your local computer. Do not do these steps for active server running serious website(s).

Advertisement

---

For security reasons after Snowden revelations and for the sake of forcing non-Free software not to get auto-installed, the process has been difficult than before. As the kernel has been patched, it actually does not matter on which version – all will give a slight pain.

This guide brings the classic Ubuntu’s desktop unity. Other guides on Digital Ocean or somewhere else are not for Ubuntu Desktop’s one. Their hardware may not carry the load or they may fear for networking security.

 

Rackspace & HP Cloud Server VNC Remote Desktop (Ubuntu 14.04) : Introduction

 

This type, we have mixed two Cloud IaaS providers as specific type of provider for a particular guide. HP Cloud is almost the same like Rackspace, it is also OpenStack driven on the software side, but hardware, cost and security are better on HP Cloud. But the word GUI can be a joke for current control panel of HP Cloud, if you try to compare with Rackspace. You need to configure router for HP Cloud if this is the first thing which you are going to do on HP Cloud – port 5901 should be allowed on connect from router.

The localhost, that means your computer can a MicroSoft Windows computer, a Mac or a GNU/Linux PC. For MicroSoft Windows computer, exactly like the previous guide – you’ll be using PuTTY. For Mac or GNU/Linux; you are using Terminal/iTerm2 and Terminal, respectively.

First, spin up an instance with 1GB of RAM. Select Ubuntu 14.04 LTS as server operating system. HP Cloud will charge around 30 USD per month on 720 hours / month basis. After the instance is ready, you need to SSH to the server either via PuTTY or Terminal/iTerm2. We are writing the steps after login as root to the remote server. 1 GB RAM is for example, we could be using any amount of RAM. As the virtual instances are not exactly for running graphical stuffs, quality of display actually sucks. The VNC server software we will be using is TightVNC. There are other softwares like TightVNC. For HP Cloud, associate a floating IP to the instance.

On your localhost, you need to download a software from TightVNC’s official website – install Realvnc-client or TightVNC.

For GNU/Linux use vino, for Mac, you need nothing – OS X has that needed package installed.

If you can rightly follow the guide as test and connect as VNC remote desktop, before deleting, take full server snapshot both for HP Cloud and Rackspace before deleting. Next time, you’ll be simply spinning up from the snapshot.

This guide works for Cloud edition.
For HP Cloud, you need another extra step – activate password passed login and deactivate key based login.

Never forget – you can test from one GNU/Linux on that about testing VNC! GNU/Linux & UNIX are multiple users’ operating system. You can test from Android device with VNC client. For security reasons, now configuration has been tad hard.

 

Rackspace & HP Cloud Server VNC Remote Desktop (Ubuntu 14.04) : Commands

 

The previous guide is good for some screenshots for the Rackspace users. Run :

Vim
1
apt update -y && apt upgrade -y

If you face a colorful window on SSH for the upgrade, only hit the return / enter key from keyboard.

We will use the classic Ubuntu desktop package for this guide. Run this command :

Vim
1
dpkg -l | grep vnc

If nothing returns, that is what is expected. There should not be any other vnc running. We will run one command to install all the needed packages on Rackspace & HP Cloud Server VNC remote desktop setup on Ubuntu 14.04 :

Vim
1
sudo apt-get --install-recommends install ubuntu-desktop

--install-recommends flag makes the package compatible with patches, this was not needed before :

Vim
1
sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

now install VNC server software :

Vim
1
sudo apt-get install vnc4server

OK, now straightforwardly go to Line 57 of this file by this command :

Vim
1
nano +57 /usr/bin/vncserver

you will see lines like :

Vim
1
2
3
4
5
$defaultXStartup
    = ("#!/bin/sh\n\n".
       "# Uncomment the following two lines for normal desktop:\n".
       "# unset SESSION_MANAGER\n".
       "# exec /etc/X11/xinit/xinitrc\n\n".

After that "# exec /etc/X11/xinit/xinitrc\n\n"., you will add :

Vim
1
2
3
4
5
       "gnome-panel &\n".
       "gnome-settings-daemon &\n".
       "metacity &\n".
       "nautilus &\n".
       "gnome-terminal &\n".

Now run :

Vim
1
vncserver

provide password. There is no need of view-only. By default, VNC server instance is on port 5901. Connect using your client software. You should be able to connect. If you can not connect or see desktop via client, you need some fix.

Next part is difficult. It is for making it a service. Run the commands :

Vim
1
nano /etc/init.d/vncserver

copy-paste it :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
### BEGIN INIT INFO
# Provides:          VNCSERVER
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO
unset VNCSERVERARGS
VNCSERVERS=""
[ -f /etc/vncservers.conf ] && . /etc/vncservers.conf
prog=$"VNC server"
start() {
. /lib/lsb/init-functions
REQ_USER=$2
echo -n $"Starting $prog: "
ulimit -S -c 0 >/dev/null 2>&1
RETVAL=0
for display in ${VNCSERVERS}
do
export USER="${display##*:}"
if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then
echo -n "${display} "
unset BASH_ENV ENV
DISP="${display%%:*}"
export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
su ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
fi
done
}
stop() {
. /lib/lsb/init-functions
REQ_USER=$2
echo -n $"Shutting down VNCServer: "
for display in ${VNCSERVERS}
do
export USER="${display##*:}"
if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then
echo -n "${display} "
unset BASH_ENV ENV
export USER="${display##*:}"
su ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
fi
done
echo -e "\n"
echo "VNCServer Stopped"
}
case "$1" in
start)
start $@
;;
stop)
stop $@
;;
restart|reload)
stop $@
sleep 3
start $@
;;
condrestart)
if [ -f /var/lock/subsys/vncserver ]; then
stop $@
sleep 3
start $@
fi
;;
status)
status Xvnc
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac

Make it executable :

Vim
1
sudo chmod +x /etc/init.d/vncserver

Now create another file :

Vim
1
nano /etc/vncservers.conf

copy-paste it :

Vim
1
2
VNCSERVERS="1:ubuntu"
VNCSERVERARGS[1]="-geometry 1024x768"

ubuntu is username, you can use other name but on in HP Cloud. For HP Cloud, you need the username to be ubuntu for debugging key based ssh. Again make it readable :

Vim
1
sudo chmod +x /etc/vncservers.conf

Now run :

Vim
1
sudo update-rc.d vncserver defaults

Now restart the service :

Vim
1
sudo /etc/init.d/vncserver restart

Rackspace & HP Cloud Server VNC Remote Desktop (Ubuntu 14.04)

For Rackspace, there will be no issue. For HP Cloud, it is not only guide which can enable you to view. Honestly you need a bit grasp on unix system. This guide will not need to modify ../,,/.vnc/xstartup file, still we are providing you a snippet :

Vim
1
2
3
4
5
6
7
8
9
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
 
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

At the end, OS X can directly connect from Safari if you use this format – vnc://ubuntu@I.P.address

Tagged With RACKSPACE HP CLOUD SERVER VNC REMOTE DESKTOP , remote desktop to rackspace server

This Article Has Been Shared 584 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Rackspace & HP Cloud Server VNC Remote Desktop (Ubuntu 14.04)

  • Rackspace Cloud’s Way is The Way of Cloud Computing

    Rackspace Cloud’s Way is The Way of Cloud Computing,because Rackspace Defined the Way of Free Software usage for Cloud Computing as well as the managed support.

  • PubSubHubbub and Rackspace Cloud Queue

    PubSubHubbub is a networking protocol. Rackspace is Open Source but infamous for difficult to understand API documentation by normal human.

  • How to Upload Backup to Dropbox from Cloud Server

    Here is How to Upload Backup to Dropbox from Cloud Server in Case You Want To Keep Your Backup of Files and Database on a Free Cloud Storage.

  • Install Nginx PHP5-FPM on HP Cloud

    Here is How To Install Nginx PHP5-FPM on HP Cloud. HP Cloud means HP Helion Public Cloud. It is basically very easy to work with HP Cloud. People fear HP Helion Public Cloud very much. The basic reason possibly is not understanding the basics of Security Group Rules. So, you need to read our previous […]

  • Port knocking in Ubuntu : Hide SSH Daemon on HP Cloud

    Port knocking is used to stop port scan by the attackers who seeks the vulnerable services to attack. Here is guide for the HP Helion Public Cloud Users.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is an Automatic Ethanol Fireplace February 8, 2023
  • Disadvantages of Cloud-Native Computing February 7, 2023
  • Projector Screen Basics February 6, 2023
  • What is Configuration Management February 5, 2023
  • What is ChatGPT? February 3, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Rackspace & HP Cloud Server VNC Remote Desktop (Ubuntu 14.04)," in The Customize Windows, August 15, 2015, February 8, 2023, https://thecustomizewindows.com/2015/08/rackspace-hp-cloud-server-vnc-remote-desktop-ubuntu-14-04/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT