IRODS iCommands installation on Windows
In order to use iRODS iCommands on Windows, you'll need to follow these steps:
1. Windows Subsystem for Linux Installation Guide for Windows 10
2. Once you have WSL installed you should install your Linux distribution of choice
- we recommend Ubuntu 18.04 LTS due to binary distributions availability https://docs.microsoft.com/en-us/windows/wsl/install-win10#step-6---install-your-linux-distribution-of-choice
- setup your user and password on linux "machine"
3. iRODS Packages in APT repositories
Login and install the public key and add the repository: wget -qO - https://packages.irods.org/irods-signing-key.asc | sudo apt-key add - echo "deb [arch=amd64] https://packages.irods.org/apt/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/renci-irods.list sudo apt-get update
4. iCommand installation and configuration
sudo apt install irods-icommands follow configuration instructions as described here https://docs.snic.se/wiki/Swestore-iRODS#From_the_command_line
5. Mounting Network Drives into Windows Subsystem Linux (optional)
Microsoft uses a new type of file system called DrvFs behind the scenes to allow the Linux subsystem to talk to native Windows directories. So you end up mounting a network drive just like you would mount any other media normally.
Let's say you've got a server on your network usually accessible as \\MyNetworkDrive. To mount it into your WSL, you can do the following:
sudo mkdir /mnt/mynetworkdrive sudo mount -t drvfs '\\MyNetworkDrive' /mnt/mynetworkdrive
Note: Use single quotes to avoid awkwardness around the backslashes in the network drive name.
If you have mapped the network drive to a drive letter S: on your Windows system already:
sudo mkdir /mnt/mynetworkdrive sudo mount -t drvfs S: /mnt/mynetworkdrive
If you ever want to unmount it:
sudo umount /mnt/mynetworkdrive
Go back to Swestore-iRODS