Ubuntu
- rui simoes
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 48
- Thank you received: 0
14 years 11 months ago #4258
by rui simoes
Ubuntu was created by rui simoes
Dear All,
maybe you can help.
i started to work with caelinux 2009.
after same trouble to have it working, i did resolv same FE probs.
but since PCLinuxOS was so complicated to wireless connect to 3 diferent place i have to be dayly. i decided to move to ubuntu.
now i do have wireless and every thing, but...
my salomemeca doesnt work.
i'll try to explain
download and tar zxf went ok.
python postintall, also went ok.
but as soon as i run comand "runSalomeMeca", it complains "command not found".
then i tried "./runSa...", i get
"rsimoes@rsimoes-laptop:~/Downloads/SALOME-MECA-2009.1-GPL$ ./runSalomeMeca
rm: remove write-protected regular file `/home/rsimoes/.pal_salome2/AsterConfig2009.1'? "
is this normal????
so i tried with sudo, still complains "command not found".
then i did
"sudo shh"
"# runSalomeMeca"
"sh: runSalomeMeca: not found"
folloew by:
"# ./runSalomeMeca"
finnaly its starts.
i can activate the aster module.
but when i run the solver i get:
"error while writing astk report file"
then i've recompute the mesh and export,
and now when i solve with aster, it opens a window, as if to start solving, and imidiately closes this same window. and reports "<F> System".
and i can see this error in cas file:
"WARNING : ASTK Server version 1.7.1 differs from
ASTK Client version 1.6.2.
An update from Server or Client is necessary.
This execution may fail ! "
is this the reason?
can i update the cliente?
greetings
rui
maybe you can help.
i started to work with caelinux 2009.
after same trouble to have it working, i did resolv same FE probs.
but since PCLinuxOS was so complicated to wireless connect to 3 diferent place i have to be dayly. i decided to move to ubuntu.
now i do have wireless and every thing, but...
my salomemeca doesnt work.

i'll try to explain
download and tar zxf went ok.
python postintall, also went ok.
but as soon as i run comand "runSalomeMeca", it complains "command not found".
then i tried "./runSa...", i get
"rsimoes@rsimoes-laptop:~/Downloads/SALOME-MECA-2009.1-GPL$ ./runSalomeMeca
rm: remove write-protected regular file `/home/rsimoes/.pal_salome2/AsterConfig2009.1'? "
is this normal????
so i tried with sudo, still complains "command not found".
then i did
"sudo shh"
"# runSalomeMeca"
"sh: runSalomeMeca: not found"
folloew by:
"# ./runSalomeMeca"
finnaly its starts.

i can activate the aster module.
but when i run the solver i get:
"error while writing astk report file"
then i've recompute the mesh and export,
and now when i solve with aster, it opens a window, as if to start solving, and imidiately closes this same window. and reports "<F> System".
and i can see this error in cas file:
"WARNING : ASTK Server version 1.7.1 differs from
ASTK Client version 1.6.2.
An update from Server or Client is necessary.
This execution may fail ! "
is this the reason?
can i update the cliente?
greetings
rui
- Claus
-
- Offline
- Moderator
-
Less
More
- Posts: 670
- Thank you received: 34
14 years 11 months ago #4259
by Claus
Code_Aster release : STA11.4 on OpenSUSE 12.3 64 bits - EDF/Intel version
Replied by Claus on topic Re:Ubuntu
You always need to add./ to runSalomeMeca when launching it from its folder - otherwise it will look for the executables in /usr/bin etc etc.
You wont need to use 'sudo' for salome-meca unless you need superuser privileges - which you shouldn't.
It sounds like the configuration of salomé is broken somehow; try deleting ~/.astk* (everything called something with .astk), delete salome-meca and extract it again and run 'python postinstall.py' again.
Give it a try and come back if it's still broken
edit: also remove everything named *salome* in the home folder - like the .pal_salome file.<br /><br />Post edited by: Claus, at: 2010/05/20 01:39
You wont need to use 'sudo' for salome-meca unless you need superuser privileges - which you shouldn't.
It sounds like the configuration of salomé is broken somehow; try deleting ~/.astk* (everything called something with .astk), delete salome-meca and extract it again and run 'python postinstall.py' again.
Give it a try and come back if it's still broken

edit: also remove everything named *salome* in the home folder - like the .pal_salome file.<br /><br />Post edited by: Claus, at: 2010/05/20 01:39
Code_Aster release : STA11.4 on OpenSUSE 12.3 64 bits - EDF/Intel version
- rui simoes
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 48
- Thank you received: 0
14 years 11 months ago #4260
by rui simoes
Replied by rui simoes on topic Re:Ubuntu
Hi!
i read samewhere if i unchecked the interactive mode in aster case, i would be able to run the solver.
so i tried, and it did work.
still i don't know why i need root previleges, but i will follow your sugestion claus and delete the files. I'll came back here to let you know.
greetings
rui
i read samewhere if i unchecked the interactive mode in aster case, i would be able to run the solver.
so i tried, and it did work.

still i don't know why i need root previleges, but i will follow your sugestion claus and delete the files. I'll came back here to let you know.
greetings
rui
- Joël Cugnoni
-
- Offline
- Moderator
-
14 years 11 months ago #4261
by Joël Cugnoni
Joël Cugnoni - a.k.a admin
www.caelinux.com
Replied by Joël Cugnoni on topic Re:Ubuntu
Yes,
in fact, most of the problems when running an Aster job from Salome Meca or ASTK are because of "interactive" mode.
Disabling it will most probably solve 90% of the issues.
To have interactive mode working, you need to make sure that:
1) you can open a X terminal from "localhost" so check if you can run :
[code:1]xterm -display localhost:0[/code:1]
if not, you need
a) to enable remote X windows TCP connexions, Usually it is done by changing the gdm or kdm configuration files. On recent Ubuntu (9.10, 10.04), you need to edit /etc/gdm/gdm.schemas to change DisallowTCP to false
b) then modify your .bashrc to add one line at the end:
[code:1]xhost +localhost +$HOSTNAME[/code:1]
this will allow all X window connexions from local machine
c) check again if Salome-Meca / ASTK can run the job in interactive mode
2) If this is not sufficient, this probably means that ASTK considers your machine as a "remote server" (this can be due to some misconfiguration of DNS / hostname or because of DHCP...); in this case, you need to install OpenSSH and configure it to have "password less" connexions (see www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html for example). In ASTK then, choose the remote protocols = SSH and SCP.
Now the last check:
[code:1]ssh localhost xterm -display localhost:0[/code:1]
This should normally work now... and the "interactive" execution of Aster should work too.
in fact, most of the problems when running an Aster job from Salome Meca or ASTK are because of "interactive" mode.
Disabling it will most probably solve 90% of the issues.
To have interactive mode working, you need to make sure that:
1) you can open a X terminal from "localhost" so check if you can run :
[code:1]xterm -display localhost:0[/code:1]
if not, you need
a) to enable remote X windows TCP connexions, Usually it is done by changing the gdm or kdm configuration files. On recent Ubuntu (9.10, 10.04), you need to edit /etc/gdm/gdm.schemas to change DisallowTCP to false
b) then modify your .bashrc to add one line at the end:
[code:1]xhost +localhost +$HOSTNAME[/code:1]
this will allow all X window connexions from local machine
c) check again if Salome-Meca / ASTK can run the job in interactive mode
2) If this is not sufficient, this probably means that ASTK considers your machine as a "remote server" (this can be due to some misconfiguration of DNS / hostname or because of DHCP...); in this case, you need to install OpenSSH and configure it to have "password less" connexions (see www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html for example). In ASTK then, choose the remote protocols = SSH and SCP.
Now the last check:
[code:1]ssh localhost xterm -display localhost:0[/code:1]
This should normally work now... and the "interactive" execution of Aster should work too.
Joël Cugnoni - a.k.a admin
www.caelinux.com
- rui simoes
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 48
- Thank you received: 0
14 years 11 months ago #4264
by rui simoes
Replied by rui simoes on topic Re:Ubuntu
Hi Administrator,
did what you said, and i can now run the
" xterm -display localhost:0"
and
"ssh localhost xterm -display localhost:0"
both work great.
still i cant run the aster case in interactive mode.
thats not a big deal, since i can solve.
there is still one prob i cant solve, but i'll post it in the right place.
thanks lads,
rui
did what you said, and i can now run the
" xterm -display localhost:0"
and
"ssh localhost xterm -display localhost:0"
both work great.
still i cant run the aster case in interactive mode.
thats not a big deal, since i can solve.
there is still one prob i cant solve, but i'll post it in the right place.
thanks lads,
rui
Moderators: catux
Time to create page: 0.887 seconds