Monday, May 25, 2009

Setting IP addresses through terminal (RHEL)

For some reason this is something that will just not stick in my head and I always have to go searching for it. The way you permanently set/change the ethx ip address is to edit the following file:

nano /etc/sysconfig/network-scripts/ifcfg-ethx

In this file you can set the ip address, gateway, netmask and ipv6 stuff.

To change the DNS addresses you must edit the following different file:

nano /etc/resolv.conf

Once you have made the changes you need to restart the network service to use the changes

service network restart

!!Remember all these commands need to be done as either root or through sudo!!

Friday, March 27, 2009

Sad news for Ubuntu on SunBlade 100's with Condor Users

I had about 20 Sunblade 100 units sitting around the lab and decided with my team to make a static cluster using them. Well the install of Ubuntu went pretty well using Server 8.10 and Server 7.10. Even loaded the Ubuntu-Gnome desktop on a couple of them just to see it. So with all going well I tryied to load the ever complicated Condor Project to tie them together. Well after trying multiple versions, based on debian, rehl, sparc, and eventually even compiling from source code I can say that Condor on a Sun with Ubuntu using the SPARC processor just will not work. Sorry guys.

We ended up loading Solaris 10 and loading Condor. If anybody does find a way please feel free to leave a comment but I doubt it happening any time soon.

Wednesday, December 10, 2008

Installing Condor in OSX 10.5

I found this process in a weird place on condor's site ... it was in the tutorials under Administration Tutorial. At the same time this worked. The only thing I did differently was to download the Condor package for Intel Mac 10.4. Sorry but you will have to do all of this from the terminal window. Beyond that everything else worked. So here is my "workflow" lol...

  1. Downloaded Condor for Intel Mac 10.4 (In my case I used 7.0.5).
  2. Opened terminal (Hard drive --> Applications --> Utilities --> Terminal)
  3. Logged in to my root account with "su" and then typed in my password (If you dont know your root password your boned lol ok seriously you need to either see your system administrator or try this out http://www.mac-forums.com/forums/os-x-operating-system/5331-how-do-i-reset-root-password.html but if your root account just isnt on check out this link http://support.apple.com/kb/HT1528)
  4. Type "useradd condor" and press [Enter]
  5. Type "chmod a+rx ~condor" and press [Enter]
  6. Type "cd /" and press [Enter]
  7. Type "mkdir condor" and press [Enter]
  8. Type "cd /condor" and press [Enter]
  9. Type "cp /Users/jeaimepowell/Desktop/condor-7.0.5-MacOSX10.4-x86-dynamic.tar.gz /condor/" and press [Enter]
  10. Type "tar -xzf condor-7.0.5-MacOSX10.4-x86-dynamic.tar.gz " and press [Enter]
  11. Type "cd condor-7.0.5" and press [Enter]
  12. Type "./condor_configure --install --install-dir=/condor/condor \ --local-dir=/condor/condor/var --owner=condor
    " and press [Enter] (I got some errors but it installed)
  13. Type "ln -s /condor/condor/etc/condor_config ~condor/" and press [Enter]
  14. Type "PATH=$PATH:/condor/condor/bin/:/condor/condor/sbin/" and press [Enter]
  15. Type "nano /condor/condor/etc/condor_config" and press [Enter]
  16. Look through the file in Part 2 until you find "HOSTALLOW_WRITE =" and remover the text after it and just have a "*"
  17. Press [ctrl] [x] and press "Y" then hit [enter] twice
  18. Type "condor_master" and press [Enter]
  19. Type "ps -ef |grep condor" and press [Enter] (you should see a bunch of condor processes running
  20. After a half a minute or so you should be able to type "condor_status" and actually see your machine on the node.
  21. You are done!

Installing Condor the easy-easy way


So I have to be honest here... the traditional install of condor using the "Newer Unix Install" has kicked my butt. I ran into permission issues, directory location issues,environmental variable issues, hostname issues and all other sorts problems I would rather forget. Well as a last ditch effort and kind of as a joke to myself I decided to install Fedora (FC10) and look in the package manager (In Gnome "System-->Administration-->Add/Remove Software) for Condor. To my complete shock it was there under "Condor:High Throughput Computing"!!! I checked it and it installed and get this...I typed "condor_status" in the terminal window and boom-bam it was working!! The main condor folder (release directory) is all over the place in the system but the bastard just works. So just to lay it out in a non ubber geek way:
  1. Install Fedora (I used FC10 but I dont know if it is in other cores)
  2. Open "System-->Administration-->Add/Remove Software"
  3. Search for Condor (type it in the search box and hit enter)
  4. Put a check next to "Condor:High Throughput Computing" (I checked the Condor headers one too but I dont know if it is necessary)
  5. Click "Apply" (In my case it also added a few other dependencies automagically so dont be worried if you see that)
  6. When it is done open a terminal window (Applications --> System Tools --> Terminal)
  7. Type "condor_status" and you should see a status with one node.
  8. You are done!!
So to fellow grad students and techs trying to get Condor running I hope this helps!! And just to put it out there, the all powerful condor_config file is located in the /etc/condor folder.

Good Luck!!

Wednesday, September 3, 2008

Installing Canon i860 in Fedora Core 9 (gutenprint)

Here is the easiest way I have found to get the driver in there.

  1. Goto Systen --> Administration --> Add/Remove Software
  2. In the search box type "gutenprint" and click [Find]
  3. Add a check mark next to "Cups drivers for Canon, Epson, HP and compatible printers"
  4. Click "Apply"
  5. Then goto System --> Administration --> Printing
  6. Click "New"
  7. Select the "i860 USB #1" and click [Forward] (this was in my case it may be a different number for you)
  8. Select "Canon" and click [Forward]
  9. The "i860" model and "Canon i860 - CUPS+Gutenprint v.5.0.2 ...] should be selected and click [Forward]
  10. You can change the name if you want but i just left it as "i860" and clicked [Apply]
  11. Once the install is complete I would test the printer by selecting it from the list and clicking [Print Test Page]
And you are done!!

No sound from flash (Youtube) in Fedora Core 9

No I am not the one who came up with this fix. The credit goes to /crisis website.

  1. Open a terminal window
  2. Type
    su - 
    and enter your root password
  3. Type
     yum install libflashsupport
  4. When it is done you should be good to go.