Re: [gentoo-user] Package conflict while trying to emerge chromium

2015-02-18 Thread Marc Joliet
Am Tue, 17 Feb 2015 21:43:22 -0500
schrieb "Walter Dnes" :

> On Tue, Feb 17, 2015 at 11:09:43PM +0100, Marc Joliet wrote
> > Am Tue, 17 Feb 2015 12:09:23 +
> > schrieb Stroller :
> > 
> > > 
> > > On Sat, 14 February 2015, at 10:36 am, Marc Joliet  wrote:
> > > 
> > > > Personally, I don't like that way of doing things, because unless you
> > > > you completely deactivate Flash, Youtube will stupidly never attempt
> > > > to use HTML5 videos
> > > 
> > > YouTube have recently switched to HTML5 as the default:
> > > 
> > > http://www.theverge.com/2015/1/27/7926001/youtube-drops-flash-for-html5-video-default
> > 
> > Excellent :-) !
> > 
> > One minor(!) problem though: that does not include the current
> > Firefox 35 (they say they enabled HTML5 video for Firefox *betas*).
> > But starting with Firefox 36 I'll try running without FlashDisable
> > and see what it's like.
> 
>   I'm running the Seamonkey-2.32 variant of Firefox, and Seamonkey is
> nowhere near Firefox beta.  It seems to work on Youtube in HTML5.  A few
> oddities, which may or may not be specific to Seamonkey...
> 
> - It has only 2 resolutions... 360p... and "auto"... which gives 360p.
>   This is the case even for "1080p demo" videos.  Mind you, the video
>   quality looks (to me at least) a lot better than 360p on Flash looks.

Hmm, that's certainly an oddity.  What about this video:
https://www.youtube.com/watch?v=kHO389dvj6Y.  I get the choice between 360p and
720p.

> - There are 2 player sizes.  "Default" is the standard size that you're
>   used to in the upper left corner of the screen.  "Theater Mode" expands
>   to the full width of the browser.  The vertical size scales to the
>   proper height for the aspect ratio.  However, it's not true fullscreen
>   because you still see the browser frame/bars/etc, even if the browser
>   is maximized.  On some other HTML5 video demos, you can right click,
>   and get a menu which includes a "Fullscreen" item that gives true
>   fullscreen.  But this does not appear on Youtube.

I do get the fullscreen option, it appears right next to the "theater" mode
button.

> - Last, but not least, the cpu load is a lot lower when playing HTML5
>   video than Flash video.  This is important to me, because I'm trying
>   to run my 7 and 1/2 year old Dell (Intel Core Duo) into the ground.
>   It refuses to die.

My Desktop is similarly old (Athlon64 X2 EE), but a couple of upgrades have kept
it mostly pleasant to use, although one can "compensate" an old CPU only so
much.  As far as I remember the only things that have died so far are HDDs and
PSUs (oh, and the original GPU!).

>   I have multiple Seamonkey profiles, dedicated to specific tasks (You
> can do this with Firefox, too).  It's ironic that the first profile on
> which I can turn off Flash is my "youtube" profile.  I still need Flash
> for NHL GameCentreLive, internet radio, etc.  Your version of Firefox
> might HTML5 video now.  Try it.

It's not that it doesn't do HTML5 video, I've been using that ever since I
noticed the "gstreamer" USE flag in December 2012 (/etc in git is nice ;)).
It's just that I can't deactivate FlashDisable and expect YouTube to default to
HTML5 videos yet (see the top of the quoted text above).

FWIW, I *did* try it and still got the undesired behaviour (Youtube trying to
use Flash).

Hmm, maybe you're logged in to Youtube?  Or maybe I didn't wait long enough
after the "please activate your Flash plug-in" message? Or maybe they treat
Seamonkey differently (but why?)?  I suppose I'll try again later.

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup


pgppp6LXRUqYW.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Package conflict while trying to emerge chromium

2015-02-18 Thread Gevisz
On Tue, 17 Feb 2015 12:09:23 + Stroller  
wrote:

> 
> On Sat, 14 February 2015, at 10:36 am, Marc Joliet  wrote:
> 
> > Personally, I don't like that way of doing things, because unless you
> > completely deactivate Flash, Youtube will stupidly never attempt to use 
> > HTML5
> > videos
> 
> YouTube have recently switched to HTML5 as the default:
> 
> http://www.theverge.com/2015/1/27/7926001/youtube-drops-flash-for-html5-video-default
> 

It is a good news!



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

2015-02-18 Thread Peter Humphrey
On Wednesday 18 February 2015 07:38:46 Mick wrote:
> On Tuesday 17 Feb 2015 23:13:08 Peter Humphrey wrote:
> > Actually, this is what I did, as I reported here on 26/12:
> > > 1.Boot rescue system and mount main system
> > > 2.# cd /mnt/main/var/log
> > > 3.# mv messages messages.bin
> > > 4.# strings messages.bin > messages
> > > 5.# rm messages.bin
> > > 6.Reboot.
> 
> How often do you have to do this?

Just the once. Whatever bug caused it seems to have been fixed.

-- 
Rgds
Peter.




[gentoo-user] rebuilds during emerge

2015-02-18 Thread Harry Putnam
Is there something I need to do when I see emerge -vUNDp @world like
this?

emerge -vuNDp @world (wrapped for mail)

 [snipped some 43 other pkgs]

[The following line beginning with `[ebuild ...' (wrapped) is just to
allow any reader to understand they are at the end of pkgs ouput]
 
,   
|   [ebuild U ] sys-apps/shadow-4.2.1-r1 [4.2.1] USE="cracklib nls pam
|   -acl -audit (-selinux) -skey -xattr" LINGUAS="-cs% -da% -de% -es%
|   -fi% -fr% -hu% -id% -it% -ja% -ko% -pl% -pt_BR% -ru% -sv% -tr%
|   -zh_CN% -zh_TW%" 0 KiB
| 
| Total: 44 packages (39 upgrades, 1 in new slot, 4 reinstalls), Size of
| downloads: 255789 KiB
| 
| The following packages are causing rebuilds:
| 
|   (x11-base/xorg-server-1.17.1:0/1.17.1::gentoo, ebuild scheduled for merge) 
causes rebuilds for:
| (x11-drivers/xf86-input-keyboard-1.8.0:0/0::gentoo, ebuild scheduled for 
merge)
| (x11-drivers/xf86-input-evdev-2.9.1:0/0::gentoo, ebuild scheduled for 
merge)
| (x11-drivers/xf86-video-virtualbox-4.3.20:0/0::gentoo, ebuild scheduled 
for merge)
| (x11-drivers/xf86-input-mouse-1.9.1:0/0::gentoo, ebuild scheduled for 
merge)
`

Do those last 5 need some special attention?




Re: [gentoo-user] rebuilds during emerge

2015-02-18 Thread Matti Nykyri
> On Feb 18, 2015, at 11:50, Harry Putnam  wrote:
> 
> Is there something I need to do when I see emerge -vUNDp @world like
> this?
> 
> emerge -vuNDp @world (wrapped for mail)
> 
> [snipped some 43 other pkgs]
> 
> [The following line beginning with `[ebuild ...' (wrapped) is just to
> allow any reader to understand they are at the end of pkgs ouput]
> 
> ,   
> |   [ebuild U ] sys-apps/shadow-4.2.1-r1 [4.2.1] USE="cracklib nls pam
> |   -acl -audit (-selinux) -skey -xattr" LINGUAS="-cs% -da% -de% -es%
> |   -fi% -fr% -hu% -id% -it% -ja% -ko% -pl% -pt_BR% -ru% -sv% -tr%
> |   -zh_CN% -zh_TW%" 0 KiB
> | 
> | Total: 44 packages (39 upgrades, 1 in new slot, 4 reinstalls), Size of
> | downloads: 255789 KiB
> | 
> | The following packages are causing rebuilds:
> | 
> |   (x11-base/xorg-server-1.17.1:0/1.17.1::gentoo, ebuild scheduled for 
> merge) causes rebuilds for:
> | (x11-drivers/xf86-input-keyboard-1.8.0:0/0::gentoo, ebuild scheduled 
> for merge)
> | (x11-drivers/xf86-input-evdev-2.9.1:0/0::gentoo, ebuild scheduled for 
> merge)
> | (x11-drivers/xf86-video-virtualbox-4.3.20:0/0::gentoo, ebuild scheduled 
> for merge)
> | (x11-drivers/xf86-input-mouse-1.9.1:0/0::gentoo, ebuild scheduled for 
> merge)
> `
> 
> Do those last 5 need some special attention?

No. 

Emerge is just letting you know that because you are updating xorg-server the 
following packages are rebuilt agains the new version of xorg. If you scroll up 
the list, you will see that x11-drivers/xf86... packages are marked with R.

-- 
-Matti


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

2015-02-18 Thread Stroller

On Tue, 17 February 2015, at 6:26 pm, lee  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

Note comment #2 - the "binary zero characters" are not visible with every 
editor, but if I recollect I was able to see them and delete them when I opened 
the log files in vim. I think they displayed as "@^" in vim.

Once you know where to look, you can also identify the binary characters using 
`hexdump -C /var/log/messages`.

I am now running app-admin/syslog-ng-3.4.8 and have threading enabled and the 
problem is now no longer occurring. 

You can establish whether you're affected by 406623 simply by deleting the 
character(s) (renaming the log file would probably work, too) and rebooting the 
system. My experience was that the text logfile is "turned to binary" on reboot 
- the binary characters were logged as part of the kernel's startup messages. 
This was repeatable and predictable.

Stroller.




Re: [gentoo-user] cookies

2015-02-18 Thread Valentijn van de Beek
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 02/17/2015 04:50 AM, Joseph wrote:
> In my firefox I have setting: - Accept cookies YES - From third 
> parties NEVER - ask me every time
> 
> Some webpages keep sending "100's of cookies" so I decline them. 
> Sometime, I'm tires of clicking NO so I just kill the process and 
> restart firefox.  Is there any plug in to better manage cookies; 
> allow me to decline them ALL.
> 
> I don't want to change setting:  Accept cookies NO
> 
You could try Self-Destructing Cookies which will delete the cookies
when you leave the tab.

https://addons.mozilla.org/en-US/firefox/addon/self-destructing-cookies/?src=api
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBCAAGBQJU5KeLAAoJEC5Z2audtEIvqYcP/0oIqKhX7xAj4rvlvn7RVUFs
vR03Q3NbHrlFBpSP2fJc1+vv5TVU5tMCxu5wmMBERUmkX+WIua3Elm/pj9mETzSs
xjfy2jQhx7bGhxgD7UNtjQqMWmmvn4evwhmxBc5VKInwg28jGZR0aHI7CN9tF5bm
M/rDuJ9m1XTf1yOX9Rha7JgzavMicjJBDgphGJBlQfcutGx+MRfHG3zhGq+XiR2/
Hd0LZHYNFM2iLThrSczo2CFFxMaZdP1enEjM5pRMxWT+7n6KL3a2UCZp3yT41vgV
DVJyhjpL3YKQb0m/xSUU7qJ1t7wE/V+sLtzLhoRdkAuy6sf6+f8H1ir+P9otYSsp
JB3Dvmx0fLesfyzVnRMHKcJsIqhM3Wcu00qDuYoPWhg6zbwEyoyKvG5inYAnxfOE
sXU00ZP98X5i3g0miswTUl+0DTHzj0A8/39Xa3FiRglYuijeQ4PIaayWpvG5ovFY
8N0ssF3FfXTh6fxAgPrpiY2co+7xguwZf3VZv/WuJqcSFSMDN7M/1sDz+OcIgrhr
qate1R6rcCkOATkR6+WbUiV4OL196MUPxAckwYNQvFyTHx4S2/oOVSdBbyGKxYCs
8TWI7ps2oYBPtEACJh5ogFoh1ueSSLXeyu6W9UNUGERiTfdYhwFDodxOS00dz0vj
rY1isejl3RrkpFL2wHlo
=zkTe
-END PGP SIGNATURE-



Re: [gentoo-user] Re: off topic: rotating a video

2015-02-18 Thread gottlieb
On Mon, Feb 16 2015, David Haller wrote:

> Hello,
>
> On Mon, 16 Feb 2015, gottl...@nyu.edu wrote:
>>I built and tried mplayer.  Again not rotated.  I ran it from the
>>terminal.  Below is the output up to when I killed it
> [..]
>>VO: [xv] 1920x1080 => 1920x1080 Planar YV12 
>
> FWIW: if it's just for watching the vid, try
>
> mplayer -vf rotate=1 foo.mp4
>
> That's rotating 90deg clockwise, see 'man mplayer', search for
> 'rotate', second hit:
>
> [..]
> -vf
> [..]
>rotate[=<0-7>]
>   Rotates  the  image  by 90 degrees and optionally flips it.  For
>   values between 4-7 rotation is only done if the  movie  geometry
>   is portrait and not landscape.
>
>  0Rotate by 90 degrees clockwise and flip (default).
>  1Rotate by 90 degrees clockwise.
>  2Rotate by 90 degrees counterclockwise.
>  3Rotate by 90 degrees counterclockwise and flip.
>
> When using '-ovc copy', mencoder does not (as usual) seem to apply
> this filter.
>
> HTH,
> -dnh

This worked (as did -flip for 180 degrees)!

Thanks to everyone for their help.

allan



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

2015-02-18 Thread gottlieb
On Tue, Feb 17 2015, Canek Peláez Valdés wrote:

> On Tue, Feb 17, 2015 at 2:29 PM,  wrote:
>>
>> I wonder if the OP is using systemd and trying to read the journal
>> files?
>
> Those live under /var/lib/journal (which you need to create; Gentoo doesn't
> do it by default last time I saw),

Wow!  I just checked and indeed I do not have /var/lib/journal.
I run systemd (thanks to canek) and use journalctl, which I *thought*
was displaying the journal).

Need I make some changes?

thanks
allan




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

2015-02-18 Thread Canek Peláez Valdés
On Wed, Feb 18, 2015 at 12:22 PM,  wrote:
>
> On Tue, Feb 17 2015, Canek Peláez Valdés wrote:
>
> > On Tue, Feb 17, 2015 at 2:29 PM,  wrote:
> >>
> >> I wonder if the OP is using systemd and trying to read the journal
> >> files?
> >
> > Those live under /var/lib/journal (which you need to create; Gentoo
doesn't
> > do it by default last time I saw),
>
> Wow!  I just checked and indeed I do not have /var/lib/journal.
> I run systemd (thanks to canek) and use journalctl, which I *thought*
> was displaying the journal).

The journal works without permanent storage (one more of its many
advantages); in that case, it keeps a small amount of logs in memory (you
can set how much memory to reserve for it).

> Need I make some changes?

Only if you want to have logs in permanent storage. In that case, you only
need to create the /var/log/journal dir with systemd-journal GID, and 2755
permissions (with setgid). systemd-journald will automatically rotate the
logs when they use 10% of the free disk available (you can also change
that).

Since the logs are compressed and indexed, each entry on them is accesible
in O(1), and they don't use that much space (with 280 megabytes reserved in
my laptop for journal logs, I have logs since Sep 20, 2014; that's 5 months
worth of logs, although my laptop doesn't run that many daemons).

Anyway, the journal works perfectly without permanent storage (as you can
see); if you are happy that way, you don't need to enable it.

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


systemd journal location (was: Re: [gentoo-user] syslog-ng: how to read the log files)

2015-02-18 Thread Marc Joliet
Am Tue, 17 Feb 2015 23:31:26 +0100
schrieb Marc Joliet :

> Am Tue, 17 Feb 2015 13:45:38 -0600
> schrieb Canek Peláez Valdés :
> 
> > On Tue, Feb 17, 2015 at 2:29 PM,  wrote:
> > >
> > > Alexander Kapshuk  wrote:
> > >
> > > > On Tue, Feb 17, 2015 at 8:26 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.
> > > > >
> > > > >
> > > > > --
> > > > > Again we must be afraid of speaking of daemons for fear that daemons
> > > > > might swallow us.  Finally, this fear has become reasonable.
> > > > >
> > > > >
> > > > If you're talking about /var/log/messages, which is:
> > > > messages: data
> > > >
> > > > I use cat(1).
> > >
> > > I wonder if the OP is using systemd and trying to read the journal
> > > files?
> > 
> > Those live under /var/lib/journal (which you need to create; Gentoo doesn't
> > do it by default last time I saw)
> [...]
> 
> It did on my laptop after I migrated it to systemd over the weekend (on a 
> whim,
> no less -- apparently I'm adventurous?). Or, to be more precise, I didn't have
> to create the directory myself. And wouldn't it be created at run-time, 
> anyway?
> That's what I would expect, at least.

Dammit, I *wanted* to mention that I didn't have my laptop there to look, and
now I regret not doing it, because I was *actually* thinking
of /var/log/journal/ (which I still didn't create by hand, BTW).

I mean, it still contains journal files, and systemd-journald(8) says its the
default *persistent* journal location.  However, it is structured differently
than what you showed, namely:

% tree /var/log/journal/
/var/log/journal/
├── b3a495d35e890b80816684a4521fc1cc
│   ├── system.journal
│   └── user-1000.journal
└── remote

So it creates a directory named after the machine ID, which contains a system
journal and one journal per user.  And if it receives logs from remote
machines, those go into the remote folder.

Just, uh, just so you know...

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup


pgpa6dFL7j83g.pgp
Description: Digitale Signatur von OpenPGP


[gentoo-user] Re: alsa switches to IEC958 - no sound from speakers

2015-02-18 Thread Mick
On Sunday 15 Feb 2015 20:02:47 Mick wrote:
> Something went sideways recently and I now find that only IEC958 is
> available as the default audio device.  Trying to change it to an analogue
> device does not take.  This PC has alsa only, no pulseaudio.
> 
> $ cat /proc/asound/devices
>   0: [ 0]   : control
>   4: [ 0- 0]: hardware dependent
>  19: [ 0- 3]: digital audio playback
>  32: [ 1]   : control
>  33:: timer
>  36: [ 1- 0]: hardware dependent
>  48: [ 1- 0]: digital audio playback
>  49: [ 1- 1]: digital audio playback
>  56: [ 1- 0]: digital audio capture
>  58: [ 1- 2]: digital audio capture
> 
> 
> $ aplay -l
>  List of PLAYBACK Hardware Devices 
> card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 1: Generic_1 [HD-Audio Generic], device 0: ID 887 Analog [ID 887
> Analog] Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 1: Generic_1 [HD-Audio Generic], device 1: ID 887 Digital [ID 887
> Digital]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> 
> 
> $ aplay -L
> null
> Discard all samples (playback) or generate zero samples (capture)
> hdmi:CARD=Generic,DEV=0
> HD-Audio Generic, HDMI 0
> HDMI Audio Output
> default:CARD=Generic_1
> HD-Audio Generic, ID 887 Analog
> Default Audio Device
> sysdefault:CARD=Generic_1
> HD-Audio Generic, ID 887 Analog
> Default Audio Device
> front:CARD=Generic_1,DEV=0
> HD-Audio Generic, ID 887 Analog
> Front speakers
> surround21:CARD=Generic_1,DEV=0
> HD-Audio Generic, ID 887 Analog
> 2.1 Surround output to Front and Subwoofer speakers
> surround40:CARD=Generic_1,DEV=0
> HD-Audio Generic, ID 887 Analog
> 4.0 Surround output to Front and Rear speakers
> surround41:CARD=Generic_1,DEV=0
> HD-Audio Generic, ID 887 Analog
> 4.1 Surround output to Front, Rear and Subwoofer speakers
> surround50:CARD=Generic_1,DEV=0
> HD-Audio Generic, ID 887 Analog
> 5.0 Surround output to Front, Center and Rear speakers
> surround51:CARD=Generic_1,DEV=0
> HD-Audio Generic, ID 887 Analog
> 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
> surround71:CARD=Generic_1,DEV=0
> HD-Audio Generic, ID 887 Analog
> 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
> iec958:CARD=Generic_1,DEV=0
> HD-Audio Generic, ID 887 Digital
> IEC958 (S/PDIF) Digital Audio Output
> 
> There is no /etc/alsa/, or /etc/asound.conf, or ~.asound.rc
> 
> 
> How do I take back control of the default audio device on this PC?


It tricked me!  First of all I had to compile alsa as modules.  Then I had to 
invert the devices by adding this in /etc/modprobe.d/alsa.conf:

options snd cards_limit=2

options snd-hda-intel id=Generic_1 index=0  #analogue
options snd-hda-intel id=Generic index=1#HDMI


AND then I had to also reboot.  Just restarting alsasound didn't have the 
desired result.  It now works as desired.

-- 
Regards,
Mick


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


[gentoo-user] saslauthd startup parameters

2015-02-18 Thread lee
Hi,

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?


-- 
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-18 Thread lee
cov...@ccs.covici.com writes:

> Alexander Kapshuk  wrote:
>
>> On Tue, Feb 17, 2015 at 8:26 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.
>> >
>> >
>> > --
>> > Again we must be afraid of speaking of daemons for fear that daemons
>> > might swallow us.  Finally, this fear has become reasonable.
>> >
>> >
>> If you're talking about /var/log/messages, which is:
>> messages: data
>> 
>> I use cat(1).
>
> 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?  If syslog-ng would actually use
some binary format, I'd have switched to something else.


-- 
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-18 Thread lee
Stroller  writes:

> On Tue, 17 February 2015, at 6:26 pm, lee  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?

> You can establish whether you're affected by 406623 simply by deleting
> the character(s) (renaming the log file would probably work, too) and
> rebooting the system. My experience was that the text logfile is
> "turned to binary" on reboot - the binary characters were logged as
> part of the kernel's startup messages. This was repeatable and
> predictable.

Maybe I'll try it tomorrow --- it's on a server at work which I plan to
reboot anyway.


-- 
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-18 Thread Stroller

On Wed, 18 February 2015, at 8:40 pm, lee  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. 

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.

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.

Stroller.




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

2015-02-18 Thread Neil Bothwick
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.


-- 
Neil Bothwick

Weird enough for government work.


pgpfUGXDctrCx.pgp
Description: OpenPGP digital signature


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

2015-02-18 Thread gottlieb
On Wed, Feb 18 2015, Canek Peláez Valdés wrote:

> On Wed, Feb 18, 2015 at 12:22 PM,  wrote:
>>
>> On Tue, Feb 17 2015, Canek Peláez Valdés wrote:
>>
>> > On Tue, Feb 17, 2015 at 2:29 PM,  wrote:
>> >>
>> >> I wonder if the OP is using systemd and trying to read the journal
>> >> files?
>> >
>> > Those live under /var/lib/journal (which you need to create; Gentoo
>> > doesn't do it by default last time I saw),
>>
>> Wow!  I just checked and indeed I do not have /var/lib/journal.
>> I run systemd (thanks to canek) and use journalctl, which I *thought*
>> was displaying the journal).
>
> The journal works without permanent storage (one more of its many
> advantages); in that case, it keeps a small amount of logs in memory (you
> can set how much memory to reserve for it).
>
>> Need I make some changes?
>
> Only if you want to have logs in permanent storage. In that case, you only
> need to create the /var/log/journal dir with systemd-journal GID, and 2755
> permissions (with setgid). systemd-journald will automatically rotate the
> logs when they use 10% of the free disk available (you can also change
> that).
>
> Since the logs are compressed and indexed, each entry on them is accesible
> in O(1), and they don't use that much space (with 280 megabytes reserved in
> my laptop for journal logs, I have logs since Sep 20, 2014; that's 5 months
> worth of logs, although my laptop doesn't run that many daemons).
>
> Anyway, the journal works perfectly without permanent storage (as you can
> see); if you are happy that way, you don't need to enable it.
>
> Regards.
> --
> Canek Peláez Valdés

Thank you for another lucid explanation.
allan



Re: [gentoo-user] Package conflict while trying to emerge chromium

2015-02-18 Thread Walter Dnes
On Wed, Feb 18, 2015 at 09:09:18AM +0100, Marc Joliet wrote
> 
> It's not that it doesn't do HTML5 video, I've been using that ever
> since I noticed the "gstreamer" USE flag in December 2012 (/etc in
> git is nice ;)).

  I have the gstreamer flag (and everything except "jit") turned off for
seamonkey.  Here's output from "emerge -pv seamonkey" on my machine...

www-client/seamonkey-2.32  USE="jit -chatzilla -crypt -custom-cflags 
-custom-optimization -dbus -debug -gmp-autoupdate -gstreamer -ipc -minimal 
-pulseaudio -roaming (-selinux) -startup-notification -system-cairo -system-icu 
-system-jpeg -system-libvpx -system-sqlite {-test} -wifi" LINGUAS="-be -ca -cs 
-de -en_GB -es_AR -es_ES -fi -fr -gl -hu -it -ja -lt -nb_NO -nl -pl -pt_PT -ru 
-sk -sv_SE -tr -uk -zh_CN -zh_TW" 0 KiB

>   It's just that I can't deactivate FlashDisable and expect YouTube
> to default to HTML5 videos yet (see the top of the quoted text above).
> 
> FWIW, I *did* try it and still got the undesired behaviour (Youtube
> trying to use Flash).

  I think we're talking past each other here.  FlashDisable is irrelavant
to the way I do it.  The really important concept is that each profile
is a separate universe unto itself.  And you can set totally different
behaviours in each profile.  In my Youtube profile, I totally disable
Flash.  As far as the web page is concerned, I don't have Flash
installed at all.  Like I said above, FlashDisable is irrelavant
to the way I do it.  Here's the Seamonkey menu tree; Firefox may be
different.

Tools ==> Add-ons Manager ==> Plugins (on the left sidebar)

  I select "Shockwave Flash" from the "Plugins" list, and there's a
dropdown menu with 3 choices
* Ask to Activate
* Always Activate
* Never Activate

  I select "Never Activate", and Youtube thinks I don't have Flash
installed, forcing it to go with HTML5 mode.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] saslauthd startup parameters

2015-02-18 Thread Adam Carter
>
> 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


Re: [gentoo-user] systemd net interfaces always want a default route?

2015-02-18 Thread Adam Carter
>
> If it's a static network (meaning, the computer does not usually moves
> physically), why don't you use a .network unit file (man 5 systemd.network)?
>

> I'm converting my configs over to that now. Thanks.
>

Another question - i have a wired interface that's always on, and wireless
interface that doesnt start at boot and it not always running. I used to
just run the openrc init script to start and stop it, since openrc used per
interface scripts. With systemd the wired interface is fine using
/etc/systemd/network/.network, but AFAIK I wont be able to use a
*.network file for the wireless interface because then its status will be
tied to the wired interface.

What's the standard systemd way for me to control the wireless interface?


Re: [gentoo-user] systemd net interfaces always want a default route?

2015-02-18 Thread Canek Peláez Valdés
On Wed, Feb 18, 2015 at 9:45 PM, Adam Carter  wrote:
>>
>> If it's a static network (meaning, the computer does not usually moves
physically), why don't you use a .network unit file (man 5 systemd.network)?
>>
>>
>> I'm converting my configs over to that now. Thanks.
>
>
> Another question - i have a wired interface that's always on, and
wireless interface that doesnt start at boot and it not always running. I
used to just run the openrc init script to start and stop it, since openrc
used per interface scripts. With systemd the wired interface is fine using
/etc/systemd/network/.network, but AFAIK I wont be able to use a
*.network file for the wireless interface because then its status will be
tied to the wired interface.
>
> What's the standard systemd way for me to control the wireless interface?

There isn't one. networkd is only for really simple networks, and wireless
networks are not considered as such.

You can use wpa_supplicant.service, or wpa_supplicant@.service,
or just go to a full fledged network management program like wicd,
NetworkManager, or several others.

I use networkd in all my wired machines. For  wireless machines, I use
NetworkManager.

I believe you can use wpa_supplicant to handle all your wireless (and even
wired) needs. Check out "man 5 wpa_supplicant.conf", and then just enable
and start wpa_supplicant@.service.

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


[gentoo-user] systemd_dounit

2015-02-18 Thread James
Ok

So I'm reading about systemd support in ebuilds; just trying to 
understand the beast wee bit better.

In in this ebuild: www-misc/monitorix (A lightweight system monitoring tool)f

the newest version has added this line to the ebuild:

"systemd_dounit docs/${PN}.service"


Looking that the systemd.eclass, all I see is:
"systemd_dounit ...
Install systemd unit(s). Uses doins, thus it is fatal in EAPI 4 and
non-fatal in earlier EAPIs. "

Which seems reasonable, but tells me nothing what the line does. I can
speculate that monitorix becomes a registered process, if you are
running systemd, but is otherwise ignored on a openrc based system?

It would seem to me the devmanual needs some more "prose" so on can
discern what the systemd.eclass is doing. And yea, I'm off to look
at the code for systemd.eclass as I'm sure it's clear as mud.

The trouble is I find this code everywhere with google. So where
is the best place to read the current systemd.eclass code and where
do I look at the  stuffage; ?should? I become curious about that
eclass or other eclass codes.?

guidance and insight is appreciated.


James





James




Re: [gentoo-user] systemd_dounit

2015-02-18 Thread Mike Gilbert
On Feb 18, 2015 11:12 PM, "James"  wrote:
>
> Ok
>
> So I'm reading about systemd support in ebuilds; just trying to
> understand the beast wee bit better.
>
> In in this ebuild: www-misc/monitorix (A lightweight system monitoring
tool)f
>
> the newest version has added this line to the ebuild:
>
> "systemd_dounit docs/${PN}.service"
>
>
> Looking that the systemd.eclass, all I see is:
> "systemd_dounit ...
> Install systemd unit(s). Uses doins, thus it is fatal in EAPI 4 and
> non-fatal in earlier EAPIs. "
>
> Which seems reasonable, but tells me nothing what the line does. I can
> speculate that monitorix becomes a registered process, if you are
> running systemd, but is otherwise ignored on a openrc based system?
>

systemd_dounit copies a service file to ${ED}/usr/lib/systemd/system.
Nothing more.

You would need some understanding of how systemd works to know what that
actually means for an end user. A service unit serves basically the same
purpose as an init script. They are ignored if you do not boot with
systemd.

> It would seem to me the devmanual needs some more "prose" so on can
> discern what the systemd.eclass is doing. And yea, I'm off to look
> at the code for systemd.eclass as I'm sure it's clear as mud.
>
> The trouble is I find this code everywhere with google. So where
> is the best place to read the current systemd.eclass code and where
> do I look at the  stuffage; ?should? I become curious about that
> eclass or other eclass codes.?

The eclasses are all in /usr/portage/eclass.


Re: [gentoo-user] systemd_dounit

2015-02-18 Thread Canek Peláez Valdés
On Wed, Feb 18, 2015 at 10:12 PM, James  wrote:
>
> Ok
>
> So I'm reading about systemd support in ebuilds; just trying to
> understand the beast wee bit better.
>
> In in this ebuild: www-misc/monitorix (A lightweight system monitoring
tool)f
>
> the newest version has added this line to the ebuild:
>
> "systemd_dounit docs/${PN}.service"
>
>
> Looking that the systemd.eclass, all I see is:
> "systemd_dounit ...
> Install systemd unit(s). Uses doins, thus it is fatal in EAPI 4 and
> non-fatal in earlier EAPIs. "
>
> Which seems reasonable, but tells me nothing what the line does. I can
> speculate that monitorix becomes a registered process, if you are
> running systemd, but is otherwise ignored on a openrc based system?

It just installs the file in the place where systemd reads its unit
files: /usr/lib/systemd/system. There was a time when the Gentoo devs where
still debating if it should be /usr/lib/systemd/system
or /lib/systemd/system; having an ebuild function doing the install helped
to avoid checking which one to use, and to be consistent.

So, in short: "systemd_dounit " just puts the ""
in /usr/lib/systemd/system. There is no "registration"; systemd will read
the unit the next time the machine boots or earlier if you do "systemctl
daemon-reload", but the service will not be started nor enabled until the
user specifies (that's the Gentoo policy, I believe).

> It would seem to me the devmanual needs some more "prose" so on can
> discern what the systemd.eclass is doing. And yea, I'm off to look
> at the code for systemd.eclass as I'm sure it's clear as mud.

It's actually quite short and clear.

> The trouble is I find this code everywhere with google. So where
> is the best place to read the current systemd.eclass code and where
> do I look at the  stuffage; ?should? I become curious about that
> eclass or other eclass codes.?

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?view=markup

or locally:

/usr/portage/eclass/systemd.eclass

I don't understand what the  has to do with the eclass.

> guidance and insight is appreciated.

Since all of systemd's configuration is really short text files and
symlinks to them, the eclass is really simple. Less than a couple dozen
functions, most of them involved with installing text files (unit files,
tmpfiles.d files, etc.), and some with maintenance of the journal.

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