3/8/2024 0 Comments Installing r studio chromebook# delete: s3://davetangrstudioec2/test.txtĪlternatively instead of S3, you can use GitHub to store your analysis results. test.txt to s3://davetangrstudioec2/test.txtĪws s3 rm s3://davetangrstudioec2/test.txt # enter IAM detailsĪws s3 cp test.txt s3://davetangrstudioec2/ I have created a bucket called davetangrstudioec2. You can follow this post on how to setup S3. Run the following steps below: curl "" -o "awscliv2.zip" We'll install AWS Command Line Interface (AWS CLI) on this instance so that we can transfer our analysis results to S3. # This message shows that your installation appears to be working correctly. You should see the Hello from Docker! message if all went well. We added the docker group to the ubuntu user, so we need to logout and log back in so that the changes are applied. Sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null sudo apt-get updateĬurl -fsSL | sudo gpg -dearmor -o /etc/apt/keyrings/docker.gpg ssh -i my_key will use Docker to run RStudio server, so we need to install Docker on Ubuntu first. Remember this IP because we need it to SSH into the instance and to access RStudio. On the instance page get the IP address and then SSH into the instance using your key pair. Double-check your settings and then click launch instance. In the security group and Inbound rules add your IP to the SSH source and also open port 8889 by selecting custom TCP and for Source enter 0.0.0.0/0, which allows access from any IP address. If this volume is deleted within an hour, it should cost 0.003 USD. For the storage, I created a 20G EBS volume (gp2), which I estimated would cost 2.4 USD a month if I retained it for a month. This type of instance can only use Amazon's EBS Storage (please read this post to get more acquainted with EBS) and incur separate costs on top of the EC2 instance cost. The first step is to launch an EC2 instance and I have used Ubuntu 22.04 on a t2.medium instance type, which costs 0.0608 USD per Hour in the Tokyo region, and an existing key pair. If you have followed this post and it costed more, please let me know! If you're eligible for the AWS Free Tier please select options that lie within the tree tier instead. To follow this post, you will need an AWS account and it should cost you less than 0.10 USD + tax if you terminate the EC2 instance and delete the EBS Storage within an hour. In this post I set up my own RStudio cloud service on an EC2 instance, which I think will be cheaper than Posit Cloud but requires some background knowledge of Amazon Web Services and Unix. The Cloud Premium plan provides more resources (200 hours, 16GB memory, and 4 CPUs) but costs 99 USD + tax a month. Some objects created in my work definitely occupies more than 1GB of memory, so that's a deal-breaker. The resource allocation for the free and Plus plans are 1 CPU and 1GB of memory. If that's not enough, you can upgrade to a Plus plan that costs 5 USD + tax and has an additional 50 hours (total 75 hours) of usage. A free account comes with 25 hours of usage that gets refreshed every month. As an alternative, I tried Posit Cloud, which is a service that makes it extremely easy to use RStudio (and Jupyter Notebook) in the cloud. RStudio is an essential tool for my work and I could install and use RStudio but as you might expect, it's a bit slow on a Chromebook. The Chromebook can run Linux (Debian by default) using ChromeOS's Linux development environment, so it essentially has everything I need for work. I recently purchased an ASUS Chromebook as I wanted an affordable and portable (lightweight and decent battery life) laptop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |