
Hallo Linuxfreunde, weiß einer Rat: habe vor einiger Zeit den Kernel2.4.8 vom Server geholt um mal zu probieren wies geht.. Damals konnte ich Problemlos "make xconfig" ausführen und den Kernel konfigurieren. Wollte Heute nochmals den Kernel neu-konfigurieren und erhalte bei"make xconfig" folgende Meldung. root@linux:/usr/src/linux > make xconfig rm -f include/asm ( cd include ; ln -sf asm-i386 asm) make -C scripts kconfig.tk make[1]: Entering directory `/usr/src/linux/scripts' cat header.tk >> ./kconfig.tk ./tkparse < ../arch/i386/config.in >> kconfig.tk echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk echo "set ARCH \"i386\"" >> kconfig.tk cat tail.tk >> kconfig.tk chmod 755 kconfig.tk make[1]: Leaving directory `/usr/src/linux/scripts' wish -f scripts/kconfig.tk Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key Application initialization failed: couldn't connect to display ":0.0" Error in startup script: invalid command name "button" while executing "button .ref" (file "scripts/kconfig.tk" line 51) make: *** [xconfig] Error 1 root@linux:/usr/src/linux > -- -- -- Bernhard Sybrandi Grötekenstraße 38 41179 Mönchengladbach sybrandi-bernhard@web.de

On Friday, 31. August 2001 19:15, Bernhard Sybrandi wrote:
wish -f scripts/kconfig.tk Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key Application initialization failed: couldn't connect to display ":0.0"
Der root darf nicht ungefragt bei einem User ein Fenster oeffnen. Man muss die Environment-Variable XAUTHORITY auf die /home/user/.Xauthority setzen: 'XAUTHORITY=/home/user/.Xauthority make xconfig' Peter

Am Freitag, 31. August 2001 23:18 schrieb Peter Wiersig:
On Friday, 31. August 2001 19:15, Bernhard Sybrandi wrote:
wish -f scripts/kconfig.tk Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key Application initialization failed: couldn't connect to display ":0.0"
$ su -m roman

Hallo Bernhard, hallo Leute Am Freitag, 31. August 2001 19:15 schrieb Bernhard Sybrandi:
Hallo Linuxfreunde,
weiß einer Rat: habe vor einiger Zeit den Kernel2.4.8 vom Server geholt um mal zu probieren wies geht.. Damals konnte ich Problemlos "make xconfig" ausführen und den Kernel konfigurieren. Wollte Heute nochmals den Kernel neu-konfigurieren und erhalte bei"make xconfig" folgende Meldung.
root@linux:/usr/src/linux > make xconfig rm -f include/asm ( cd include ; ln -sf asm-i386 asm) make -C scripts kconfig.tk make[1]: Entering directory `/usr/src/linux/scripts' cat header.tk >> ./kconfig.tk ./tkparse < ../arch/i386/config.in >> kconfig.tk echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk echo "set ARCH \"i386\"" >> kconfig.tk cat tail.tk >> kconfig.tk chmod 755 kconfig.tk make[1]: Leaving directory `/usr/src/linux/scripts' wish -f scripts/kconfig.tk Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key Application initialization failed: couldn't connect to display ":0.0"
Das war der Fehler... Hast Du Dich bei X aus User angemeldet und dann mit "su -" zu root gemacht? Ich vermute ja. Starte mal unter X eine Konsole und gib xhost + ein. Das erlaubt auch anderen Usern/Computern Zugriff auf den X-Bildschirm (wie z. B. root - ja, richtig, auch root darf manchmal nicht alles [ohne weiteres, ich sage nur "su user", "xhost +", dann darf er;-) ])
Error in startup script: invalid command name "button" while executing "button .ref" (file "scripts/kconfig.tk" line 51) make: *** [xconfig] Error 1 root@linux:/usr/src/linux >
Die restlichen Fehler sind Folgefehler, ohne Programmfenster kann man nunmal keinen Button anzeigen ;-) Gruß Christian Boltz -- Linux is like a wigwam: no gates, no windows, and an apache inside.

Christian Boltz wrote:
[...] Starte mal unter X eine Konsole und gib xhost + ein. Das erlaubt auch anderen Usern/Computern Zugriff auf den X-Bildschirm (wie z. B. root - ja, richtig, auch root darf manchmal nicht alles [ohne weiteres, ich sage nur "su user", "xhost +", dann darf er;-) ])
Mache kein "xhost +", sonst kann nicht nur ein lokaler "root" den X-Server des Benutzers verwenden, sondern jeder! Und das ist wohl nicht ganz angebracht. Besser ist daher ein "xhost +localhost", das reicht voll und ganz. Gruesse, Thomson -- Thomas Hertweck, Geophysicist Geophysical Institute, University of Karlsruhe Hertzstr. 16, D-76187 Karlsruhe, Germany

On Fri, Aug 31, 2001 at 07:15:00PM +0200, Bernhard Sybrandi wrote:
Hallo Linuxfreunde,
weiß einer Rat: habe vor einiger Zeit den Kernel2.4.8 vom Server geholt um mal zu probieren wies geht.. Damals konnte ich Problemlos "make xconfig" ausführen und den Kernel konfigurieren. Wollte Heute nochmals den Kernel neu-konfigurieren und erhalte bei"make xconfig" folgende Meldung.
da gibt es mehrere Moeglichkeiten. Die einfachste ist su mit dem Parameter -m aufzurufen. Damit werden die Umgebungsvariablen nicht neu gesetzt. Eine andere Moeglichkeit ist als User 'xhost +localhost' einzugeben, sich als Root einzuloggen, und folgendes einzutippen: DISPLAY=:0.0 export DISPLAY Gruss, Oliver

Hallo Linuxfreund, Am Freitag, 31. August 2001 19:15 schrieben Sie:
Wollte Heute nochmals den Kernel neu-konfigurieren und erhalte bei"make xconfig" folgende Meldung.
Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key Application initialization failed: couldn't connect to display ":0.0"
Frage: Wer hat den den X-Server gestartet? Wahrscheinlich nicht root sondern irgend ein anderer User. Dann kann root natürlich kein X-Fenster starten, wenn ihm das nicht irgendwie von dem "anderen User" erlaubt worden wäre (z.B. mittels xhost). Also X-Sitzung beenden und als User root wieder anmelden. Dann gehts. Gruss -- Franz Zimmermann

On Fre, 31 Aug 2001, Franz Zimmermann wrote:
Also X-Sitzung beenden und als User root wieder anmelden. Dann gehts.
Lieber nicht! Lieber in einem Terminalfenster unter X mittels 'su -' zu root werden, ein 'export DISPLAY=:0' und dann 'make -C /usr/src/linux xconfig' aufrufen. -dnh -- HTML's a cheap whore. Treating her with respect is possible, and even pref- erable, because once upon a time she was a beautiful and virginal format, but you shouldn't expect too much of her at this point. (Mark 'Kamikaze' Hughes)

Hallo David, * Am 01.09.2001 um 03:58 Uhr schrieb David Haller:
On Fre, 31 Aug 2001, Franz Zimmermann wrote:
Also X-Sitzung beenden und als User root wieder anmelden. Dann gehts.
Lieber nicht!
Lieber in einem Terminalfenster unter X mittels 'su -' zu root werden, ein 'export DISPLAY=:0' und dann 'make -C /usr/src/linux xconfig' aufrufen.
zuvor kann aber ein 'xhost localhost' nicht schaden ;-) js@sam:~ > xhost +localhost localhost being added to access control list js@sam:~ > su - Password: sam:~ # export DISPLAY=:0 [1] sam:~ # make -C /usr/src/linux xconfig [1] Defaultmäßig ist bei mir (SuSE 7.2) DISPLAY auf 0:0 gesetzt. Ein explizites setzten ist also nicht nötig. Jürgen -- Freunde kommen und gehen, aber Feinde sammeln sich an. / Registered Linux-User #130804 http://counter.li.org \ \ Linux Stammtisch Bremerhaven http://linux.hs-bremerhaven.de /

Hi, On Samstag, September 01, 2001 at 10:35:08, Juergen Schwarting wrote:
* Am 01.09.2001 um 03:58 Uhr schrieb David Haller:
On Fre, 31 Aug 2001, Franz Zimmermann wrote:
Also X-Sitzung beenden und als User root wieder anmelden. Dann gehts.
Lieber nicht!
Lieber in einem Terminalfenster unter X mittels 'su -' zu root werden, ein 'export DISPLAY=:0' und dann 'make -C /usr/src/linux xconfig' aufrufen.
zuvor kann aber ein 'xhost localhost' nicht schaden ;-)
js@sam:~ > xhost +localhost localhost being added to access control list js@sam:~ > su - Password: sam:~ # export DISPLAY=:0 [1] sam:~ # make -C /usr/src/linux xconfig
[1] Defaultmäßig ist bei mir (SuSE 7.2) DISPLAY auf 0:0 gesetzt. Ein explizites setzten ist also nicht nötig.
Oder man spart sich gleich alles und benutzt sux [1] anstatt su. Henne [1] less `type -p sux` #!/bin/bash # # /usr/X11R6/bin/sux A shell script to forward X authentication # and run `su - root [options]' # # Usage: sux [-c command] [-s shell] [-|-l] [[user] args] # # Copyright 2000 SuSE GmbH # Author: Werner Fink <werner@suse.de> # # 2000/09/13: Avoid su staying around with magic cookie # in process table due PAM. export PATH=/usr/X11R6/bin/X11:$PATH if test "+$(id -u)" = "$1" ; then # # Passsive part # unset XAUTHORITY || true if test $# -lt 4 -o ! -e /proc/$$/fd/4 ; then echo "${0##*/}: Missing id or cookie or DISPLAY" 1>&2 exit 1 fi arg0=$2${SHELL##*/} export SHELL="$3" if test "$(hostname -f)" = "${4%:*}" ; then export DISPLAY=":${4#*:}" host="${4%:*}" unixs="${host%%.*}/unix:${DISPLAY#*:}" unixf="${host}/unix:${DISPLAY#*:}" tcpip="${host}:${DISPLAY#*:}" else export DISPLAY="$4" host="" unixs="" unixf="" tcpip="${DISPLAY}" fi shift 4 xauth -qif <(exec cat 0<&4) extract >(exec xauth -q merge -) \ ${unixs:+"$unixs"} \ ${unixf:+"$unixf"} \ ${tcpip:+"$tcpip"} exec 4<&- unset unixs unixf tcpip host || true exec -a $arg0 $SHELL ${1+"$@"} exit 1 fi # # Active part # if test -z "$DISPLAY" ; then echo "${0##*/}: Missing DISPLAY variable" 1>&2 exit 1 fi user=root login= command= while test -z "${1%%-*}" -a -n "$1" ; do if test ${#1} -eq 2 -a -n "${2%%-*}" -a "$1" != "-l" ; then y="${1#-}${2}"; shift 2 else y="${1#-}" ; shift 1 fi case "$y" in c*) command="${y#?}" ;; s*) shell="${y#?}" ;; l|"") login=- ;; *) echo "Usage: sux [-c command] [-s shell] [-|-l] [[user] args]" 1>&2 exit 1 esac done if test -n "$1" ; then user=$1 shift fi id=$(id -u $user) OIFS="$IFS"; IFS=":" if type -p ypwhich &> /dev/null && test -n "$(ypwhich 2>/dev/null)" ; then pwline=($((cat /etc/passwd; ypcat passwd)| grep "^${user}:" | head -1)) else pwline=($(cat /etc/passwd | grep "^${user}:")) fi IFS="$OIFS" if test -n "$shell" && grep -q $shell /etc/shells &> /dev/null ; then shell=$shell else shell="${pwline[6]}" fi if test -n "${DISPLAY%:*}" ; then host="${DISPLAY%:*}" else host="$(hostname -f)" fi tcpip="${host}:${DISPLAY#*:}" unset host exec 4< ${XAUTHORITY:-$HOME/.Xauthority} # Get rid of NFS ;^) cat ${XAUTHORITY:-$HOME/.Xauthority} > /dev/null exec -a su /bin/su -s /bin/bash $login -- $user \ $0 +$id "$login" "$shell" "$tcpip" ${command:+-c "$command"} exit 1 # # /usr/X11R6/bin/sux ends here # -- Hendrik Vogelsang aka Henne mailto: mickey@naturalbornkiller.de Recycling and speed limits are bullshit, they're like someone who quits smoking on his deathbed. # figth club sigs made with fortune
participants (11)
-
Bernhard Sybrandi
-
Christian Boltz
-
David Haller
-
franz.joachim.zimmermann@t-online.de
-
Henne Vogelsang
-
Juergen Schwarting
-
Menuhin Saitov
-
Oliver Kiehl
-
Peter Wiersig
-
Roman Langolf
-
Thomas Hertweck