Difference between revisions of "IRODS iCommands installation on Windows"

From SNIC Documentation
Jump to: navigation, search
Line 9: Line 9:
 
   - we recommend Ubuntu 18.04 LTS due to binary distributions availability
 
   - 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
 
  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'''  
 
3. '''iRODS Packages in APT repositories'''  
  
  Install the public key and add the repository:
+
  Login and install the public key and add the repository:
 
+
 
  wget -qO - https://packages.irods.org/irods-signing-key.asc | sudo apt-key add -
 
  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
 
  echo "deb [arch=amd64] https://packages.irods.org/apt/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/renci-irods.list
Line 19: Line 21:
  
 
4. '''iCommand installation and configuration'''
 
4. '''iCommand installation and configuration'''
 +
 +
sudo apt install irods-icommands
  
 
5. '''Mounting Network Drives into Windows Subsystem Linux (optional)'''
 
5. '''Mounting Network Drives into Windows Subsystem Linux (optional)'''

Revision as of 09:19, 21 January 2021

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

https://docs.microsoft.com/en-us/windows/wsl/install-win10

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

5. Mounting Network Drives into Windows Subsystem Linux (optional)

info : https://docs.microsoft.com/sv-se/archive/blogs/wsl/wsl-file-system-support

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