Skip to content

Commit ef12c8e

Browse files
Update INSTALLATION.md
1 parent 1eb3dfe commit ef12c8e

File tree

1 file changed

+39
-35
lines changed

1 file changed

+39
-35
lines changed

INSTALLATION.md

Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
We provide both a locally installable **desktop application** and a **cloud-based application**.
44

5-
The [NiChart cloud application](https://neuroimagingchart.com/portal), hosted via Amazon Web Services (AWS), deploys scalable infrastructure which hosts the *NiChart* tools as a standard web application accessible via the user’s web browser. **No install needed**, but it requires you to upload your data to the cloud-based NiChart server for us to process it. We do not access or use your data for any other purpose than to run your requested processing and/or provide support to you, and we regularly delete user data after inactivity. However, we recognize that data privacy agreements and related concerns may nevertheless restrict use of the cloud application. If that applies to you, we suggest that you install the desktop application. Below we provide detailed installation instructions.
5+
The [NiChart cloud application](https://neuroimagingchart.com/portal), hosted via Amazon Web Services (AWS), deploys scalable infrastructure which hosts the *NiChart* tools as a standard web application accessible via the user’s web browser. **No installation is needed**, but it requires you to upload your data to the cloud-based NiChart server for us to process it. We do not access or use your data for any other purpose than to run your requested processing and/or provide support to you, and we regularly delete user data after inactivity. However, we recognize that data privacy agreements and related concerns may nevertheless restrict use of the cloud application. If that applies to you, we suggest that you install the desktop application. Below we provide detailed installation instructions.
66

77
In particular, if you don't have a GPU on your device, the cloud application is probably the easiest way for you to use the NiChart tools.
88

@@ -21,49 +21,61 @@ On Windows, Docker is distributed as "Docker Desktop", an application which mana
2121

2222
#### Getting started
2323

24-
First, if you're on Windows, open Docker Desktop. You can do this from the start/search menu or by clicking the Desktop shortcut if you selected that during installation. You should go into the settings using the gear icon on the top right, go to "General", and enable the settings "Use the WSL 2 based engine" and "Expose daemon on tcp://localhost:2375 without TLS" if they aren't already enabled (they might require you to restart). You should also see a green indicator on the bottom left which says "Engine running". If it's yellow, you need to wait for the service to start. Otherwise, you may need to troubleshoot your installation.
24+
First, open Docker Desktop. You can do this from the start/search menu or by clicking the Desktop shortcut if you selected that during installation.
25+
26+
You should go into the settings using the gear icon on the top right, go to "General", and enable the settings "Use the WSL 2 based engine" and "Expose daemon on tcp://localhost:2375 without TLS" if they aren't already enabled. Then go to the "Resources" tab and disable Resource Saver if it is enabled. You should also see a green indicator on the bottom left which says "Engine running". If it's yellow or says something else, you need to wait for the service to start. Otherwise, you may need to troubleshoot your Docker installation.
2527

2628
#### Choose a path to store results
2729

28-
In this installation, NiChart runs inside a container, which is isolated from the rest of your computer to improve security. To have data persist across sessions, you need to designate a location on your computer to store this data. ****
30+
In this installation, NiChart runs inside a container, which is isolated from the rest of your computer to improve security. To have data persist across sessions, you need to designate a location on your computer to store this data.
2931

3032
First, identify a path you want to use. In this demo we'll use "C:/Users/NiChart_Developer/Desktop/DEMODATA", but yours will vary as you can choose any folder you like. On Windows, you can navigate to a folder, then click "copy path" in the file explorer to get your path.
3133

3234
**Please make sure that the path you use does not already contain important data**. NiChart will not try to delete existing data, but it is good practice to select a new, empty folder.
3335

3436
Write down your path (for example, copy & paste it into Notepad).
3537

36-
Now, in your path text, replace "C:/"with "/mnt/c/". You can do the same for any other drive letter, so "D:/" becomes "/mnt/d". In our example, we end up with "/mnt/c/Users/NiChart_Developer/Desktop/DEMODATA".
37-
38-
Write down this converted path as we will use it later.
39-
4038
#### Running the installer
4139

4240
Make sure you are connected to the internet in order to download the application. Then, open a terminal.
4341

44-
(On Windows, search "terminal", open the application that looks like a black box with a white ">_" in it. At the top of the window that appears will be a tab indicating Windows Powershell.
45-
Click the down arrow next to that tab to expand your terminal options, and select Ubuntu (or, if you changed the default distribution, select whichever distribution you selected while installing WSL).
46-
A new terminal will open in a different color and you should see something like "root@username:~#". Stay on this tab for the rest of the instructions.)
47-
48-
Run the following commands to download the installer and make it runnable:
42+
(On Windows, search "terminal", open the application that looks like a black box with a white ">_" in it. At the top of the window that appears will be a tab indicating Windows Powershell. Stay on this tab for the rest of the instructions.)
4943

44+
Then run this command, **making sure to replace** DATA_DIR with the data path you chose earlier:
5045
```
51-
wget https://raw.githubusercontent.com/CBICA/NiChart_Project/main/installers/install_nichart_docker_linux.sh.sh
52-
chmod +x install_nichart_docker_linux.sh
46+
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\install_nichart_docker_windows.ps1 DATA_DIR --distro Ubuntu
5347
```
48+
(Note that if you chose a different distribution for your WSL installation, you can designate that with --distro in the command above. Just replace "Ubuntu" with whatever you chose.)
5449

55-
Then run this command, **making sure to replace** /path/to/data with the data path you chose earlier:
56-
```
57-
./install_nichart_docker_linux.sh /path/to/data
58-
```
50+
This command might take a while to finish while it downloads the NiChart tools.
5951

60-
In our example, the command becomes `./install_nichart_docker_linux.sh /mnt/c/Users/NiChart_Developer/Desktop/DEMODATA`.
52+
#### Running the application
53+
54+
To start NiChart, double-click the NiChart shortcut which the installer created on your desktop. It should launch your browser automatically. If not, open your browser and go to http://localhost:8501 . If you see the NiChart survey, NiChart is successfully installed.
55+
56+
#### Updating
6157

62-
This command might take a while to finish.
58+
To update NiChart, just run the installer again the same way you ran it above and the newest NiChart components will be installed.
59+
60+
To save space, you may want to clean up your Docker images to remove older tool versions. For more information on managing Docker images, see the [Docker image docs](https://docs.docker.com/reference/cli/docker/image/).
61+
62+
## Linux Instructions
63+
64+
You will need to install Docker first and restart to make sure services are running properly.
65+
66+
First identify a data path where you want to persist NiChart data. We'll call that ${DATA_DIR}.
67+
68+
You will want to download and run the linux installer script. To do this, cd to your desired install directory and run the below. (Remember to set ${DATA_DIR} or replace it with your desired path.)
69+
70+
```
71+
wget https://raw.githubusercontent.com/CBICA/NiChart_Project/main/installers/install_nichart_docker_linux.sh
72+
chmod +x install_nichart_docker_linux.sh
73+
./install_nichart_docker_linux.sh ${DATA_DIR}
74+
```
6375

6476
#### Running the application
6577

66-
To test that NiChart is installed correctly, run the following command.
78+
Run the script run_nichart.sh that the installer created in the same directory:
6779

6880
```
6981
./run_nichart.sh
@@ -72,23 +84,15 @@ To test that NiChart is installed correctly, run the following command.
7284
This will start the NiChart server on your machine which you can then access from your web browser.
7385
When you start the server, a few links will appear, including a localhost one: http://localhost:8501
7486

75-
You can click that link or copy-paste it into a browser to access the local NiChart server. If you see the front page, congratulations! NiChart is installed.
76-
77-
The NiChart server will automatically stop when you close that terminal window.
78-
79-
Whenever you want to run NiChart again, either:
87+
You can click that link or copy-paste it into a browser to access the local NiChart server. If you see the survey page, congratulations! NiChart is succesfully installed.
8088

81-
1. Open up the Ubuntu terminal as described above and run the same command. Then open your browser and go to http://localhost:8501.
89+
To stop the NiChart server, run "docker stop nichart_server".
8290

83-
2. Click the desktop shortcut if you made one (see below).
91+
#### Updating
8492

85-
#### Creating a Windows desktop shortcut (Optional)
86-
This optional step creates a shortcut on the Windows desktop to NiChart.
93+
To update NiChart, just download and re-run the latest installer.
8794

88-
89-
90-
## Linux Instructions
91-
Linux instructions are quite similar to the Windows instructions, except that there is no need for WSL and no need to convert the path specially. All commands will need to be run from the terminal and there is no Docker Desktop configuration.
95+
To save space, you may want to clean up your Docker images to remove older tool versions. For more information on managing Docker images, see the [Docker image docs](https://docs.docker.com/reference/cli/docker/image/).
9296

9397
# Can't use Docker?
94-
We aim to soon provide compatibility with Singularity/Apptainer runtimes for users in computing environments where Docker is disallowed. Please check in regularly for updates.
98+
We aim to soon provide compatibility with Singularity/Apptainer runtimes for users in computing environments where Docker is disallowed or where other related policies prevent running NiChart due to required privileges. Please check in regularly for updates.

0 commit comments

Comments
 (0)