Unix + R Stdudio + WebInterface
gcloud compute images create IMAGE_NAME --source-uri URI
gcloud compute images create rstudio-image --source-uri http://storage.googleapis.com/rstudio-image/rstudio-image.image.tar.gz
gcloud compute images create rstudioz --source-uri http://storage.googleapis.com/rstudio-image/rstudio-image.image.tar.gz
gcloud compute images create IMAGE_NAME --source-uri gs://BUCKET_NAME/IMAGE_NAME.image.tar.gz
gcloud compute images create rstudio-image --source-uri gs://rstudio-image/rstudio-image2.image.tar.tar
gcloud compute images create rstudio-image --source-uri http://storage.googleapis.com/rstudio-image/rstudio-image.tar.gz
gcloud compute images create rstudio-image --source-uri http://storage.googleapis.com/r-gce-sunholo/98789ee2fa89942875b1409a36a3fb8e1e719aae.image.tar.gz
http://storage.googleapis.com/rstudio-image/rstudio-image.tar.gz
==================
http://storage.googleapis.com/r-gce-sunholo/98789ee2fa89942875b1409a36a3fb8e1e719aae.image.tar.gz
================
gcloud compute instances create example-instance \
--image https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/debian-7-wheezy-vYYYMMDD
gcloud compute instances create rstudio-image \ --image https://storage.googleapis.com/rstudio-image/rstudio-image.tar.gz
================
tar -Sczf rstudio-image.tar.gz disk.raw
If you don't know your username, try this command using gcloud to see your user details:
$ gcloud auth login
Any users you add to Debian running on the instance will have a user in RStudio - to log into Debian and add new users, see below:
$ ## ssh into the running instance $ gcloud compute ssh <your-username>@new-instance-name $ #### It should now tell you that you are logged into your instance ##### $ #### Once logged in, add a user: example with jsmith $ sudo useradd jsmith $ sudo passwd jsmith $ ## give the new user a directory and change ownership to them $ sudo mkdir /home/jsmith $ sudo chown jsmith:users /home/jsmith
No comments:
Post a Comment