ngs-docs / 2021-august-remote-computing

Remote computing workshops in August 2021
https://ngs-docs.github.io/2021-august-remote-computing
4 stars 2 forks source link

workshop 4: Running programs on remote computers and retrieving the results #4

Open ctb opened 3 years ago

ctb commented 3 years ago

Thursday August 12 from 9 am - 11:30 PDT

Instructors: Moderator: Abhijna Helpers: Nick

Zoom link:

Description:

This two hour workshop will show attendees how to use remote computers to run their analyses, work with the output files, and copy the results back to their laptop and desktop computers. We will discuss input and output formats, where files are usually read from and written to, and how to use the ssh software to copy files to and from remote computers.

no draft lesson yet

owner: ???


potential hands-on topics:

ctb commented 3 years ago
ctb commented 3 years ago

I cannot make the first half hour of this. We might consider moving this back by 30 minutes since I suspect we'll need all hands on deck.

nick-ulle commented 3 years ago

I can be a helper for this.

ctb commented 3 years ago

I think I would probably point them at some other approaches, too - cat /proc/cpuinfo for the system they’re on; free; and df -h for disk space

ctb commented 3 years ago

for the e-mail that gets sent out for this one (presumably today?),

ctb commented 3 years ago

Let's tell people to show up at 9:30am, too; that's the earliest I'm available.

ctb commented 3 years ago

things to remind people of in announcements -

...what else?

assessment q:

I can use a key pair with ssh instead of a password to connect to a remote UNIX system

I can restrict others from being able to see my files on shared UNIX systems

I can directly transfer files from a Web address to a remote system at the command line

jeremywalter commented 3 years ago

Pre-Survey: https://forms.gle/e4izXSt3nfM9xYR48 Post-Survey: https://forms.gle/Hny9nogihwCvidq58

nick-ulle commented 3 years ago

Section 4.1

the private part of a key pair is NEVER shared, unlike with passwords where you have to type the password in.

This sort of sounds like it's normal to share passwords.


Section 4.2

Your private key for your datalab-XX account is kept in .ssh/id_rsa

Clarify which machine this is talking about (Farm, not the local machine).

abhijna commented 3 years ago

fix the docs to include .profile edit

nick-ulle commented 3 years ago

Most of the students having trouble with scp had a corrupted .bashrc on Farm as a result of #3.

So maybe reset their files between workshops or be careful about how we tell them to edit config files.

ctb commented 3 years ago

On Thu, Aug 12, 2021 at 10:25:25AM -0700, Nick Ulle wrote:

Most of the students having trouble with scp had a corrupted .bashrc on Farm as a result of #3.

So maybe reset their files between workshops or be careful about how we tell them to edit config files.

ugh didn't see that coming! how was it corrupted - just, like, bad content that broke on login?

nick-ulle commented 3 years ago

Mostly incorrect syntax in the .bashrc. Typos and missing quotes

abhijna commented 3 years ago

point people at hpc slack channel for hpc help

nick-ulle commented 3 years ago

Relevant for getting people to ask good tech questions: https://stackoverflow.com/help/how-to-ask

ctb commented 3 years ago

On Thu, Aug 12, 2021 at 10:58:04AM -0700, Nick Ulle wrote:

Mostly incorrect syntax in the .bashrc. Typos and missing quotes

ok - I ran into one or two of these while installing conda for everyone, do they actually prevent logins? I thought they just printed out errors.

nick-ulle commented 3 years ago

do they actually prevent logins? I thought they just printed out errors.

They don't prevent login with ssh but they do prevent scp from downloading files.

ctb commented 3 years ago

do they actually prevent logins? I thought they just printed out errors.

They don't prevent login with ssh but they do prevent scp from downloading files.

wow, I had no idea - finally followed this up,

https://stackoverflow.com/questions/12440287/scp-doesnt-work-when-echo-in-bashrc

"yay" I learn something new every time I teach!?!?!?

ctb commented 3 years ago

Most of the students having trouble with scp had a corrupted .bashrc on Farm as a result of #3.

So maybe reset their files between workshops or be careful about how we tell them to edit config files.

fixed in https://github.com/ngs-docs/remote-computing-base/pull/13 - once merged, we should update this repo, too.]

EDIT: done and now live! https://github.com/ngs-docs/2021-august-remote-computing/pull/42