# CCPNMR on Windows with Manjaro Linux and VirtualBox
1. Ensure virtualisation is [enabled in the BIOS/UEFI](https://www.howtogeek.com/213795/how-to-enable-intel-vt-x-in-your-computers-bios-or-uefi-firmware/) ('VT-x' for Intel-based systems, AMD-V for AMD-based systems)
2. Install [Virtualbox](https://www.virtualbox.org/)
3. Download and install [Manjaro Linux](https://manjaro.org/) in a virtual box VM ([this tutorial](https://www.osradar.com/install-manjaro-linux-on-virtualbox/)). I recommend using the XFCE version as the tutorial does, as it is quite lightweight.
**Notes** (*read before starting this step!*)**:**
- Before booting the VM, increase the video memory to 128MB (max), change the graphics controller to `VBoxSVGA` and enable 3D acceleration in the display panel of the VM's settings as recommended [here](https://wiki.manjaro.org/index.php?title=Virtualbox#Running_Manjaro_under_VirtualBox)

- I recommend *at least* a 20GiB virtual hard disk as opposed to the 8GB suggested in the tutorial, which is definitely **not big enough**. To give you an idea, when I finished this process, my virtual hard disk was already 15GiB full. I went with a 32GiB virtual hard disk. _Note that since the virtual hard disk is dynamically allocated, it doesn't use 32GiB of space on your hard drive unless it's completely full. Make sure you have enough space on your physical hard disk to complete the tutorial, or virtual box may freeze your VM and ask you to free up some space._
- In the last step, you're told to run `sudo pacman -Syu` in a terminal. You can ignore this step and instead click on the _i_ icon in the tray (bottom right)  and use the GUI window that pops up to update the system:

- When you restart after the installation, you may be booted into the installation environment again. *Don't panic!* Click Machine -> ACPI Shutdown in the toolbar, then complete the post-installation step in the tutorial. *(Make sure you remove the right disk!)*
- Other Linux distributions, e.g. Ubuntu, *may* work (I haven't tried), .
4. Open a terminal and run the following commands:
```bash
wget http://www.ccpn.ac.uk/download/3.0.0/ccpnmr3.0.0Linux.tgz
tar xvzf ccpnmr3.0.0Linux.tgz
rm ccpnmr3.0.0Linux.tgz
echo 'export PATH=$PATH:/home/sam/ccpnmr3.0.0/bin/' >> .bashrc
```
5. Optionally also download the example data:
```bash
wget http://www.ccpn.ac.uk/download/3.0.0/data3.0.0.tgz
tar xvzf data3.0.0.tgz
rm data3.0.0.tgz
```
6. Close the terminal and open a new one. Run the command `assign`. The program may take a while to start, especially the first time it is run.
7. Optionally, you could create a desktop shortcut to run the program. To do this, right click on the desktop and select 'Create Launcher...'. Enter the appropriate information _(including checking the 'run in terminal' box!)_, replacing both instances of '/home/sam' with the path to your home directory[^hd]:

clicking create should put an icon called 'CCPNMR Assign' on the desktop. Double click the icon to launch. A pop up will warn you it is 'untrusted'. Click 'Mark Executable' to mark it as trusted and continue. You won't be asked this again.
[^hd]: If you don't know the path to your home directory, open a terminal and run the command `echo "$HOME"`
**PS:** Use the green button 
down the bottom right of the screen to shutdown the virtual machine ;)