PraCTES / MIT-PraCTES

Materials for MIT workshop "Practical Computing Tutorials for Earth Scientists"
38 stars 7 forks source link

add editor and compiler for git and terminal demos? #6

Closed gaelforget closed 4 years ago

gaelforget commented 4 years ago

The code snippet (abbreviated) + error message below first led me to believe that adding vim (or nano) to the cloud instance environment would be needed to enable to use git commit.

git clone https://github.com/gaelforget/MIT-PraCTES
cd MIT-PraCTES
...
git config --global core.editor vim
git commit demos/README.md 
hint: Waiting for your editor to close the file... error: unable to start editor 'vim'
Please supply the message using either -m or -F option.

Found this relevant post and tried sudo apt-get install nano as suggested here but get bash: sudo: command not found.

update 1 I went back and the following works even without vim or nano

git commit demos/README.md -m "my message

update 2 https://github.com/binder-examples/apt_install works to install nano (see below)

gaelforget commented 4 years ago

Will try this next : https://github.com/binder-examples/apt_install

This worked for nano (https://mybinder.org/v2/gh/gaelforget/apt_install/nano-test1?urlpath=lab) but the build seems to have timed out for vim.

This worked also for gfortran and thus MITgcm:

Screen Shot 2020-01-16 at 11 22 01 AM

hdrake commented 4 years ago

Will schedule the announcement email for 7:45am tomorrow. Looking at your edits now and will merge sometime tonight.

Henri Drake (he/him) PhD Candidate MIT/WHOI Joint Program hdrake.github.io

On Thu, Jan 16, 2020 at 10:33 AM Gael Forget notifications@github.com wrote:

Will try this next : https://github.com/binder-examples/apt_install

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PraCTES/MIT-PraCTES/issues/6?email_source=notifications&email_token=ADC6ZHQUXXINHBP33RFT4GDQ6B43DA5CNFSM4KHV3AQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJEPJDQ#issuecomment-575206542, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADC6ZHRHAHSO2JHURVTXAHDQ6B43DANCNFSM4KHV3AQA .