Showing posts with label athlon. Show all posts
Showing posts with label athlon. Show all posts

Saturday, October 15, 2011

CIS(theta) 2011-2012 - Public Keys! - Meeting IV

The following is a summary of what we've accomplished so far with the 2011-2012 CIS(theta) team. The Shadowfax Cluster is coming along quite well. We have a nice base OS in 64bit Ubuntu 11.04 Natty Narwhal Desktop on top of our AMD dualcore Athlons and gigE LAN. The Unity Desktop isn't that different from the Gnome Desktop we've been using these past few years on Fedora and Ubuntu. Natty is proving very user friendly and easy to maintain! This past week we installed openSSH on a testbed of 4 Linux Boxes and we enabled public-key authenticated ssh as detailed below. Next meeting, we'll install openMPI and we'll use flops.f to stress our mini 8-core cluster! BTW, we need public keys so openMPI can scatter/gather cluster jobs without the overhead of logging into each node as needed. We created a new user common to all nodes called "jobs" in honor of Steve Jobs. The cluster user can simply log into one node and be logged into all nodes at once! We started step 4 as listed below by installing openSSH and enabling public-key authentication. We'll finish step 4 next time by installing and testing openMPI. Maybe we'll rename it step 5?
InstantCluster Step 1: Infrastructure
Make sure your cores have enough ventilation. The room has to have powerful air conditioning too. These two factors may seem trivial but will become crucial when running the entire cluster for extended periods of time! Also, you need to have enough electrical power, preferably with the cabling out of the way, to run all cores simultaneously. Don't forget to do the same with all your Ethernet cabling. We have CAT6E cables to support our gigE Ethernet cards and switches. We are lucky that this step was taken care of for us already!

InstantCluster Step 2: Hardware
You need up to date Ethernet switches plus Ethernet cards and cores as well as plenty of RAM in each Linux box. As stated above, our gigE LAN and switches were already setup for us. Also, we have 64bit dual-core AMD Athlons and our HP boxes have 750 MB of RAM. I'd rather 1 or 2 GB of RAM, but that will have to wait for an upgrade!

InstantCluster Step 3: Firmware
We wasted way too much time last year trying out all kinds of Linux distros looking for a good 64bit base for our cluster. This year we spent way too much time testing out different liveCD distros. Recently, we downgraded from 64bit Ubuntu 10.04 Desktop edition to the 32bit version on our Linux partitions. 64bit gives us access to more RAM and a larger maxint, but was proving to be a pain to maintain. Just to name one problem, jre and flash were hard to install and update on FireFox. Last year we tried Fedora, Rocks, Oscar, CentOS, Scientific Linux and, finally, Ubuntu. 32bit Ubuntu has proven very easy to use and maintain, so I think we'll stick with it for the cluster! We've done this several times over the years using everything from Slakware and KNOPPIX to Fedora and Ubuntu!

InstantCluster Step 4: Software Stack
On top of Ubuntu we need to add openSSH, public-key authentication and openMPI. In step 6 we can discuss an application to scatter/gather over the cluster whether it be graphical (fractals, povray, blender, openGL, animations) or number crunching (C++ or python app for Mersenne Primes or Beal's Conjecture). So, what follows is a summary of what we did to get up to plublic-key authentication. This summary is based on the http://cs.calvin.edu/curriculum/cs/374/MPI/ link listed below. First, we installed openSSH-server from http://packages.ubuntu.com using the proxy server, then:
  1. If you have no .ssh directory in your home directory, ssh to some other machine in the lab; then Ctrl-d to close the connection, creating .ssh and some related files. 
  2. From your home directory, make .ssh secure by entering:
    chmod 700 .ssh
  3. Next, make .ssh your working directory by entering:
    cd .ssh
  4. To list/view the contents of the directory, enter:
    ls -a [we used ls -l]
  5. To generate your public and private keys, enter:
    ssh-keygen -t rsa
    The first prompt is for the name of the file in which your private key will be stored; press Enter to accept the default name (id_rsa).The next two prompts are for the password you want, and since we are trying to avoid entering passwords, just press Enter at both prompts, returning you to the system prompt.
  6. To compare the previous output of ls and see what new files have been created, enter:
    ls -a [we used ls -l]
    You should see id_rsa containing your private key, and id_rsa.pub containing your public key.
  7. To make your public key the only thing needed for you to ssh to a different machine, enter:
    cat id_rsa.pub >> authorized_keys
    [The Linux boxes on our LAN, soon to be cluster, have IPs ranging from 10.5.129.1 to 
    10.5.129.24 So, we copied each id_rsa.pub file to temp01-temp24 and uploaded these 
    files via ssh to the teacher station. Then we just ran cat tempnn >> authorized_keys 
    for each temp file to generate one master authorized_keys file for all nodes that we could 
    just download to each node's .ssh dir.]
  8. [optional] To make it so that only you can read or write the file containing your private key, enter:
    chmod 600 id_rsa
  9. [optional] To make it so that only you can read or write the file containing your authorized keys, enter:
    chmod 600 authorized_keys
    ===================================================
    What we are researching II 
    (look what other people are doing with MPI):
    MPI intro, nice!
    Sample MPI code
    http://www.cc.gatech.edu/projects/ihpcl/mpi.html
    ===================================================
    What we are researching I 
    (look what this school did in the 80s and 90s): 
    Thomas Jefferson High courses
    Thomas Jefferson High paper
    Thomas Jefferson High ftp
    Thomas Jefferson High teacher
    http://www.tjhsst.edu/~rlatimer/
    ===================================================
    Today's Topic:
    CIS(theta) 2011-2012 - Public Keys! - Meeting IV
    Today's Attendance:
    CIS(theta) 2011-2012: GeorgeA, GrahamS, KennyK, LucasE
    Today's Reading:
    Chapter 2 Building Parallel Programs (BPP) using clusters and parallelJava
    ===================================================
    Well, that's all folks, enjoy!

Saturday, October 16, 2010

CIS(theta) Meeting III (2010-2011) - Geek Squad!

Aim: 
Geek Squad!

Attending: 
DavidG, HerbertK, JayW, JoshG, RyanH

Reading: Building Parallel Programs, Chapter3



Research3
povray
http://library.thinkquest.org/3285/about.html
openGL
http://www.tjhsst.edu/~dhyatt/superap/opengl.html
fractals
http://www.tjhsst.edu/~dhyatt/supercomp/n106.html

This week we reviewed the reading from Chapter 2 and the links from Research 2. Then we proceeded to outline some projects for the "Geek Squad!"  


1) A couple of Student Station's Ubuntu 10.04 Desktops got FUBARed, so we talked about downloading the 64bit ISO, burning a CD and reinstalling those stations. Don't forget, we also have to add JRE for SAGE (http://www.sagemath.org) to do animation in 3D!



2) The Teacher Station is fine, except I tried to get Adobe Flash to work in 64bit for Youtube Wednesdays, but I just succeeded in banging my head against the wall! So, we talked about getting the 32bit Ubuntu ISO and downgrading the OS on that station only. This station should do all that a Student Station does (ie: add JRE) plus some extra apps.  I have VLC (thanx to Jeremy's 250GB external USB Hard-Drive full of Star Trek episodes) and Xournal (can't stand Smart Notebook for Linux) on there, so I'd like to add them to the 32bit Linux partition also. I'm going to need WINE (on all 25 stations) to run VTI for a final project in programming graphing calculators in my Computer Math class (and I won't have to give out TI-83s). I also never got around to playing with handbrake which I want to use to chop up an old National Geographic special that I want to upload to Youtube called "The Miracle Chip" that I converted from VHS to DVD a couple of years ago. Last, but not least, don't forget the Flash plugin for Firefox!




3) Our new 64bit quad-core Xeon servers are not yet ready for prime time! We finally got the gigE drops, so we need to set up the Ethernet cards to be accessible from home.  Also, these PCs are setup right now like the student PCs except for the JRE (ie just a barebones 64bit Ubuntu 10.04 Desktop, not the Server Edition). What we need to install here is vsFTP and openSSH so each server can take the place of the 2 servers we are currently using.  The idea is to replace both centauri.baldwinschools.net (current ftp server) and colossus.baldwinschools.net (current sftp server) by guardian.baldwinschools.net or caprica.baldwinschools.net which will be mirror images of eachother. Another problem with the new servers is that they have RAID drives as follows: guardian has 2x72GB+2x36GB drives and caprica has 1x72GB+3x36GB drives. I would like both servers to have the same RAID setup, so I'm waiting on an order of 5 new 72GB drives to swap out the 36GB drives. That way, both servers will have a 288GB capacity (current servers only have 80GB) and each server can function as an ftp and an sftp site. I may eventually add "Teacher Station" functionality to Guardian (since the new servers are in Room 429 too) so I can use it in class.  This way, one Teacher Station can run WimpDoze all day and the other can run Linux all day so we don't have to reboot theses stations for different classes through out the day. All we need is a KDM switch so as to have 1 keyboard and 1 mouse for both PCs, plus a video switch for the PC Projector to take either Teacher Station as source! You know, what we realy need is a PC Podium so we can also hook up a laptop on the fly when needed (complete with audio, video and ethernet cables) like I have at Nassau Community College when I teach in the summer and at other colleges where I give conferences. Speaking of conferences, I have 2 coming up: "Intro to SAGE," Staff Development Day, Baldwin High School, 11/2/2010 and "Look Ma, No Calculator," T^3 (Teachers Teaching with Teachnology), Molloy College, 11/5/2010!





Ok, we didn't have time to do all that in one meeting, so we focused on the Student Stations for now. I had already downloaded the ISO and put it on the ftp site.  So, we copied it from there and burned a CD. Then we followed the instructions from http://shadowfaxrant.blogspot.com/2010/06/so-many-linux-distros-so-little-time.html but only got through steps 1-3. The next day, I tweaked the desktop and printer settings (step 4) and added JRE (2nd alternate to step 5). So, now all is well with the 24x64bit dual-core AMD Athlon Student Stations!



Well, "That's All Folks," for this meeting. We'll tackle the Teacher Station next meeting in 2 weeks. Check our new Facebook Group, CIS(theta), for our next event! Oh, I added my favorite clip from "The Big Bang Theory" for no apparent reason other than we're all in the Geek Squad, right? Enjoy!






Happy Clustering,




CIS(theta) Meeting III (2010-2011) - Geek Squad!

Aim: 
Geek Squad!

Attending: 
DavidG, HerbertK, JayW, JoshG, RyanH

Reading: Building Parallel Programs, Chapter3



Research3
povray
http://library.thinkquest.org/3285/about.html
openGL
http://www.tjhsst.edu/~dhyatt/superap/opengl.html
fractals
http://www.tjhsst.edu/~dhyatt/supercomp/n106.html

This week we reviewed the reading from Chapter 2 and the links from Research 2. Then we proceeded to outline some projects for the "Geek Squad!"  


1) A couple of Student Station's Ubuntu 10.04 Desktops got FUBARed, so we talked about downloading the 64bit ISO, burning a CD and reinstalling those stations. Don't forget, we also have to add JRE for SAGE (http://www.sagemath.org) to do animation in 3D!



2) The Teacher Station is fine, except I tried to get Adobe Flash to work in 64bit for Youtube Wednesdays, but I just succeeded in banging my head against the wall! So, we talked about getting the 32bit Ubuntu ISO and downgrading the OS on that station only. This station should do all that a Student Station does (ie: add JRE) plus some extra apps.  I have VLC (thanx to Jeremy's 250GB external USB Hard-Drive full of Star Trek episodes) and Xournal (can't stand Smart Notebook for Linux) on there, so I'd like to add them to the 32bit Linux partition also. I'm going to need WINE (on all 25 stations) to run VTI for a final project in programming graphing calculators in my Computer Math class (and I won't have to give out TI-83s). I also never got around to playing with handbrake which I want to use to chop up an old National Geographic special that I want to upload to Youtube called "The Miracle Chip" that I converted from VHS to DVD a couple of years ago. Last, but not least, don't forget the Flash plugin for Firefox!




3) Our new 64bit quad-core Xeon servers are not yet ready for prime time! We finally got the gigE drops, so we need to set up the Ethernet cards to be accessible from home.  Also, these PCs are setup right now like the student PCs except for the JRE (ie just a barebones 64bit Ubuntu 10.04 Desktop, not the Server Edition). What we need to install here is vsFTP and openSSH so each server can take the place of the 2 servers we are currently using.  The idea is to replace both centauri.baldwinschools.net (current ftp server) and colossus.baldwinschools.net (current sftp server) by guardian.baldwinschools.net or caprica.baldwinschools.net which will be mirror images of eachother. Another problem with the new servers is that they have RAID drives as follows: guardian has 2x72GB+2x36GB drives and caprica has 1x72GB+3x36GB drives. I would like both servers to have the same RAID setup, so I'm waiting on an order of 5 new 72GB drives to swap out the 36GB drives. That way, both servers will have a 288GB capacity (current servers only have 80GB) and each server can function as an ftp and an sftp site. I may eventually add "Teacher Station" functionality to Guardian (since the new servers are in Room 429 too) so I can use it in class.  This way, one Teacher Station can run WimpDoze all day and the other can run Linux all day so we don't have to reboot theses stations for different classes through out the day. All we need is a KDM switch so as to have 1 keyboard and 1 mouse for both PCs, plus a video switch for the PC Projector to take either Teacher Station as source! You know, what we realy need is a PC Podium so we can also hook up a laptop on the fly when needed (complete with audio, video and ethernet cables) like I have at Nassau Community College when I teach in the summer and at other colleges where I give conferences. Speaking of conferences, I have 2 coming up: "Intro to SAGE," Staff Development Day, Baldwin High School, 11/2/2010 and "Look Ma, No Calculator," T^3 (Teachers Teaching with Teachnology), Molloy College, 11/5/2010!





Ok, we didn't have time to do all that in one meeting, so we focused on the Student Stations for now. I had already downloaded the ISO and put it on the ftp site.  So, we copied it from there and burned a CD. Then we followed the instructions from http://shadowfaxrant.blogspot.com/2010/06/so-many-linux-distros-so-little-time.html but only got through steps 1-3. The next day, I tweaked the desktop and printer settings (step 4) and added JRE (2nd alternate to step 5). So, now all is well with the 24x64bit dual-core AMD Athlon Student Stations!



Well, "That's All Folks," for this meeting. We'll tackle the Teacher Station next meeting in 2 weeks. Check our new Facebook Group, CIS(theta), for our next event! Oh, I added my favorite clip from "The Big Bang Theory" for no apparent reason other than we're all in the Geek Squad, right? Enjoy!






Happy Clustering,




Saturday, October 2, 2010

CIS(theta) Meeting II (2010-2011) - Burn Fest!!


Aim: 
Burn Fest!!


Attending: 
DavidG, HerbertK, JayW, JoshG, RyanH


Reading: Building Parallel Programs, Chapter2


tjhsst
http://www.tjhsst.edu/~dhyatt/supercomp/index.html
tjhsst
http://www.tjhsst.edu/~rlatimer/compsys/compsys2001.html




This week we reviewed the reading from Chapter 1 and the links from Reasearch 1.  We talked about setting up pelicanHPC in the near future via PXEboot to run some jobs using Octave, MPI and MPITB.  This week's reading is Chapter 2 and Research 2.  I put up Research 3 as it is related to TJHSST, but you can skip those links for now.





The next version of Ubuntu is coming soon
Then we talked about our 64bit Ubuntu install as discribed here: http://shadowfaxrant.blogspot.com/2010/06/so-many-linux-distros-so-little-time.html whereby all the PCs in our lab are installed identically (24 student clients, 1 teacher client and 2 servers) via the Ubuntu 10.04 live install CD (dualboot with WinXP making linux the primary boot partition on grub2).  I added JRE to the teacher and student stations so we could do 3D graphs on SAGE.  I also added VLC to the teacher station so I could display my crazy videos.  



We discussed adding flash (for youtube viewing), WINE (for VTI in math class), handbrake (to edit DVDs for youtube upload) and xournal (for writing notes in class with my wireless tablet) to the teacher station.  We will also be installing vsftp and openssh-server on the servers. 




Note: student and teacher PCs are 64bit dualcore AMD Athlons and the new servers are 64bit quadcore Intel Xeons.  So, the "geek squad" has its hands full with helping me do all this in the near future!







Meanwhile, the "geek squad" burned, labeled and cased 50 Ubuntu 32bit liveCDs that I can now give out in my classes for my new students to work from home in the same environment as they do in class.  BTW, we made a mini field trip to the Math Office to get some CDs where we found 10x100 CD and 15x50 DVD spindles!  Thanx guys!


Happy Clustering,

CIS(theta) Meeting II (2010-2011) - Burn Fest!!


Aim: 
Burn Fest!!


Attending: 
DavidG, HerbertK, JayW, JoshG, RyanH


Reading: Building Parallel Programs, Chapter2


tjhsst
http://www.tjhsst.edu/~dhyatt/supercomp/index.html
tjhsst
http://www.tjhsst.edu/~rlatimer/compsys/compsys2001.html




This week we reviewed the reading from Chapter 1 and the links from Reasearch 1.  We talked about setting up pelicanHPC in the near future via PXEboot to run some jobs using Octave, MPI and MPITB.  This week's reading is Chapter 2 and Research 2.  I put up Research 3 as it is related to TJHSST, but you can skip those links for now.





The next version of Ubuntu is coming soon
Then we talked about our 64bit Ubuntu install as discribed here: http://shadowfaxrant.blogspot.com/2010/06/so-many-linux-distros-so-little-time.html whereby all the PCs in our lab are installed identically (24 student clients, 1 teacher client and 2 servers) via the Ubuntu 10.04 live install CD (dualboot with WinXP making linux the primary boot partition on grub2).  I added JRE to the teacher and student stations so we could do 3D graphs on SAGE.  I also added VLC to the teacher station so I could display my crazy videos.  



We discussed adding flash (for youtube viewing), WINE (for VTI in math class), handbrake (to edit DVDs for youtube upload) and xournal (for writing notes in class with my wireless tablet) to the teacher station.  We will also be installing vsftp and openssh-server on the servers. 




Note: student and teacher PCs are 64bit dualcore AMD Athlons and the new servers are 64bit quadcore Intel Xeons.  So, the "geek squad" has its hands full with helping me do all this in the near future!







Meanwhile, the "geek squad" burned, labeled and cased 50 Ubuntu 32bit liveCDs that I can now give out in my classes for my new students to work from home in the same environment as they do in class.  BTW, we made a mini field trip to the Math Office to get some CDs where we found 10x100 CD and 15x50 DVD spindles!  Thanx guys!


Happy Clustering,