{"id":275,"date":"2020-12-08T01:31:27","date_gmt":"2020-12-08T01:31:27","guid":{"rendered":"https:\/\/mri.sbollmann.net\/?p=275"},"modified":"2021-09-20T07:05:18","modified_gmt":"2021-09-20T07:05:18","slug":"run-neurodesk-on-oracle-cloud-free-tier","status":"publish","type":"post","link":"https:\/\/mri.sbollmann.net\/index.php\/2020\/12\/08\/run-neurodesk-on-oracle-cloud-free-tier\/","title":{"rendered":"Run NeuroDesk on Oracle Cloud Free Tier"},"content":{"rendered":"\n<p>Here is a little tutorial on running our <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/NeuroDesk\/\" target=\"_blank\">NeuroDesk <\/a>project in the free tier of Oracle cloud \ud83d\ude42<\/p>\n\n\n\n<p>Sign up for a free account here: <a href=\"https:\/\/www.oracle.com\/cloud\/free\/?source=:ow:o:h:po:OHPPanel1nav0625&amp;intcmp=:ow:o:h:po:OHPPanel1nav0625\" target=\"_blank\" rel=\"noreferrer noopener\">Try Free Tier (oracle.com)<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"603\" src=\"https:\/\/mri.sbollmann.net\/wp-content\/uploads\/2020\/12\/image.png\" alt=\"\" class=\"wp-image-276\" srcset=\"https:\/\/mri.sbollmann.net\/wp-content\/uploads\/2020\/12\/image.png 1019w, https:\/\/mri.sbollmann.net\/wp-content\/uploads\/2020\/12\/image-300x178.png 300w, https:\/\/mri.sbollmann.net\/wp-content\/uploads\/2020\/12\/image-768x454.png 768w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><figcaption>go to Compute -&gt; Instances and select a Compartment to start the Instance in:<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"169\" src=\"https:\/\/mri.sbollmann.net\/wp-content\/uploads\/2020\/12\/image-2-1024x169.png\" alt=\"\" class=\"wp-image-279\" srcset=\"https:\/\/mri.sbollmann.net\/wp-content\/uploads\/2020\/12\/image-2-1024x169.png 1024w, https:\/\/mri.sbollmann.net\/wp-content\/uploads\/2020\/12\/image-2-300x50.png 300w, https:\/\/mri.sbollmann.net\/wp-content\/uploads\/2020\/12\/image-2-768x127.png 768w, https:\/\/mri.sbollmann.net\/wp-content\/uploads\/2020\/12\/image-2.png 1481w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>change the shape to &#8220;Speciality and Legacy&#8221; -&gt; VM.Standard.E2.1.Micro, create a new virtual cloud network with a public IP and set up your SSH keys<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The below steps are for an older version of the neurodesk project &#8211; I recommend to follow the updated instructions here: <a href=\"https:\/\/neurodesk.github.io\/docs\/neurodesktop\/getting-started\/cloud\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/neurodesk.github.io\/docs\/neurodesktop\/getting-started\/cloud\/<\/a> <\/p>\n\n\n\n<p>now connect to your newly created instance (the public IP is displayed when the instance is running) including some port forwardings:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh -L 5900:127.0.0.1:5900 -L 6080:127.0.0.1:6080 opc@yourPublicIP<\/code><\/pre>\n\n\n\n<p>install a few packages including docker:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install screen docker-engine docker-cli\n<\/code><\/pre>\n\n\n\n<p>start docker and check if it&#8217;s running:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable --now docker\n\nsudo systemctl status docker<\/code><\/pre>\n\n\n\n<p>start or reconnect to a screen session:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>screen -R\n<\/code><\/pre>\n\n\n\n<p>create a directory for the persistent data:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir ~\/vnm<\/code><\/pre>\n\n\n\n<p>start the neurodesk container:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker run --privileged --name vnm -v ~\/vnm:\/vnm -v \/dev\/shm:\/dev\/shm -e USER=neuro -p 6080:80 -p 5900:5900 vnmd\/neurodesk:20201127\n<\/code><\/pre>\n\n\n\n<p>When the download of the container is done and everything is started up  (you should see &#8220;novnc entered RUNNING state&#8221;) open a browser on your machine and navigate to:<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"http:\/\/localhost:6080\/\" target=\"_blank\">http:\/\/localhost:6080\/<\/a><\/p>\n\n\n\n<p>or open a VNC client and connect to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>localhost:5900<\/code><\/pre>\n\n\n\n<p>you can stop and delete the container using these commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker stop vnm &amp;&amp; sudo docker rm vnm\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is a little tutorial on running our NeuroDesk project in the free tier of Oracle cloud \ud83d\ude42 Sign up for a free account here: Try Free Tier (oracle.com) The below steps are for an older version of the neurodesk project &#8211; I recommend to follow the updated instructions here: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":279,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,25,29,3,26],"tags":[],"class_list":["post-275","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code","category-containers","category-neurodesk","category-reproducibility","category-tutorials"],"jetpack_featured_media_url":"https:\/\/mri.sbollmann.net\/wp-content\/uploads\/2020\/12\/image-2.png","_links":{"self":[{"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/posts\/275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/comments?post=275"}],"version-history":[{"count":3,"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/posts\/275\/revisions"}],"predecessor-version":[{"id":438,"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/posts\/275\/revisions\/438"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/media\/279"}],"wp:attachment":[{"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/media?parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/categories?post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mri.sbollmann.net\/index.php\/wp-json\/wp\/v2\/tags?post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}