Cara membuat RDP menggunakan server Digital Ocean Dengan Bantuan TightVNC

Halo.
*gw dapet code dari google.
*gw bingung bikin tutorial dimana.

Apa sih RDP itu?
Intinya buat Re-upload, Farming Point Traffic Exchange, dll.

  • Harus punya Account Digital Ocean
  • Download dan Install Putty
  • Download dan Install TightVNC (Ketika Install, Pilih Custom, Disable Server)
Asumsi sudah punya Account Digital Ocean, OK?
Terus...
  • Bikin Droplet > Ubuntu 14.04.5 x64
Asumsi sudah ganti password di VPS.
Terus... copy paste kode dibawah ini, satu persatu, OK?
  • Code:
    sudo apt-get update
    sudo apt-get install firefox gnome xfce4 xfce4-goodies tightvncserver
    vncserver
    
    *vncserver = password for TightVNC
  • Code:
    vncserver -kill :1
  • Code:
    nano ~/.vnc/xstartup
    
    **hapus semua, ganti dengan kode di bawah ini**
    
    #!/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&
    
    *untuk save, tekan CTRL + X, Y terus Enter
  • Code:
    sudo nano /etc/init.d/vncserver
    
    **copy paste kode di bawah ini**
    
    #!/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
    
    *untuk save, tekan CTRL + X, Y terus Enter
  • Code:
    chmod +x /etc/init.d/vncserver
    mkdir -p /etc/vncserver
  • Code:
    nano /etc/vncserver/vncservers.conf
    
    **copy paste this code**
    
    VNCSERVERS="1:root"
    VNCSERVERARGS[1]="-geometry 1024x768"
    
    *untuk save, tekan CTRL + X, Y terus Enter
  • Code:
    sudo chmod +x /etc/init.d/vncserver
    sudo service vncserver start
    sudo update-rc.d vncserver defaults
    reboot
Buka RDP nya, menggunakan TightVNC
- login IP tambahkan ::5901
- contoh, 123.45.678.90::5901

selesai

Comments

Popular Posts