Entry 1 (9/22/15)-
Was able to login successfully on the first try, not sure why I had trouble last time. Had difficulty using the cd command because the "~" is apparently necessary. Things to remember...
+PhysHonr268n NOT HonrPhys268n
+cd does not need "~"
+ls lets you see everything in directory
+emacs -nw <filename>.txt to create new emacs files
+in emacs, cntrl - x cntrl - s saves and cntrl - x cntrl - c exits emacs
+call "cat <filename>" to pull up text of an emacs file
+use winscp to transfer files to computer
Entry 2 (9/22/15)-
Figured out scripts
+to change permission and add executable... "chmod +x <filename>
+when making a tcsh script don't forget #!/bin/tcsh to tell computer to run it as a tcsh
+the script isn't running as soon as you exit you have to use it later when you run it outside of emacs by calling "tcsh ./<filename> <arguement>
+you can also run it w/o the "tcsh" but you have to have permission by doing the "chmod +x"
Entry 3 (9/23/15)-
Added an ssh key to github
Here are directions on how to access github from terminal/putty
+ type "ssh -T git@github.com" it will ask you (yes/no)
+ after you type yes enter passphrase and you're in! :)
Entry 4 (9/29/15)-
Figured out terminal access to cluster
+ ssh -X -Y natoli@hepcms-hn.umd.edu
+ then enter password
+the "-hn" is crucial!!!
Entry 5 (10/4/15)
Grep has many different modifiers that can search for different things. It can give you the line number, words starting or ending with a letter, and the lines that don't contain the arguement
In order to push files to github do this...
git add FILENAME
git commit –a -m “first commit”
git remote set-url origin git@github.com:natoli/HONRPHYS.git
git push –u origin master
I'm still having trouble pushing files to github... :(
When using C++, things to remember
+ name files with ".cpp"
+ start out every file with #include <iostream> and on next line using namespace std;
+ to convert int to string use stringstream
+ don't forget to use cntl e goes to end of line and cntl a goes to beginning
Entry 6 (10/6/15)
The ampersand symbol (&) displays the memory address of a variable
The asterisk symbol (*) denotes a pointer so
int* p = &i;
would contain the memory address of i
*p
displays the value of i
Entry 7 (10/26/15)
I finally (whew) figured out how to transfer files from the cluster to my laptop. The code is as follows
scp natoli@hepcms.umd.edu:~/PhysHonr268n/<filename.ext> ~/Desktop
It automatically fills in the /home/natoli part of the remote directory
To move files the other way, simply reverse it to be...
scp ~jamesnatoli/directory natoli@hepcms.umd.edu:~/PhysHonr268n
The home directory in the mac is MacintoshHD/Users/jamesnatoli so ~/Desktop is accurate because /Desktop is in ~/
I also FINALLY got the root thing working (sort of). I needed to download something called Xquartz which is available from this website http://xquartz.macosforge.org/landing/
That allowed all of the commands to work and for the X-11 forwading to work as well. If you're having a problem where cmsrel is not being recognized, try downloading this first and save youself a lot of time.
When you're ready to start using root, go to CMSSW_5_3_30 and then type cmsenv and then cd to the testRoot directory. To enter root, type "root -nw" and viola you're in.
To execute files in root, use ".x"
Make sure ALL files that are being used in root are in the testRoot directory. Graphs didn't initially show up, onw was saved in the testRoot directory as a gif... make sure that when you ssh so ssh -x -Y just to make sure that the graphs so up