0% found this document useful (0 votes)
2K views

Create RDP Using Digital Ocean

This document provides instructions for setting up a Remote Desktop Protocol (RDP) connection using TightVNC on a DigitalOcean droplet. The steps are: 1) Create a Ubuntu droplet on DigitalOcean and install TightVNC server. 2) Configure the startup script and settings files for the VNC server. 3) Download the TightVNC client and connect to the droplet's IP address on port 5901.

Uploaded by

Zay Min Htet
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views

Create RDP Using Digital Ocean

This document provides instructions for setting up a Remote Desktop Protocol (RDP) connection using TightVNC on a DigitalOcean droplet. The steps are: 1) Create a Ubuntu droplet on DigitalOcean and install TightVNC server. 2) Configure the startup script and settings files for the VNC server. 3) Download the TightVNC client and connect to the droplet's IP address on port 5901.

Uploaded by

Zay Min Htet
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Make RDP with tightvnc Digital Ocean

Tutorial Video : https://youtu.be/K7p9ShJVb90 or


http://www.dailymotion.com/video/x5b7efq

1. Create Droplet
- Register Here : https://m.do.co/c/87509e3e1bd1
- Ubuntu 14.04.5 x64
- minimal $10/month
- Region Newyork

2. Setting VPS
- Download Putty : http://www.putty.org/
- Login your VPS (check your IP and Password in your email)

root : enter
oldpassword (right click) then enter
re-oldpassword (right click) then enter
newpassword (right click) then enter
re-newpassword (right click) then enter

3. setting vps part 2


sudo apt-get update
sudo apt-get install firefox gnome xfce4 xfce4-goodies tightvncserver
vncserver

**password for tightvnc**


vncserver -kill :1
nano ~/.vnc/xstartup

**remove the code and then, copy paste**

#!/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&

ctrl + x, Y, enter

4. setting vps part 3


sudo nano /etc/init.d/vncserver

**copy paste this code**

#!/bin/bash
unset VNCSERVERARGS
VNCSERVERS=""
[ -f /etc/vncserver/vncservers.conf ] && . /etc/vncserver/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

ctrl + x, Y, enter
Setting VPS part 4
chmod +x /etc/init.d/vncserver
mkdir -p /etc/vncserver
nano /etc/vncserver/vncservers.conf

**copy paste this code**

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"

ctrl + x, Y, enter

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


sudo service vncserver start
sudo update-rc.d vncserver defaults
reboot

5. Download TightVNC : http://www.tightvnc.com/


- When Install, Choose Custom, Disable Server

6. Open RDP using TightVNC


- login IP with ::5901
- example, 123.45.678.90::5901

7. Done

You might also like