Tutorial: DigitalOcean - Create an image

Step 1: Connect to your DigitalOcean console

Go to DigitalOcean console.

Step 2: Create a new droplet

Click on Create and Droplets

../../../../_images/step_13.jpg

Step 3: Change the configuration of droplet

Choose an image Ubuntu 16.04.3 x64:

../../../../_images/step_2a.jpg

Choose the smallest size on Standard Droplets:

../../../../_images/step_2b.jpg

Choose a datacenter (e.g.: London):

../../../../_images/step_2c.jpg

Use the SSH key named mykey:

../../../../_images/step_2d.jpg

Step 4: Start the droplet

Click on Create

../../../../_images/step_33.jpg

Step 5: Connect to the instance

Get the IP:

../../../../_images/step_41.jpg

And enter this command in a terminal:

ssh root@<replace by IP>

Step 6: Install the proxy

Install proxy with:

curl --silent --location https://deb.nodesource.com/setup_8.x | sudo bash -

and:

sudo apt-get install --yes nodejs

and:

curl --silent --location https://raw.githubusercontent.com/fabienvauchelles/scrapoxy/master/tools/install/proxy.js | sudo tee /root/proxy.js > /dev/null

and:

curl --silent --location https://raw.githubusercontent.com/fabienvauchelles/scrapoxy/master/tools/install/proxyup.sh | sudo tee /etc/init.d/proxyup.sh > /dev/null

and:

sudo chmod a+x /etc/init.d/proxyup.sh

and:

sudo update-rc.d proxyup.sh defaults

and:

sudo /etc/init.d/proxyup.sh start

Step 7: Poweroff the droplet

  1. Stop the last command (CTRL-C)

  2. Power off the droplet:

    sudo poweroff
    

The green icon disappears when the droplet is off:

../../../../_images/step_51.jpg

Step 8: Create a backup

  1. Click on Images

  2. Select your droplet

  3. Enter forward-proxy in Image Name

  4. Click on Take Snapshot

../../../../_images/step_6.jpg

Wait a few minutes and the new image appears:

../../../../_images/step_7.jpg