27 | | ==== Configuring rclone on Cypress ==== |
| 27 | ==== 1st of 2 Options: Generating Your rclone.conf File In Your Cypress Session ==== |
| 28 | 1. Login to Cypress from your local machine with X11 forwarding. (See [[cypress/SshUsage#TunnelingXWindowsSessionviaSSH|X11 Forwarding]].) |
| 29 | 2. In your Cypress session enter the following commands. |
| 30 | {{{ |
| 31 | module load rclone |
| 32 | rclone config |
| 33 | }}} |
| 34 | 3. At the prompt '''...No remotes found - make a new one...''', enter {{{n}}} for '''New remote'''. |
| 35 | 4. At the prompt '''name>''', choose a meaningful name, e.g, {{{TU-Box}}}, to be used for future connection to your Tulane Box account from your Cypress command line session. |
| 36 | 5. At the prompt '''Type of storage to configure...''', enter {{{6}}} for '''Box'''. |
| 37 | 6. At the prompt '''...Box App Client Id...''', respond by pressing {{{Enter}}} for the default. |
| 38 | 7. At the prompt '''...Box App Client Secret...''', respond by pressing {{{Enter}}} for the default. |
| 39 | 8. At the prompt '''Edit advanced config? (y/n)nnn''', enter {{{n}}} for '''No'''. |
| 40 | 9. At the prompt '''Remote config - Use auto config?...''', enter {{{y}}} for '''Yes'''. |
| 41 | 10. Observe the message ending in '''Waiting for code ...''', and wait for a separate browser window to open on your local machine with a Box web page. Depending on your network latency, you may experience a delay of 1 minute or more. |
| 42 | In the Box web page, click on the link '''Use Single Sign On (SSO)'''. |
| 43 | 11. In the next Box web page, enter your full Tulane email address and click on '''Authorize'''. |
| 44 | 12. This will take you to the Tulane login web page, wherein you can complete your Tulane login information and click on '''Sign in'''. |
| 45 | 13. This final web page should show the message '''Success! - All done. Please go back to rclone''', at which point you can close the browser window and return to your Cypress session command line window. |
| 46 | 14. Back in the command line window, observe the new message '''Got code''' followed by your new token information ending with a prompt to which you can respond {{{y}}} for '''Yes this is OK'''. |
| 47 | 15. The resulting response shows the list '''Current remotes:''', including your new Box remote, e.g., '''TU-Box''' followed by a prompt to which you can respond {{{q}}} for '''Quit config'''. |
| 48 | 16. Observe the newly created config file '''~/.config/rclone/rclone.conf''' |
| 49 | {{{ |
| 50 | [cbaribault@cypress1 ~]$ ls -l ~/.config/rclone/ |
| 51 | total 8 |
| 52 | -rw------- 1 cbaribault hpcstaff 233 Jun 29 20:00 rclone.conf |
| 53 | [cbaribault@cypress1 ~]$ |
| 54 | }}} |
| 55 | at which point you're ready to run rclone on Cypress. (See '''Running rclone on Cypress''' below.) |
| 56 | |
| 57 | |
| 58 | ==== 2nd of 2 Options: Generating Your rclone.conf File Using Your Local Machine ==== |
31 | | 2. Once you've configured rclone on your local machine, locate the resulting file rclone.conf on your local machine. |
32 | | a. On Mac and Linux, e.g., look for the file ~/.config/rclone/rclone.conf |
33 | | b. On Windows 8 (or under) , e.g., look for the file %userprofile%\.config\rclone\rclone.conf |
34 | | 3. Create as needed the directory ~/.config/rclone on your Cypress account. |
35 | | 4. Copy the resulting local file rclone.conf to your Cypress directory ~/.config/rclone. See [[cypress/FileTransfer|File Transfer]]. |
36 | | 5. For security purposes, be sure to confirm that only you have ''exclusive'' read/write privileges to the resulting file ~/.config/rclone/rclone.conf on Cypress. See the ''ls'' and ''chmod'' commands under [[cypress/BasicLinuxComands|Linux Commands]] |
| 62 | 2. Once you've configured rclone on your local machine, locate the resulting file '''rclone.conf''' on your local machine. |
| 63 | a. On Mac and Linux, e.g., look for the file '''~/.config/rclone/rclone.conf''' |
| 64 | b. On Windows 8 (or under) , e.g., look for the file '''%userprofile%\.config\rclone\rclone.conf''' |
| 65 | 3. Create as needed the directory '''~/.config/rclone''' on your Cypress account. |
| 66 | 4. Copy the resulting file '''rclone.conf''' from your local machine to your Cypress directory '''~/.config/rclone'''. See [[cypress/FileTransfer|File Transfer]]. |
| 67 | 5. For security purposes, be sure to confirm that only you have ''exclusive'' read/write privileges to the resulting file '''~/.config/rclone/rclone.conf''' on Cypress. See the ''ls'' and ''chmod'' commands under [[cypress/BasicLinuxComands|Linux Commands]] |