Re: [gentoo-user] Regular user can't mount/unmount mtpfs; root is OK

2014-07-25 Thread Helmut Jarausch

On 07/25/2014 12:52:15 AM, Neil Bothwick wrote:

On Tue, 22 Jul 2014 18:23:47 -0400, Walter Dnes wrote:

>   I'm a total noobie at mtpfs/FUSE.  My "excellent adventure"  
started
> yesterday when I got a clearout 7" tablet, and took a sample photo,  
and
> tried mounting the tablet... no /dev/sdb to be found anywhere.  I  
went

> to "Mr. Google" for help, and found out that MTP is the "new and
> improved" way of doing things.

Improved, maybe, necessary, definitely. The old way of using mass  
storage

meant the storage had to be unmounted on the phone first, which could
break running applications.

> So I installed mtpfs.  It works great
> for root, but a regular user can't mount the tablet.  The mtpfs  
command
> immediately returns to the command prompt, with no error message or  
any

> other info.

I has problems with mtpfs and switched to jmtpfs, which works much
better. Or you can install SSHd on the tablet and use scp/sshfs.



I don't have good experience with jmtpfs. Here, it's dead slow and  
hangs sometimes

(connected to my Galaxy S3 mini).
But, I have switched to go-mtpfs. This is really fast and seems to be  
stable.


Since I'm lazy I haven't tried to access without root priviledges.
Helmut




Re: [gentoo-user] adobe flash

2014-07-25 Thread Peter Humphrey
On Friday 25 July 2014 06:45:35 Mick wrote:
> On Wednesday 23 Jul 2014 10:00:00 Peter Humphrey wrote:
> > I can't use any of the other packages because I use the BBC's radio
> > streaming service every day, and none of them work with it (as far as I
> > know).
> 
> Have you looked at the get_iplayer script?

No, I hadn't heard of it. Looks interesting - thanks Mick.

-- 
Regards
Peter




Re: [gentoo-user] wxGTK compilation fails "missing thread.h"

2014-07-25 Thread Peter Humphrey
On Wednesday 23 July 2014 15:38:42 Adam Carter wrote:
> Here's what i get;
> /var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r1/work/wxPython-src-2.8.12.1/src/u
> nix/threadpsx.cpp:51:24: fatal error: thread.h: No such file or directory
> make: *** [basedll_threadpsx.o] Error 1
> 
> Any ideas? Would thread.h be supplied by another package? linux-headers
> doesnt have it.

I sometimes find this error coming from multi-thread compilation. I fix it by 
prepending the emerge command with MAKEOPTS="-j1". You could try that.

-- 
Regards
Peter




Re: [gentoo-user] acroread woes

2014-07-25 Thread Peter Humphrey
On Wednesday 23 July 2014 14:48:08 James wrote:

> I also run "noscript" on my browsers now (very cool!). I do not consider it
> a problem, when I have to click a button or 2 to allow something
> that noscript has identified and filtered as a possilbe point
> of caution. I like noscript and have little desire to permanently
> disable it, so suggestions must work reasonable well with noscript too.

I used to run noscript, and was often annoyed and frustrated on e-commerce 
sites when a page refused to load. I'd have to tell the script (!) to allow 
this new site, then go back and try again, which often required more data 
input - or even starting again from scratch.

Nowadays I have "yesscript", which claims to be more intelligent about 
blocking scripts. You might like to give it a whirl.

-- 
Regards
Peter




Re: [gentoo-user] adobe flash

2014-07-25 Thread Neil Bothwick
On Fri, 25 Jul 2014 08:32:23 +0100, Peter Humphrey wrote:

> > > I can't use any of the other packages because I use the BBC's radio
> > > streaming service every day, and none of them work with it (as far
> > > as I know).  
> > 
> > Have you looked at the get_iplayer script?  
> 
> No, I hadn't heard of it. Looks interesting - thanks Mick.

There's also radiotray is you want an unobtrusive way of listening to the
radio without the "web 2.0 enhanced experience".


-- 
Neil Bothwick

Ohnosecond: That minuscule fraction of time in which you realize
you've just made a big mistake


signature.asc
Description: PGP signature


Re: [gentoo-user] triggered by backtracking - what does that mean?

2014-07-25 Thread Alan McKinnon
On 24/07/2014 13:47, Helmut Jarausch wrote:
> Hi,
> would anybody please explain what the following means:
> 
> emerge -vp net-libs/libpcap
> Calculating dependencies   * waiting for lock on
> /var/db/.pkg.portage_lockfile ... [ ok ]
> ... done!
> [ebuild   R] net-libs/libpcap-1.5.3  USE="bluetooth dbus ipv6
> -canusb -netlink -static-libs" 0 KiB
> 
> Total: 1 package (1 reinstall), Size of downloads: 0 KiB
> 
> !!! The following update(s) have been skipped due to unsatisfied
> dependencies
> !!! triggered by backtracking:
> 
> net-libs/libpcap:0


It means you got tripped up by portage's New! Improved! Awesome!
internal invisible magic. Subslots started it all and portage has to
wade through tons of cruft to figure out the entire dependency tree. In
a nutshell, it keeps searching deeper and deeper until it finds an
answer that works, or until it hits a threshold. When it hits that
threshold, portage exits and says it went as far as it should and has
now given up.

A solution is to have portage search deeper:

emerge --backtrack=30

The default is 10 (usually plenty) but sometimes you need more.


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] acroread woes

2014-07-25 Thread Mick
On Wednesday 23 Jul 2014 15:48:08 James wrote:
> Howdy,
> 
> I have acroread 9.5.5 installed. It is set as the default pdf
> reader for both seamoney and firefox. I mostly use seamonkey, because
> it allows for page/font sizing on the fly, via the mouse wheel (middle
> button on my logitech mouse).  I'd use firefox more, if I could figure
> out dynamic font size adjustments, via the mouse wheel under firebox.
> Maybe an addon does this? Scrolling fonts sizes is quinessentially
> important to old eyes, imho.

Ctrl+scroll works here with Firefox for zooming in or out.


> On seamonkey, when I follow a web link to a pdf, I just get a black page on
> my browser. Under firefox, I get the pdf to open up to be read,
> but can only print postscript files, unless I go to the
> adobe web site; which is not an option for me.

I have set FF to ask whether to open or save.  I can open with qpdfviewer 
which is my default pdf viewer application.  No problems printing pdf 
documents with it.


> I'm looking for a long term solution that easily allows both
> viewing and download of the pdf file; that's how acroread use
> to work.  Googling yeilds a myriad of choices and viewpoints, but
> I've not found any solutions I'm happy with.

Isn't this a matter of setting it up your browser (any browser) to ask you 
what to do with pdf content?  Check under Preferences/Applications/pdf.

-- 
Regards,
Mick


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


Re: [gentoo-user] Regular user can't mount/unmount mtpfs; root is OK

2014-07-25 Thread Samuli Suominen

On 25/07/14 09:36, Walter Dnes wrote:
> On Fri, Jul 25, 2014 at 08:07:10AM +0300, Samuli Suominen wrote
>
>> Install gnome-base/gvfs with USE="gphoto2 mtp" and then use gvfs-mount
>> to mount the device, because gvfs-mount
>> will make use of your PolicyKit with ConsoleKit or systemd-logind
>> authorization that allows mounting as a *local*
>> and *normal* user.
>> Then you don't need the mtpfs command, any group, any custom udev rules, ...
>   Pulling in gnome-base/gvfs and media-libs/libgphoto2 isn't that big an
> issue.  The question is... will I be able to mount from a straight text
> console, especially when X is not running?
>

Semi-long answer

Yes, if you have /etc/init.d/consolekit in your default runlevel, and
sys-auth/consolekit built with USE="pam"
and sys-auth/pambase built with USE="consolekit", you get a PAM module
called pam_ck_connector.so
So, when you login to text console, pam_ck_connector.so kicks in and
will tell PolicyKit you are a local user,
it will show up in `ck-list-sessions` command as "active = TRUE" -line
Then, when you run gvfs-mount from text console, it will query PolicyKit
if you are allowed or not, and
you are, since pam_ck_connector.so has done the job

Short answer:

Yes, everything related works from command line outside of X as well

- Samuli



Re: [gentoo-user] Regular user can't mount/unmount mtpfs; root is OK

2014-07-25 Thread Mick
On Friday 25 Jul 2014 00:29:42 Walter Dnes wrote:
> I notice that mtpfs
> doesn't see the "My Documents" folder on the tablet.  I assume it
> doesn't like spaces in directory (and possibly file) names.

In a terminal you will need to escape spaces when copying with scp, like so:

scp user@1.2.3.4:/home/user/My\\\ Documents ./

However, you shouldn't need to do anything special to list names with spaces 
in them, so this may have something to do with the fs specification.

-- 
Regards,
Mick


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


Re: [gentoo-user] Regular user can't mount/unmount mtpfs; root is OK

2014-07-25 Thread Samuli Suominen

On 25/07/14 12:35, Samuli Suominen wrote:
> On 25/07/14 09:36, Walter Dnes wrote:
>> On Fri, Jul 25, 2014 at 08:07:10AM +0300, Samuli Suominen wrote
>>
>>> Install gnome-base/gvfs with USE="gphoto2 mtp" and then use gvfs-mount
>>> to mount the device, because gvfs-mount
>>> will make use of your PolicyKit with ConsoleKit or systemd-logind
>>> authorization that allows mounting as a *local*
>>> and *normal* user.
>>> Then you don't need the mtpfs command, any group, any custom udev rules, ...
>>   Pulling in gnome-base/gvfs and media-libs/libgphoto2 isn't that big an
>> issue.  The question is... will I be able to mount from a straight text
>> console, especially when X is not running?
>>
> Semi-long answer
>
> Yes, if you have /etc/init.d/consolekit in your default runlevel, and
> sys-auth/consolekit built with USE="pam"
> and sys-auth/pambase built with USE="consolekit", you get a PAM module
> called pam_ck_connector.so
> So, when you login to text console, pam_ck_connector.so kicks in and
> will tell PolicyKit you are a local user,
> it will show up in `ck-list-sessions` command as "active = TRUE" -line
> Then, when you run gvfs-mount from text console, it will query PolicyKit
> if you are allowed or not, and
> you are, since pam_ck_connector.so has done the job
>
> Short answer:
>
> Yes, everything related works from command line outside of X as well
>
> - Samuli
>

...and if you want to be able to use it as non-local user like via ssh
from text console, then
it needs /etc/polkit-1/rules.d/ file like 10-mtp.rules to give authozation
there are examples for writing .rules if you google around, sorry I
don't have
time to go into that now




Re: [gentoo-user] triggered by backtracking - what does that mean?

2014-07-25 Thread Neil Bothwick
On Fri, 25 Jul 2014 11:12:26 +0200, Alan McKinnon wrote:

> > !!! The following update(s) have been skipped due to unsatisfied
> > dependencies
> > !!! triggered by backtracking:
> > 
> > net-libs/libpcap:0  
> 
> 
> It means you got tripped up by portage's New! Improved! Awesome!
> internal invisible magic. Subslots started it all and portage has to
> wade through tons of cruft to figure out the entire dependency tree. In
> a nutshell, it keeps searching deeper and deeper until it finds an
> answer that works, or until it hits a threshold. When it hits that
> threshold, portage exits and says it went as far as it should and has
> now given up.

And in true portage tradition it tells you in a way that is factually
accurate yet totally uninformative unless you already understand what
happened.


-- 
Neil Bothwick

Death is proven to be 99.9% fatal to all laboratory rats.


signature.asc
Description: PGP signature


Re: [gentoo-user] triggered by backtracking - what does that mean?

2014-07-25 Thread Alan McKinnon
On 25/07/2014 11:54, Neil Bothwick wrote:
> On Fri, 25 Jul 2014 11:12:26 +0200, Alan McKinnon wrote:
> 
>>> !!! The following update(s) have been skipped due to unsatisfied
>>> dependencies
>>> !!! triggered by backtracking:
>>>
>>> net-libs/libpcap:0  
>>
>>
>> It means you got tripped up by portage's New! Improved! Awesome!
>> internal invisible magic. Subslots started it all and portage has to
>> wade through tons of cruft to figure out the entire dependency tree. In
>> a nutshell, it keeps searching deeper and deeper until it finds an
>> answer that works, or until it hits a threshold. When it hits that
>> threshold, portage exits and says it went as far as it should and has
>> now given up.
> 
> And in true portage tradition it tells you in a way that is factually
> accurate yet totally uninformative unless you already understand what
> happened.
> 
> 


portage has always suffered badly from Prime Error #1 in interface design:

1. Never expose the underlying implementation in the interface



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] glibc (and gcc) build fails: /bin/sh: /var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen: No such file or directory

2014-07-25 Thread Alec Ten Harmsel
It looks like your MAKEOPTS that you set before the command isn't
respected; I see 'make -j8' all through the build log, resulting in make
trying to run something that's still being built.

Regardless of whether or not this has been a problem in the past, can
you try setting MAKEOPTS in make.conf to either "" or "-j1"?

Also, I saw a warning that you had an incompatible version of autoconf,
which may (who really knows?) cause the parallel build failure.

Hope this helps,

Alec

On 07/23/2014 09:47 AM, Sid S wrote:
> Message delivery has been failing, sorry if this is received twice.
>
> >Wow, running Steam on Hardened. Seems ambitious.
>
> Most things work after grsec is clubbed over the head (sadly the only
> real option in a lot of cases).
>
> >1. Reply with a list of actions/commands you did that led up to this
> point
>
> I untared a file extracted from the Valve-provided .deb to /. I then
> created the package set and emerged
> it; it failed while compiling glibc. Something during these steps
> apparently broke glibc/gcc
> (with a different error than I am asking about now), so I had to
> reinstall them from
> http://tinderbox.dev.gentoo.org and copy a bunch of headers from the
> 64 bit directory to a 32 bit one.
> Now I'm getting this error.
>
> I think part of it goes back to when I initially extracted the
> Valve-provided .tar.gz... It seems to have
> overwritten a lot of files, but I assumed and have been told this is
> not the default behavior, or even
> really possible (it would have had to clear pre-existing directories).
>
> >Do you mean I tried to install @steam and it failed once it got to
> glibc, or were you running with --keep-going and figured it out in
> hindsight?
>
> It failed immediately, I did not use --keep-going.
>
> >Did you do a deep update before doing all of this?
>
> Yes.
>
> >2. Attach the full build log
>
> It's too long to include in the message body. What is the best way to
> send it? If you do not mind visiting an external link, here is one:
> http://bpaste.net/show/488606/.
>
>
>
> On Tue, Jul 22, 2014 at 11:26 AM, Alec Ten Harmsel
> mailto:a...@alectenharmsel.com>> wrote:
>
> Wow, running Steam on Hardened. Seems ambitious.
>
> I'll try and help as much as possible. Can you:
>
> 1. Reply with a list of actions/commands you did that led up to this
> point
> 2. Attach the full build log
>
> Also
>
> > They originally got rebuilt (and I noticed the failure)
>
> Do you mean I tried to install @steam and it failed once it got to
> glibc, or were you running with --keep-going and figured it out in
> hindsight?
>
> Did you do a deep update before doing all of this?
>
> I've only been running Gentoo for a couple of years, so sorry for
> asking all these questions. Most of the time a build fails on my
> machine it's because I've done something really, really stupid, so
> just
> don't want to make the mistake of diving in way too deep and then
> figuring out it was a simple issue.
>
> Alec
>
> On Tue 22 Jul 2014 12:15:08 PM EDT, Sid S wrote:
> > >Are you in the process of switching to hardened right now? Why
> are you
> > rebuilding glibc and gcc?
> >
> > No, I set up my system as hardened. They originally got rebuilt
> (and I
> > noticed the failure) when I set up a package set for running some
> > games (using the steam client) and rebuilt the package set. They are
> > the packages listed here: http://wiki.gentoo.org/wiki/Steam.
> >
> > >The file you sent would have been half the size, if you'll
> excuse me
> > nagging, if you'd sent it in plaintext, rather than HTML.
> >
> > Did something strange happen? I figured the code blocks would
> just be
> > surrounded by
> > styling tags. Sorry about that.
> >
> >
> >
> > On Tue, Jul 22, 2014 at 10:36 AM, Stroller
> >  
> >  >> wrote:
> >
> >
> > On Tue, 22 July 2014, at 2:48 pm, Sid S  
> > >> wrote:
> > > ...
> > > The build log is kind of large, tell me if the whole thing is
> > needed.
> >
> > The file you sent would have been half the size, if you'll
> excuse
> > me nagging, if you'd sent it in plaintext, rather than HTML.
> >
> > Stroller.
> >
> >
> >
>
>



Re: [gentoo-user] adobe flash

2014-07-25 Thread Peter Humphrey
On Friday 25 July 2014 09:30:43 Neil Bothwick wrote:
> On Fri, 25 Jul 2014 08:32:23 +0100, Peter Humphrey wrote:
> > > > I can't use any of the other packages because I use the BBC's radio
> > > > streaming service every day, and none of them work with it (as far
> > > > as I know).
> > > 
> > > Have you looked at the get_iplayer script?
> > 
> > No, I hadn't heard of it. Looks interesting - thanks Mick.
> 
> There's also radiotray is you want an unobtrusive way of listening to the
> radio without the "web 2.0 enhanced experience".

Even better! I'm running it now, having found a working URL from their 
bookmarks file.

Thank you both, gents.

-- 
Regards
Peter




Re: [gentoo-user] updating ALL packages

2014-07-25 Thread gottlieb
On Fri, Jul 25 2014, Alan McKinnon wrote:

> On 25/07/2014 03:51, gottl...@nyu.edu wrote:
>> On Thu, Jul 24 2014, Neil Bothwick wrote:
>> 
>>> On Wed, 23 Jul 2014 09:24:44 -0400, gottl...@nyu.edu wrote:
>>>
 I had mistakenly thought this would update all packages not at the
 latest version (subject to package.accept_keywords, package.mask, ...).
>>>
>>> It only updates runtime dependencies, you need --with-bdeps=y to update
>>> all dependencies.
>> 
>> Thank you and michael for this point.
>> 
>>> However, the default is no for a good reason, there's no need to
>>> update build time deps once the package is installed.
>> 
>> I see.
>> 
 I now realize that it only does this for the packages in world and then
 follows the dependency tree.  So if package A in world is up to date, A
 depends of B, and a new version of B appears, B will not be updated.

 As a result eix-test-obsolete finds that I have packages installed that
 are no longer in the database.
>>>
>>> That shouldn't happen. If an installed package is removed for the tree,
>>> portage should either install the highest version that matches your
>>> settings or print a warning.
>> 
>> I am not sure if you consider the message from eix-test-obsolete
>> as the message from portage.
>> 
>> eix-test-obsolete prints (among other things)
>> 
>> Installed packages with a version not in the database (or masked):
>> [lines omitted]
>> [U] virtual/perl-CPAN-Meta-Requirements (2.125.0@10/29/2013 ->
>> (~)2.125.0-r1): Virtual for CPAN-Meta-Requirements
>> 
>> eix virtual/perl-CPAN-Meta-Requirements   prints
>> 
>> [U] virtual/perl-CPAN-Meta-Requirements
>>  Available versions:  2.122.0-r2 (~)2.125.0-r1
>>  Installed versions:  2.125.0(09:25:35 PM 10/29/2013)
>> 
>> /etc/portage/package.accept_keywords/goingstable contains
>> ~virtual/perl-CPAN-Meta-Requirements-2.125.0
>> 
>> I thought this would be updated to  2.125.0-r1 but
>> my update world (withOUT bdeps=y) says nothing to merge
>> and prints no error or warning
>
> That is correct. The package is needed to build stuff and nothing in the
> current list of packages to be built needs the package to do it.
> Should you sometime update a package that does depend on perl-CPAN-Meta
> to be built, then perl-CPAN-Meta will then be updated
>
>
>
 I could do 

 emerge --update the-2-dozen-such-packages

 Is that wise?
>>>
>>> No, as it will add them to world (this behaviour of -u appears to vary
>>> depending on portage version, wind direction and sunspot activity). Use
>>> --oneshot.
>> 
>> Understood.  And I remember the discussion on the list about the meaning
>> of -u.
>> 
>> emerge -u -1 virtual/perl-CPAN-Meta-Requirements
>> reveals what is probably my real problem
>> 
>> [ebuild U ~] virtual/perl-CPAN-Meta-Requirements-2.125.0-r1 [2.125.0] 0 
>> kB
>> [nomerge   ]  perl-core/CPAN-Meta-Requirements-2.125.0 
>> [ebuild UD ]   virtual/perl-version-0.990.100 [0.990.400] 0 kB
>> [ebuild UD ]perl-core/version-0.990.100 [0.990.400] 105 kB
>> 
>> upgrading virtual/perl-CPAN-Meta-Requirements entails downgrading two
>> other perl packages (or bumping their version in goingstable, which I
>> remember you suggest).
>> 
>> I am going away for 2 weeks, but when I return I will look carefully at
>> the (mostly perl) files that eix-test-obsolete complains about.  I am
>> hopeful that armed with emerge -u -1 and/or --with-bdeps=y I can remove
>> the warnings from eix-test-obsolete.
>
> Just do one world update with bdeps=y
>
> Portage will then update the packages that it has been skipping
>
Not quite that simple due to the bothwick
package.accept_keywords/goingstable.  I did a --pretend run and saw
several proposed downgrades (to packages required by the ones mentioned
in eix-test-obsolete).  Neil recommends that in these cases I update
goingstable to permit upgrades instead.

thanks for your interest and help
allan



Re: [gentoo-user] updating ALL packages

2014-07-25 Thread gottlieb
On Fri, Jul 25 2014, Alan McKinnon wrote:

> On 23/07/2014 15:24, gottl...@nyu.edu wrote:
>> My normal updating procedure is
>> 
>> EMERGE_DEFAULT_OPTS="--ask --deep --tree --verbose --jobs --load-average=5"
>> emerge --update --changed-use --keep-going  @world
>> 
>> I had mistakenly thought this would update all packages not at the
>> latest version (subject to package.accept_keywords, package.mask, ...).
>> 
>> I now realize that it only does this for the packages in world and then
>> follows the dependency tree.  So if package A in world is up to date, A
>> depends of B, and a new version of B appears, B will not be updated.
>> 
>> As a result eix-test-obsolete finds that I have packages installed that
>> are no longer in the database.
>> 
>> I could do 
>> 
>> emerge --update the-2-dozen-such-packages
>
> emerge --depclean

I had done that and nothing turned up.
allan



[gentoo-user] Re: acroread woes

2014-07-25 Thread James
Jc GarcĂ­a  gmail.com> writes:


> > I have acroread 9.5.5 installed. 
> >
> I'm still young but zooming in browsers and terminals is as important
> for me :), Firefox does all you mention to need for me, I can prewiew
> pdfs(set prewiew for opening pdfs by default), Ctrl+mouse-wheel zoom
> in and out, and the awesome vimperator plugin with its comands
> z(I|O)(zoom text and images) and z(i|o)( for zooming only text ) and
> repeat with '.'  make my browsing experience the best I have found.

Very cool. It works fine for firefox.   I still looking  for 
a seamonkey solution.

thx,
James  






Re: [gentoo-user] wxGTK compilation fails "missing thread.h"

2014-07-25 Thread Douglas J Hunley
On Fri, Jul 25, 2014 at 12:48 AM, Peter Humphrey 
wrote:

> I sometimes find this error coming from multi-thread compilation. I fix it
> by
> prepending the emerge command with MAKEOPTS="-j1". You could try that.
>

Indeed, this is probably parallelism gone wrong. However, you should really
use package.env to override MAKEOPTS instead of using "one off" command
line overrides


-- 
Douglas J Hunley (doug.hun...@gmail.com)
Twitter: @hunleyd   Web:
about.me/douglas_hunley
G+: http://google.com/+DouglasHunley


Re: [gentoo-user] glibc (and gcc) build fails: /bin/sh: /var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen: No such file or directory

2014-07-25 Thread Douglas J Hunley
On Fri, Jul 25, 2014 at 5:39 AM, Alec Ten Harmsel 
wrote:

> Regardless of whether or not this has been a problem in the past, can you
> try setting MAKEOPTS in make.conf to either "" or "-j1"?


Bit of a sledgehammer, that. Use package.env to override MAKEOPTS for this
one package instead :)


-- 
Douglas J Hunley (doug.hun...@gmail.com)
Twitter: @hunleyd   Web:
about.me/douglas_hunley
G+: http://google.com/+DouglasHunley


Re: [gentoo-user] wxGTK compilation fails "missing thread.h"

2014-07-25 Thread Neil Bothwick
On Fri, 25 Jul 2014 09:38:50 -0700, Douglas J Hunley wrote:

> > I sometimes find this error coming from multi-thread compilation. I
> > fix it by
> > prepending the emerge command with MAKEOPTS="-j1". You could try that.
> >  
> 
> Indeed, this is probably parallelism gone wrong. However, you should
> really use package.env to override MAKEOPTS instead of using "one off"
> command line overrides

The one off override proves the need for the altered MAKEOPTS and
provides the ammunition for a bug report. Any ebuild that needs MAKEOPTS
to be overridden in package.env is buggy and should be reported as such.


-- 
Neil Bothwick

Dream as if you'll live forever. Live as if you'll die today.


signature.asc
Description: PGP signature


Re: [gentoo-user] wxGTK compilation fails "missing thread.h"

2014-07-25 Thread Peter Humphrey
On Friday 25 July 2014 09:38:50 Douglas J Hunley wrote:
> On Fri, Jul 25, 2014 at 12:48 AM, Peter Humphrey 
> 
> wrote:
> > I sometimes find this error coming from multi-thread compilation. I fix it
> > by
> > prepending the emerge command with MAKEOPTS="-j1". You could try that.
> 
> Indeed, this is probably parallelism gone wrong. However, you should really
> use package.env to override MAKEOPTS instead of using "one off" command
> line overrides

But then, next time I need to emerge the package it may have been fixed. So I 
stand by what I said.

-- 
Regards
Peter




[gentoo-user] [OT] Badblocks on my harddisk

2014-07-25 Thread meino . cramer
Hi,

After running smartctl for an extended offline test I got
a badblock (information extracted from the report):

SMART Self-test log structure revision number 1
Num  Test_DescriptionStatus  Remaining  LifeTime(hours)  
LBA_of_first_error
# 1  Extended offlineCompleted: read failure   90% 14460 
4288352511
197 Current_Pending_Sector  0x0032   200   200   000Old_age   Always   
-   1

I found a explanation to map the LBA to a partition here:
http://smartmontools.sourceforge.net/badblockhowto.html

My partition layout is:
#> sudo fdisk -lu /dev/sda

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x07ec16a2

Device Boot  StartEndBlocks  Id System
/dev/sda1  *  2048 104447 51200  83 Linux
/dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
/dev/sda3 12687360  222402559 104857600  83 Linux
/dev/sda4222402560 1953525167 865561304   5 Extended
/dev/sda5222404608  232890367   5242880  83 Linux
/dev/sda6232892416  442607615 104857600  83 Linux
/dev/sda7442609664  652324863 104857600  83 Linux
/dev/sda8652326912  862042111 104857600  83 Linux
/dev/sda9862044160 1071759359 104857600  83 Linux
/dev/sda10  1071761408 1281476607 104857600  83 Linux
/dev/sda11  1281478656 1491193855 104857600  83 Linux
/dev/sda12  1491195904 1953525167 231164632  83 Linux
4288352511  <<< The number reported by smartctl


Following the linked document...
It seems the bad LBA is not on the checked harddisk.

Or (more obvious) I did something wrong...

How can I correctly identify the partition, which contains the bad
block?
How can I get a full list of all bad blocks (if any) from a mounted
file systems?
How severe is the problem?

Thank you very much for any help in advance!
Best regards,
mcc






[gentoo-user] Re: acroread woes

2014-07-25 Thread James
Mick  gmail.com> writes:


> Ctrl+scroll works here with Firefox for zooming in or out.

Yes, it did not occur to me that this function is under 'hotkeys' (duh).
I found a master listing for FF so it is fine now. 


> I have set FF to ask whether to open or save.  I can open with qpdfviewer 
> which is my default pdf viewer application.  No problems printing pdf 
> documents with it.


Hmmm. I cannot find 'qpdfviewer' even as an overlay?  How did you install it?


> Isn't this a matter of setting it up your browser (any browser) to ask you 
> what to do with pdf content?  Check under Preferences/Applications/pdf.


No not really. No matter what I do no seamonkey, it give a black screen
of death, if I have it default to acroread. So now I set it to ask me
and I can download if I need to, then use acroread from the CLI.  Extra
steps I did not use to have to do; but, I'll live with it for now.
Chromium wants to put too many packages on the system, but I may install
it just for grins (thx Neil).

OK so all is workable now.. sheash.  hotkeys...I need sleep


thx,
James








[gentoo-user] NFS tutorial for the brain dead sysadmin?

2014-07-25 Thread walt
In this case, the brain dead sysadmin would be moi :)

For years I've been using NFS to share /usr/portage with all of the
gentoo machines on my LAN.

Problem:  occasionally it stops working for no apparent reason.

Example:  two days ago I updated two ~amd64 gentoo machines, both of
which have been mounting /usr/portage as NFS3 shares for at least a
year with no problems.

One machine worked normally after the update, the other was unable to
mount /usr/portage because rpc.statd wouldn't start correctly.

After two frustrating days I discovered that I had never enabled the
rpcbind.service on the "broken" machine.  So I enabled rpcbind, which
fixed the breakage.

So, why did the "broken" machine work normally for more than a year
without rpcbind until two days ago?  (I suppose because nfs-utils was
updated to 1.3.0 ?)

The real problem here is that I have no idea how NFS works, and each
new version is more complicated because the devs are solving problems
that I don't understand or even know about.

So, please, what's the best way to learn and understand NFS?

Thanks for any clues.




Re: [gentoo-user] acroread woes

2014-07-25 Thread Walter Dnes
On Wed, Jul 23, 2014 at 02:48:08PM +, James wrote

> I've tried MuPDF, but it is a bit spartan and does not (at least
> from what I've experienced) allow for simple downloading of the pdf.

  If you right-click on a link in most browsers, you should get a
"download" option in the context menu.  That's handled by the browser,
not mupdf.  Now for a couple of mupdf "secrets"...

1) mupdf does download the file from the web to /tmp.  You can find it
there with any "file explorer" app, and copy to where you want it.

2) to select+copy an area of text, hold down the right mouse button
whilst dragging the mouse pointer.  The selected area is automatically
copied to your clipboard.

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



Re: [gentoo-user] [OT] Badblocks on my harddisk

2014-07-25 Thread Dale
meino.cra...@gmx.de wrote:
> Hi,
>
> After running smartctl for an extended offline test I got
> a badblock (information extracted from the report):
>
> SMART Self-test log structure revision number 1
> Num  Test_DescriptionStatus  Remaining  LifeTime(hours)  
> LBA_of_first_error
> # 1  Extended offlineCompleted: read failure   90% 14460 
> 4288352511
> 197 Current_Pending_Sector  0x0032   200   200   000Old_age   Always  
>  -   1
>
> I found a explanation to map the LBA to a partition here:
> http://smartmontools.sourceforge.net/badblockhowto.html
>
> My partition layout is:
> #> sudo fdisk -lu /dev/sda
>
> Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x07ec16a2
>
> Device Boot  StartEndBlocks  Id System
> /dev/sda1  *  2048 104447 51200  83 Linux
> /dev/sda2   104448   12687359   6291456  82 Linux swap / Solaris
> /dev/sda3 12687360  222402559 104857600  83 Linux
> /dev/sda4222402560 1953525167 865561304   5 Extended
> /dev/sda5222404608  232890367   5242880  83 Linux
> /dev/sda6232892416  442607615 104857600  83 Linux
> /dev/sda7442609664  652324863 104857600  83 Linux
> /dev/sda8652326912  862042111 104857600  83 Linux
> /dev/sda9862044160 1071759359 104857600  83 Linux
> /dev/sda10  1071761408 1281476607 104857600  83 Linux
> /dev/sda11  1281478656 1491193855 104857600  83 Linux
> /dev/sda12  1491195904 1953525167 231164632  83 Linux
> 4288352511  <<< The number reported by smartctl
>
>
> Following the linked document...
> It seems the bad LBA is not on the checked harddisk.
>
> Or (more obvious) I did something wrong...
>
> How can I correctly identify the partition, which contains the bad
> block?
> How can I get a full list of all bad blocks (if any) from a mounted
> file systems?
> How severe is the problem?
>
> Thank you very much for any help in advance!
> Best regards,
> mcc
>

I ran into this recently on the drive that has my home partition on it. 
Someone posted that it *may* be fixable without moving data etc etc.  I
didn't have a backup at the time and nothing large enough to make one so
I just ordered a new drive.  When I got the new drive in and moved my
data over, then I played with the drive a bit.  I used dd to erase the
drive, then stuck a file system back on it and filled it up.  After
doing that, the drive seems to have marked that part as bad and doesn't
use it anymore.  It has passed every test since then. 

My point is this, backups for sure just in case but you may be able to
get the drive to mark that area as bad by moving that data off there. 
In my case, the files were corrupted and gone.  Yea, I might could have
sent it somewhere but I ain't into that.  To much money for files I can
replace if needed.  I think it was like 3 or 4 video files.  I'd find
out what files are there, see what damage has occurred so that you can
correct later, then find one really good howto and follow it.   From my
understanding, if you can move that data in the bad spot off there, the
drive sort of fixes itself.  If yours works like mine did, you should be
OK but I'd use it for stuff that ain't so important.  I use mine as a
backup drive and test it a lot.  ;-)  I may trust it again, one day. 

So, most likely you will have some files corrupted at least.  The drive
*may* be fixable if you can figure out what files to move so that the
drive can do its magic.  Key thing is, finding out what to move so that
the drive can do its work.  Two options, try to move files so the drive
can do its thing or move all the data to another drive, do like I did
mine with dd and give it a fresh start that way.   I didn't feel I had
the experience to try and move the files so I took the 2nd option.  Now
I wish I had done option #1 and took notes that I could pass on.  That
would likely help you more. 

BTW, my drive gave that error for weeks and never got worse.  I could be
lucky on that one so do what needs doing as soon as you can, just in
case.  The last drive that really failed on me years ago, I got a
serious warning from SMART.  It even said I had like 24 hours to get my
data off.  It needs attention in your case but hopefully you will have
the results I did in the end and you have time to deal with it.

Dale

:-)  :-)