Difference: HowToAccessComputing (5 vs. 6)

Revision 62014-03-21 - jrodrig

Line: 1 to 1
 
META TOPICPARENT name="PHY4821L"
-- JorgeRodriguez - 2012-01-09

Access to Computing

Changed:
<
<
Accounts have been created on our HEP analysis server for each of the students during the first week of class. The HEP analysis server can be accessed by logging in through ssh (Secure SHell) and only through ssh. The server's is called medianoche.hep.fiu.edu. The ssh application is a very useful thing to have on your PC, the mac already has it by default.
>
>
Accounts have been created on the Sr. Lab linux server medianoche for each student during the first week of class. The medianoche server can be accessed in only a couple of ways: 1 loggin into it through a terminal applicaiton, or 2. by copying files into or out of it.
 
Changed:
<
<
Windows PCs
>
>
To login to medianche you are allowed for security reasong to only use ssh (Secure SHell). Medianoche's Fully Qualified Domain Name (FQDN) is medianoche.hep.fiu.edu, a FQDN is the identity of the server on the internet. Anyone on the internet can access this machine by this name which identifies it uniquely.
 
Changed:
<
<
If you are on Windows box an excellent ssh application is putty. You can download and install that on your laptop. Setup is easy. All you need to do is download the putty.exe file and run it. It will prompt you for hostname, username and password.
>
>
login to medianoche via the secure shell application "ssh" or via putty on windows. In fact on the PC putty is the just the terminal emulator that employs some other application that uses the SSH protocol to negotiate the connection to the medianoche server. A related application used to copy files into and out of medianoche is called "scp". Again the s here stands for secure and this app uses the same protocol to copy files; namely the SSH protocol. I will describe below how to access (meaning login to) the medianoche server and how to copy files into and out of it, from a windows box and a MAC.
Windows PCs
 
Changed:
<
<
To use MN_FIT you will need to run an Xserver running on your PC since mn_fit uses the X11 protocol to communicate graphics between machines. A free Xserver that works well on windows is available from xming. Download and install on your laptop. You will launch this whenever you need to see the display produced on medianoche on our PC. To allow the X11 traffic to be accepted by your ssh session you will need to enable X11 forwarding on your putty session. Go to putty configuration and The graphics from MN_FIT needs X to display on To display the graphics window from mnfit running on medianoche you will need to launch xming on your laptop. One final thing, you need to enable X11 forwarding on your putty terminal session. To do this launch putty and in the Putty configuration catalog click on the "SSH" button -> X11 and click on the "Enable X11 forwarding" box. Then go back to category window, click on "Session", highlight the saved session you are in and save. Launch a new putty window and the X11 traffic will be accepted by the Xserver running on your PC.

Macs

>
>
If you are on Windows box an excellent way to login to any server that allows ssh access, like medianoche, is the application called putty. This app also includes a terminal emulator, you'll see what that means when you launch it. Basically its the way you control what happens on the server you have a terminal session on. You can download and install this application from the link provided above. The setup is rather easy. All you need to do is download the putty.exe file and just double click it to run it. It will prompt you for hostname, username and password.
 
Changed:
<
<
If you are on a mac X11 is already part of the OSX, at least in recent versions. Most likely It will be located in your applications folder. Find it and launch the program from there. Once that's done, launch an x-terminal and from the x-terminal log into medianoche via ssh. Use the -X option to allow the session to forward X11 traffic from medianoche to your mac.
xterm $> ssh -X p4821x@medianoche.hep.fiu.edu 
>
>
To use the scp command you in fact get one to run from the cmd prompt in windows, yes you can actually get a cmd terminal in windows, but its a lot easier to just download and use the winSCP applicaiton you can download from the web here http://winscp.net/eng/download.php. Again as with all things windows it easy to install. It has a GUI that should be easy to use. Have a look and let me know if you have questions.
MAC computers
 
Changed:
<
<
 
>
>
Mac computers are actually runing a version of UNIX called BSD UNIX which is similar to what runs on medianoche, LINUX. The similarities are most apparent when you are using the terminal on your mac. In most serious scientific endevors requiring a computer you will be interacting with the computer through a terminal and usually not through GUIs (Graphical User Interfaces). GUIs are things that you develop after you've gotten your code to work and want someone to buy it, which is why a lot of scientific computing doesn't evolve into a GUI phase for obvious reasons. Anyway, I digress, if you haven't had the opportunity to interact with your mac in this way this is your chance.
 
Changed:
<
<
Data Analysis, Compilers, Xservers and all that test
>
>
On a mac, since its a unix box, you don't need to install anything. The ssh application is alredy there and ready to use. To login to medianoche open a terminal window and type this:

jorge@medianoche: $> ssh -X p4821x@medianoche.hep.fiu.edu

 
Changed:
<
<
Tools to do data analysis have been deployed on the medianoche server. A version of the root analysis framework, MN_FIT and GNU versions of the C/C++ ( to compile c/c++ code type g++ <filename.cc> on the command line) and FORTRAN ( to compile your code type gfortran <filename.F> on the command line) compiler have been installed on this sever. To display windows created by these program invoke root or MN_Fit you will need to install and setup a X-server software on your laptop or PC. On MACs X11 is already installed by default all you have to do is launch it. The X-server software on your machine will allow the root or mnfit software on medianoche to talk graphics with your computer. The X-server software I use on my windows box is Xming. Installation should be simple.

Useful Links

>
>
The "jorge@medianoche: $>" is supposed to be what you prompt looks like, of course yours will be different. The ssh is the name of the application, the -X means that you want your ssh session to forward X11 traffic from medianoche to your mac. This is important if you are using MN_FIT or root to do your data analysis. However inorder for your X11 traffic to display on your mac you'll need launch your Xserver.
 
Changed:
<
<
[http://www.panic.com/coda/]. This is a great editor for those of you who have a mac. It allows you to edit files remotely and it has a built in terminal...It's not free, but if you want, you can ask me (Zubair) and i might have a copy for you....
>
>
To copy files from you mac to the medianoche server you will use another application called "scp". Here is how you use it:

jorge@medianoche: $> scp ./foo.txt p4821x@medianoche.hep.fiu.edu:~/

 
Changed:
<
<
http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html. A selection of links to Linux commands. Many can be found on the web.
>
>
Here is what all this means. The "scp" is the application you invoke it by typing its name. The first argument the "./foo.txt", part is the target file or the "from" filename. The "./" part of that is the directory or path of the file "./" in unix land means right here in this directory. The second argument is the "to" ie where the target will be copied. Now notice the syntax. The scp application, like its cousing ssh, uses special characters to indicate what part is the string is the filename and what part is the server. A file can thus be sepecified not only by its name and path but by its location anywhere in the world. Here the ":" character seperates the server part and the full directory path part of the target. The FQDN of our medianoche server on the left of ":" and the full directory path on the right. Note that the "~/" string stands for /home/p4821x. This is the path of the directory into which you will write foo.txt files into from your mac. The character "@" seperates the username of the account on the server that follows.

Data Analysis, Compilers, Xservers and all that test

Tools to do data analysis have been deployed on the medianoche server. A version of the root analysis framework, MN_FIT and GNU versions of the C/C++ ( to compile c/c++ code type g++ <filename.cc> on the command line) and FORTRAN ( to compile your code type gfortran <filename.F> on the command line) compiler have been installed on the sever as well as some of the python packages you used in Modern Lab.

Some of these tools, particularly MN_FIT and root display their output on a graphical window that requires the use of the X11 protocol. These programs thus need to have an application running on the machine on which your display is connected that can "speak" X11. That application is known as an X11 server, yes its called a server even though its not really a piece of hardware like medianoche.

On the mac, older versions of the OS, you got an Xserver with your OS that you needed to launch on your own. The mac's windows displayed on your screen do not apparently use the X11 protocol. All other unixes as far as I know do. Anyway, you will need to have this X11 server running on your mac to display any windows from MN_FIT or root. Its called Xming. Installation should be simple as are all installations on windows machines.

If you are running python on medianoche and displaying on your PC or mac you may need to have an X11 server running too. I haven't tried it so don't know.

Useful Links

http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html. A selection of links to Linux commands. Many can be found on the web.

  http://www.cs.colostate.edu/helpdocs/emacs.html This link provides a set of common emacs commands. Emacs is a smart and powerful editor available on most platforms, window, mac, linux etc., . It understands most programming languages and "colorizes" your text to check your syntax all while you edit. It also does email, websurfing and just about anything else you want it to do. In fact, it can be extend infinitely if you can program in lisp ;)... \ No newline at end of file
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback