|
[Sponsors] |
December 11, 2010, 14:47 |
problem with User configuration
|
#1 |
Member
Naveen
Join Date: Feb 2010
Location: Los Angeles
Posts: 65
Rep Power: 16 |
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 |
|
December 11, 2010, 15:37 |
|
#2 |
Member
Naveen
Join Date: Feb 2010
Location: Los Angeles
Posts: 65
Rep Power: 16 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
User Defined Memory Problem | Melih | FLUENT | 17 | February 21, 2020 08:43 |
basic conduction problem for new user | uncle_salty | FLUENT | 0 | October 9, 2009 18:07 |
Problem whith parallel an network configuration | agamezcfdof | FLUENT | 0 | June 30, 2009 11:51 |
user routine, user funcion, or fortran compile effect on the memroy? | princeps11 | CFX | 1 | May 13, 2009 19:37 |
Periodic flow boundary condition problem | sudha | FLUENT | 3 | April 28, 2004 09:40 |