SOLUTION: Re: journal / systemd colours ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 28 Jun 2023 11:10:05 -0700
stan <upaitag@xxxxxxxx> wrote:

> On Wed, 28 Jun 2023 10:17:45 -0700
> stan via users <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> > On Wed, 28 Jun 2023 17:08:38 +0100
> > Patrick O'Callaghan <pocallaghan@xxxxxxxxx> wrote:  
> 
> > > See also 'man journalctl' and search for PAGER.    
> > 
> > This is also relevant.  Unfortunately, it seems that journalctl
> > ignores the input of SYSTEMD_LESS.  It is hard to tell, because
> > there is no example of the kind of input it wants or whether it
> > only accepts options without arguments, as the default options all
> > are.  I would probably have to look at the journalctl code to
> > determine if they are hard coded into the program.  There is no
> > configuration file to set them in any case.  
> 
> So, the code for journalctl shows it reading the options from the
> variables, and invoking less with those options, but it doesn't seem
> to affect the behavior of running journalctl, or at least the colors
> don't change.  Maybe I'll look more closely at some point, but no joy
> for now.

Operator error.  Exporting the wrong name because of a cut and paste.
Once I fixed that, definitely works to change colors in journalctl
output, will have to tune it to get what I want.
I put this in my .bashrc so everything is set on login.
SYSTEMD_PAGER=less
export SYSTEMD_PAGER
SYSTEMD_LESS="[list of less options]"
export SYSTEMD_LESS
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux