Friday, November 23, 2007
What is the deal with Fedora Core 8??
So I'm think all will be well just like it was with Ubuntu as far as general system stability. I was wrong as hell. I had constant lock-ups. Programs froze all the time. I'm not even talking about 3rd party apps which were a joke to get running, I mean built in software like Firefox and Compiz.
For you hard core nuts out there I did all of the the updates with the same results, so back I went to Ubuntu 7.10 and I have had nothing but smooth sailing.
I am going to try CentOS because I have to have Condor but as for my primary system and all of the Macs in my lab, Fedora is out.
Tuesday, August 21, 2007
Dual-booting -- Setting the default OS in Grub (Unbutu)
sudo gedit /boot/grub/menu.lst
Find the following section in the file:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
The important line is the last one. You will need to change that number 0 to match the Windows boot section. Typically it's always going to be 6 on a default dual-boot configuration. Change this value to 6, and then save and reboot your machine. You should go into Windows instead of Ubuntu automatically. (To figure out what number the OS you want to install is simply count from 0 down the menu to find the number of the wanted OS. In my case it was 6)
Special thanks to: http://www.howtogeek.com/howto/ubuntu/set-windows-as-default-os-when-dual-booting-ubuntu/
Friday, August 17, 2007
[Mega Linux Nerd] Shell App -- Cygwin
Wednesday, August 15, 2007
Package Files (.rpm and .deb)
In Windows we used exe and msi files to install software. There was a certain comfort there when we simply double-clicked a downloaded file to begin an install. Well--Linux has the same thing believe it or not. The two most common are .rpm and .deb. There is a catch though. Certain versions of Linux can only use certain package files natively. Rpm is generally linked to RedHat and its spin-offs (Fedora, CentOS ....). The deb packages are generally linked to Debian (go figure it makes sense lol), and its spin-offs (Ubuntu, Knoppix ...). With these packages in the correct Linux version, the installation of software is a breeze.
What if you want to install a kick but app that is in the wrong package for the Linux OS you are in?? In my case I was in Ubuntu, and there was a game that was a rpm. What to do...what to do?? Well thanks to Larry I found out about a program called Alien. Now the cool thing is Alien is probably in your Synaptic Package manager already. But if not you can get it from the this link. Now I am going to warn you that Alien is command line driven. I know I'm sorry but you have use this tool from the console. Once you have installed it and opened the console (terminal for you Fedora users) you can type:
/usr/bin/alien -d package.rpm
or if you want to go to rpm
/usr/bin/alien --to-rpm package.deb
Once it is complete you can double click on the new package and boom-bam your program will install.
Now I also want to throw in there that Alien can convert to a bunch of other packages like Stampede .slp, and Slackware .tgz file formats. Alien can also handle Solaris' .pkg.
So there you go ... happy hunt-and-pecking!!
Monday, July 30, 2007
Condor Reconfigure
This pages purpose is to show how to reconfigure a condor pool if the master/server units IP address changes. (Note: This has happened in our case because 1: The server did not have a static IP address. 2:The direct IP address was being used instead of a domain name in condor_config CONDOR_HOST.)
The Condor Master (Fedora RC7 Linux with Gnome)
First a couple quick questions answered.
1. Condor is located in two main directories
Actual program scripts
/usr/local/condor/sbin
Condor configuration
/etc/condor
2. No the condor master does not run auto-magically when you start the system
--well at least not in Linux
Now here is what I had to do:
1. open a terminal window and get the new IP address of the machine
/sbin/./ifconfig
2. I had to edit the condor_config file to enter in the new IP address (In case you didn't know it the condor_config file is for both the master's config and the workers. (Note: if you are not root, you may have to type su or sudo prior to running this command)
gedit /etc/condor_config
change the CONDOR_HOST under Part 1 then save the config. (Note: If you cannot save, you may need to open the file as root by doing su or sudo.)
3. Now you have to start the master. (Note: If you already have the master running you may just be able to type ./condor_reconfigure)
cd /usr/local/condor/sbin
./condor_master
As long as you don't see any errors you should be good to go. 4. Check to make sure the condor is running by typing
condor_status
Assuming all went well you should get something like the following:
[condor@ecsulab222-16 ~]$ condor_status
Name OpSys Arch State Activity LoadAv Mem ActvtyTime
10-24-5-83.my LINUX INTEL Unclaimed Idle 0.000 883 0+02:15:04
Total Owner Claimed Unclaimed Matched Preempting Backfill
INTEL/LINUX 1 0 0 1 0 0 0
Total 1 0 0 1 0 0 0
Now for the workers
Condor Workers (MAC OS X, Linux, Windows XP)
Mac OS X and Linux (Note: Make sure you still have the IP address of the Condor Master)
1. Open a Terminal window and edit the condor_config file to change the CONDOR_HOST under Part 1 to the IP address of the Master
open /Users/condor/condor_config
Then save the file. (Note: If you cannot save, you may need to open the file as root by doing su then running the open command.)
2. You must start the master manually
cd /usr/local/condor/sbin/
./condor_master
3. Now you must force the master to take the reconfiguration
./condor_reconfig
4. After a minute or so as long as you haven't had any errors you can go back to the condor master and do a condor_status to look for the OS X machine.
[condor@ecsulab222-16 ~]$ condor_status
Name OpSys Arch State Activity LoadAv Mem ActvtyTime
10-24-5-83.my LINUX INTEL Unclaimed Idle 0.000 883 0+02:45:04
10-24-5-51.my OSX PPC Unclaimed Idle 0.010 128 0+00:09:49
Total Owner Claimed Unclaimed Matched Preempting Backfill
INTEL/LINUX 1 0 0 1 0 0 0
PPC/OSX 1 0 0 1 0 0 0
Total 2 0 0 2 0 0 0
Windows XP
1. Open the c:\condor\condor_config file. (Note: when you double click the icon and it asks what program to open in, I suggest NotePad.)
2. Change the CONDOR_HOST under Part 1 to the IP address of the Master.
3. Save the file. (Note: If you are unable to save, you may need to log in to an account with administrative privileges.)
4. Restart the computer.
5. After a minute or so once the computer has booted, and as long as you haven't had any errors, you can go back to the condor master and do a condor_status to look for the WINNT 51 machine.
[condor@ecsulab222-16 ~]$ condor_status
Name OpSys Arch State Activity LoadAv Mem ActvtyTime
10-24-5-122.m LINUX INTEL Unclaimed Idle 0.480 376[?????]
10-24-5-83.my LINUX INTEL Unclaimed Idle 0.000 883 0+02:45:04
10-24-5-51.my OSX PPC Unclaimed Idle 0.010 128 0+00:09:49
cerser1 WINNT51 INTEL Unclaimed Idle 0.000 511 0+00:09:39
cerser2 WINNT51 INTEL Unclaimed Idle 0.000 511 0+00:04:38
cerser3 WINNT51 INTEL Unclaimed Idle 0.000 511 0+00:04:38
cerser4 WINNT51 INTEL Unclaimed Idle 0.000 511 0+00:04:34
Total Owner Claimed Unclaimed Matched Preempting Backfill
INTEL/LINUX 2 0 0 2 0 0 0
INTEL/WINNT51 4 0 0 4 0 0 0
PPC/OSX 1 0 0 1 0 0 0
Total 7 0 0 7 0 0 0
Wednesday, July 25, 2007
SeaSpace (TeraScan) and CentOS
When I heard that I though oh crap, that is gonna take a while to get passed through the budget. Thankfully the agent from SeaSpace let me know that CentOS is a direct port from the RedHat kernel. The best part is that CentOS is free! I have downloaded the ISO and I will of course keep you apprised of how it goes.
Monday, July 23, 2007
Should I really be running Ubuntu??
Friday, July 20, 2007
I can't run "make" in Ubuntu
Basically Synaptic is a graphical version of apt-get which if you have run across...you will. Apt-get is a command line way to download and install programs in Linux from the command line (Red Hat also uses "yum"). Well the catch is that if any part of the program name has changed --say oh the version number, you may not be able to find the app.
Because Synaptic is visual you do do a simple search to visually pick what you need. (Note: If your flavor of Linux does not have synaptic you should be able to use the command apt-get update && apt-get install synaptic)
I said all that to say this. To install that elusive compiler program you can open Synaptic by
- Going to System > Administration > Synaptic Package Manger.
- Click on "Reload" to update the available packages.
- Click on the "Search" button.
- Type in "gcc" and press enter. (Note: gcc is a command line C/C++ compiler)
- Select all instances of "gcc" that appear
- Click "Apply" and the packages will be installed for you.
- Close Synaptic
- Run your "make install" command from the terminal window.
Special Note: Remember in Ubuntu you must add "sudo" to the front of "make" in the terminal window so the OS will not complain about permission issues.
Wednesday, July 18, 2007
Installing games in Ubuntu
Open a terminal window from "Applications --> Accessories"
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list
Once that is done you are supposedly able to type
sudo wine
Yeah well if during the install of the application you must say--change CDs you get the error "Cannot eject CD because application is using it". Umm yeah well that sucks. I thought I had it figured out with the "sudo wine eject" command but althogh the Cd ejected, the installation would not continue. As soon as I get this figured out I will tell yall all about it.
How to install Ubuntu (Feisty Fawn) in OS X using Parallels - a complete walkthrough
I found this on another persons site but the just did such an excellent job that I had to reprint it. The original site was: http://www.simplehelp.net/2007/04/27/how-to-install-ubuntu-feisty-fawn-in-os-x-using-parallels-a-complete-walkthrough/
How to install Ubuntu (Feisty Fawn) in OS X using Parallels - a complete walkthrough
This tutorial will take you every single step of the way through installing Ubuntu 7.04 (Feisty Fawn) using Parallels for OS X. In other words, even your parents should be able to follow along.
1. Who this tutorial is for
2. Background
3. Setting up Parallels for Ubuntu
4. Running Ubuntu for the first time
5. Tidying up, adding sound and increasing the screen resolution
This tutorial is for anyone with an Intel based Mac who is curious about Linux - specifically Ubuntu, and has about an hour to kill (not including the time it takes to download Ubuntu).
The steps and screenshots used for this tutorial are specific to Parallels Build 3188 running on a MacBook Pro w/ OS X (10.4.9). With that said, they will be nearly identical if you have a Mac Pro, Mac Mini, MacBook or any other Intel based Apple Mac.
Ubuntu is a free, open source Linux-based operating system with a clear focus on the user and usability (it should �Just Work��). When you finish your Ubuntu installation your system is immediately usable. On the desktop you have a full set of business productivity applications, internet applications, drawing and graphics applications, and games. For more information on Ubuntu, visit http://www.ubuntu.com/ubuntu.
As you may have noticed, here at Simplehelp we often recommend software, and 90-something percent of the time that software is free. Parallels isn�t free, but it really is worth the cost. It will allow you to run other operating systems (like Ubuntu) on your Mac - without having to worry about any of your OS X settings, documents or files being accidentally deleted. And if you don�t like Ubuntu you can trash it and carry on like it never happened.
One other (major) benefit of using Parallels is that you run the other operating system (in this case Ubuntu) while OS X is running. You don�t need to restart your computer each time you want to switch from OS X to Ubuntu and vice-versa.
Read more about Parallels here: http://www.parallels.com/en/products/desktop/.
This tutorial would not have been made possible (or at least it would have taken me a lot longer) without the help of Kent Bye.
Before you start - make sure to download Ubuntu from http://www.ubuntu.com/download. The file you�ll want to download (as of 4/27/07) is ubuntu-7.04-desktop-i386.iso. Also, make sure Parallels Desktop is installed.
Setting up Parallels for Ubuntu
- If this is the first time you�re using Parallels, the Wizard will launch automatically. If it�s not the first time you�ve used Parallels, launch the Wizard by selecting New…
- Select Custom as the type of installation mode, and then Next to continue.
- Choose Solaris as the OS Type: and Other Solaris as the OS Version:. No, that’s not a mistake. At the time of this writing, Parallels build 3188 has some issues when it comes to installing Ubuntu 7.04. Selecting Solaris as the OS will help you get around those issues, and in a later step you’ll be changing this setting anyway. Click Next to continue.
- Here you�ll need to select the amount of RAM that will be dedicated to the guest operating system (Ubuntu). If your Mac has 512MB of RAM, you�ll want to select 256MB or a bit less. Below 128MB will make Ubuntu a bit slow. Because I have 2GB in my MacBook Pro, I�ve opted to dedicate 768MB to Ubuntu - and both OS X and Ubuntu run very quickly. After you�ve selected an amount, click Next to continue. NOTE: some users (scroll way down to see comments) have reported problems when opting for more than 512MB of RAM. You may want to set it to 512 or less now - you can always increase it later.
- Select Create a new hard disk image and click Next to continue.
- Now you�ll need to set the size of the �hard drive� that Ubuntu will use. It might be possible to select less than a gigabyte (1024) and still install Ubuntu, but there would be very little room left for anything else. I would suggest 2 or more gigs (2048) at a minimum.
Review the differences between Expanding and Plain as a disk format. Parallels suggests using Expanding, and since I�ve only noticed a small difference in performance between the two, I would suggest it as well. Either way, don�t stress out over this decision too much - you can convert from one format to the other, using Parallels Image Tool, if you ever need to. Click Next when you�re ready to continue.
- Select Shared Networking and then click Next.
- Give your virtual machine a name - pretty much anything is fine, so go with something descriptive. You may also want to click the More Options link if you want to change the default location for the virtual machine files (generally not necessary). You can also remove the check from the box labeled Create icon on Desktop if you like to keep an un-cluttered desktop. Once again, click Next.
- Click More Options and select ISO image. Then click the Choose… button and navigate to your Ubuntu .iso file (ubuntu-7.04-desktop-i386.iso). Make sure Start Other Solaris installation is checked, and then click Finish.
Running Ubuntu for the first time
- Ubuntu will now boot for the first time. When you’re presented with the boot: prompt, enter in the following: live vga=790 and then hit ENTER (on your keyboard).
- Watch the pretty line…
- And here you are. Because the .iso file you downloaded is a “Live” image, you can actually play around with Ubuntu right now. You won’t have sound (we’ll fix this later) and you probably won’t be connected to the Internet (again, we’ll fix it later) so lets just get on with the installation. Double-click the Install icon on your Ubuntu desktop.
- Select your language of choice and then click the Forward button.
- Choose your location from the drop-down list, and then click Forward.
- Select your keyboard layout, and you guessed it, click Forward.
- Leave the default options selected (Guided and SCSI1 and then click Forward.
- Nothing to import, so click Forward
- Enter your Name, the name you wish to use to login, a password and whatever you want to call your “Ubuntu computer” in the spaces provided. Once again, click Forward.
- And now finally, click the Install button.
- Go get a cup of coffee or your beverage of choice. This can take a while.
- When the installation is complete, choose Restart now.
Don’t be at all surprised if Ubuntu doesn’t actually shut down properly. I’ve actually yet to have it restart on it’s own, it always ‘hangs’ at a blank black screen. If this happens to you, use the Stop Virtual Machine button in the upper-right corner of Parallels. The red square one.
Update: a number of folks have noted that they get ’stuck’ at this stage, particularly during hardware detection. Yesterday, while installing Ubuntu on a friends MacBook Pro, I encountered the same error - it hangs at “piix Intel 82801BA IDE”. The solution, in my case, was to power off the virtual machine (the red square icon in the right column of Parallels Desktop), and power it back on (the green arrow). The 2nd time I tried to install Ubuntu, it went right through with no problems. I made no changes to any of the configurations (above steps), I simply “tried again” - and it worked.
- Back at the Parallels configuration window for your Ubuntu machine, click the Configuration “link”.
- Now it’s time to set things straight. Make sure that Options is selected from the Resource list in the left side of the window. On the right side, change your OS Type: from Solaris to Linux and the OS Version: from Other Solaris to Other Linux kernel 2.6.
- Select CD/DVD-ROM 1 from the Resource list, and then change the Emulation from Use image file to Use CD/DVD-ROM.
Then click the Add… button in the lower left corner.
- Select Sound and then click Next
- Leave the defaults selected, and then click Finish.
- Back at your Ubuntu configuration window, click OK.
- Alright, it’s go time. Start up Ubuntu by click the Start Virtual Machine button (the green arrow in the right column).
- Don’t be at all surprised or alarmed if you see an error message (ACPI: Unable to locate RSDP) flash on your screen. It’s a known issue.
- Again, do not be the least bit surprised if you find yourself staring at a blank, black window. Just wait a few more seconds..
- … and you’ll get to the login window! Enter your user name in the space provided and hit enter (on your keyboard).
- Enter your password and again click enter.
- That’s it - you’re done! Well almost. Select the Internet status icon in the upper-right corner of your Ubuntu desktop, and choose Wired Network. Assuming your Mac is online, Ubuntu will now be connected to the Internet as well. Have fun! If you want to increase Ubuntu’s screen resolution, please see this post.
Monday, July 16, 2007
Burning the Ubuntu ISO in Mac OS X
- Insert a blank CD-R or DVD (Note: if you have downloaded a DVD ISO image file you must have a DVD Burner to burn it to . A regular CD-R/RW drive will not burn a DVD image or auto-magically split it up for you.)
- Go to "Hard drive --> Applications --> Utilities --> Disc Utility"
- On the menu bar select "Images" and then "Open"
- In the browse window, select the ISO image you downloaded.
- Click the mounted image in the left frame and then click the "Burn" icon in the left corner.
- Once the CD is burner, close "Disc Utility"