Hi *, nachdem ich mich jahrelang nur mit Linux-Servern ohne grafische Oberflaeche beschaeftigt habe, bin ich jetzt auch beim Client auf Linux umgestiegen und darf mich mit X herumschlagen - klappt auch soweit. Fuer ein Problem konnte ich allerdings keine Loesung finden. Ich will, dass bei bei einem "net send" von Windows ein aehnlicher Popup wie eben auch unter Windows erfolgt. Dazu habe ich in die smb.conf eine passend Zeile eingebaut. Leider mault der zugehoerige kdialog, dass er nicht auf das Display schreiben kann Xlib: connection to ":0.0" refused by server und ich finde einfach die Stelle/Datei nicht, wo ich diese Berechtigung aendern kann. Betroffen ist der User "nobody". Auch ein "xhost +" hat nix gebracht. Any hint? Danke und ciao. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Wilhelm-Spaeth-Strasse 52 | FAX +49 (911) 557664 90461 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://www.hirmke.de/
Am Samstag, 1. Juni 2002 22:10 schrieb Michael Hirmke: [...]
Xlib: connection to ":0.0" refused by server und ich finde einfach die Stelle/Datei nicht, wo ich diese Berechtigung aendern kann. Betroffen ist der User "nobody". Auch ein "xhost +" hat nix gebracht.
Hi, von der Shell aus ist es gegebenenfalls hilfreich, das Display mitanzugeben, beispielsweise kdialog -msgbox "Hurz" --display=Ichweißdiesyntaxnichtmehrgenau Übrigens_ kdialog ist spartanisch, sieh Dir mal xdialog an: Da kannst Du fast alles machen ;-) . Hat mich echt verblüfft, nachdem ich mich lange genug mit kdialog 'rumgeschlagen hatte. Gruß ce ====== Installation von SuSE 8.0 auf einem Dell Inspiron 8200 http://home.t-online.de/home/mchristoph.eckert/inspiron8200/ ======
Christoph Eckert [mchristoph.eckert@t-online.de] wrote: [...]
von der Shell aus ist es gegebenenfalls hilfreich, das Display mitanzugeben, beispielsweise kdialog -msgbox "Hurz" --display=Ichweißdiesyntaxnichtmehrgenau
Das hilft leider nix - ich hab schon vorher DISPLAY=localhost:0.0 mitgegeben. Dann kommt halt dafuer derselbe Fehler.
Übrigens_ kdialog ist spartanisch, sieh Dir mal xdialog an: Da
Ich brauch das nur, um ein kleines Popup zu erzeugen, dafuer tuts. [...]
Gruß
ce
Danke fuer die Hinweise. Ciao. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Wilhelm-Spaeth-Strasse 52 | FAX +49 (911) 557664 90461 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://www.hirmke.de/
Hallo Michael, hallo Leute, Am Samstag, 1. Juni 2002 22:10 schrieb Michael Hirmke:
Fuer ein Problem konnte ich allerdings keine Loesung finden. Ich will, dass bei bei einem "net send" von Windows ein aehnlicher Popup wie eben auch unter Windows erfolgt. Dazu habe ich in die smb.conf eine passend Zeile eingebaut. Leider mault der zugehoerige
Wie sieht diese Zeile in der smb.conf denn aus?
kdialog, dass er nicht auf das Display schreiben kann Xlib: connection to ":0.0" refused by server und ich finde einfach die Stelle/Datei nicht, wo ich diese Berechtigung aendern kann. Betroffen ist der User "nobody". Auch ein "xhost +" hat nix gebracht.
Seltsam. Nach xhost + sollte der X-Server so offen wie ein Scheunentor sein ;-) - leider _zu_ offen. Bau mal in der Zeile in der smb.conf noch folgendes ein: echo $DISPLAY > /tmp/such-den-fehler; xhost >> /tmp/such-den-fehler; Was steht anschließend in /tmp/such-den-fehler? Wer ist der Eigentümer und die Gruppe der Datei? Noch eine Idee: Probier mal, das ganze in ein Bash-Script zu packen, das Du dann mit der Nachricht als Parameter aufrufst. Vielleicht versteht Samba den Konstrukt "DISPLAY=localhost:0.0 kdialog ...", den Du in Deiner anderen Mail gepostet hast, nicht. Gruß Christian Boltz -- Registrierter Linux-Nutzer #239431 Linux - life is too short for reboots.
Christian Boltz [christian.boltz@nexgo.de] wrote:
Hallo Michael, hallo Leute,
[...]
smb.conf eine passend Zeile eingebaut. Leider mault der zugehoerige
Wie sieht diese Zeile in der smb.conf denn aus?
Das ist lediglich ein Script von mir - sieht so aus: message command = /home/mh/entw/bin/smbmsg %s %f %m &
kdialog, dass er nicht auf das Display schreiben kann [...]
Seltsam. Nach xhost + sollte der X-Server so offen wie ein Scheunentor sein ;-) - leider _zu_ offen.
Jo, eben - klappt dennoch nicht.
Bau mal in der Zeile in der smb.conf noch folgendes ein:
echo $DISPLAY > /tmp/such-den-fehler; xhost >> /tmp/such-den-fehler;
Sowas steht schon im Script: ------------------------< snip snip snip >----------------------------- !/bin/bash exec 2>/tmp/$( basename $0 ).log set -x id 1>&2 /usr/bin/X11/xhost 1>&2 FILE="$1" USER="$2" HOST="$3" if [ -n "$FILE" ] then TEXT=$( cat "$FILE" ) /opt/kde2/bin/kdialog --msgbox "$TEXT" rm -f "$FILE" fi ------------------------< snip snip snip >----------------------------- Das Log sieht dann so aus: ------------------------< snip snip snip >----------------------------- id uid=65534(nobody) gid=65534(nogroup) + /usr/bin/X11/xhost Xlib: connection to ":0.0" refused by server^M Xlib: No protocol specified ^M /usr/bin/X11/xhost: unable to open display ":0" + FILE=/tmp/msg.24tOHq + USER=xx + HOST=yy + '[' -n /tmp/msg.24tOHq ']' ++ cat /tmp/msg.24tOHq + TEXT=Hallo + /opt/kde2/bin/kdialog --msgbox Hallo Xlib: connection to ":0.0" refused by server^M Xlib: No protocol specified ^M kdialog: cannot connect to X server :0 + rm -f /tmp/msg.24tOHq ------------------------< snip snip snip >-----------------------------
Was steht anschließend in /tmp/such-den-fehler? Wer ist der Eigentümer und die Gruppe der Datei?
Naja, der smb-Prozess halt: nobody.nogroup Hab ich vorher schon mit dem id Befehl geprueft.
Noch eine Idee: Probier mal, das ganze in ein Bash-Script zu packen, das Du dann mit der Nachricht als Parameter aufrufst. Vielleicht versteht Samba den Konstrukt "DISPLAY=localhost:0.0 kdialog ...", den Du in Deiner anderen Mail gepostet hast, nicht.
Hab ich schon, s.o.
Gruß
Christian Boltz
Danke und ciao. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Wilhelm-Spaeth-Strasse 52 | FAX +49 (911) 557664 90461 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://www.hirmke.de/
participants (3)
-
Christian Boltz
-
mchristoph.eckert@t-online.de
-
mh@mike.franken.de