Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement