Cloud
Minimum System Requirements
- At least 3GB free space for neurodesktop base image
- Docker requirements. Details found under https://docs.docker.com/get-docker/
Quickstart
1. Connect to cloud server
On the computer from which you want to access Neurodesktop, open an SSH connection to your cloud instance with port forwarding (USER should be substituted with a username that has admin privileges on the cloud instance, and IP should be substituted with the IP address of the cloud instance)
ssh -L 8080:127.0.0.1:8080 USER@IP
2. Install Docker
Install Docker on the cloud instance from here: https://docs.docker.com/get-docker/. Additional information available here: https://www.neurodesk.org/docs/neurodesktop/getting-started/linux/#installing-docker
3. Run Neurodesktop
Create a local folder ~/neurodesktop-storage on the cloud instance to store persistent data (data that will not disappear if neurodesktop is stopped)
Option 1: NeuroDesktop.run
Download and run the following executable on the cloud instance https://github.com/NeuroDesk/neurodesktop/raw/main/Linux_run_Neurodesk/NeuroDesktop.run
Option 2: Using Terminal
- Open a terminal on the cloud instance, and type the following command to automatically download the neurodesktop container and run it
sudo docker run \
--shm-size=1gb -it --privileged --name neurodesktop \
-v ~/neurodesktop-storage:/neurodesktop-storage \
-e HOST_UID="$(id -u)" -e HOST_GID="$(id -g)" \
-p 8080:8080 \
-h neurodesktop-20221216 vnmd/neurodesktop:20221216
If you get errors in neurodesktop then check if the ~/neurodesktop-storage directory is writable to all users. Otherwise run:
chmod a+rwx ~/neurodesktop-storage
- Once neurodesktop is downloaded to the cloud instance (
guacd[77]: INFO: Listening on host 127.0.0.1, port 4822
is displayed in terminal), leave the terminal open and neurodesktop running (i.e., do not press CTRL+C)
If it is required to set up an SSH tunnel to access the cloud instance, please set up such a tunnel from the computer from which you want to access Neurodesktop (e.g.
ssh -L 8080:127.0.0.1:8080 USER@IP
)Open a browser on the computer from which you want to access Neurodesktop, and go to:
http://localhost:8080/#/?username=user&password=password
If the computer runs Linux, check specific instructions at https://www.neurodesk.org/docs/neurodesktop/getting-started/linux/, Option 2, Step 3.
Press on “Desktop Auto-Resolution” under “ALL CONNECTIONS”
If it is the first time you use Neurodesktop, wait until the desktop appears (it may take a few seconds). Otherwise, it should appear instantaneously.
Neurodesk is ready to use! Click “What’s next?” on the left of this page for further instructions.
For an optimal experience, switch your browser to full-screen mode by following the instructions for your browser here (except Mac where full-screen mode is built-in): https://www.thewindowsclub.com/open-chrome-edge-or-firefox-browser-in-full-screen-mode
Deleting neurodesktop:
When done processing your data it is important to stop and remove the container - otherwise the next start or container update will give an error ("… The container name “/neurodesktop” is already in use…")
Note
Notice that any data that were saved outside of /neurodesktop-storage would be lost. Please make sure to move all your data to that folder before deleting neurodesktop.Click on the terminal from which you ran neurodesktop
Press Ctrl-C
Run:
sudo docker stop neurodesktop && sudo docker rm neurodesktop
Portforwarding to an iOS ipad
You can also connect to this cloud instance from your iOS device :) For this install https://webssh.net/documentation/help/networking/port-forwarding/ and create a tunnel (the tool is free for one connection). Start the docker container in a screen session and then connect to it from your ios device in the browser.
Cloud-provider specific Tutorials
Cloud provider | link |
---|---|
Oracle | https://mri.sbollmann.net/index.php/2020/12/08/run-neurodesk-on-oracle-cloud-free-tier/ |
Azure | https://henryjburg.medium.com/neurodesk-running-on-azure-3e38c590a152 |
Using an RDP Client
Open an SSH connection to your cloud instance with the following command
ssh -L 3390:127.0.0.1:3390 USER@IP
Startup Neurodesktop using the following command:
sudo docker run \
--shm-size=1gb -it --privileged --name neurodesktop \
-v ~/neurodesktop-storage:/neurodesktop-storage \
-e HOST_UID="$(id -u)" -e HOST_GID="$(id -g)" \
-p 8080:8080 -p 3390:3389 \
-h neurodesktop-20221216 vnmd/neurodesktop:20221216
Open your RDP client and connect to Computer localhost:3390
Use the following details to login if prompted
- username
- user
- password
- password
Using VNC
To enable VNC and disable RDP, startup Neurodesktop using the following command:
sudo docker run \
--shm-size=1gb -it --privileged --name neurodesktop \
-v ~/neurodesktop-storage:/neurodesktop-storage \
-e HOST_UID="$(id -u)" -e HOST_GID="$(id -g)" \
-p 8080:8080 \
-h neurodesktop-20221216 vnmd/neurodesktop:20221216 --vnc
To enable both VNC and RDP, startup Neurodesktop using the following command:
sudo docker run \
--shm-size=1gb -it --privileged --name neurodesktop \
-v ~/neurodesktop-storage:/neurodesktop-storage \
-e HOST_UID="$(id -u)" -e HOST_GID="$(id -g)" \
-p 8080:8080 \
-h neurodesktop-20221216 vnmd/neurodesktop:20221216 --vnc --rdp
Using a VNC Client
Startup Neurodesktop using the following command:
sudo docker run \
--shm-size=1gb -it --privileged --name neurodesktop \
-v ~/neurodesktop-storage:/neurodesktop-storage \
-e HOST_UID="$(id -u)" -e HOST_GID="$(id -g)" \
-p 8080:8080 --network host \
-h neurodesktop-20221216 vnmd/neurodesktop:20221216 --vnc
Download the Tiger VNC client from https://sourceforge.net/projects/tigervnc/files/stable/1.12.0/
Open an SSH connection to your cloud instance with the following command
ssh -L 5901:127.0.0.1:5901 USER@IP
Run the VNC Client and connect to localhost::5901
Enter password
and click Ok.