Skip to content

Latest commit

 

History

History
108 lines (85 loc) · 2.66 KB

developer_desktop_build.md

File metadata and controls

108 lines (85 loc) · 2.66 KB

Update the installation

sudo apt-get -y update sudo apt-get -y upgrade sudo apt-get -y install ubuntu-desktop

Install x11 VNC

sudo apt-get -y install x11vnc sudo apt-get install xserver-xorg-video-dummy

x11vnc -storepasswd sudo su

cat << EOF > /lib/systemd/system/x11vnc.service [Unit] Description=Start x11vnc at startup. After=multi-user.target

[Service] Type=simple ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/ubuntu/.vnc/passwd -rfbport 5901 -shared

[Install] WantedBy=multi-user.target EOF

sudo chmod +x /lib/systemd/system/x11vnc.service sudo systemctl enable x11vnc.service sudo systemctl start x11vnc.service

#Install NoVNC web server

cd /usr/share sudo git clone https://github.com/novnc/noVNC.git cd noVNC sudo ln -s vnc.html index.html

cat << EOF > launchAWS.sh VNC_HOST=curl -s http://169.254.169.254/latest/meta-data/public-ipv4 VNC_PORT=5901 HTTP_PORT=80 ./utils/launch.sh --vnc ${VNC_HOST}:${VNC_PORT} --listen ${HTTP_PORT} EOF

sudo chmod +x launchAWS.sh

cat << EOF > /lib/systemd/system/noVNC.service [Unit] Description=Start noVNC websockets server After=multi-user.target

[Service] Type=simple ExecStart=/usr/share/noVNC/launchAWS.sh

[Install] WantedBy=multi-user.target EOF

chmod +x /lib/systemd/system/noVNC.service sudo systemctl daemon-reload sudo systemctl enable noVNC.service sudo systemctl start noVNC.service echo "autologin-user=ubuntu" >> /etc/llightdm/lightdm.conf

Install Atom IDE

sudo add-apt-repository ppa:webupd8team/atom sudo apt-get update sudo apt-get install atom

now run atom from cmd line and pin to taskbar

Install Docker-CE

sudo apt-get update sudo apt-get install
apt-transport-https
ca-certificates
curl
software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable" sudo apt-get update sudo apt-get -y install docker-ce

Install Docker-compose

sudo usermod ubuntu -a -G docker sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s-uname -m` -o /usr/local/bin/docker-compose sudo chmod 755 /usr/local/bin/docker-compose

install AWS CLI

sudo apt -y install python-pip sudo pip install --upgrade pip sudo pip install awscli --upgrade

Install travis cli

sudo apt -y install ruby ruby-dev gem install travis -v 1.8.8 --no-rdoc --no-ri

Install terraform

curl -s https://releases.hashicorp.com/terraform/0.10.6/terraform_0.10.6_linux_amd64.zip | gzip -d - > ./terraform chmod 755 ./terraform sudo mv terraform /usr/local/bin

Install jq

sudo apt -y install jq