CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Installation

problem with User configuration

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 11, 2010, 14:47
Default problem with User configuration
Join Date: Feb 2010
Location: Los Angeles
Posts: 65
Rep Power: 9
vetnav is on a distinguished road

I have installed OpenFOAM Ubuntu/Debian package on my Ubuntu linux (version 10.04). I installed it by logging in to root then I switched to a user (arunaveen) which I created by using the command "useradd". I followed the steps given in OpenFOAM website to configure the user by adding . /opt/openfoam171/etc/bashrc and saved the file. After this when I type . ~/.bashrc in the terminal I get the following output
/hom/arunaveen/.bashrc: 13: shopt: not found
/hom/arunaveen/.bashrc: 21: shopt: not found
/hom/arunaveen/.bashrc: 52: shopt: not found
/etc/bash_completion: 33: [[: not found
/etc/bash_completion: 39: [[: not found
/etc/bash_completion: 52: Bad substitution
\[\e]0;\u@\h: \w\a\]\u@\h:\w$

If I type icoFoam -help, I get
-sh: icoFoam: not found.

When I switched back into root and tried to do the same with bashrc file everything worked fine and I could see the usage message after typing "icoFoam -help"

I don't want to run the code as a root, I want to work with OpenFOAM in my user account, so could anyone please tell me what should I do.

vetnav is offline   Reply With Quote

Old   December 11, 2010, 15:37
Join Date: Feb 2010
Location: Los Angeles
Posts: 65
Rep Power: 9
vetnav is on a distinguished road
found it
I just changed the shell type from /bin/sh to /bin/bash and I can see the usage message now in my user account also.

However, I am interested in knowing why just changing from /sh to /bash solved this problem. So please explain me.

vetnav is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Defined Memory Problem Melih FLUENT 4 July 16, 2016 06:47
basic conduction problem for new user uncle_salty FLUENT 0 October 9, 2009 17:07
Problem whith parallel an network configuration agamezcfdof FLUENT 0 June 30, 2009 10:51
user routine, user funcion, or fortran compile effect on the memroy? princeps11 CFX 1 May 13, 2009 18:37
Periodic flow boundary condition problem sudha FLUENT 3 April 28, 2004 08:40

All times are GMT -4. The time now is 18:09.