[gentoo-user] Memory leak

2015-02-22 Thread Alain Didierjean
My so called memory, located somewhere in what's left of my old brain.

I can't remember nor figure out how to set kdm keymap to azerty.
Help welcome,



Re: [gentoo-user] Re: rpm or deb package installs

2015-02-22 Thread Tom H
On Sat, Feb 14, 2015 at 1:30 AM, Alan McKinnon alan.mckin...@gmail.com wrote:

 rpms and debs are both cpio files so the easy way is to unpack them and
 see what's going on:

 rpm2cpio name.rpm | cpio -iv --make-directories
 dpkg -x somepackage.deb ~/temp/

For deb packages, you can use binutils' ar; there's no need for dpkg.
(IIRC, if you use rpm2tar, you don't need rpm installed unlike
rpm2cpio, but I'm not 100% sure.)



Re: [gentoo-user] What happened to my 2nd eth0?

2015-02-22 Thread Tom H
On Sat, Feb 21, 2015 at 11:52 PM, Walter Dnes waltd...@waltdnes.org wrote:


 My DSL router modem is at 192.168.123.254. I have an HDHomerun
 network TV tuner that insists on coming up somewhere in the 169.254.X.Y
 block. Up until upgrading from 32 to 64 bits, I was able to see a 2nd
 eth0 (i.e. eth0:1) using the following /etc/conf.d/net setup...

 config_eth0=
 192.168.123.251/29 broadcast 192.168.123.255
 169.254.1.1/16 broadcast 169.254.255.255
 routes_eth0=
 default via 192.168.123.254 metric 20
 192.168.123.248/29 via 192.168.123.254 metric 0
 169.254.0.0/16 via 169.254.1.1 metric 0

 The 2nd interface is no longer being set up. As amatter of fact, it
 appears to be totally unavailable. E.g

 [d531][root][~] /etc/init.d/net.eth0 stop
  * Unmounting network filesystems ... [ 
 ok ]
  * Bringing down interface eth0
 [d531][root][~] ifconfig eth0:0 192.168.123.251/29 broadcast 192.168.123.255
 SIOCSIFNETMASK: Cannot assign requested address

You cannot bring up an ip alias if the base ip address isn't set.


 [d531][root][~] ifconfig eth0 192.168.123.251/29 broadcast 192.168.123.255
 [d531][root][~]

 So my system doesn't support even the concept of an alias for eth0.
 Looking at the ifconfig manpage...

 interface
The  name  of the interface.  This is usually a driver name fol-
lowed by a unit number, for example eth0 for the first  Ethernet
interface.  If  your  kernel  supports alias interfaces, you can
specify them with eth0:0 for the first alias of  eth0.  You  can
use  them  to assign a second address. To delete an alias inter-
face use ifconfig eth0:0 down.  Note: for every scope (i.e. same
net  with  address/netmask combination) all aliases are deleted,
if you delete the first (primary).

 I see If  your  kernel  supports alias interfaces. During the
 upgrade, I built the kernel from square 1. I already ran into problems
 with not enabling FUSE in the new kernel, which killed MTP until I
 enabled it. I wouldn't be surprised if I've disabled some kernel
 parameter which is required to enable interface aliases. I didn't see
 anything obvious in make menuconfig. A Google search turned up a
 gazillion examples of how to create an alias using ifconfig. That's
 not what I want. I want the kernel setting that allows creating alias
 interfaces.

CONFIG_IP_ALIAS was dropped with v2.4

From 2.2 alias.txt:

For IP aliasing you must have IP_ALIAS support included by static
linking.

From 2.4 alias.txt:

IP-aliases are additional IP-adresses/masks hooked up to a base
interface by adding a colon and a string when running ifconfig.
This string is usually numeric, but this is not a must.

IP-Aliases are avail if CONFIG_INET (`standard' IPv4 networking)
is configured in the kernel.

From 3.19 alias.txt:

IP-aliases are an obsolete way to manage multiple IP-addresses/masks
per interface. Newer tools such as iproute2 support multiple
address/prefixes per interface, but aliases are still supported
for backwards compatibility.



Re: [gentoo-user] Memory leak

2015-02-22 Thread Frank Steinmetzger
On Sun, Feb 22, 2015 at 11:05:59AM +0100, Alain Didierjean wrote:
 My so called memory, located somewhere in what's left of my old brain.
 
 I can't remember nor figure out how to set kdm keymap to azerty.
 Help welcome,

I set mine in an xorg config file to get qwertz not only in KDM but all of X by
default:

cat /etc/X11/xorg.conf.d/input.conf
Section InputDevice
Identifier  Keyboard0
Driver  kbd
Option  XkbRules  xorg
Option  XkbModel  pc102
Option  XkbLayout de
Option  XkbVariantdeadkeys
EndSection

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me on any social network.

There is so much sand in Northern Africa that if it were spread out it
would completely cover the Sahara Desert.


signature.asc
Description: Digital signature


Re: [gentoo-user] Boot up error messages. Init thingy needed now??

2015-02-22 Thread Tom H
On Sat, Feb 7, 2015 at 3:13 PM, Rich Freeman ri...@gentoo.org wrote:
 On Sat, Feb 7, 2015 at 2:25 PM, Dale rdalek1...@gmail.com wrote:

 My partitions are something like this. Normal partitions, /boot and
 root itself. /usr and /var on LVM.

 Gentoo dropped support for booting without mounting /usr early in boot
 a while back. That isn't to say that it would have instantly stopped
 working, but there is no requirement for package maintainers to
 support this configuration, and many upstreams have been moving in
 directions that will tend to break this.

 There are many ways to get around this. The most common is to mount
 /usr from your initramfs. Another option is to run a script early
 during boot to mount /usr, ensuring that the necessary tools to do so
 are on your root partition. Another option is to put /usr on your
 root partition. I'm sure there are other options as well, but in
 general you can't always rely on your root partition being able to
 mount /usr these days.

FTR, there's also a busybox sep-usr USE flag.

It installs a static busybox at /ginit.

When you use init=/ginit at the kernel cmdline, it mounts /usr
early and then executes /sbin/init.



Re: [gentoo-user] Memory leak

2015-02-22 Thread Alain Didierjean


- Mail original -
 De: Mick michaelkintz...@gmail.com
 À: gentoo-user@lists.gentoo.org
 Envoyé: Dimanche 22 Février 2015 12:19:25
 Objet: Re: [gentoo-user] Memory leak
 
 On Sunday 22 Feb 2015 11:05:59 Alain Didierjean wrote:
  My so called memory, located somewhere in what's left of my old
  brain.
  
  I can't remember nor figure out how to set kdm keymap to azerty.
  Help welcome,
 
 Have a look in /usr/share/keymaps/i386/azerty/
 
 If your desired keymap is say:
 
   fr-latin9.map.gz
 
 then add fr-latin9 in your /etc/conf.d/keymaps:
 
 keymap=fr-latin9
 
 then reboot, or use the loadkeys command:
 
   loadkeys /usr/share/keymaps/i386/azerty/fr-latin9.map.gz
 
 if you don't want to reboot.


I do have keymap set to fr-latin9. It works for the Desktopk, not for kdm !!

To Frank Steinmetzger : I used to set the keymap in xorg, there's no more a 
xorg file in my setup. Too bad!



Re: [gentoo-user] What happened to my 2nd eth0?

2015-02-22 Thread Mick
On Sunday 22 Feb 2015 04:52:34 Walter Dnes wrote:
   My DSL router modem is at 192.168.123.254.  I have an HDHomerun
 network TV tuner that insists on coming up somewhere in the 169.254.X.Y
 block.  Up until upgrading from 32 to 64 bits, I was able to see a 2nd
 eth0 (i.e. eth0:1) using the following /etc/conf.d/net setup...
 
 config_eth0=
 192.168.123.251/29 broadcast 192.168.123.255
 169.254.1.1/16 broadcast 169.254.255.255

Is there a reason you need to define a broadcast if you are using CIDR 
notation?


 routes_eth0=
 default via 192.168.123.254 metric 20
 192.168.123.248/29 via 192.168.123.254 metric 0

Isn't the above redundant if you have defined an identical default route?

 169.254.0.0/16 via 169.254.1.1 metric 0



   The 2nd interface is no longer being set up.  As amatter of fact, it
 appears to be totally unavailable.  E.g
 
 [d531][root][~] /etc/init.d/net.eth0 stop
  * Unmounting network filesystems ... [
 ok ] * Bringing down interface eth0
 [d531][root][~] ifconfig eth0:0 192.168.123.251/29 broadcast
 192.168.123.255 SIOCSIFNETMASK: Cannot assign requested address
 [d531][root][~] ifconfig eth0 192.168.123.251/29 broadcast 192.168.123.255
 [d531][root][~]
 
   So my system doesn't support even the concept of an alias for eth0.
 Looking at the ifconfig manpage...

Unless you have set up:

modules=!iproute2

netifrc will not use ifconfig.

 interface
The  name  of the interface.  This is usually a driver name fol-
lowed by a unit number, for example eth0 for the first  Ethernet
interface.  If  your  kernel  supports alias interfaces, you can
specify them with eth0:0 for the first alias of  eth0.  You  can
use  them  to assign a second address. To delete an alias inter-
face use ifconfig eth0:0 down.  Note: for every scope (i.e. same
net  with  address/netmask combination) all aliases are deleted,
if you delete the first (primary).
 
   I see If  your  kernel  supports alias interfaces.  During the
 upgrade, I built the kernel from square 1.  I already ran into problems
 with not enabling FUSE in the new kernel, which killed MTP until I
 enabled it.  I wouldn't be surprised if I've disabled some kernel
 parameter which is required to enable interface aliases.  I didn't see
 anything obvious in make menuconfig.  A Google search turned up a
 gazillion examples of how to create an alias using ifconfig.  That's
 not what I want.  I want the kernel setting that allows creating alias
 interfaces.

The kernel option you want is:

CONFIG_IP_MULTIPLE_TABLES=y


Also, if you want to set up the HDHomerun to do the right thing, i.e. NOT use 
local-link addresses, then according to Google you could try:

“A static IP address can be configured using the following command (the quotes 
are required as shown):
Format:  hdhomerun_config old ip set /sys/ipaddr new ip subnet 
gateway
Example: hdhomerun_config 169.254.34.98 set /sys/ipaddr 10.10.20.43 
255.255.255.0 10.10.20.1

The TECH3 can be configured for DHCP operation (default) using the following 
command:
Format:  hdhomerun_config old ip set /sys/ipaddr dhcp
Example: hdhomerun_config 169.254.34.98 set /sys/ipaddr dhcp”


I think different variables can be saved in its /sys/boot, including a static 
IP address, so that they persist over reboots.

HTH
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: [NOTE] New default behavior in latest nfs-utils (1.3.2-r1)

2015-02-22 Thread Tom H
On Tue, Feb 3, 2015 at 7:05 PM, walt w41...@gmail.com wrote:
 On 02/03/2015 03:29 AM, Tom H wrote:
 On Mon, Feb 2, 2015 at 8:46 PM, walt w41...@gmail.com wrote:

 This morning I got waiting on lockfile foo in /usr/portage/distfiles
 locking not available from my nfs3 clients when trying to download
 needed source files.

 I don't recall having this problem back in my former nfs3-only days.
 Maybe I've forgotten something obvious that I did back then?

 There used to be an rpc.lockd daemon but lockd's been moved to a
 kernel module for nfsv3 and to nfsd for nfsv4. RHEL 5 has it
 (nfs-utils 1.09) and RHEL 6 doesn't (nfs-utils 1.2) so it must've been
 dropped with v1.1 or v1.2. I don't know when it was dropped in Gentoo
 terms (probably 6-7 years ago). Does this ring a bell?

 Yes, I remember rpc.lockd.

 Does file locking work for an nfsv3 mount after you re-enable nfsv4 in
 your kernel config?

 Hm.  No, I still get the same No locks available error.

 If no, then are you setting static ports for statd and lockd and
 allowing access to these ports with iptables?

 N, that's way above my pay grade :)

 I mentioned earlier in this thread that, when I run this command:

 #mount.nfs a6://usr/portage /usr/portage -o nfsvers=3

 it hangs indefinitely, but if I hit Ctrl-c and quickly re-run the same
 command it succeeds. (I've been trying to measure what quickly means
 but it seems to vary, seems random, but always less than a minute.)

I now remember you saying earlier. Sorry.

I can't think of how or why!

Does using mount -v ... show different outputs for the failing and
successful mounts?


 I'm posting this info mainly for the benefit of future googlers because
 nfs4 is working well and I don't really *need* nfs3.

 If you're interested in this problem I'd be happy to try any/all debugging
 experiments, but otherwise don't spend any more time on it.

 Many thanks for your help, Tom

You're welcome, with apologies for the delayed response.



Re: [gentoo-user] Memory leak

2015-02-22 Thread Mick
On Sunday 22 Feb 2015 11:05:59 Alain Didierjean wrote:
 My so called memory, located somewhere in what's left of my old brain.
 
 I can't remember nor figure out how to set kdm keymap to azerty.
 Help welcome,

Have a look in /usr/share/keymaps/i386/azerty/

If your desired keymap is say:

  fr-latin9.map.gz

then add fr-latin9 in your /etc/conf.d/keymaps:

keymap=fr-latin9

then reboot, or use the loadkeys command:

  loadkeys /usr/share/keymaps/i386/azerty/fr-latin9.map.gz

if you don't want to reboot.

-- 
Regards,
Mick



Re: [gentoo-user] Memory leak

2015-02-22 Thread Mick
On Sunday 22 Feb 2015 14:53:19 Alain Didierjean wrote:
 - Mail original -
 
  De: Mick michaelkintz...@gmail.com
  À: gentoo-user@lists.gentoo.org
  Envoyé: Dimanche 22 Février 2015 12:19:25
  Objet: Re: [gentoo-user] Memory leak
  
  On Sunday 22 Feb 2015 11:05:59 Alain Didierjean wrote:
   My so called memory, located somewhere in what's left of my old
   brain.
   
   I can't remember nor figure out how to set kdm keymap to azerty.
   Help welcome,
  
  Have a look in /usr/share/keymaps/i386/azerty/
  
  If your desired keymap is say:
fr-latin9.map.gz
  
  then add fr-latin9 in your /etc/conf.d/keymaps:
  
  keymap=fr-latin9
  
  then reboot, or use the loadkeys command:
loadkeys /usr/share/keymaps/i386/azerty/fr-latin9.map.gz
  
  if you don't want to reboot.
 
 I do have keymap set to fr-latin9. It works for the Desktopk, not for kdm
 !!

I assume that you also have your LINGUAS set accordingly too?  Have you 
checked the keyboard settings in KDE in case KDM can be configured there too?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Memory leak

2015-02-22 Thread Rich Freeman
On Sun, Feb 22, 2015 at 5:05 AM, Alain Didierjean
alain.didierj...@free.fr wrote:
 My so called memory, located somewhere in what's left of my old brain.

 I can't remember nor figure out how to set kdm keymap to azerty.
 Help welcome,


Just a suggestion that more accurate subject lines are more likely to
get you help, since an X11 expert might skip over an email thread that
purports to be discussing memory leaks, while the valgrind experts are
probably annoyed at the same time.  It also makes the archives more
useful for posterity.

-- 
Rich



Re: [gentoo-user] how to solve this dependency problem?

2015-02-22 Thread Peter Humphrey
On Sunday 22 February 2015 00:35:59 lee wrote:

 how would I solve this dependency problem:
 
 media-libs/openjpeg:2
 
   (media-libs/openjpeg-2.1.0:2/7::gentoo, ebuild scheduled for merge)
 conflicts with media-libs/openjpeg-2.1:2 required by
 (app-text/mupdf-1.3_p20140118:0/1.3::gentoo, installed) ^
^^^
 Is there even a difference between version 2.1 and 2.1.0?

It's telling you that mupdf requires openjpeg at version less than 2.1, 
but portage wants to install version equal to 2.1. You haven't told us 
why portage wants version 2.1.0, but have you tried remerging mupdf?

-- 
Rgds
Peter.




Re: [gentoo-user] Memory leak

2015-02-22 Thread Matti Nykyri
 On Feb 22, 2015, at 12:53, Frank Steinmetzger war...@gmx.de wrote:
 
 On Sun, Feb 22, 2015 at 11:05:59AM +0100, Alain Didierjean wrote:
 My so called memory, located somewhere in what's left of my old brain.
 
 I can't remember nor figure out how to set kdm keymap to azerty.
 Help welcome,
 
 I set mine in an xorg config file to get qwertz not only in KDM but all of X 
 by
 default:
 
 cat /etc/X11/xorg.conf.d/input.conf
 Section InputDevice
Identifier  Keyboard0
Driver  kbd
Option  XkbRules  xorg
Option  XkbModel  pc102
Option  XkbLayout de
Option  XkbVariantdeadkeys
 EndSection

The right place for this in a modern X11 is evdev (event device). The other 
input devices are deprecated in favor of evdev. There is an old news item with 
regard to this in the portage. You might find it from some archive.

Any how the X11 is the right place to set the keymap. Then it is set system 
wise and affects all display-managers you might have.

-- 
-Matti


Re: [gentoo-user] Re: repos.conf migration lost overlay priority

2015-02-22 Thread lee
Nikos Chantziaras rea...@gmail.com writes:

 On a side note, someone should inform the portage devs that higher
 priorities should equal lower numbers. Don't do it the opposite way to
 the rest of the world, please :-P

Why should low mean high?  The rest of the world usually considers
high as high and low as low.


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] Re: repos.conf migration lost overlay priority

2015-02-22 Thread Daniel Frey
On 02/22/2015 03:26 AM, lee wrote:
 Nikos Chantziaras rea...@gmail.com writes:
 
 On a side note, someone should inform the portage devs that higher
 priorities should equal lower numbers. Don't do it the opposite way to
 the rest of the world, please :-P
 
 Why should low mean high?  The rest of the world usually considers
 high as high and low as low.
 
 

That's not how the real world deals with priority lists. If I have
something urgent and I tell someone it's priority 10 they'll tell me to
I'll have to deal with it faster than that.

1=First thing to do
2=Second thing to do
etc...

Dan



[gentoo-user] how to solve this dependency problem?

2015-02-22 Thread lee
Hi,

how would I solve this dependency problem:


media-libs/openjpeg:2

  (media-libs/openjpeg-2.1.0:2/7::gentoo, ebuild scheduled for merge) conflicts 
with
media-libs/openjpeg-2.1:2 required by 
(app-text/mupdf-1.3_p20140118:0/1.3::gentoo, installed)
^^^^  


Is there even a difference between version 2.1 and 2.1.0?


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] nomachine on Gentoo

2015-02-22 Thread lee
Joseph syscon...@gmail.com writes:

 Did anybody install nomashine on Gentoo?
 I run onto this instruction, but did not try it yet:
 http://www.thejach.com/view/2014/9/installing_nomachine_on_gentoo

 I'm running nxclient-3.5xxx and nxserver-freenx-0.7xxx
 and I'm afraid something will stop working on my server if I install
 nomashine 

 I've an old laptop and tried Xubuntu Fedora but none of them have 
 nxclient-3.5xxx
 I've found freenx-client on SUSE distro but that distro mostly comes with 
 Gnome or KDE desktop (too heavy for my old laptop).

Sounds like you might want to look at LTSP?


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] how to solve this dependency problem?

2015-02-22 Thread Alexander Kapshuk
On Sun, Feb 22, 2015 at 1:35 AM, lee l...@yagibdah.de wrote:

 Hi,

 how would I solve this dependency problem:


 media-libs/openjpeg:2

   (media-libs/openjpeg-2.1.0:2/7::gentoo, ebuild scheduled for merge)
 conflicts with
 media-libs/openjpeg-2.1:2 required by
 (app-text/mupdf-1.3_p20140118:0/1.3::gentoo, installed)
 ^^^^


 Is there even a difference between version 2.1 and 2.1.0?


 --
 Again we must be afraid of speaking of daemons for fear that daemons
 might swallow us.  Finally, this fear has become reasonable.


What's the output of 'emerge -auND --tree --unordered-display @world'?


Re: [gentoo-user] Re: rpm or deb package installs

2015-02-22 Thread R0b0t1
 For deb packages, you can use binutils' ar; there's no need for dpkg.
 (IIRC, if you use rpm2tar, you don't need rpm installed unlike
 rpm2cpio, but I'm not 100% sure.)


You are right, rpm2targz doesn't require rpm to be installed. I found
I already had it installed yesterday (via libreoffice).



Re: [gentoo-user] syslog-ng: how to read the log files

2015-02-22 Thread lee
Jan Sever n...@email.cz writes:

 On 02/19/2015 08:02 PM, Fernando Rodriguez wrote:
 On Tuesday, February 17, 2015 7:26:05 PM lee wrote:
 Hi,

 how do you read the log files when using syslog-ng?

 The log file seem to be some sort of binary that doesn't display too
 well in less, and there doesn't seem to be any way to read them.



 
 You can just pipe the output of strings /var/log/messages to less. You can
 use 
 strings(1) for systemd  journal files also.

 Yeah and you can check whether it contains any binary data by
 diff (strings /var/log/messages) /var/log/messages

Well, yes; see it this way:

I never used syslog-ng before.  When I had to fix some problems, I
wanted to read the log files.  Less showed them in some hexl-mode, and
it has never done anything like that before.  I didn't even know that it
has this hexl-mode.

So I googled for how to read those log files because I figured that
syslog-ng perhaps uses some stupid binary format and that there might be
some program you're supposed to read them with.  That didn't turn up
anything and it really sucked.

How am I supposed to know that there's a combination of a three-year-old
bug and totally unexpected behaviour of less preventing me from reading
these logs?


Try something like 'less /boot/vmlinuz-3.17.8-gentoo-r1' and you don't
get hexl-mode.  Why such a surprise when trying to read a log file?


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] saslauthd startup parameters

2015-02-22 Thread lee
Adam Carter adamcart...@gmail.com writes:


 where are we supposed to set the parameters for saslauthd?

 I edited /etc/init.d/saslauthd, and that's probably not the right place
 to put them?


 There's probably a saslauthd file in /etc/conf.d

Hm, I need to check again to be sure whether there is or isn't.

If there is, then how is it included into the startup script?  And why
isn't there anything in /etc/default for it, where I would expect it?

Or, more general, what are the criteria with Gentoo whether to put such
a file into /etc/default or into /etc/conf.d?


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] syslog-ng: how to read the log files

2015-02-22 Thread lee
Neil Bothwick n...@digimed.co.uk writes:

 On Wed, 18 Feb 2015 21:49:54 +0100, lee wrote:

  I wonder if the OP is using systemd and trying to read the journal
  files?  
 
 Nooo, I hate systemd ...
 
 What good are log files you can't read?

 You can't read syslog-ng log files without some reading software, usually
 a combination of cat, grep and less. systemd does it all with journalctl.

 There are good reasons to not use systemd, this isn't one of them.

To me it is one of the good reasons, and an important one.  Plain text
can usually always be read without further ado, be it from rescue
systems you booted or with software available on different operating
systems.  It can be also be processed with scripts and sent as email.
You can probably even read it on your cell phone.  You can still read
log files that were created 20 years ago when they are plain text.

Can you do all that with the binary files created by systemd?  I can't
even read them on a working system.


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] syslog-ng: how to read the log files

2015-02-22 Thread lee
Stroller strol...@stellar.eclipse.co.uk writes:

 On Wed, 18 February 2015, at 8:40 pm, lee l...@yagibdah.de wrote:
 
 The log file seem to be some sort of binary that doesn't display too
 well in less, and there doesn't seem to be any way to read them.
 
 I believe this may be bug 406623.
 
 https://bugs.gentoo.org/show_bug.cgi?id=406623
 
 That's almost three years old and should apparently be fixed?

 It's only been closed in the last few weeks. 

Still I wonder why it took so long to fix it.

 See for example, comment 36, November last year (i.e. 3 or 4 months old), 
 This isn't resolved unless commit f4ae768 is backported or =3.5.6 is 
 stabilised.

 https://bugs.gentoo.org/show_bug.cgi?id=406623#c36

 Since you haven't told us what version of syslog-ng you're running, I think 
 it's reasonable to suspect you've not updated it recently.

The server was installed the week before the last, starting with the
latest live DVD.  It has been updated.  I can't tell what version it is
because it's at work.

 Of course the characters could be left in your logfile from months ago, if 
 you've not been rotating logs.

 If it's not that bug, though, you should prolly file a new one.

Dunno, I've edited the file and removed the null characters.  Time will
tell whether new ones will be logged or not.


IIUC, syslog-ng handles rotating the logs.  Do I need to do something to
make it rotate them?


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] syslog-ng: how to read the log files

2015-02-22 Thread Canek Peláez Valdés
On Sun, Feb 22, 2015 at 6:48 PM, lee l...@yagibdah.de wrote:

 Stroller strol...@stellar.eclipse.co.uk writes:

  On Wed, 18 February 2015, at 8:40 pm, lee l...@yagibdah.de wrote:
 
  The log file seem to be some sort of binary that doesn't display too
  well in less, and there doesn't seem to be any way to read them.
 
  I believe this may be bug 406623.
 
  https://bugs.gentoo.org/show_bug.cgi?id=406623
 
  That's almost three years old and should apparently be fixed?
 
  It's only been closed in the last few weeks.

 Still I wonder why it took so long to fix it.

  See for example, comment 36, November last year (i.e. 3 or 4 months
old), This isn't resolved unless commit f4ae768 is backported or =3.5.6
is stabilised.
 
  https://bugs.gentoo.org/show_bug.cgi?id=406623#c36
 
  Since you haven't told us what version of syslog-ng you're running, I
think it's reasonable to suspect you've not updated it recently.

 The server was installed the week before the last, starting with the
 latest live DVD.  It has been updated.  I can't tell what version it is
 because it's at work.

  Of course the characters could be left in your logfile from months ago,
if you've not been rotating logs.
 
  If it's not that bug, though, you should prolly file a new one.

 Dunno, I've edited the file and removed the null characters.  Time will
 tell whether new ones will be logged or not.


 IIUC, syslog-ng handles rotating the logs.  Do I need to do something to
 make it rotate them?

syslog-ng, as long as I remember, has never rotated its logs. You need
logrotate (or something similar) to do it for you.

Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México


Re: [gentoo-user] syslog-ng: how to read the log files

2015-02-22 Thread Canek Peláez Valdés
On Sun, Feb 22, 2015 at 6:41 PM, lee l...@yagibdah.de wrote:

 Neil Bothwick n...@digimed.co.uk writes:

  On Wed, 18 Feb 2015 21:49:54 +0100, lee wrote:
 
   I wonder if the OP is using systemd and trying to read the journal
   files?
 
  Nooo, I hate systemd ...
 
  What good are log files you can't read?
 
  You can't read syslog-ng log files without some reading software,
usually
  a combination of cat, grep and less. systemd does it all with
journalctl.
 
  There are good reasons to not use systemd, this isn't one of them.

 To me it is one of the good reasons, and an important one.  Plain text
 can usually always be read without further ado, be it from rescue
 systems you booted or with software available on different operating
 systems.  It can be also be processed with scripts and sent as email.
 You can probably even read it on your cell phone.  You can still read
 log files that were created 20 years ago when they are plain text.

 Can you do all that with the binary files created by systemd?

Yes, you can.

 I can't even read them on a working system.

If that's true (which I highly doubt, more probably you don't know how to
read them), then it's a bug and should be reported and fixed.

Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México


Re: [gentoo-user] syslog-ng: how to read the log files

2015-02-22 Thread Rich Freeman
On Sun, Feb 22, 2015 at 6:41 PM, lee l...@yagibdah.de wrote:

 To me it is one of the good reasons, and an important one.  Plain text
 can usually always be read without further ado, be it from rescue
 systems you booted or with software available on different operating
 systems.  It can be also be processed with scripts and sent as email.
 You can probably even read it on your cell phone.  You can still read
 log files that were created 20 years ago when they are plain text.

Doing any of that stuff requires the use of software capable of
reading text files.  It isn't like you can just interpret the magnetic
fields on your disk with your eyes.

Sure, there are a lot more utilities that can read text files than
journal files, but you just need to arrange to have them handy.
They'll be ubiquitous before long since every distro around will end
up needing them.


 Can you do all that with the binary files created by systemd?  I can't
 even read them on a working system.


You just type journalctl to read the live system logs.  For offline
use you just type journalctl --file=filename.  Or you can just run
strings on the file I imagine if you're desperate.  If it doesn't work
on a working system then your system isn't working.


-- 
Rich



Re: [gentoo-user] syslog-ng: how to read the log files

2015-02-22 Thread Dale
Peter Humphrey wrote:
 On Sunday 22 February 2015 20:57:43 Dale wrote:
 I think you need this:

 app-admin/logrotate

 Then I think a cron package is needed to run that, set to daily here I
 think.
 It comes with logrotate:

 /etc/cron.daily/logrotate


The script does but if you don't have a cron package installed, nothing
will run to rotate the logs.  Maybe my message wasn't worded correctly? 
It's been a long week.  ;-)

Dale

:-)  :-)



Re: [gentoo-user] syslog-ng: how to read the log files

2015-02-22 Thread Dale
lee wrote:
 IIUC, syslog-ng handles rotating the logs. Do I need to do something
 to make it rotate them? 

I think you need this:

app-admin/logrotate

Then I think a cron package is needed to run that, set to daily here I
think.

Hope that helps.

Dale

:-)  :-) 



Re: [gentoo-user] saslauthd startup parameters

2015-02-22 Thread Neil Bothwick
On Mon, 23 Feb 2015 01:07:55 +0100, lee wrote:

  There's probably a saslauthd file in /etc/conf.d  
 
 Hm, I need to check again to be sure whether there is or isn't.
 
 If there is, then how is it included into the startup script?  And why
 isn't there anything in /etc/default for it, where I would expect it?
 
 Or, more general, what are the criteria with Gentoo whether to put such
 a file into /etc/default or into /etc/conf.d?

/etc/conf.d is an openrc feature. Any script in /etc/init.d should read
the corresponding file in conf.d. It is openrc's way of separating
configuration from the init scripts.

If the file doesn't exist, create it, but most packages include an
example conf.d file.


-- 
Neil Bothwick

Did you hear about the blind prostitute? You have to hand it to her.


pgpoN55CRN0ek.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] syslog-ng: how to read the log files

2015-02-22 Thread Peter Humphrey
On Sunday 22 February 2015 20:57:43 Dale wrote:
 I think you need this:
 
 app-admin/logrotate
 
 Then I think a cron package is needed to run that, set to daily here I
 think.

It comes with logrotate:

/etc/cron.daily/logrotate

-- 
Rgds
Peter.