This is an application that frequently gets updated, and has some customizations in order for certain things to work properly on the farm. I’ll try to go through the process here.
While parts of this guide may seem aimed at novices, there are a few details that are necessary, so try not to skim too much.
These instructions have been specifically written for an install on the base image, to be pushed out by imaging.
1.) Get new version
Speak with Tom Davis, Ron Bernard and Dan Hernandez to decide what version is appropriate, and so that Tom knows what version to roll out to his dedicated nodes.
While logged into SideFX, goto Support -> Downloads. The first entry should have a list of distributions, look for the one with Debian/Ubuntu and 64bit. Download this tar.gz
2.) Unpack and Install
Locate the package you’ve downloaded and make sure you’re logged in as a local admin, do
tar xvzf houdini.x.x.xxx-linux_x86_64_gcc4.1.tar.gz
This will create a directory that is the same name as the archive, with some stuff in it. Go into that directory.
sudo ./houdini.install
[enter your password]
Hit the spacebar about 3 times, then type yes and enter, then type y and enter.
Now you shuold be at a HOUDINI 9.x.xxx INSTALLATION screen. Type 4 (or whatever is the License Server), and then enter, to disable installation of a local license server. Now just type F and enter.
Now we need to tell it where to install it, we have a structure setup already in /usr. In /usr there is a symlink called hfs9.5 that points to whatever version is the default. So we don’t have to keep updating version numbers in /etc/profile everytime, and so we can still have multiple versions easily.
So for this simply enter /usr/hfs9.x.xxx with the x’s obviously corresponding to the current version. For example /usr/hfs9.5.379, press enter and then Y and enter two more times.
3.) Link it up and retain previous versions
Now that we have it installed, we need to link it up, and probably write a short script to allow us to access the older version. So let’s do it!
cd /usr
sudo rm hfs9.5
sudo ln -s hfs9.5.xxx hfs9.5
Okay! Now you should be able to just type houdini and it should load the newer version. This is fine for now.
Next we need to make sure students can easily access the older versions, as houdini has been known to make significant changes from version to version.
cd /usr/local/bin
This is just one of the local directories that bash will attempt to locate/launch a program/script when a name is typed in the terminal, for example if you had a script in here called davelovesyou, and you typed davelovesyou, it would launch whatever script you had in here, regardless of your current working directory.
There should already be at least one script in here you can use as reference (houdini91), but we’ll build one real quick.
So first create your file you will be working with, I’ll just use 95303 as an example.
sudo touch houdini95303 (or whatever the version is, without decimals)
This will create an empty file
sudo chmod +x houdini95303 (this makes the script executable)
Now let’s go into nano, and enter in the following:
#!/bin/bash
cd /usr/hfs9.5.303
source houdini_setup_bash
/usr/hfs9.5.303/bin/houdini
cd -
Now just press CTRL+X type Y and then press Enter to save this script.
Try typing houdini95303 from anywhere and if it launches you’re good to go!
3.) Get it ready for Render Farm
Tom will probably take care of this. But if he doesn’t, hrender needs a few modifications, this script typically doesn’t change, and all of the things we fix, may be fixed by SideFX in the future. Either way, there is a copy of the modified hrender script in \\sfdm-home\proj\apps\linux\houdini. Simply copy this to replace the hrender in /usr/hfs9.5/bin/hrender.
Now all you have to do is create all the icons for it, but I’ll save that for the user profile modification how-to.