Archive for March, 2008

Getting the house in order before loading Opencascade

Monday, March 31st, 2008

This is my 3’rd time that I’ve loaded the OS and started from scratch. This sort of reminds me of the movie the Matrix. Anyhow…. I’ve taken risks to see what would happen and basically couldn’t get out of the deep hole I dug. This is not a big deal when your doing this for fun but would not be fun under the gun on the clock.
Since I wiped the drive and haven’t downloaded OCC yet, I don’t have the installation instructions in front of me at the moment. As I recall they really screwed me up the last time around. I think the main thing was that the scripts that where called out required shells different from the default unbuntu bash (the GNU Bourne-Again Shell). The instructions called out to execute [ ] which requires C-shell to execute.
You’ll need to install the C-shell. To open a terminal session select Application ▸ Accessories ▸Terminal
Enter the follow:
sudo apt-get install csh
you’ll get a prompt for a password and some blah blah stuff. Answer as appriopriate. (I noticed something weird here. I tried to cut and past from my previous post into the terminal. Keystroking CTRL-C from firefox works but CTRL-V to the Terminal win does not. But, Edit▸Paste from the terminal header does work. Go figure. )
Next step
Install Sun Java 6
sudo apt-get install sun-java6-jdk
I’m on the low end of ATT dsl, so this is going to take a few minutes.
(I was screwing around listen to Nelson Manela video that comes with Ubuntu and you seem to get a license stuff at the end. So I hope I didn’t screw something up when I was bouncing between windows. If you highlight the ok line, it will let you scroll the agreement. Yikes there seems no easy way to get out of this..)
@#$@^ I just googled the command script and found this:
Darn.. Darn.. Darn.. I don’t know if I did this because I was watching Nelson or if something goofy happen… I did a terminal reset and the screen when bizarre…. It seems like others have had issues also from the above link.. I need to investigate this further tomorrow.


How to Install Open Cascade in Ubuntu from a downloaded tgz file.

Sunday, March 30th, 2008

Kind of yucky out today. To messy to do yard work 😉 I’m trying to convince the family to go for a walk but doesn’t look like it’s going to happen… Just me and the dogs. I’m doing some re-thinking about the end goal… If I wan’t to get drawexe working first, I shouldn’t have to worry about gnu C++ compiler at this time. I guess there’s a small movement to bust up the Opencascade library into smaller components. I’m not sure what the rational is, but it seems to make sense to a bunch of people. They’re looking for testers…. I’m thinking that perhaps, I might want to try on a clean install on the next version of Ubuntu, along with the latest version of the compiler. In the mean time, I think I found magic set of instructions that should get drawexec to fire up. Apparently, someone from this sight found some on a french site. (On the remote chance that some deletes the post. I copied and clean it up below. Something for me to try and see if works when I get back from the walk.

Here’s the link:
which got the info the french ubuntu site:
(1) Install c shell
sudo apt-get install csh
(2) Install Sun Java 6
sudo apt-get install sun-java6-jdk
(3) Make sure, Sun Java 6 is used:
sudo update-alternatives –config java
Set as default the one entry that contains this string:
(4) Untar the tar.gz file
tar xfvz /path/to/file.tar.gz
(5) Run the installer
sudo java -cp /path/to/untarred/Linux/setup.jar run
6) Getting the test suite to run:
6.1)setting up the enviroment variables
The test suite was meant to be started with two commands:
. /opt/OpenCASCADE6.2.0/ros/env.ksh #set up the environment variables
7.1) Linking the tcl and Tk libraries
After this it was searching for tcl and tk libraries, so I had to create some symbolic links:
sudo ln -s /usr/lib/ /usr/lib/
sudo ln -s /usr/lib/ /usr/lib/
Adjust the version and the path to which is valid on your system.

Installing gnu C++ compiler in Ubuntu Linux for Open Cascade OCC

Saturday, March 29th, 2008

Spring has just about sprung…. Got home tonight and worked a little on the back yard with the family….. While dumping out the thawed compost in the garden, and moving the compost bin, I was thinking…. Wouldn’t it be cool to have a small rotary composter, powered by a little direct drive wind turbine with a huge honking reduction 1000:1 or something. Boss lady tells me, I got to get the rocks moved first 🙁
Years ago. I was an Application Engineer for gearbox company who worked on a project on a gear reduction unite for a converted cement kiln used on a Rotary Digester. My understanding was the technology was pioneered by some german brewmaster and the thing was going to used in Dolly Parton’s Dollywood. Don’t know if Dolly still has her digester but here’s so info on the topic: Rotary Digesters.
Ok.. one more comment on Rotary kilns and we’re going back on topic. The gear boxes that drive these things typically have huge reductions, because the rotating drum rotates heavy loads very slowly. The thing to watch out for is if there is a imbalance that causes the drive to be back driven. Typically these drives (if I remember correctly) have to laid out with some type of centrifugal brake that keeps the motor from over speeding and blowing up…
Anyway back to install the GNU C++ compiler. In my last post, I talked about the synaptic package manager for installing games. So if you have no idea what I’m talking about, go back a couple of days in my blog posts.
When I first searched Synaptic, nothing came up when I searched for C++. It took me a while figure out the trick is you need to search for G++ not C++. I suppose this sense to someone somewhere. You’ll notice that there a bunch of versions of the compiler. Rather than just picking the latest version, I thought I do a little research here:
Open cascade system requirements
Oh great… looks like none gcc versions match Synaptic (if I’m reading this correctly).
Time to do a little more research here. This looks promising:
Installing Opencascade on Debian Linux This link points to:
Compilation on Fedora Core 5.0 (Not sure about version but this looks critical to fix system once OCC installed.

Ok… This looks promising. There’s a MIT guy named Adam Powell who seems to have his game on… Some links to investigate:

OpenCASCADE .deb package: call for testing!
OpenCASCADE .deb packages
Ok…. No compiler install tonight… Time for bed.

Getting my games back.

Thursday, March 27th, 2008

Hm.. I mulling over the latest American Idol results.

I’m not suprised that Chikeze got the boot. I was suprised that Syesha was in the bottom 3. Technique was superb (according to my wife whose studied voice).. Gut feel Kristy is next.

Anyway trying to stick to the original outline of what I’m trying to accomplish. Ubuntu provides a utility to add/remove programs know as the Synaptic Package Manager. To fire up the application select System=>Administration=>Synaptic Package Manager . You’ll be prompted for your password. If this is the first time you fire it up you’ll get a little intro. I’m interested in loading up a game called maelstrom

So… I click the search, enter maelstrom. Click on the box to the left of maelstrom, select “Mark for Installation”, then Mark. Then click the checkbox that’s called apply and then click apply again. (If something doesn’t work here make sure your connected (see yesterdays post).

Select Application=>Games=>Maelstrom if your in the mood to destroy some Asteroids.

Next step loading up the gnu C++ compiler.

Installing Ubuntu Linux

Thursday, March 27th, 2008

Ok…. I’m am not an expert in this stuff, although I’m getting better every day. When I first got started on this Ubuntu kick, a friend at work showed me a 10 ten list written by a Linux geek on why he liked Linux. The one that stuck in my mind was that you’re able to surf the net and install Linux on the same PC simultaneously. Maybe I’m weird, but I just think that’s just plain cool. It does work since I’m doing this while I’m typing this.

I started out slowly and I got myself a book out of the library called “Ubuntu for the Non Geek” by Rickford Grant. (I suppose If I really had my game on here I’d have a Amazon link for you to purchase this book and have me make commission… (All in good time Mike)). I followed the book step by step and I gave me a good overview of what you can do with Ubuntu without getting into too much techobabble.

The version of the book, had the Feisty Fawn Ubuntu 7.04 install disk included (although a friend with broadband burned me an install disk with Gutsy Gibbon which I’ve been currently using. Feisty Fawn had install issues but Gusty just fired up(on my machine anyway.)

I’m not going to get into too deep a discussion on how to install the operating system, but I just cover the basics.

  • Stick install boot disk in computer.
  • Reboot.
  • Select option 1) Start or install.
  • Connect to the net (see below)
    Yesterday night while I was watching American Idol (go David Cook), I tried to reloading the operation system without connecting to the net and I got some weird security messages that I never got before. (So I’m trying this again) I think the install disk most phone home or something…
    You’ll notice a computer monitor icon (header to the right). Assuming your running running a wired connection to a router, just click wired network and you should be able to connect to net by clicking on the Firefox Icon. If you’re totally new to Ubuntu, this might take you a little while to figure. Well it did me anyway..
  • Click the “install” icon (it looks like a CD rom player in the upper left corner of the desktop.

Here goes…. I guess I should save this before I keep going.

Your going to get a bunch of time zone, keyboard questions… Answer as appropriate…. The next major question you’ll need to deal with is partitioning the hard drive. (For myself, I have a bunch of Pcs hooked up to a KVM switch, which eliminated the need for a dual boot system) So…. what worked for me, I manually slide the partition size to 100%(I’m not sure I had to do that) and then Guided use entire disk.

After that you’ll get the “who are you” screen… Fill it in along with your passwords. Proceed with install. (make sure you remember your password, you tend to use it alot in Ubuntu)

Ok…. this is going to take a while…. Need to my library website and try to renew my Ubuntu for the Non-geek book… again… Darn…. Apparently I can’t renew it 4 times…Time for a quick trip to the library. Hopefully can get this done, before American Idol results starts…

2008-03-30 After you get the operating system loaded you probably will want to check for updates.  From the upper panel select System ▸ Administration ▸ Update Manager and press Check.
You can control the frequency of updates via: System ▸ Administration ▸ Software Sources, and then Internet Updates.

Exporting Bookmarks in Firefox/Ms Explorer

Tuesday, March 25th, 2008

Ok…. so I’ve been experimenting with this exporting book marks stuff inFirefox and Explorer.

Exporting  bookmarks in Firefox:=>Organize Book Marks=> File=>Export. This seems straight forward enough. I guess for know I’m just going to email it to myself prior to the drive reformat.

Exporting bookmarks in Explorer:=>File =>Import and Export (this will launch the wizard from there

I think that over the long hall it would be cool to come up with some type of script which would part the file, test the link and upload it in a Mysql database for publishing…. I’m thinking this might be a mechaperl project… Oh great another one for the to do list… Yikes…. time to get to the paying job…

Prepping for the Drive Wipe and Reformat

Saturday, March 22nd, 2008

Having a wonderful morning here. The crew is still asleep and I’m playing around with this blog. Yesterday, we had the wife’s family over for our Easter celebration and a good time was had by all.

In my attempts to get the Open Cascade Bottle demo project working, I wound up modifying some shell scripts which in hind-site probably wasn’t the thing to do.

In my experiments, I made so many tweaks its been sort hard to get back to a baseline. For some reason I can neither re-install or un-install the OCC library… So…. time to start from scratch and wipe the drive and re-install Ubuntu. Yecch!!! And to think, I got the wallpaper setup just the way I like it. I’ve done this a couple of times already and it gets more painful each time I do it (since I’m further and further along). I’m thinking this is probably going to me the steps I’m going to need to take.

I guess should figure how to determine current version of ubuntu on my PC

System->Administration->System Monitor tells me that I’m at “7.10”

  1. Export my Firefox book marks and email them to myself or link them into the website.
  2. Complete reinstall of Ubuntu Gusty Gibbon 7.10 (although Hardy Heron Ubuntu 8.04 is less than a month away.
  3. Get my cool back ground back as well a my fungames (Maelstrom,Nibbles and Mines are the ones my 5 year old and I like to play)
  4. Install gnu C++ compiler (which if I recall is named g++ (go figure)
  5. Install Anjuta IDE (I’m may rethink this one, this was a major PIA to get installed, and I wasn’t that impressed with the IDE. I’m really used to and spoiled by Microsofts VB6 IDE.
  6. Download Open cascade
  7. Install Open cascade.
  8. Get Drawexe working. (This is the point that this project died). I think the problem is with . I found a really good site that dealt with that problem. @#% I know I bookmarked it… I just can find it.
  9. Get OCC bottle project running.
  10. Pat self on back.

Getting started here.

Monday, March 17th, 2008

Ok so. This is my first post to my blog… I guess we’ll see if this works.