Skip to content
Snippets Groups Projects
Select Git revision
  • 25e5bddccd7bd2334c1822f6ef6deb4d0afe80b9
  • master default protected
2 results

remote.html

Blame
  • Neil Gershenfeld's avatar
    Neil Gershenfeld authored
    25e5bddc
    History
    remote.html 2.43 KiB
    <html>
    <body>
    
    <p>
    
    <hr>
    <b>RDP (AWS + Ubuntu)</b><br>
    <hr>
    
    <p>
    
    <pre>
    sign in to console and launch instance:
       https://aws.amazon.com/console/
    choose security group (open all or just required ports):
       https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html
    ssh to instance:
       ssh -i ~/.ssh/keys/your_key.pem ubuntu@your_IP_address
    set password:
       sudo passwd ubuntu
    update, upgrade, install:
       sudo apt update
       sudo apt upgrade
       sudo apt install xrdp xfce4 xfce4-terminal gnome-icon-theme
          choose lightdm window manager
       sudo adduser your_username
       sudo su your_username
       echo xfce4-session >~/.xsession
    connect with RDP client:
       https://remmina.org/how-to-install-remmina/
       https://support.microsoft.com/en-us/help/4028379/windows-10-how-to-use-remote-desktop
       https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-mac
    possible options to check:
       client:
          screen size
          color depth
          encoding (RemoteFX)
       server:
          port (/etc/xrdp/xrdp.ini)
          ssh tunnel
    </pre>
    
    
    <hr>
    <b>VNC (AWS + Ubuntu)</b><br>
    <hr>
    
    <p>
    
    <pre>
    sign in to console and launch instance:
       https://aws.amazon.com/console/
    choose security group (open all or just required ports):
       https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html
    ssh to instance:
       ssh -i ~/.ssh/keys/your_key.pem ubuntu@your_IP_address
    set password:
       sudo passwd ubuntu
    update, upgrade, install:
       sudo apt-get update
       sudo apt-get dist-upgrade
       sudo apt-get install ubuntu-desktop vnc4server x11vnc gnome-core gnome-session-flashback python python-numpy lightdm
          choose lightdm
    set up VNC:
       vncpasswd
       vncserver
       vncserver -kill :1
       vim .vnc/xstartup
          #!/bin/sh
          unset SESSION_MANAGER
          gnome-session --session=gnome-classic &
          [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
          [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    viewers
       Remmina
       Vinagre
       noVNC
    set up noVNC:
       git clone https://github.com/novnc/noVNC.git
       cd noVNC
       openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem
    reboot:
       sudo reboot now
    start x11vnc:
       sudo x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw -localhost &
    start noVNC:
       cd noVNC
       ./utils/launch.sh --vnc localhost:5900 --listen your_port --cert self.pem
    open remote desktop:
       https://your_IP_address:your_port/vnc.html
    </pre>