PDA

View Full Version : [ubuntu] .login



aas452
February 13th, 2009, 09:16 PM
Anyone know where the .login file lives???

halitech
February 13th, 2009, 09:22 PM
no such file on my system. what are you trying to do?

aas452
February 13th, 2009, 09:37 PM
I am installing Houdini and the program needs to initialize the shells environment. Here are the install documentation from SideFX.


Linux:

1. Open a terminal

2. Change to the root user if installing Houdini outside of your home directory
* If you are installing the License Server, you must install the software as the root user because the License Server files are written to /usr/lib/sesi.
* If you are not installing the License Server, the software can be installed as a non-root user

3. Unpack the downloaded archive
* tar.gz archive (type: tar -xvzf file.tar.gz)

Example:
tar -xvzf houdini-9.1.124-linux_x86_64_gcc4.1.tar.gz
This should create a directory called houdini-9.1.124-linux_x86_64_gcc4.1/

* 7z archive (type: 7z x file.7z)

Example:
7z x houdini-9.1.124-linux_x86_64_gcc4.1.7z
This should create a directory called houdini-9.1.124-linux_x86_64_gcc4.1/

4. Run the houdini.install script:
* cd houdini-9.1.124-linux_x86_64_gcc4.1/
* ./houdini.install
* You can also double click on the houdini.install file with your mouse. It will run the installer in a terminal.

5. Follow the instructions in the installer. The default installation wants to place the software in /opt/hfs9.1.124. If installing as a non-root user, you must change this default installation path. Example: /home/janedoe/hfs9.1.124

6. You should now be able to access Houdini in 2 ways:
* Applications->Side Effects Software->Houdini 9.1.124
* In a terminal(shell) type:

cd ; (Example: cd /opt/hfs9.1.124)
source houdini_setup;
type houdini (or hescape to start Escape) at the command prompt

The command "source houdini_setup" initializes the current shell's environment to run Houdini. You may want to add the above line to your .login file. Refer to the contents of the houdini_setup script for more details.

halitech
February 13th, 2009, 09:42 PM
ok, sounds like pretty generic install instructions. I think you are looking for rc.local to have it start as a script but I've never played around with it so not sure.

BDNiner
February 13th, 2009, 09:46 PM
Did you read the contents of Houdini_setup script?

aas452
February 13th, 2009, 09:51 PM
Here what the script reads




#
# Environment setup script for Houdini.
#
# To use this script you should "cd" to the hfs directory where this
# script is located and "source" it into your shell or from your
# .login script.
#
# Note that this script modifies your search path by inserting the
# Houdini bin directory at the beginning. It also explicitly sets
# the environment variable LD_LIBRARY_PATH which is used to
# search for runtime libraries.
#
# To run the script in quiet mode, specify the "-q" option on the
# command line.
#
test ! -z "$tcsh" && source houdini_setup_csh || source houdini_setup_bash

Terl
February 13th, 2009, 10:13 PM
Have you tried adding the command to System/Preferences/Sessions? It seems like that should do it for you.

itendo
February 13th, 2009, 10:15 PM
did you try
find -.login from the terminal?

aas452
February 13th, 2009, 10:35 PM
Tried both searching for a .login file and then tried to include the command in System/Preferences/Sessions but no luck.

Is there anything equvilant to the .login file.

Here is the outcome of the shell when I manually enter the code in the Terminal



@VOXEL:~$ houdini
bash: houdini: command not found
@VOXEL:~$ cd /opt/hfs9.5.350/
@VOXEL:/opt/hfs9.5.350$ ls
bin houdini_setup hsvg Readme.txt
dsolib houdini_setup_bash installDesktopItems.py toolkit
houdini houdini_setup_csh mozilla
houdini_logo.png houdini.uninstall python
@VOXEL:/opt/hfs9.5.350$ source houdini_setup
The Houdini 9.5.350 environment has been initialized.
@VOXEL:/opt/hfs9.5.350$ houdini
@VOXEL:/opt/hfs9.5.350$


Houdini then starts up

BDNiner
February 13th, 2009, 10:35 PM
From what i understand that the file is trying to tell you is to add the path to the hfs directory to your environment variables so that you don't have to type in the full path to the script to lauch the script. I would check the man pages for bash since the file could be namesd several things in Ubuntu. I believe on my system it is name .bash_login

BDNiner
February 13th, 2009, 10:37 PM
Tried both searching for a .login file and then tried to include the command in System/Preferences/Sessions but no luck.

Is there anything equvilant to the .login file.

Here is the outcome of the shell when I manually enter the code in the Terminal



@VOXEL:~$ houdini
bash: houdini: command not found
@VOXEL:~$ cd /opt/hfs9.5.350/
@VOXEL:/opt/hfs9.5.350$ ls
bin houdini_setup hsvg Readme.txt
dsolib houdini_setup_bash installDesktopItems.py toolkit
houdini houdini_setup_csh mozilla
houdini_logo.png houdini.uninstall python
@VOXEL:/opt/hfs9.5.350$ source houdini_setup
The Houdini 9.5.350 environment has been initialized.
@VOXEL:/opt/hfs9.5.350$ houdini
@VOXEL:/opt/hfs9.5.350$


Houdini then starts up

you are doing it correctly here, you "cd" to the directory that contains the file houdini to run it. I don't know what output the command houdini is supposed to show but it seems like it ran with no errors. Editing the .bash_profile on my computer to add the path to the houdini executable would allow me to run the command no matter what directory i was in.

aas452
February 13th, 2009, 10:40 PM
Hey BDNiner

What folder did you find your file in?? boot??

BDNiner
February 13th, 2009, 10:47 PM
I believe it is in my home folder. In fact i am incorrect, the file is actually named .bashrc and it is supposed to be in your home folder. If it is not there the you can create it and then write this text inside the file


export PATH=$PATH:/opt/hfs9.5.350

you should then be able to run the executable from any directory.

aas452
February 13th, 2009, 11:19 PM
That worked bash.bashrc was the file I changed,

I just changed the last line of the code to read cd /;

so I could go back to root and not default to /opt

Question, does this no source the houdini_setup upon each instance of a terminal??

Thanks for the help

BDNiner
February 13th, 2009, 11:55 PM
I don't understand the question. The command i gave you adds the path to your computer's list of locations that contain executable files. That way you don't have to browse to that directory to run any programs that are in it. I don't know anything about houdini and how it operates.

I am guessing that once you run houdini_setup then the service is running and it should be valid for that entire session until you log out.