Re: [gentoo-user] Copying USB->USB: sync after every file

2017-01-25 Thread Michael Mol
On Monday, January 23, 2017 5:53:35 PM EST Jeremi Piotrowski wrote:
> On Mon, Jan 23, 2017 at 04:50:33PM +0100, Frank Steinmetzger wrote:
> > Can you give me a nudge? My sysctl.conf has only one active line besides
> > some netfilter stuff:
> > vm.swappiness = 1
> > (This is an SSD, I don’t even have swap on this machine unless I know I
> > definitely need it temporarily)
> 
> I'd say the relevant sysctl's are /proc/sys/vm/dirty* and
> /proc/sys/vm/laptop_mode, along with the filesystems and mount options you
> are using for the USB drives. Please post these values. Also, could you
> get the output of /proc/meminfo while this is happening?

Yup.

You need to set vm.dirty_bytes and vm.dirty_background_bytes to something 
sane, like 10M and 1M, respectively. They default to something like 20% of 
system memory, and 10% of system memory, respectively...


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


Re: [gentoo-user] KMail and KDE-plasma: a tale of woe

2017-01-02 Thread Michael Mol
On Monday, January 2, 2017 4:22:34 PM EST Peter Humphrey wrote:
> On Monday, 2 January 2017 11:42:44 GMT Mick wrote:
> > On Monday 02 Jan 2017 10:51:23 Peter Humphrey wrote:
> > > Hello lists,
> > > 
> > > (I've sent this to both gentoo-user and kdepim-users as being relevant
> > > in
> > > both lists - I'm using kde-apps/kmail-16.12.0-r1 on Gentoo.)
> > > 
> > > Well, I think I can finally emerge from a long battle to get KMail
> > > working. It's been uphill all the way - except for the frequent slips
> > > backwards to start abain. (I still don't have spell checking, as you
> > > see.)
> > > 
> > > The main problem has been to recover archived e-mails, which sounds
> > > simple enough as I always keep a week of daily archives on a different
> > > partition, but it wasn't. The routine would go like this:
> > > 
> > > 1.Set up KMail the way I like it, but on an empty message set. 
> > > Save the
> > > arrangement for use next time.
> > > 2.Import the latest archive to a temporary folder.
> > > 3.Mark all the imported messages as read and move each folder into
> > > position under Local Folders. Delete the temporary folder.
> > > 4.Restore all the filters.
> > > 5.Cross fingers and fetch new mail (POP as my ISP doesn't offer 
> > > IMAP).
> > > 6.KMail goes haywire. It re-creates the temporary folder and 
> > > proceeds
> > > to
> > > fill it with duplicates of all the existing messages. All those
> > > duplicates prevent me from making a new archive until I clear them all
> > > out, painstakingly (yes, I did actually check several thousand e-mails
> > > for uniqueness).
> > > 7.Sigh. Delete the temporary folder again and have another go. 
> > > Same
> > > result. 8.Give up and start again.
> > > 
> > > Latterly, it changed slightly and sent all those duplicates to the
> > > sent-mail folder instead of creating a new folder for them. I think
> > > this coincided with me using a different archive file from the previous
> > > day.
> > > 
> > > In the end I used Ark to extract the sent-mail directory from the
> > > archive
> > > and save it as a simple directory structure under
> > > "./.Local Folders.directory", then delete what I'd extracted from the
> > > archive. Then the import went smoothly in two stages: sent-mail, and
> > > everything else.
> > > 
> > > I lost count of the times I rebooted durning the whole struggle, but it
> > > may well have reached 100. To omit a reboot was to risk the next step
> > > going wrong. That's compounded by having to start KMail twice each
> > > time, because the first time, it shows a progress bar stuck at 0% with
> > > no indication of what is supposed to be in progress. This may be
> > > connected with the segmentation faults I still see sometimes on
> > > shutdown; it's hard to be sure.
> > > 
> > > Let's hope for some stability now. I still feel as though I'm walking on
> > > eggshells.
> > 
> > Instead of rebooting it should be easier to first quit kmail and then run:
> > 
> > akonadictl stop
> > akonadictl start
> > akonadictl fsck
> > akonadictl vacuum
> > 
> > On each of the above commands you should wait for a few
> > seconds/minutes/hours, depending on the size of the database and the
> > amount being downloaded/indexed from the mail server.  Once the complete
> > collection of messages, address book, calendar, etc. have been downloaded
> > AND indexed your problems of being stuck at 0% ought to go away, or
> > hopefully reduced significantly.
> 
> I've just run that set of four commands, and guess what? I now have my first
> batch of duplicate messages. I also have a feeling that some new messages
> from this list have disappeared.

https://userbase.kde.org/KMail/
FAQs_Hints_and_Tips#Local_Folders_is_added_over_and_over

Came across that while looking for something else. HTH.





Re: [gentoo-user] At last! A Qt5 version of KMail-2 - but here be dragons!

2016-12-28 Thread Michael Mol
On Wednesday, December 28, 2016 11:08:03 AM EST J. Roeleveld wrote:
> On December 28, 2016 11:03:47 AM GMT+01:00, Neil Bothwick 
 wrote:
> >On Wed, 28 Dec 2016 11:56:17 +0200, Alan McKinnon wrote:
> >> Ah, now I see.
> >> 
> >> Peter didn't post, Neil did.
> >> 
> >> Too much eggnog, that's my story and I'm sticking to it
> >
> >Peter's probably still at the pub.
> 
> English grammar discussions are always fun to follow.
> Makes one tempted to make mistakes on porpuse. :)

*porpoise



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


Re: [gentoo-user] from Firefox52: NO pure ALSA?, WAS: Firefox 49.0 & Youtube... Audio: No

2016-12-26 Thread Michael Mol
On Tuesday, December 20, 2016 7:12:14 PM EST Alan McKinnon wrote:
> On 20/12/2016 19:04, Tanstaafl wrote:
> > On 12/19/2016 1:15 PM, lee  wrote:
> >> "Walter Dnes"  writes:
> >>> Similarly, the vast majority of home users have a machine with one
> >>> ethernet port, and in the past it's always been eth0.
> >> 
> >> Since 10 years or so, the default is two ports.
> > 
> > Not sure where you buy your machines, but that is simply wrong. The vast
> > majority of *home* users machines are single port machines.
> 
> and every rack server I've bought or worked on in the last 10 years has
> been quad-nic

My DL160s have 2x1GbE NICs each and a 1GbE NIC for OOB access, while my DL360s 
have 4x1GbE NICs and the single for OOB access. My old BL460cs had 2x1GbE 
connectivity.

But as far as home hardware, most pre-assembled home desktops I've seen any 
given year since 1998or so, have come with a single Ethernet port. The 
motherboards available for self-assembled PCs have usually had 2x1GbE since 
roughly 2005, IIRC.

So, enthusiast systems (who else builds their own?) will usually have a pair 
of Ethernet ports, while the cheap desktop systems will usually only have a 
single port.

Most casual user home desktop systems, IME, have been getting replaced with 
laptops and tablets, though, so you could argue that the home desktops that 
remain, over time, have tended more and more to be the self-assembled or 
enthusiast-built systems, and thus you tend to see desktop systems with 
multiple Ethernet ports more than with singles.

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


Re: [gentoo-user] At last! A Qt5 version of KMail-2 - but here be dragons!

2016-12-19 Thread Michael Mol
On Sunday, December 18, 2016 2:59:36 PM EST Peter Humphrey wrote:
> This morning I ran my usual daily update and was presented with a long list
> of kde-app packages, including KMail-2. The only problem was four blocks
> that portage couldn't sort out on its own, so I evicted the existing
> versions with emerge -C and continued.
> 
> Then kleopatra failed to build, as in bug 602924. The fix there worked (I
> should call it an evasion really) and kleopatra built ok. Then, on
> continuing with emerge -uaDvU, another whole load of blocks arose, mostly
> from portage trying to pull back in the versions of packages that had just
> been superseded.
> 
> There seemed to be no way out of that, so I took my sledge-hammer and
> started an emerge -e world. No blocks were reported, so I think I might be
> getting away with it. I'm about half-way through so far, and I'm writing
> this via webmail.
> 
> So, tread warily, anyone who is offered 16.12.0 versions of 148 kde-apps
> packages.

Try running emerge with, e.g. --backtrack=1000.

So, I've been running with a massive set of package.unmask for all of KDE-
Frameworks, Qt, Plasma and KDE-Applications. I also have a cron job handling 
updates for me every evening. By an large it's worked fine...until a couple 
weeks ago.

At that point, I wound up with a ton of slot conflicts that didn't make any 
sense to me, but I figured they were tree issues that would work themselves 
out. They didn't, and were getting in the way of a security update I needed, 
so finally I dove in and devoted some time to it this morning. I tried 
unmerging all of dev-qt/*, but that didn't solve the problem completely; 
portage was still unable to work its way around a simple upgrade from perl 
5.22 to 5.23. Once I threw in --backtrack=1000, it started swimming right 
along.

It *seems* like the default backtrack value, 3, is simply too low for someone 
like me who runs with --deep and --with-bdeps=y in EMERGE_DEFAULT_OPTS; once I 
bumped the backtrack value, portage was able to work its way through the 
dependency tree just fine.



Re: [gentoo-user] multi-region OCR

2016-11-30 Thread Michael Mol
On Wednesday, November 30, 2016 05:34:25 PM J. Roeleveld wrote:
> On November 30, 2016 6:03:36 PM GMT+01:00, Michael Mol <mike...@gmail.com> 
wrote:
> >On Wednesday, November 30, 2016 10:43:13 AM J. Roeleveld wrote:
> >> On Tuesday, November 29, 2016 11:18:36 PM k...@aspodata.se wrote:
> >> > Michael Mol:
> >> > ...
> >> > 
> >> > > xsane would have let me do it during the scan process if I'd
> >
> >thought of
> >
> >> > > it
> >> > > then, but the scans are done, drives aren't there any more.
> >
> >Something
> >
> >> > ...
> >> > 
> >> > If xsane solves your need why don't you just print your scans so
> >
> >xsane
> >
> >> > can do its job ?
> >> 
> >> There has to be a way to do this without killing an entire forest...
> >
> >And big chunks of ink cartridges. The scans stretched the contrast so I
> >can
> >clearly read the drive labels through the translucent anti-static bags,
> >which
> >means a huge chunk of the image (what's outside the labels) is pure
> >black.
> >
> >Which I could get around by spending fifteen minutes munging things in
> >the Gimp
> >before printing, but at that point, I may as well just transcribe
> >things
> >manually at that point.
> >
> >Looking for something reasonably simple to improve the general
> >workflow. I'd
> >have hoped something would have already been available on Linux; it'd
> >be easy
> >enough to copy the scans to my phone and feed them through Google
> >Goggles for
> >the desired output, but then I'm deliberately filtering company data
> >through an
> >outside entity.
> 
> Did you manage to use that link I sent?

I did. tesseract almost worked, even separating the regions cleanly in its 
output, but it seems, sadly, that the 300dpi scans were insufficient to get a 
good read; lots of clear corruption of the text, so things like serial 
numbers, model numbers, version numbers--everything you'd care about--would be 
highly suspect.

The next tool that looked like it might work, gscan2pdf, wasn't in portage, 
and with the semi-garbled output from tesseract suggesting the scans were too 
poor quality, I didn't pursue further.

-- 
:wq

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


Re: [gentoo-user] multi-region OCR

2016-11-30 Thread Michael Mol
On Wednesday, November 30, 2016 10:43:13 AM J. Roeleveld wrote:
> On Tuesday, November 29, 2016 11:18:36 PM k...@aspodata.se wrote:
> > Michael Mol:
> > ...
> > 
> > > xsane would have let me do it during the scan process if I'd thought of
> > > it
> > > then, but the scans are done, drives aren't there any more. Something
> > 
> > ...
> > 
> > If xsane solves your need why don't you just print your scans so xsane
> > can do its job ?
> 
> There has to be a way to do this without killing an entire forest...

And big chunks of ink cartridges. The scans stretched the contrast so I can 
clearly read the drive labels through the translucent anti-static bags, which 
means a huge chunk of the image (what's outside the labels) is pure black.

Which I could get around by spending fifteen minutes munging things in the Gimp 
before printing, but at that point, I may as well just transcribe things 
manually at that point.

Looking for something reasonably simple to improve the general workflow. I'd 
have hoped something would have already been available on Linux; it'd be easy 
enough to copy the scans to my phone and feed them through Google Goggles for 
the desired output, but then I'm deliberately filtering company data through an 
outside entity.

-- 
:wq

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


[gentoo-user] multi-region OCR

2016-11-29 Thread Michael Mol
So, I've got scans of a half dozen new hard drives, and I've got scans of 
their labels. One image has two drives, the other has four.

Rather than manually transcribing the label contents into my intake ticket, 
I'd like to select a region of each image and OCR it. (Darn, it'd be handy if 
they put all this metadata into a QR code...)

What tools exist to let me do this? Keep in mind, I've got multiple regions I 
need to OCR, and the regions aren't going to be consistent across images. 

xsane would have let me do it during the scan process if I'd thought of it 
then, but the scans are done, drives aren't there any more. Something 
reasonably similar would be nice. Okular is reputed to have some OCR 
capability, but I can't find it. Dolphin is supposed to be able to do it if you 
have tesserract installed (I do), but I can't find the service to enable. I 
could use some pointers...


-- 
:wq

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


Re: [gentoo-user] screen tearing with mpv but not mplayer

2016-10-24 Thread Michael Mol
On Saturday, October 22, 2016 05:28:22 AM David Haller wrote:
> Hello,
> 
> On Fri, 21 Oct 2016, Behrouz Khosravi wrote:
> >> $ mplayer foo.mp4 | grep '^VO: '
> >> VO: [gl] ...
> >> $ mpv  foo.mp4 | grep '^VO: '
> >> VO: [opengl]
> >> 
> >> See 'mplayer -vo help' and 'mpv -vo help'.
> >
> >Thanks. It seems that mplayer is using "xv" and mpv uses "opengl-hq". mpv
> >work ok with "xv" but quality degrades a little, or at least I think that
> >it does.
> 
> Are you sure? Albeit, I'm not familiar with mpv.
> 
> Try 'opengl', 'opengl-old'... But 'xv' should be just as good. Maybe
> there's some filter (deblocking/deringing/denoise) active with one but
> not with 'xv'.
> 
> And I've IIRC used plain 'x11' (or was it 'xv'?) for a very long time.

Unless things have changed massively in the last 3-4 years, you almost 
certainly were using xv without really knowing about it. With just 'x11', 
you're forced into using software scaling instead of hardware scaling, which 
massively slows things down. And hardware scaling has been a feature of 
essentially every video card since, I dunno, 1994 or earlier? And the xv 
extension has been available since 1991...

-- 
:wq

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


Re: [gentoo-user] showing files in numerical order

2016-10-20 Thread Michael Mol
No, it's not the proper numerical order. Yes, it's the proper sort for a 
sorting algorithm unaware that it's sorting strings with numeric components, 
such as a one examining input on a strictly codepoint-by-codepoint or 
character-by-character basis, but that's not the only way to sort.

I'd suggest filing a bug. I don't know enough about collations to know whether 
or not localization is supposed to cover numeric sorting, but the old behavior 
was clearly better, from a human UI standpoint.


On Thursday, October 20, 2016 03:27:34 PM Andy Mender wrote:
> You may be surprised, but this is the proper numerical order - the way
> Windows Explorer
> normally does it. Only the 1st digit is taken into account as you noticed.
> 
> Care to try renaming the images to "image_xxx"? Perhaps that helps.
> 
> Best regards,
> Andy
> 
> On 20 October 2016 at 14:25, Philip Webb  wrote:
> > Using Gwenview with KDE 4, the thumbnail view showed images
> > in correct numerical order : image1 image2 ... image9 image10 ... .
> > With KDE 5, it's gone stupid : image1 image11 image12 ...
> > image 19 image2 image20 image21 ...
> > 
> > Is there a setting anywhere
> > to tell it to list files in the proper numerical order ?
> > 
> > --
> > ,,
> > SUPPORT ___//___,   Philip Webb
> > ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
> > TRANSIT`-O--O---'   purslowatchassdotutorontodotca
-- 
:wq

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


Re: [gentoo-user] Re: Getting X11 to "underscan"...

2016-10-18 Thread Michael Mol
On Tuesday, October 18, 2016 03:57:56 PM Grant Edwards wrote:
> On 2016-10-18, Daniel Frey  wrote:
> > I have three different manufacturers and each one has it, but on mine it
> > wasn't marked in the manual.
> 
> Not all TVs can disable overscan.  The last time was shopping, many of
> the Sony Bravias couldn't (that was a few years ago).  On some TVs
> I've seen, in order to disable overscan the signal resolution has to
> match the panel resolution exactly...

That's rather what I'm accustomed to seeing, hence my request for the xrandr 
output.

-- 
:wq

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


Re: [gentoo-user] Getting X11 to "underscan"...

2016-10-18 Thread Michael Mol
On Monday, October 17, 2016 07:48:29 PM Jigme Datse Yli-RAsku wrote:
> So far after much digging on the TV I haven't found a way to actually get it
> to do what I want.  I'm not sure if it even can.  I will look when I next
> get access to the system (currently in use by other members of the
> household).  Perhaps somewhere we have a manual for it?  I really don't
> know.
> 
> I agree, that it would be preferable to not have to make the computer fudge
> it, but if after having spent time trying to fix it on the TV itself
> multiple times, only to find that all options I have found, end up
> producing very undesirable results (such as displaying it a 4:3 aspect
> ratio, or a 2:1 aspect ratio).  I'll see if I can find what I need.
> 
> I do know that if I could get the TV to change the setting for that so it
> doesn't end up overscanning, without doing other "weird" stuff, it would
> mean that I could see the full boot process, not missing bits of it off the
> edge of the screen.
> 

Once upon a time, in the days of analog displays, we used modelines to 
accomplish what you're doing.

I don't think modelines work with pure-digital outputs, though. Does your TV 
have a VGA input, and does your box have a VGA output? That would be an 
effective, if not ideal, solution.

Alternately, have you tried setting your display to an unusual resolution? 
What's the output of the xrandr command? It should give you a list of 
supported resolutions refresh rates, including flags to tell you which ones are 
selected and which ones are recommended. Often, with digital TVs, there will 
be a resolution you can use that evades the TV's overscan emulation.

-- 
:wq

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


Re: [gentoo-user] Re: KDE 5: Broken file protocol for KDE 4 apps

2016-10-13 Thread Michael Mol
On Thursday, October 13, 2016 10:48:08 AM you wrote:
> On Thursday, October 13, 2016 09:07:46 PM Andrew Lowe wrote:
> > On 13/10/16 20:39, Michael Mol wrote:
> > > On Wednesday, October 12, 2016 11:54:48 PM Jörg Schaible wrote:
> > >> Anyone? After upgrading a second machine to KDE/Plasma 5, I have the
> > >> same
> > >> behavior there. All KDE-4-based apps fail to interact with the file
> > >> system.
> > >> Using KMail I can no longer add any attachment to an email nor save an
> > >> existing attachment to disk.
> > > 
> > > I'm running KMail (Gentoo doesn't have the KDE5 version in tree yet, so
> > > KDE4), and I send file attachments all the time. So I can say it's at
> > > least not *intrinsically* broken...
> > > 
> > > Much of KDE4 and KDE5 wind up installed side by side, FWIW. I'd suggest
> > > cycling through emerge @preserved-rebuild, revdep-rebuild, depclean, and
> > > see if that shakes something loose.
> > > 
> > > The KDE4->KDE5 transition was generally a royal PITA for me, too, though
> > > I
> > > can't remember what all broke...
> > 
> > Kwooty, an nzb downloaded, has the same problem. It's "4" as well. Hit
> > 
> > the "Open" button, a file dialogue pops up, closely followed by "Error
> > Kwooty" -> "The process for the file protocol died unexpectedly". File
> > -> Open gets the same.
> > 
> > Dragging and dropping into the main window works and once the nzb files
> > 
> > have been parsed, kwooty behaves as expected.
> > 
> > This failure corresponds with a big update of KDE 5 stuff. I've just
> > 
> > has a quick browse through bugs for the last 36 hours and nothing jumps
> > out.
> I'm running 5.8.1 here. I've got all of Qt, all of frameworks and all of KDE
> Applications unmasked ~amd4, and my automatic updates building things every
> night. Started doing that when KDE went full-on rapid-release.
> 
> That said, I don't think I've restarted KMail or my login session since
> Monday. Hang on...

OK, tested, still works fine for me here.

Here's the output of "emerge -p -e --tree --with-bdeps=y kde-apps/kontact". 
Maybe we're running different versions of some important dependency?

Calculating dependencies  ... done!
[ebuild   R] kde-apps/kmail-4.14.11_pre20160211 
[ebuild   R]  x11-proto/xf86vidmodeproto-2.3.1-r1 
[ebuild   R]   sys-devel/libtool-2.4.6 
[ebuild   R]dev-libs/libltdl-2.4.6 
[ebuild   R] app-arch/xz-utils-5.2.2 
[ebuild   R]sys-devel/automake-1.15 
[ebuild   R] sys-devel/autoconf-2.69 
[ebuild   R]  dev-lang/perl-5.22.2 
[ebuild   R]   app-admin/perl-cleaner-2.20 
[ebuild   R]app-portage/portage-utils-0.62 
[ebuild   R] dev-libs/iniparser-3.1-r1 
[ebuild   R]app-shells/bash-4.3_p48 
[ebuild   R] sys-libs/readline-6.3_p8-r2 
[ebuild   R]  virtual/pkgconfig-0-r1 
[ebuild   R]   dev-util/pkgconfig-0.28-r2 
[ebuild   R]dev-libs/glib-2.48.2 
[ebuild   R] dev-util/gtk-doc-am-1.25-r1 
[ebuild   R] x11-misc/shared-mime-info-1.4 
[ebuild   R]  dev-libs/libxml2-2.9.4 
[ebuild   R]   dev-lang/python-2.7.10-r1 
[ebuild   R]app-arch/bzip2-1.0.6-r7 
[ebuild   R]app-misc/mime-types-9 
[ebuild   R]dev-db/sqlite-3.13.0 
[ebuild   R] dev-libs/icu-57.1 
[ebuild   R]virtual/libffi-3.0.13-r1 
[ebuild   R] dev-libs/libffi-3.2.1 
[ebuild   R]dev-libs/expat-2.1.1-r2 
[ebuild   R]virtual/libintl-0-r2 
[ebuild   R]sys-libs/zlib-1.2.8-r1 
[ebuild   R]dev-libs/openssl-1.0.2j 
[ebuild   R] app-misc/c_rehash-1.7-r1 
[ebuild   R] app-misc/ca-certificates-20151214.3.21 
[ebuild   R]  dev-lang/python-3.4.3-r1 
[ebuild   R]   sys-libs/ncurses-5.9-r5 
[ebuild   R]sys-libs/gpm-1.20.7-r2 
[ebuild   R] sys-apps/texinfo-6.1 
[ebuild   R]  dev-perl/Text-Unidecode-1.270.0 
[ebuild   R]   virtual/perl-ExtUtils-
MakeMaker-7.40.100_rc 
[ebuild   R]  sys-devel/gettext-0.19.7 
[ebuild   R]   virtual/acl-0-r2 
[ebuild   R]sys-apps/acl-2.2.52-r1 
[ebuild   R] sys-apps/attr-2.4.47-r2 
[ebuild   R]   virtual/lib

Re: [gentoo-user] Re: KDE 5: Broken file protocol for KDE 4 apps

2016-10-13 Thread Michael Mol

On Thursday, October 13, 2016 09:07:46 PM Andrew Lowe wrote:
> On 13/10/16 20:39, Michael Mol wrote:
> > On Wednesday, October 12, 2016 11:54:48 PM Jörg Schaible wrote:
> >> Anyone? After upgrading a second machine to KDE/Plasma 5, I have the same
> >> behavior there. All KDE-4-based apps fail to interact with the file
> >> system.
> >> Using KMail I can no longer add any attachment to an email nor save an
> >> existing attachment to disk.
> > 
> > I'm running KMail (Gentoo doesn't have the KDE5 version in tree yet, so
> > KDE4), and I send file attachments all the time. So I can say it's at
> > least not *intrinsically* broken...
> > 
> > Much of KDE4 and KDE5 wind up installed side by side, FWIW. I'd suggest
> > cycling through emerge @preserved-rebuild, revdep-rebuild, depclean, and
> > see if that shakes something loose.
> > 
> > The KDE4->KDE5 transition was generally a royal PITA for me, too, though I
> > can't remember what all broke...
> 
>   Kwooty, an nzb downloaded, has the same problem. It's "4" as well. Hit
> the "Open" button, a file dialogue pops up, closely followed by "Error
> Kwooty" -> "The process for the file protocol died unexpectedly". File
> -> Open gets the same.
> 
>   Dragging and dropping into the main window works and once the nzb files
> have been parsed, kwooty behaves as expected.
> 
>   This failure corresponds with a big update of KDE 5 stuff. I've just
> has a quick browse through bugs for the last 36 hours and nothing jumps out.

I'm running 5.8.1 here. I've got all of Qt, all of frameworks and all of KDE 
Applications unmasked ~amd4, and my automatic updates building things every 
night. Started doing that when KDE went full-on rapid-release.

That said, I don't think I've restarted KMail or my login session since 
Monday. Hang on...

-- 
:wq

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


Re: [gentoo-user] Re: KDE 5: Broken file protocol for KDE 4 apps

2016-10-13 Thread Michael Mol
On Wednesday, October 12, 2016 11:54:48 PM Jörg Schaible wrote:
> Anyone? After upgrading a second machine to KDE/Plasma 5, I have the same
> behavior there. All KDE-4-based apps fail to interact with the file system.
> Using KMail I can no longer add any attachment to an email nor save an
> existing attachment to disk.

I'm running KMail (Gentoo doesn't have the KDE5 version in tree yet, so KDE4), 
and I send file attachments all the time. So I can say it's at least not 
*intrinsically* broken...

Much of KDE4 and KDE5 wind up installed side by side, FWIW. I'd suggest 
cycling through emerge @preserved-rebuild, revdep-rebuild, depclean, and see 
if that shakes something loose.

The KDE4->KDE5 transition was generally a royal PITA for me, too, though I 
can't remember what all broke...

-- 
:wq

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


Re: [gentoo-user] Strive for zero swap usage?

2016-10-10 Thread Michael Mol

On Friday, October 07, 2016 04:43:56 PM Grant wrote:
> >> >>> Swap usage on Linux always seems a little tricky to me.  Should my
> >> >>> goal on a web server be zero swap usage, meaning the attached graph
> >> >>> should show no green lines at all if I'm doing it right?
> >> >> 
> >> >> No.  You want things that aren't in use to be swapped, like memory
> >> >> leaks and such.  You don't want things that will be used to be
> >> >> swapped.
> >> > 
> >> > Does this look OK?  It looks to me like heavy swapping in and out with
> >> > plenty of free memory (minus buffers/cache).
> >> 
> >> Or put another way, how do I know when swapping is a problem?  I'm
> >> running munin so I can look over graphs of my system's characteristics
> >> but I'm not sure what to look for to determine if I'm swapping
> >> excessively.
> > 
> > "Swapping excessively" is inherently a use-case-specific problem, but it
> > comes down to two questions:
> > 
> > * Do you notice your system spending time in iowait swapping data in while
> > you're waiting on it?
> > * Do you notice your system spending time in iowait swapping data out
> > while
> > you're waiting on it? (I.e. as it tries to make room for new memory
> > allocations)
> 
> I can't find a good graph for iowait in munin.  Is watching wa in top
> my best bet?

I've never used Munin. I use Zabbix, which monitors iowait just fine.

> 
> If I do find a correlation between iowait and web server response
> times, should I just decrease memory usage until the problem goes
> away?

There's more than one cause for iowait, so you can't just assume iowait is 
related to memory consumption.

iowait can happen while waiting for files to load in from disk. In this case, 
freeing up memory to be used by the page cache can help.

iowait can happen while waiting for data to be written *to* disk. In this 
case, finding what's writing to disk and reducing that can help.

iowait can happen during swap. In this case, reducing things going into swap 
can help. You can reduce things going into swap by reducing vm.swappiness (I 
prefer to set it to 0, myself; swap will be used if and only if there isn't 
enough memory at the moment). You can reduce things going into swap by tuning 
applications to use less memory. (With a web server, there are going to be a 
lot of things to tune here. What is the webserver doing? What web server is it 
running? Is it running a dynamic application? What language?)

> 
> What I do notice is that my web server's response time increases along
> with the swapping peaks in the graph I posted before.

Then you're using too much memory, which is leading you to use too much swap, 
which is causing an I/O bottleneck for you. Can you tell me more about your 
stack? What is the web server doing? What HTTPd are you using? Are you running 
dynamic applications? What language? Are you using any caching?

-- 
:wq

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


Re: [gentoo-user] Strive for zero swap usage?

2016-10-07 Thread Michael Mol
On Friday, October 07, 2016 04:33:27 AM Grant wrote:
> >>> Swap usage on Linux always seems a little tricky to me.  Should my
> >>> goal on a web server be zero swap usage, meaning the attached graph
> >>> should show no green lines at all if I'm doing it right?
> >> 
> >> No.  You want things that aren't in use to be swapped, like memory
> >> leaks and such.  You don't want things that will be used to be
> >> swapped.
> > 
> > Does this look OK?  It looks to me like heavy swapping in and out with
> > plenty of free memory (minus buffers/cache).
> 
> Or put another way, how do I know when swapping is a problem?  I'm
> running munin so I can look over graphs of my system's characteristics
> but I'm not sure what to look for to determine if I'm swapping
> excessively.

"Swapping excessively" is inherently a use-case-specific problem, but it comes 
down to two questions:

* Do you notice your system spending time in iowait swapping data in while 
you're waiting on it? 
* Do you notice your system spending time in iowait swapping data out while 
you're waiting on it? (I.e. as it tries to make room for new memory 
allocations)

If the answer to those questions is yes, then you're swapping excessively. If 
not, you're not.

There are ways other than swap to find yourself in iowait, though. I wonder 
what might a good metric of combining iowait numbers with swap event counts. 
Swap events without iowait are likely imperceptible.

But it does all come down to perception and how you want to manage it. I have 
some nodes that swap a *lot*, but I don't care as long as they don't fall 
behind in their workload. And I have some nodes that I don't permit to swap at 
all, as that causes latency spikes that are difficult to nail down, or can 
cause 
snowballing cascade events across several nodes and processes that interact 
with each other.

-- 
:wq

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


Re: [gentoo-user] Thunderbird 45.3.0 won't send messages

2016-09-26 Thread Michael Mol
On Saturday, September 24, 2016 07:25:13 PM Mick wrote:
> On Saturday 24 Sep 2016 07:13:15 Daniel Frey wrote:
> > On 09/24/2016 03:53 AM, Mick wrote:
> > > On Saturday 24 Sep 2016 13:46:04 Stanislav Ch. Nikolov wrote:
> > >> On 09/24/2016 01:21 PM, Mick wrote:
> > >>> Has something changed on T'bird and this is why it stopped sending
> > >>> messages? Clicking on send just sits there with no sign that the
> > >>> client
> > >>> is trying to connect to the server.
> > >>> 
> > >>> Have you noticed the same?
> > >> 
> > >> If you see this message, then the answer is no :P
> > >> 
> > >> Stanislav
> > > 
> > > Thanks, this means something may have changed on Gmail and my T'bird
> > > settings are not working anymore.
> > 
> > I was having problems a while back until I switched to OAuth2 for the
> > GMail servers. The thing is you have to set OAuth2 separately for
> > incoming *and* outgoing mail.
> > 
> > Dan
> 
> Thanks Dan, the user assured me they had enabled 'unsafe client
> applications' or some such setting on the web interface of their
> Google/Gmail account security settings, which means that it should also be
> able to do vanilla IMAP4/SMTP with 'Normal Password'.  I'll ask them to
> check again in case Google has changed this.  However, T'bird can still
> received messages in the Inbox, it is the SMTP which is not working.  :-/
> 
> Either way, I also tried SSL/TLS with OAuth2 and it is still not working.

You can still do SMTP and IMAP without OAuth2. Use application passwords, and 
create an application password for your Thunderbird use. This is how I'm using 
GMail+IMAP+SMTP with Akonadi.

https://support.google.com/accounts/answer/185833?hl=en


-- 
:wq

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


Re: [gentoo-user] Re: TCP Queuing problem

2016-09-21 Thread Michael Mol
On Wednesday, September 21, 2016 01:47:28 PM Grant wrote:
> >> I haven't mentioned it yet, but several times I've seen the website
> >> perform fine all day until I browse to it myself and then all of a
> >> sudden it's super slow for me and my third-party monitor.  WTF???
> > 
> > I had a similar problems once when routing through a IPsec VPN tunnnel.
> > I needed to reduce MTU in front of the tunnel to make it work
> > correctly. But I think your problem is different.
> 
> I'm not using IPsec or a VPN.
> 
> > Does the http server backlog on the other side? Do you have performance
> > graphs for other parts of the system to see them in relation? Maybe
> > some router on the path doesn't work as expected.
> 
> I've attached a graph of http response time, CPU usage, and TCP
> queueing over the past week.  It seems clear from watching top, iotop,
> and free than my CPU is always the bottleneck on my server.

I'm going to throw one more tool at you; give atop a try. (htop is nice, too, 
but atop is more powerful.)

-- 
:wq

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


Re: [gentoo-user] Re: USB crucial file recovery

2016-09-01 Thread Michael Mol

On Thursday, September 01, 2016 04:21:18 PM J. Roeleveld wrote:
> On Thursday, September 01, 2016 08:41:39 AM Michael Mol wrote:
> > On Wednesday, August 31, 2016 11:45:15 PM Alan McKinnon wrote:
> > > On 31/08/2016 17:25, Grant wrote:
> > > >> Which NTFS system are you using?
> > > >> 
> > > >> ntfs kernel module? It's quite dodgy and unsafe with writes
> > > >> ntfs-ng on fuse? I find that one quite solid
> > > > 
> > > > I'm using ntfs-ng as opposed to the kernel option(s).
> > > 
> > > I'm offering 10 to 1 odds that your problems came from ... one that you
> > > yanked too soon
> > 
> > (pardon the in-line snip, while I get on my soap box)
> > 
> > The likelihood of this happening can be greatly reduced by setting
> > vm.dirty_bytes to something like 2097125 and vm.dirty_background_bytes to
> > something like 1048576. This prevents the kernel from queuing up as much
> > data for sending to disk. The application doing the copy or write will
> > normally report "complete" long before writes to slow media are
> > actually...complete. Setting vm.dirty_bytes to something low prevents the
> > kernel's backlog of data from getting so long.
> > 
> > vm.dirty_bytes has another, closely-related setting, vm.dirty_bytes_ratio.
> > vm.dirty_bytes_ratio is a percentage of RAM that is used for dirty bytes.
> > If vm.dirty_bytes_ratio is set, vm.dirty_bytes will read 0. If
> > vm.dirty_bytes is set, vm.dirty_bytes_ratio will read 0.
> > 
> > The default is for vm.dirty_bytes_ratio to be 20, which means up to 20% of
> > your memory can find itself used as a write buffer for data on its way to
> > a
> > filesystem. On a system with only 2GiB of RAM, that's 409MiB of data that
> > the kernel may still be waiting to push through the filesystem layer! If
> > you're writing to, say, a class 10 SDHC card, the data may not be at rest
> > for another 40s after the application reports the copy operation is
> > complete!
> > 
> > If you've got a system with 8GiB of memory, multiply all that by four.
> > 
> > The defaults for vm.dirty_bytes and vm.dirty_background_bytes are, IMO,
> > badly broken and an insidious source of problems for both regular Linux
> > users and system administrators.
> 
> I would prefer to be able to have different settings per disk.
> Swappable drives like USB, I would put small numbers.
> But for built-in drives, I'd prefer to keep default values or tuned to the
> actual drive.

The problem is that's not really possible. vm.dirty_bytes and 
vm.dirty_background_bytes deal with the page cache, which sits at the VFS 
layer, not the block device layer. It could certainly make sense to apply it 
on a per-mount basis, though.

-- 
:wq

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


Re: [gentoo-user] Re: USB crucial file recovery

2016-09-01 Thread Michael Mol
On Thursday, September 01, 2016 09:35:15 AM Rich Freeman wrote:
> On Thu, Sep 1, 2016 at 8:41 AM, Michael Mol <mike...@gmail.com> wrote:
> > The defaults for vm.dirty_bytes and vm.dirty_background_bytes are, IMO,
> > badly broken and an insidious source of problems for both regular Linux
> > users and system administrators.
> 
> It depends on whether you tend to yank out drives without unmounting
> them,

The sad truth is that many (most?) users don't understand the idea of 
unmounting. Even Microsoft largely gave up, having flash drives "optimized for 
data safety" as opposed to "optimized for speed". While it'd be nice if the 
average John Doe would follow instructions, anyone who's worked in IT 
understands that the average John Doe...doesn't. And above-average ones assume 
they know better and don't have to.

As such, queuing up that much data while reporting to the user that the copy 
is already complete violates the principle of least surprise.

> or if you have a poorly-implemented database that doesn't know
> about fsync and tries to implement transactions across multiple hosts.

I don't know off the top of my head what database implementation would do that, 
though I could think of a dozen that could be vulnerable if they didn't sync 
properly.

The real culprit that comes to mind, for me, are copy tools. Whether it's dd, 
mv, cp, or a copy dialog in GNOME or KDE. I would love to see CoDeL-style 
time-based buffer sizes applied throughout the stack. The user may not care 
about how many milliseconds it takes for a read to turn into a completed write 
on the face of it, but they do like accurate time estimates and low latency 
UI.

> 
> The flip side of all of this is that you can save-save-save in your
> applications and not sit there and watch your application wait for the
> USB drive to catch up.  It also allows writes to be combined more
> efficiently (less of an issue for flash, but you probably can still
> avoid multiple rounds of overwriting data in place if multiple
> revisions come in succession, and metadata updating can be
> consolidated).

I recently got bit by vim's easytags causing saves to take a couple dozen 
seconds, leading me not to save as often as I used to. And then a bunch of 
code I wrote Monday...wasn't there any more. I was sad.

> 
> For a desktop-oriented workflow I'd think that having nice big write
> buffers would greatly improve the user experience, as long as you hit
> that unmount button or pay attention to that flashing green light
> every time you yank a drive.

Realistically, users aren't going to pay attention. You and I do, but that's 
because we understand the *why* behind the importance.

I love me fat write buffers for write combining, page caches etc. But, IMO, it 
shouldn't take longer than 1-2s (barring spinning rust disk wake) for full 
buffers to flush to disk; at modern write speeds (even for a slow spinning 
disc), that's going to be a dozen or so megabytes of data, which is plenty big 
for write-combining purposes.

-- 
:wq

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


Re: [gentoo-user] [OT] Is it still advisable to partition a big hard drive?

2016-09-01 Thread Michael Mol

On Thursday, September 01, 2016 12:09:09 PM gevisz wrote:
> 2016-09-01 11:54 GMT+03:00 Neil Bothwick :
> > On Thu, 1 Sep 2016 11:49:43 +0300, gevisz wrote:
> >> > If your filesystem becomes corrupt (and you are unable to
> >> > repair it), *all* of your data is lost (instead of just
> >> > one partition). That's the only disadvantage I can think
> >> > of.
> >> 
> >> That is exactly what I am afraid of!
> >> 
> >> So, the 20-years old rule of thumb is still valid. :(
> >> 
> >> > I don't like partitions either (after some years, I
> >> > always found that sizes don't match my requirements any
> >> > more),
> >> 
> >> And this is exactly the reason why I do not want to partition
> >> my new hard drive! :)
> > 
> > Have you considered LVM? You get the benefits of separate filesystems
> > without the limitations of inflexible partitioning.
> 
> I am afraid of LVM because of the same reason as described below:
> 
> returning to the "old good times" of MS DOS 6.22, I do remember that working
> then on 40MB (yes, megabytes) hard drive I used some program that
> compressed all the data before saving them on that hard drive.
> Unfortunately, one day, because of the corruption, I lost all the data on
> that hard drive. Since then, I am very much afraid of compressed or
> encrypted hard drives.

LVM doesn't *need* to do any of that. It will only do as much as you tell it 
to do. If you only want to use it as a way of reshaping relatively simple 
partitions, you can use it for that.

Honestly, I tend not to create separate partitions for separate mount points 
these days. At least, not on personal systems. For servers, it's can be 
beneficial to have /var separate from /, or /var/log separate from /var, or 
/var/spool, or /var/lib/mysql, or what have you. But the biggest driver for 
that, IME, is if one of those fills up, it can't take down the rest of the 
host.

In your case, I'd suggest using a single / filesystem. If it works, it works. 
If it doesn't, you'll know in the future where you need to be more flexible; 
there's no single panacea.

-- 
:wq

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


Re: [gentoo-user] Re: USB crucial file recovery

2016-09-01 Thread Michael Mol
On Wednesday, August 31, 2016 11:45:15 PM Alan McKinnon wrote:
> On 31/08/2016 17:25, Grant wrote:
> >> Which NTFS system are you using?
> >> 
> >> ntfs kernel module? It's quite dodgy and unsafe with writes
> >> ntfs-ng on fuse? I find that one quite solid
> > 
> > I'm using ntfs-ng as opposed to the kernel option(s).
> 
> I'm offering 10 to 1 odds that your problems came from ... one that you 
> yanked too soon

(pardon the in-line snip, while I get on my soap box)

The likelihood of this happening can be greatly reduced by setting 
vm.dirty_bytes to something like 2097125 and vm.dirty_background_bytes to 
something like 1048576. This prevents the kernel from queuing up as much data 
for sending to disk. The application doing the copy or write will normally 
report "complete" long before writes to slow media are actually...complete. 
Setting vm.dirty_bytes to something low prevents the kernel's backlog of data 
from getting so long.

vm.dirty_bytes has another, closely-related setting, vm.dirty_bytes_ratio. 
vm.dirty_bytes_ratio is a percentage of RAM that is used for dirty bytes. If 
vm.dirty_bytes_ratio is set, vm.dirty_bytes will read 0. If vm.dirty_bytes is 
set, vm.dirty_bytes_ratio will read 0.

The default is for vm.dirty_bytes_ratio to be 20, which means up to 20% of 
your memory can find itself used as a write buffer for data on its way to a 
filesystem. On a system with only 2GiB of RAM, that's 409MiB of data that the 
kernel may still be waiting to push through the filesystem layer! If you're 
writing to, say, a class 10 SDHC card, the data may not be at rest for another 
40s after the application reports the copy operation is complete!

If you've got a system with 8GiB of memory, multiply all that by four.

The defaults for vm.dirty_bytes and vm.dirty_background_bytes are, IMO, badly 
broken and an insidious source of problems for both regular Linux users and 
system administrators.

-- 
:wq

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


Re: [gentoo-user] Re: USB crucial file recovery

2016-08-31 Thread Michael Mol

On Wednesday, August 31, 2016 12:12:15 AM Volker Armin Hemmann wrote:
> Am 30.08.2016 um 23:59 schrieb Rich Freeman:
> > On Tue, Aug 30, 2016 at 4:58 PM, Volker Armin Hemmann
> > 
> >  wrote:
> >> the journal does not add any data integrity benefits at all. It just
> >> makes it more likely that the fs is in a sane state if there is a crash.
> >> Likely. Not a guarantee. Your data? No one cares.
> > 
> > That depends on the mode of operation.  In journal=data I believe
> > everything gets written twice, which should make it fairly immune to
> > most forms of corruption.
> 
> nope. Crash at the wrong time, data gone. FS hopefully sane.

No, seriously. Mount with data=ordered. Per ext4(5):

data={journal|ordered|writeback}
  Specifies the journaling mode for file data.  Metadata is always 
journaled.  To use modes other than ordered on the root filesystem, pass the 
mode to the kernel as boot parameter, e.g. rootflags=data=journal.

  journal
 All data is committed into the journal prior to being 
written into the main filesystem.

  ordered
 This is the default mode.  All data is forced directly 
out to the main file system prior to its metadata being committed to the 
journal.

  writeback
 Data ordering is not preserved – data may be written into 
the main filesystem after its metadata has been committed to the journal.  This 
is rumoured to be the highest-throughput option.  It guarantees internal 
filesystem integrity, however it can allow old data to appear in files after a 
crash and journal recovery.



In writeback mode, only filesystem metadata goes through the journal. This 
guarantees that the filesystem's structure itself will remain intact in the 
event of a crash.

In data=journal mode, the contents of files pass through the journal as well, 
ensuring that, at least as far as the filesystem's responsibility is concerned, 
the data will be intact in the event of a crash.

Now, I can still think of ways you can lose data in data=journal mode:

* You mounted the filesystem with barrier=0 or with nobarrier; this can result 
in data writes going to disk out of order, if the I/O stack supports barriers. 
If you say "my file is ninety bytes" "here are ninety bytes of data, all 9s", 
"my file is now thirty bytes", "here are thirty bytes of data, all 3s", then in 
the end you should have a thirty-byte file filled with 3s. If you have barriers 
enabled and you crash halfway through the whole process, you should find a file 
of ninety bytes, all 9s. But if you have barriers disabled, the data may hit 
disk as though you'd said "my file is ninety bytes, here are ninety bytes of 
data, all 9s, here are thirty bytes of data, all 3s, now my file is thirty 
bytes." If that happens, and you crash partway through the commit to disk, you 
may see a ninety-byte file consisting of  thirty 3s and sixty 9s. Or things may 
landthat you see a thirty-byte file of 9s.

* Your application didn't flush its writes to disk when it should have.

* Your vm.dirty_bytes or vm.dirty_ratio are too high, you've been writing a 
lot to disk, and the kernel still has a lot of data buffered waiting to be 
written. (Well, that can always lead to data loss regardless of how high those 
settings are, which is why applications should flush their writes.)

* You've used hdparm to enable write buffers in your hard disks, and your hard 
disks lose power while their buffers have data waiting to be written.

* You're using a buggy disk device that does a poor job of handling power 
loss. Such as some SSDs which don't have large enough capacitors for their own 
write reordering. Or just about any flash drive.

* There's a bug in some code, somewhere.

> 
> > f2fs would also have this benefit.  Data is not overwritten in-place
> > in a log-based filesystem; they're essentially journaled by their
> > design (actually, they're basically what you get if you ditch the
> > regular part of the filesystem and keep nothing but the journal).
> > 
> >> If you want an fs that cares about your data: zfs.
> > 
> > I won't argue that the COW filesystems have better data security
> > features.  It will be nice when they're stable in the main kernel.
> 
> it is not so much about cow, but integrity checks all the way from the
> moment the cpu spends some cycles on it. Caught some silent file
> corruptions that way. Switched to ECC ram and never saw them again.

In-memory corruption of a data is a universal hazard. ECC should be the norm, 
not the exception, honestly.

-- 
:wq

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


Re: [gentoo-user] removal of bopm before hopm is in tree

2016-08-29 Thread Michael Mol
On Thursday, August 25, 2016 07:29:35 PM Raymond Jennings wrote:
> I still use bopm, and it built fine last time I emerged it.
> 
> If hopm isn't in the tree yet, why was bopm still pmasked for removal?
> 
> Reason for asking is I'm curious about removal procedures.  I was under the
> impression that replacement packages get added to the tree before their
> obsolete predecessors get pmasked for booting out.
> 
> And if that's not the case, should it be?

https://bugs.gentoo.org/show_bug.cgi?id=473754 

has a bug noting why bopm is being removed. It was mentioned in there that 
hopm isn't in tree, sure. It's also mentioned that bopm's default configuration 
doesn't really do anything, as it depends on a service that was shuttered back 
in 2013. (If I read the bug report correctly.)

However, note that in that bug, bopm is listed has not having a maintainer in 
Gentoo...no dev (or volunteer) is maintaining it. Without a maintainer, 
there's nobody with access who's motivated to add hopm.

If you'd like to see hopm in the tree, you care more about it than any of the 
current devs. Which means you should probably look at 
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers and see about becoming 
a proxy maintainer for it.

-- 
:wq

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


Re: [gentoo-user] Gummiboot -> efibootmgr

2016-08-23 Thread Michael Mol
On Tuesday, August 23, 2016 10:41:50 AM Peter Humphrey wrote:
> On Tuesday 23 Aug 2016 05:18:02 Tom H wrote:
> > On Mon, Aug 22, 2016 at 11:05 AM, Peter Humphrey 
>
> wrote:
> > > Following today's marking of gummiboot as to be deleted in a month, I
> > > had a look at efibootmgr in the wiki pages. It looks as though I'll be
> > > able to use it instead, but one thing puzzles me: is it possible to
> > > create a set of configs for several kernels, the way gummiboot does in
> > > /boot/loader/entries/*.conf? Actually, I'd also like to specify each of
> > > two kernel versions with three different command lines to start
> > > different run levels.
> >
> > You can create multiple entries with efibootmgr but you'll have to
> > boot to your firmware to choose a non-default option.
>
> Yes, that's how it was looking to me too. Not an ideal arrangement.

If you're not frequently jumping to a non-default boot environment, it's fine.

Every time I update my kernel, I either add a new boot entry (or replace the 
oldest)
pointing to my kernel, set the boot order to boot the newest entry by default 
(also
configured via efibootmgr), and...I'm set. If the kernel fails to boot the 
system, I can still
access my previous working kernel for rescue purposes. My current setup:

*#* efibootmgr -v

The hardest part, honestly, is remembering the commands to do it, since I only 
do it once
every few months...

--
:wq


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


Re: [gentoo-user] EAPI packages

2016-08-16 Thread Michael Mol
On Tuesday, August 16, 2016 11:19:27 AM Rich Freeman wrote:
> On Tue, Aug 16, 2016 at 11:02 AM, Michael Mol <mike...@gmail.com> wrote:
> > My workstation updates on a cron job every day at 6PM. I check my email in
> > the morning to see if it ran into any trouble, correct whatever it
> > complained about, and let it try again the next evening.
>
> I think you're better-off building binary packages at night and
> installing them during the day.  I'm not really keen on having Portage
> do whatever it wants.  It doesn't happen all that often but sometimes
> I end up with a proposed downgrade that I'd prefer that it not do.
>
> I can't tell you who I stole this script from (one of the lists):
>
> #!/bin/sh
>
> LIST=$(mktemp);
>
> emerge -puD --changed-use --color=n --columns --quiet=y --changed-deps
> --with-bdeps=n world | awk '{print $2}' > ${LIST}
>
> for PACKAGE in $(cat ${LIST});
> do
>  printf "Building binary package for ${PACKAGE}... "
>  emerge -uN --quiet-build --quiet=y --buildpkgonly ${PACKAGE};
>  if [[ $? -eq 0 ]];
>  then
>echo "ok";
>  else
>echo "failed";
>  fi
> done
>
> It can only get one level deep when there are dependencies.  So, if
> you have a KDE update you'll still do a lot of building during the
> day.  But, at least you won't be building kdelibs.  And this is really
> nice when chromium comes along with an update.

So, here's my crontab entry. It's not necessarily the most efficient, but since 
I'm not around
to wait on it, I don't really care; it works.

*0 18 * * ** */usr/bin/eix-sync >/dev/null; /usr/bin/glsa-check --list ; 
/usr/sbin/perl-cleaner
all ; /usr/sbin/python-updater ; /usr/sbin/haskell-updater ; /usr/bin/emerge 
-uDN @wor*

The eix-sync, when backed by git, is really, really, really noisy, so I 
>/dev/null it. There's a
ridiculous amount of stuff in the output every night. Though that may be 
because of my
EMERGE_DEFAULT_OPTS:

*EMERGE_DEFAULT_OPTS*=*"--tree --with-bdeps=y --keep-going --quiet-build=y 
--deep --
unordered-display --load-average 3 --jobs=3 --rebuild-if-new-slot y"*

In the end, it's been working for me for quite a long time. I've been doing 
this (or
something like it) for well over a year without it hosing my system. I even 
have it rolling
updating KDE Plasma, KDE Applications, KDE Frameworks and Qt, though that takes 
about
450 lines in packages.accept_keywords.

If I were to automate something for servers, it'd be a much more intense 
process, with
tight constraints on versioning, integration with application unit tests and 
further integration
tests at each step. (Something I'd absolutely *love* to do, but no way I'm 
going to have
time for setting that up right now. So it's yum-cron on non-critical servers, 
and manual
zoned rolling updates on critical ones.)

--
:wq


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


Re: [gentoo-user] EAPI packages

2016-08-16 Thread Michael Mol
On Tuesday, August 16, 2016 04:29:45 PM hw wrote:
> Neil Bothwick schrieb:
> > On Sat, 13 Aug 2016 16:26:21 +0200, hw wrote:
> >>> If you see this now, your production server hasn't been updated for a
> >>> long time...
> >> 
> >> About 1.5 years --- not really a long time.
> > 
> > You're kidding, right? You're running a production server without the
> > last 18 months' worth of security updates?
> 
> What can you do when you don´t have the time to do the updates, especially
> when you know that they will give you trouble and can take all day or even
> longer.

My workstation updates on a cron job every day at 6PM. I check my email in the 
morning to see if it ran into any trouble, correct whatever it complained 
about, and let it try again the next evening.

Now, I wouldn't do that on a server...but I *would* orchestrate server updates 
with Gentoo, albeit it would take a significant amount of smarts in my 
automation efforts, and lots of integration testing and a couple manual steps.

-- 
:wq

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


Re: [gentoo-user] kde-apps/kde-l10n-16.04.3:5/5::gentoo conflicting with kde-apps/kdepim-l10n-15.12.3:5/5::gentoo

2016-08-10 Thread Michael Mol
On Wednesday, August 10, 2016 10:13:29 AM james wrote:
> On 08/10/2016 07:45 AM, Michael Mol wrote:
> > On Tuesday, August 09, 2016 05:22:22 PM james wrote:

> >> 
> >> I did a quick test with games-arcade/xgalaga. It's an old, quirky game
> >> with sporadic lag variations. On a workstation with 32G ram and (8) 4GHz
> >> 64bit cores, very lightly loaded, there is no reason for in game lag.
> >> Your previous settings made it much better and quicker the vast majority
> >> of the time; but not optimal (always responsive). Experiences tell me if
> >> I can tweak a system so that that game stays responsive whilst the
> >> application(s) mix is concurrently running then the  quick
> >> test+parameter settings is reasonably well behaved. So thats becomes a
> >> baseline for further automated tests and fine tuning for a system under
> >> study.
> > 
> > What kind of storage are you running on? What filesystem? If you're still
> > hitting swap, are you using a swap file or a swap partition?
> 
> The system I mostly referenced, rarely hits swap in days of uptime. It's
> the keyboard latency, while playing the game, that I try to tune away,
> while other codes are running. I try very hard to keep codes from
> swapping out, cause ultimately I'm most interested in clusters that keep
> everything running (in memory). AkA ultimate utilization of Apache-Spark
> and other "in-memory" techniques.

Gotcha. dirty_bytes and dirty_background_bytes won't apply to anything that 
doesn't call mmap() with a file backing or perform some other file I/O. If 
you're not doing those things, they should have little to no impact.

Ideal values for dirty_bytes and dirty_background_bytes will depend heavily on 
the nature of your underlying storage. Dozens of other things might be tweaked 
depending on what filesystem you're using. Which is why I was asking about 
those things.

> 
> 
> Combined codes running simultaneously never hits the HD (no swappiness)
> but still there is keyboard lag.

Where are you measuring this lag? How much lag are we talking about?

> Not that it is actually affecting the
> running codes to any appreciable degree, but it is a test I run so that
> the cluster nodes will benefit from still being (low latency) quickly
> attentive to interactions with the cluster master processes, regardless
> of workloads on the nodes. Sure its  not totally accurate, but so far
> this semantical approach, is pretty darn close. It's not part of this
> conversation (on VM etc) but ultimately getting this right solves one of
> the biggest problems for building any cluster; that is workload
> invocation, shedding and management to optimize resource utilization,
> regardless of the orchestration(s) used to manage the nodes. Swapping to
> disc is verbotim, in my (ultimate) goals and target scenarios.
> 
> No worries, you have given me enough info and ideas to move forward with
> testing and tuning. I'm going to evolve these  into more precisely
> controlled and monitored experiments, noting exact hardware differences;
> that should complete the tuning of the Memory Management tasks, within
> acceptable confine  . Then automate it for later checking on cluster
> test runs with various hardware setups. Eventually these test will be
> extended to a variety of  memory and storage hardware, once the
> techniques are automated. No worries, I now have enough ideas and
> details (thanks to you) to move forward.

You've got me curious, now you're going to go run off and play with your 
thought problems and not share! Tease!

> 
> >> Perhaps Zabbix +TSdB can get me further down the pathway.  Time
> >> sequenced and analyzed data is over kill for this (xgalaga) test, but
> >> those coalesced test-vectors  will be most useful for me as I seek a
> >> gentoo centric pathway for low latency clusters (on bare metal).
> > 
> > If you're looking to avoid Zabbix interfering with your performance,
> > you'll
> > want the Zabbix server and web interface on a machine separate from the
> > machines you're trying to optimize.
> 
> agreed.
> 
> Thanks Mike,
> James

np
-- 
:wq

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


Re: [gentoo-user] kde-apps/kde-l10n-16.04.3:5/5::gentoo conflicting with kde-apps/kdepim-l10n-15.12.3:5/5::gentoo

2016-08-10 Thread Michael Mol
On Tuesday, August 09, 2016 05:22:22 PM james wrote:
> On 08/09/2016 01:41 PM, Michael Mol wrote:
> > On Tuesday, August 09, 2016 01:23:57 PM james wrote:

> > The exception is my storage cluster, which has dirty_bytes much higher, as
> > it's very solidly battery backed, so I can use its oodles of memory as a
> > write cache, giving its kernel time to reorder writes and flush data to
> > disk efficiently, and letting clients very rapidly return from write
> > requests.
> Are these TSdB (time series data) by chance?

No; my TS data is stored in a MySQL VM whose storage is host-local.

> 
> OK, so have your systematically experimented with these parameter
> settings, collected and correlated the data, domain (needs) specific ?

Not with these particular settings; what they *do* is fairly straightforward, 
so establishing configuration constraints is a function of knowing the capacity 
and behavior of the underlying hardware; there's little need to guess.

For hypothetical example, let's say you're using a single spinning rust disk 
with an enabled write cache of 64MiB. (Common enough, although you should 
ensure the write cache is disabled if you find yourself at risk of poweroff. 
You 
should be able to script that with nut, or even acpid, though.) That means the 
disk could queue up 64MiB of data to be be written, and efficiently reorder 
writes to flush them to disk faster. So, in that circumstance, perhaps you'd 
set dirty_background_bytes to 64MiB, so that the kernel will try to feed it a 
full cache's worth of data at once, giving the drive a chance to optimize its 
write ordering.

For another hypothetical example, let's say you're using a parity RAID array 
with three data disks and two parity disks, with a strip length of 1MiB. Now, 
with parity RAID, if you modify a small bit of data, when that data gets 
committed to disk, the parity bits need to get updated as well. That means 
that small write requires first reading the relevant portions of all three data 
disks, holding them in memory, adjusting the portion you wrote to, calculating 
the parity, and writing the result out to all five disks. But if you make a 
*large* write that replaces all of the data in the stripe (so, a well-placed 
3MiB write, in this case), you don't have to read the disks to find out what 
data was already there, and can simply write out your data and parity. In this 
case, perhaps you want to set dirty_background_bytes to 3MiB (or some multiple 
thereof), so that the kernel doesn't try flushing data to disk until it has a 
full stripe's worth of material, and can forgo a time-consuming initial read.

For a final hypothetical example, consider SSDs. SSDs share one interesting 
thing in common with parity RAID arrays...they have an optimum write size 
that's a lot larger than 4KiB. When you write a small amount of data to an 
SSD, it has to read an entire block of NAND flash, modify it in its own RAM, 
and write that entire block back out to NAND flash. (All of this happens 
internally to the SSD.) So, for efficiency, you want to give the SSD an entire 
block's worth of data to write at a time, if you can. So you might set 
dirty_background_bytes to the size of the SSD's block, because the fewer the 
write cycles, the longer it will last. (Different model SSDs will have 
different 
block sizes, ranging anywhere from 512KiB to 8MiB, currently.)

> 
> As unikernels collide with my work on building up  minimized and
> optimized linux clusters, my pathway forward is to use several small
> clusters, where the codes/frameworks can be changed, even the
> tweaked-tuned kernels and DFS and note the performance differences for
> very specific domain solutions. My examples are quite similar to that
> aforementioned  flight sim above, but the ordinary and uncommon
> workloads of regular admin (dev/ops) work is only a different domain.
> 
> Ideas on automating the exploration of these settings
> (scripts/traces/keystores) are keenly of interest to me, just so you know.

I think I missed some context, despite rereading what was already discussed.

> 
> >> I use OpenRC, just so you know. I also have a motherboard with IOMMU
> >> that is currently has questionable settings in the kernel config file. I
> >> cannot find consensus if/how IOMMU that affects IO with the Sata HD
> >> devices versus mm mapped peripherals in the context of 4.x kernel
> >> options. I'm trying very hard here to avoid a deep dive on these issues,
> >> so trendy strategies are most welcome, as workstation and cluster node
> >> optimizations are all I'm really working on atm.
> > 
> > Honestly, I'd suggest you deep dive. An image once, with clarity, will
> > last
> > you a lot longer than ongoing fuzzy and trendy images from people whose
> > hardware and workflow is likely

Re: [gentoo-user] kde-apps/kde-l10n-16.04.3:5/5::gentoo conflicting with kde-apps/kdepim-l10n-15.12.3:5/5::gentoo

2016-08-09 Thread Michael Mol
On Tuesday, August 09, 2016 09:09:53 AM Daniel Frey wrote:
> On 08/09/2016 05:42 AM, Michael Mol wrote:
> > I used Thunderbird for years, but I eventually had to stop when it would,
> > averaging once a month (though sometimes not for a couple months,
> > sometimes a couple times a week) explode in memory consumption and drive
> > the entire system unresponsively into swap.
> 
> I've been using thunderbird exclusively on my PC and haven't seen this
> particular issue. When was the last time you tried it?

I think I gave up on Thunderbird around February or March? Dunno. It was 
earlier this year.

> 
> I've probably got between 8k and 10k messages in it right now. Memory
> consumption is 3.3% of 8GB and I do see every 30 seconds or so
> thunderbird wakes up and does something for a few seconds, using 8-10%
> of CPU while it does. But I've never noticed it actually doing anything
> (like slowing the system to a crawl.)

I've got a few hundred thousand messages. Not interested in asking the thing 
for an exact count, as that takes a while. ;)

Thing is, I'd go for weeks, just fine, only 700MB or so of memory consumed. 
Then, abruptly, its memory consumed would climb to fill all 8GB of my physical 
memory. And if it happened over night, it'd be to about 1.4GB of swap before 
the Zabbix agent stopped sending telemetry to my collector...

-- 
:wq

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


Re: [gentoo-user] kde-apps/kde-l10n-16.04.3:5/5::gentoo conflicting with kde-apps/kdepim-l10n-15.12.3:5/5::gentoo

2016-08-09 Thread Michael Mol
On Tuesday, August 09, 2016 01:23:57 PM james wrote:
> On 08/09/2016 09:17 AM, Michael Mol wrote:
> > On Tuesday, August 09, 2016 09:13:31 AM james wrote:
> >> On 08/09/2016 07:42 AM, Michael Mol wrote:
> >> > On Monday, August 08, 2016 10:45:09 PM Alan McKinnon wrote:
> >> >> On 08/08/2016 19:20, Michael Mol wrote:
> >> >>> On Monday, August 08, 2016 06:52:15 PM Alan McKinnon wrote:
> >> >>>> On 08/08/2016 17:02, Michael Mol wrote:

> > I use Zabbix extensively at work, and have the Zabbix agent on my
> > workstation reporting back various supported metrics. There's a great
> > deal you can use (and--my favorite--abuse) Zabbix for, especially once
> > you understand how it thinks.
> 
> Congradualtions! Of the net-analyzer crowd, you've manage to find one I
> have not spent time with

Oh, man, are you in for a treat. I recently had a conversation with a guy I 
happened to sit next to while traveling about how, were I in his position, I'd 
improve his cash crop and hydroponics operations (he periodically tests soil 
and sunlight properties) continually using a combination of cheap, custom 
probes and SBCs, feeding the data into Zabbix for monitoring and trend 
analysis / prediction. Zabbix will do time-series graphing and analysis of 
arbitrary input data; it may have been designed for watching interface 
counters, but there's no reason it need be limited to that...

> 
> >> Any specific kernel tweaks?
> > 
> > Most of my tweaks for KDE revolved around tuning mysqld itself. But for
> > sysctls improving workstation responsiveness as it relates to memory
> > interactions with I/O, these are my go-tos:
> > 
> > 
> > 
> > vm.dirty_background_bytes = 1048576
> > vm.dirty_bytes = 10485760
> > vm.swappiness = 0
> 
> Mine are::
> cat dirty_bytes
> 0
> cat dirty_background_bytes
> 0

So, that means you have vm.dirty_bytes_ratio and vm.dirty_background_ratio 
set, instead. I forget what those default to, but I think 
dirty_bacgkround_ratio defaults to something like 10, which means *10%* of 
your memory may get used for buffering disk I/O before it starts writing data 
to disk. dirty_bytes_ratio will necessarily be higher, which means that if 
you're performing seriously write-intensive activities on a system with 32GiB 
of RAM, you may find yourself with a system that will halt until it finishes 
flushing 3+GiB of data to disk.

> cat swappiness
> 60

Yeah, you want that set to lower than that.

> 
> > vm.dirty_background_bytes ensures that any data (i.e. from mmap or
> > fwrite, not from swapping) waiting to be written to disk *starts*
> > getting written to disk once you've got at least the configured amount
> > (1MB) of data waiting. (If you've got a disk controller with
> > battery-backed or flash-backed write cache, you might consider
> > increasing this to some significant fraction of your write cache. I.e.
> > if you've got a 1GB FBWC with 768MB of that dedicated to write cache,
> > you might set this to 512MB or so. Depending on your workload. I/O
> > tuning is for those of us who enjoy the dark arts.)
> > 
> > 
> > 
> > vm.dirty_bytes says that once you've got the configured amount (10MB) of
> > data waiting to be disk, then no more asynchronous I/O is permitted
> > until you have no more data waiting; all outstanding writes must be
> > finished first. (My rule of thumb is to have this between 2-10 times the
> > value of vm.dirty_background_bytes. Though I'm really trying to avoid it
> > being high enough that it could take more than 50ms to transfer to disk;
> > that way, any stalls that do happen are almost imperceptible.)
> > 
> > 
> > 
> > You want vm.dirty_background_bytes to be high enough that your hardware
> > doesn't spend its time powered on if it doesn't have to be, and so that
> > your hardware can transfer data in large, efficient, streamable chunks.
> > 
> > 
> > 
> > You want vm.dirty_bytes enough higher than your first number so that
> > your hardware has enough time to spin up and transfer data before you
> > put the hammer down and say, "all right, nobody else gets to queue
> > writes until all the waiting data has reached disk."
> > 
> > 
> > 
> > You want vm.dirty_bytes *low* enough that when you *do* have to put that
> > hammer down, it doesn't interfere with your perceptions of a responsive
> > system. (And in a server context, you want it low enough that things
> > can't time out--or be pushed into timing out--waiting for it. Call your
> > user attention a matter of timing out expecting things to respo

Re: [gentoo-user] kde-apps/kde-l10n-16.04.3:5/5::gentoo conflicting with kde-apps/kdepim-l10n-15.12.3:5/5::gentoo

2016-08-09 Thread Michael Mol
On Tuesday, August 09, 2016 09:13:31 AM james wrote:
> On 08/09/2016 07:42 AM, Michael Mol wrote:
> > On Monday, August 08, 2016 10:45:09 PM Alan McKinnon wrote:
> >> On 08/08/2016 19:20, Michael Mol wrote:
> >>> On Monday, August 08, 2016 06:52:15 PM Alan McKinnon wrote:
> >>>> On 08/08/2016 17:02, Michael Mol wrote:
> >>> snip <<<
> >>
> >> KMail is the lost child of KDE for many months now, I reckon this
> >> situation is just going to get worse and worse. I know for myself my
> >> mail problems ceased the day I dumped KMail4 for claws and/or thunderbird
> >
> > That's really, really sad.
> >
> > I used Thunderbird for years, but I eventually had to stop when it would,
> > averaging once a month (though sometimes not for a couple months,
> > sometimes a couple times a week) explode in memory consumption and drive
> > the entire system unresponsively into swap.
> >
> > I've tried claws from time to time due to other annoyances with
> > Thunderbird, but I kept switching back. Not because I liked Tbird, but
> > (IIRC) because of stability issues I had with claws.
> >
> > Even with the bugs it has, Kontact and Akonadi has been the most reliable
> > mail client I've used in the last year. When it gives me problems, I know
> > why, and I can address it. (Running a heavily tuned MySQLd instance
> > behind Akonadi, for example...)
> >
> > I wish someone would pay me to fix this stuff; I'd be able to spend the
> > time on it.
>
> Perhaps an experiment. Locate some folks that know about how to promote
> 'crowd funding'. The propose a project like this, targeted at business
> and user, to all pitch in. In fact, quite a few beloved open source
> projects could benefit, if the idea of crowd funding took hold
> on open source soft. Perhaps one of the foundations deeply involved in
> the open source movement would get behind the idea?
>
> KDE is very popular, so the concept or something similar might just have
> legs, even if it only funds a series of grad-students or young
> programmers to maintain good FOSS projects?

A wonderful thought. I rather expect KDE is already doing this, but if not, 
they ought to. (I'm
sure someone who commits code to KDE reads this list...)

Certainly wouldn't cover someone like me who has a family to support, but still.

>
> AS a side note, I put 32G of ram on my system and still at times it is
> laggy with little processor load and htop shows little <30% ram usage.
> What tools do you use to track down mem. management issues?

I use Zabbix extensively at work, and have the Zabbix agent on my workstation 
reporting
back various supported metrics. There's a great deal you can use (and--my 
favorite--
abuse) Zabbix for, especially once you understand how it thinks.

>
> Any specific kernel tweaks?

Most of my tweaks for KDE revolved around tuning mysqld itself. But for sysctls 
improving
workstation responsiveness as it relates to memory interactions with I/O, these 
are my go-
tos:

vm.*dirty*_background_bytes = 1048576
vm.*dirty*_bytes = 10485760
vm.*swap*piness = 0

vm.dirty_background_bytes ensures that any data (i.e. from mmap or fwrite, not 
from
swapping) waiting to be written to disk *starts* getting written to disk once 
you've got at
least the configured amount (1MB) of data waiting. (If you've got a disk 
controller with
battery-backed or flash-backed write cache, you might consider increasing this 
to some
significant fraction of your write cache. I.e. if you've got a 1GB FBWC with 
768MB of that
dedicated to write cache, you might set this to 512MB or so. Depending on your 
workload.
I/O tuning is for those of us who enjoy the dark arts.)

vm.dirty_bytes says that once you've got the configured amount (10MB) of data 
waiting to
be disk, then no more asynchronous I/O is permitted until you have no more data 
waiting;
all outstanding writes must be finished first. (My rule of thumb is to have 
this between 2-10
times the value of vm.dirty_background_bytes. Though I'm really trying to avoid 
it being
high enough that it could take more than 50ms to transfer to disk; that way, 
any stalls that
do happen are almost imperceptible.)

You want vm.dirty_background_bytes to be high enough that your hardware doesn't 
spend
its time powered on if it doesn't have to be, and so that your hardware can 
transfer data in
large, efficient, streamable chunks.

You want vm.dirty_bytes enough higher than your first number so that your 
hardware has
enough time to spin up and transfer data before you put the hammer down and 
say, "all
right, nobody else gets to queue writes until all the waiting data has reached 
disk."

You want vm.dirty_bytes *low* enough that when you *do* have to put that hammer 
down,
it doesn'

Re: [gentoo-user] kde-apps/kde-l10n-16.04.3:5/5::gentoo conflicting with kde-apps/kdepim-l10n-15.12.3:5/5::gentoo

2016-08-09 Thread Michael Mol
On Monday, August 08, 2016 10:45:09 PM Alan McKinnon wrote:
> On 08/08/2016 19:20, Michael Mol wrote:
> > On Monday, August 08, 2016 06:52:15 PM Alan McKinnon wrote:
> >> On 08/08/2016 17:02, Michael Mol wrote:

[snip]

> > 
> > [nomerge   ] kde-apps/kde-apps-meta-16.04.3
> > 
> > [nomerge   ] kde-apps/kdepim-meta-4.14.11_pre20160211
> > 
> > [ebuild  NS]  kde-apps/kdepim-l10n-15.12.3 [4.14.3-r1] USE="-debug
> > -handbook" L10N="-ar -bg -bs -ca -ca-valencia -cs -da -de -el -en-GB -eo
> > -es -et -eu -fa -fi -fr -ga -gl -he -hi -hr -hu -ia -id -is -it -ja -kk
> > -km -ko -lt -lv -mr -nb -nds -nl -nn -pa -pl -pt -pt-BR -ro -ru -sk -sl
> > -sr -sv -tr -ug -uk -wa -zh-CN -zh-TW"
> > 
> > [blocks b  ]   kde-apps/kdepim-l10n:4 ("kde-apps/kdepim-l10n:4" is
> > blocking kde-apps/kdepim-l10n-15.12.3)
> > 
> > [uninstall ]kde-apps/kdepim-l10n-4.14.3-r1
> > 
> > [blocks B  ]  > (" 
> It wants to pull in kde-apps/kdepim-l10n-15.12.3
> 
> Any reason it refuses  kde-apps/kdepim-l10n-16.04.3 other than it's
> unstable?

Good catch. I thought I had most of kde-apps unmasked for unstable to keep 
with the rolling. Missed that one.

> 
> 
> KMail is the lost child of KDE for many months now, I reckon this
> situation is just going to get worse and worse. I know for myself my
> mail problems ceased the day I dumped KMail4 for claws and/or thunderbird

That's really, really sad.

I used Thunderbird for years, but I eventually had to stop when it would, 
averaging once a month (though sometimes not for a couple months, sometimes a 
couple times a week) explode in memory consumption and drive the entire system 
unresponsively into swap.

I've tried claws from time to time due to other annoyances with Thunderbird, 
but I kept switching back. Not because I liked Tbird, but (IIRC) because of 
stability issues I had with claws.

Even with the bugs it has, Kontact and Akonadi has been the most reliable mail 
client I've used in the last year. When it gives me problems, I know why, and 
I can address it. (Running a heavily tuned MySQLd instance behind Akonadi, for 
example...)

I wish someone would pay me to fix this stuff; I'd be able to spend the time on 
it.

-- 
:wq

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


Re: [gentoo-user] kde-apps/kde-l10n-16.04.3:5/5::gentoo conflicting with kde-apps/kdepim-l10n-15.12.3:5/5::gentoo

2016-08-08 Thread Michael Mol

On Monday, August 08, 2016 06:52:15 PM Alan McKinnon wrote:
> On 08/08/2016 17:02, Michael Mol wrote:
> > Been getting this in my email every morning for several days now. Rather
> > expected it to clear by now, but since it hasn't, and googling doesn't
> > seem to indicate anyone has noted the issue...
> >
> >  * Error: The above package list contains packages which cannot be
> >  * installed at the same time on the same system.
> >
> >   (kde-apps/kde-l10n-16.04.3:5/5::gentoo, installed) pulled in by
> >
> > >=kde-apps/kde-l10n-16.04.3 required by (kde-apps/kde4-
> >
> > l10n-16.04.3:4/4::gentoo, installed)
> >
> > >=kde-apps/kde-l10n-16.04.3 required by (kde-apps/kde-apps-
> >
> > meta-16.04.3:5/5::gentoo, installed)
> >
> >   (kde-apps/kdepim-l10n-15.12.3:5/5::gentoo, ebuild scheduled for merge)
> >
> > pulled in by
> >
> > >=kde-apps/kdepim-l10n-4.14.3 required by (kde-apps/kdepim-
> >
> > meta-4.14.11_pre20160211:4/4::gentoo, installed)
> >
> >
> > Now, it's not clear, if I'd like to continue using both KMail and non-
> > deprecated kde-apps, what to do here. Just hope that kdepim gets updated
> > to
> > qt5 soon? I'd pitch in, but I don't have the time.
>
> please post the portion of the output/mail that shows the blockers.

[nomerge   ] kde-apps/kde-apps-meta-16.04.3
[nomerge   ] kde-apps/kdepim-meta-4.14.11_pre20160211
[ebuild  NS]  kde-apps/kdepim-l10n-15.12.3 [4.14.3-r1] USE="-debug 
-handbook"
L10N="-ar -bg -bs -ca -ca-valencia -cs -da -de -el -en-GB -eo -es -et -eu -fa 
-fi -fr -ga -gl -
he -hi -hr -hu -ia -id -is -it -ja -kk -km -ko -lt -lv -mr -nb -nds -nl -nn -pa 
-pl -pt -pt-BR -ro -ru
-sk -sl -sr -sv -tr -ug -uk -wa -zh-CN -zh-TW"
[blocks b  ]   kde-apps/kdepim-l10n:4 ("kde-apps/kdepim-l10n:4" is blocking 
kde-
apps/kdepim-l10n-15.12.3)
[uninstall ]kde-apps/kdepim-l10n-4.14.3-r1
[blocks B  ] 

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


Re: [gentoo-user] 2 MTA at the same host

2016-08-08 Thread Michael Mol
On Monday, August 08, 2016 06:55:40 PM Alan McKinnon wrote:
> On 08/08/2016 12:29, Konstantin wrote:
> > Hello Guys
> > 
> > I need to install postfix and exim at the same Gentoo server.
> 
> Why?
> 
> You either have them running on different ports (mighty unusual) or,
> more likely or different NICs.
> 
> So put them on two different machines. Hardware is dirt cheap and unless
> you are a huge corporate an average Samsung S5 phone can fill most mail
> needs. Or as Neil suggested, make one machine a VM

Hardware is cheap, but electricity adds up and more than makes up for it.

I agree with Neil, though; virtualization is in order in this circumstance. 
MTAs are very much not designed to be clever enough to coexist on the same 
host.

A better solution still would likely be figuring out why 2 MTAs are necessary 
and figure out how to configure a single MTA to handle the role of both, if at 
all possible.

-- 
:wq

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


[gentoo-user] kde-apps/kde-l10n-16.04.3:5/5::gentoo conflicting with kde-apps/kdepim-l10n-15.12.3:5/5::gentoo

2016-08-08 Thread Michael Mol
Been getting this in my email every morning for several days now. Rather 
expected it to clear by now, but since it hasn't, and googling doesn't seem to 
indicate anyone has noted the issue...

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (kde-apps/kde-l10n-16.04.3:5/5::gentoo, installed) pulled in by
>=kde-apps/kde-l10n-16.04.3 required by (kde-apps/kde4-
l10n-16.04.3:4/4::gentoo, installed)
>=kde-apps/kde-l10n-16.04.3 required by (kde-apps/kde-apps-
meta-16.04.3:5/5::gentoo, installed)

  (kde-apps/kdepim-l10n-15.12.3:5/5::gentoo, ebuild scheduled for merge) 
pulled in by
>=kde-apps/kdepim-l10n-4.14.3 required by (kde-apps/kdepim-
meta-4.14.11_pre20160211:4/4::gentoo, installed)


Now, it's not clear, if I'd like to continue using both KMail and non-
deprecated kde-apps, what to do here. Just hope that kdepim gets updated to 
qt5 soon? I'd pitch in, but I don't have the time.

-- 
:wq

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


Re: [gentoo-user] CPU you selected does not support x86-64 instruction set

2016-05-04 Thread Michael Mol
On Wednesday, May 04, 2016 09:58:37 AM John Blinka wrote:
> Hello, Gentooers:
> 
> I have a new Dell 17 5759 with core i5-6200U skylake cpu on which I'm
> trying to dual boot windows 10 and gentoo.  All the rest of my gentoo
> hardware is much older, so this new laptop introduces 2 technologies new to
> me: uefi and 64 bit kernels.
> 
> I installed gentoo using the x86 handbook and a recent sysrescuecd usb
> drive.  The install was unremarkable except for trying to build a 64 bit
> kernel.  No matter what I do, the kernel build fails very early with the
> message:
> 
> kernel/bounds.c:1:0 error: CPU you selected does not support x86-64
> instruction set.
> 
> Looking at bounds.c does not enlighten me.
> 
> I've tried specifying a 64 bit kernel in various ways:
> 
> setting CONFIG_64BIT=y and CONFIG_X86_64=y via make menuconfig,
> 
> make defconfig, which claims it uses an x86_64_defconfig, and sets the 2
> configuration variables above to "y",
> 
> and genkernel, which says it's getting arch-specific config.sh from
> /usr/share/genkernel/arch/x86_64/config.sh, which also sets the 2 variables
> above to "y".
> 
> So, a 64 bit sysrescuecd kernel does run on this box, and its /proc/cpuinfo
> tells me that it does indeed have a core i5-6200U cpu which, per Google,
> does support the x86-64 instruction set.   I believe I've told the kernel
> make system that I want a 64 bit kernel and that the cpu I want to run it
> on supports the x86-64 instruction set.  Not trusting my kernel config
> knowledge, I've tried letting clean kernel installations produce a 64 bit
> kernel configuration for me via make defconfig and genkernel, both of which
> appear to be attempting 64 bit configurations.  All of these attempts fail
> the same way.  I've tried all of this on gentoo-sources-4.4.6 and
> -4.1.15-r1.
> 
> Any help would be greatly appreciated.  Thanks!

You should use the AMD64 handbook, not the x86 handbook, if you're trying to 
install on x86_64 hardware.

https://wiki.gentoo.org/wiki/Handbook:AMD64

More importantly, you should be booted into a 64-bit environment. That means 
using a 64-bit live image for your initial boot, and using an amd64 stage3.

EFI has similar requirements; you'll need to be booted via EFI in the first 
place in order to set up the bootloader properly; your firmware won't make the 
necessary hardware calls available to register your bootloader if you're not 
booted in EFI mode.

HTH.

-- 
:wq

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


Re: [gentoo-user] Re: Kernel upgrade from 4.1.12 to 4.4.6 hangs without writing logs.

2016-05-02 Thread Michael Mol
On Saturday, April 30, 2016 01:32:54 AM Hans wrote:
> On 30/04/16 00:28, Michael Mol wrote:
> > On Friday, April 29, 2016 10:56:28 PM Hans wrote:
> >> On 28/04/16 22:22, Hans wrote:
> >> Kernel 4.4.6 as a bug. x11-drivers/xf86-video-virtualbox does not
> >> compile.
> >> Reason:
> >> /usr/src/linux-4.4.6-gentoo/include/linux/string.h
> >> 'char *strreplace(char *s, char old, char new);' causes compile failure.
> >> "new" is a C++ keyword.
> >> Changing tp 'char *strreplace(char *s, char oldstr, char newstr);' fixes
> >> the problem.
> > 
> > That's not a bug in the kernel per se, that's a bug in using that kernel
> > header (written in C) in a compiler expecting C++ code. Which would make
> > it a bug in xf86-video-virtualbox for not linking against a C-compiled
> > object file.
> > 
> > Granted, it'd be a heck of a lot more convenient if the kernel header
> > files
> > didn't use C++ keywords...but it *is* fundamentally a problem with
> > compiling a source file using the wrong language. Like trying to read
> > something in Portugese, except it was written in Spanish. It might work
> > some of the time, but it'll catch you out eventually.
> 
> The Virtualbox internal runtime compiler, assembler and gcc compiler to
> build executables such as app-emulation/virtualbox-guest-additions, etc.
> use some of the kernel sources and headers.

Assuming those components are using this string.h header file, that just means 
that those components are correctly treating treating these header files as C 
header files, and not C++ header files.

> 
> Kernel 4.1.12 string.h and earlier did not have this silly problem.

That just means that Kernel 4.1.12 string.h and earlier weren't exposing a bug 
in xf86-video-virtualbox. 

The Linux kernel is written in C with a smattering of platform-specific 
assembler, and some other used languages at build time. The header files for 
Linux are written in C. It's built with a C compiler. It's expected to be 
consumed by things expecting to be consuming C.

xf86-video-virtualbox is trying to build C code in a C++ environment, and 
that's not guaranteed to work. In fact, it's semantically broken, as C isn't 
simply a subset of C++, nor is C++ simply a superset of C. They're two 
distinct languages that can be made to work reliably together if you pay 
attention, and the VirtualBox developers...didn't. Linux promises a stable ABI 
for existing API calls, but the symbol name for an *argument* of an API call 
isn't part of the ABI; functions' arguments' names aren't preserved at compile 
time. Similarly, adding new API calls doesn't disrupt existing API calls or 
the ABI, so adding a new API call with an argument named 'new' doesn't violate 
that ABI promise.

Now, an argument can be made that the kernel developers working in C shouldn't 
use C++ keywords, but that's a dangerous slippery slope; there are a *lot* of 
languages out there that are superficially syntactically (and even 
semantically) similar to C, but *aren't*. What makes C++ special enough that 
the kernel should respect it, but not every other language? No...userland is 
built around the kernel, not the other way around--that's what makes it the 
kernel. The kernel has a fairly well-defined set of rules in that it's written 
in a supremely common standardized language, and there exist good practices 
for interfacing code written in that language with code written in other 
languages.

I get that it's frustrating. Just trying to help you understand what's going 
on a a lower level, and why.

-- 
:wq

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


Re: [gentoo-user] Re: Kernel upgrade from 4.1.12 to 4.4.6 hangs without writing logs.

2016-04-29 Thread Michael Mol
On Friday, April 29, 2016 10:56:28 PM Hans wrote:
> On 28/04/16 22:22, Hans wrote:
> > On 27/04/16 21:33, J. Roeleveld wrote:
> >> On April 27, 2016 12:59:18 PM GMT+02:00, Hans  wrote:
> >>> Tried to upgrade the kernels of my desktop and notebook fron kernel
> >>> 4.1.12 upgrade to 4.4.6. Both systems freeze during booting with 4.4.6.
> >>> 
> >>> No dmsg, No messages logs. Previous kernel upgrades always worked
> >>> smooth
> >>> as silk.
> >>> 
> >>> Using: OpenRC, eudev, Xfce,
> >>> 
> >>> Desktop configration:
> >>> Genkernel with /etc/genkernel.conf additional options:
> >>> MENUCONFIG="yes"
> >>> MAKEOPTS="-j5"
> >>> MDADM="yes"
> >>> MDADM_CONFIG="/etc/mdadm.conf"
> >>> DISKLABEL="yes"
> >>> KNAME="genkernel-G_ROOT"
> >>> 
> >>> Boot: Grub-static
> >>> grub.conf:
> >>> title PROXY-64 domdadm LABEL=G_ROOT Gentoo Linux 4.4.6-gentoo
> >>> root (hd0,0)
> >>> kernel /boot/kernel-genkernel-G_ROOT-x86_64-4.4.6-gentoo net.ifnames=0
> >>> root=/dev/ram0 domdadm real_root=LABEL=G_ROOT
> >>> initrd /boot/initramfs-genkernel-G_ROOT-x86_64-4.4.6-gentoo
> >>> 
> >>> No error reported in genkernel.log
> >>> --
> >>> 
> >>> Notebook configration:
> >>> Genkernel with /etc/genkernel.conf additional options:
> >>> MENUCONFIG="yes"
> >>> MAKEOPTS="-j5"
> >>> DISKLABEL="yes"
> >>> KNAME="genkernel-HP_ROOT"
> >>> 
> >>> Boot: Grub-static
> >>> grub.conf:
> >>> title PROXY-64 domdadm LABEL=HP_ROOT Gentoo Linux 4.4.6-gentoo
> >>> root (hd0,0)
> >>> kernel /boot/kernel-genkernel-HP_ROOT-x86_64-4.4.6-gentoo net.ifnames=0
> >>> 
> >>> root=/dev/ram0 real_root=LABEL=HP_ROOT
> >>> initrd /boot/initramfs-genkernel-HP_ROOT-x86_64-4.4.6-gentoo
> >>> 
> >>> No error reported in genkernel.log
> >>> ---
> >> 
> >> Why are you specifying root=/dev/ram0?
> >> 
> >> Modern kernels use initramfs and you normally specify the real root
> >> device there.
> > 
> > "root=/dev/ram0" is a leftover from the original installation from a
> > long time ago. Removing it makes no difference.
> > 
> > Am at the moment making a new test installation in VirtualBox. So far
> > its working with kernel 4.4.6. If Xfce works tomorrow, it's either a
> > configuration or driver problem. I will then do a re-install of Gentoo
> > on my desktop and the notebook using a external drive.
> 
> Kernel 4.4.6 as a bug. x11-drivers/xf86-video-virtualbox does not compile.
> Reason:
> /usr/src/linux-4.4.6-gentoo/include/linux/string.h
> 'char *strreplace(char *s, char old, char new);' causes compile failure.
> "new" is a C++ keyword.
> Changing tp 'char *strreplace(char *s, char oldstr, char newstr);' fixes
> the problem.

That's not a bug in the kernel per se, that's a bug in using that kernel 
header (written in C) in a compiler expecting C++ code. Which would make it a 
bug in xf86-video-virtualbox for not linking against a C-compiled object file.

Granted, it'd be a heck of a lot more convenient if the kernel header files 
didn't use C++ keywords...but it *is* fundamentally a problem with compiling a 
source file using the wrong language. Like trying to read something in 
Portugese, except it was written in Spanish. It might work some of the time, 
but it'll catch you out eventually.

-- 
:wq

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


[gentoo-user] emerge --rebuild-if-new-rev always triggers rebuild

2016-04-29 Thread Michael Mol
From the does-this-happen-to-anyone-else-or-is-it-just-me department.

I'm finding that if I include "--rebuild-if-new-rev y", I get a slew of new 
packages built, *even if I just built them*. That seems wrong. I've tried 
removing it, and the problem goes away. The presence or absence of "--rebuild-
if-new-slot y" seems to have no impact.

EMERGE_DEFAULT_OPTS="--tree --with-bdeps=y --keep-going --quiet-build=y --deep 
--unordered-display --load-average 3 --jobs=3 --rebuild-if-new-slot y --
rebuild-if-new-rev y"

$ emerge -puDN @world

These are the packages that would be merged:

Calculating dependencies... done!
[nomerge   ] dev-python/virtualenv-13.1.2 
[nomerge   ]  dev-python/setuptools-18.4 
[nomerge   ]   dev-lang/python-3.4.3-r1 
[nomerge   ]sys-libs/ncurses-5.9-r5 
[nomerge   ] sys-libs/gpm-1.20.7-r2 
[nomerge   ]  virtual/yacc-0 
[nomerge   ]   sys-devel/bison-3.0.4-r1 
[nomerge   ]sys-devel/flex-2.5.39-r1 
[nomerge   ] sys-devel/gettext-0.19.4 
[nomerge   ]  dev-libs/libxml2-2.9.3 
[nomerge   ]   sys-devel/autoconf-2.69 
[nomerge   ]dev-lang/perl-5.20.2 
[nomerge   ] app-admin/perl-cleaner-2.19 
[nomerge   ]  app-portage/portage-utils-0.62 
[nomerge   ]   dev-libs/iniparser-3.1-r1 
[nomerge   ]app-doc/doxygen-1.8.10-r1 
[nomerge   ] app-text/ghostscript-gpl-9.15-r1 
[nomerge   ]  x11-libs/gtk+-3.18.7 
[nomerge   ]   app-accessibility/at-spi2-atk-2.18.1 
[nomerge   ]dev-libs/glib-2.46.2-r2 
[nomerge   ] dev-libs/libxslt-1.1.28-r5 
[nomerge   ]  dev-libs/libgcrypt-1.6.5 
[nomerge   ]   virtual/texi2dvi-0 
[nomerge   ]virtual/latex-base-1.0 
[nomerge   ] dev-texlive/texlive-fontutils-2014 
[nomerge   ]  dev-texlive/texlive-basic-2014 
[nomerge   ]   app-text/texlive-core-2014-r4 
[nomerge   ]x11-libs/cairo-1.14.2 
[nomerge   ] x11-libs/libX11-1.6.3 
[nomerge   ]  app-text/docbook-xml-dtd-4.3-r1 
[nomerge   ]   app-text/build-docbook-
catalog-1.19.1 
[nomerge   ]sys-apps/util-linux-2.26.2 
[nomerge   ] sys-libs/pam-1.2.1 
[nomerge   ]  sys-auth/pambase-20150213 
[nomerge   ]   sys-auth/consolekit-1.1.0 
[nomerge   ]sys-auth/polkit-0.113 
[ebuild  rR   ~] kde-plasma/polkit-kde-
agent-5.6.3 
[nomerge   ] kde-apps/kleopatra-4.14.10 
[nomerge   ]  kde-base/kdelibs-4.14.16 
[ebuild  rR   ~]   kde-apps/khelpcenter-5.6.2-r1 
[ebuild  rR]kde-frameworks/khtml-5.18.0 
[ebuild  rR   ~]kde-plasma/kde-cli-tools-5.6.3 
[ebuild  rR] kde-frameworks/kdesu-5.18.0 
[ebuild  rR]  kde-frameworks/kpty-5.18.0 
[nomerge   ] kde-plasma/plasma-meta-5.6.3 
[ebuild  rR   ~]  kde-plasma/ksshaskpass-5.6.3 
[ebuild  rR   ~]  kde-plasma/kmenuedit-5.6.3 
[ebuild  rR   ~]   kde-plasma/khotkeys-5.6.3 
[ebuild  rR   ~]kde-plasma/plasma-workspace-5.6.3 
[ebuild  rR   ~] kde-plasma/kwin-5.6.3 
[ebuild  rR   ~]  kde-plasma/kscreenlocker-5.6.3 
[ebuild  rR   ~] kde-plasma/libksysguard-5.6.3 
[ebuild  rR   ~] kde-apps/kio-extras-15.12.3 
[ebuild  rR] kde-frameworks/kxmlrpcclient-5.18.0 
[ebuild  rR   ~] kde-plasma/ksysguard-5.6.3 
[ebuild  rR   ~] kde-plasma/milou-5.6.3 
[ebuild  rR] kde-frameworks/ktexteditor-5.18.0 
[ebuild  rR   ~]  kde-plasma/kwrited-5.6.3 
[ebuild  rR   ~]  kde-plasma/bluedevil-5.6.3 
[ebuild  rR   ~]  kde-plasma/kgamma-5.6.3 
[ebuild  rR   ~]  kde-plasma/kinfocenter-5.6.3 
[ebuild  rR   ~]  kde-plasma/plasma-integration-5.6.3 
[ebuild  rR   ~]  kde-plasma/breeze-5.6.3 
[ebuild  rR]   kde-frameworks/frameworkintegration-5.18.0 
[ebuild  rR   ~]  kde-plasma/systemsettings-5.6.3 
[ebuild  rR   ~]   kde-plasma/kde-gtk-config-5.6.3 
[nomerge   ]  kde-plasma/plasma-desktop-5.6.3 
[ebuild  rR   ~]   kde-plasma/plasma-pa-5.6.3 
[ebuild  rR   ~]   kde-plasma/oxygen-5.6.3 
[ebuild  rR   ~]  kde-plasma/powerdevil-5.6.3 
[ebuild  rR   ~]  kde-plasma/sddm-kcm-5.6.3 
[ebuild  rR   ~]  kde-plasma/kdeplasma-addons-5.6.3 
[ebuild  rR]   kde-frameworks/kross-5.18.0 
[ebuild  rR   ~]  kde-plasma/kscreen-5.6.3 
[ebuild  rR   ~]  kde-plasma/user-manager-5.6.3 
[nomerge   ] kde-apps/kde-apps-meta-15.12.3-r3 
[nomerge   ]  kde-apps/kdegames-meta-15.12.3 
[ebuild  rR   ~]   kde-apps/ksquares-15.12.3 
[ebuild  rR   ~]kde-apps/libkdegames-15.12.3 

Re: [gentoo-user] Re: freeSwitch

2016-04-29 Thread Michael Mol
On Thursday, April 28, 2016 08:37:14 PM Neil Bothwick wrote:
> On Thu, 28 Apr 2016 15:32:37 -0400, Michael Mol wrote:
> > > I take it the other 10% was rounding errors? ;-)
> > 
> > Covered by NDA. ;)
> 
> Non-Decimal Addition?

Actually, part of what annoyed me about it was driven / exacerbated by things 
I honestly can't discuss. But, yes, that was intended to be roughly 10%.

-- 
:wq

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


Re: [gentoo-user] Re: freeSwitch

2016-04-28 Thread Michael Mol
On Thursday, April 28, 2016 08:24:47 PM Neil Bothwick wrote:
> On Thu, 28 Apr 2016 12:38:12 -0400, Michael Mol wrote:
> > To be clear, 80% of my grievances with FreeSwitch have to do with the
> > nature of their configuration and documentation. 9% had to do with a
> > weird issue wherin we wound up rebooting the VM containing FS on a
> > schedule; none of my instrumentation made it obvious what the nature of
> > the leak was, but somehow rebooting the VM would resolve the issue. The
> > remaining 1% was the difficulty in setting the thing up for anything
> > but their preferred platform.
> 
> I take it the other 10% was rounding errors? ;-)

Covered by NDA. ;)

-- 
:wq

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


Re: [gentoo-user] Re: freeSwitch

2016-04-28 Thread Michael Mol
On Thursday, April 28, 2016 04:06:50 PM James wrote:
> Michael Mol  gmail.com> writes:
> > Bah. So you guys aren't going to let me get away with trash-talking
> > without
> > some accountability of details. OK. I'll let you know when I've written up
> > something; I've already emailed one person a handful of my complaints in
> > bullet form. But that'd need to get more properly fleshed out before I
> > drop it somewhere more archival in nature.
> 
> Like I said, it's GOOD to have you back, brah.

Hey, the major reason for my absence was / is *time*. So the more time 
investment I have to make, the less likely I am to speak up in the first place. 
;)

> 
> > I use freeswitch here all the time as my home pbx and it does things
> > asterisk either cannot do, or only with great difficulty.  I can even
> > put c# code in it using mono and a lot of times the xml is insufficient
> > and this is where this comes in handy.  There is a mailing list, so you
> > can ask questions as well.  Its one strength and also weakness is there
> > are a lot of variables, some of which are poorly documented, and some
> > not documented at all.
> 
> Perhaps we need some code help, to join our team. Sinced MM has deep
> experience with shrot comings and other like what works form them, do
> we have a quorum?

To be clear, 80% of my grievances with FreeSwitch have to do with the nature 
of their configuration and documentation. 9% had to do with a weird issue 
wherin we wound up rebooting the VM containing FS on a schedule; none of my 
instrumentation made it obvious what the nature of the leak was, but somehow 
rebooting the VM would resolve the issue. The remaining 1% was the difficulty 
in 
setting the thing up for anything but their preferred platform.


-- 
:wq

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


Re: [gentoo-user] freeSwitch

2016-04-28 Thread Michael Mol
On Thursday, April 28, 2016 04:26:31 AM J. Roeleveld wrote:
> On April 28, 2016 12:48:36 AM GMT+02:00, "Max R.D. Parmer" 
<m...@trystero.is> wrote:
> >On Wed, Apr 27, 2016, at 15:17, Stroller wrote:
> >> > On Wed, 27 April 2016, at 3:21 pm, Michael Mol <mike...@gmail.com>
> >
> >wrote:
> >> > ...
> >> > I have a Freeswitch install on a (non-Gentoo) box at a client. That
> >
> >client has
> >
> >> > recently moved to a different PBX product. I will not willingly
> >
> >install another
> >
> >> > Freeswitch setup, and my full rant as to why would be a multi-part
> >
> >blog post.
> >
> >> I really want to read this.
> >> 
> >> Stroller.
> >
> >I would also be interested (if it helps to know you'd have an
> >audience).
> >
> >I've been looking at freeswitch and asterisk for an OSTN
> >implementation.
> >At a glance, freeswitch seemed like it might be the better design (but
> >surely experience tells the real story). I'll give kamailio a look now
> >too.
> >
> >--
> >0x7D964D3361142ACF
> 
> Same here. Would love to read this.
> 
> I ended up getting an appliance, rather than building it myself due to time
> and cost constraints.
> 
> But for a different location I am thinking of doing it myself. And from the
> description, Freeswitch sounds nice.

Bah. So you guys aren't going to let me get away with trash-talking without 
some accountability of details. OK. I'll let you know when I've written up 
something; I've already emailed one person a handful of my complaints in 
bullet form. But that'd need to get more properly fleshed out before I drop it 
somewhere more archival in nature.

-- 
:wq

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


Re: [gentoo-user] Re: Bluetooth PIM sync with KDE?

2016-04-28 Thread Michael Mol
On Thursday, April 28, 2016 10:32:58 AM J. Roeleveld wrote:
> On Tuesday, April 26, 2016 01:14:01 PM Michael Mol wrote:
> > On Tuesday, April 26, 2016 04:09:33 PM James wrote:
> > > Michael Mol  gmail.com> writes:
> > > 
> > > But it's *great* to see you post to the list, again. I peruse your
> > > install
> > > script (github) on occasion to see if you have updated it, or
> > > 'ansiblize'
> > > [1] it.  Great to hear from you, again.
> > 
> > Heh. I haven't had need of that script in years. I only needed it then
> > because *something* was causing my system to crap its pants midway through
> > emerges, and rebuilding an entire Gentoo system to narrow down why
> > was...time- consuming. I currently have exactly one Gentoo install
> > going--my workstation. And it's been ongoing-stable for something like
> > three years, now.
> 
> Good successtory.
> 
> > For a while, I didn't have any Gentoo systems, as I
> > didn't have time to stand up a personal system to play with; I'd just
> > gotten married, bought a house, now have two kids
> 
> Congratulations

Thanks. :)

> 
> > named after programming
> > languages...
> 
> Hope it's not C# and C++?  ;)

Pascal and Ada. :) I dunno, though. *I* kinda thought a name like "C Mol" or 
"R Mol" would sound more distinguished. :)

> 
> > As for that script, it turned out that having -gddb3 in CFLAGs breaks
> > glibc. Have a broken glibc get built, installed--and *nothing* that
> > spawns afterward can run. Hard to fix if you don't know why it's
> > breaking. It was a known bug, but not documented anywhere at the time. 
> > Thankfully, I notice it's currently documented in the Gentoo Wiki...
> 
> Good to know.
> I tend not to play around with CFLAGs much.

My current set:

CFLAGS="-O2 -pipe -march=native -ggdb"
LDFLAGS="${LDFLAGS} -Wl,--as-needed"

unless you're www-client/chromium, app-office/libreoffice or 
net-libs/webkit-gtk, 
in which case you don't get -ggdb.

-- 
:wq

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


Re: [gentoo-user] Failed to emerge dev-qt/qtwebkit-5.6.0

2016-04-27 Thread Michael Mol
On Wednesday, April 27, 2016 12:33:43 PM Dale wrote:
> Michael Mol wrote:
> > I have my system automatically update nightly, and check the build results
> > in the morning. If there's a persistent build error for a couple days, I
> > file a bug report. That's my threshold, anyway.
> 
> This started on Sunday.  So it has met that part anyway.  Since I run a
> mix of stable and unstable, it has been known to cause issues that are
> weird.  I just don't want to file a bug report and take up a devs time
> if it is some weird one off thing that affects no one else.  It's not
> like they don't have enough stuff to deal with already.  Then again,
> they do want info on failures so that it doesn't affect others.  Where's
> my coin to flip?  lol
> 
> I plan to sync again and if it persists, Raid comes out.  :/

If the problem started Monday, ad you didn't flip any USE flags or other 
settings, then its a regression or other new issue; at the very least, it 
helps them to have that documented.

At the same time, 5.6.0 lookslike it's hardmasked right now; I only have 
5.5.1-r1 instealled, and that's after pushing plasma-meta and friends up to 
5.6.3. This might be one of those cases where you need to wait until the 
KDE4/5 transition stabilizes a bit more...

-- 
:wq

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


Re: [gentoo-user] freeSwitch

2016-04-27 Thread Michael Mol
On Wednesday, April 27, 2016 03:21:38 AM James wrote:
> https://freeswitch.org/
> 
> 
> Seems to be opensource. Runs on Arm (rpi) and x86
> 
> https://en.wikipedia.org/wiki/FreeSWITCH
> 
> Is there something similar in portage?
> 
> Anyone tested this on debian or any other linux distro?
> 
> Folks interested in an ebuild for this software?

I have a Freeswitch install on a (non-Gentoo) box at a client. That client has 
recently moved to a different PBX product. I will not willingly install another 
Freeswitch setup, and my full rant as to why would be a multi-part blog post.

My recommendation would be to use sip-proxy if it meets your needs, Asterisk 
or Kamailio if you need something heavier.

-- 
:wq

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


Re: [gentoo-user] Failed to emerge dev-qt/qtwebkit-5.6.0

2016-04-27 Thread Michael Mol
On Wednesday, April 27, 2016 08:11:05 AM Dale wrote:
> Peter Humphrey wrote:
> > On Tuesday 26 Apr 2016 18:50:41 Dale wrote:
> > 
> > --->8
> > 
> >> I synced again and was hoping I either caught the tree in the middle of
> >> some change over with the last sync or whatever it is would have a fix
> >> by now.  Well, still the same error as before.
> >> 
> >> Anyone have any ideas on the cause of this?  Any tricks that I could
> >> try?  Could this be a bug that I need to report?  I've tried skipfirst
> >> and such but it seems to be a hard stop on this package.
> > 
> > After googling for one of those linker errors, it looks to me like a bug
> > in
> > the order in which libraries are being called to be linked in. I'm no
> > coder
> > any more though (that was 40 years ago).
> > 
> > HTH. HaND.  :)
> 
> I been considering a roach report but I hate to since I seem to be the
> only one running into it.  I've synced a couple times since it started
> so whatever it is, it seems to be sticking around.
> 
> I've done some googling but the only thing I find now, this thread.  I
> did try to google some other ways but still found nothing helpful, as in
> a solution.
> 
> I'll give it another day or two and if after another sync the problem
> remains, I'll file a roach report.

I have my system automatically update nightly, and check the build results in 
the morning. If there's a persistent build error for a couple days, I file a 
bug report. That's my threshold, anyway.

-- 
:wq

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


Re: [gentoo-user] Re: Bluetooth PIM sync with KDE?

2016-04-26 Thread Michael Mol
On Tuesday, April 26, 2016 04:09:33 PM James wrote:
> Michael Mol  gmail.com> writes:
> > Is it still possible to sync, e.g. the contacts on my phone with Kontact?
> 
> Hello mikemol.
> 
> I have no idea.
> 
> But it's *great* to see you post to the list, again. I peruse your install
> script (github) on occasion to see if you have updated it, or 'ansiblize'
> [1] it.  Great to hear from you, again.

Heh. I haven't had need of that script in years. I only needed it then because 
*something* was causing my system to crap its pants midway through emerges, 
and rebuilding an entire Gentoo system to narrow down why was...time-
consuming. I currently have exactly one Gentoo install going--my workstation. 
And it's been ongoing-stable for something like three years, now. For a while, 
I didn't have any Gentoo systems, as I didn't have time to stand up a personal 
system to play with; I'd just gotten married, bought a house, now have two 
kids named after programming languages...

As for that script, it turned out that having -gddb3 in CFLAGs breaks glibc. 
Have a broken glibc get built, installed--and *nothing* that spawns afterward 
can run. Hard to fix if you don't know why it's breaking. It was a known bug, 
but not documented anywhere at the time.  Thankfully, I notice it's currently 
documented in the Gentoo Wiki...



[gentoo-user] Bluetooth PIM sync with KDE?

2016-04-26 Thread Michael Mol
Is it still possible to sync, e.g. the contacts on my phone with Kontact?
Googling around, it seems like OpenSync isn't really even a thing any more,
and I'm not finding anything in various account settings in Kontact to add
a bluetooth device as a data source.


[gentoo-user] [yoga13] rtl8723au

2013-09-14 Thread Michael Mol
So, for work, I got a Lenovo IdeaPad Yoga 13. I've got it booting
Gentoo. The rtl8723au chipset, which manages both wifi and bluetooth in
this laptop, does not have a driver in =sys-kernel/gentoo-sources-3.10.7.

Everything I know about the driver comes from two places. First, the
LKML thread where Larry Finger announced his obtainment of the driver
from Realtek, and his uploading it to github.

https://lkml.org/lkml/2013/4/1/280

Second, the relevant Github repo (and the particular commit at which I
have it):

https://github.com/lwfinger/rtl8723au/commit/58a426d1ce29d8c26c36630ef8970afdc6876fcc

Now, here's what's weird. That driver code works fine under Ubuntu
13.04. Boot into Ubuntu 13.04, build the driver, insmod 8723au.ko, and
NetworkManager/nm-applet tells me wireless networks are available.

Under Gentoo, using 3.10.7, no such luck. Build the driver, insmod it,
and NetworkManager suddenly thinks there's a *wired* NIC present. The
Yoga 13 doesn't have a wired NIC.

iwlist scan gives:

enp0s26u1u4i2  Interface doesn't support scanning.

ip link show gives:

9: enp0s26u1u4i2: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc mq
state DOWN mode DEFAULT qlen 1000
link/ether 20:16:d8:b0:25:77 brd ff:ff:ff:ff:ff:ff

The NIC doesn't appear under lspci, but it does appear under lsusb:

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=, 480M
|__ Port 4: Dev 4, If 0, Class=Wireless, Driver=, 480M
|__ Port 4: Dev 4, If 1, Class=Wireless, Driver=, 480M
|__ Port 4: Dev 4, If 2, Class=Vendor Specific Class,
Driver=rtl8723au, 480M

(Several buses and ports omitted, just including the one that appears to
be where the NIC is located at)

Hopefully I'm just missing something silly. If not, I'm perfectly
willing to dig deeper, so long as this 1wk-old kid on my lap is asleep...



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [yoga13] rtl8723au

2013-09-14 Thread Michael Mol
On 09/14/2013 10:46 AM, Alan McKinnon wrote:
 On 14/09/2013 16:36, Michael Mol wrote:
 So, for work, I got a Lenovo IdeaPad Yoga 13. I've got it booting
 Gentoo. The rtl8723au chipset, which manages both wifi and bluetooth in
 this laptop, does not have a driver in =sys-kernel/gentoo-sources-3.10.7.

 Everything I know about the driver comes from two places. First, the
 LKML thread where Larry Finger announced his obtainment of the driver
 from Realtek, and his uploading it to github.

 https://lkml.org/lkml/2013/4/1/280

 Second, the relevant Github repo (and the particular commit at which I
 have it):

 https://github.com/lwfinger/rtl8723au/commit/58a426d1ce29d8c26c36630ef8970afdc6876fcc

 Now, here's what's weird. That driver code works fine under Ubuntu
 13.04. Boot into Ubuntu 13.04, build the driver, insmod 8723au.ko, and
 NetworkManager/nm-applet tells me wireless networks are available.

 Under Gentoo, using 3.10.7, no such luck. Build the driver, insmod it,
 and NetworkManager suddenly thinks there's a *wired* NIC present. The
 Yoga 13 doesn't have a wired NIC.
 
 Eh? That is weird. Have you tried vanilla-sources to take gentoo
 patchset out of the equation?

I have not. I'll try that next.

 Or possibly the driver was developed on Ubuntu and relies on one of
 their patches

Story, as I read it, goes that it was developed by Realtek, who didn't
think to open-source it. Larry Finger asked Realtek for the driver, they
provided it, as well as permission to get it distributed further.

 

 iwlist scan gives:

 enp0s26u1u4i2  Interface doesn't support scanning.

 ip link show gives:

 9: enp0s26u1u4i2: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc mq
 state DOWN mode DEFAULT qlen 1000
 link/ether 20:16:d8:b0:25:77 brd ff:ff:ff:ff:ff:ff

 The NIC doesn't appear under lspci, but it does appear under lsusb:

 /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
 |__ Port 1: Dev 2, If 0, Class=Hub, Driver=, 480M
 |__ Port 4: Dev 4, If 0, Class=Wireless, Driver=, 480M
 |__ Port 4: Dev 4, If 1, Class=Wireless, Driver=, 480M
 |__ Port 4: Dev 4, If 2, Class=Vendor Specific Class,
 Driver=rtl8723au, 480M

 (Several buses and ports omitted, just including the one that appears to
 be where the NIC is located at)

 Hopefully I'm just missing something silly. If not, I'm perfectly
 willing to dig deeper, so long as this 1wk-old kid on my lap is asleep...
 
 Daddy!
 
 Congrats on the new one in your life. Your definition of personal free
 time is about to change dramatically i.e. it goes away.

It's not possible to have less free time than I had in the past few
months. Even having this kid on my lap while I write this is a luxury of
free time I haven't had in ages. Nearly every non-work, non-sleep moment
was dedicated to preparing for this guy just showing up. Looking forward
to when he's big enough for the mai-tai; that'll afford me even more
flexibility.

Though I'll probably wind up eating my own words...

 
 Would this be why you suddenly got quiet the last 3 months or so?

Combined with my job getting busier and busier, yes. I'm flattered I was
missed. :)




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [yoga13] rtl8723au

2013-09-14 Thread Michael Mol
On 09/14/2013 11:10 AM, Michael Mol wrote:
 On 09/14/2013 10:46 AM, Alan McKinnon wrote:
 On 14/09/2013 16:36, Michael Mol wrote:
 So, for work, I got a Lenovo IdeaPad Yoga 13. I've got it booting
 Gentoo. The rtl8723au chipset, which manages both wifi and bluetooth in
 this laptop, does not have a driver in =sys-kernel/gentoo-sources-3.10.7.

 Everything I know about the driver comes from two places. First, the
 LKML thread where Larry Finger announced his obtainment of the driver
 from Realtek, and his uploading it to github.

 https://lkml.org/lkml/2013/4/1/280

 Second, the relevant Github repo (and the particular commit at which I
 have it):

 https://github.com/lwfinger/rtl8723au/commit/58a426d1ce29d8c26c36630ef8970afdc6876fcc

 Now, here's what's weird. That driver code works fine under Ubuntu
 13.04. Boot into Ubuntu 13.04, build the driver, insmod 8723au.ko, and
 NetworkManager/nm-applet tells me wireless networks are available.

 Under Gentoo, using 3.10.7, no such luck. Build the driver, insmod it,
 and NetworkManager suddenly thinks there's a *wired* NIC present. The
 Yoga 13 doesn't have a wired NIC.

 Eh? That is weird. Have you tried vanilla-sources to take gentoo
 patchset out of the equation?
 
 I have not. I'll try that next.
 

Tried with vanilla 3.10.11 and vanilla 3.11.0. Same symptoms.





signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Very OT - Displaylink adapter and setting up X

2013-07-06 Thread Michael Mol
On 03/14/2012 08:11 AM, Robert David wrote:
 V Mon, 12 Mar 2012 17:24:47 -0500
 Michael Sullivan msulli1...@gmail.com napsáno:

 I feel really stupid asking this, but I want to use an HDMI component
 to output one of my PCs to the TV set.  I've followed all of the wiki
 entry at http://wiki.gentoo.org/wiki/DisplayLink, but there's
 something else I need to know.  I get the green screen on the TV that
 it mentions when the kernel module is being loaded correctly.  The
 problem is that I use gdm in /etc/conf.d/xdm DISPLAYMANAGER variable
 to start X, and I don't know where the actual gdm configuration lives
 so I can tell it to use ~/.xinitrc2 from the wiki.  My google
 searching hasn't been going well. Can anybody give me any hints as to
 how to make progress on this problem?

 Hi Michael,

 it depends on how you would like to use the external card. Please
 specify your scenario. 

So my laptop has a built-in display and a VGA output. While working, I
use both. In fact, here's the content of the script I run when logging
in to arrange things the way I like them:

#!/bin/sh
xrandr --output LVDS1 --auto
xrandr --output VGA1 --off # Force a full reset of VGA1
xrandr --output VGA1 --left-of LVDS1 --auto


Let's say I were able to set up the DisplayLink adapter using xrandr
--output FBUSB1 --auto. The effect I'm looking for could then be
achieved via:

#!/bin/sh
xrandr --output LVDS1 --auto
xrandr --output VGA1 --off
xrandr --output VGA1 --left-of LVDS1 --auto
xrandr --output FBUSB1 --off
xrandr --output FBUSB1 --left-of VGA1 --auto

In effect, I want all three displays arranged as part of the same
extended desktop with xinerama. (xinerama is pretty explicitly part of
my workflow, as one thing I often do is have 3-4 remote desktops active
*per local display*, and I drag them around as necessary.

 Anyway, try to look in /etc/gdm, /etc/init.d/xdm, /etc/X11 (there can
 be specified which server start in file xdm/Xservers)

 I have DL adapter connected to my docking station and a simple script
 to activate the second xserver on docking and deactivate that when
 undocking. I simply run here second desktop using x2x. I just use that
 primary for web browser, so I dont need xinerama.

 You can also use DL with your primary card and xinerama. But it needs
 specific xorg.conf and needs to be connected when xserver starting. So
 nothing suitable for notebook and hotplug.

This latter scenario is what I'd be interested in. I'd have no
complaints if I needed it plugged in when X started; that's fine, if a
bit weird. (though it couldn't be done via xrandr? Seriously?)

I don't do anything with hotplug, really. I don't use PulseAudio, I
don't use GNOME, KDE or udev automount. About the only automagic thing I
use is NetworkManager (and even that fails to notice when the laptop's
moved five miles away from the AP it was connected to.).




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Very OT - Displaylink adapter and setting up X

2013-07-06 Thread Michael Mol
On 07/06/2013 01:31 PM, Michael Mol wrote:
 On 03/14/2012 08:11 AM, Robert David wrote:
 V Mon, 12 Mar 2012 17:24:47 -0500
 Michael Sullivan msulli1...@gmail.com napsáno:

 I feel really stupid asking this, but I want to use an HDMI component
 to output one of my PCs to the TV set.  I've followed all of the wiki
 entry at http://wiki.gentoo.org/wiki/DisplayLink, but there's
 something else I need to know.  I get the green screen on the TV that
 it mentions when the kernel module is being loaded correctly.  The
 problem is that I use gdm in /etc/conf.d/xdm DISPLAYMANAGER variable
 to start X, and I don't know where the actual gdm configuration lives
 so I can tell it to use ~/.xinitrc2 from the wiki.  My google
 searching hasn't been going well. Can anybody give me any hints as to
 how to make progress on this problem?

 Hi Michael,

 it depends on how you would like to use the external card. Please
 specify your scenario. 
 So my laptop has a built-in display and a VGA output. While working, I
 use both. In fact, here's the content of the script I run when logging
 in to arrange things the way I like them:

 #!/bin/sh
 xrandr --output LVDS1 --auto
 xrandr --output VGA1 --off # Force a full reset of VGA1
 xrandr --output VGA1 --left-of LVDS1 --auto


 Let's say I were able to set up the DisplayLink adapter using xrandr
 --output FBUSB1 --auto. The effect I'm looking for could then be
 achieved via:

 #!/bin/sh
 xrandr --output LVDS1 --auto
 xrandr --output VGA1 --off
 xrandr --output VGA1 --left-of LVDS1 --auto
 xrandr --output FBUSB1 --off
 xrandr --output FBUSB1 --left-of VGA1 --auto

 In effect, I want all three displays arranged as part of the same
 extended desktop with xinerama. (xinerama is pretty explicitly part of
 my workflow, as one thing I often do is have 3-4 remote desktops active
 *per local display*, and I drag them around as necessary.

 Anyway, try to look in /etc/gdm, /etc/init.d/xdm, /etc/X11 (there can
 be specified which server start in file xdm/Xservers)

 I have DL adapter connected to my docking station and a simple script
 to activate the second xserver on docking and deactivate that when
 undocking. I simply run here second desktop using x2x. I just use that
 primary for web browser, so I dont need xinerama.

 You can also use DL with your primary card and xinerama. But it needs
 specific xorg.conf and needs to be connected when xserver starting. So
 nothing suitable for notebook and hotplug.
 This latter scenario is what I'd be interested in. I'd have no
 complaints if I needed it plugged in when X started; that's fine, if a
 bit weird. (though it couldn't be done via xrandr? Seriously?)

 I don't do anything with hotplug, really. I don't use PulseAudio, I
 don't use GNOME, KDE or udev automount. About the only automagic thing I
 use is NetworkManager (and even that fails to notice when the laptop's
 moved five miles away from the AP it was connected to.).



Whups. That was the wrong thread. :)




signature.asc
Description: OpenPGP digital signature


[gentoo-user] DisplayLink

2013-07-05 Thread Michael Mol
 Anyone ever have any luck using a DisplayLink USB adapter in a multiheaded
scenario? I'm having a difficult time getting anything connected to the
adapter to show up via xrandr.

I'm told I need:

(via Matthew Thode on Google+)
*  =x11-drivers/xf86-video-modesetting-0.7.0
* =x11-apps/xrandr-1.4.0
* =x11-base/xorg-server-1.13.1

I have

=x11-drivers/xf86-video-modesetting-0.7.0
=x11-apps/xrandr-1.4.0
=x11-apps/xorg-server-1.13.4

output of xrandr is:

Screen 0: minimum 320 x 200, current 3520 x 1080, maximum 32767 x 32767
LVDS1 connected 1600x900+1920+0 (normal left inverted right x axis y axis)
382mm x 215mm
   1600x900   60.0*+
   1024x768   60.0
   800x60060.3 56.2
   640x48059.9
VGA1 connected 1920x1080+0+0 (normal left inverted right x axis y axis)
509mm x 286mm
   1920x1080  60.0*+
   1680x1050  60.0
   1280x1024  75.0 60.0
   1440x900   59.9
   1280x960   60.0
   1024x768   75.1 70.1 60.0
   832x62474.6
   800x60072.2 75.0 60.3 56.2
   640x48072.8 75.0 66.7 60.0
   720x40070.1


xrandr --listproviders:

Providers: number : 1
Provider 0: id: 0x43 cap: 0xb, Source Output, Sink Output, Sink Offload
crtcs: 2 outputs: 2 associated providers: 0 name:Intel

lsusb:

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b1d6 Chicony Electronics Co., Ltd CNF9055
Toshiba Webcam
Bus 002 Device 003: ID 17e9:0416 DisplayLink


[gentoo-user] Crash dumps

2013-06-05 Thread Michael Mol
With some recent software updates (well, a month's worth...didn't
realize I wasn't syncing on my laptop), X now frequently dies on me.

As it happens, I've already rebuilt all the software on the system...I
do an emerge -e @world every time there's a gcc update. To my knowledge,
there's no old cruft, no old binaries, nothing for depclean to remove or
revdep-rebuild to fix, etc. etc.

The next step is to actually inspect the crashes and see what's
happening...but for this to be even remotely convenient, I'd like my
system to start accumulating crash dumps for my inspection. Fortunately,
I have -ggdb in CFLAGS for just such occasions, so I'm not wanting for
symbols...

Trouble is...I don't remember how to do this. How do I enable crash
dumps, and how do I control where the dump files are dropped?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] VPN vs LAN address hostname resolution

2013-05-22 Thread Michael Mol
On 05/22/2013 01:36 PM, Michael Orlitzky wrote:
 On 05/22/13 12:36, Samuraiii wrote:
 Hello,

 I am trying to get hostname address resolution on my LAN and VPN with
 one serious problem:
 I have two networks eg. 10.1.1.0 and 10.2.2.0 which are representing
 local address space for LAN (10.1.1.0/8) and VPN address space (10.2.2.0/8).
 This isn't two networks, it's one network and you've got the VPN space
 overlapping the LAN space. To oversimplify a little, Don't Do That.

 Use a separate subnet for the VPN. Then traffic to the VPN will be
 routed over the VPN interface as intended, but traffic to the LAN will
 be routed over the LAN interface. This is what you want, but right now
 the VPN and the LAN are the same network, so routing to the LAN is the
 same as routing to the VPN, and your network stack doesn't know what
 to do with it.



To be clear, replacing /8 with /24 would do this:

10.1.1.0/8, as a network, is really just 10.0.0.0/8. This is also true
of 10.2.2.0/8. The bits after the first 8 are irrelevant, since a /8 is
being used. Use /24 instead, in this case.

It would be good for Samuraiii to read up:

http://www.tcpipguide.com/free/t_IPAddressing.htm




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] VPN vs LAN address hostname resolution

2013-05-22 Thread Michael Mol
On 05/22/2013 02:30 PM, Samuraiii wrote:

 On 2013-05-22 19:52, Michael Mol wrote:
 On 05/22/2013 01:36 PM, Michael Orlitzky wrote:
 On 05/22/13 12:36, Samuraiii wrote:
 Hello,

 I am trying to get hostname address resolution on my LAN and VPN with
 one serious problem:
 I have two networks eg. 10.1.1.0 and 10.2.2.0 which are representing
 local address space for LAN (10.1.1.0/8) and VPN address space 
 (10.2.2.0/8).
 This isn't two networks, it's one network and you've got the VPN space
 overlapping the LAN space. To oversimplify a little, Don't Do That.

 Use a separate subnet for the VPN. Then traffic to the VPN will be
 routed over the VPN interface as intended, but traffic to the LAN will
 be routed over the LAN interface. This is what you want, but right now
 the VPN and the LAN are the same network, so routing to the LAN is the
 same as routing to the VPN, and your network stack doesn't know what
 to do with it.


 To be clear, replacing /8 with /24 would do this:

 10.1.1.0/8, as a network, is really just 10.0.0.0/8. This is also true
 of 10.2.2.0/8. The bits after the first 8 are irrelevant, since a /8 is
 being used. Use /24 instead, in this case.

 It would be good for Samuraiii to read up:

 http://www.tcpipguide.com/free/t_IPAddressing.htm


 I'm sorry for mistake the subnet mask for both spaces IS 255.255.255.0.
 so it is not overlapping at all.
 I apologise for my mistake in notation.
 still this is not (mainly) problem with routing but problem with
 assigning name to address.
 If I had superfast internet connection I would not mind and just use
 vpn address space.
 So basically i need to assign lan address to computer (laptop) which
 is in same location (LAN) as other machines. And vpn address on all
 other computers.

 to illustrate:

 hostname: foo
 Location:1
 address eth0: 10.1.1.3
 address tap0: 10.2.2.3

 hotname: bar
 Location: 1
 addresses are irrelevant
 hosts entry for foo is 10.1.1.3 *(this is what I want to update if foo
 moves to location 2 to 10.2.2.3)*

 hosname baz
 Location: 2
 addresses are irrelevant
 Hosts entry for foo is 10.2.2.3 *(this is what I want to update if foo
 moves to location 2 to 10.1.1.3)*

 Thank you or patience
 S



What you're trying to accomplish is painfully difficult with IPv4. (If
you were using IPv6, I'd just point you at gai.conf, but AFAIK there is
no analog for IPv4.)

You may be far better served using a different VPN topology. (i.e.
n2n+IPsec, or having a VPN routing point at your network gateway)

(That said, if anyone knows a better way to do this, I'll be taking
notes, too...)


signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Anybody have a Gentoo KVM image to share?

2013-05-13 Thread Michael Mol
On 05/13/2013 03:36 AM, Alexander Berntsen wrote:
 If anyone have a Gentoo KVM image (preferably 10G or less) to share,
 please email the details on how to obtain a copy. I will be using it
 for development, so the simpler it is the better, with working networking.
 
 The reason I'm asking here is because I'm lazy and don't want to do
 work that somebody else has already done. Hopefully sharing it here
 will save someone else time as well, so please reply to the list and
 CC me (in case I forget to check the archives, as I don't subscribe to
 this list).

I wrote a Gentoo install script last spring that I was beginning to
update for building KVM guests a couple weeks ago (until my VM host
hardware up began spontaneously rebooting on me without leaving a trace
in hardware logs...).

I can have another go at it. Any preference for disk size or layout?
Running the script involves (obviously) a great deal of compiling, but
it results in a fully up-to-date system CFLAGS and USE settings as
specified up front...

https://github.com/mikemol/gentoo-install



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Anybody have a Gentoo KVM image to share?

2013-05-13 Thread Michael Mol
On 05/13/2013 08:32 AM, Alexander Berntsen wrote:
 On 13/05/13 14:29, Michael Mol wrote:
 Running the script involves (obviously) a great deal of compiling,
 but it results in a fully up-to-date system CFLAGS and USE settings
 as specified up front...
 I'm looking for a more minimal thing that's 5-10G and comes without X
 or any other heavy software. I will be using it for OpenRC testing and
 similar things, so a big and complicated image is not desirable. I'd
 like networking to work though.
 

Hm. I've never tried building a Gentoo system that...small. Looks
doable, though.

Uncomplicated USE flags are no sweat; a lot of the machinery of the
script is there to cope with quirks of updates involving large sets of
USE flags.

Minimal networking should be no sweat; I'll just enable everything KVM
supports in the kernel configuration. How *much* networking support do
you want, though? Do you need anything more beyond basic layer 3
(IPv4/IPv6) autoconfiguration (DHCP, RAs and IPv4/IPV6 LL), or do you
want netfilter?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Traffic Intensive IPSec Tunnel

2013-05-11 Thread Michael Mol
On 05/11/2013 03:13 PM, Nick Khamis wrote:
 Hello Everyone,
 
 Our service provider requires all connections between us be done
 through IPSec IKE. From the little bit of research, I found that this
 is achieved using a system with IPSec kernel modules enabled, along
 with cryptography modules. On the application level, I saw ipsec tool,
 OpenSWAN, and OpenVPN.
 
 What I was wondering is which should be used for traffic intensive
 connections in a deployment environment. Without starting any OpenVPN
 vs OpenSwan debate, we would really like to keep the application level
 to a minimum. Meaning if we could achieve the tunnel using the
 required kernel modules, ipsec-tools and iptables, we see that as
 keeping it simple and effective.
 
 Your insight, suggested how-to pages are greatly appreciated.

To my knowledge, OpenVPN does not use IPSec. Instead, it encapsulates
either IP/IPv6 (tun mode) or layer 2 (tap mode) over TLS. If your
service provider requires IPSec and IKE, best forget about OpenVPN.

http://www.ipsec-howto.org/x304.html

Look under Automatic keyed connections using racoon




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Settings for Xeon E3-1200 v2/3rd Gen video card

2013-05-10 Thread Michael Mol
On 05/10/2013 02:04 PM, Walter Dnes wrote:
   OK, I'm getting serious with the install on my new machine, so here
 come the questions.  lspci -v shows the onboard GPU as...
 
 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen 
 Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
 Subsystem: Dell Device 0581
 Flags: bus master, fast devsel, latency 0, IRQ 11
 Memory at f780 (64-bit, non-prefetchable) [size=4M]
 Memory at e000 (64-bit, prefetchable) [size=256M]
 I/O ports at f000 [size=64]
 Expansion ROM at unassigned [disabled]
 Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
 Capabilities: [d0] Power Management version 2
 Capabilities: [a4] PCI Advanced Features

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core
Processor Family Integrated Graphics Controller (rev 09) (prog-if 00
[VGA controller])
Subsystem: Toshiba America Info Systems Device fc70
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at f500 (64-bit, non-prefetchable) [size=4M]
Memory at e000 (64-bit, prefetchable) [size=256M]
I/O ports at e000 [size=64]
Expansion ROM at unassigned [disabled]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [a4] PCI Advanced Features
Kernel driver in use: i915

 
   What settings do I use for VIDEO_CARDS= in make.conf? Is intel good
 enough?

That's what I have.

 
   Also, any special stuff in make menuconfig?

I have:

* CONFIG_DRM
* CONFIG_DRM_I915
* CONFIG_DRM_I915_KMS





signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Calibre Update Problems

2013-05-08 Thread Michael Mol
On 05/08/2013 04:38 AM, Silvio Siefke wrote:
 Hello,
 
 On Mon, 06 May 2013 15:28:29 -0400 Michael Mol mike...@gmail.com
 wrote:
 
 There's been a libicu update. Run revdep-rebuild, and then try
 updating calibre again.
 
 I let run revdep-rebuild -p and i become the follow message
 
 gentoo-mobile siefke # revdep-rebuild -p
  * Configuring search environment for revdep-rebuild
  * Environment mismatch from previous run, deleting temporary files...
 
  * Checking reverse dependencies
  * Packages containing binaries and libraries broken by a package update
  * will be emerged.
 
  * Collecting system binaries and libraries
  * Generated new 1_files.rr
  * Collecting complete LD_LIBRARY_PATH
  * Generated new 2_ldpath.rr
  * Checking dynamic linking consistency
 [ 2% ]  *   broken /opt/bin/ffDiaporama (requires libexiv2.so.10)
 [ 28% ]  *   broken /usr/bin/sigil (requires 
 libboost_date_time-mt-1_49.so.1.49.0
 libboost_filesystem-mt-1_49.so.1.49.0
 libboost_regex-mt-1_49.so.1.49.0
 libboost_system-mt-1_49.so.1.49.0)
 [ 34% ]  *   broken 
 /usr/lib/ADM_plugins6/audioDevices/libADM_av_pulseAudioSimple.so (requires 
 libpulse-simple.so.0
 libpulse.so.0)
 [ 51% ]  *   broken /usr/lib/gstreamer-0.10/libgnl.la (requires 
 /usr/lib/libgstreamer-0.10.la)
 [ 95% ]  *   broken /usr/local/lib/libdee-1.0.so.4.1.1 (requires 
 libicudata.so.49
 libicui18n.so.49)
 [ 100% ] 
  *   broken /usr/bin/linuxtrade-curl (no version information available)
  * Generated new 3_broken.rr
  * Assigning files to packages
  *  !!! /opt/bin/ffDiaporama not owned by any package is broken !!!
  *   /opt/bin/ffDiaporama - (none)
  *  !!! /usr/bin/linuxtrade-curl not owned by any package is broken !!!
  *   /usr/bin/linuxtrade-curl - (none)
  *   /usr/bin/sigil - app-text/sigil
  *  !!! /usr/lib/ADM_plugins6/audioDevices/libADM_av_pulseAudioSimple.so not 
 owned by any package is broken !!!
  *   /usr/lib/ADM_plugins6/audioDevices/libADM_av_pulseAudioSimple.so - 
 (none)
  *  !!! /usr/lib/gstreamer-0.10/libgnl.la not owned by any package is broken 
 !!!
  *   /usr/lib/gstreamer-0.10/libgnl.la - (none)
  *  !!! /usr/local/lib/libdee-1.0.so.4.1.1 not owned by any package is broken 
 !!!
  *   /usr/local/lib/libdee-1.0.so.4.1.1 - (none)
  * Generated new 4_raw.rr and 4_owners.rr
  * Cleaning list of packages to rebuild
  * Generated new 4_pkgs.rr
  * Assigning packages to ebuilds
  * Generated new 4_ebuilds.rr
  * Evaluating package order
  * Portage could not find any version of the following packages it could 
 build:
  * app-text/sigil:0
  * (Perhaps they are masked, blocked, or removed from portage.)
  * Try to emerge them manually.
  * Warning: Portage cannot rebuild any of the necessary packages.
 
 Can it be that the Portage System is broken? Because i become one time a
 msg that the world file is corrupt or so in art. I make what stand there,
 but since then nothing really want install. PHP is ever by the Update,
 calibre want not install and after 13 hours i become compiler error from
 libreoffice. 

Try emerge -1 media-video/ffdiaporama ... that should at least fix the
opt/bin/ffDiaporama break.

I don't know what linuxtrade-curl would belong to.
I don't know what ADM_plugins6 would be.
I don't know what libgnl would be.

I also see that you have files under /usr/local/lib. This strongly
suggests that you've manually run the configure; make; makeinstall for
something. This means portage has no awareness of it, and portage can't
fix it when it breaks. Don't do that. (On my part, to avoid that kind of
issue, I'm starting to write my own ebuilds.)

Your system has problems which can't be fixed without knowing more about
its history and use. :-|




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Recover on SSD

2013-05-07 Thread Michael Mol
On 05/07/2013 10:49 AM, Stroller wrote:
 
 On 6 May 2013, at 21:07, Randolph Maaßen wrote:
 
 - When a file is deleted the file system marks the block device
 sectors as free and sends the TRIM command to the SSD and the SSD
 really frees the underlying cell / breaks the cell - section allocation.
 
 So if I'm writing a new filesystem, I have to make sure it make the TRIM
 systemcall, otherwise it'll break with SSDs?

Not exactly. What the TRIM system call really does is give the drive
hints about where the boundaries of your data really are, so that it
knows what parts of the disk's space it can take more liberties with.

As a rough analogy, imagine you're helping a friend fill a bunch of
crates. Perhaps the friend told you he doesn't really care about some of
the stuff, and you realize you can get stuff done more effectively by
dumping a crate full of junk into the trash and putting other stuff
(stuff he cares about) into it.

This helps improve disk lifetime and efficiency, but it's not strictly
necessary for functionality; nobody's truly harmed by having a crate of
junk hanging around, since the owner can always replace stuff in it at
their leisure, anyway. It's just more efficient if the crate's empty
when he goes to put stuff in it.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Calibre Update Problems

2013-05-06 Thread Michael Mol
On 05/06/2013 03:15 PM, Silvio Siefke wrote:
 Hello,
 
 
 i run @world update. By calibre 0.9.29 broke the Process with follow message:
 
 quote
 calibre successfully installed. You can start it by running the command 
 calibre
 
 There were 1 warning(s):
 
 * Setting up completion failed with error:
 
 install: der Aufruf von stat für 
 „/var/tmp/portage/app-text/calibre-0.9.29/image/usr/etc/bash_completion.d/calibre“
  ist nicht möglich: Datei oder Verzeichnis nicht gefunden
 !!! doins: 
 /var/tmp/portage/app-text/calibre-0.9.29/image/usr/etc/bash_completion.d/calibre
  does not exist
  * ERROR: app-text/calibre-0.9.29 failed (install phase):
  *   doins failed
  * 
  * If you need support, post the output of `emerge --info 
 '=app-text/calibre-0.9.29'`,
  * the complete build log and the output of `emerge -pqv 
 '=app-text/calibre-0.9.29'`.
  * The complete build log is located at 
 '/var/tmp/portage/app-text/calibre-0.9.29/temp/build.log'.
  * The ebuild environment file is located at 
 '/var/tmp/portage/app-text/calibre-0.9.29/temp/environment'.
  * Working directory: '/var/tmp/portage/app-text/calibre-0.9.29/work/calibre'
  * S: '/var/tmp/portage/app-text/calibre-0.9.29/work/calibre'
  * QA Notice: file does not exist:
  * 
  *doins: 
 /var/tmp/portage/app-text/calibre-0.9.29/image/usr/etc/bash_completion.d/calibre
  does not exist
 
 Failed to emerge app-text/calibre-0.9.29, Log file:
 
  '/var/tmp/portage/app-text/calibre-0.9.29/temp/build.log'
 
  * Messages for package app-text/calibre-0.9.29:
 
  * ERROR: app-text/calibre-0.9.29 failed (install phase):
  *   doins failed
  * 
  * If you need support, post the output of `emerge --info 
 '=app-text/calibre-0.9.29'`,
  * the complete build log and the output of `emerge -pqv 
 '=app-text/calibre-0.9.29'`.
  * The complete build log is located at 
 '/var/tmp/portage/app-text/calibre-0.9.29/temp/build.log'.
  * The ebuild environment file is located at 
 '/var/tmp/portage/app-text/calibre-0.9.29/temp/environment'.
  * Working directory: '/var/tmp/portage/app-text/calibre-0.9.29/work/calibre'
  * S: '/var/tmp/portage/app-text/calibre-0.9.29/work/calibre'
 /quote
 
 gentoo-mobile siefke # emerge --info =app-text/calibre-0.9.29
 - http://nopaste.info/166126bafc.html
 
 gentoo-mobile siefke # emerge -pqv =app-text/calibre-0.9.29
 [ebuild   R   ] app-text/calibre-0.9.29  USE=udisks
 
 Has someone advice what is the Problem. The missing QT lib is present, but 
 why is mistake?
 Missing Doins i not understand on my gentoo give package not. Thanks for help.

There's been a libicu update. Run revdep-rebuild, and then try updating
calibre again.




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Delays while building Libre Office.

2013-05-02 Thread Michael Mol
On 05/02/2013 12:27 PM, Alan Mackenzie wrote:
 Hi, Gentoo.
 
 I've just built libreoffice-3.6.6.2 and it took 2 hours 10 minutes on my
 2.6 GHz quad core Athlon 2.  It used to take about an hour.
 
 Watching the build, it became evident that the first 50 minutes or so
 was taken up by several hundred mkdir operations (more precisely, mkdir
 -p long path).  Some of these mkdir's would take, perhaps, a minute to
 execute.  All the while, top showed make taking 100% of one core.
 
 There seems to be something suboptimal here.  Has anybody else seen
 this, or does anybody have any ideas how to fix the problem?

Long delays suggest a timeout of some sort.

First thing I'd look at is the filesystem underneath, and the disk
underneath that.

Second thing I'd look at is to see if permissions checks might be
bouncing through something like kerberos, samba or ldap. Do you have any
single-signon things configured on that machine?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Delays while building Libre Office.

2013-05-02 Thread Michael Mol
On 05/02/2013 12:58 PM, Alan Mackenzie wrote:
 On Thu, May 02, 2013 at 12:33:37PM -0400, Michael Mol wrote:
 On 05/02/2013 12:27 PM, Alan Mackenzie wrote:
 Hi, Gentoo.
 
 I've just built libreoffice-3.6.6.2 and it took 2 hours 10
 minutes on my 2.6 GHz quad core Athlon 2.  It used to take about
 an hour.
 
 Watching the build, it became evident that the first 50 minutes
 or so was taken up by several hundred mkdir operations (more
 precisely, mkdir -p long path).  Some of these mkdir's would
 take, perhaps, a minute to execute.  All the while, top showed
 make taking 100% of one core.
 
 There seems to be something suboptimal here.  Has anybody else
 seen this, or does anybody have any ideas how to fix the
 problem?
 
 Long delays suggest a timeout of some sort.
 
 OK.  As a matter of interest, some of the mkdirs executed relatively 
 quickly - perhaps in 0.5 seconds.  I never saw the screen whizzing by
 as I ought to have done, though.

Hm.

 
 First thing I'd look at is the filesystem underneath, and the disk 
 underneath that.
 
 My /var is an ext3 LVM partition, doubled up on a RAID-1 disk array.

How full is the ext3 partition? What options do you have enabled on it?
(e.g. dir indexing?)


 In the middle of the mkdiring, I checked there were enough inodes
 free (there were).  I've no reason to suspect the disk drives might
 be flaky.

Well, you kinda do, now; you have evidence that at least some disk
access is unusually slow. Check dmesg for disk I/O errors (unlikely to
be reported at this point; I'm sure you checked whether your RAID was in
a degraded state), and run commanded smartctl tests on the disks.

 
 Second thing I'd look at is to see if permissions checks might be 
 bouncing through something like kerberos, samba or ldap. Do you
 have any single-signon things configured on that machine?
 
 I've not got kerberos or samba installed.  I appear to have ldap 
 (whatever that might be ;-).  ls -lurt /usr/bin/ldap* shows these 
 binaries were last accessed (?used) on 2012-03-14.

It would be more a question of whether they were tied into PAM.

 
 What exactly do you mean by single-signon?

Well, that was a slip of the tongue. More central auth. I was
wondering if there were any features installed on your system that are
designed to check authorization against a server somewhere. (i.e. you
can use an LDAP directory to centrally manage things like users, groups,
etc.)

Technically, single-signon combines authorization checks with persistent
authentication checks. Examples of this include kerberos, web session
cookies and some uses of OAuth; once you're authenticated, the mechanism
ensures you don't need to authenticate to another server in the same
auth realm so long as your existing session hasn't expired. But this is
less likely to be related to your problem than something seeking to ask
a server if you have authorization to access something.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Delays while building Libre Office.

2013-05-02 Thread Michael Mol
On 05/02/2013 02:47 PM, Alan Mackenzie wrote:
 On Thu, May 02, 2013 at 01:15:58PM -0400, Michael Mol wrote:
 On 05/02/2013 12:58 PM, Alan Mackenzie wrote:
 On Thu, May 02, 2013 at 12:33:37PM -0400, Michael Mol wrote:
 On 05/02/2013 12:27 PM, Alan Mackenzie wrote:
 Hi, Gentoo.
 
 I've just built libreoffice-3.6.6.2 and it took 2 hours 10
 minutes on my 2.6 GHz quad core Athlon 2.  It used to take about
 an hour.
 
 Watching the build, it became evident that the first 50 minutes
 or so was taken up by several hundred mkdir operations (more
 precisely, mkdir -p long path).  Some of these mkdir's would
 take, perhaps, a minute to execute.  All the while, top showed
 make taking 100% of one core.
 
 There seems to be something suboptimal here.  Has anybody else
 seen this, or does anybody have any ideas how to fix the
 problem?
 
 Long delays suggest a timeout of some sort.
 
 OK.  As a matter of interest, some of the mkdirs executed relatively 
 quickly - perhaps in 0.5 seconds.  I never saw the screen whizzing by
 as I ought to have done, though.
 
 Hm.
 
 
 First thing I'd look at is the filesystem underneath, and the disk 
 underneath that.
 
 My /var is an ext3 LVM partition, doubled up on a RAID-1 disk array.
 
 How full is the ext3 partition? What options do you have enabled on it?
 (e.g. dir indexing?)
 
 root@acm ~ # df /var
 Filesystem 1K-blocksUsed Available Use% Mounted on
 /dev/mapper/vg-var  12385456 1959860   9796580  17% /var
 
 In the middle of the mkdiring, I checked there were enough inodes
 free (there were).  I've no reason to suspect the disk drives might
 be flaky.
 
 Well, you kinda do, now;
 
 The reason I say this is that building the last ?one/two/three versions
 of libreoffice also gave me this grief, but I haven't noticed anything
 else amiss.
 
 you have evidence that at least some disk access is unusually slow.
 Check dmesg for disk I/O errors (unlikely to be reported at this point;
 
 Nothing awry in dmesg.
 
 I'm sure you checked whether your RAID was in a degraded state),
 
 cat /proc/mdstat shows everything in order.
 
 and run commanded smartctl tests on the disks.
 
 That I haven't done, yet.
 
 Second thing I'd look at is to see if permissions checks might be 
 bouncing through something like kerberos, samba or ldap. Do you
 have any single-signon things configured on that machine?
 
 I've not got kerberos or samba installed.  I appear to have ldap 
 (whatever that might be ;-).  ls -lurt /usr/bin/ldap* shows these 
 binaries were last accessed (?used) on 2012-03-14.
 
 It would be more a question of whether they were tied into PAM.
 
 OK.  I'm sadly ignorant about PAM.  :-(

If you've just got a single box, it's very unlikely this is your problem.

 
 What exactly do you mean by single-signon?
 
 Well, that was a slip of the tongue. More central auth. I was
 wondering if there were any features installed on your system that are
 designed to check authorization against a server somewhere. (i.e. you
 can use an LDAP directory to centrally manage things like users, groups,
 etc.)
 
 Not that I know of.  My machine is a mere desktop connected via a
 router/modem to the net.  I'd have no reason to install any auth stuff.
 
 Technically, single-signon combines authorization checks with persistent
 authentication checks. Examples of this include kerberos, web session
 cookies and some uses of OAuth; once you're authenticated, the mechanism
 ensures you don't need to authenticate to another server in the same
 auth realm so long as your existing session hasn't expired. But this is
 less likely to be related to your problem than something seeking to ask
 a server if you have authorization to access something.
 
 If this were the case, what would libreoffice's build need to ask that no
 other package stumbles over?
 

My presumption there was that this was a very recent thing, and LO's
time-to-build makes it easier to observe.

Anyway, floor's open to anyone else who might have an idea.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Server system date synchronizaion

2013-04-25 Thread Michael Mol
On 04/25/2013 10:33 AM, Nick Khamis wrote:
 Hello Everyone,
 
 We are trying to sync our server's time with an accurate ntp
 server, and was wondering which of the many solutions are
 considered viable. I did see the
 http://en.gentoo-wiki.com/wiki/Time_Synchronization.
 Our services are quite time sensitive.

My best results so far have been to have one node on my network sync to
pool.ntp.org, and to have all other nodes on my network sync to that one
node. Short of having a stratum 1 time server on my network, that seems
to work the best; done that way, my nodes are within a few milliseconds
of each other, near as I can figure.

For contrast, having all nodes sync to pool.ntp.org results in time
variance of up to 2-3 minutes across a dozen or so machines.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Server system date synchronizaion

2013-04-25 Thread Michael Mol
On 04/25/2013 10:46 AM, Tanstaafl wrote:
 On 2013-04-25 10:40 AM, Michael Mol mike...@gmail.com wrote:
 For contrast, having all nodes sync to pool.ntp.org results in time
 variance of up to 2-3 minutes across a dozen or so machines.
 
 That makes no sense...
 
 Not calling you a liar or anything, but it just doesn't make sense.
 
 I can see that it might take each system different times to get fully
 sync'd, but for them to consistently vary by this amount? No, something
 else is wrong.
 
 Are these virtualized servers?

Some are virtualized, some are hosts, some are standalone.

When all machines were configured to speak to pool.ntp.org, the variance
was high. Obviously more so any time a guest was using its host's clock,
and both guest and host were trying to adjust.

There was still significant difference even between standalone systems.
pool.ntp.org pulls from a huge pool of timeservers, and there is visible
variance between more than a few of them. It's a volunteer effort.
*shrug* Unfortunately, I don't have the exact variances in my notes.

When I used a single standalone to connect to pool.ntp.org, and had all
other systems (standalone, virtualized and guest) connect to that
standalone system, virtually all variance went away. The stability of
having a single local time source for all but one local machine to sync
against overcame the instability caused by having host and guest ntp
clients stacked.


Of course, ideally, you want VM guests to rely on the VM host for their
clock, and have the VM host configured with a good time source. And you
would want all bare iron configured to talk to a small pool of tightly
synchronized time servers. And if you can trust your layer 2 (or secure
your layer 3 with, e.g. ipsec), you may further benefit from setting up
a multicast time source.

Further, ideally, you want a stratum 1 time server locally.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Server system date synchronizaion

2013-04-25 Thread Michael Mol
On 04/25/2013 11:02 AM, Tanstaafl wrote:
 On 2013-04-25 10:33 AM, Nick Khamis sym...@gmail.com wrote:
 We are trying to sync our server's time with an accurate ntp
 server, and was wondering which of the many solutions are
 considered viable. I did see the
 http://en.gentoo-wiki.com/wiki/Time_Synchronization.
 
 Are these virtualized? It makes a difference, and from everything I've
 read, you don't sync virtualized servers the same as bare metal servers.
 
 Our services are quite time sensitive.
 
 Ummm... *all* servers are critically time-sensitive.
 

Some are more critical than others. If you're primarily worried about
kerberos, variance of up to a couple minutes will likely go unnoticed.
If you're dumping logs into splunk, and need second-precision timestamps
to be comparable to each other across a multi-campus network, that's a
different degree of time-sensitive. If you're using a distributed
filesystem with time-sensitive conflict resolution algorithms, you could
easily start caring down to sub-millisecond ranges.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Partitions - last questions...

2013-04-24 Thread Michael Mol
On 04/24/2013 11:39 AM, Tanstaafl wrote:
 On 2013-04-23 12:34 PM, Florian Philipp li...@binarywings.net wrote:
 Am 23.04.2013 16:44, schrieb Tanstaafl:
 /boot (ext2), 100M
 /swap, 2G
 / (ext4), 40G

 then on LVM

 /tmp (ext2), 5G? - how big?
 /var/tmp (ext2), 5G? - how big?
 
 If this is a production server I wouldn't use ext2. In the case of a
 crash or reboot, you don't want to loose precious uptime just because of
 fsck or corrupted file systems.
 
 Noted, changed these to ext4...

Sideways question:

Are there disk-based filesystems which don't persist? I don't think I've
heard of any, short of cranking up the amount of space dedicated to
swap, and using tmpfs.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] How reliable is ext3?

2013-04-23 Thread Michael Mol
On 04/23/2013 02:40 PM, Walter Dnes wrote:
   I recently got a new Dell desktop PC at home, and ran Windows for a
 while to make sure nothing is broken.  Now I'm getting ready to
 partition and reformat for a Gentoo install.  My understanding is that
 BTRFS and EXT4 are still a bit bleeding edge.  I've used ReiserFS3 for
 years with no problems, but I keep hearing horror stories about it.
 This will be my biggest main hard drive yet (1 terabyte), so I'm
 considering EXT3 for the main partition.  Comments?
 

ext3 has been stable for ages.

That said, I've been using ext4 for the past 3-4 years on nearly all my
systems without a problem. The only scenario I don't use ext4 is for
/boot...and there I use ext3.

BTRFS is marked as 'EXPERIMENTAL' in the kernel because they don't want
you using it for production use. ext4 hasn't had that 'EXPERIMENTAL'
flag for years. ext3, even longer.

Incidentally, if you use ext3, and your kernel supports ext4, chances
are it's the kernel's ext4 code that's handling your ext3 fs. I don't
even bother compiling in ext2 and ext3.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] kvm/libvirt and kernel configuration

2013-04-22 Thread Michael Mol
On 04/22/2013 05:40 AM, Michael Hampicke wrote:
 Am 22.04.2013 03:06, schrieb Michael Mol:
 So, I'm setting up number of kvm guests running Gentoo. KVM guests have
 a pretty limited set of device drivers they need to support.

 Is there a relatively up-to-date list of kernel configuration options?
 I.e. the list of NIC drivers, video drivers, I/O drivers...

 
 For net and io I always go with the virtio drivers [1]. For video: I
 don't care, my VMs are all headless, but when creating a desktop VM I
 suggest looking to vmvga or qxl.
 
 [1] http://wiki.libvirt.org/page/Virtio
 

For video, I tend to use Cirrus. (I'll get the serial console stuff
figured out eventually; I know how that works in the guest, but haven't
prodded it in the host.) I didn't see a guest-side driver for vmvga, and
I have no idea what qxl is. (I didn't hit search engines for it, I was
merely searching around via menuconfig's / search.)

Virtio drivers are awesome, of course.

What I'm really looking for, though, is a list of all the devices the
qemu/kvm host can emulate, and the most-specific guest driver. I.e. If I
wanted to make a generic kernel configuration that contained the optimum
drivers for all possible qemu/kvm configurations, what would be the
minimum feature set?

While I'm on the subject...menuconfig's search functionality indicated
there was a vmguest-targeted CPU accounting in the kernel, but I
couldn't get the HAVE_VIRTUAL_CPU_ACCOUNTING dependency flag set, and
couldn't figure out what set it. Any ideas there?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] kvm/libvirt and kernel configuration

2013-04-22 Thread Michael Mol
On 04/22/2013 11:38 AM, Michael Hampicke wrote:
 Am 22.04.2013 14:31, schrieb Michael Mol:
 On 04/22/2013 05:40 AM, Michael Hampicke wrote:
 
 snip
 
 What I'm really looking for, though, is a list of all the devices the
 qemu/kvm host can emulate, and the most-specific guest driver. I.e. If I
 wanted to make a generic kernel configuration that contained the optimum
 drivers for all possible qemu/kvm configurations, what would be the
 minimum feature set?
 
 Sorry I misunderstood you. I know that somewhere deep within some
 documentation I saw such a list, but I cannot find it now (maybe it was
 libvirt or in the IBM best practices docs?).
 
 Here's list of devices that I know of, which kvm can emulate.
 
 net: e1000, ne2000, rtl8139, pcnet, virtio
 video: spice/qxl, vmnet (needs guest driver from vmware), cirrus, xen, vga
 io: virtio, ata_piix, sata ahci

I was able to find these things while browsing through the 'details'
list in virt-manager. Mostly what I'm curious about is which kernel
configuration options they correspond to when setting up kernels in the
guest. I'll post a link to the kernel configuration options I've found
(so far) when I get home tonight.

 
 Do you also care about stuff like sound cards?

A little. As I said, it's at least in part an academic exercise, so
completeness becomes interesting. (Though some things can get plain
silly, such as sb16, which I believe would be exposed via the ISA bus.)

I do find it weird that there's nothing exposed to the guest via, e.g.
the i2c bus; that would seem a natural mechanism through which to expose
host knowledge and, possibly, influence guest behavior.

Thanks for the responses. I'm always fond of knowledge-share threads. :)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] A torrent client which can listen to interface

2013-04-22 Thread Michael Mol
On 04/22/2013 01:54 PM, staticsafe wrote:
 On 4/22/2013 13:51, Nilesh Govindrajan wrote:
 On Apr 22, 2013 11:14 PM, staticsafe m...@staticsafe.ca wrote:

 On 4/22/2013 13:18, Nilesh Govindrajan wrote:
 Hi,

 I'm looking for a torrent client which can listen to an interface
 instead
 of ips. Any pointers?


 I don't understand, why would a torrent *client* listen on anything?

 --
 staticsafe
 O ascii ribbon campaign - stop html mail - www.asciiribbon.org
 Please don't top post - http://goo.gl/YrmAb
 Don't CC me! I'm subscribed to whatever list I just posted on.


 Torrent clients listen for peers on a port. It always picks the default
 interface or route. It becomes a problem when you have two Internet
 connections.

 Oh right. I don't think any clients allow you to specify an interface.
 Only IPs and ports.
 
 Like in rtorrent:
   -b a.b.c.d  Bind the listening socket to this IP
   -i a.b.c.d  Change the IP that is sent to the tracker
   -p int-intSet port range for incoming connections
 

Indeed. In fact, what Nilesh is asking for isn't (to my knowledge)
possible. You can only specify IP addresses to listen to. What's
listened to then depends on which interfaces have that IP.

I.e. I have a machine with two NICs[1], and the same IP on each NIC. If
I tell a program to listen to that IP, it will receive packets sent to
that IP seen by either NIC. If I remove that IP from one of those NICs,
it will only see packets sent to that IP on the remaining NIC. If I add
another NIC, no packets will be seen by the program until I add the IP
to that NIC.

What Nilesh probably wants to do is have the program listen on all IPs
(so, 0.0.0.0 for IPv4, or [::] for IPv6), and then cover his butt with
firewall rules.

[1] Not a hypothetical; this is a real system.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] kvm/libvirt and kernel configuration

2013-04-22 Thread Michael Mol
On 04/22/2013 03:04 PM, Michael Mair-Keimberger wrote:
 Regarding devices which devices qemu-kvm supports, just take a look at
 following commands:
 
 Available net devices:
 
 qemu-system-x86_64 -net nic,model=?
 
 Available cpu's:
 
 qemu-system-x86_64 -cpu ?
 
 Available machines (if needed)
 
 qemu-system-x86_64 -machine ?
 
 General list of available devices:
 
 qemu-system-x86_64 -device ?
 
  
 
 Depending on your arch it might differ..
 
  
 
 Regarding virito devices:
 
 I highly recommend using those drivers. For my gentoo guests i always
 use virtio drivers for network devices (with vhost=on) and harddisks.
 (on windows guests only virito-net drivers) The performance gain is
 incredible. However, especially for the virtio harddisk driver, make
 sure you change fstab entries, because harddisk names change from sda to
 vda (or just use them from the beginning.
 
  
 
 If you going to try out desktop vm's too i also recommend qxl with
 spice. It's really fast and it also supports copy/paste (however you
 need an service for copy/paste on linux app-emulation/spice-vdagent)
 and window resizing. Those features also work on windows.

Good to know. Does it work over the network, or does it presume local
connectivity? My primary use case is connecting to the box over
wireless. My secondary use case is connecting over a WAN link. Local
connectivity is out of the question for this VM server.

 
  
 
 Regarding libvirt my experience is actually very low since i setup my
 vms with an custom init script. You can take a look on it here:
 https://github.com/mm1ke/qemu-init/tree/devel


I'm actually not having any real difficulty setting up the VMs. As I
said, the matter is largely academic. It's really not difficult to set
up a guest primarily with virtio drivers, of course.

The problem I'm trying to solve is the apparent lack of documentation
mapping host kvm/qemu capabilities with guest kernel configurations


 
 I can also provide a basic kernel .config for the latest stable kernel
 on x64 and x86 if you are interrested.

Like Stefan, I'm also curious. I would probably go through and tweak a
number of network-related features (add a netfilter feature here, remove
a network stack component there), but it'd be interesting to look at.




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] kvm/libvirt and kernel configuration

2013-04-22 Thread Michael Mol
On 04/22/2013 03:44 PM, Michael Mair-Keimberger wrote:
  
 
 On Monday 22 April 2013 15:17:20 Michael Mol wrote:
 
 On 04/22/2013 03:04 PM, Michael Mair-Keimberger wrote:
 
  Regarding devices which devices qemu-kvm supports, just take a look at
 
  following commands:
 
 
 
  Available net devices:
 
 
 
  qemu-system-x86_64 -net nic,model=?
 
 
 
  Available cpu's:
 
 
 
  qemu-system-x86_64 -cpu ?
 
 
 
  Available machines (if needed)
 
 
 
  qemu-system-x86_64 -machine ?
 
 
 
  General list of available devices:
 
 
 
  qemu-system-x86_64 -device ?
 
 
 
 
 
 
 
  Depending on your arch it might differ..
 
 
 
 
 
 
 
  Regarding virito devices:
 
 
 
  I highly recommend using those drivers. For my gentoo guests i always
 
  use virtio drivers for network devices (with vhost=on) and harddisks.
 
  (on windows guests only virito-net drivers) The performance gain is
 
  incredible. However, especially for the virtio harddisk driver, make
 
  sure you change fstab entries, because harddisk names change from sda to
 
  vda (or just use them from the beginning.
 
 
 
 
 
 
 
  If you going to try out desktop vm's too i also recommend qxl with
 
  spice. It's really fast and it also supports copy/paste (however you
 
  need an service for copy/paste on linux app-emulation/spice-vdagent)
 
  and window resizing. Those features also work on windows.
 

 
 Good to know. Does it work over the network, or does it presume local
 
 connectivity? My primary use case is connecting to the box over
 
 wireless. My secondary use case is connecting over a WAN link. Local
 
 connectivity is out of the question for this VM server.
 
  
 
 It works over the network. I have all my vms on a server and i only
 access those vm's over network. As client i suggest net-misc/spice-gtk.
 

 
  Regarding libvirt my experience is actually very low since i setup my
 
  vms with an custom init script. You can take a look on it here:
 
  https://github.com/mm1ke/qemu-init/tree/devel
 

 
 I'm actually not having any real difficulty setting up the VMs. As I
 
 said, the matter is largely academic. It's really not difficult to set
 
 up a guest primarily with virtio drivers, of course.
 

 
 The problem I'm trying to solve is the apparent lack of documentation
 
 mapping host kvm/qemu capabilities with guest kernel configurations
 

 
  I can also provide a basic kernel .config for the latest stable kernel
 
  on x64 and x86 if you are interrested.
 

 
 Like Stefan, I'm also curious. I would probably go through and tweak a
 
 number of network-related features (add a netfilter feature here, remove
 
 a network stack component there), but it'd be interesting to look at.
 
  
 
 Below are both configs (kernel 3.7.10)(hope bpaste is ok).
 
 If you going to use them and don't use virtio-net make sure you enable
 appropriate net drivers (e1000,rtl8129,..), because i've disabled all of
 them.
 
  
 
 http://bpaste.net/show/93300/
 
 http://bpaste.net/show/93301/

Attachments are ideal; the mailing list supports them, and it's more
beneficial for the ml archives. (Even if gentoo infra's ml archives have
been down for a year, gmane et al are also archiving.)





signature.asc
Description: OpenPGP digital signature


[gentoo-user] kvm/libvirt and kernel configuration

2013-04-21 Thread Michael Mol
So, I'm setting up number of kvm guests running Gentoo. KVM guests have
a pretty limited set of device drivers they need to support.

Is there a relatively up-to-date list of kernel configuration options?
I.e. the list of NIC drivers, video drivers, I/O drivers...



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Removing pulseaudio

2013-04-20 Thread Michael Mol
On 04/20/2013 05:34 AM, Walter Dnes wrote:
 On Fri, Apr 19, 2013 at 09:28:03AM +0200, Alan McKinnon wrote
 

[snip]

 If you need it, PA can be great. Not everyone needs or wants it, many
 people are quite content to just carry on as they always did and aren't
 fazed with minor niggles about their audio. You seem to fall in this
 category, so do many others.
 
   I think you've hit the nail on the head.  Complex setups require
 complex software... deal with it.  An analogy is that an 18-wheeler
 semi-tractor trailer with a 17-speed manual transmission (plus air brakes
 that require months of training to manage/use) is much more powerful
 than a Chevy Sonic hatchback when it comes to hauling huge loads.  But
 for someoneone who merely wants to zip out to the supermarket and buy a
 week's groceries, the hatchback is much more appropriate.
 
   Similarly, PulseAudio may be better at handling complex situations
 like you describe.  The yelling and screaming you're hearing are from
 the 99% of people whose setups are not complex enough to justify
 PulseAudio.  Making 100% of setups more complex in order to handle the
 1% of edge cases is simply wrong.
 

The sad thing is, I've not infrequently wound up with sound systems that
were *too* complex for PulseAudio to handle. At least, they were too
complex for the configuration interfaces available, and documentation
for how to do things more precisely (without writing code) was not
forthcoming.

Here's a scenario exactly as I was dealing with it around 2008:

Dodo was a combination HTPC/desktop box.[1] It had five displays and
three audio interfaces attached to it. Four of the displays sat on my
desk, one of the displays was a 32 720p TV that served as the home
theater screen.[2] The machine was sometimes used in both roles at once.

The three audio interfaces were:

1) The onboard audio, which I sometimes used while using the box as a
workstation.
2) A USB audio device, which I used if I was chilling on the couch and
needed localized audio
3) A professional audio interface (I forget what, now) that fed my
receiver as well as a crossover that built an LFE channel.

PA kinda worked in this scenario, up until I physically interacted with
the USB audio device. If I plugged into that, *everything* would
suddenly route through the USB audio device, despite my careful routing
of different applications to different audio sources.

If I'd learned to use JACK, things probably would have been easier...but
I was using Ubuntu,[3] everything seemed designed around leveraging PA,
and I hadn't learned to discard fancy desktop environments yet.

You know the sad thing, though? ALSA would support that configuration
very well, too. It has enough internal routing and mixing logic that
it'd work.


[1] It was also the home gateway router, too, but that's another
story...and not much of one.
[2] Incidentally, this was the same setup where I'd successfully mixed
ATI and nVidia graphics hardware. I used the nvidia proprietary drivers
and the open-source support for ATI...which admittedly wasn't much. But
that's another story.
[3] I wasn't consistently using Gentoo yet. That rather relates to the
machine doubling as the network gateway...[4]
[4] No, I wouldn't do a setup this complicated as one machine as a
keystone in the network. At least, not again.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Removing pulseaudio

2013-04-18 Thread Michael Mol
On 04/18/2013 03:32 PM, Alan Mackenzie wrote:

[snip]

 So, I grasped the nettle, put in a negative pulseaudio use flag, unmerged
 pa and alsa-plugins, then rebuilt the 14 packages which needed it.
 
 Surprisingly, everything still works.  I now get those last seconds from
 my news streams.  :-)
 
 So, yes, I can recomment the removal of pulseaudio, unless anybody's got
 some particular need for it.

IME, there is one application that all but forces the use of PulseAudio:
Flash. Once Flash grabs onto an ALSA device, it doesn't let go, so you
*must* route it through PA if you would like to reliably use it with
anything else.

My particular discovery was that if I launched WoW under WINE, and then
launched a browser, audio in WoW worked fine. If I launched the browser
first (which resulted in a flash applet being loaded in GMail for the
purpose of audio notifications for google talk), Flash grabbed the ALSA
device and no WINE application could get at it. Routing both through
PulseAudio solved the problem.

The other reason I still use PA is X11...I like to use uxterm
extensively within X, and the only way to get the X11 bell working
appears to be via PA. So that's what I do. (Googling the history of that
bit of functionality was infuriating; that was the first time Lennart
pissed me off. Before someone finally acquiesced and added the
functionality to PA, he fought it, saying it wasn't PA's job.)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Removing pulseaudio

2013-04-18 Thread Michael Mol
On 04/18/2013 04:02 PM, Volker Armin Hemmann wrote:
 Am 18.04.2013 21:48, schrieb Michael Mol:
 On 04/18/2013 03:32 PM, Alan Mackenzie wrote:

 [snip]

 So, I grasped the nettle, put in a negative pulseaudio use flag, unmerged
 pa and alsa-plugins, then rebuilt the 14 packages which needed it.

 Surprisingly, everything still works.  I now get those last seconds from
 my news streams.  :-)

 So, yes, I can recomment the removal of pulseaudio, unless anybody's got
 some particular need for it.
 IME, there is one application that all but forces the use of PulseAudio:
 Flash. Once Flash grabs onto an ALSA device, it doesn't let go, so you
 *must* route it through PA if you would like to reliably use it with
 anything else.

 My particular discovery was that if I launched WoW under WINE, and then
 launched a browser, audio in WoW worked fine. If I launched the browser
 first (which resulted in a flash applet being loaded in GMail for the
 purpose of audio notifications for google talk), Flash grabbed the ALSA
 device and no WINE application could get at it. Routing both through
 PulseAudio solved the problem.
 
 /I can have as many flash instances as I want and still listen to stuff
 being played in vlc. Without pulseaudio crap.
 
 Maybe wine just sucks?/
 

Easy on the invective. Did you pay attention to the specific sequence of
events I described? Or are you simply reporting that Flash works fine as
an ALSA client along other concurrently reporting tasks, with no
reference to the explicit order of the launch of things?

Incidentally, WoW+WINE worked absolutely fine with other ALSA clients.
It was only when Flash got added to the mix--and was launched
first--that I had a problem. Further, if Flash was launched before PA
(and ALSA apps weren't configured to route through PA's alsa wrapper),
PA itself could not latch on to the sound card.

Also, it's possible Adobe has since fixed the bug. This was a couple
years ago, even before they added direct PulseAudio support to flash.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Removing pulseaudio

2013-04-18 Thread Michael Mol
On 04/18/2013 04:43 PM, Volker Armin Hemmann wrote:
 Am 18.04.2013 22:13, schrieb Michael Mol:
 On 04/18/2013 04:02 PM, Volker Armin Hemmann wrote:
 Am 18.04.2013 21:48, schrieb Michael Mol:

[snip]

 My particular discovery was that if I launched WoW under WINE, and then
 launched a browser, audio in WoW worked fine. If I launched the browser
 first (which resulted in a flash applet being loaded in GMail for the
 purpose of audio notifications for google talk), Flash grabbed the ALSA
 device and no WINE application could get at it. Routing both through
 PulseAudio solved the problem.
 /I can have as many flash instances as I want and still listen to stuff
 being played in vlc. Without pulseaudio crap.

 Maybe wine just sucks?/

 Easy on the invective. Did you pay attention to the specific sequence of
 events I described? Or are you simply reporting that Flash works fine as
 an ALSA client along other concurrently reporting tasks, with no
 reference to the explicit order of the launch of things?

 Incidentally, WoW+WINE worked absolutely fine with other ALSA clients.
 It was only when Flash got added to the mix--and was launched
 first--that I had a problem. Further, if Flash was launched before PA
 (and ALSA apps weren't configured to route through PA's alsa wrapper),
 PA itself could not latch on to the sound card.

 Also, it's possible Adobe has since fixed the bug. This was a couple
 years ago, even before they added direct PulseAudio support to flash.
 
 the order is completely irrelavant. I start flash, xine, amarok, vlc,
 alsaplayer, whatever - and it just works. Without pulseaudio, jackd,
 esd, artsd etc pp.

Do you say that because you've tested the various orders and know that
one application will not conflict with another if started before that,
or do you say that because you've never noticed a problem, despite not
knowing the order you've started things?

 
 I don't use wine. For a lot of good reasons.
 

Name one.



signature.asc
Description: OpenPGP digital signature


Re: [Bulk] Re: [gentoo-user] Removing pulseaudio

2013-04-18 Thread Michael Mol
On 04/18/2013 05:28 PM, Kevin Chadwick wrote:
 ...
 (i) It's a sound server, a description I don't understand.  What
 does it _do_?  Why do I want it?  It seems to be an unnecessary
 layer of fat between sound applications and the kernel.  

 If you don't understand the term sound server you probably
 shouldn't be using Gentoo. 

 When I'm watching a YouTube video I still want to hear my email
 client go bing or my chat program alert me of my buddy coming online. 

 That's not possible if my web-browser has a hard-wired path into my
 soundcard and ain't letting go.
 
 Just throwing out there that users can or atleast could use alsa plugs
 to have multiple applications. I did that before pulseaudio came along
 to play nfs carbon under cedega and listen to music.

Still can. dmix is pretty cool.

Still, that depends on applications not doing evil things with system
audio. Flash (at least when I decided to get comfortable with PA) did
evil things with system audio.

 
 Also I have never got around to looking into Jackd but isn't it meant
 to be by far the best. I know pro audio users use it and I have heard it
 is not the easiest to set up but is there any reason why it isn't the
 default setup.
 
 http://en.gentoo-wiki.com/wiki/JACK
 
 From a quick look at this jack can hook up multiple applications that
 seem to need to be set up individually. What's the scope for Jack
 
 a./ replacing pulseaudio
 
 b./ having a compat interface layer to make pulseaudio compatible apps
 talk to jack
 

jackd would be awesome. It could be much, much easier for me to use than
PA; my sound usage often goes beyond PA's ideal cases where they like to
declare that things just work. Right now, PA is (somehow) bouncing
back speaker audio back into application recording, despite my
painstaking checking of the various defined places this is supposed to
be controllable. Results in echoes in VOIP.




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Removing pulseaudio

2013-04-18 Thread Michael Mol
On 04/18/2013 05:26 PM, Hartmut Figge wrote:
 Michael Mol:
 
 My particular discovery was that if I launched WoW under WINE, and then
 launched a browser, audio in WoW worked fine. If I launched the browser
 first (which resulted in a flash applet being loaded in GMail for the
 purpose of audio notifications for google talk), Flash grabbed the ALSA
 device and no WINE application could get at it. Routing both through
 PulseAudio solved the problem.
 
 Mhm. I have now started my SM and loaded the flash
 http://fun.from.hell.pl/2003-02-18/volare-karaoke.swf. Then i started
 wine playing tcc1, a mod of Might  Magic 6. No problem with the sound.
 
 Shockwave Flash 11.2 r202
 wine-1.5.28
 
 No pulseaudio. ;)

Sounds like they got that problem fixed, then. That's good.




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Removing pulseaudio

2013-04-18 Thread Michael Mol
On 04/18/2013 05:46 PM, Volker Armin Hemmann wrote:
 Am 18.04.2013 23:10, schrieb Michael Mol:

[snip]

 Do you say that because you've tested the various orders and know
 that one application will not conflict with another if started
 before that, or do you say that because you've never noticed a
 problem, despite not knowing the order you've started things?
 
 because I am using linux since Suse 6.2. And in that time I have 
 listened to a lot of music, watched a lot of movies and did a lot of 
 things in parallel. Just yesterday I watched a music video on
 youtube, while hunting for something sounding almost identical on my
 harddisk - using vlc. So firefoxflash and vlc were working fine.

I know you're smarter than this. You actively ignored my explicit
description of a testable sequence of steps. Which Hartmut specifically
tried, and in doing so that the problem I encountered is not currently
present.

By ignoring the sequence of steps, you're left with, well, nothing
testable or verifiable.

 
 
 I don't use wine. For a lot of good reasons.
 
 Name one.
 
 fat, slow and buggy. Do you need more?

Not from you, I suspect. At this point, I'm confident you have
absolutely no idea what you're talking about.

By fat, I suppose you're referring to the number of additional
binaries that land on your system. If you're going to implement the
entire API of an operating system, even as a wrapper around native
libraries, you're going to have a lot of code. That's just the way it is.

As for slow...it's been documented from time to time that some
applications run *faster* via WINE than on Windows. On one occasion,
this was the result of the Linux drivers being faster than the Windows ones.

As for buggy...Sure, not all of the APIs are implemented. Not all of
them need to be. Bugfixes and such are prioritized by interest in the
applications which need the buggy APIs, which is why many applications
work fine. Heck, I have an application installed which *depends* on
WINE, and this is part of that application's Linux version. I use it
every day as part of my job, and so I can do my job from this laptop
running Gentoo instead of a machine running Windows.

 If I really had an application that I must use and is windows only -
 I would install windows. That is a lot quicker and less painful than
 that wine crapfest shitting all over the place.

...The worst I've had has been WINE apps getting registered to handle
some files. Unless you're referring to the idea that WINE was what was
breaking my sound (itself clearly erroneous if you had read through the
description of either my or Hartmut's steps), I really don't know what
you're talking about, and I fear I'm just feeding a troll.




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] error starting meld

2013-04-17 Thread Michael Mol
On 4/17/2013 2:14 PM, Joseph wrote:
 I can not start meld, getting an error:

  # meld Traceback (most recent call last):
   File /usr/bin/meld, line 154, in module
 main()
   File /usr/bin/meld, line 140, in main
 already_running, dbus_app = meld.dbus_service.setup(app)
   File /usr/lib64/meld/meld/dbus_service.py, line 54, in setup
 bus = dbus.SessionBus()
   File /usr/lib64/python2.7/site-packages/dbus/_dbus.py, line 211,
 in __new__
 mainloop=mainloop)
   File /usr/lib64/python2.7/site-packages/dbus/_dbus.py, line 100,
 in __new__
 bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
   File /usr/lib64/python2.7/site-packages/dbus/bus.py, line 122, in
 __new__
 bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
 dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did
 not receive a reply. Possible causes include: the remote application
 did not send a reply, the message bus security policy blocked the
 reply, the reply timeout expired, or the network connection was broken.

 It compiles without any problems.
 When I try to start it as user, same error:

 $ meld Traceback (most recent call last):
   File /usr/bin/meld, line 154, in module
 main()
   File /usr/bin/meld, line 136, in main
 import meld.meldapp
   File /usr/lib64/meld/meld/meldapp.py, line 218, in module
 import filediff
   File /usr/lib64/meld/meld/filediff.py, line 60, in module
 process_pool = multiprocessing.Pool(None, init_worker,
 maxtasksperchild=1)
   File /usr/lib64/python2.7/multiprocessing/__init__.py, line 232,
 in Pool
 return Pool(processes, initializer, initargs, maxtasksperchild)
   File /usr/lib64/python2.7/multiprocessing/pool.py, line 115, in
 __init__
 self._setup_queues()
   File /usr/lib64/python2.7/multiprocessing/pool.py, line 210, in
 _setup_queues
 self._inqueue = SimpleQueue()
   File /usr/lib64/python2.7/multiprocessing/queues.py, line 352, in
 __init__
 self._rlock = Lock()
   File /usr/lib64/python2.7/multiprocessing/synchronize.py, line
 147, in __init__
 SemLock.__init__(self, SEMAPHORE, 1, 1)
   File /usr/lib64/python2.7/multiprocessing/synchronize.py, line 75,
 in __init__
 sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
 OSError: [Errno 13] Permission denied


Those are two different errors. The first is:

File /usr/lib64/python2.7/site-packages/dbus/bus.py, line 122, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did
not receive a reply. Possible causes include: the remote application did
not send a reply, the message bus security policy blocked the reply, the
reply timeout expired, or the network connection was broken.

The second is:

  File /usr/lib64/python2.7/multiprocessing/synchronize.py, line 75,
in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied


At a first guess, try python-updater as root.




Re: SOLVED - was Re: [gentoo-user] Serious problem with linode vm

2013-04-16 Thread Michael Mol
On 04/16/2013 11:23 AM, Tanstaafl wrote:
 On 2013-04-15 2:02 PM, Michael Mol mike...@gmail.com wrote:
 Were this one of my systems (none of which is in a prod scenario, so
 take it with a grain of salt), I'd emerge -e --keep-going @system, and
 then emerge --resume a few times. You're stuck in something not unlike a
 bootstrap scenario.
 
 Ok, well, the DB was down, and I had the data backed up, so last resort,
 I switched back to the 32bit kernel, rebooted, and started the first
 emerge -e --keep-going @system, and left for home to continue working on
 it from there...
 
 It was done by the time I got home (about 25 minute drive), so didn't
 take nearly as long as I had feared - mostly because about 28 packages -
 most of them the ones that take a really long time (like glib, glibc and
 gcc) died almost immediately...
 
 After the first one completed, I did emerge --resume until everything
 was emerged.
 
 Then I started it all over again, and this time, *everything* recompiled
 successfully!
 
 But, apache still wouldn't start up. The error was PHP related, so, I
 rebuilt that with emerge -vu (with 5.4 masked so it would pull in the
 latest update to 5.3 since emerging -vuk (reinstalling the quickpkg'd
 masked version) didn't work - and this time PHP successfully updated,
 and presto, everything is now working as expected!
 
 I'm still planning on finishing up the new server (had already started
 on it) and migrating the DB to it, but now the pressure is off.
 
 So, massive thanks! to Michael for the suggestion (had heard of totally
 rebuilding the entire system using -e and --keep-going, but never done
 it)... and of course, gentoo is amazing.

To be clear, you didn't rebuild the entire system. You rebuilt core
packages. To rebuild the entire system, it'd be:

emerge -e @world # Plus whatever else there is.

You're still at risk of non-@system packages having risky opcodes.
Sounds like PHP turned out to be one of those. You will probably need to
rebuild others.

But I'm very glad I was able to help. :)




signature.asc
Description: OpenPGP digital signature


Re: SOLVED - was Re: [gentoo-user] Serious problem with linode vm

2013-04-16 Thread Michael Mol
On 04/16/2013 11:50 AM, Tanstaafl wrote:
 On 2013-04-16 11:28 AM, Michael Mol mike...@gmail.com wrote:
 To be clear, you didn't rebuild the entire system. You rebuilt core
 packages. To rebuild the entire system, it'd be:

 emerge -e @world
 
 Correct - which is why I said @system... ;)
 
 # Plus whatever else there is.
 
 Hmmm... are there really packages that belong to neither @system or
 @world? How would I go about finding/updating these?

I must have missed where you ran emerge -e @world. Oops. :)

But, yes, there are packages which don't belong to @system or @world.
@world consists of things you've explicitly asked for. @system consists
of things that are deemed inherently necessary for system operation.

Neither necessarily contains things like x11-libs/libX11, which may be
pulled in as a dependency of something in @world or @system (depending
on USE flags, etc). Various python modules would also not be found in
either @world or @system. @system and @world are explicit
statements...there are still the dependencies to worry about.

But if you ran emerge -e @world, the -e would have picked those up.

[snip]




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Eth0 interface not found - udev

2013-04-16 Thread Michael Mol
On 04/16/2013 12:43 PM, Bruce Hill wrote:
 On Fri, Apr 12, 2013 at 04:48:25PM +, Grant Edwards wrote:

 Yea, I always had problems with that.  I'd edit the LILO config file,
 forget to run the update command, reboot, then spend an embarassing
 amount of time trying to figure out why my new kernel behaved exactly
 like my old kernel despite the changes I'd made.

 That change alone made switching to grub worthwhile.
 
 PEBKAC ... never knew the fix to that was changing software. :-)
 

I thought that's why you were using Gentoo rather than RHEL or LFS. :P



signature.asc
Description: OpenPGP digital signature


Re: SOLVED - was Re: [gentoo-user] Serious problem with linode vm

2013-04-16 Thread Michael Mol
On 04/16/2013 02:03 PM, Tanstaafl wrote:
 On 2013-04-16 12:12 PM, Michael Mol mike...@gmail.com wrote:
 I must have missed where you ran emerge -e @world. Oops. :)
 
 I didn't... I was replying to your comment that implied that I thought I
 had rebuilt my entire 'system', when in fact I specified '@system',
 meaning, only those packages in @system... :)
 
 That said... since this entire system was 32bit up until my little
 mistake, and I only updated/compiled a few packages, my thoughts are
 that the vast majority of the system should be 'ok' - or am I missing
 something (wouldn't surprise me if I am)...

Nuke the site from orbit...$FILL_IN_THE_BLANK :)

It's unfortunate there's no tool to perform as revdep-rebuild, except
checking that, e.g. a package was built with the current CHOST or CFLAGS
set. The fact that I can run 'emerge --info $atomname' to get the build
environment for a given $atomname tells me the system has enough
information that this is possible. I simply don't know the finer details
of where all this information lurks. But if I had such a tool, it would
be of immense use to me while installing new systems; no need to emerge
-e @world...



signature.asc
Description: OpenPGP digital signature


Re: SOLVED - was Re: [gentoo-user] Serious problem with linode vm

2013-04-16 Thread Michael Mol
On 04/16/2013 04:53 PM, Neil Bothwick wrote:
 On Tue, 16 Apr 2013 13:18:51 -0500, Paul Hartman wrote:
 
 It's unfortunate there's no tool to perform as revdep-rebuild, 
 except checking that, e.g. a package was built with the current 
 CHOST or CFLAGS set. The fact that I can run 'emerge --info 
 $atomname' to get the build environment for a given $atomname 
 tells me the system has enough information that this is
 possible. I simply don't know the finer details of where all
 this information lurks. But if I had such a tool, it would be of 
 immense use to me while installing new systems; no need to
 emerge -e @world...
 
 Check out /var/db/pkg/$CATEGORY/$PKGNAME/ -- there are text files 
 containing CFLAGS, CHOST and many others. You or someone like you 
 should be able to hack together a simple script to look for 
 differences. :)
 
 % source /etc/portage/make.conf % for f in /var/db/pkg/*/*/CFLAGS [[
 $(cat $f) == $CFLAGS ]] || echo $f
 
 It does give quite a few hits though, because ebuilds can strip out 
 flags.

ebuilds should not generally be stripping out flags. Certainly there are
occasional and valid cases, but they're pretty rare. Heck, last time I
reported a bug where a flag was causing a build failure (since the
package was using a compiler different from the system compiler), I was
told it wasn't the packaging system's job to deal with that kind of bug.

 Of course, that in itself may be an indication that you have 
 over-ricered your CFLAGS ;-)

Or you might simply know what you're doing.

http://en.gentoo-wiki.com/wiki/Hardware_CFLAGS#Determining_available_processor_features

Highly valuable if you're going to use distcc.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Serious problem with linode vm

2013-04-15 Thread Michael Mol
On 04/15/2013 11:37 AM, Tanstaafl wrote:
 Hi all,
 
 Help! :(

[snip]

 
 I've tried recompiling both (both compile/install ok), but when I try to
 start SSHD I get:
 
  # /etc/init.d/sshd start
 /etc/init.d/sshd: line 18: 2079 Illegal instruction ${SSHD_BINARY} -t
 ${SSHD_OPTS}
 * ERROR: sshd failed to start

^^ That screams 'CFLAGS' issue. Verify that the CFLAGS for your prod
server are the same (or close enough) to that of your dev server.

Guessing the new host has different CPU capabilities exposed to the
guest, either because of a differing hypervisor configuraiton, or
because of the different underlying hardware.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Serious problem with linode vm

2013-04-15 Thread Michael Mol
On 04/15/2013 11:53 AM, Tanstaafl wrote:
 On 2013-04-15 11:42 AM, Michael Mol mike...@gmail.com wrote:
 Guessing the new host has different CPU capabilities exposed to the
 guest, either because of a differing hypervisor configuraiton, or
 because of the different underlying hardware.
 
 Hmmm again...
 
 CHOST is the same on both:
 
 CHOST=i686-pc-linux-gnu
 

Argh. Reply to your own posts if you need to append content. Otherwise,
I can't easily address everything at once.

Anyway, you can (I believe) run a 64-bit kernel with a 32-bit CHOST.
Your system is a tad hobbled that way, but it should work. It'd be
like running multilib without the 64-bit side of things.

Set your CFLAGS on your prod server to that of your dev server, if your
dev server is known to work. You're using -march=native on your prod
server, which depends on gcc correctly detecting CPU features from the
host. There was a thread on this list just a few days ago about how that
can fail in virtualized environments. (You can enable/disable exposed
features piecemeal, which could well confuse the heck out of gcc's
detection heuristics...)

I don't know which instruction is 'illegal' on your new host, so, yeah,
the safest path is going to be emerging, well, everything. You don't
want some --as-needed lib getting pulled in some time down the road,
causing a real headscratcher of a crash. As the saying goes[1], Nuke
everything from orbit. It's the only way to be sure.

You might be best served by setting up a new VM from scratch and copying
over the bulk of your configuration (USE flags, daemon configurations,
etc.). It's certainly something you should look into once you get this
VM hobbling along again.

[1] Where'd that come from, anyway?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Serious problem with linode vm

2013-04-15 Thread Michael Mol
On 04/15/2013 12:07 PM, Tanstaafl wrote:
 On 2013-04-15 11:51 AM, Tanstaafl tansta...@libertytrek.org wrote:
 I'm confused about how this works in a hosted virtual environment.

 My Dev server failed to come up after the migration, until their tech
 support suggested switching to the 64bit kernel... did that and it is
 fine now (or appears to be)...

 But the Prod server is still on the 32bit kernel...

 Should I switch it to 64bit and change the CFLAGS to the same as the dev
 server?
 
 Can you run a 64bit kernel on a system that was originally
 running/compiled with 32bit?
 

I don't see why not. The 64-bit kernel provides all the hooks necessary
for a 32-bit userspace.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Serious problem with linode vm

2013-04-15 Thread Michael Mol
On 04/15/2013 12:51 PM, cov...@ccs.covici.com wrote:
 Michael Mol mike...@gmail.com wrote:
 
 On 04/15/2013 12:07 PM, Tanstaafl wrote:
 On 2013-04-15 11:51 AM, Tanstaafl tansta...@libertytrek.org wrote:
 I'm confused about how this works in a hosted virtual environment.

 My Dev server failed to come up after the migration, until their tech
 support suggested switching to the 64bit kernel... did that and it is
 fine now (or appears to be)...

 But the Prod server is still on the 32bit kernel...

 Should I switch it to 64bit and change the CFLAGS to the same as the dev
 server?

 Can you run a 64bit kernel on a system that was originally
 running/compiled with 32bit?


 I don't see why not. The 64-bit kernel provides all the hooks necessary
 for a 32-bit userspace.

 If you do this, be sure to set the configs to emulate 32-bit otherwise
 your 32-bit apps will not work!  

Which configs? Be specific; to a 32-bit x86 process[1], a 64-bit kernel
looks pretty much like a 32-bit kernel.


[1] I just realized I can no longer say 32-bit and expect it to
exactly mean x86. Going forward in general conversations, it could well
mean x32...



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Serious problem with linode vm

2013-04-15 Thread Michael Mol
On 04/15/2013 01:46 PM, Tanstaafl wrote:
 On 2013-04-15 11:42 AM, Michael Mol mike...@gmail.com wrote:
 On 04/15/2013 11:37 AM, Tanstaafl wrote:
 Hi all,

 Help! :(

 [snip]


 I've tried recompiling both (both compile/install ok), but when I try to
 start SSHD I get:

   # /etc/init.d/sshd start
 /etc/init.d/sshd: line 18: 2079 Illegal instruction ${SSHD_BINARY} -t
 ${SSHD_OPTS}
 * ERROR: sshd failed to start

 ^^ That screams 'CFLAGS' issue. Verify that the CFLAGS for your prod
 server are the same (or close enough) to that of your dev server.

 Guessing the new host has different CPU capabilities exposed to the
 guest, either because of a differing hypervisor configuraiton, or
 because of the different underlying hardware.
 
 Ok, as I said, I got SSH working now and am making progress, updating
 @system a little at a time...
 
 Before I started updating everything in @system though, I tried ncurses
 again (one of the first ones that failed on me), and it still dies with
 this:
 
 INFO: setup
 Package:sys-libs/ncurses-5.9-r2
 Repository: gentoo
 Maintainer: base-sys...@gentoo.org
 USE:abi_x86_32 cxx elibc_glibc gpm kernel_linux unicode
 userland_GNU x86
 FEATURES:   sandbox
 INFO: unpack
 Applying ncurses-5.8-gfbsd.patch ...
 Applying ncurses-5.7-nongnu.patch ...
 Applying ncurses-5.9-rxvt-unicode-9.15.patch ...
 Applying ncurses-5.9-fix-clang-build.patch ...
 ERROR: compile
 ERROR: sys-libs/ncurses-5.9-r2 failed (compile phase):
   (no error message)
 
 Call stack:
 ebuild.sh, line   93:  Called src_compile
   environment, line 2340:  Called do_compile 'narrowc'
   environment, line  467:  Called die
 The specific snippet of code:
   emake ${make_flags} || die
 
 If you need support, post the output of `emerge --info
 '=sys-libs/ncurses-5.9-r2'`,
 the complete build log and the output of `emerge -pqv
 '=sys-libs/ncurses-5.9-r2'`.
 The complete build log is located at
 '/var/tmp/portage/sys-libs/ncurses-5.9-r2/temp/build.log'.
 The ebuild environment file is located at
 '/var/tmp/portage/sys-libs/ncurses-5.9-r2/temp/environment'.
 Working directory: '/var/tmp/portage/sys-libs/ncurses-5.9-r2/work/narrowc'
 S: '/var/tmp/portage/sys-libs/ncurses-5.9-r2/work/ncurses-5.9'
 
 Ideas?

I'd guess that something used as part of ncurses's build process is failing.

Were this one of my systems (none of which is in a prod scenario, so
take it with a grain of salt), I'd emerge -e --keep-going @system, and
then emerge --resume a few times. You're stuck in something not unlike a
bootstrap scenario.

 




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Serious problem with linode vm

2013-04-15 Thread Michael Mol
On 04/15/2013 02:08 PM, Tanstaafl wrote:
 On 2013-04-15 2:03 PM, Tanstaafl tansta...@libertytrek.org wrote:

 Ok, I think all I need to get our db back up is to remerge php, but it
 is failing.

 The last error appears to be the zlib check.

 I did already try

 emerge -1 sys-libs/zlib

 and retrying to emerge php, but got the same error:
 
 Ok, added -zlib to package.mask and it is compiling now... I just don't
 know if I need zlib support for our DB app... sigh
 
 If this doesn't work I'll try your suggestion of:
 
 Were this one of my systems (none of which is in a prod scenario, so
 take it with a grain of salt), I'd emerge -e --keep-going @system, and
 then emerge --resume a few times. You're stuck in something not unlike a
 bootstrap scenario.
 
 Thanks a lot Michael... first time anything like this has happened to me
 in a long time. I forgot what it is like to have users (and bosses)
 breathing down my neck like this...
 

That system is going to require a great deal of cleanup and maintenance
to get fully reliable again. Once everything's been rebuilt, you should
be able to have zlib back, etc. It'll just take a while to to clean up.

I repeat my suggestion that you set up an alternate server and aim to
migrate to that. It's amazing what you can do with failover,
replication, etc



signature.asc
Description: OpenPGP digital signature


  1   2   3   4   5   6   7   8   9   10   >