-
Installing Go:
- Within $WORK directory:
- Download tar file: https://go.dev/doc/install into $WORK
tar -C . -xzf go1.21.1.linux-amd64.tar.gz
- If there is a previous Go installation:
rm -rf ./go && tar -C . -xzf go1.21.1.linux-amd64.tar.gz
- If there is a previous Go installation:
export PATH=$PATH:./go/bin
- Check that Go is installed:
go version
- Within $WORK directory:
-
Install RClone using the following
- (NOTE: build using your own node by running:
idev -p vm-small
)
git clone https://github.com/rclone/rclone.git cd rclone go build
- (NOTE: build using your own node by running:
-
Add to $PATH:
-
In terminal and also ~.bashrc:
export PATH=$PATH:$WORK/rclone
-
- This setup should work for any external cloud storage; the example below will be for Google Drive
-
Run rclone config in DCV remote desktop
rclone config
-
Proceed with configuration (refer to the link below)
- Follow steps 2-5: https://itsfoss.com/use-onedrive-linux-rclone/
-
Creating a fake fusermount3 command
-
This step is required only if the system does not have fusermount3 installed
-
In $WORK create a fake fusermount3:
mkdir fake_fusermount3 nano fusermount3 # Save the empty file and quit
-
Creating the symlink (Creates a reference redirect to source fusermount, which 1. the Lonestar system has and 2. is compatible with rclone)
ln -s /usr/bin/fusermount $WORK/fake_fusermount/fusermount
-
Add to $PATH (add to terminal and ~/.bashrc):
export PATH=$PATH:$WORK/fake_fusermount3/
-
(This is NOT an On-Startup solution; so do this every time)
-
For a DCV Remote Desktop and Jupyter Notebook session
- Make sure a directory is made in $SCRATCH to contain files
- Open a new terminal
rclone --vfs-cache-mode writes mount "[name of drive set during rclone config]": [directory in $SCRATCH]
- Do not close the terminal
-
TIP: Once local folder is completed mounted, perform an
rsync
to save into a separate local folder to limit the number of times you would need to mount on-startuprclone copy -P GDrive:Do\ Monte\ Lab/Miniscope/Behavior_Files /corral/uth/IBN22012/minian/ --multi-thread-cutoff 10Mi --multi-thread-streams 10 --transfers 10