Tip: Android tablet
by ToddAndMargo
Hi All,
Kernel 5 fixed the issue with MTP and my wife's Android tablet.
If your's did not work, try again under kernel 5.
:-)
-T
5 years
Apache 2.4 and CustomLog with pipe returns "error writing"
by Alex
Hi,
I have a fedora28 system with apache-2.4.34 and would like to try to
do some more advanced logging to report on bandwidth, users, and other
stats.
I've identified this script as part of munin called apache_logger that
requires a change to how apache logs by default.
I've added the following to my virtual domain:
<IfModule mod_log_config.c>
CustomLog "|/usr/share/munin/apache_pipelogger" "%v %p %m %B %D %s"
</IfModule>
When reloading apache, it reports the following in the error_log:
[Wed Apr 03 14:35:50.129503 2019] [log_config:warn] [pid 18084:tid
140401642026752] (32)Broken pipe: [client 66.249.70.4:59383] AH00646:
Error writing to |/usr/share/munin/plugins/apache_pipelogger %v %p %m
%B %D %s
Is that the correct format? Perhaps this is the format for an
apache-2.2 script and the one for apache-2.4 is different?
I've tried several variations of this, including setting the LogFormat
and providing a name for it, but it always results in the same "error
writing" error.
The script I am using is here:
https://github.com/munin-monitoring/contrib/blob/master/plugins/apache/ap...
Would someone take a look for me and see what I'm doing wrong?
Also, does spawning a new shell for every hit cause a significant
amount of overhead? Should I consider doing this another way? What's
the best way to get stats from apache like bandwidth, users, page
views, error codes, etc in the form of a graph similar to what munin
produces?
5 years
Fedora sometimes fails to sleep when I close my laptop
by D. Hugh Redelmeier
I have a no-name netbook-style laptop running up-to-date Fedora 29.
<https://www.canadacomputers.com/product_info.php?cPath=710_577_367&item_i...>
When I close the lid, fedora almost always puts the notebook in sleep
mode. Unfortunately, once in a while, it does not. And then my battery
runs down.
The notebook has a light that indicates sleep by blinking slowly.
Unfortunately, it is not visible while the lid is closed. Bad design.
I could put the notebook to sleep and then close the lid, but this is
quite a bit more fiddly.
Why would Fedora fail to sleep once in a while?
Does anyone else experience this?
How would you go about diagnosing this problem?
(My fear is that this is a firmware bug. I'm pretty sure that there will
never be firmware updates.)
5 years
Alternative grub entries
by Patrick O'Callaghan
I'm interested in configuring grub to allow selecting different sets of
kernel parameters at boot time. I know I can edit the boot command line
by hand, but this is tedious and error-prone. (An example might be to
choose between the Nouveau and Nvidia drivers by selecting the
appropriate menu entry). And of course I'd want this updated
automatically with each new kernel version (i.e. each kernel would then
have two alternative entries).
How feasible is this?
poc
5 years
Resilient network configuration
by CLOSE Dave
On every version of Fedora in the last ten years or so, the basic
network configuration is stored in files under /etc/sysconfig. When the
machine boots or I run "systemctl restart network" (or "service network
restart"), those files determine how the network gets set-up. After
that, I can change the configuration with several tools. For example, I
can run something like,
# ip address add 192.168.0.37/24 dev eth0 label eth0:xx
and a new interface alias will be created. But how do I make this alias
resilient so that it will appear automatically after a boot or a network
restart?
For a primary interface with a static address, I may be able to add the
information as IPADDR2 (etc) in ifcfg-eth0. But how do I do this if the
primary interface gets its address via DHCP?
--
Dave Close
5 years