![]() Dean Attali’s blog post is one of the best and most comprehensive guides on setting up your own shiny server.This guides – is used to couple a domain name to your server.In order to complete this entire series, I expect you have access to the following: A Virtual Private Server (VPS, see below).A domain name, such as These are available on e.g.If you have these two things, you may proceed! A VP…What?Ī Virtual Private Server (VPS) is a service that you can purchase from providers such as DigitalOcean, Amazon AWS and Google Cloud Services. Instead of buying a physical server and planting it in your home somewhere, you essentially rent a small portion of a server from a provider which then looks like a normal server environment: you have your own OS and you can manage your own users and so on. In this guide, I’ll be using DigitalOcean, but you can use any VPS from any provider as long as it runs on Ubuntu 16.04 and has at least 512MB RAM and one processor. Setting up a VPS on DigitalOceanĪfter signing up to DO, you will see the following screen You can use this link to sign up to DigitalOcean. There won’t be much going on here … yet! Click on ‘create droplet’ to set up your VPS. The options are relatively straightforward here. You want to select a Ubuntu 16.04 distribution. Then, you can decide how much power your droplet will have. ![]() Select an appropriate data centre (usually that means choosing one in or near your own country) I chose the smallest version, which works perfectly fine, but feel free to take a bigger size if you like. The final set of options can look arcane if you’re not used to them. Fortunately, the only option you really need to pay attention to is the SSH key.Īn SSH key functions as a unique identifier for you, the owner of the VPS, and adds a layer of security to your server. DigitalOcean provides a tutorial for Windows users and Unix users on their website. This step is optional: you don’t have to do it, but I strongly recommended.Īfter you’ve set up the SSH access, you can choose a suitable name for your droplet and press ‘create’.Ĭongratulations! You are now the proud owner of your own VPS. Accessing your server and setting up shinyĬlick on ‘droplets’ at the top right of the DO menu. Log into your server: ssh Setting up a user Copy the IP address of your droplet and open up a terminal or PuTTY. Since we don’t want to use the root user to install everything, we’ll create a new user called ‘shiny’. Setting up pangya private server install# Next, we give the shiny user admin rights and switch to the shiny user: # Give shiny admin rightsįirstly, update the list of packages: sudo apt-get update When you are prompted to enter a name, office number etc. Then add the CRAN repository to this list (copy these commands one by one): # Add a trusted key Setting up pangya private server update# If your droplet has 1G of RAM or less, we need to set up some swap space. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |