Re: [gentoo-user] Policykit problems (blueman, nm-applet, USB mount, etc) after some update

2018-11-08 Thread Mick
On Wednesday, 7 November 2018 13:56:32 GMT Alexey Eschenko wrote:
> Still no answers from anyone :)
> 
> Also I've encountered other problem when ran gparted-pkexec:
> > $ gparted-pkexec
> >  AUTHENTICATING FOR org.gentoo.pkexec.gparted 
> > Authentication is required to run the GParted Partition Editor
> > Authenticating as: root
> > Password:
> > polkit-agent-helper-1: error response to PolicyKit daemon:
> > GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
> >  AUTHENTICATION FAILED 
> > Error executing command as another user: Not authorized
> > 
> > This incident has been reported.
> 
> It can probably be related to this problem:
> https://gitlab.freedesktop.org/polkit/polkit/issues/17
> 
> Maybe I need to post the issue to the Gentoo Bugzilla? Is it appropriate
> for this kind of problems?

Yes, I think this looks like a bug, but like your previous problem it may have 
something to do with the interaction (buggy or otherwise) between polkit and 
systemctl.

I suggest you raise a bug report with BGO.

-- 
Regards,
Mick

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


Re: [gentoo-user] Permissions error on starting X.

2018-11-08 Thread gevisz
сб, 3 нояб. 2018 г. в 16:02, Alan Mackenzie :
>
> If you start your X server from the command line with, e.g. startx, you
> now need to set the new(?) suid USE flag for the xorg-server package.

I was hit today by this after updating my system.

Thanks to God, I have noticed the use flag change in xorg-server
ebuild, which helped me to figure out how to fix it.

> The developers ... failed to notify users by a NEWS item
>
> The matter was fairly intensively discussed in bug #669648
> in Gentoo's bugzilla.

Can you give a link, please.



Re: [gentoo-user] Permissions error on starting X.

2018-11-08 Thread gevisz
чт, 8 нояб. 2018 г. в 22:47, gevisz :
>
> сб, 3 нояб. 2018 г. в 16:02, Alan Mackenzie :
> >
> > The matter was fairly intensively discussed in bug #669648
> > in Gentoo's bugzilla.
>
> Can you give a link, please.
Found it myself: https://bugs.gentoo.org/669648
See also: https://wiki.gentoo.org/wiki/Non_root_Xorg



Re: [gentoo-user] Permissions error on starting X.

2018-11-08 Thread Hervé Guillemet

Le 07/11/2018 à 04:59, YUE Daian a écrit :



I got "setblabla error: cannot open /dev/tty0 (permission denied)".

A possible solution without changing anything unnecessary is to run
startx as "startx -- vt1".

No need to change permission/ownership of anything.
It is just required that the user is in "video" group. No "tty" or
"input" needed.

I presume it is because your user does not have access to TTY other than
its login TTY. So if you log in by "tty1", just start X in "vt1".

Hope that helps somehow.


Thanks for this tip. This worked for me but adding the user to "input" 
group was also necessary.


--
Hervé



[gentoo-user] Hard drive storage questions

2018-11-08 Thread Dale
Howdy to all,

I have a interesting problem coming up.  Currently, I have two 3TB
drives for my /home mount point.  A lot of this is videos but some pdf
files and other documents as well plus a photo collection of family
stuff etc. 

Filesystem                       Size  Used Avail Use%
Mounted on
/dev/mapper/Home2-Home2        5.4T  3.7T  1.8T  68% /home

I've got a little over 25% or so of usable space left.  At that point or
shortly thereafter, it could start causing some issues according to what
I've read anyway.  Either way, shortly after that, being full will
certainly be a issue.  I'm full up on my motherboard SATA ports.  Even
if I buy a larger drive or drives, I'd have to unplug one to move things
over and likely repeat that a few times.  I could do that and likely
will have to anyway but I'm trying to think a little farther ahead. 
Currently I have the more important stuff backed up to a external single
6TB USB drive, previous thread on that.  I'm trying to come up with a
plan that allows me to grow easier and without having to worry about
running out of motherboard based ports. 

I thought about a store bought enclosure with more than one hard drive
that connects by ethernet.  The ones I've found are fairly expensive. 
Doing it over USB concerns me for other reasons, USB isn't always that
stable.  So, internal isn't working out to well long term.  Ethernet
based is expensive, what I could find anyway.  USB isn't that stable. 

I'm planning to upgrade my current system.  Upgrade the CPU, memory and
maybe even the video card as well.  I thought about using a older spare
motherboard, those removed components and building a mini system sort of
thing.  I could have one small drive for a OS and then add large drives
for storage.  Then I can access those from my main system, ethernet I
would guess.  Even then, I'd still be limited to the SATA ports on the
MOBO at some point but it would be a ways into the future.  So far tho,
this is one of the better ideas.  So far.  Does anyone else have other
ideas on how to do this?  Some method that I've never heard of but
doesn't cost a lot of money to do? 

Thanks in advance for any ideas.  I can't think of anything else.  ;-) 
If you need more info, let me know. 

Dale

:-)  :-) 



Re: [gentoo-user] Hard drive storage questions

2018-11-08 Thread Jack

On 2018.11.08 20:16, Dale wrote:

Howdy to all,

I have a interesting problem coming up.  Currently, I have two 3TB
drives for my /home mount point.  A lot of this is videos but some pdf
files and other documents as well plus a photo collection of family
stuff etc. 

Filesystem                       Size  Used Avail Use%
Mounted on
/dev/mapper/Home2-Home2        5.4T  3.7T  1.8T  68% /home

I've got a little over 25% or so of usable space left.  At that point  
or
shortly thereafter, it could start causing some issues according to  
what

I've read anyway.  Either way, shortly after that, being full will
certainly be a issue.  I'm full up on my motherboard SATA ports.  Even
if I buy a larger drive or drives, I'd have to unplug one to move  
things

over and likely repeat that a few times.  I could do that and likely
will have to anyway but I'm trying to think a little farther ahead. 
Currently I have the more important stuff backed up to a external  
single

6TB USB drive, previous thread on that.  I'm trying to come up with a
plan that allows me to grow easier and without having to worry about
running out of motherboard based ports. 

I thought about a store bought enclosure with more than one hard drive
that connects by ethernet.  The ones I've found are fairly expensive. 
Doing it over USB concerns me for other reasons, USB isn't always that
stable.  So, internal isn't working out to well long term.  Ethernet
based is expensive, what I could find anyway.  USB isn't that stable. 

I'm planning to upgrade my current system.  Upgrade the CPU, memory  
and
maybe even the video card as well.  I thought about using a older  
spare
motherboard, those removed components and building a mini system sort  
of
thing.  I could have one small drive for a OS and then add large  
drives

for storage.  Then I can access those from my main system, ethernet I
would guess.  Even then, I'd still be limited to the SATA ports on the
MOBO at some point but it would be a ways into the future.  So far  
tho,

this is one of the better ideas.  So far.  Does anyone else have other
ideas on how to do this?  Some method that I've never heard of but
doesn't cost a lot of money to do? 

Thanks in advance for any ideas.  I can't think of anything else.   
;-) 

If you need more info, let me know. 

Dale

If you have space on the mobo for another card, you should be able to  
get an additional SATA card.  I have no idea on prices, but I'd be  
surprised if it's prohibitive.


Jack


Re: [gentoo-user] Hard drive storage questions

2018-11-08 Thread Dale
Jack wrote:
> On 2018.11.08 20:16, Dale wrote:
>> Howdy to all,
>>
>> I have a interesting problem coming up.  Currently, I have two 3TB
>> drives for my /home mount point.  A lot of this is videos but some pdf
>> files and other documents as well plus a photo collection of family
>> stuff etc. 
>>
>> Filesystem                       Size  Used Avail Use%
>> Mounted on
>> /dev/mapper/Home2-Home2        5.4T  3.7T  1.8T  68% /home
>>
>> I've got a little over 25% or so of usable space left.  At that point or
>> shortly thereafter, it could start causing some issues according to what
>> I've read anyway.  Either way, shortly after that, being full will
>> certainly be a issue.  I'm full up on my motherboard SATA ports.  Even
>> if I buy a larger drive or drives, I'd have to unplug one to move things
>> over and likely repeat that a few times.  I could do that and likely
>> will have to anyway but I'm trying to think a little farther ahead. 
>> Currently I have the more important stuff backed up to a external single
>> 6TB USB drive, previous thread on that.  I'm trying to come up with a
>> plan that allows me to grow easier and without having to worry about
>> running out of motherboard based ports. 
>>
>> I thought about a store bought enclosure with more than one hard drive
>> that connects by ethernet.  The ones I've found are fairly expensive. 
>> Doing it over USB concerns me for other reasons, USB isn't always that
>> stable.  So, internal isn't working out to well long term.  Ethernet
>> based is expensive, what I could find anyway.  USB isn't that stable. 
>>
>> I'm planning to upgrade my current system.  Upgrade the CPU, memory and
>> maybe even the video card as well.  I thought about using a older spare
>> motherboard, those removed components and building a mini system sort of
>> thing.  I could have one small drive for a OS and then add large drives
>> for storage.  Then I can access those from my main system, ethernet I
>> would guess.  Even then, I'd still be limited to the SATA ports on the
>> MOBO at some point but it would be a ways into the future.  So far tho,
>> this is one of the better ideas.  So far.  Does anyone else have other
>> ideas on how to do this?  Some method that I've never heard of but
>> doesn't cost a lot of money to do? 
>>
>> Thanks in advance for any ideas.  I can't think of anything else.  ;-) 
>> If you need more info, let me know. 
>>
>> Dale
>>
> If you have space on the mobo for another card, you should be able to
> get an additional SATA card.  I have no idea on prices, but I'd be
> surprised if it's prohibitive.
>
> Jack
>


I hadn't thought of adding a SATA card.  I have a ethernet card and the
video card and I don't think there are any others.  I should have some
open slots there.  Well, that is one idea that I hadn't thought of. 
lol  Since I have a LARGE case, Cooler Master HAF-932, I have space for
more drives.  I think this thing holds like nine or ten pretty easy. 

Thanks.  Another option to look into. 

Dale

:-)  :-) 



Re: [gentoo-user] Hard drive storage questions

2018-11-08 Thread Andrew Lowe
Firstly sorry about the top post, on the phone.

I've had the same sort of thing happen to me. I was lucky to have available 
sata ports so bought two WD 8TB video archive drives and attached them to the 
MB. The card idea from the previous post is basically the same thing. 

In turn the archive drives will spin down after about 10 minutes, you will 
hear this happen and is a bit disconcerting the first couple of times, and use 
hardly any power. In turn if you need anything from the drives it takes just a 
few seconds to spin up again.

In comparison to a small NAS thingy, I'm way ahead. No purchase of bare 
NAS, and much lower power consumption. Much higher data transfer rates as well. 
Having said that, I may have to buy a NAS in the long run as a backup for other 
purposes.

  Andrew

Sent from my phone

-Original Message-
From: Dale 
To: gentoo-user@lists.gentoo.org
Sent: Fri., 09 Nov. 2018 9:43
Subject: Re: [gentoo-user] Hard drive storage questions

Jack wrote:
> On 2018.11.08 20:16, Dale wrote:
>> Howdy to all,
>>
>> I have a interesting problem coming up.  Currently, I have two 3TB
>> drives for my /home mount point.  A lot of this is videos but some pdf
>> files and other documents as well plus a photo collection of family
>> stuff etc. 
>>
>> Filesystem   Size  Used Avail Use%
>> Mounted on
>> /dev/mapper/Home2-Home25.4T  3.7T  1.8T  68% /home
>>
>> I've got a little over 25% or so of usable space left.  At that point or
>> shortly thereafter, it could start causing some issues according to what
>> I've read anyway.  Either way, shortly after that, being full will
>> certainly be a issue.  I'm full up on my motherboard SATA ports.  Even
>> if I buy a larger drive or drives, I'd have to unplug one to move things
>> over and likely repeat that a few times.  I could do that and likely
>> will have to anyway but I'm trying to think a little farther ahead. 
>> Currently I have the more important stuff backed up to a external single
>> 6TB USB drive, previous thread on that.  I'm trying to come up with a
>> plan that allows me to grow easier and without having to worry about
>> running out of motherboard based ports. 
>>
>> I thought about a store bought enclosure with more than one hard drive
>> that connects by ethernet.  The ones I've found are fairly expensive. 
>> Doing it over USB concerns me for other reasons, USB isn't always that
>> stable.  So, internal isn't working out to well long term.  Ethernet
>> based is expensive, what I could find anyway.  USB isn't that stable. 
>>
>> I'm planning to upgrade my current system.  Upgrade the CPU, memory and
>> maybe even the video card as well.  I thought about using a older spare
>> motherboard, those removed components and building a mini system sort of
>> thing.  I could have one small drive for a OS and then add large drives
>> for storage.  Then I can access those from my main system, ethernet I
>> would guess.  Even then, I'd still be limited to the SATA ports on the
>> MOBO at some point but it would be a ways into the future.  So far tho,
>> this is one of the better ideas.  So far.  Does anyone else have other
>> ideas on how to do this?  Some method that I've never heard of but
>> doesn't cost a lot of money to do? 
>>
>> Thanks in advance for any ideas.  I can't think of anything else.  ;-) 
>> If you need more info, let me know. 
>>
>> Dale
>>
> If you have space on the mobo for another card, you should be able to
> get an additional SATA card.  I have no idea on prices, but I'd be
> surprised if it's prohibitive.
>
> Jack
>


I hadn't thought of adding a SATA card.  I have a ethernet card and the
video card and I don't think there are any others.  I should have some
open slots there.  Well, that is one idea that I hadn't thought of. 
lol  Since I have a LARGE case, Cooler Master HAF-932, I have space for
more drives.  I think this thing holds like nine or ten pretty easy. 

Thanks.  Another option to look into. 

Dale

:-)  :-) 



Re: [gentoo-user] Hard drive storage questions

2018-11-08 Thread Bill Kenworthy
On 09/11/18 09:43, Dale wrote:
> Jack wrote:
>> On 2018.11.08 20:16, Dale wrote:
>>> Howdy to all,
>>>
>>> I have a interesting problem coming up.  Currently, I have two 3TB
>>> drives for my /home mount point.  A lot of this is videos but some pdf
>>> files and other documents as well plus a photo collection of family
>>> stuff etc. 
>>>
>>> Filesystem                       Size  Used Avail Use%
>>> Mounted on
>>> /dev/mapper/Home2-Home2        5.4T  3.7T  1.8T  68% /home
>>>
>>> I've got a little over 25% or so of usable space left.  At that point or
>>> shortly thereafter, it could start causing some issues according to what
>>> I've read anyway.  Either way, shortly after that, being full will
>>> certainly be a issue.  I'm full up on my motherboard SATA ports.  Even
>>> if I buy a larger drive or drives, I'd have to unplug one to move things
>>> over and likely repeat that a few times.  I could do that and likely
>>> will have to anyway but I'm trying to think a little farther ahead. 
>>> Currently I have the more important stuff backed up to a external single
>>> 6TB USB drive, previous thread on that.  I'm trying to come up with a
>>> plan that allows me to grow easier and without having to worry about
>>> running out of motherboard based ports. 
>>>
>>> I thought about a store bought enclosure with more than one hard drive
>>> that connects by ethernet.  The ones I've found are fairly expensive. 
>>> Doing it over USB concerns me for other reasons, USB isn't always that
>>> stable.  So, internal isn't working out to well long term.  Ethernet
>>> based is expensive, what I could find anyway.  USB isn't that stable. 
>>>
>>> I'm planning to upgrade my current system.  Upgrade the CPU, memory and
>>> maybe even the video card as well.  I thought about using a older spare
>>> motherboard, those removed components and building a mini system sort of
>>> thing.  I could have one small drive for a OS and then add large drives
>>> for storage.  Then I can access those from my main system, ethernet I
>>> would guess.  Even then, I'd still be limited to the SATA ports on the
>>> MOBO at some point but it would be a ways into the future.  So far tho,
>>> this is one of the better ideas.  So far.  Does anyone else have other
>>> ideas on how to do this?  Some method that I've never heard of but
>>> doesn't cost a lot of money to do? 
>>>
>>> Thanks in advance for any ideas.  I can't think of anything else.  ;-) 
>>> If you need more info, let me know. 
>>>
>>> Dale
>>>
>> If you have space on the mobo for another card, you should be able to
>> get an additional SATA card.  I have no idea on prices, but I'd be
>> surprised if it's prohibitive.
>>
>> Jack
>>
>
> I hadn't thought of adding a SATA card.  I have a ethernet card and the
> video card and I don't think there are any others.  I should have some
> open slots there.  Well, that is one idea that I hadn't thought of. 
> lol  Since I have a LARGE case, Cooler Master HAF-932, I have space for
> more drives.  I think this thing holds like nine or ten pretty easy. 
>
> Thanks.  Another option to look into. 
>
> Dale
>
> :-)  :-) 
>
I have used a mini-pcie board from ebay (takes two sata connections)
alongside a number of other connection types in a btrfs raid 10 for some
months as a temporary expansion - worked fine, but make sure to check
Linux compatibility first.


BillK





Re: [gentoo-user] Hard drive storage questions

2018-11-08 Thread Rich Freeman
On Thu, Nov 8, 2018 at 8:16 PM Dale  wrote:
>
> I'm trying to come up with a
> plan that allows me to grow easier and without having to worry about
> running out of motherboard based ports.
>

So, this is an issue I've been changing my mind on over the years.
There are a few common approaches:

* Find ways to cram a lot of drives on one host
* Use a patchwork of NAS devices or improvised hosts sharing over
samba/nfs/etc and end up with a mess of mount points.
* Use a distributed FS

Right now I'm mainly using the first approach, and I'm trying to move
to the last.  The middle option has never appealed to me.

So, to do more of what you're doing in the most efficient way
possible, I recommend finding used LSI HBA cards.  These have mini-SAS
ports on them, and one of these can be attached to a breakout cable
that gets you 4 SATA ports.  I just picked up two of these for $20
each on ebay (used) and they have 4 mini-SAS ports each, which is
capacity for 16 SATA drives per card.  Typically these have 4x or
larger PCIe interfaces, so you'll need a large slot, or one with a
cutout.  You'd have to do the math but I suspect that if the card+MB
supports PCIe 3.0 you're not losing much if you cram it into a smaller
slot.  If most of the drives are idle most of the time then that also
demands less bandwidth.  16 fully busy hard drives obviously can put
out a lot of data if reading sequentially.

You can of course get more consumer-oriented SATA cards, but you're
lucky to get 2-4 SATA ports on a card that runs you $30.  The mini-SAS
HBAs get you a LOT more drives per PCIe slot, and your PCIe slots are
you main limiting factor assuming you have power and case space.

Oh, and those HBA cards need to be flashed into "IT" mode - they're
often sold this way, but if they support RAID you want to flash the IT
firmware that just makes them into a bunch of standalone SATA slots.
This is usually a PITA that involves DOS or whatever, but I have
noticed some of the software needed in the Gentoo repo.

If you go that route it is just like having a ton of SATA ports in
your system - they just show up as sda...sdz and so on (no idea where
it goes after that).  Software-wise you just keep doing what you're
already doing (though you should be seriously considering
mdadm/zfs/btrfs/whatever at that point).

That is the more traditional route.

Now let me talk about distributed filesystems, which is the more
scalable approach.  I'm getting tired of being limited by SATA ports,
and cases, and such.  I'm also frustrated with some of zfs's
inflexibility around removing drives.  These are constraints that make
upgrading painful, and often inefficient.  Distributed filesystems
offer a different solution.

A distributed filesystem spreads its storage across many hosts, with
an arbitrary number of drives per host (more or less).  So, you can
add more hosts, add more drives to a host, and so on.  That means
you're never forced to try to find a way to cram a few more drives in
one host.  The resulting filesystem appears as one gigantic filesystem
(unless you want to split it up), which means no mess of nfs
mountpoints and so on, and all the other headaches of nfs.  Just as
with RAID these support redundancy, except now you can lose entire
hosts without issue.  With many you can even tell it which
PDU/rack/whatever each host is plugged into, and it will make sure you
can lose all the hosts in one rack.  You can also mount the filesystem
on as many hosts as you want at the same time.

They do tend to be a bit more complex.  The big players can scale VERY
large - thousands of drives easily.  Everything seems to be moving
towards Ceph/CephFS.  If you were hosting a datacenter full of
VMs/containers/etc I'd be telling you to host it on Ceph.  However,
for small scale (which you definitely are right now), I'm not thrilled
with it.  Due to the way it allocates data (hash-based) anytime
anything changes you end up having to move all the data around in the
cluster, and all the reports I've read suggests it doesn't perform all
that great if you only have a few nodes.  Ceph storage nodes are also
RAM-hungry, and I want to run these on ARM to save power, and few ARM
boards have that kind of RAM, and they're very expensive.

Personally I'm working on deploying a cluster of a few nodes running
LizardFS, which is basically a fork/derivative of MooseFS.  While it
won't scale nearly as well, below 100 nodes should be fine, and in
particular it sounds like it works fairly well with only a few nodes.
It has its pros and cons, but for my needs it should be sufficient.
It also isn't RAM-hungry.  I'm going to be testing it on some
RockPro64s, with the LSI HBAs.

I did note that Gentoo lacks a LizardFS client.  I suspect I'll be
looking to fix that - I'm sure the moosefs ebuild would be a good
starting point.  I'm probably going to be a whimp and run the storage
nodes on Ubuntu or whatever upstream targets - they're basically
appliances as far as I'm concerned.

So, tho

[gentoo-user] Default USE flags for net-libs/webkit-gtk

2018-11-08 Thread Yongming
Hi all,

I wonder if there is a place to read previous discussions for a
package/ebuild. Specifically, I am interested in the rationale behind
having the "geolocation" flag on by default for net-libs/webkit-gtk.

Currently on a desktop, having "geolocation" pulls in "geoclue" (which
in turn pulls in "modemmanager" and so on), which is seemingly
unnecessary in my case. I understand that these dependencies can be
customised via /etc/portage/package.use/*, but I am also curious about
the thinking behind net-libs/webkit-gtk having "geolocation" flag on
by default.

-- 
Yongming



Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-11-08 Thread Stefan G. Weichinger
Am 07.11.18 um 10:45 schrieb Stefan G. Weichinger:
> Am 07.11.18 um 10:42 schrieb Stefan G. Weichinger:
>> Am 12.09.18 um 10:15 schrieb Stefan G. Weichinger:
>>> Am 12.09.18 um 10:09 schrieb Stefan G. Weichinger:
>>>
 seems I have been cautious so far to keep sys-fs/multipath-tools at
 version 0.5.0-r1 from 2016 

 portage would update to stable 0.6.4-r1

 and maybe that would help creating /dev/sdX with a newer kernel as
 well (instead of that flapping as mentioned in my other mail before)
>>>
>>> and sys-fs/udev-238 might help as well (currently at 225 on that box ...)
>>
>> Planning and preparing for a new test tomorrow.
>>
>> Swapping a kernel isn't that hard as one can keep and chose the old one
>> again. Updating udev is another thing ;-)
> 
> 
> https://wiki.gentoo.org/wiki/Udev/Upgrade_Guide
> 
> looks as if 225 -> 238 might be no problem at all?
> 
> Anyone using lpfc module with some recommendations around?

udev upgrade was no problem, new kernel booted as well, but again I saw
the FC flapping up and down and no filesystems coming up there.

So I patched the older kernel and went back ... for now our one issue is
solved (enabling ACLs for the filesystems) but 4.1.15 as kernel isn't
quite up to date.

I wonder if that FC adapter would need a firmware update or so. Too
risky anyway, the server is a few 100 kms away etc etc