Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sysklogd: /dev/xconsole: No such file or directory
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zxyqvod
n00b
n00b


Joined: 14 Nov 2014
Posts: 64
Location: zh_CN

PostPosted: Sun Apr 03, 2016 10:32 am    Post subject: sysklogd: /dev/xconsole: No such file or directory Reply with quote

Who can help me solve this problem? 3q!(Thank you!)
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Sun Apr 03, 2016 5:52 pm    Post subject: Reply with quote

Ok, xconsole is an old/ancient X11 application that is like a console that you can dump text to.
Normally /dev/xconsole is a named pipe that the xconsole application will read, and sysklogd will dump text to this named pipe.
You'll have to hack your config files if you're not using this setup. As I don't use this, I have no idea how this is set up, probably in /etc/syslog.conf there's an "xconsole" somewhere that you should rename...

Or you can go old school and set up an xconsole...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1179

PostPosted: Fri Sep 08, 2017 5:29 am    Post subject: Reply with quote

Is it too late for a reply? On a long ago subject matter...

This very basic but is the purpose of having such named pipes for tools like the system logging capabilities. I'm using it right now and it's really pretty good.

I think it beats having to switch terminals to see the output to another console.

Code:
mkfifo /dev/xconsole


Then simply make sure the section of your syslog.conf file are uncommented, and then restart the daemon for that process (sysklogd)

If you've already opened up a console window, pointed at the pipe with,

Code:
$ xconsole -file /dev/xconsole


then you should have immediate logging to the output of the xconsole. Happy logging...thanks by the way when I came across this old post it helped me to discover the need for the pipe when creating the xconsole in this case.
Back to top
View user's profile Send private message
GenHeDi
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 132

PostPosted: Sun Jul 29, 2018 2:34 pm    Post subject: Reply with quote

Hello,

Although I followed LIsLinuxIsSogood his instructions, I still get the following error messages:

Code:
syslogd: unknown priority name
syslogd: /dev/xconsole : no such file or directory


It mainly appears when I am working in the console and do not have X11 and KDE active.

Does anyone have an idea how I can solve this?
_________________
Nulla tenaci invia est via
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Sun Jul 29, 2018 4:08 pm    Post subject: Reply with quote

/etc/syslog.conf:
Code:

#daemon.*;mail.*;\
#       news.err;\
#       *.=debug;*.=info;\
#       *.=notice;*.=warn       |/dev/xconsole


I always comment out some lines from syslog.conf, might be those.
Back to top
View user's profile Send private message
GenHeDi
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 132

PostPosted: Mon Jul 30, 2018 5:53 pm    Post subject: Reply with quote

Hello P.Kosunen

Here is a part of my /etd/syslog.conf
Code:
# The named pipe /dev/xconsole is for the `xconsole' utility.  To use it,
# you must invoke `xconsole' with the `-file' option:
#
#    $ xconsole -file /dev/xconsole [...] original
$ xconsole -file /dev/xconsole
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
#      busy site..
#
daemon.*;mail.*;\
        news.err;\
        *.=debug;*.=info;\
        *.=notice;*.=warn       |/dev/xconsole


It is almost the original configuration after installing syslogd. The only changes are according to LIsLinuxIsSogood his instructions.
_________________
Nulla tenaci invia est via
Back to top
View user's profile Send private message
GenHeDi
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 132

PostPosted: Mon Aug 13, 2018 7:35 pm    Post subject: Reply with quote

I have commented following lines out:

Code:
$ xconsole -file /dev/xconsole


and

Code:

daemon.*;mail.*;\
        news.err;\
        *.=debug;*.=info;\
        *.=notice;*.=warn       |/dev/xconsole


If I understand it correctly the messages will be sent to /dev/xconsole anymore.
_________________
Nulla tenaci invia est via
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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