CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

problem with User configuration

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2010, 13:47
Default problem with User configuration
  #1
Member
 
Naveen
Join Date: Feb 2010
Location: Los Angeles
Posts: 65
Rep Power: 16
vetnav is on a distinguished road
Hi,

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.

Thanks
vetnav is offline   Reply With Quote

Old   December 11, 2010, 14:37
Default
  #2
Member
 
Naveen
Join Date: Feb 2010
Location: Los Angeles
Posts: 65
Rep Power: 16
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.

Thanks
vetnav is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Defined Memory Problem Melih FLUENT 17 February 21, 2020 07:43
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 11:56.