Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Syslog Output auf dem Desktop
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
snova
n00b
n00b


Joined: 08 Dec 2012
Posts: 65
Location: Hannover / Germany

PostPosted: Sun Mar 27, 2022 5:16 pm    Post subject: Syslog Output auf dem Desktop Reply with quote

Versuche seit Tagen ein Syslog-Output als Hintergrund auf nem X11 Desktop mit XFCE4 zu konfigurieren.
Hierfür habe ich jetzt mehre Terminals probiert, aber bisher ohne Erfolg.

Meine Versuche:
1) root-tail
Code:

# root-tail -g 300x200+20+40 /var/log/messages
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  55 (X_CreateGC)
  Serial number of failed request:  11
  Current serial number in output stream:  14
#

Root-Tail stürzt beim Aufruf einfach ab.

2) xrootconsole
Code:
xrootconsole --wrap -geometry 233x16+10+818  /var/log/messages

Der Befehl wird zwar ohne zu murren ausgeführt, aber man sieht leider kein Fenster auf dem Desktop. Möglicherweise liegt es unter dem XFCE und ich sehe es daher nur nicht. vielleicht hat hier wer ein Tipp?

3) tilda
Ich bekomme die gewünschte Konfiguration hin (Keine Fensterdekoration, keine Aufzählung in der Taskbar, Transparent, in einer bestimmten Position starten), was jedoch fehlschlägt ist ein Ausführender Befehl "/usr/bin/tail -f /var/log/messages" wird nicht ausgeführt und endet in einem leerem Fenster.

4) kitty, terminology und andere Terminals
hier bekam ich schon die Grund-Konfiguration nicht hin. Mag sein, dass diese die Anforderungen gar nicht erfühlen können.


Wenn man zu dem Thema im Internet wühlt findet man nur sehr alte Posts. Anscheinend ist das aus der Mode gekommen :?
Vielleicht hat dennoch wer ein Tipp für mich, wie ich zu meinem Glück komme?
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1406
Location: Germany

PostPosted: Mon Mar 28, 2022 6:23 am    Post subject: Reply with quote

Wie wäre es mit https://en.wikipedia.org/wiki/Conky_(software) ?
Habe das mal nur fürs übliche laufen lassen, aber nicht für Vollbild und aktive logs, daher keine Ahnung ob es das ist was du brauchst.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
snova
n00b
n00b


Joined: 08 Dec 2012
Posts: 65
Location: Hannover / Germany

PostPosted: Mon Mar 28, 2022 7:30 am    Post subject: Reply with quote

Danke, ich hatte mal Conky installiert, aber ich fand es als sehr Ressourcen-hungrig. Daher hab ich es wieder runter geworfen.
Ich weiß, dass Conky sehr weit frei konfigurierbar ist, aber mir ist neu, dass es auch eine Text-Datei mit Tail anzeigen lassen kann.

Werd den Tipp mal im Auge behalten. Aber am liebsten würde ich root-tail nutzen wollen oder etwas anderes einfaches. :)
Back to top
View user's profile Send private message
Jean-Paul
Guru
Guru


Joined: 13 Apr 2009
Posts: 307

PostPosted: Mon Mar 28, 2022 8:02 am    Post subject: Reply with quote

root-tail funktioniert unter plasma einwandfrei.
Dass es bei dir nicht geht, liegt an xfce.

Code:
Anscheinend ist das aus der Mode gekommen

Stimmt :D

Hier ist eine mögliche Lösung (auch schon alt :) ) https://forums.gentoo.org/viewtopic-t-81288-highlight-roottail+xfdesktop.html
_________________
”Everything should be made as simple as possible, but no simpler.” – Albert Einstein
Back to top
View user's profile Send private message
snova
n00b
n00b


Joined: 08 Dec 2012
Posts: 65
Location: Hannover / Germany

PostPosted: Mon Mar 28, 2022 9:20 am    Post subject: Reply with quote

ein kurzer Hoffnungsschimmer :)

ich hab mal die Anleitung angeschaut und musste es anpassen. Ich bin mir jedoch unsicher ob "xfdesktop" genau das ist, wonach ich suchen sollte...

Code:

echo@jeany:~ $ ps -efa | grep desktop
echo      4512  4391  0 09:42 ?        00:00:03 xfdesktop --display :0.0 --sm-client-id 263efbf27-f286-41a3-86f0-d4fcd3d23627
echo     17158  6446  0 11:15 pts/0    00:00:00 grep --color=auto desktop
echo@jeany:~ $
echo@jeany:~ $
echo@jeany:~ $ xwininfo -name 'xfdesktop' -int

xwininfo: Window id: 29360129 "xfdesktop"

  Absolute upper-left X:  1915
  Absolute upper-left Y:  1100
  Relative upper-left X:  7
  Relative upper-left Y:  32
  Width: 10
  Height: 10
  Depth: 0
  Visual: 0x2b
  Visual Class: TrueColor
  Border width: 0
  Class: InputOnly
  Colormap: 0x0 (not installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1915+1100  -1915+1100  -1915-1050  +1915-1050
  -geometry 10x10+1908+1068

echo@jeany:~ $
echo@jeany:~ $
echo@jeany:~ $ root-tail -id 29360129 /var/log/messages
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  55 (X_CreateGC)
  Serial number of failed request:  7
  Current serial number in output stream:  10
echo@jeany:~ $


Dennoch bekomme ich die Fehlermeldung, wie schon in meinem ersten Post. Hab ich das Tool irgendwie falsch compiliert?
Back to top
View user's profile Send private message
Jean-Paul
Guru
Guru


Joined: 13 Apr 2009
Posts: 307

PostPosted: Mon Mar 28, 2022 12:32 pm    Post subject: Reply with quote

Nein, das ist nicht dein Desktop - eher die Menüleiste, wenn ich mir die Geometriedaten anschaue.

Rufe bitte mal
Code:
xwininfo -int
auf und klicke auf die leere Desktopfläche.

Bei mir sieht das so aus.
Code:

xwininfo -int

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 35651609 "Arbeitsfläche — Plasma"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1920
  Height: 1080
  Depth: 32
  Visual: 0xad
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x2200018 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0-0  +0-0
  -geometry 1920x1080+0+0

_________________
”Everything should be made as simple as possible, but no simpler.” – Albert Einstein
Back to top
View user's profile Send private message
snova
n00b
n00b


Joined: 08 Dec 2012
Posts: 65
Location: Hannover / Germany

PostPosted: Mon Mar 28, 2022 2:18 pm    Post subject: Reply with quote

Danke, es war "Schreibtisch", als Name für den Desktop. Muss man den echt alles Übersetzten? Ich mag Denglisch zwar nicht, aber maches ist als Fester Begriff in der IT nun mal drinnen... naja, egal.

Code:

root-tail -g 800x500+3000+1600 -reverse -update -partial -wordwrap -outline -id $(xwininfo -name 'Schreibtisch' -int | awk '{if ($1=="xwininfo:") print $4}') /var/log/messages,red


Damit läuft das, jedoch wird ca alle 2,5sec ein Bild über das andere gelegt und ist irgendwann nicht mehr leserlich.
Kann man das löschen, bevor er das update draufläd?

In meiner Alt-Installation (2003 bis ca 2009) hatte ich Eterm (Terminal von Enlightment V16) dafür genutzt, leider ist der nicht mehr im Repo. Damit ging das mit dem tail ohne große Anstrengungen.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum