[Molvis-list] Rasmol doesnot work in Debian

Michael Sternberg sternberg at anl.gov
Thu May 26 10:03:09 EDT 2005

Vladimir Potapov wrote:
> Do you run RasMol locally or on remote computer? Usually this problem 
> appears when you 'ssh' to another computer and start RasMol.
> Huaer XC wrote:
>> I am a new comer in this email-group, and I have some problems in
>> using the rasmol in Debian Linux, the version I am using is
>> rasmol_32BIT "Version January 2004". And it returned the
>> following errors:
>> -------------------------------------------------------------------------- 
>> X Error of failed request:  BadAccess (attempt to access private
>> resource denied)
>>   Major opcode of failed request:  146 (MIT-SHM)
>>   Minor opcode of failed request:  1 (X_ShmAttach)
>>   Serial number of failed request:  227
>>   Current serial number in output stream:  228
>> -------------------------------------------------------------------------
>> The same executable file rasmol_32BIT ran well in Mandrake 10.0. So I
>> guess it comes from the different Linux system. Can someone in the
>> group help me out? Many thanks..

Over an ssh connection with X11 forwarding rasmol believes (wrongly) it can 
use X11 shared memory because $DISPLAY is localhost:10.0 (or higher).

My shell-script wrapper (attached) might help in this situation. It also 
picks suitable display depths in other cases.  You need to customise 
LIBEXEC_DIR for your rasmol-installation.  I suggest to install the script 
in your rasmol/bin dir and symlink it as "rasmol".

Michael Sternberg, Ph.D.         | Argonne National Laboratory
phone: (630) 252-7020 fax: -9555 | Materials Science Div., Building 200
email: sternberg.at.anl.gov      | 9700 S Cass Ave, Argonne, IL 60439-4831

More information about the Molvis-list mailing list