[opensuse] Invalid MIT-MAGIC-COOKIE-1
Hi I'm trying to run a script: ./rdsconsole.sh Invalid MIT-MAGIC-COOKIE-1 keyrdsconsole: cannot connect to X server :0 I've tried: DISPLAY='0.0' ./rdsconsole.sh rdsconsole: cannot connect to X server 0.0 and: DISPLAY='1.1' ./rdsconsole.sh rdsconsole: cannot connect to X server 1.1 and also as root. Here is the script: cat rdsconsole.sh #!/bin/bash export XAUTHORITY=~/.Xauthority PROGNAME=`basename "$0"` # strip of path PROGDIR=`dirname "$0"` if [ "$PROGDIR" = "." ] then PROG=`which "$PROGNAME"` PROGDIR=`dirname "$PROG"` fi if [ "${PROGDIR:0:1}" != "/" ] then PROGDIR="${PWD}/${PROGDIR}" fi PROGDIR=`cd $PROGDIR; pwd` cd $PROGDIR cd ./cde-package/cde-root/ cp /etc/hosts ./etc/ cp /etc/resolv.conf ./etc/ ../cde-exec /usr/bin/rdsconsole How do I get it going? Thanks L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi, On Sun, Dec 04, 2011 at 12:09:52PM +0100, lynn wrote:
I'm trying to run a script:
./rdsconsole.sh Invalid MIT-MAGIC-COOKIE-1 keyrdsconsole: cannot connect to X server :0
This usually happens when the magic cookie file is broken or not accessible. The reason for the latter could be wrong permissions. -- Bye, Stephan Barth SUSE Technical Services - SUSE LINUX GmbH GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409 Nuremberg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sunday 04 December 2011 12:09:52 lynn wrote:
Hi I'm trying to run a script: [...] export XAUTHORITY=~/.Xauthority
If you have to do this, chances are you are already doing something wrong. If the user trying to run the script is not already able to run graphical programs, the above line will do exactly nothing. You probably need to make sure the user can run graphical programs at all, before you run the script. Once you have that, you can just leave the above export out of it Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Anders Johansson
-
lynn
-
Stephan Barth