Exercises from previous lecture can be found in the exercise directory along with solutions (where applicable).
When logged into URSA to install Miniconda we were in a login shell as opposed to an interactive shell. A bash login shell will not run the .bashrc
, instead it will run .bash_profile
. This will be true when logged into URSA from your laptops as well.
Miniconda added to the path directory in the .bashrc
, to ensure that .bashrc
file is always executed we can add the following line to our .bash_profile
. ~/.bashrc #run .bashrc after login
You can do this by pasting the following code into the terminal
echo ". ~/.bashrc #run .bashrc after login" >> .bash_profile
If you are still having troubles running Miniconda you can also use the public (so-called astromake) version as follows:
echo 'export PATH="/astromake/opt/python/miniconda3/bin/:$PATH"' >> .bashrc
My Miniconda should work as well:
echo 'export PATH="/n/ursa/A288P/krmurphy/ASTR288P/software/sublime_text_3/:$PATH"' >> .bashrc
You can also copy my .bashrc
file to you home directory
cd
cp /n/ursa/A288P/krmurphy/.bashrc .
A note on remote logins: when you are logged onto URSA you are running a terminal/shell directly on URSA and hence are using the operating system installed on URSA. For this class when remotely logged onto URSA you will be in a linux system regardless if you login from a Windows of Mac machine.
A note on WSL: you may not be able to change a files permissions in WSL if you are in the Windows Files System. However if you transfer a file from the Windows Files System to a Linux File System (such as URSA) you will be able to modify a files permissions again using chmod
.
There was an issue with our Astr288p git repository on the lab machines last lecture. The error was the result of incorrect security certificates which we are currently addressing. Until then the fix below will allow you to use ```git`` on the lab machines. Note this is only required if you are working on the lab machines.
# change directory into your astr288p git repository
# run the command below
git remote set-url origin git://github.com/kylermurphy/astr288p_2018