SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
press enter to allow for passwordless login, and then
$cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
$ssh alex [accept all to permanently add alex to the allowed users ]
$ssh localhost [accept all to permanently add localhost to the allowed users ]
Is there any "fool-proof" method to ascertain wether an application can open an Xterm using ssh tunelling...?
I ask this because ASTK still does not pop up a calculation progress in xterm...
Reviewing all that has been done...
Quote:
2. Edit /etc/inetd.conf by uncommenting the lines with 'in.rshd -L' and 'in.rlogind'
Code:
# Shell, login, exec and talk are BSD protocols
#
shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L
login stream tcp nowait root /usr/sbin/tcpd in.rlogind3. Edit /etc/hosts.equiv with the domain(s) of the remote clients which will connect with rsh.
Code:
localhost
iskandhar
iskandhar.site4. Edit /etc/hosts.allow and add "in.rshd: <domains of clients>" (localhost for the same box)
Code:
/etc/rc.d/rc.inetd restartPerform as user which will be connecting with rsh
6. Edit the user's .rhosts file and add the domains with the authorized users which can connect.
Code:
localhost
iskandhar alex
iskandhar.site alex7. Change permission of .rhosts file
press enter to allow for passwordless login, and then
$cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
$ssh iskandhar [accept all to permanently add iskandhar to the allowed users ]
$ssh localhost [accept all to permanently add localhost to the allowed users ]
chmod 600 ~/.ssh/authorized_keys
These are the detaile steps of what I have done so far...
Still astk fails to pop up the xterm...
I need to verify that ssh can use tcp tunelling to X before reporting this to The developers of Code aster.
The check routines of aster say everything is allright :
Quote:
<INFO> Session started : 14/12/2009 - 15:21:14
<INFO> ASTK version 1.7.4
<INFO> Color theme active :
<INFO> Full name of localhost : iskandhar.site
<INFO> Display applications to iskandhar.site.site:0.0
<INFO> Command ps used : ps
<INFO> Check step completed : 0 error(s).
<INFO> Debug mode actived (level 3)
<INFO> Get informations about the configuration of iskandhar. Please wait...
<INFO> External command on iskandhar.site :
/opt/aster/ASTK/ASTK_SERV/bin/as_run --info --remote_shell_protocol=RSH --remote_copy_protocol=RCP
<INFO> Process number : 3811
<INFO> ============================== STANDARD OUTPUT ==============================
@SERV_VERS@
01.07.04
@FINSERV_VERS@
@PARAM@
plate-forme : LINUX64
batch : non
batch_memmax : 12000
batch_tpsmax : 72:00:00
batch_nbpmax : 16
interactif : oui
interactif_memmax : 2048
interactif_tpsmax : 99:00:00
interactif_nbpmax : 16
@FINPARAM@
@VERSIONS@
vers : STA10.0
@FINVERSIONS@
@NOEUDS@
noeud : iskandhar
@FINNOEUDS@
@MOTD@
@FINMOTD@
<INFO> Ready
<INFO> Previous configuration file saved as config_serveurs.old
<INFO> Updating AGLA configuration...
<INFO> The development machine - isn't in
the available servers list.
, and as a matter of fact, temporary files are moved along during a calculation IF I START IT BY LAUNCHING THE SCRIPT CREATED IN ~/flasheur/* ( rather strange this.... )
BUT the gui cannot launch a calculation... ( start an xterm )
What can I do so to ascertain that TCP tunelling through ssh is "de facto" enabled...?
PS BTW is n't there a thing about /etc/kde/kdm/kdmrc about --nolistenTCP and another issue about xserverrc...?
The answer to your question is "... well, sort of... " I will explain :
You need the Tk gui to set the paths and filenames to your mesh file (*.med fichier ) , a mesh format used by EDF Recherche, the *.comm file ( commandes ) the Finite element problem setup, and the *.resu file ( an overloaded mesh file with scalar, vactor and tensor fields superimpoased, which are the result of the calculation, as well as to set up the maximum allowable memory for your calculation, and the maximum allowable time it can take.
When you launch the calculation in the interactive mode, two things happen ( or should at least... ) another Tk window pops up called Asjob, which states the current state of the job queue or batch, with the jobs pending, concluded OK, and concluded with error ( lack of convergence, memory overflow, singularity of stiffness matrix, etc.. ), and an Xterm window there the calculation is actually launched from a script, which is previously dropped in ~/flasheur/*, that has references to all files indicated in the gui, as well as to the solvers needed to perform those... ( solvers live in /opt/aster/STA10/serveur/...
In my case, the ASTK Gui launches allright, ( check messages are allright ) "knows its way around" ( path to the solbers, path to the data/results files, drops the calling script to ~/flasheur/* ) and calls for the Asjob batch/queue manager, but it does not call for the xterm to launch the execution of the calling script that was previously created.
I guess I need the gui to create a case ( calling script ) and manage batch/queue of cases...
( I bet that ppl which work at EDF Recherche, or at CEA can easily setup such script without any gui whatsoever... but I have not yet reached this degree of proficiency in using Code Aster... )
And launching it from the gui is more "trendy"... :-D
So... two questions here... :
Does this depend on the runlevel I am ... ( So far I have tried to do this in Runlevel 3, since after logging as user, I drop directly into startx/IceWM )... ?
Does this have anything to do with xserverrc, --noListenTCP in /etc/kde/kdm/kdmrc ...( although if i "land" into iceWM in runlevel 3, I guess that /etc/kde/kdm/kdmrc never got to be "seen" by the boot sequence... does not make much sense... (or does it...!? ))
Or Does this has anything to to with me using a downgraded version of Python ( from the default of Slackware64 13, Python 2.6.2 to that of Slackware 12.2, Python 2.5.2 )
Code Aster ( According to EDF Recherche ) calls for Python 2.4 in its internal wokings, but this is shipped with Aster
Descriptions
Python
Il s’agit d’un langage, il est utilisé par l’interpréteur des fichiers de commandes Aster. C’est également le langage recommandé pour les nouveaux outils développés autour de Code_Aster.
Version utilisée : 2.4
La version est Python est imposée pour les versions pré-compilées de Code_Aster. Si vous téléchargez les sources de Code_Aster, vous pouvez utiliser normalement utiliser des versions plus récentes.
Nécessaire lors de la compilation et l’utilisation de Code_Aster.
Python doit être compilé avec le support du module Tkinter pour Eficas.
I tried to compile with Python -2.6.2, but the build log reported lots of errors... so I downgraded to Python-2.5.2, anc compilation ran flawlessly...
Can this be an issue... ?
Or, I cannot simply access X through ssh with my present settings in Slackware... ?
I mean, there must be a way an outstanding piece of Software like Code Aster can run over Slackware.... :-|
Not sure I understand following sentence, though it be in my mother tongue
Quote:
Python doit être compilé avec le support du module Tkinter pour Eficas.
"./configure --help|grep -i tk" in a Python 2.6.2 source tree outputs nothing, but maybe you could check your Tkinter support following instructions given here.
I'm doubtful it be a good path though but as you seem to be somehow lost, maybe it's worth trying... And you could have a look at the last part of this document too.
<INFO> Session started : 14/12/2009 - 20:31:39
<INFO> ASTK version 1.7.4
<INFO> Color theme active :
<INFO> Domain name not defined for localhost. Remote machines couldn't contact localhost. Fill the domain name through Configuration/Interface menu.
<INFO> Full name of localhost : iskandhar
<INFO> The DISPLAY above is without domain name. It's possible that remote machines could'nt open windows.
<INFO> Display applications to iskandhar:0.0
<INFO> Command ps used : ps
<INFO> Check step completed : 0 error(s).
<INFO> Debug mode actived (level 3)
<INFO> Get informations about the configuration of iskandhar. Please wait...
<INFO> External command on iskandhar :
/opt/aster/ASTK/ASTK_SERV/bin/as_run --info --remote_shell_protocol=RSH --remote_copy_protocol=RCP
<INFO> Process number : 4424
<INFO> ============================== STANDARD OUTPUT ==============================
@SERV_VERS@
01.07.04
@FINSERV_VERS@
@PARAM@
plate-forme : LINUX64
batch : non
batch_memmax : 12000
batch_tpsmax : 72:00:00
batch_nbpmax : 16
interactif : oui
interactif_memmax : 2048
interactif_tpsmax : 99:00:00
interactif_nbpmax : 16
@FINPARAM@
@VERSIONS@
vers : STA10.0
@FINVERSIONS@
@NOEUDS@
noeud : iskandhar
@FINNOEUDS@
@MOTD@
@FINMOTD@
EXIT_CODE=0
=============================================================================
<INFO>
============================== STANDARD ERROR ===============================
-------------------------------------------------------------------------------
>>> 000000001 [__init__@/opt/aster/ASTK/ASTK_SERV/lib/as_system.py:180]
ASTER_SYSTEM param :
{'remote_copy_protocol': 'RCP', 'remote_shell_protocol': 'RSH'}
=============================================================================
<INFO> Ready
<INFO> Previous configuration file saved as config_serveurs.old
<INFO> Updating AGLA configuration...
<INFO> The development machine - isn't in
the available servers list.
In my Slackware64 13, this is the output of starting ASTK :
Code:
<INFO> Session started : 14/12/2009 - 15:21:14
<INFO> ASTK version 1.7.4
<INFO> Color theme active :
<INFO> Full name of localhost : iskandhar.site
<INFO> Display applications to iskandhar.site.site:0.0
<INFO> Command ps used : ps
<INFO> Check step completed : 0 error(s).
<INFO> Debug mode actived (level 3)
<INFO> Get informations about the configuration of iskandhar. Please wait...
<INFO> External command on iskandhar.site :
/opt/aster/ASTK/ASTK_SERV/bin/as_run --info --remote_shell_protocol=RSH --remote_copy_protocol=RCP
<INFO> Process number : 3811
<INFO> ============================== STANDARD OUTPUT ==============================
@SERV_VERS@
01.07.04
@FINSERV_VERS@
@PARAM@
plate-forme : LINUX64
batch : non
batch_memmax : 12000
batch_tpsmax : 72:00:00
batch_nbpmax : 16
interactif : oui
interactif_memmax : 2048
interactif_tpsmax : 99:00:00
interactif_nbpmax : 16
@FINPARAM@
@VERSIONS@
vers : STA10.0
@FINVERSIONS@
@NOEUDS@
noeud : iskandhar
@FINNOEUDS@
@MOTD@
@FINMOTD@
EXIT_CODE=0
=============================================================================
<INFO>
============================== STANDARD ERROR ===============================
-------------------------------------------------------------------------------
>>> 000000001 [__init__@/opt/aster/ASTK/ASTK_SERV/lib/as_system.py:180]
ASTER_SYSTEM param :
{'remote_copy_protocol': 'RCP', 'remote_shell_protocol': 'RSH'}
=============================================================================
<INFO> Ready
<INFO> Previous configuration file saved as config_serveurs.old
<INFO> Updating AGLA configuration...
<INFO> The development machine - isn't in
the avai<INFO> Session started : 14/12/2009 - 15:21:14
<INFO> ASTK version 1.7.4
<INFO> Color theme active :
<INFO> Full name of localhost : iskandhar.site
<INFO> Display applications to iskandhar.site.site:0.0
<INFO> Command ps used : ps
<INFO> Check step completed : 0 error(s).
<INFO> Debug mode actived (level 3)
<INFO> Get informations about the configuration of iskandhar. Please wait...
<INFO> External command on iskandhar.site :
/opt/aster/ASTK/ASTK_SERV/bin/as_run --info --remote_shell_protocol=RSH --remote_copy_protocol=RCP
<INFO> Process number : 3811
<INFO> ============================== STANDARD OUTPUT ==============================
@SERV_VERS@
01.07.04
@FINSERV_VERS@
@PARAM@
plate-forme : LINUX64
batch : non
batch_memmax : 12000
batch_tpsmax : 72:00:00
batch_nbpmax : 16
interactif : oui
interactif_memmax : 2048
interactif_tpsmax : 99:00:00
interactif_nbpmax : 16
@FINPARAM@
@VERSIONS@
vers : STA10.0
@FINVERSIONS@
@NOEUDS@
noeud : iskandhar
@FINNOEUDS@
@MOTD@
@FINMOTD@
EXIT_CODE=0
=============================================================================
<INFO>
============================== STANDARD ERROR ===============================
-------------------------------------------------------------------------------
>>> 000000001 [__init__@/opt/aster/ASTK/ASTK_SERV/lib/as_system.py:180]
ASTER_SYSTEM param :
{'remote_copy_protocol': 'RCP', 'remote_shell_protocol': 'RSH'}
=============================================================================
<INFO> Ready
<INFO> Previous configuration file saved as config_serveurs.old
<INFO> Updating AGLA configuration...
<INFO> The development machine - isn't in
the available servers list.
Clearly there are some subtle differences here...
How can I remaster my Slackware settings so that the output of ASK starting becomes more ..."normal"... ( Debian-wise speaking... ) ?
Python of Debian Lenny ( well, Synaptic gives me the whole lot of them... ) but just to check :
How many boxes do you use? What are each one's functions in this case?
I ask these silly questions because if you have only one box playing both client and server roles AFAIK warnings in bold in ASTK's output don't really matter...
About kdmrc, if you boot at runlevel 3 and launch fluxbox with startx (as I do) you don't use kdmrc's setting at all so they don't matter. IOW kdmrc is only used if you boot at runlevel 4.
Did you check the first link I sent you in my previous post?
Last edited by Didier Spaier; 12-14-2009 at 03:25 PM.
I have this laptop where I have Debian Lenny installed in the HDD.
Since I am considering to dump Lenny in favor of Slackware... ( SL is faster, less bloated, instead of depending on pre compiled binaries like in lenny I can always compile the latest versions of libraries/programs ... ) In case I can Install all the applications I need to my work: CAD packages (BRLCAD Pro Engineer,...), Finite Elements software ( Code Aster, Calculix, Ansys ), CFD software (OpenFOAM, Fluent ), pre/post processing utilities ( Salome Platform, Paraview, OpenDX ), math prototyping tools, (Scilab, Octave, Maxima, Gnumeric )... with these apps I can do a lot of engineering design work.
But before dumping Lenny, I must check if Slackware will do the Job... so I installed Slackware to an external USB HDD with hostname iskandhar, and qualified Hostname iskandhar.site.
In the Lenny output I booted into Lenny ( I am posting from lenny right now ), launched ASTK, and grabbed the output text in the messages window...
Did the same thing while booting from Slackware in this very same machine...
You are right... I only have one machine playing both client and server, in both cases...
I will now check on these links.
Anyway don't you think that what I put in bold really matters... ?
Shouldnt
Code:
<INFO> Full name of localhost : iskandhar.site
<INFO> Display applications to iskandhar.site.site:0.0
really be
Code:
<INFO> Full name of localhost : iskandhar.site
<INFO> Display applications to iskandhar.site:0.0
, the same way, in lenny it is :
Code:
<INFO> Full name of localhost : iskandhar
<INFO> ........................................
<INFO> Display applications to iskandhar:0.0
As you only have one machine playing both client and server, I suppose having only iskandhar in /etc/HOSTNAME won't hurt.
When you run netconfig in Slackware it asks for a domain name, but I think that for a standalone machine (with only a link to the Internet) it is unneeded.
Anyway trying this won't cost you much effort and won't put your system in jeopardy
Bonjour de Paris (pas très loin du siège d'EDF, dont je suis un client comme presque tous mes compatriotes...)
It accurately translates Hiragana, but sometimes fails with Kanji...
I would not rely in Google translate to translate Classical texts written in a more scholarly
form of Japanese writing... :-)
...Anyway, back to my adventures with Code-Aster...
IT WORKS...
Had to do some more tricks :
grepped through /etc to find all ocurrences of iskandhar.site, and /etc/HOSTNAME was not the only one... there was also /etc/hosts, so I changed them both...
Edited my /etc/hosts.equiv and my /etc/hosts.allow, regenerated the ssh keys after having rm -rf ~/.ssh, added localhost and iskandhar to my keys,
and finally grepped into /opt/aster for iskandhar.site, there was a configuration file, which i changed...
Not even after all this would aster work properly.... iskandhar.site was probably hardcoded into some binaries...
so I rm -rf /opt/aster, and recompiled from scratch...
This time it worked allright.
Congratulations to EDF Recherche for releasing such an outstanding software...
Engineering simulation applications are supposed to be n00b-killer, not user-friendly... this is a form of fault mitigation at user level... :
Users are necessarily forced to KNOW and UNDERSTAND what they are doing, not simply falling into the ( potentially deadly ) trap of the garbage-in/garbage-out that some user friendly software allows...
Some rather expensive Commercial Finite elements codes will shamelessly fail to indicate stress concentration effects at the root of cantileverd beams under combined loads ( Flexion and torsion ) like airplane wings...
Can someone imagine the consequences of using tools like these in the sizing of the wings of the Airbus A 380, without resorting to some expert critical judgment, in accepting the results ( garbage-out )... ?
... it is a bit terrifying, IMO...
Just my opinion here... :-)
So, the issue is solved.
once more, thanks to all the posters for having brought me this far...
BRGDS
Alex
BTW Does anyone think there might be any inerest from Slackware users in having a topic with a detailed Howto on installing Code-Aster in Slackware64 13...?
I ask this, because the title of this topic is somewhat misleading... :-|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.