With 'sudo' you should not have this issue.

I agree, though, that having a separate user account to install crystallographic programs is quite an advantage from an administrative point of view.

Tim

--
Tim Gruene
Institut fuer anorganische Chemie
Tammannstr. 4
D-37077 Goettingen

GPG Key ID = A46BEE1A


On Mon, 14 Dec 2009, Mark A. White wrote:

Stuart,

Are you logged-in as root or are you working in a root shell ( using su
or sudo)?  Depending on your security settings X-windows may not permit a
program that is run from a root shell to access the display, which
belongs to the user logged-in through X-windows.

I get around the administrator access issue by installing CCP4, and all
other non-OS software, with non-root ownership, a non-root administrator
account, which shares the environment with all other users.  For one
thing, I do not want to source the multitude of /etc/csh.cshrc and
.bashrc files as root.  I am sure that others have different, and
probably more elegant, solutions to this problem.

PS. It also seems that the TCL/TK environment is not set in the root
shell you are using.

Good luck,
Mark


On Mon, 2009-12-14 at 16:51 -0600, Stuart Endostreeter wrote:
      Fellow users,

      I just installed v6.1.2 on Ubuntu 9.0.4 today and have run
      into the following problem when I try to run ccp4i for the
      first time as root to configure the program:

      r...@########:/home/########/Documents# ccp4i
      No protocol specified
      Application initialization failed: couldn't connect to
      display ":0.0"
      Error in startup script: can't read "tk_version": no such
      variable
          while executing
      "catch "set system(TK_VERSION) $tk_version""
          (file "/usr/local/ccp4/ccp4-6.1.2/ccp4i/bin/ccp4i.tcl"
      line 1)
          (file "/usr/local/ccp4/ccp4-6.1.2//bin/ccp4i" line 1)

      The odd thing is that I can launch ccp4i just fine as a
      regular user, but then of course I get the message about the
      first time ccp4i has been run and the need to configure it,
      which requires administrator level access.


      Anyone have any ideas?


      Thanks,
      Stuart Endo-Streeter

Yours sincerely,

Mark A. White, Ph.D.
Assistant Professor, Dept. Biochemistry and Molecular Biology,
Manager, Sealy Center for Structural Biology and Molecular Biophysics
X-ray Crystallography Laboratory,
Basic Science Building, Room 6.660 C
University of Texas Medical Branch
Galveston, TX 77555-0647
Tel. (409) 747-4747
Cell. (409) 539-9138
Fax. (409) 747-4745
mailto://[email protected]
http://xray.utmb.edu
http://xray.utmb.edu/~white

Reply via email to