Difference between revisions of "IRODS iCommands installation on Windows"

From SNIC Documentation
Jump to: navigation, search
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
In order to use iRODS iCommands on Windows, you'll need to follow these steps:
 
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**
+
1. '''Windows Subsystem for Linux Installation Guide for Windows 10'''
  
 
  https://docs.microsoft.com/en-us/windows/wsl/install-win10
 
  https://docs.microsoft.com/en-us/windows/wsl/install-win10
  
2. Once you have WSL installed you should install your Linux distribution of choice
+
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
 
   - 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
  
3. iRODS Packages in APT repositories
+
  - setup your user and password on linux "machine"
  
Install the public key and add the repository:
+
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 -
 
  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
 
  sudo apt-get update
 
  sudo apt-get update
  
4. iCommand installation and configuration
+
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)
+
5. '''Mounting Network Drives into Windows Subsystem Linux (optional)'''
 
  info : https://docs.microsoft.com/sv-se/archive/blogs/wsl/wsl-file-system-support
 
  info : https://docs.microsoft.com/sv-se/archive/blogs/wsl/wsl-file-system-support
  
Line 40: Line 45:
  
 
  sudo umount /mnt/mynetworkdrive
 
  sudo umount /mnt/mynetworkdrive
 +
 +
---
 +
 +
Go back to [[Swestore-iRODS]]

Revision as of 15:23, 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
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)

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

---

Go back to Swestore-iRODS