Re: [gentoo-user] Small (as in footprint) window manager

2018-12-03 Thread J. Roeleveld
# ssh -Y @

"@" is optional. Without it, ssh will use the username you are using 
on the client.
"" is either an IP address or, if you have a hosts file or DNS server 
configured, the hostname.

The "-Y" sorts out the forwarding for X applications.

--
Joost

On December 4, 2018 5:26:09 AM UTC, Thomas Mueller  wrote:
>> On 2018-12-03, Thomas Mueller  wrote:
>
>> > I see also the suggestion
>  
>> >  $ ssh -Y 
> 
>> > but what would be the syntax for specifying  where 
>> > is a different computer on the same local network?
>
>> Does it have an IP address?
>  
>> Grant Edwards
>
>I see where I missed changing the Subject from an old message:
>embarrassing on me.
>
>Being on the same local network, the other machine would have an
>intranet IP address of 192.168.0.x, where x would be a number >= 2.
>
>I have mounted file systems by NFS but have never accessed an X server
>by ssh.  I don't think I ever used ssh command directly.
>
>Tom

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] Persistence of ZFS /dev/zvol/rpool/swap

2018-11-25 Thread J. Roeleveld
I followed the same guide and don't have this issue.
Did you enable all ZFS services into the correct runlevels?

--
Joost

On November 25, 2018 9:36:35 PM UTC, Pariksheet Nanda 
 wrote:
>Hi folks,
>
>I've followed fearedbliss' guide for installing Gentoo on ZFS [1] and
>am
>trying to understand why /dev/zol/rpool/swap does not show up on reboot
>even though I saw it initially when creating the zvol and can still see
>it
>with zfs list:
>
>xm2 ~ # zfs list
>NAMEUSED  AVAIL  REFER  MOUNTPOINT
>rpool  29.1G   176G96K  none
>rpool/HOME 4.98G   176G  4.98G  /home
>rpool/ROOT 7.10G   176G96K  none
>rpool/ROOT/gentoo  7.10G   176G  7.10G  /
>rpool/swap 17.0G   193G   354M  -
>xm2 ~ # ls /dev/zvol
>ls: cannot access '/dev/zvol': No such file or directory
>xm2 ~ #
>
>I'm actually surprised my system boots at all, because /etc/fstab looks
>for
>that partition to be the swap:
>
>xm2 ~ # grep ^/dev /etc/fstab
>/dev/zvol/rpool/swapnoneswapsw,discard0 0
>xm2 ~ #
>
>My best guesses at the problem are either that it's udev related or
>that
>the various ZFS services need to be better configured to expose the
>zvol.
>I read the "Admin Documentation" links on the zfsonlinux.org website
>looking for mentions on "zvol" and the only relevant section seems to
>be
>the `zpool import` should apply `zfs share -a` to zvols [2].  Maybe I
>need
>to run `zfs share`?  But that doesn't seem to help:
>
>xm2 ~ # zfs share rpool/swap
>cannot open 'rpool/swap': operation not applicable to datasets of this
>type
>xm2 ~ # zfs share -a
>xm2 ~ # ls /dev/zvol
>ls: cannot access '/dev/zvol': No such file or directory
>xm2 ~ #
>
>I haven't posted on this list in many years, so go easy on me :)
>
>Pariksheet
>
>[1]
>https://wiki.gentoo.org/wiki/User:Fearedbliss/Installing_Gentoo_Linux_On_ZFS#Create_your_swap_zvol
>[2] http://open-zfs.org/wiki/System_Administration#Boot_process

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] Shorewall config problem

2018-11-12 Thread J. Roeleveld
On Monday, November 12, 2018 11:11:52 AM CET Peter Humphrey wrote:
> Morning all,
> 
> When emerging shorewall-5.2.1.1 I get an error from the kernel settings
> check:
> 
> CONFIG_NF_CONNTRACK_IPV4:   is not set when it should be.
> 
> This is with gentoo-sources-4.19.1. And indeed there is no such kernel
> parameter:
> 
> $ grep CONFIG_NF_CONNTRACK /usr/src/linux/.config
> CONFIG_NF_CONNTRACK=m <<< Note
> # CONFIG_NF_CONNTRACK_MARK is not set
> CONFIG_NF_CONNTRACK_SECMARK=y
> # CONFIG_NF_CONNTRACK_ZONES is not set
> CONFIG_NF_CONNTRACK_PROCFS=y
> # CONFIG_NF_CONNTRACK_EVENTS is not set
> # CONFIG_NF_CONNTRACK_TIMEOUT is not set
> # CONFIG_NF_CONNTRACK_TIMESTAMP is not set
> # CONFIG_NF_CONNTRACK_LABELS is not set
> # CONFIG_NF_CONNTRACK_AMANDA is not set
> CONFIG_NF_CONNTRACK_FTP=m
> # CONFIG_NF_CONNTRACK_H323 is not set
> CONFIG_NF_CONNTRACK_IRC=m
> # CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
> # CONFIG_NF_CONNTRACK_SNMP is not set
> # CONFIG_NF_CONNTRACK_PPTP is not set
> # CONFIG_NF_CONNTRACK_SANE is not set
> CONFIG_NF_CONNTRACK_SIP=m
> # CONFIG_NF_CONNTRACK_TFTP is not set
> 
> On another box with gentoo sources 4.14.78 I get this:
> 
> $ grep CONFIG_NF_CONNTRACK_IP /usr/src/linux/.config
> CONFIG_NF_CONNTRACK_IPV4=y
> CONFIG_NF_CONNTRACK_IPV6=y
> 
> So far I've been ignoring the error, assuming that the entry I've noted
> above now combines IPV4 and IPV6.
> 
> Does the panel think this is worth a bug report against shorewall?

Does it show up when you search for that config-item from within "make 
menuconfig"?
Not all config-items end up in the config-file, especially if pre-requisites 
are 
disabled themselves.

--
Joost






Re: [gentoo-user] Scanners, sane and driver support question

2018-11-12 Thread J. Roeleveld
On Monday, November 12, 2018 7:24:11 AM CET Dale wrote:
> J. Roeleveld wrote:
> > On Sunday, November 11, 2018 11:07:23 PM CET Dale wrote:
> >> So, I wanted a stand alone scanner that I hope will last me a long
> >> time.  Plus, this scanner can do negatives and such with a adapter which
> >> I can get later.
> > 
> > I tried that once, the quality of the results was really bad. I ended up
> > borrowing a proper negative-scanner from a colleague. That was a
> > windows-only one, but the quality of the scans more than made up for
> > having to use that. (And using VirtualBox, I got better performance, eg.
> > scanspeed, than when using windows native)
> 
> I have to admit, I have very little negatives.  The ones I have may be
> so old they are not worth anything.  I tend to take better care of pics
> than negatives for some reason.  Still, as long as the scanner will give
> me several years of service, I'll be happy.  I just don't want a
> scanner/printer pile with only parts of each one working.  I don't have
> enough room as it is.  lol

Same here, which is why I was glad a colleague had one I could borrow.
Ran through the whole collection in 4 weeks (evenings) and no need to do it 
again.

> >> Also, I plan to get a color laser printer later on.
> >> From what I've read, they can last for many years and it's cheaper for
> >> the toner than all those cartridges etc for ink jets.
> > 
> > I got a colour laser all-in-one, it's nearly 8 years old and not had any
> > problems with it. Would like to replace it for a double-sided (print and
> > scan) version though.
> 
> Just curious, are there any good or bad brands to avoid?  I've tried to
> stick with HP for scanners/printers since they are usually supported,
> but not always. 

I never had driver issues with HP, so tend to stick with them.

> >> Now if someone local wanted to give me something that is like a fancy
> >> copy machine that prints, scans and maybe even washes dishes, I'd take
> >> it.  I'm not sure where I would put it but still.  ;-)
> > 
> > Try old office buildings, they do remove them as cost-saving exercises on
> > occasion, you might be able to pick one up? (you do have a big
> > car/van/truck to move it?)
> 
> I have a friend that has one.  I have one but need to get it running
> again.  Starter, radiator and a couple other issues to deal with. 
> Starter is the first hurdle tho. 

Had to think this through a few times. As we're talking about printer/
scanners, I was wondering what kind of beast has a starter and radiator...

> >> One thing I've figured out.  Cheaper on the front end, pay for it on the
> >> backend.  Pay a little more on the front end, more dependable and
> >> cheaper later on consumables.  Hey, at least I'm figuring it out.  lol
> > 
> > It's a hard lesson to learn, but once learned, it sticks. :)
> > 
> > --
> > Joost
> > 
> > PS. glad your mom is doing fine
> 
> Yep.  I've also learned that the more heads, usually the better plan. 
> That's why I have that other thread about storing all my videos.  Geez,
> I got a TON of videos.  If I started watching them 24/7, it would take
> me about 2 years to get through them all.  I'm adding to them quite often. 

You're going off-list for 2 years?

--
Joost





Re: [gentoo-user] Scanners, sane and driver support question

2018-11-11 Thread J. Roeleveld
On Sunday, November 11, 2018 11:07:23 PM CET Dale wrote:
> Wol's lists wrote:
> > On 11/11/2018 14:29, Dale wrote:
> >> Thanks for the info.  I figured someone may have a little better idea on
> >> this.  After some more digging, I found a ScanJet 4570C which is
> >> actually a little better than the others I was looking at.  So, I bought
> >> it.  It shows complete but appears to be still maintained.
> > 
> > I've got an HP MFP 477 (not cheap - nigh on £400), but it has what I
> > call "push scanning". Configure samba, point the printer at it, and
> > when you hit "scan" it dumps a pdf, or jpeg, or whatever, in the samba
> > folder you told it to.
> > 
> > Cheers,
> > Wol
> 
> I thought about a all-in-one approach, since I need a printer too. 
> Thing is, printers seems to break a lot.  The cheapos may last a few
> years, from past experience, but die shortly after the warranty does. 

I have the same experience, when using ink-based printers. My current 
Laserprinter doesn't seem to want to die.

> So, I wanted a stand alone scanner that I hope will last me a long
> time.  Plus, this scanner can do negatives and such with a adapter which
> I can get later.

I tried that once, the quality of the results was really bad. I ended up 
borrowing a proper negative-scanner from a colleague. That was a windows-only 
one, but the quality of the scans more than made up for having to use that. 
(And using VirtualBox, I got better performance, eg. scanspeed, than when 
using windows native)

> Also, I plan to get a color laser printer later on. 
> From what I've read, they can last for many years and it's cheaper for
> the toner than all those cartridges etc for ink jets. 

I got a colour laser all-in-one, it's nearly 8 years old and not had any 
problems with it. Would like to replace it for a double-sided (print and scan) 
version though.

> Now if someone local wanted to give me something that is like a fancy
> copy machine that prints, scans and maybe even washes dishes, I'd take
> it.  I'm not sure where I would put it but still.  ;-)

Try old office buildings, they do remove them as cost-saving exercises on 
occasion, you might be able to pick one up? (you do have a big car/van/truck 
to move it?)

> One thing I've figured out.  Cheaper on the front end, pay for it on the
> backend.  Pay a little more on the front end, more dependable and
> cheaper later on consumables.  Hey, at least I'm figuring it out.  lol

It's a hard lesson to learn, but once learned, it sticks. :)

--
Joost

PS. glad your mom is doing fine





Re: [gentoo-user] Python forced upgrade

2018-11-11 Thread J. Roeleveld
On Sunday, November 4, 2018 6:31:53 PM CET Daniel Frey wrote:
> Hi all,
> 
> I had an older machine "appliance" (mythtv-frontend) that hadn't had an
> update in a while (migrated to 29.1 yesterday/today.)
> 
> I searched around on the mailing list as portage advised updating itself
> but it got itself in a circular dependency with python and wanted to
> install an unstable version of portage as a result, which I didn't want.
> 
> After wasting 30 minutes waiting for portage to calculate dependencies
> (using --backtrack=1000) I got po'ed and forced python to install using
> --nodeps. This worked, I was able to install portage and continue
> updating my system from there.
> 
> The problem is there's no more python-updater to make sure that python
> is in a sane state. Any suggestions for making sure python is actually
> in a sane state?
> 
> Dan

I usually do a full rebuild of everything (using --empty) in a chroot and then 
update using binary packages on the main system if I haven't done an update in 
a long time.

If it's just python you want to be sure of, you can check the "Version 
upgrade" steps listed on:
https://wiki.gentoo.org/wiki/Python

--
Joost





Re: [gentoo-user] Scanners, sane and driver support question

2018-11-11 Thread J. Roeleveld
On Sunday, November 11, 2018 1:35:29 AM CET Dale wrote:
> Howdy,
> 
> I'm on the hunt for a scanner, flatbed type, and have been browsing Ebay
> and the sane project list of supported devices.  I'm leaning toward HP
> on this.  While looking at say a ScanJet 6200C, it says the drivers are
> no longer maintained but complete.  It leads me to this question.  Does
> that mean they are complete and fixes will no longer be made even if
> something breaks them and they need a little tweaking OR they are
> complete and if a bug pops up, they will be fixed as needed but all
> functions work?  I can see the logic either way on this.  I'm leaning
> toward the side that if something pops up that requires a little
> tweaking, it will be done by someone.  The drivers are just feature
> complete. 
> 
> Does anyone else have the same thinking or is buying one of these
> scanners a bad idea if the drivers were to break and the scanner was
> rendered no longer usable? 

In short:

"No longer maintained" = "If something breaks, you can try to fix it yourself"
"Complete" =(usually)= "All functionality works at time of testing"

In general, if the drivers are Open Source, someone somewhere might still be 
maintaining this if anything does break. If there is a binary blob required to 
make it work, it depends on how this part actually works.
If it can be treated like an appliance (eg. with input X will always do Y and 
output Z), then you can ignore the fact it is a black box.

--
Joost





Re: [gentoo-user] Hard drive storage questions

2018-11-09 Thread J. Roeleveld
On Friday, November 9, 2018 3:29:52 AM CET Rich Freeman wrote:
> 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.

I'm actually in the middle, but have a single large NAS.

> 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.

I also recommend LSI HBA cards, they work really well and are really well 
supported by Linux.

> 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.

Even with Raid-firmware, they can be configured for JBOD.

> 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).

I tested this once, ended up getting sdaa, sdab,...

> Software-wise you just keep doing what you're
> already doing (though you should be seriously considering
> mdadm/zfs/btrfs/whatever at that point).

I would suggest ZFS or BTRFS over mdadm. Gives you more flexibility and is a 
logical follow-up to LVM.

> 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.

IMHO, ZFS is nice for large storage devices, not so much for regular desktops. 
This is why I am hoping BTRFS will solve the resilver issues. (not kept up, is 
this still not working?)

--
Joost





Re: [gentoo-user] SR-IOV on a LSI Broadcom HBA/RAID SAS2008/SAS3008 card

2018-10-17 Thread J. Roeleveld
The SAS2008 is quite old. Are you sure it actually supports this?
I pass the entire HBA to a single VM to act as SAN. Hardly any VM uses a full 
disk.

--
Joost

On October 17, 2018 5:04:32 AM UTC, "taii...@gmx.com"  wrote:
>LSI/Broadcom lists it in their marketing literature, the idea that you
>can assign drives to a VF and then that VF to a VM however it turns out
>they do not publish the code that makes it work.
>
>I was able to find some for MPT3 SAS3008 on an old repo but I can't
>find
>any for MPT2 for SAS2008 and I was wondering if anyone has it or knows
>more information about this very useful system.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] external storage

2018-10-03 Thread J. Roeleveld
On Wednesday, October 3, 2018 8:24:52 AM CEST John Covici wrote:
> On Wed, 03 Oct 2018 01:13:34 -0400,
> 
> J. Roeleveld wrote:
> > On Wednesday, October 3, 2018 6:30:12 AM CEST Davyd McColl wrote:
> > > Most newer external storage devices come formatted with ntfs these days,
> > > so
> > > if you just want to plug-and-play, I suggest installing ntfs-3g. File
> > > managers like dolphin and desktop environments like KDE will notice the
> > > device and allow you to mount and use them.
> > > 
> > > Be aware, though, that ntfs-3g, whilst being an excellent bit of
> > > software
> > > (imo), is not the fastest way to access those disks. If you have no need
> > > to
> > > move the disk to another computer or if you only plan on moving between
> > > Linux computers, I suggest formatting with a native filesystem like
> > > ext4.
> > > Personally, I use ntfs-3g for my 4 large external disks so that I can
> > > access them when I infrequently dual-boot to windows of on the
> > > off-chance
> > > that I would like to lend the drive to someone. I accept the performance
> > > penalty.
> > > 
> > > -d
> > > 
> > > On October 3, 2018 05:45:58 the...@sys-concept.com wrote:
> > > > Are all external storage, media/disk work with Linux?
> > > > Any recommendations, or which one to stay away from.
> > > > 
> > > > Some of them are encrypted, so I suppose they will not work with Linux
> > > > out of the box.
> > > > 
> > > > --
> > > > Thelma
> > 
> > I would assume other desktop environments will also seamlessly work with
> > ntfs-3g as that is handled by udisks.
> > 
> > Personally, I have not noticed lesser performance with ntfs-3g with both
> > reading and writing.
> > 
> > I also have not had any issues with encrypted disks.
> 
> I have had problems that once a disk is mounted with ntfs3g, and then
> trying to use it on a Windows system, I had to do a chkdsk /f before
> it would work properly.  This was a while ago, so maybe things are
> fixed by now, but I thought it was worth bringing it to your
> attention.

I only encounter this when people decide to unplug the disk without ejecting 
it. The eject forces a clearance of the write-cache.
This is why I always get annoyed with people who simply pull out the disk/
stick right after the copy is "finished".

--
Joost






Re: [gentoo-user] external storage

2018-10-02 Thread J. Roeleveld
On Wednesday, October 3, 2018 6:30:12 AM CEST Davyd McColl wrote:
> Most newer external storage devices come formatted with ntfs these days, so
> if you just want to plug-and-play, I suggest installing ntfs-3g. File
> managers like dolphin and desktop environments like KDE will notice the
> device and allow you to mount and use them.
> 
> Be aware, though, that ntfs-3g, whilst being an excellent bit of software
> (imo), is not the fastest way to access those disks. If you have no need to
> move the disk to another computer or if you only plan on moving between
> Linux computers, I suggest formatting with a native filesystem like ext4.
> Personally, I use ntfs-3g for my 4 large external disks so that I can
> access them when I infrequently dual-boot to windows of on the off-chance
> that I would like to lend the drive to someone. I accept the performance
> penalty.
> 
> -d
> 
> On October 3, 2018 05:45:58 the...@sys-concept.com wrote:
> > Are all external storage, media/disk work with Linux?
> > Any recommendations, or which one to stay away from.
> > 
> > Some of them are encrypted, so I suppose they will not work with Linux
> > out of the box.
> > 
> > --
> > Thelma

I would assume other desktop environments will also seamlessly work with 
ntfs-3g as that is handled by udisks.

Personally, I have not noticed lesser performance with ntfs-3g with both 
reading and writing.

I also have not had any issues with encrypted disks.

--
Joost






Re: [gentoo-user] Trouble on the horizon!

2018-09-25 Thread J. Roeleveld
On Tuesday, September 25, 2018 8:23:53 AM CEST gevisz wrote:
> вт, 25 сент. 2018 г. в 9:15, J. Roeleveld :
> > On September 25, 2018 4:36:27 AM UTC, gevisz  wrote:
> > >пн, 24 сент. 2018 г. в 21:24, J. Roeleveld :
> > >> On Monday, September 24, 2018 2:42:49 PM CEST Philip Webb wrote:
> > >> > I did note in a msg to this list earlier this year (2018)
> > >> > that there had been no kernel stabilised by Gentoo since spring
> > >
> > >2017,
> > >
> > >> > which suggested there had been some decline in kernel quality.
> > >> 
> > >> Gentoo-sources-4.14.65 is stable in the tree. Which is quite recent.
> > >
> > >After I configured gentoo-sources-4.14.52 kernel with make oldconfig,
> > >it even could not shut down the computer. So, I came to the same
> > >decision about kernel quality and masked everything later than
> > >gentoo-sources-4.9.95. (My 5 cents. :)
> > 
> > That is interesting.
> > I did not have that issue with .52 nor with .65.
> > 
> > Where does the shutdown hang?
> 
> Thank you for replying to my comment. Unfortunately, I already do not
> remember exactly what happend after the usual "shutdown -h now"
> command but as far as I can remember, it did not switched off the power
> at the end of the shutdown process.

I did have this with older kernels. Think it's caused by missing ACPI options.

--
Joost






Re: [gentoo-user] Trouble on the horizon!

2018-09-24 Thread J. Roeleveld
On September 25, 2018 4:36:27 AM UTC, gevisz  wrote:
>пн, 24 сент. 2018 г. в 21:24, J. Roeleveld :
>> On Monday, September 24, 2018 2:42:49 PM CEST Philip Webb wrote:
>> > I did note in a msg to this list earlier this year (2018)
>> > that there had been no kernel stabilised by Gentoo since spring
>2017,
>> > which suggested there had been some decline in kernel quality.
>>
>> Gentoo-sources-4.14.65 is stable in the tree. Which is quite recent.
>
>After I configured gentoo-sources-4.14.52 kernel with make oldconfig,
>it even could not shut down the computer. So, I came to the same
>decision about kernel quality and masked everything later than
>gentoo-sources-4.9.95. (My 5 cents. :)

That is interesting.
I did not have that issue with .52 nor with .65.

Where does the shutdown hang?

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Trouble on the horizon!

2018-09-24 Thread J. Roeleveld
On Monday, September 24, 2018 2:59:02 PM CEST Rich Freeman wrote:
> On Mon, Sep 24, 2018 at 8:42 AM Philip Webb  wrote:

> > He's  48 yo  & beginning to age a bit & it's no threat to anyone
> > if he's decided to take a break for a few kernel cycles.
> 
> ++  Nobody owns Linus.

Except maybe his wife ;)

> By now the kernel should be at a point where
> others can manage the workflow if he isn't around.

I would assume so.






Re: [gentoo-user] Trouble on the horizon!

2018-09-24 Thread J. Roeleveld
On Monday, September 24, 2018 2:42:49 PM CEST Philip Webb wrote:
> 180924 Alan Grimes wrote:
> > Whatever SJWs touch, DIES.
> > https://www.youtube.com/watch?v=v5VvJiNUCIA
> > https://itsfoss.com/linux-code-of-conduct/
> > https://lulz.com/linux-devs-threaten-killswitch-coc-controversy-1252/
> 
> I read the texts via LWN.  Linus has been the sergeant-major
> who has to yell at the troops sometimes, when they get sloppy.
> He's a brilliant software engineer & generally knows how to herd cats.
> 
> The problem seems to have arisen when he arranged a family holiday
> which clashed with an important Linux conference
> & irritated a lot of important people in the corporate Linux world.
> He's  48 yo  & beginning to age a bit & it's no threat to anyone
> if he's decided to take a break for a few kernel cycles.
> I did note in a msg to this list earlier this year (2018)
> that there had been no kernel stabilised by Gentoo since spring 2017,
> which suggested there had been some decline in kernel quality.

Gentoo-sources-4.14.65 is stable in the tree. Which is quite recent.

Which are you referring to?

--
Joost





Re: [gentoo-user] When did "emerge --search" start returning packages that don't match?

2018-09-18 Thread J. Roeleveld
On Monday, September 17, 2018 10:10:01 PM CEST Grant Edwards wrote:
> I recently noticed that "emerge --search" stopped working correctly.
> It now returns all sorts of packages that don't match the search
> sting:
> 
> $ emerge --search wxpython | grep '^[^\t ]'
> 
> [ Results for search key : wxpython ]
> Searching...
> *  dev-lang/python
> *  dev-python/bpython
> *  dev-python/ipython
> *  dev-python/pythong [ Masked ]
> *  dev-python/twython
> *  dev-python/vpython [ Masked ]
> *  dev-python/wxpython
> [ Applications found : 7 ]
> 
> Why is it returning packges that don't match what I'm searching for?
> 
> Shouldn't only the last of the ones shown above be returned?

I just tested this on my system as well and am seeing the same (apart from the 
masked ones).
I agree that I would expect only "dev-python/wxpython" to be shown.
"eix wxpython" does work as expected.

--
Joost





Re: [gentoo-user] logging my activity for audits

2018-09-14 Thread J. Roeleveld
On September 14, 2018 6:25:50 AM UTC, "Stefan G. Weichinger"  
wrote:
>
>phew, that much feedback, thanks to all!
>
>got to work through this and test things

Do keep us updated on what works and what doesn't. Will be usefull for when I 
allow others access to the servers here.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



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

2018-09-14 Thread J. Roeleveld
On September 14, 2018 6:34:20 AM UTC, "Stefan G. Weichinger"  
wrote:
>Am 12.09.18 um 15:07 schrieb J. Roeleveld:
>
>> Bit sooner:
>>
>https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/
>> dm_multipath/mpio_overview
>> 
>>
>https://www.thegeekdiary.com/beginners-guide-to-device-mapper-dm-multipathing/
>> 
>> 
>> I use multipath from a SAS-controller to a dual-backplane and
>SAS-disks.
>>  From the controller, I have 2 paths to each disk, which means I have
>twice the
>> amount of "sd?" entries.
>> 
>> ==
>> # multipath -l
>> 35000cca25d8ec910 dm-4 HGST,HUS726040ALS210
>> size=3.6T features='1 retain_attached_hw_handler' hwhandler='0' wp=rw
>> |-+- policy='service-time 0' prio=0 status=active
>> | `- 0:0:7:0  sdh 8:112  active undef running
>> `-+- policy='service-time 0' prio=0 status=enabled
>>`- 0:0:20:0 sdt 65:48  active undef running
>> ==
>> (This is only the first device)
>> 
>> It shows that device "35000cca25d8ec910" is mapped to "sdh" and
>"sdt".
>> To use the disk correctly, I need to access
>"/dev/mapper/35000cca25d8ec910",
>> which is:
>> # ls -lsa /dev/mapper/35000cca25d8ec910
>> 0 lrwxrwxrwx 1 root root 7 Sep  4 11:43 /dev/mapper/35000cca25d8ec910
>-> ../
>> dm-4
>> 
>> I have "multipathd" in the "boot" runlevel.
>> 
>> Version info:
>> # eix -I multipath
>> [I] sys-fs/multipath-tools
>>   Available versions:  0.5.0-r1 0.6.4-r1{tbz2} ~0.7.6^t ~0.7.7^t
>{rbd
>> systemd KERNEL="linux"}
>>   Installed versions:  0.6.4-r1{tbz2}(10:51:01 AM
>01/23/2018)(-rbd -
>> systemd)
>>   Homepage:http://christophe.varoqui.free.fr/
>>   Description: Device mapper target autoconfig
>> 
>> # uname -a
>> Linux san1 4.9.76-gentoo-r1-generic #1 SMP Tue Jan 23 12:05:11 CET
>2018 x86_64
>> Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz GenuineIntel GNU/Linux
>> 
>> As for the terms, a LUN is a Logical disk provided by a SAN to a
>different
>> system. I have multipath inside my SAN and have a single path to
>iSCSI
>> clients. (Single switch with bonded NICs)
>
>thanks for the links etc
>
>To me it seems that the former administrator somehow tried to set that 
>up but failed.
>
>This corresponds to something he wrote when leaving the company.
>
>There is no multipathd-daemon enabled or running.
>
># multipath
>Sep 14 08:31:10 | MSA2040_SAMBA_storage: ignoring map
>Sep 14 08:31:10 | MSA2040_SAMBA_storage: ignoring map
>
># multipath -l
>#
>
># ls /dev/mapper/
>control
>
>
>so nothing gets mapped here ;-)
>
>-
>
># /etc/multipath.conf
>
>defaults {
>#  udev_dir/dev
>   polling_interval15
>#  selector"round-robin 0"
>   path_grouping_policygroup_by_prio
>   failback5
>   path_checkertur
>#  prio_callout"/sbin/mpath_prio_tpc /dev/%n"
>   rr_min_io   100
>   rr_weight   uniform
>   no_path_retry   queue
>   user_friendly_names yes
>}
>blacklist {
>   devnode cciss
>   devnode fd
>   devnode hd
>   devnode md
>   devnode sr
>   devnode scd
>   devnode st
>   devnode ram
>   devnode raw
>   devnode loop
>   devnode sda
>   devnode sdb
>}
>
>multipaths {
>   multipath {
> wwid  3600c0ff0001e91b2c1bae2560100
>## To find your wwid, please use /usr/bin/sg_vpd --page=di /dev/DEVICE.
> ## The address will be a 0x6. Remove the 0x and replace it with 3.
> alias MSA2040_SAMBA_storage
>   }
>}
>
>
>--- I will check docs etc asap
>That is a productive server a few 100 kms away from me, so I have to be
>
>careful.
>
>Users can work, so no hurry here, just interest.

You really want to be at the server or at least have some kind of access to the 
keyboard and screen to coordinate booting to a different environment before 
enabling multipath.

You need to change all the devices from whatever they are now to the multipath 
versions, which is best done when booted into a live-environment instead of the 
actual production one.

The idea is:
Disk(/dev/sd?) - (multipathd) - virtual (/dev/mapper/???) - (filesystem)

If the current system is pointing at /dev/sd?, you are bypassing multipathing.

Also, important and should be obvious, the kernel must have multipath support 
enabled in de device-mapper section.

I was able to get it all working before doing the rest of the system.
On my system, I didn't have to change the default configuration of multipath as 
it autodetects which sd?'s are pointing to the same disc due to serial numbers 
and ZFS is happy to sit on top of that.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-13 Thread J. Roeleveld
On September 13, 2018 1:55:02 PM UTC, Wol's lists  
wrote:
>On 13/09/2018 12:57, Heiko Baums wrote:
>>> Wifi isn't the most reliable option.
>
>> I didn't have a problem yet with printing or scanning over Wifi.
>
>You're lucky !!!
>
>Okay, my main problem is the broadband connection that takes out the 
>router, but my house is NOT wi-fi friendly, and that's pretty typical.
>
>I will now ALWAYS pick wired over wi-fi if possible. If (as I hope to
>do 
>in the not-too-distant future) I get the chance to design or do up a 
>house, I would make sure I had hidden wiring in pretty much every room!
>
>Cheers,
>Wol

Wifi is a shared medium. Which means that if you have other people living 
nearby, your wifi connection will suffer.

I managed to pull network cabling through the pipes containing phone and coax 
cables. This allowed me to wire up the study, living room and server room.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-13 Thread J. Roeleveld
On September 13, 2018 11:57:24 AM UTC, Heiko Baums  
wrote:
>Am Thu, 13 Sep 2018 03:13:45 +
>schrieb "J. Roeleveld" :
>
>> Or simply via a network cable.
>
>Most printers don't have an ethernet port anymore these days.

I select them on having a wired network port.

>> Wifi isn't the most reliable option.
>
>I didn't have a problem yet with printing or scanning over Wifi.

Wifi is slower than wired.
I prefer not to have to wait because of the network.

--
Joost


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-12 Thread J. Roeleveld
On September 12, 2018 6:24:44 PM UTC, Heiko Baums  wrote:
>Am Wed, 12 Sep 2018 14:50:36 +0200
>schrieb Helmut Jarausch :
>
>> On one machine - called SERVER - I have a USB printer which works
>> just fine with CUPS.
>
>Just one maybe stupid question. Does this printer have Wifi support?
>
>Then it would be a lot easier. If you would disconnect this printer
>from the one PC and connect it to your network over Wifi then you
>probably would only need to configure your firewall.
>
>The printer would then be found automatically by CUPS.
>
>Heiko

Or simply via a network cable.
Wifi isn't the most reliable option.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] logging my activity for audits

2018-09-12 Thread J. Roeleveld
On September 12, 2018 5:05:21 PM UTC, Grant Taylor 
 wrote:
>On 09/12/2018 09:59 AM, J. Roeleveld wrote:
>> This piqued my interest and decided to google a little bit.  Found
>the 
>> following, which might help:
>> 
>>
>https://askubuntu.com/questions/93566/how-to-log-all-bash-commands-by-all-users-on-a-server
>
>I would not want to rely on the PROMPT_COMMAND environment variable.
>
>1)  It's a user setting, which means users should be able to change it.
>2)  Protecting it (setting it read only) will likely annoy users.  (I 
>know many that have used the PROMPT_COMMAND for their own uses.)
>3)  It's still possible to start another shell that does not have the 
>PROMPT_COMMAND set to what you want.

Mentioned this as well. :)
It works if the user wants this to work. From what I understand, the customer 
of OP wants the record. Which means I would expect OP not to try to get out of 
it.

>> Same method is described in:
>> 
>>
>https://serverfault.com/questions/323270/how-can-i-make-bash-to-log-shell-commands-to-syslog
>
>Same issues as above.
>
>> This will help if all you do is working within bash. If you switch to
>
>> a different shell or run scripts, the logging obviously fails.
>
>Yep.  This is one of the primary problems with relying on anything that
>
>is traditionally user controllable.
>
>> Another method might be: https://www.linuxjournal.com/article/6144
>
>I've never messed with process accounting.  Does it actually record the
>
>details that the OP wants?
>
>I thought (naively assumed?) that process accounting was more for 
>tracking computer resource consumption, primarily for billing and / or 
>rate limiting.

From what I read, it records user, processname and other statistics. I would 
assume this would cover more than what OP requested. It also would record 
script contents.
But not sure if it would also record full commandlines and I/O actions.


>> This is an older document, but might still be made to work as it uses
>
>> "process accounting" which is still in the kernel afaik.
>
>I've seen hints of process accounting in relatively modern kernels.


Same here


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] logging my activity for audits

2018-09-12 Thread J. Roeleveld
On Tuesday, September 11, 2018 12:52:03 PM CEST Stefan G. Weichinger wrote:
> At a customer we were asked to log/protocol all my administrative
> activity for potential audits etc
> 
> My admin-work is basically 98% ssh and maybe some additional tasks done
> via virt-manager (logging the work inside the VMs there is another topic
> ... I realize that right now).
> 
> Is there a recommended way to track the logs? Specific setup for
> syslog-ng or in my case journald?
> 
> Maybe I should setup remote syslog here?

All,

This piqued my interest and decided to google a little bit.
Found the following, which might help:

https://askubuntu.com/questions/93566/how-to-log-all-bash-commands-by-all-users-on-a-server

Same method is described in:

https://serverfault.com/questions/323270/how-can-i-make-bash-to-log-shell-commands-to-syslog

This will help if all you do is working within bash. If you switch to a 
different shell or run scripts, the logging obviously fails.

Another method might be:
https://www.linuxjournal.com/article/6144

This is an older document, but might still be made to work as it uses "process 
accounting" which is still in the kernel afaik.

--
Joost





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

2018-09-12 Thread J. Roeleveld
On Wednesday, September 12, 2018 2:14:05 PM CEST J. Roeleveld wrote:
> On September 12, 2018 7:43:12 AM UTC, "Stefan G. Weichinger" 
 wrote:
> >Am 12.09.18 um 08:42 schrieb J. Roeleveld:
> >> On Tuesday, September 11, 2018 11:48:59 AM CEST Stefan G. Weichinger
> >
> >wrote:
> >>> At first I emerged latest stable gentoo-sources, enabled these flags
> >
> >and
> >
> >>> compiled ... but the lpfc module didn't detect the SAN devices
> >>> correctly, so I switched back to 4.1.15 (mark this as another todo
> >
> >here
> >
> >>> ... sooner or later I want a more recent kernel working with lpfc
> >
> >... I
> >
> >>> have no clue about multipath so far)
> >> 
> >> I found multipath quite "simple" to implement when following the
> >
> >documentation
> >
> >> for this.
> >
> >*which* documentation, please?
> >
> >with the newer kernel I got:
> >
> >[  864.521464] lpfc :02:00.1: 1:1303 Link Up Event x7b received
> >Data: x7b x0 x20 x0 x0 x0 0
> >[  868.693743] lpfc :02:00.0: 0:1305 Link Down Event x7c received
> >Data: x7c x20 x80011 x0 x0
> >[  869.523664] lpfc :02:00.0: 0:1303 Link Up Event x7d received
> >Data: x7d x0 x20 x0 x0 x0 0
> >[  873.691535] lpfc :02:00.1: 1:1305 Link Down Event x7c received
> >Data: x7c x20 x80011 x0 x0
> >[  874.521185] lpfc :02:00.1: 1:1303 Link Up Event x7d received
> >Data: x7d x0 x20 x0 x0 x0 0
> >[  878.694259] lpfc :02:00.0: 0:1305 Link Down Event x7e received
> >Data: x7e x20 x80011 x0 x0
> >
> >
> >and no /dev/sdX created for the relevant LUN (is that the term?)
> >
> >I see a multipath.conf on the system, will try to understand that.
> 
> Multipath devices end up under /dev/mapper/...
> 
> I think it was Redhat who had most decent docs. Will check my bookmarks
> tonight and give you the full list.

Bit sooner:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/
dm_multipath/mpio_overview

https://www.thegeekdiary.com/beginners-guide-to-device-mapper-dm-multipathing/


I use multipath from a SAS-controller to a dual-backplane and SAS-disks.
>From the controller, I have 2 paths to each disk, which means I have twice the 
amount of "sd?" entries.

==
# multipath -l
35000cca25d8ec910 dm-4 HGST,HUS726040ALS210
size=3.6T features='1 retain_attached_hw_handler' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=0 status=active
| `- 0:0:7:0  sdh 8:112  active undef running
`-+- policy='service-time 0' prio=0 status=enabled
  `- 0:0:20:0 sdt 65:48  active undef running
==
(This is only the first device)

It shows that device "35000cca25d8ec910" is mapped to "sdh" and "sdt".
To use the disk correctly, I need to access "/dev/mapper/35000cca25d8ec910", 
which is:
# ls -lsa /dev/mapper/35000cca25d8ec910
0 lrwxrwxrwx 1 root root 7 Sep  4 11:43 /dev/mapper/35000cca25d8ec910 -> ../
dm-4

I have "multipathd" in the "boot" runlevel.

Version info:
# eix -I multipath
[I] sys-fs/multipath-tools
 Available versions:  0.5.0-r1 0.6.4-r1{tbz2} ~0.7.6^t ~0.7.7^t {rbd 
systemd KERNEL="linux"}
 Installed versions:  0.6.4-r1{tbz2}(10:51:01 AM 01/23/2018)(-rbd -
systemd)
 Homepage:http://christophe.varoqui.free.fr/
 Description: Device mapper target autoconfig

# uname -a
Linux san1 4.9.76-gentoo-r1-generic #1 SMP Tue Jan 23 12:05:11 CET 2018 x86_64 
Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz GenuineIntel GNU/Linux

As for the terms, a LUN is a Logical disk provided by a SAN to a different 
system. I have multipath inside my SAN and have a single path to iSCSI 
clients. (Single switch with bonded NICs)

--
Joost







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

2018-09-12 Thread J. Roeleveld
On September 12, 2018 7:43:12 AM UTC, "Stefan G. Weichinger"  
wrote:
>Am 12.09.18 um 08:42 schrieb J. Roeleveld:
>> On Tuesday, September 11, 2018 11:48:59 AM CEST Stefan G. Weichinger
>wrote:
>>> At first I emerged latest stable gentoo-sources, enabled these flags
>and
>>> compiled ... but the lpfc module didn't detect the SAN devices
>>> correctly, so I switched back to 4.1.15 (mark this as another todo
>here
>>> ... sooner or later I want a more recent kernel working with lpfc
>... I
>>> have no clue about multipath so far)
>> 
>> I found multipath quite "simple" to implement when following the
>documentation
>> for this.
>
>*which* documentation, please?
>
>with the newer kernel I got:
>
>[  864.521464] lpfc :02:00.1: 1:1303 Link Up Event x7b received
>Data: x7b x0 x20 x0 x0 x0 0
>[  868.693743] lpfc :02:00.0: 0:1305 Link Down Event x7c received
>Data: x7c x20 x80011 x0 x0
>[  869.523664] lpfc :02:00.0: 0:1303 Link Up Event x7d received
>Data: x7d x0 x20 x0 x0 x0 0
>[  873.691535] lpfc :02:00.1: 1:1305 Link Down Event x7c received
>Data: x7c x20 x80011 x0 x0
>[  874.521185] lpfc :02:00.1: 1:1303 Link Up Event x7d received
>Data: x7d x0 x20 x0 x0 x0 0
>[  878.694259] lpfc :02:00.0: 0:1305 Link Down Event x7e received
>Data: x7e x20 x80011 x0 x0
>
>
>and no /dev/sdX created for the relevant LUN (is that the term?)
>
>I see a multipath.conf on the system, will try to understand that.

Multipath devices end up under /dev/mapper/...

I think it was Redhat who had most decent docs. Will check my bookmarks tonight 
and give you the full list.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



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

2018-09-11 Thread J. Roeleveld
On Tuesday, September 11, 2018 11:48:59 AM CEST Stefan G. Weichinger wrote:
> At first I emerged latest stable gentoo-sources, enabled these flags and
> compiled ... but the lpfc module didn't detect the SAN devices
> correctly, so I switched back to 4.1.15 (mark this as another todo here
> ... sooner or later I want a more recent kernel working with lpfc ... I
> have no clue about multipath so far)

I found multipath quite "simple" to implement when following the documentation 
for this.

--
Joost





Re: [gentoo-user] logging my activity for audits

2018-09-11 Thread J. Roeleveld
On Tuesday, September 11, 2018 5:24:47 PM CEST Grant Taylor wrote:
> On 09/11/2018 06:51 AM, wiicontrol...@gmail.com wrote:
> > If by “all” activity, the customer means all activity, pam_tty_audit is
> > the only solution I have heard of that fits the bill:
> > 
> > https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/h
> > tml/security_guide/sec-configuring_pam_for_auditing
> I'm not familiar with pam_tty_audit, and I didn't see / find ssh in the
> linked page.  Does pam_tty_audit capture content from SSH sessions?
> What about ssh remote command execution?

SSH can (it does by default) use PAM for authentication. I would suspect it 
only logs access and not actions.

> I can conceptually see how it could if it hooks low enough into the tty
> layer.

Xen logs all output of the VM to a text file if it is started automatically. 
This is done by attaching it to a screen-session and having screen log it all 
to a text file.
If there is a reliable method to force SSH-sessions into something like this, 
you can log all input and output.

> > If by “all” activity, the customer means, “We want want a Serious
> > Business Stamp,” I recommend getting creative with your shell's
> > $HISTFILE, given that 98% of your activity occurs there.
> 
> I discourage this.
> 
> 1)  Depending on how it's done, it can break history across sessions.
> 2)  The $HISTFILE is inherently user writable.  Which means that the
> user can modify it.
> 3)  The $HISTFILE is a convenience.
> 4)  The $HISTFILE is NOT an audit log.
> 5)  Depending on how the shell is configured, commands can bypass the
> $HISTFILE.
> 6)  The $HISTFILE does nothing for people putting commands in a script
> and then running the script.  —  I had someone do exactly this at my
> last job.

7) When using multiple sessions to the same account, the last session being 
closed determines the content of $HISTFILE.

> I *HIGHLY* recommend running as much as you can through sudo.  Sudo
> events do end up in syslog on every system I've used.

Does sudo have a shell-mode?

--
Joost





Re: [gentoo-user] TRAMP is not working

2018-09-03 Thread J. Roeleveld
On Monday, September 3, 2018 2:51:11 PM CEST Melleus wrote:
> Hi all!
> 
> After emerging new Emacs (v.26) I got TRAMP broken. I do not use it
> often, so I hit the problem only today. Instead of opening file it
> complains with the following message (regardless of protocols and
> local/remote files):
> 
> "Couldn't find local shell prompt for zsh"
> 
> I might be possibly doing something wrong, but before the update there
> were no issues. Reading TRAMP manual brought to me no enlightenment on
> what's happening either.
> 
> Thanks ahead.

Is "zsh" installed and working?

--
Joost






Re: [gentoo-user] [OT] Is that possible or nonsense (3D-Printing via WiFi) ?

2018-09-02 Thread J. Roeleveld
On September 2, 2018 10:17:26 AM UTC, tu...@posteo.de wrote:
>On 09/02 11:05, Mick wrote:
>> On Sunday, 2 September 2018 07:35:07 BST tu...@posteo.de wrote:
>> > Hi,
>> > 
>> > my 3D-orinter is in another room and I want to check its progress
>> > more often than to go to the next room to check it... :)
>> > 
>> > My Rasperberry Pi Zero W is technically able to connect to the
>printer
>> > via USB and it is possible to connect via WiFi to the Rasperberry
>in
>> > the "next room" from "this room".
>> > 
>> > This way I am able to flash the firmware of the printer.
>> > 
>> > There is OctoPrint to do the kind of stuff I want...but
>> > it is (for me) to feature rich and I think my Rasperberry
>> > is a little bit weak CPU-wise.
>> > 
>> > Is it possible to "forward" the USB-port on my Rasperberry via Wifi
>> > so I can do all software related stuff on my PC ?
>> > 
>> > Cheers!
>> > Meino
>> 
>> You probably want to take a look at enabling:
>> 
>> CONFIG_USBIP_CORE
>> 
>> Then have a look at your:
>> 
>> /usr/src/linux/Documentation/usb/usbip_protocol.txt
>> 
>> -- 
>> Regards,
>> Mick
>
>Hi Mick,
>
>thanks a lot for your info ... looks promising! :)
>
>I will check that!
>
>Have a nice weekend!
>Cheers!
>Meino

If the printer requires a near constant stream of data over the USB port, you 
might want to look into a physical cable instead of wifi for the communication.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] OT: latest longterm kernel.org patches are unsigned

2018-08-20 Thread J. Roeleveld
On August 20, 2018 9:33:03 PM UTC, james  wrote:
>On 8/17/18 12:07 PM, Ian Zimmerman wrote:
>> If you browse this URL:
>> 
>> https://cdn.kernel.org/pub/linux/kernel/v4.x/
>> 
>> you'll see that for each 4.14 patch up to 4.14.58 there is a
>> cooresponding GPG signature file:
>> 
>> patch-4.14.58.sign 25-Jul-2018 09:28 833
>> patch-4.14.58.xz 25-Jul-2018 09:28 1M
>> 
>> etc.
>> 
>> But starting with 4.14.59, there are no .sign files.  Why?  Is this a
>> bug, and if so, where do I report it?
>> 
>> This breaks my lovingly duct-taped kernel update infrastructure ...
>> 
>
>Ian,
>
>Not sure this is related to your problem but it's an interesting read
>about (intel) microcodes and current blocks being enforced by Gentoo,
>clandestinely?
>
>
>https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906158
>
>https://bugs.gentoo.org/664134
>
>
>Apologies if I research is fragmented or flawed...
>
>hth,
>James

Interesting read.
Can't update the bug at the moment, but downloading the microcode file worked 
and I didn't see any license agreement.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] sanoid (was Backup questions)

2018-08-14 Thread J. Roeleveld
On Tuesday, August 14, 2018 10:52:30 PM CEST John Covici wrote:
> On Tue, 14 Aug 2018 16:06:21 -0400,
> 
> J. Roeleveld wrote:
> > On August 14, 2018 11:42:18 AM UTC, John Covici  
wrote:
> > >I use sanoid/syncoid to back up using zfs.  Its great, keeps snapshots
> > >for as long as I want them (I use 80 days for now).  And it keeps
> > >hourlies for the last couple of days as well, so I could roll back in
> > >case of a problem.  Very nice if you use zfs.
> > 
> > I tried sanoid, but it has a few problems which really become annoying
> > when you have a lot of datasets: 1) every dataset is handled seperately,
> > no use of recursive snapshots when datasets are inside the same tree 2)
> > it keeps seperate hourly, daily, snapshots, which means it will
> > happily create multiple snapshots with only a few seconds difference for
> > every dataset around midnight. 3) when rolling back several snapshots,
> > there are multiple errors reported because the cache (where does it store
> > that?) does not match reality.
> > 
> > Have these been resolved yet?
> > 
> > I ended up writing my own system for this, got some extra intelligence in
> > there to work around any possible error condition I have encountered.
> Well, I got around your second point by having a special job at 11:59
> pm to create the dailies and the one at midnight works well.  I only
> do the cron jobs hourly, not every minute like they wanted.
> 
> If your script is not special for you, I would like to see it, maybe I
> would use it instead.  Things seem to work for now, however with those
> modifications.

Current code is too specific for my situation. I think you would be quicker to 
write something yourself instead of modifying my code.

The steps are:
- Check if an snapshot needs to be done (incl. type: hourly, daily, weekly, 
monthly)
- If yes:
1) create a recursive snapshot on the entire pool
2) remove unnecessary snapshots (temp, swap, 
placeholders,not_for_current_type)
3) register snapshots into database
4) clean up old snapshots

Because I register actual snapshots and point snapshot-type entries to these, 
I can quickly determine which snapshots are really unecessary. This also 
drastically reduces the amount of snapshots on the system. (My SAN currently 
has 2611 ZFS snapshots).

I also found it is far quicker to create a recursive snapshot on the entire 
pool and then removing all the unecessarily created ones.

--
Joost





Re: [gentoo-user] sanoid (was Backup questions)

2018-08-14 Thread J. Roeleveld
On August 14, 2018 11:42:18 AM UTC, John Covici  wrote:

>I use sanoid/syncoid to back up using zfs.  Its great, keeps snapshots
>for as long as I want them (I use 80 days for now).  And it keeps
>hourlies for the last couple of days as well, so I could roll back in
>case of a problem.  Very nice if you use zfs.

I tried sanoid, but it has a few problems which really become annoying when you 
have a lot of datasets:
1) every dataset is handled seperately, no use of recursive snapshots when 
datasets are inside the same tree
2) it keeps seperate hourly, daily, snapshots, which means it will happily 
create multiple snapshots with only a few seconds difference for every dataset 
around midnight.
3) when rolling back several snapshots, there are multiple errors reported 
because the cache (where does it store that?) does not match reality.

Have these been resolved yet?

I ended up writing my own system for this, got some extra intelligence in there 
to work around any possible error condition I have encountered.

--
Joost


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] OT: Open source document management system

2018-07-31 Thread J. Roeleveld
On Wednesday, August 1, 2018 8:19:50 AM CEST Bill Kenworthy wrote:
> Hi all
> 
> I have been looking for an opensource document management system ...
> there are a few but none of the ones I have come across are in portage.
> 
> Are there any DMS's in portage at all?  Otherwise, can someone suggest
> ones worth trying as most seem suitable from their websites but its
> going to time and labor to start testing them outside portage?
> 
> BillK

I haven't found many good ones.
I used "OpenKM" for a while as it is closest to my requirements.

I currently switched over to storing most documents on my NAS and am storing 
project-related documents in the filemanager part of "eGroupware".

--
Joost







Re: [gentoo-user] Layout problem in latest KDE apps

2018-07-31 Thread J. Roeleveld
On Monday, July 30, 2018 12:18:22 PM CEST Peter Humphrey wrote:
> Hello list,
> 
> My daily update yesterday included 100 kde-apps/* . Now dolphin and
> konqueror-as-a-file-manager have their panels laid out with extremely wide
> spacing (example attached). Is this my fault or theirs?

I see this sometimes when:
1) I didn't fully logout/reboot after a major update
2) I connect to an X-session using "X2Go"

I haven't had this happen recently though, not entirely sure what solved it as 
I have been playing a lot with settings and "emerge -e" on the single machine 
I access via "X2go".

--
Joost





Re: [gentoo-user] NFS and user IDs

2018-06-09 Thread J. Roeleveld
On June 9, 2018 1:20:14 PM UTC, Tom H  wrote:
>On Sat, Jun 9, 2018 at 6:43 AM Ian Zimmerman 
>wrote:
>>
>> Is there _any_ way around the need to keep the user IDs matched on
>NFS
>> clients and servers?
>
>You have to use NIS, NIS+Kerberos, or LDAP+Kerberos.
>
>I've never tried it but "/etc/idmapd.conf" has a "[Static]" section in
>which you can set up a map but it'd be unpractical for more than a few
>users.

No need to add Kerberos to the mix.
I use LDAP along with nss_ldap. (Various howtos available online)

It works fine.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] NFS and user IDs

2018-06-09 Thread J. Roeleveld
On Saturday, June 9, 2018 6:42:56 AM CEST Ian Zimmerman wrote:
> Is there _any_ way around the need to keep the user IDs matched on NFS
> clients and servers?

Not to my knowledge.
I use OpenLDAP for my users and groups and this has worked perfectly ever 
since I implemented it.

> Or, is there any other remote filesystem (other than the one originally
> made by Microsoft) that avoids that chore?

I am only familiar with CIFS/SMB and NFS. Not sure if any other shared 
filesystems handle this. A minimum requirement would be that you need to login 
to the fileserver using a username and password.

> This is the main reason I have mostly stayed away from NFS all these
> years.  Recently sshfs has been a good enough substitute, but now it's
> proving not reliable enough for long term connections.

I found NFS to be stable for long term (months) connections. When working from 
mobile machines (Laptops), I use SMB/CIFS to access the same files.

--
Joost





Re: [gentoo-user] X11 recovery ... somehow

2018-05-22 Thread J. Roeleveld
On Sunday, May 6, 2018 2:45:51 PM CEST tu...@posteo.de wrote:
> Hi,
> 
> I am running X11 with Nvidia-drivers 396.18-r1.
> 
> From time to time I accidentally hit a key combo
> (ALT F*) and I am thrown to the LINUX console.
> 
> Back in the years when one setups X11 by hand
> carefully inserting timings for the Cathod Ray Tube
> it was possible to swicth back with CTRL-ALT-F12
> (or was it ALT-F12).
> 
> But this does not work for me.
> 
> 1) For debugging purposes I would like to
>get a fully working switch between the
>Linux console and X11 back and forth.
> 2) If that is not possible see below.
> 
> But!
> If I was accidentally thrown to the Linux console
> by my own eloborated usage of the keyboard (h)
> I am able to do the following:
> 
> Login as myself (console login) and do another
> startx.
> This will start a new X11 session.
> 
> Is it possible somehow to "take over" the original
> X11 session, which is still running in the background
> to cleanly ending the tasks running and waiting for
> my input?

When  I switch to the console (using ++F1), I usually find the X-
session by using + until I get to the X-session.

--
Joost






Re: [gentoo-user] openvpn rc script dependencies

2018-04-11 Thread J. Roeleveld
On Tuesday, April 10, 2018 1:25:42 PM CEST Simon Thelen wrote:
> On 18-04-10 at 10:55, Christoph Böhmwalder wrote:
> > I was wondering how the OpenRC dependencies between start scripts work.
> > 
> > Basically, I have two network interfaces on my laptop (wlp3s0 and
> > enp0s20u2u3 for wireless and ethernet respectively).  When I start the
> > wireless interface service (rc-service net.wlp3s0 start) the OpenVPN
> > service starts and vice versa.  That's great, but I didn't configure
> > that anywhere.
> 
> What does your /etc/runlevels/ look like? Is the openvpn service in one
> of the runlevels? Are either of your network interfaces in one of the
> runlevels?
> 
> > What's even worse is that when I'm not connected via WiFi (i.e.
> 
> > ethernet), the VPN service won't start because net.wlp3s0 isn't started:
> [..]
> 
> > Why would it do that, can I configure this anywhere?
> 
> Also check /etc/rc.conf and try setting rc_depend_strict="NO". I do wish
> there were a way to modify require/provides without having to edit the
> init scripts themselves.

There is. You have (at least) 2 other options:

1) In the "/etc/conf.d" files (as I tend to do):
# grep need /etc/conf.d/postgresql-9.5
rc_need="netmount"
(This means, postgresql-9.5 needs the 'netmount' service to have started first)

# grep need /etc/conf.d/netmount 
rc_need="net iscsid"
(This means, netmount needs 'net' and 'iscsid' started first)

2) /etc/rc.conf
See the following section in the default version:
===
# It's possible to define extra dependencies for services like so
#rc_config="/etc/foo"
#rc_need="openvpn"
#rc_use="net.eth0"
#rc_after="clock"
#rc_before="local"
#rc_provide="!net"
===

--
Joost





Re: [gentoo-user] Wrong instructions when installing Oracle JRE

2018-04-10 Thread J. Roeleveld
On April 10, 2018 8:23:46 PM UTC, Ian Zimmerman  wrote:
>When I do emerge dev-java/oracle-jre-bin, portage quoth:
>
>!!! dev-java/oracle-jre-bin-1.8.0.162-r1 has fetch restriction turned
>on.
>!!! This probably means that this ebuild's files must be downloaded
>!!! manually.  See the comments in the ebuild for more information.
>
> * Fetch failed for 'dev-java/oracle-jre-bin-1.8.0.162-r1', Log file:
>* 
>'/var/log/portage/dev-java:oracle-jre-bin-1.8.0.162-r1:20180410-201117.log'
> * Package:dev-java/oracle-jre-bin-1.8.0.162-r1
> * Repository: gentoo
> * Maintainer: j...@gentoo.org
>* USE:abi_x86_64 alsa amd64 elibc_glibc fontconfig kernel_linux
>userland_GNU
> * FEATURES:   fakeroot preserve-libs sandbox userpriv
> * Please download jre-8u162-linux-x64.tar.gz and move it to
> * /var/tmp/portage/dev-java/oracle-jre-bin-1.8.0.162-r1/distdir:
> * 
>*  
>http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
>
>But no matter how much I tried to please it (copying the file into a
>distdir/ subdirectory, or copying it _as a file_ called distdir) I
>couldn't get it to work.
>
>OTOH, just doing what first comes to mind (putting the file in
>/usr/portage/distfiles/) does work.
>
>what the foo?

Sounds like a bug.
All fetch restriction packages I encounter want it in your distfiles folder. 
(Wherever you configured it to be)

I haven't really read the text on these myself lately, so not sure if other 
packages have the same, but I didn't notice any path other than my distfiles 
dir.

Most common one I have is the citrix 'icaclient'.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] [TOT: Total offtopic]

2018-03-31 Thread J. Roeleveld
On March 31, 2018 10:40:13 AM UTC, tu...@posteo.de wrote:
>Hi,
>
>I am using a IBM model M with my Linux and I *LOVE IT* :)
>
>Unfortunately there seems to be a problem coming up:
>Pressing ENTER also triggers \ (key above ENTER) sometimes.
>Interestingly the ENTER is never missed. Either ENTER
>will be executed or ENTER\ ?
>
>Any idea what could be the reason for that?
>How can I try to fix that?
>
>Cheers
>Meino

My first guess would be some dirt in the keyboard. (Assuming the keys are 
physically next to each other)

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Re: [SOLVED] Re: pdftk - replacement

2018-03-15 Thread J. Roeleveld
On March 15, 2018 9:35:35 PM UTC, Grant Edwards  
wrote:
>On 2018-03-15, the...@sys-concept.com  wrote:
>
>> I've compiled the pdftk- (java based)
>> gcc-5.4.0-r4 is gone and pdftk is working as it should.
>>
>> Thank you everybody for the help.
>
>That's great news!
>
>Instead of removing pdftk from the portage tree because it depends on
>gcc-5.4 [gcj], is there any reason it can't be replace by the one
>which uses a jvm instead?

Someone needs to maintain it as well.

--
Joost 
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] [SOLVED] webkit-gtk-2.18.6 failed (compile phase)

2018-03-15 Thread J. Roeleveld
On March 15, 2018 8:57:53 PM UTC, the...@sys-concept.com wrote:
>On 03/15/2018 12:29 PM, Neil Bothwick wrote:
>> On Thu, 15 Mar 2018 11:40:13 -0400, Walter Dnes wrote:
>> 
 ninja: build stopped: subcommand failed.
  * ERROR: net-libs/webkit-gtk-2.18.6::gentoo failed (compile
>phase):
  *   ninja -v -j5 -l8 failed  
>>>
>>>   One option that sometimes cures mysterious failures is to do the
>build
>>> with...
>>> MAKEOPTS="-j1"
>>>Yes, the build takes longer, but it may actually build.  Remember
>to
>>> set the option back to normal value after experimenting.
>> 
>> You can set it on the command line for that build only
>> 
>> MAKEOPTS="-j1" emerge whatever
>> 
>> I too find that it can help builds that otherwise fail, even when it
>> doesn't, the make output gives a better idea of the failure point
>when
>> parallel builds are not cluttering it up.
>> 
>> If the build log is that big, either compress it or just post the
>last
>> 100 lines. The error message you posted doesn't really say much more
>than
>> "it broke".
>
>Thanks Walter and Neil,  Yes, that was the case not enough RAM,
>MAKEOPTS="-j1" fixed the problem.
>
>Though, it was slw.  On Intel Quad core CPU and 4MB of RAM it took
>over 7-hours to compile it.
>I guess I need more RAM.
>
>--
>Thelma

I would recommend more RAM. (And no, that isn't a joke because you said you 
have 4MB. 4GB is also quite low these days. I only have 2 systems left with 
16GB. One is my laptop. The other is the backup storage server. The rest all 
have more.

--
Joost 
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] webkit-gtk-2.18.6 failed (compile phase)

2018-03-15 Thread J. Roeleveld
On March 15, 2018 3:40:13 PM UTC, Walter Dnes  wrote:
>On Wed, Mar 14, 2018 at 10:29:49PM -0600, the...@sys-concept.com wrote
>> I've installed webkit-gtk-2.18.6 on two other boxes and it went just
>> fine but the third box is giving me an error.
>
>> ninja: build stopped: subcommand failed.
>>  * ERROR: net-libs/webkit-gtk-2.18.6::gentoo failed (compile phase):
>>  *   ninja -v -j5 -l8 failed
>
> One option that sometimes cures mysterious failures is to do the build
>with...
>MAKEOPTS="-j1"
>   Yes, the build takes longer, but it may actually build.  Remember to
>set the option back to normal value after experimenting.
>
>  A couple of unrelated items...
>
>1)
>> =
>>  System Settings
>> =
>> System uname:
>Linux-4.9.72-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.4.1
>
>> CFLAGS="-march=nocona -O2 -pipe"
>> CXXFLAGS="-march=nocona -O2 -pipe"
>
>  Your kernel indicates "Core2", but your C(XX)FLAGS show "nocona".
>https://gcc.gnu.org/onlinedocs/gcc-6.4.0/gcc/x86-Options.html#x86-Options
>indicates that Core2 has the SSSE3 instruction set (not to be confused
>with SSE3) that Nocona doesn't have.  "-march=native" is recommended
>unless you're using the machine to do binary builds for other Nocona
>machines.
>
>2)
>> MAKEOPTS="-j5 -l8"
>
>...on a 4-core cpu. There is some question about
>MAKEOPTS="-j($cores+1)"
>https://blogs.gentoo.org/ago/2013/01/14/makeopts-jcore-1-is-not-the-best-optimization/
>As the old saying goes, "your mileage may vary".

Hmmm... going to try this.
I wonder if the +1 bit might work with sufficient memory. I have it higher than 
that and it feels faster compared to just the thread-count. (With 32GB ram)

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] pdftk - replacement

2018-03-15 Thread J. Roeleveld
On March 15, 2018 4:41:43 PM UTC, the...@sys-concept.com wrote:
>On 03/15/2018 03:00 AM, Neil Bothwick wrote:
>> On Thu, 15 Mar 2018 07:48:21 +0100, J. Roeleveld wrote:
>> 
>>>> I need to "overlap" two PDF file, one on top of another, it is like
>>>> watermarking.  I only do it once a year when I print a tax
>>>> form/slips.  
>>>
>>> Maybe script your own solution?
>>> Extract images from the PDF
>>> Overlay the images
>>> convert the images back to PDF
>> 
>> Since it's only once a year:
>> 
>> Print one PDF
>> Put the paper back in the printer
>> Print the other page
>> 
>> It doesn't always pay to overcomplicate things :)
>
>Yes, I used to do it this way, when I had HP printer.  Now with Brother
>printers when you print first page "the form" it put some kind of
>static
>onto the page.  So when you run it second time, it jams almost every
>second page.
>
>--
>Thelma

A printer like that is considered broken by design. I would replace it
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Nvidia kernel module API version mismatch

2018-03-15 Thread J. Roeleveld
On March 15, 2018 1:14:58 PM UTC, Aleksander Okonski  
wrote:
>Hey Joost,
>
>Thank you! This was my problem, rebuilt the kernel and then everything
>worked smoothly.
>
>Aleks
>
>On Thu, Mar 15, 2018 at 12:53 PM, J. Roeleveld 
>wrote:
>
>> On Thursday, March 15, 2018 12:09:23 PM CET Aleksander Okonski wrote:
>> > Hey,
>> >
>> > I have run into a strange problem with my nvidia drivers and
>gentoo. I am
>> > currently running kernel 4.14.14 and I upgraded my
>> > x11-drivers/nvidia-drivers to 390.42 from 390.25. Once the new
>drivers
>> were
>> > installed I rebooted my laptop. Once rebooted I was unable to start
>the
>> > xorg server using startx and was greeted with errors. The
>> > /var/logs/xorg.0.log said that the problem was with the kernel
>module.
>> > Looking at dmesg I see that I am getting the error:
>> >
>> > NVRM: API mismatch: the client has the version 390.42, but this
>kernel
>> > module has version 390.25. please make sure that this kernel module
>and
>> all
>> > NVIDIA driver components have the same version.
>> >
>> > I therefor thought that maybe I forgot to "emerge @module-rebuild"
>so I
>> ran
>> > that and rebooted to make sure that everything was ok. However I am
>still
>> > getting the same problem.
>> >
>> > Looking at /usr/src/linux it is pointing to the correct kernel of
>4.14.14
>> > and running "modinfo nvidia" it shows that "filename:
>> > /lib/modules/4/14/14-gentoo/video/nvidia.ko" and that version is
>390.42.
>> > The other nvidia modules (nvidia-drm, nvidia-modeset, and
>nvidia-uvm)
>> show
>> > that they are built for the correct kernel and that they are also
>version
>> > 390.42.
>> >
>> > I have tried to debug this issue however all the recourse that I
>was able
>> > to find mostly said to reboot or perform rmmod nvidia then modprobe
>> nvidia.
>> > However when I try to rmmod nvidia it is dependent on
>nvidia-modeset and
>> > nvidia-drm. Trying to rmmod nvidia-drm will not work as I get the
>error
>> > "rmmod error: module nvidia_drm in in use".
>> >
>> > I therefor cannot understand why and where the error is coming from
>as it
>> > seems like the kernel has the correct nvidia modules loaded. Any
>ideas on
>> > how to fix it or any other suggestions?
>> >
>> > Thanks,
>> > Aleks
>>
>> Do you use an initramfs? And if yes, does it maybe contain the nvidia
>> module?
>>
>> --
>> Joost
>>
>>
>>

Aleksander,

You might want to change your initramfs config to not include the nvidia module 
to avoid this in future.
I don't have it in my initramfs and don't experience any issues as it ends up 
being loaded correctly after the initramfs.

--
Joost

Ps. Please do not top-post
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Nvidia kernel module API version mismatch

2018-03-15 Thread J. Roeleveld
On Thursday, March 15, 2018 12:09:23 PM CET Aleksander Okonski wrote:
> Hey,
> 
> I have run into a strange problem with my nvidia drivers and gentoo. I am
> currently running kernel 4.14.14 and I upgraded my
> x11-drivers/nvidia-drivers to 390.42 from 390.25. Once the new drivers were
> installed I rebooted my laptop. Once rebooted I was unable to start the
> xorg server using startx and was greeted with errors. The
> /var/logs/xorg.0.log said that the problem was with the kernel module.
> Looking at dmesg I see that I am getting the error:
> 
> NVRM: API mismatch: the client has the version 390.42, but this kernel
> module has version 390.25. please make sure that this kernel module and all
> NVIDIA driver components have the same version.
> 
> I therefor thought that maybe I forgot to "emerge @module-rebuild" so I ran
> that and rebooted to make sure that everything was ok. However I am still
> getting the same problem.
> 
> Looking at /usr/src/linux it is pointing to the correct kernel of 4.14.14
> and running "modinfo nvidia" it shows that "filename:
> /lib/modules/4/14/14-gentoo/video/nvidia.ko" and that version is 390.42.
> The other nvidia modules (nvidia-drm, nvidia-modeset, and nvidia-uvm) show
> that they are built for the correct kernel and that they are also version
> 390.42.
> 
> I have tried to debug this issue however all the recourse that I was able
> to find mostly said to reboot or perform rmmod nvidia then modprobe nvidia.
> However when I try to rmmod nvidia it is dependent on nvidia-modeset and
> nvidia-drm. Trying to rmmod nvidia-drm will not work as I get the error
> "rmmod error: module nvidia_drm in in use".
> 
> I therefor cannot understand why and where the error is coming from as it
> seems like the kernel has the correct nvidia modules loaded. Any ideas on
> how to fix it or any other suggestions?
> 
> Thanks,
> Aleks

Do you use an initramfs? And if yes, does it maybe contain the nvidia module?

--
Joost




Re: [gentoo-user] pdftk - replacement

2018-03-14 Thread J. Roeleveld
On Thursday, March 15, 2018 5:22:26 AM CET the...@sys-concept.com wrote:
> On 03/14/2018 08:52 PM, Danny YUE wrote:
> > On 2018-03-14 20:08, Poncho  wrote:
> >> On 14.03.2018 20:10, the...@sys-concept.com wrote:
> >>> Is there a suitable replacement package for "pdftk".
> >>> Currently pdftk is masked and might be dropped from portage tree  :-/
> >>> 
> >>> The packages require GCC 5 or earlier and are therefore masked in the
> >>> 17.0 profiles.
> >>> 
> >>> I use pdftk only to merge two pdf file (overlap tax form).
> >>> eg.
> >>> pdftk t4-flat-02b.pdf stamp  1.pdf  output out1.pdf
> >> 
> >> /usr/bin/pdfunite
> >> 
> >> it's a provided by app-text/poppler
> > 
> > Besides, app-text/poppler contains some very useful functions.
> > pdfunite is one of them, which let you concatenate several PDF files
> > into one.
> > 
> > Another piece I found useful is pdfseparate. It can separate a PDF file
> > into pages.
> > 
> > The combination of pdfunite and pdfseparate let you replace a single
> > page in a PDF file.
> > 
> > Command `equery f poppler' shows:
> >   /usr/bin/pdfdetach
> >   /usr/bin/pdffonts
> >   /usr/bin/pdfimages
> >   /usr/bin/pdfinfo
> >   /usr/bin/pdfseparate
> >   /usr/bin/pdftocairo
> >   /usr/bin/pdftohtml
> >   /usr/bin/pdftoppm
> >   /usr/bin/pdftops
> >   /usr/bin/pdftotext
> >   /usr/bin/pdfunite
> 
> That is not what I (we) need.
> pdfunite - will join several PDF file into one (this is not what I want).
> 
> I need to "overlap" two PDF file, one on top of another, it is like
> watermarking.  I only do it once a year when I print a tax form/slips.

Maybe script your own solution?
Extract images from the PDF
Overlay the images
convert the images back to PDF

--
Joost




Re: [gentoo-user] USB ports reset/restart

2018-03-13 Thread J. Roeleveld
On Tuesday, March 6, 2018 9:20:36 PM CET the...@sys-concept.com wrote:
> On 03/06/2018 03:11 AM, Neil Bothwick wrote:
> > On Mon, 5 Mar 2018 18:40:08 -0700, the...@sys-concept.com wrote:
> >> Is there a way to reinitialize USB ports without restarting the
> >> computer?
> >> 
> >> Two of my USB 3 ports stop working.
> > 
> > Can you rmmod xhci_pci and xhci_hcd then modprobe xhci_pci?
> > 
> > If that helps, it's a software issue, otherwise it may be a hardware
> > fault that needs a reset. I too have found USB3 to be less than reliable.
> 
> I don't think I could do it; xhci_pci and xhci_hcd are compiled into the
> kernel (not as module).

Change the options and see if that works?

> I know that if I restart the box the USB-3 will start working.
> The box has an uptime 130 days and is my main server.

IOW, you haven't patched your main server against any threads in the past 6+ 
months.

--
Joost



Re: [gentoo-user] Printer

2018-03-11 Thread J. Roeleveld
On Thursday, March 1, 2018 2:52:59 PM CET Wols Lists wrote:
> On 01/03/18 10:33, Roger Cahn wrote:
> > Hi,
> > 
> > For my birthday (!) my children want to offer me a multifunction
> > printer, copier.
> > 
> > I ask you for an idea which one they could buy.
> > 
> > For example:  Multifonction A3 HP Officejet Pro 7612
> > 
> > -gentoo amd64 compatible
> > 
> > -inkjet color (4colors)
> > 
> > -ethernet
> 
> I use these people
> 
> https://www.ijtdirect.co.uk/?sct=printerdeals
> 
> As you're in France it shouldn't be a problem, just watch for the
> currency conversion. They've been about for years dealing in refurbished
> kit, although I think these printers are new.
> 
> All our lasers have been Dell, and there's been minimal problems with
> them. Our current one is the Dell 1765 multi-function, which isn't on
> the list :-( I think our current printers are the 4th and 5th we've had
> from them.
> 
> HPs and Epsons are allegedly linux-friendly.

HPs work really well from linux, the hplip-software does all the configuring 
for you.

> One thing to look out for - do you do a lot of scanning? One of the
> reasons I like the Dells is that they have what I call "push scanning" -
> configure them to connect via Samba, then you can put the original in
> the feeder, select "scan" on the front panel, and the scan appears
> automagically on the computer. With both HP and Epson, you usually have
> to put the document in the scanner, then go to the computer and run the
> scan software. A pain in the arse.

My current HP one can scan and print directly to/from USB drives. No need for 
a computer.
Newer HP printers can also scan to fileshares, email, just like most other 
"advanced" units.

--
Joost



Re: [gentoo-user] Are VirtualBox moduli loaded by themselves?

2018-03-06 Thread J. Roeleveld
On Tuesday, March 6, 2018 10:32:50 AM CET Mick wrote:
> On Tuesday, 6 March 2018 09:21:43 GMT gevisz wrote:
> > Ah, yes, /etc/init.d/modules-load
> > "loads a list of modules from systemd-compatible locations".
> > Ok. But the problem is that I cannot find any symlink to this file
> > from any subdirectory of /etc/runlevels/
> 
> The file /etc/init.d/modules-load is a script, which refers to a number of
> potential modules lists to load - read line 19 onward:
> =
> ...
> find_modfiles()
> {
> local dirs="/usr/lib/modules-load.d /run/modules-load.d
> /etc/modules- load.d"
> 

Symlinks from /etc/runlevels/... means, the init-script is part of a runlevel.

> > So, I do not know how to disable this service.
> 
> rc-update delete modules-load default

"modules-load" is, by default, not part of any runlevel.
It is called as a dependency.

--
Joost



Re: [gentoo-user] Are VirtualBox moduli loaded by themselves?

2018-03-06 Thread J. Roeleveld
On Tuesday, March 6, 2018 10:21:43 AM CET gevisz wrote:
> 2018-03-05 23:35 GMT+02:00 Neil Bothwick :
> > On Mon, 5 Mar 2018 22:40:00 +0200, gevisz wrote:
> >> Can anybody explain me who loads virtualbox-modules without my consent
> >> and how I can make them loaded only when I need them (just before I am
> >> going to run VirtualBox, which I do not so often)?
> > 
> > The ebuild installs /usr/lib/modules-load.d/virtualbox.conf which causes
> > the modules to be loaded by systemd-modules-load.service. Systemd gives
> > priority to similarly names files in /etc so creating an
> > empty /etc/modules-load.d/virtualbox.conf should prevent them loading,
> > although I'm basing that on the man page rather than actual experience.
> 
> Thank you for your reply.
> 
> My system indeed has file /usr/lib/modules-load.d/virtualbox.conf
> file and it indeed lists all virtualbox modules.
> 
> And, indeed, creating directory /etc/modules-load.d/ and an empty
> /etc/modules-load.d/virtualbox.conf file precludes loading virtualbox
> moduli during boot
> 
> The only problem here is that I do not use systemd, only openrc.
> 
> So, https://wiki.gentoo.org/wiki/VirtualBox is outdated?
> At least with respect to its OpenRC part.
> 
> And why at all OpenRC uses the systemd config files?
> 
> Ah, yes, /etc/init.d/modules-load
> "loads a list of modules from systemd-compatible locations".
> Ok. But the problem is that I cannot find any symlink to this file
> from any subdirectory of /etc/runlevels/
> 
> > You could also disable the service if you don't want any
> > non-hotplugged modules loaded at boot.
> 
> So, I do not know how to disable this service.

It is a dependency for "modules", which is (on my system) in the boot 
runlevel.

--
Joost





Re: [gentoo-user] Gentoo in a VM

2018-03-06 Thread J. Roeleveld
On Tuesday, March 6, 2018 5:09:24 AM CET Philip Webb wrote:
> This may interest some users :
> 
> https://linuxhint.com/install-gentoo-virtualbox/
> 
> I'm sure the author would like to correct any errors anyone finds.
> 
> No, I'm not going to try this at home (grin) !

After a quick read-through, it seems ok.
But I do miss quite a bit of steps to turn it into a usable system.

--
Joost




Re: [gentoo-user] mono is broken,

2018-03-03 Thread J. Roeleveld
On Saturday, March 3, 2018 5:03:10 PM CET Alan Grimes wrote:
> J. Roeleveld wrote:
> > On Saturday, March 3, 2018 9:36:28 AM CET Alan Grimes wrote:
> >> I just emptytree built mono, still fails the test-install script,
> >> whatever that does...
> > 
> > It compiles just fine here.
> > IOW, it is not broken.
> 
> Prove it, 
> 
> run mono-test-install and show me what a successful run looks like. =|
> 
> 
> #
> 
> 
> tortoise ~ # mono-test-install
> Active Mono: /usr/bin/mono
> 
> Failed to compile sample System.Drawing program, your installation is broken
> tortoise ~ #

Proof:

$ mono-test-install 
Active Mono: /usr/bin/mono

Your have a working System.Drawing setup
Your file system watcher is: System.IO.InotifyWatcher
$ 

--
Joost



Re: [gentoo-user] Bouncing Messages

2018-03-03 Thread J. Roeleveld
On Thursday, March 1, 2018 11:38:42 PM CET Dale wrote:
> Branko Grubic wrote:
> > On Thu, 1 Mar 2018 14:42:35 -0600
> > 
> > R0b0t1  wrote:
> >> I keep getting emails from the mailer daemon about bouncing messages.
> >> I am worried. Am I missing messages from my internet friends? Please
> >> send help.
> >> 
> >> With much concern,
> >> 
> >>  R0b0t1
> > 
> > Hi,
> > 
> > I was just thinking about asking the same question, I also get those
> > recently.
> > 
> > Regards,
> > Branko
> 
> I have got a couple recently as well.  I wonder, can this be used to
> retrieve those messages somehow??
> 
> 
> Here is the list of the bounced messages:
> - 182748
> - 182749
> - 182751
> 
> 
> I keep my messages locally so when I miss messages, it can throw a thread
> into some random weirdness.  If one uses the web interface to read/reply
> etc then it wouldn't matter but for those who use email software, it seems
> we are missing something.
> 
> I might also wonder, what happened to 182750??

You probably received 182750.

I used to get these messages, this was caused by bad behaving spam filters on 
the receiving mailserver.
I solved it by switching to different inbound mailservers.

--
Joost



Re: [gentoo-user] mono is broken,

2018-03-03 Thread J. Roeleveld
On Saturday, March 3, 2018 9:36:28 AM CET Alan Grimes wrote:
> I just emptytree built mono, still fails the test-install script,
> whatever that does...

It compiles just fine here.
IOW, it is not broken.

--
Joost



Re: [gentoo-user] Rebuilding all dependants of a package

2018-02-20 Thread J. Roeleveld
On February 20, 2018 7:14:25 AM UTC, Alan McKinnon  
wrote:
>hehehehe :-)
>
>every now and again I unleash my inner grumpy old fart and should him
>to
>the world at large!
>
>On Mon, Feb 19, 2018 at 5:15 PM, Neil Bothwick 
>wrote:
>
>> On Mon, 19 Feb 2018 17:05:03 +0200, Alan McKinnon wrote:
>>
>> > Perhaps you should lay out clearly why you think you need to do
>this,
>> > so everyone else can help match your expectations to reality :-)
>>
>> Watch out everyone, Alan's in one of those moods! ;-)
>>
>>
>> --
>> Neil Bothwick
>>
>> C: (n.) the language following A and B. The world still awaits D and
>>E. By Z, it may be acceptable for general use.
>>

You call this 'grumpy old fart'?
Thanks, I often must be one at work then. :)
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] UEFI-fails to boot

2018-01-31 Thread J. Roeleveld
On Sunday, January 28, 2018 11:35:33 AM CET Dan Johansson wrote:
> On 28.01.2018 00:13, Corbin Bird wrote:
> 
> Thanks for your feedback.
> 
> > .
> > Thank you for that info.
> > .
> > What kind of integrated VGA?
> > ( example Intel i915, i965, etc. )
> 
> According to the MB docu is it a "ASPEED AST2400 BMC" Video controller.
> 
> > .
> > The reason I ask is that the EFI framebuffer you have enabled should be
> > built into a specific video driver.
> > My system has an "amdgpu" video card.
> > The EFI framebuffer driver for the console is enabled.
> > The specific video driver called "amdgpu" is also enabled.
> > The EFI framebuffer is built as a sub-component of the specific video
> > driver "amdgpu".
> > .
> > 
> > Sample dmesg output :
> >> [6.223405] [drm] amdgpu kernel modesetting enabled.
> >> [6.223573] [drm] initializing kernel modesetting (POLARIS10
> >> 0x1002:0x67DF 0x1682:0x9480 0xC7)
> >> [6.882691] Console: switching to colour frame buffer device 240x67
> >> [6.900623] amdgpu :01:00.0: fb0: amdgpudrmfb frame buffer device
> > 
> > .
> > If you haven't already run this command, please do so :  lspci | grep -i
> > VGA
> # lspci | grep VGA
> 06:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED
> Graphics Family (rev 30)
> 
> > If the video device is a 'Aspeed AST', the version number of the
> > kernel you are using makes a big difference.
> 
> # uname -r
> 4.9.76-gentoo-r1
> 
> >>   ASPEED's AST2500 Display To Be Supported By Linux 4.11's DRM
> >> 
> >> https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/x-org-> 
> >> >> drm/935002-aspeed-s-ast2500-display-to-be-supported-by-linux-4-11-s-drm
> Thanks for that link, I will have to look into that.
> Although I will not be using X on this box, as it is a server, it looks
> like I need to configure DRM.

On a system with the same mainboard:

zcat /proc/config.gz | grep -i drm
# CONFIG_DRM is not set


Eg, DRM is not necessary.

I don't reboot often enough to find it necessary to "fix" the UEFI boot. Mine 
still goes into the EFI-shell and from there I start xen.

--
Joost




Re: [gentoo-user] Re: Is gnome becoming obligatory?

2017-12-14 Thread J. Roeleveld
On Friday, December 15, 2017 2:25:29 AM CET Marc Joliet wrote:
> Am Freitag, 15. Dezember 2017, 02:12:08 CET schrieb R0b0t1:
> > On Thu, Dec 14, 2017 at 6:35 PM, Peter Humphrey 
> 
> wrote:
> > > On Thursday, 14 December 2017 16:03:19 GMT Ian Zimmerman wrote:
> > >> I'll try not to feed this monster thread any longer, I promise.
> > > 
> > > Ah, but will you succeed?:)
> > 
> > List, in my weakness, I felt compelled to make the 77th post, as seven
> > is a holy number indeed.

7 doesn't have any holes, so it can't be holy...

> > Cheers,
> > 
> >  R0b0t1
> 
> Hah, and *right* before I sent my own monster mail, too!  So it seems I'm
> poor number 78... (and 79 now, too, I guess)

8 and 9 do have holes...
you made a holy number :)




Re: [gentoo-user] Re: Is gnome becoming obligatory?

2017-12-14 Thread J. Roeleveld
On Friday, December 15, 2017 4:05:41 AM CET Kai Krakow wrote:
> Am Thu, 14 Dec 2017 08:54:59 +0100 schrieb J. Roeleveld:
> >> Some historical correctnesses about Canek:
> >> 
> >> - He has been here for years - He has contributed here for years - He
> >> supports systemd and has offered more help and explanation about
> >> systemd to it's users on this list than any other single person, bar
> >> none - He has never, not once, slagged off SysV Init, OpenRC or any
> >> other init system, ot the creators or the users - He has never posted
> >> rude or inflamatory comments about anyone arguing against him - He has
> >> never resorted to ad-hominem and never posted any knee jerk opinions
> >> about any other poster wrt their stance on init systems
> > 
> > +1 I may not agree with Canek on all things:
> > - I do dislike systemd, especially on Centos where disabling services
> > doesn't always work past a reboot
> 
> Well, I think you're falling the pitfall expecting "disable" makes a unit
> unstartable. That is not the case. Disabling a unit only removes it from
> the list of units starting on your own intent. It can still be pulled it
> as a (required) dependency.

Makes sense

> If you really want it never being started, you need to mask the unit.
> It's then no longer visible to the dependency resolver as if it were not
> installed at all.

This is not listed anywhere easy to find in google.

> The verbs disable and enable are arguably a bit misleading, while the
> verbs mask and unmask are not really obvious. But if you think of it, it
> actually makes sense.

Actually, it doesn't. But lets not discuss naming conventions. A lot of tools 
have ones where I fail to see the logic.
It's a shame that option is not easily findable. And not knowing it exists, 
means checking man-pages and googling for them doesn't happen either.

> If you "rc-update del" a service, you wouldn't
> prevent it from being started neither, just because OpenRC is still able
> to pull it in as a dependency.

True, except with OpenRC, all the config is located together. Not mostly in /
usr/ somewhere with overrides in /etc/...
I dislike all tools that split their config in this way.

> So it's actually not an argument for why you'd dislike systemd. ;-)

The lack of easily findable documentation on how to stop a service from 
starting, even as a dependency, is a reason. (not singularly against systemd).
Systemd, however, has an alternative.

--
Joost



Re: [gentoo-user] Re: Is gnome becoming obligatory?

2017-12-13 Thread J. Roeleveld
On Wednesday, December 13, 2017 9:06:29 AM CET Alan McKinnon wrote:
> On 13/12/2017 01:23, allan gottlieb wrote:
> > On Mon, Dec 11 2017, Jorge Almeida wrote:
> >> On Sun, Dec 10, 2017 at 7:31 PM, Canek Peláez Valdés  
wrote:
> >>> Just my two cents. I will not answer any reply to my little contribution
> >>> to
> >>> this thread;
> >> 
> >> Good. I can't remember any intervention from you that I would miss.
> > 
> > That makes one of us.
> > 
> > As a gnome user I needed to use systemd when gnome-3 came about.  While
> > I have nothing useful to say pro or con about systemd, I strongly
> > believe Canek has contributed a number of helpful comments to this
> > group.
> 
> Yes, this.
> 
> Some historical correctnesses about Canek:
> 
> - He has been here for years
> - He has contributed here for years
> - He supports systemd and has offered more help and explanation about
> systemd to it's users on this list than any other single person, bar none
> - He has never, not once, slagged off SysV Init, OpenRC or any other
> init system, ot the creators or the users
> - He has never posted rude or inflamatory comments about anyone arguing
> against him
> - He has never resorted to ad-hominem and never posted any knee jerk
> opinions about any other poster wrt their stance on init systems

+1
I may not agree with Canek on all things:
- I do dislike systemd, especially on Centos where disabling services doesn't 
always work past a reboot
- Users who can't write code also have a right to be heard and their wishes 
should still be honestly considered

But the conversations have always been civil. And information from him has 
always been helpful. He is one of the few people on this list whose comments I 
read and who I do miss when there isn't something for a while.

> If we look at the reverse we see a very different picture, and it's
> right here in this very thread. To the poster who rudely commented about
> Canek being a professor and that doesn't make him right and that he is
> one voice, step back pal and take a very long hard look at what you
> said. Yes, it doesn't make him right. Also doesn't make him wrong. His
> posts and the content are what make him right or wrong. There truly are
> fan bois on this list, but Canek is not one of them. It's the
> systemd-haters and Poeterring-haters who are being fan bois, painting
> all detractors with the same brush.

Canek bases his "being a fan of systemd" on what he needs and wants from a 
computer. For him, systemd fits that requirement perfectly.

> Frankly, I'm amazed Canek is still here considering the amount of abuse
> he takes from this list. He must have thick skin or maybe dealing with
> detractors is a crucial part of academic training. I myself would have
> rage quitted a long time ago but he is still here.
> 
> A good healthy dose of manners like your Mama taught you is in short
> supply around here right now.

+1 (again)




Re: [gentoo-user] OT: btrfs raid 5/6

2017-12-09 Thread J. Roeleveld
On Friday, December 8, 2017 12:48:45 AM CET Wols Lists wrote:
> On 07/12/17 22:35, Frank Steinmetzger wrote:
> >> (Oh - and md raid-5/6 also mix data and parity, so the same holds true
> >> 
> >> > there.)
> > 
> > Ok, wasn’t aware of that. I thought I read in a ZFS article that this were
> > a special thing.
> 
> Say you've got a four-drive raid-6, it'll be something like
> 
> data1   data2   parity1 parity2
> data3   parity3 parity4 data4
> parity5 parity6 data5   data6
> 
> The only thing to watch out for (and zfs is likely the same) if a file
> fits inside a single chunk it will be recoverable from a single drive.
> And I think chunks can be anything up to 64MB.

Except that ZFS doesn't have fixed on-disk-chunk-sizes. (especially if you use 
compression)

See:
https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz

--
Joost



Re: [gentoo-user] OT: btrfs raid 5/6

2017-12-01 Thread J. Roeleveld
On Monday, November 27, 2017 11:30:13 PM CET Bill Kenworthy wrote:
> Hi all,
>   I need to expand two bcache fronted 4xdisk btrfs raid 10's - this
> requires purchasing 4 drives (and one system does not have room for two
> more drives) so I am trying to see if using raid 5 is an option
> 
> I have been trying to find if btrfs raid 5/6 is stable enough to use but
> while there is mention of improvements in kernel 4.12, and fixes for the
> write hole problem I cant see any reports that its "working fine now"
> though there is a phoronix article saying Oracle is using it since the
> fixes.
> 
> Is anyone here successfully using btrfs raid 5/6?  What is the status of
> scrub and self healing?  The btrfs wiki is woefully out of date :(
> 
> BillK

I have not seen any indication that BTRFS raid 5/6/.. is usable.
Last status I heard: No scrub, no rebuild when disk failed, ...
It should work as long as all disks stay functioning, but then I wonder why 
bother with anything more advanced than raid-0 ?

It's the lack of progress with regards to proper "raid" support in BTRFS which 
made me stop considering it and simply went with ZFS.

--
Joost




Re: [gentoo-user] Re: is multi-core really worth it?

2017-12-01 Thread J. Roeleveld
On 28 November 2017 11:07:58 GMT+01:00, Raffaele Belardi 
 wrote:
>Raffaele Belardi wrote:
>> Hi,
>> 
>> rebuilding system and world with gcc-7.2.0 on a 6-core AMD CPU I have
>the impression that
>> most of the ebuilds limit parallel builds to 1, 2 or 3 threads. I'm
>aware it is only an
>> impression, I did not spend the night monitoring the process, but
>nevertheless every time
>> I checked the load was very low.
>> 
>> Does anyone have real-world statistics of CPU usage based on gentoo
>world build?
>
>I graphed the number of parallel ebuilds while doing an 'emerge -e'
>world on a 4-core CPU,
>the graph is attached. There is an initial peak of ebuilds but I assume
>it is fake data
>due to prints being delayed. Then there is a long interval during which
>there are few (~2)
>ebuilds running. This may be due to lack of data (~700Mb still had to
>be downloaded when I
>started the emerge) or due to dependencies. Then, after ~500 merged
>packages, finally the
>number of parallel ebuilds rises to something very close to the
>requested 5.
>
>Note: the graph represents the number of parallel ebuilds in time, not
>the number of
>parallel jobs. The latter would be more interesting but requires a lot
>more effort.
>
>Note also in the log near the seamonkey build that the load rises to 15
>jobs; I suppose
>seamonkey and other two potentially massively parallel jobs started
>with low parallelism,
>fooling emerge into starting all three of them, but then each one
>spawned the full -j5
>jobs requested by MAKEOPTS. There's little emerge can do in these cases
>to maintain the
>load-average.
>
>All of this just to convince myself that yes, it is worth it!
>
>raffaele
>
>Method:
>The relevant part of the command line:
># "MAKEOPTS=-j5 EMERGE_DEFAULT_OPTS=--jobs 3 --load-average 5" emerge
>-e world
>on a 4 core CPU.
>In the log I substituted a +1 for every 'Emerging' and -1 for every
>'Installing', removed
>the rest of the line, summed and graphed the result.

Add the load average part to the makeopts and make will keep the jobs down when 
load rises.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Setting up fetchmail to feed postfix

2017-11-29 Thread J. Roeleveld
On 30 November 2017 01:39:18 GMT+01:00, Peter Humphrey  
wrote:
>On Monday, 27 November 2017 13:44:15 GMT Peter Humphrey wrote:
>> On Friday, 24 November 2017 18:10:21 GMT Matthias Hanft wrote:
>> > Peter Humphrey wrote:
>> > > The ebuild installs /etc/init.d/fetchmail and
>/etc/conf.d/fetchmail,
>> > > so
>> > > it seems to expect me to run as a daemon. But then there's no
>sample
>> > > fetchmailrc, which surprises me.
>> > 
>> > A simple example line from my /etc/fetchmailrc is:
>> > 
>> > poll pop.mail.server.example.com proto pop3
>> > 
>> > user "your.username@there", with password "secret", is
>> > 
>> > "your.username@here" here, ssl;
>> > 
>> > That's all...
>> 
>> Thank you Matt. That did the trick, and I now have fetchmail working.
>
>I do so wish this list wouldn't go silent for several days just after
>I've 
>made a change to my email process. This isn't the first time, either.
>
>;-(

If you want an active list to test your mailsetup with, subscribe to the LKML :)

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Setting up fetchmail to feed postfix

2017-11-26 Thread J. Roeleveld
On 24 November 2017 18:30:22 GMT+01:00, Rich Freeman  wrote:
>On Fri, Nov 24, 2017 at 11:16 AM, Ralph Seichter
> wrote:
>> On 24.11.17 16:39, Peter Humphrey wrote:
>>
>>> I'm trying an evasion, which is to use fetchmail to retrieve emails
>>> from my ISP and deliver them to postfix, which can then serve them
>>> via IMAP.
>>
>> Postfix is an MTA and does neither store email nor lets you access
>email
>> via IMAP. There must be an IMAP server in your mix somewhere (e.g.
>> Dovecot or Courier).
>>
>
>While Postfix certainly won't serve up email via IMAP it definitely
>does store email.  You are correct that you'd run a separate IMAP
>server.  They need not be on the same host assuming they can both get
>at the maildirs.

I would let the mailstore (Cyrus, Dovecot,...) do the actual storing of the 
email and have the MTA (postfix, sendmail,...) pass it via LMTP or similar.

That way any indexes and metadata is handled properly.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Setting up fetchmail to feed postfix

2017-11-26 Thread J. Roeleveld
On 26 November 2017 03:30:11 GMT+01:00, Peter Humphrey  
wrote:
>On Saturday, 25 November 2017 16:20:46 GMT Jalus Bilieyich wrote:
>> As an everyday user of KMail, I am completely happy with using it. I
>> don't see any flaws with it. Maybe it's just me or...? Is there a
>reason
>> behind the hostile glare towards KMail?
>
>Do you have POP3 or IMAP-4 accounts?
>
>It used to be like that for me too, but not for a long time now. I get 
>duplicate messages, which are a known problem and easily worked around,
>but 
>the latest version of KMail whinges about more than one candidate for 
>display and just gives up. Then I have to stop KMail, start
>akonadiconsole 
>and use it to delete the akonadi cache of the affected folder, restart 
>akonadi and (when the debug messages quieten down) restart KMail and
>click 
>on the same folder. Then it rebuilds the threads and stores them neatly
>away 
>in MySQL.
>
>This happens several times a day, sometimes even more than once in the
>same 
>folder. I don't know why I should be affected more than anyone else,
>but I 
>do seem to be. It reminds me of Dale and his struggles a few years ago
>with 
>... what was it again, Dale?

Interesting,

I use kmail a lot on my desktop and laptop and have not noticed that in a very 
long time.
It has actually been quite stable.

I do use IMAP (cyrus) and akonadi is configured to use a postgresql database 
which is not running as embedded under my own user.
(Postgresql is configured as a proper RDBMS using it's own user)

I wonder of part of the issues most people are seeing is because of the default 
of using mysql embedded?

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] is multi-core really worth it?

2017-11-22 Thread J. Roeleveld
On Wednesday, November 22, 2017 3:34:56 PM CET Wols Lists wrote:
> On 22/11/17 14:11, Tsukasa Mcp_Reznor wrote:
> > You won't get build failures or dependency problems, portage is built to
> > handle emerging multiple packages that do not depend on each other
> > simultaneously.
> > it will not ever build a dependency and the main program at the same time.
> 
> Are you sure?
> 
> You *shouldn't* get problems, but I'm sure I have hit that problem, and
> I think it's down to buggy ebuilds.

buggy, as in, at least one dependency missed.

> Starting the emerge again fixes it, because cocked-up dependencies will
> sort themselves out first time round, and the second time the problem
> has gone away.

2nd time the dependency might have been installed already.
Sometime it hasn't.

This can also cause a failure when not using parallel builds for exactly the 
same reason.

--
Joost



Re: [gentoo-user] is multi-core really worth it?

2017-11-22 Thread J. Roeleveld
On Wednesday, November 22, 2017 2:12:31 PM CET Raffaele Belardi wrote:
> Jeremi Piotrowski wrote:
> > That being said: if you do a world rebuild you will have lots of packages
> > that spend ~40 seconds doing their autoconf run, only to build 2-3 sources
> > files. On an 8-core machine at work, I get good results using parallel
> > emerge jobs (emerge -jX). For your 6-core AMD CPU (assuming it actually
> > has 12 threads) I'd start with 'emerge -j3' and MAKEOPTS='-j12 -l16'.
> > That should get you a nice speedup, but may require a bit more ram.
> 
> emerge -j3 is something I did not think of, I'll try it. But won't that
> break portage's carefully crafted package dependencies? I suppose you could
> get occasional build failures?

No, it won't.
If it has multiple packages that can be built (taking dependencies into 
account) it will. If all packages in the queue are waiting for a single 
package to be installed, all those will wait till that package is finished.

> I'm using MAKEOPTS=-j7, I thought 2 threads per CPU (hyperthreading?) was an
> Intel thing only.

I thought so too.

Don't forget to add the "load-average" option to both, otherwise there is a 
very likely chance you will have 3 * 7 = 21 build processes running at the 
same time.

Also, I have had situations where using "-j" actually caused some issues where 
it was picked up by the wrong process or it has a different meaning for some 
other process. Specifying the long version (--jobs) has been reliable for me.

--
Joost



Re: [gentoo-user] is multi-core really worth it?

2017-11-22 Thread J. Roeleveld
On Wednesday, November 22, 2017 8:48:08 AM CET David Haller wrote:
> Hello,
> 
> On Wed, 22 Nov 2017, Raffaele Belardi wrote:
> >rebuilding system and world with gcc-7.2.0 on a 6-core AMD CPU I have
> >the impression that most of the ebuilds limit parallel builds to 1, 2
> >or 3 threads.
> 
> Most should build with "many" cores, but some might be limited, but ...
> 
> >I'm aware it is only an impression, I did not spend the
> >night monitoring the process, but nevertheless every time I checked
> >the load was very low.
> 
> I guess you're mostly observing stalls because the (single-thread)
> overhead of emerge, configure (etc.), which can also be IO-bound...
> The actual builds probably goes so fast on your box, you hardly
> notice unless they're rather big(gish).
> 
> Some numbers for comparison, and I generally build with just one
> thread in the background on my 2 core "old" Athlon II X2 250:
> dev-libs/boost took a good 45mins to build with one thread. Divide by
> 6 for your cores, divide again by about 2-3 for your newer cores and
> you're in the 3:45min range for such a "biggie" as boost. Most other
> stuff won't even peg your meter.
> 
> So, your emerge is mostly IO and "emerge"-threads bound. Solution:
> adjust your build-threads[1], and then adjust your emerge jobs! See
> '--jobs' in 'man emerge'. Can't find where to set a default in a
> config-file for that ATM, but you could always alias/function/script
> emerge to something else, e.g. put this in your ~/.bashrc:

Instead of all these aliases, simply edit your make.conf ( /etc/portage/
make.conf )

And edit (or add) the following lines:
MAKEOPTS="--jobs 24 --load-average 48"
EMERGE_DEFAULT_OPTS="--jobs 24 --load-average 48"

Adjust the values to match your system, the above works fine on my desktop.
CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
And 32GB ram.

--
Joost




Re: [gentoo-user] Instrumenting the GPU

2017-11-13 Thread J. Roeleveld
On Monday, November 13, 2017 4:12:56 PM CET Daniel Frey wrote:
> On 11/13/17 02:59, Peter Humphrey wrote:
> > Hello list,
> > 
> > I'm hunting a problem with cooling in this box, and I've got as far as
> > suspecting my new AMD WX 5100 GPU.
> > 
> > One of my BOINC projects causes the GPU temperature, as shown by gkrellm,
> > to shoot up to 75C or more and cause intolerable system cooling noise. If
> > I suspend that project but leave the other seven running, the temperature
> > returns to what I hope is a normal 55C. Those seven projects are supposed
> > to use the GPU, but I'm not sure whether they do in fact.

According to gkrellm, my GPU is at 24C. CPU is at 31C.
Will check it after running a few 3D heavy apps later tonight.

> > Is there any way I can monitor what is using the GPU, to find out?
> 
> I don't know if there's a utility for consumer level cards that can do
> this. I do remember for Nvidia there's nvidia-smi but I don't think it
> will list processes for desktop cards.

I have a Geforce GTX 950 and it does show the processes.
Surprisingly, some desktop apps (not all) are also showing, must be linked to 
some library.
Also shows the GPU memory usage.

--
Joost



Re: [gentoo-user] Re: Any reason for "Missing digest" errors at the moment

2017-11-13 Thread J. Roeleveld
On Monday, November 13, 2017 7:58:48 AM CET Nikos Chantziaras wrote:
> On 13/11/17 06:43, Andrew Lowe wrote:
> > Hi all,
> > 
> > I've just done an "eix-sync" and upon doing "emerge -NuD world", get a
> > 
> > few screen fulls of:
> > Missing digest for '/usr/portage/.
> > 
> > where the packages are mostly from kde-frameworks, -5.40.0, and a few
> > from kde-apps, -17.08.3.
> > 
> > Has anyone else seen this?
> 
> Was getting it too from time to time. I switched from rsync to git and
> it never happened again.

That's one option.
Also make sure the sync succeeded and didn't fail due to insufficient disk-
space. (The git-option requires more diskspace)

--
Joost



Re: [gentoo-user] Re: Internal compiler error when compiling Chromium-62.0.3202.75

2017-11-09 Thread J. Roeleveld
On Thursday, November 9, 2017 8:41:01 PM CET Grant Edwards wrote:
> On 2017-11-09, Mick  wrote:
> > Strangely enough, I rebooted and this time it compiled without any
> > error!  o_O
> > 
> > So, all is well that ends well.  :-)
> 
> Ah, to be young and optimistic again...

We can all dream




Re: [gentoo-user] Internal compiler error when compiling Chromium-62.0.3202.75

2017-11-09 Thread J. Roeleveld
On Thursday, November 9, 2017 8:23:55 PM CET Mick wrote:
> On Thursday, 9 November 2017 18:17:14 GMT Alexey Eschenko wrote:
> > Are you running early AMD Ryzen? Is you are then check this out:
> > https://www.phoronix.com/scan.php?page=news_item&px=Ryzen-Segv-Response
> 
> Thank you both,
> 
> This failure was on a AMD Kaveri APU.  There were no errors on dmesg.
> 
> The compile error is:
> > In file included from
> > gen/storage/public/interfaces/blobs.mojom-shared.h:25:0, from
> > gen/storage/public/interfaces/blobs.mojom-blink.h:33, from
> > ../../third_party/WebKit/Source/platform/blob/ BlobData.h:42,
> > 
> >  from ../../third_party/WebKit/Source/platform/network/
> > 
> > EncodedFormData.h:23,
> > 
> >  from
> >  ../../third_party/WebKit/Source/platform/loader/fetch/
> > 
> > ResourceRequest.h:34,
> > 
> >  from ../../third_party/WebKit/Source/core/loader/
> > 
> > FrameLoader.h:48,
> > 
> >  from
> > 
> > ../../third_party/WebKit/Source/core/frame/LocalFrame.h: 38,
> > 
> >  from ../../third_party/WebKit/Source/core/frame/
> > 
> > LocalDOMWindow.h:33,
> > 
> >  from ../../third_party/WebKit/Source/core/dom/events/
> > 
> > WindowEventContext.h:30,
> > 
> >  from ../../third_party/WebKit/Source/core/dom/events/
> > 
> > EventPath.h:32,
> > 
> >  from
> > 
> > ../../third_party/WebKit/Source/core/dom/events/Event.h: 32,
> > 
> >  from ../../third_party/WebKit/Source/core/events/
> > 
> > ErrorEvent.h:36,
> > 
> >  from ../../third_party/WebKit/Source/bindings/core/v8/
> > 
> > ScriptCustomElementDefinition.cpp:15:
> > [86/787]
> > gen/storage/public/interfaces/blobs.mojom-shared-internal.h:539:5:
> > internal
> > compiler error: Segmentation fault
> > 
> >  }
> >  ^
> > 
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See  for instructions.
> > 
> > [snip ...]
> 
> Strangely enough, I rebooted and this time it compiled without any error! 
> o_O
> 
> 
> So, all is well that ends well.  :-)

One possible cause:
Some left-over libraries in memory that weren't cooperating.
Someone with more knowledge of this might let us know if this theory of mine 
is actually possible or not.

--
Joost




Re: [gentoo-user] Re: Internal compiler error when compiling Chromium-62.0.3202.75

2017-11-09 Thread J. Roeleveld
On Thursday, November 9, 2017 8:34:16 PM CET Mick wrote:
> On Thursday, 9 November 2017 19:22:29 GMT J. Roeleveld wrote:
> > On Thursday, November 9, 2017 6:14:26 PM CET Grant Edwards wrote:
> > > On 2017-11-09, Mick  wrote:
> > > > Apologies in advance for the long post, but has anyone else come
> > > > across
> > > > this?
> > > > 
> > > > gen/storage/public/interfaces/blobs.mojom-shared-internal.h:539:5:
> > > > internal
> > > > compiler error: Segmentation fault
> > > > 
> > > >  }
> > > >  ^
> > > > 
> > > > Please submit a full bug report,
> > > > with preprocessed source if appropriate.
> > > > See <https://bugs.gentoo.org/> for instructions.
> > > 
> > > Does it always fault in exactly the same spot?
> > > 
> > > If not...
> > > 
> > > When I've run into "random" gcc segfaults when compiling very large
> > > programs, it's always been a hardware problem.  Every time except one,
> > > it was failing RAM.
> > > 
> > > I'd run memtest86 overnight.
> > 
> > Also check it is not overheating.
> > The one time I had random gcc segfaults was when I accidentally forgot
> > decent airflow for the CPU about 20+ years ago.
> > 
> > --
> > Joost
> 
> Thanks Joost, it seems like random fault.  I hope it is not faulty RAM -
> after 4 years of no evident problems.  Anyway, I rebooted and the second
> time the compile completed without error.  :-/
> 
> This PC has a Zalman CPU cooler, the heat sink of which I flattened out to
> make sure it makes good contact with the CPU surface.  It will not show
> above 45-46.5°C even when running cpuburn on all cores.

Mine couldn't get rid of the hot air at all...
The SCSI-controller was in the bottom PCI-slot.
The flat-ribbon cable was going nicely straight up
The CPU was between the cable and the front of the case... Nowhere for hot air 
to go (unless you count a little gap)

That was solved by drilling vent-holes in the case-cover. (Case was basically 
cast-iron...)

--
Joost





Re: [gentoo-user] Re: Internal compiler error when compiling Chromium-62.0.3202.75

2017-11-09 Thread J. Roeleveld
On Thursday, November 9, 2017 6:14:26 PM CET Grant Edwards wrote:
> On 2017-11-09, Mick  wrote:
> > Apologies in advance for the long post, but has anyone else come across
> > this?
> > 
> > gen/storage/public/interfaces/blobs.mojom-shared-internal.h:539:5:
> > internal
> > compiler error: Segmentation fault
> > 
> >  }
> >  ^
> > 
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See  for instructions.
> 
> Does it always fault in exactly the same spot?
> 
> If not...
> 
> When I've run into "random" gcc segfaults when compiling very large
> programs, it's always been a hardware problem.  Every time except one,
> it was failing RAM.
> 
> I'd run memtest86 overnight.

Also check it is not overheating.
The one time I had random gcc segfaults was when I accidentally forgot decent 
airflow for the CPU about 20+ years ago.

--
Joost




Re: [gentoo-user] Re: Linux USB security holes.

2017-11-08 Thread J. Roeleveld
On Wednesday, November 8, 2017 8:35:37 PM CET Ian Zimmerman wrote:
> On 2017-11-08 05:53, J. Roeleveld wrote:
> > From what I read, you need physical access.
> 
> According to Solar, for whom I have developed great respect, this is not
> necessarily so:
> 
> http://www.openwall.com/lists/oss-security/2017/11/08/5

I stand corrected. Forgot about this possible avenue. But this will still 
require the person already has access to the system.
I think for most users with just a personal desktop, this is less likely.

It does bring another possible access, most servers have iKVM/IPMI systems 
installed for remote management. Those also allow USB devices to be connected 
over network. I would, however, class access to these parts of the system as 
"physical" access.

--
Joost




Re: [gentoo-user] Linux USB security holes.

2017-11-07 Thread J. Roeleveld
On 8 November 2017 06:08:21 GMT+01:00, Dale  wrote:
>Howdy,
>
>I ran up on this link.  Is there any truth to it and should any of us
>Gentooers be worried about it?
>
>http://www.theregister.co.uk/2017/11/07/linux_usb_security_bugs/ 
>
>Isn't Linux supposed to be more secure than this??
>
>Dale
>
>:-)  :-) 

From what I read, you need physical access.
And I am not certain what you need to do to the firmware on the USB device to 
trigger this.

--
Joost 
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] [OT] Being Facebook member: How to anon?

2017-10-22 Thread J. Roeleveld
On 22 October 2017 18:55:36 GMT+02:00, tu...@posteo.de wrote:
>On 10/22 06:39, Alan McKinnon wrote:
>> On 22/10/2017 16:27, tu...@posteo.de wrote:
>> > On 10/22 01:58, J. Roeleveld wrote:
>> >> On 22 October 2017 10:50:01 GMT+02:00, tu...@posteo.de wrote:
>> >>> Hi,
>> >>>
>> >>> for its invasive nature and its data gathering I really dont like
>> >>> facebook. 
>> >>>
>> >>> And now it seems that I cant with out it:
>> >>> There is a HUGE user group for the Creality CR-10 3D printer
>there
>> >>> and veryone and everything is referencing it.
>> >>>
>> >>> My question is:
>> >>> Are there ways (and which ones) to become member of facebook
>> >>> just to read and write to this user grout (like a mailinglist)
>> >>> and keep the impact on privacy an personal fingerprinting as
>> >>> small as ever possible?
>> >>>
>> >>> Every help is very appreciated!
>> >>> Cheers
>> >>> Meino
>> >>
>> >> Run a dedicated browser in a dedicated user account. This should
>isolate any tracking cookies from going into your main account.
>> >>
>> >> --
>> >> Joost
>> >> -- 
>> >> Sent from my Android device with K-9 Mail. Please excuse my
>brevity.
>> >>
>> > 
>> > Hi Joost,
>> > 
>> > thanks for your help.
>> > 
>> > Does "dedicated browser" means "Firefox -NewInstance -P
>Facebookprofle" or 
>> > does it mean "another browser than the installed firefox" ?
>> 
>> 
>> The latter.
>> 
>> Unless you are seriously paranoid and the NSA really is out to get
>you,
>> then use the former and more. But in that case you have much bigger
>> problems than wondering if the spammers will find you from facebook
>> 
>> -- 
>> Alan McKinnon
>> alan.mckin...@gmail.com
>> 
>> 
>
>Hi Alan,
>
>thanks a lot. No ... I am not interesting enough to be a target for the
>NSA and such...but...wait! Yesterday at 5:08 PM I have had a bit of an
>own opinion...
>
>Ok, you convinced me...tommorrow I will get a dedicated PC in a secyre
>house... ;)
>
>More seriously:
>Any browser you can recommend beside Firefox?
>Or is it more a "take one" thing?
>
>Cheers
>Meino

Take any.
If you run it from a seperate account (ssh -Y facebookuser@localhost ) you can 
stay with firefox. Just keep that one for facebook only.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] [OT] Being Facebook member: How to anon?

2017-10-22 Thread J. Roeleveld
On 22 October 2017 18:53:36 GMT+02:00, Dale  wrote:
>tu...@posteo.de wrote:
>> On 10/22 01:58, J. Roeleveld wrote:
>>> On 22 October 2017 10:50:01 GMT+02:00, tu...@posteo.de wrote:
>>>> Hi,
>>>>
>>>> for its invasive nature and its data gathering I really dont like
>>>> facebook. 
>>>>
>>>> And now it seems that I cant with out it:
>>>> There is a HUGE user group for the Creality CR-10 3D printer there
>>>> and veryone and everything is referencing it.
>>>>
>>>> My question is:
>>>> Are there ways (and which ones) to become member of facebook
>>>> just to read and write to this user grout (like a mailinglist)
>>>> and keep the impact on privacy an personal fingerprinting as
>>>> small as ever possible?
>>>>
>>>> Every help is very appreciated!
>>>> Cheers
>>>> Meino
>>> Run a dedicated browser in a dedicated user account. This should
>isolate any tracking cookies from going into your main account.
>>>
>>> --
>>> Joost
>>> -- 
>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>
>> Hi Joost,
>>
>> thanks for your help.
>>
>> Does "dedicated browser" means "Firefox -NewInstance -P
>Facebookprofle" or 
>> does it mean "another browser than the installed firefox" ?
>>
>> Cheers
>> Meino
>>
>
>I would think that would work.  I think I get where Joost is coming
>from. 
>
>Another thought, what about using Tor to make it so it can't track IPs
>as well?  Joost, you have a thought on that? 

I tried Tor once to see how it works. The network performance is too slow to be 
usable for something like Facebook.

--
Joost


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] [OT] Being Facebook member: How to anon?

2017-10-22 Thread J. Roeleveld
On 22 October 2017 10:50:01 GMT+02:00, tu...@posteo.de wrote:
>Hi,
>
>for its invasive nature and its data gathering I really dont like
>facebook. 
>
>And now it seems that I cant with out it:
>There is a HUGE user group for the Creality CR-10 3D printer there
>and veryone and everything is referencing it.
>
>My question is:
>Are there ways (and which ones) to become member of facebook
>just to read and write to this user grout (like a mailinglist)
>and keep the impact on privacy an personal fingerprinting as
>small as ever possible?
>
>Every help is very appreciated!
>Cheers
>Meino

Run a dedicated browser in a dedicated user account. This should isolate any 
tracking cookies from going into your main account.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] why zfs and friends want to update to 9999?

2017-10-11 Thread J. Roeleveld
On Wednesday, October 11, 2017 10:26:20 PM CEST Walter Dnes wrote:
> On Wed, Oct 11, 2017 at 05:34:48AM -0400, John Covici wrote
> 
> > Yep, I think you are correct, I had the  in package.keywords and
> > I think this is what made portage do that.  When I commented them out,
> > things are back to normal.
> 
>   Maybe portage inserted that entry itself.  If you want to prevent that
> in future, add the following line to make.conf ...
> 
> EMERGE_DEFAULT_OPTS="--autounmask=n"

This should be off by default.
My systems always ask me and I don't have the above set.

--
Joost




Re: [gentoo-user] why zfs and friends want to update to 9999?

2017-10-11 Thread J. Roeleveld
On Wednesday, October 11, 2017 11:34:48 AM CEST John Covici wrote:
> On Wed, 11 Oct 2017 04:50:20 -0400,
> 
> J. Roeleveld wrote:
> > On Wednesday, October 11, 2017 9:54:05 AM CEST John Covici wrote:
> > > Hi.  In my latest world update, I have sys-fs/zfs and friends at
> > > 0.7.1 and they all want to update to .  Does anyone know why this
> > > should be -- normally  is not in the normal update sequence.
> > > 
> > > I am using the unstable gentoo, updated about 3 weeks ago.  No harm
> > > has come yet, but I have not done the update till I can figure out
> > > what is happening here -- particularly if I need a rescue cd which is
> > > using zfs 0.7.1.
> > > 
> > > Thanks in advance for any ideas.
> > 
> > check your keywords, how did you unmask zfs?
> > 
> > Here are mine:
> > 
> > $ grep -r zfs /etc/portage
> > /etc/portage/sets/zfs:sys-fs/zfs
> > /etc/portage/sets/zfs:sys-fs/zfs-kmod
> > /etc/portage/package.keywords/zfs:=sys-fs/zfs-kmod-0.7.1 ~amd64
> > /etc/portage/package.keywords/zfs:=sys-fs/zfs-0.7.1 ~amd64
> > $ grep -r spl /etc/portage
> > /etc/portage/sets/zfs:sys-kernel/spl
> > /etc/portage/package.keywords/zfs:=sys-kernel/spl-0.7.1 ~amd64
> 
> Yep, I think you are correct, I had the  in package.keywords and I
> think this is what made portage do that.
> When I commented them out, things are back to normal.
> 
> Thanks again.

That might have happened automatically as portage tends to want to unmask the 
latest version if it can't find an unmasked version that matches requirements.

I always answer "no" to those requests and copy/paste the actual lines myself 
after checking they are really what I want.

--
Joost




Re: [gentoo-user] why zfs and friends want to update to 9999?

2017-10-11 Thread J. Roeleveld
On Wednesday, October 11, 2017 9:54:05 AM CEST John Covici wrote:
> Hi.  In my latest world update, I have sys-fs/zfs and friends at
> 0.7.1 and they all want to update to .  Does anyone know why this
> should be -- normally  is not in the normal update sequence.
> 
> I am using the unstable gentoo, updated about 3 weeks ago.  No harm
> has come yet, but I have not done the update till I can figure out
> what is happening here -- particularly if I need a rescue cd which is
> using zfs 0.7.1.
> 
> Thanks in advance for any ideas.

check your keywords, how did you unmask zfs?

Here are mine:

$ grep -r zfs /etc/portage
/etc/portage/sets/zfs:sys-fs/zfs
/etc/portage/sets/zfs:sys-fs/zfs-kmod
/etc/portage/package.keywords/zfs:=sys-fs/zfs-kmod-0.7.1 ~amd64
/etc/portage/package.keywords/zfs:=sys-fs/zfs-0.7.1 ~amd64
$ grep -r spl /etc/portage
/etc/portage/sets/zfs:sys-kernel/spl
/etc/portage/package.keywords/zfs:=sys-kernel/spl-0.7.1 ~amd64

--
Joost



Re: [gentoo-user] Borg 1.1 is out, when can we expect it in the repos?

2017-10-08 Thread J. Roeleveld
On Sunday, October 8, 2017 6:48:14 PM CEST Viktar Patotski wrote:
> Hi,
> 
> The proper to get it done is to submit an upgrade request to
> https://bugs.gentoo.org/ . And then even probably provide ebuild for
> maintainers to pick it up.
> 
> Best regards,
> Viktar
> 
> On Sun, Oct 8, 2017 at 7:36 PM, azarus  wrote:
> > Hi,
> > 
> > there's a new release of Borg (app-backup/borgbackup) out, and I was
> > wondering when it'd arrive in the Gentoo repos. I've tested it a bit on
> > my Gentoo boxes (manually edited an ebuild for that) and it runs
> > perfectly fine.
> > 
> > Thanks for the information!
> > 
> > Best regards,
> > --
> > azarus
> > email: aza...@posteo.net
> > xmpp:  aza...@azarus.ch
> > PGP:   3A79D6CFD2567CF9

If that is picked up by a developer, then yes.
My experience with providing bugs with ebuilds is that they get closed 
eventually due to open security bugs (fixed in supplied versions for a few 
years) and lack of maintainership.

--
Joost




Re: [gentoo-user] {OT?} which fs on 1.8TB partition

2017-10-07 Thread J. Roeleveld
On Saturday, October 7, 2017 6:13:57 PM CEST Neil Bothwick wrote:
> On Sat, 07 Oct 2017 14:59:39 +0200, J. Roeleveld wrote:
> > > Although, I will also be switching to dovecot's mdbox format when I
> > > set up my next server, so the issue of lots of small files won't be
> > > nearly as big.
> > 
> > mdbox? Is this a single file per mail folder?
> 
> It's multiple mails per file and multiple files per mailbox.
> 
> > The main reason I switched to maildir several decades ago was precisely
> > the issues (by design) mbox has.
> > A single corrupted email WILL kill the entire folder.
> 
> https://wiki2.dovecot.org/MailboxFormat/dbox

Interesting, but I still consider multiple emails inside a single file a recepy 
for disaster.

The following is another cause for concern:
"This also means that you must not lose the dbox index files, they can't be 
regenerated without data loss. "

--
Joost



Re: [gentoo-user] {OT?} which fs on 1.8TB partition

2017-10-07 Thread J. Roeleveld
On Saturday, October 7, 2017 11:28:08 AM CEST Tanstaafl wrote:
> On 10/6/2017, 2:12:00 PM, J. Roeleveld  wrote:
> > I had a large partition with reiserfs.
> > Running fsck always failed due to running out of memory.
> > 
> > Partition was quite a bit larger than 2TB (around 6TB) and contained
> > a huge (millions) amount of files, > but having an fsck become
> > impossible with 16GB memory available was rather annoying.
> 
> Ah, yes, I had a similar problem occasionally when a user would decide
> to delete (or move to a different folder) a bunch (as many as tens of
> thousands) of messages at once... Thunderbird would go non responsive,
> and the server was brought to its knees. I'd have to kill their server
> processes, and then the user would end up with a bunch of duplicate
> messages in their maildirs.
> 
> Very annoying.

Actually, I used to do this a lot using a webmail client (when I was still 
able to run squirrelmail without having to change back to an old PHP version) 
and never actually had any issues with this.
Neither with reiserfs or ext4.

I would put that down to either hardware or issues with the chosen IMAP-
server. For reference: I have been using Cyrus for a very long time.

--
Joost



Re: [gentoo-user] {OT?} which fs on 1.8TB partition

2017-10-07 Thread J. Roeleveld
On Saturday, October 7, 2017 11:18:33 AM CEST Tanstaafl wrote:
> On 10/6/2017, 8:53:27 AM, Philip Webb  wrote:
> > 171005 christos kotsis wrote:
> >> I just noticed that ReiserFS has significant performance
> >> over ext3, 4 when dealing with small files.
> > 
> > I've long relied on ReiserFS for everything except  /boot
> > & have never had any problems with my files or drives.
> > I have many small files + a few big PDFs -- perhaps  c 20 MB ea  --
> > & the big ones simply stay where I put them, so no changes to handle.
> 
> I used ReiserFS for many - 8+ - years on our old mail server, selected
> for its performance with large numbers of small (maildir) files, and
> never had a problem.

Same here, apart from that one partition where the fsck never worked.

> But during the last rebuild when virtualizing everything, sometime
> around 2012, I switched to XFS, and believe I saw a performance gain,
> and no more long fsck's during the rare reboots... and again, no problems.

My last rebuild was earlier this year, my mail had already been migrated to 
ext4 without issues. (Did not notice any performance issues)

> Personally, I can't wait until btrfs is fully ready/stable, and have
> been considering FreeBSD (or FreeNAS) just for ZFS, for the reliability
> factor, but have wondered about performance for mail servers.
> 
> Anyone have any experience with comparing performance with either btrfs
> or ZFS against either ReiserFS or XFS for a maildir based mail server?

My mailserver (Cyrus) uses ext4 for the mailboxes.
This is on a partition which is accessed via iSCSI.
Which is a zvol on a ZFS pool.

Eg: disks <-> ZFS <-> zvol <-> iSCSI <-> ext4

I am not noticing any significant performance issues, the ones I am can be 
resolved by adding a dedicated SLOG en L2ARC, but this will only help the 
systems hanging in the rack as those are connected with a 20Gbe link. Rest of 
the systems won't get more than 1Gbe.

I have several large mailboxes:
- postgresql-hackers = 195,000 items
- gentoo-user = 240,000 items
- Xen-devel = 366,000 items

The others are below 100,000.
I use these as archives and regularly search through these before reverting to 
Google or asking on the relevant mailing lists.

> Although, I will also be switching to dovecot's mdbox format when I set
> up my next server, so the issue of lots of small files won't be nearly
> as big.

mdbox? Is this a single file per mail folder?
The main reason I switched to maildir several decades ago was precisely the 
issues (by design) mbox has.
A single corrupted email WILL kill the entire folder.

--
Joost



Re: [gentoo-user] {OT?} which fs on 1.8TB partition

2017-10-06 Thread J. Roeleveld
On 5 October 2017 22:45:50 GMT+02:00, christos kotsis  
wrote:
>I just noticed that ReiserFS has significant performance over ext3, 4
>when
>dealing with small files.
>
>On 5 Oct 2017 11:32 pm, "christos kotsis" 
>wrote:
>
>If the big data are used often,and I/O performance is desirable, then I
>would go for two partitions.
>One would be either ext3 or ext4, with huge block size, while the
>second
>could be one of two with small block size(minimum 1024).
>
>
>On 5 Oct 2017 10:46 pm,  wrote:
>
>Hi,
>
>Installing gentoo on new laptop and it has 2TB disk. I want to use
>1.8TB
>for data where will be big files and also huge amount of small files,
>thus
>I want to ask which FS is best for this. Until now I've used reiserfs
>on
>cca 0.5TB partition, but I don't know if it's also good choice for that
>big
>partition.
>
>I've thought about zfs, but I don't need snapshots and such stuff
>mostly
>scaling is requirement.
>
>Thanks
>
>Pat
>
>
>Freehosting PIPNI - http://www.pipni.cz/

I had a large partition with reiserfs.
Running fsck always failed due to running out of memory.

Partition was quite a bit larger than 2TB (around 6TB) and contained a huge 
(millions) amount of files, but having an fsck become impossible with 16GB 
memory available was rather annoying.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM

2017-10-04 Thread J. Roeleveld
On Tuesday, October 3, 2017 1:38:46 PM CEST Tanstaafl wrote:
> On 10/2/2017, 11:52:21 PM, R0b0t1  wrote:
> > As long as your kernel has the appropriate drivers (i.e. you didn't
> > include only the virtualized Xen drivers and left most of the default
> > options intact) it should boot under QEMU/KVM or even on a bare metal
> > system.
> 
> Hmmm, something else I just remembered when I noticed my production
> server is running a 32 bit kernel...
> 
> A long time ago, maybe 6 or 7 years, something weird happened when
> Linode had some kind of problem (maybe it was another one of their
> maintenance processes, I don't recall), I had a heck of a time getting
> it back up, I finally had to do a full rebuild, and distinctly remember
> changing to a 32 bit kernel during the process, but never changed back.
> 
> Do I need to do a full system rebuild to change back to the 64 bit kernel?

A 32bit userspace can run with either a 32bit or 64bit kernel.
A 64bit userspace can NOT run with a 32bit kernel.

As you currently have a 32bit kernel, I am assuming a 32bit userspace. A 64bit 
kernel should not cause issues.

> Also, I haven't played with Linodes 'System Profiles' at all - I was
> thinking I'd just create a new profile, add my Gentoo System Image and a
> swap image to it, but assign the 64 bit kernel, then if it doesn't work,
> switch back. Should I be able to do that without causing any problems to
> the current/working profile?

I have no experience with Linode. Can't they assist with this?

Personally, having a forced change like this would make me reconsider the 
hosting partner.

--
Joost



Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM

2017-10-04 Thread J. Roeleveld
On Monday, October 2, 2017 11:17:46 PM CEST Tanstaafl wrote:
> On 10/2/2017, 4:03:37 PM, Tanstaafl  wrote:
> > On 10/2/2017, 2:39:51 PM, Stroller  wrote:
> >>> On 2 Oct 2017, at 18:30, Tanstaafl  wrote:
> >>> 
> >>> One thing I do seem to recall is there was somewhere that I had to
> >>> define Xen as the virtualization environment being used, but I can't
> >>> remember where I did that. Was that in the kernel config? If so, their
> >>> tool should (hopefully) handle that change.
> >> 
> >> See last lines:
> >> 
> >> ~ $ grep -B 25 -ie xen -ie kvm /etc/rc.conf
> > 
> > 
> > 
> >> # "xen0"   - Xen0 Domain (Linux and NetBSD)
> >> # "xenU"   - XenU Domain (Linux and NetBSD)
> >> ~ $
> >> 
> >> This on a Linode host, BTW. They haven't told me I need to do anything,
> >> so I hope I'm ok.
> >> 
> >> HTH,
> > 
> > Thanks! Yes, at least now I know where that was specified... and since
> > there is nothing there for kvm, I guess you just leave it commented,
> > BUT...
> > 
> > yours doesn't appear to be set?? Mine is set to "xenU".
> 
> Also, yours shows 12 different choices, mine only shows 8:
> 
> 
> ## # LINUX SPECIFIC OPTIONS
> 
> # This is the subsystem type. Valid options on Linux:
> # ""- nothing special
> # "lxc" - Linux Containers
> # "openvz"  - Linux OpenVZ
> # "prefix"  - Prefix
> # "uml" - Usermode Linux
> # "vserver" - Linux vserver
> # "xen0"- Xen0 Domain
> # "xenU"- XenU Domain
> # If this is commented out, automatic detection will be used.
> #
> 
> Wonder why that is?

These got updated at some point.
For Xen-guest, I specify:
# rc_sys="xenU"
for KVM guests (got 2 running in the "cloud"):"
# rc_sys=""

If 'rc_sys' is not set, openrc tries to auto-detect.
If it is set, it will not auto-detect and use whatever you specified.

--
Joost



Re: [gentoo-user] My Gentoo and Windows don't get along on vfat

2017-09-22 Thread J. Roeleveld
On Friday, September 22, 2017 12:56:01 PM CEST Frank Steinmetzger wrote:
> He guys,
> 
> I regularly attach a friend’s external HDD to my laptop or NAS, both running
> “standard” Gentoo. The main partition is fat32 formatted. On and off she
> has problems mounting the drive, usually after I had it connected to one of
> my machines.
> 
> It happened again today. So chronologically:
> 1) Someone else attached the drive to his Windows 10 laptop and put a few
>Gigs into a single folder.
> 2) Then I attached it to my NAS, which didn’t even create a device for it. I
> read some hardware error in the system log.
> 3) I attached it to my laptop. It also showed the error message (see below),
> but it did create a device and I could mount the data partition.
> 
> Sep 22 12:14:53 kern kernel: sd 7:0:0:0: [sdd] tag#0 FAILED Result:
> Sep 22 12:14:53 kern kernel: sd 7:0:0:0: [sdd] tag#0 FAILED Result:
> hostbyte=DID_ERROR driverbyte=DRIVER_SENSE Sep 22 12:14:53 kern kernel: sd
> 7:0:0:0: [sdd] tag#0 Sense Key : Hardware Error [current] [descriptor] Sep
> 22 12:14:53 kern kernel: sd 7:0:0:0: [sdd] tag#0 Add. Sense: No additional
> sense information Sep 22 12:14:53 kern kernel: sd 7:0:0:0: [sdd] tag#0 CDB:
> ATA command pass through(16) 85 06 20 00 00 00 00 00 00 00 00 00 00 00 e5
> 00
> 
> 
> When I had the drive hooked to my laptop in 3), I was shuffling stuff around
> on it (mostly copying and deleting a few files from the folder mentioned in
> 1) and renaming files in other places). Today she left me a note saying her
> Windows needed to check the drive and now that folder was missing. I found
> that  Windows “recovered” its contend into /FOUND.001 with all filenames
> lost. m(
> 
> Naturally, I always unmount the drive prior to removing it physically,
> usually with KDE’s media manager. The drive (or the controller in the case?)
> contains a cdrom emulation to offer drivers and something called “WD
> SmartWare”. *shiver* I always wonder whether this plays a part with our
> problems. When the drive is connected to Windows – IIRC – first the cdrom
> appears, and after a while disappears and makes way for the actual data
> partition.

aargh...
I stopped using those WD drives, if you want to disable that part, follow 
instructions on the WD support page:
https://support.wdc.com/knowledgebase/answer.aspx?ID=3835
(If this works)

> Do you have similar experiences and maybe even a tip on how to make her and
> my systems play along better? The only thing coming to my mind right now is
> to ditch fat32 and go with something more robust like exfat(?) or ntfs.

As mentioned, I stopped using drives like that. Never did encounter similar 
issues, but then I only used those with MS Windows systems in the past.

My guess is, you unmount the cd-partition, instead of the actual data 
partition. The broken firmware in those drives cause issues with the drivers, 
which is what that "cdrom" partition actually tries to fix.

Best advice: Scrap that drive and get one without the cdrom-partition.

I use WD Elements drives, these don't come with that cr*p.


--
Joost




Re: [gentoo-user] Sendmail confused by network change

2017-09-20 Thread J. Roeleveld
On Wednesday, September 20, 2017 6:50:54 PM CEST Bas Zoutendijk wrote:
> Dear John,
> 
> On Wed 20 Sep 2017 at 07:05:11 -0400, John Covici wrote:
> > Restarting sendmail seems fine with me, if you want to have something
> > that works everywhere, why not get a domain name from ddns or
> > somewhere and use a full fqdn all the time -- you can put  your home
> > machine on another host in that domain and you will be good to go.
> 
> Thank you for  this suggestion.  I added ‘.localdomain’ to  my host name
> and now Sendmail  uses  this  domain  name  on  all networks.  Cron mail
> arrives again at home.

Glad it works now.

> I did  not want to  try a ‘real’  domain name,  as  this could  make the
> system  accessible  from outside  the  local  network,  if  I understand
> correctly.

To say it bluntly, you don't :)

> Right now  it is  hidden behind  the router  and only  has a
> local IP address.  I would like to  keep it that way,  because then I do
> not have to worry about network security settings.  Nevertheless you led
> me to a solution.

This is how it works.

To clarify:
The IP-address determines how it is accessible. If the IP is not accessible 
from the rest of the world, then you don't have to worry too much about 
securing your mailserver.

The domain name is only an address-book entry. Unless it is fully entered into 
the public one, noone will see the IP you are using. And as mentioned above, 
even if they can, the IP is sitting behind a router and is most likely in a 
private range.

--
Joost



Re: [gentoo-user] Re: Unlocking Plasma desktop in Gentoo without systemd

2017-09-13 Thread J. Roeleveld
On Tuesday, September 12, 2017 2:13:32 PM CEST Michael Palimaka wrote:
> On 09/12/2017 05:04 AM, Daniel Frey wrote:
> > According to a comment in the bug, you can try to figure out which
> > session it is (ck-list-sessions) and look for the X11 display property
> > set. This will not work (or could be difficult) if you have several
> > users using KDE at the same time and can't tell the sessions apart.
> > 
> > Once you figure that out, remember the session name and:
> > 
> > # su -c 'dbus-send --system --print-reply \
> > --dest="org.freedesktop.ConsoleKit" \
> > 
> >  /org/freedesktop/ConsoleKit/ \
> > 
> > org.freedesktop.ConsoleKit.Session.Unlock'
> 
> If there a nice way to wrap this up in a script I'd be interesting in
> shipping this for non-logind systems.

There is:
joost@eve ~ $ cat /usr/local/bin/unlock-screens.sh 
ck-list-sessions | grep Session | sed 's/\(.*\):/dbus-send --system --print-
reply --dest\=\"org.freedesktop.ConsoleKit\" \/org\/freedesktop\/ConsoleKit\/
\1 org.freedesktop.ConsoleKit.Session.Unlock/' | sh

joost@eve ~ $ cat /usr/local/bin/lock-screens.sh 
ck-list-sessions | grep Session | sed 's/\(.*\):/dbus-send --system --print-
reply --dest\=\"org.freedesktop.ConsoleKit\" \/org\/freedesktop\/ConsoleKit\/
\1 org.freedesktop.ConsoleKit.Session.Lock/' | sh


I build these when I encountered this same issue nearly a year ago. I run them 
as "root" and they will (un)lock ALL X-sessions.

> Another option is sys-auth/elogind, which provides the logind interface
> and tools (like loginctl) for non-systemd systems. This is what I've
> been testing with OpenRC for some time.

If it works better, I have no issue with it being pulled in.

> I read that ConsoleKit is also supporting the logind dbus interface now.
> This would in theory make it easy to create a tool to unlock the
> session, but I haven't had a chance to test it yet.

Better solutions are always welcome.

--
Joost



Re: [gentoo-user] Rename /dev/nvme0n1 to /dev/sda

2017-09-04 Thread J. Roeleveld
On 4 September 2017 17:00:30 GMT+02:00, Grant  wrote:
>>> My new laptop uses /dev/nvme0n1 instead of /dev/sda which
>conflicts
>>> with the script I use to manage about 12 similar laptops running
>>> Gentoo.  Is there a udev method for renaming the disk that will
>work
>>> well with any USB disks that happen to also be attached?
>>
>> I'm not certain what you mean by that, but I would guess that you
>want
>> the nvme disk to show up as /dev/sda, and the USB disk(s) to show
>up
>> as /dev/sd[b-z].
>>
>> It is not possible to accomplish this using udev; the kernel owns
>the
>> /dev/sdX device namespace, and will sequentially create devices
>nodes
>> for SCSI-like block devices using that namespace. There is no way
>to
>> change that using a udev rule.
>
>
> Can I rename /dev/sda to /dev/sd[b-z] if it's attached via USB,
>and
> then rename /dev/nvme0n1 to /dev/sda if /dev/nvme0n1 exists?
>
> Alternatively, can I rename /dev/sda to /dev/sd[b-z] if /dev/sda
>and
> /dev/nvme0n1 exist, and then rename /dev/nvme0n1 to /dev/sda if
> /dev/nvme0n1 exists?

 You might technically be able to do it, but I would guess it would
 cause some nasty race conditions between the kernel and udev. It's
>a
 bad idea.
>>>
>>>
>>> Is it the conditionals that cause this to be a bad idea?  Because I
>>> believe udev has functionality designed to rename devices exactly
>like
>>> this.
>>
>> udev doesn't provide any functionality to rename device nodes. You
>can
>> adjust their permissions, and create symlinks, but there is no direct
>> way to rename them.
>
>
>I use stuff like this to rename my USB devices and it works perfectly:
>
>SUBSYSTEM=="net", ACTION=="add", ENV{ID_NET_NAME_PATH}=="enp0s20u2u1",
>NAME="net0"
>
>Isn't this a true rename of the device node?
>
>- Grant

For network devices I tend to use the MAC addresses.

USB devices get a different name if you plug it into a different port.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Rename /dev/nvme0n1 to /dev/sda

2017-09-03 Thread J. Roeleveld
On 3 September 2017 20:11:51 GMT+02:00, "Canek Peláez Valdés" 
 wrote:
>On Sun, Sep 3, 2017 at 7:59 PM, Grant  wrote:
>>
>> >> My new laptop uses /dev/nvme0n1 instead of /dev/sda which
>conflicts
>> >> with the script I use to manage about 12 similar laptops running
>> >> Gentoo.  Is there a udev method for renaming the disk that will
>work
>> >> well with any USB disks that happen to also be attached?
>> >>
>> >> crw--- 1 root root 252, 0 Aug 31 11:34 /dev/nvme0
>> >> brw-rw 1 root disk 259, 0 Aug 31 11:34 /dev/nvme0n1
>> >> brw-rw 1 root disk 259, 1 Aug 31 11:34 /dev/nvme0n1p1
>> >> brw-rw 1 root disk 259, 2 Aug 31 11:34 /dev/nvme0n1p2
>> >
>> > Isn't so much easier to use labels? Those are automatically
>available on
>> > /dev/disk/by-label, and you can use them in basically any type of
>partition,
>> > including Windows (NTFS and vfat) and swaps.
>>
>>
>> Do labels work with root= in grub and stuff like dd, fdisk, and mkfs?
>
>The label by itself works at boot since it's just another kernel
>parameter;
>for example in my latop (that uses NVME, by the way) uses the following
>in
>the kernel command line: "root=LABEL=Dell".

Since when does the kernel support labels? Last time I checked, you need an 
initramfs to make that work.

--
Joost 



-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Re: High resolution on a 13 inch screen

2017-09-01 Thread J. Roeleveld
On Friday, September 1, 2017 7:28:48 PM CEST Mart Raudsepp wrote:
> Ühel kenal päeval, R, 01.09.2017 kell 10:16, kirjutas Grant:
> > > My laptop's 13" screen has a native resolution of 3200x1800 which
> > > makes everything crazy small on-screen.  Is there a good method for
> > > telling Xorg or xfce4 to compensate, or should I one-at-a-time my
> > > applications?  I can adjust the resolution down but it makes the
> > > colors look weird.
> > 
> > After some more research, it turns out this is a pretty well-known
> > problem on the Linux desktop (it's called HiDPI) without a good
> > solution... except for this:
> > 
> > https://forums.linuxmint.com/viewtopic.php?t=159064
> > https://bugs.freedesktop.org/show_bug.cgi?id=94816
> > 
> > The solution is to patch xrandr with the capability to do nearest
> > neighbor filtering and run xrandr like this:
> > 
> > xrandr --output eDP1 --mode "3200x1800" --scale "0.5x0.5"
> > 
> > It works great.
> 
> I don't see how it can be called great. This is pretty much losing most
> of the benefits you have with a HiDPI screen, by just making it be
> almost the same as a 1600x900 screen, except the scaling involves some
> nearest neighbor filtering, which sometimes might be good, sometimes
> bad, and never as good as rendering things in HiDPI.
> 
> For HiDPI you want the toolkit to support it properly and configure it
> as such. GTK+3 is such a toolkit, but outside of GNOME (where it works
> out of the box), I don't know what exactly it takes to set things up.
> Plus you'll need a solution for your gtk2/whatever other things,
> preferably one that doesn't make things worse for gtk3 things, like
> that xrandr hack does.
> 
> Probably something like
> gsettings set org.gnome.desktop.interface scaling-factor 2
> combined with something for the other stuff that doesn't mess with the
> former.
> Outside GNOME, maybe exporting GDK_SCALE=2 works, if the dconf setting
> isn't honored outside it.

In KDE/Plasma there is a scaling setting in the display section. 
The scales go from 1 to 3 (in steps of 0.1)

Seems to work, I don't need it on my displays as I tend to simply increase the 
font-sizes where necessary.

--
Joost



Re: [gentoo-user] Failed to load driver: Nouveau

2017-08-29 Thread J. Roeleveld
On 29 August 2017 15:22:02 GMT+02:00, IceAmber  wrote:
>here is the outputs
>
>iceamber@localhost:~ $ LIBGL_DEBUG=verbose glxgears
>libGL: OpenDriver: trying /usr/lib64/dri/tls/nouveau_dri.so
>libGL: OpenDriver: trying /usr/lib64/dri/nouveau_dri.so
>nvc0_screen_create:944 - Error allocating PGRAPH context for 3D: -22
>libGL error: failed to create dri screen
>libGL error: failed to load driver: nouveau
>libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so
>libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
>libGL: Can't open configuration file /home/iceamber/.drirc: No such
>file or
>directory.
>libGL: Can't open configuration file /home/iceamber/.drirc: No such
>file or
>directory.
>
>
>On Tue, Aug 29, 2017 at 9:35 AM, Alexander Kapshuk <
>alexander.kaps...@gmail.com> wrote:
>
>> On Mon, Aug 28, 2017 at 7:41 PM, Alexander Kapshuk
>>  wrote:
>> > On Mon, Aug 28, 2017 at 6:30 PM, IceAmber 
>> wrote:
>> >> here is the result
>> >>
>> >> iceamber@localhost:~ $ lsmod | grep nouveau
>> >> nouveau  1507328  2
>> >> i2c_algo_bit   16384  1 nouveau
>> >> drm_kms_helper118784  1 nouveau
>> >> ttm77824  1 nouveau
>> >> drm   282624  5 nouveau,ttm,drm_kms_helper
>> >> agpgart32768  3 nouveau,ttm,drm
>> >> led_class  16384  3 input_leds,hid_sony,nouveau
>> >>
>> >>
>> >
>> > Your nouveau kernel driver seems to be OK. That's good news.
>> > The bad news is we're back to square one.
>> >
>> > It was glxinfo, which is a part of x11-apps/mesa-progs, that
>generated
>> > the original error message.
>> > So, perhaps, it is a mesa problem.
>> >
>> > Can you please try this command line and see what it outputs:
>> > LIBGL_DEBUG=verbose glxgears
>>
>> This reference may help better debug your problem:
>> https://nouveau.freedesktop.org/wiki/MesaDrivers/
>>
>>

Are you in the 'video' group?

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Simplest NTP client for standalone system?

2017-08-29 Thread J. Roeleveld
On 29 August 2017 14:52:45 GMT+02:00, Stroller  
wrote:
>Hello,
>
>Any recommendations for a simple NTP client?
>
>I was surprised to find the clock wrong when I logged into one of my
>systems today.
>
>On another system I have net-misc/ntp installed. On it I have:
>
>  $ ls -1 /etc/runlevels/default/*ntp*
>  /etc/runlevels/default/ntp-client
>  /etc/runlevels/default/ntpd
>  $ 
>
>I *think* this is because ntp-client is designed not to make large
>adjustments, so ntpd is run at startup in case the clock is too far
>out.
>
>Ideally I'd like a program that performs both roles. 
>
>Thanks in advance for any suggestions,
>
>Stroller.

I switched over to chrony some time ago and it actually does what I would 
logically expect ntpd to do.

It's in portage.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Easiest way to block domains?

2017-08-29 Thread J. Roeleveld
On 29 August 2017 08:53:16 GMT+02:00, Walter Dnes  wrote:
>On Tue, Aug 29, 2017 at 05:41:53AM +0000, J. Roeleveld wrote
>
>> Look into proxy servers.
>> I think privoxy should be able to do the trick.
>
>  Looking at the /usr/portage/net-proxy directory, I see several proxy
>programs.  I checked the privoxy man page at linux.die.net and it
>mentions that some features are not available under https.  Is this a
>privoxy limit, or is it a limitation of proxies in general?
>
>  Is "tinyproxy" noticeably simpler than privoxy?  My main requirement
>is to block a list of domains.  Is it possible for a proxy to edit a
>webpage on-the-fly, so that references to unwanted URLs are stripped
>out, and the browser doesn't waste time trying to download from a
>blocked adserver?

Checked the FAQ, blocking by host pattern will work. Blocking by content of the 
page will not.

For blocking ads, this will be sufficient.
If you want to block pages because it mentions cats or other suspicious words, 
https will not work as the data is encrypted.

--
Joost 
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Easiest way to block domains?

2017-08-29 Thread J. Roeleveld
On 29 August 2017 08:53:16 GMT+02:00, Walter Dnes  wrote:
>On Tue, Aug 29, 2017 at 05:41:53AM +0000, J. Roeleveld wrote
>
>> Look into proxy servers.
>> I think privoxy should be able to do the trick.
>
>  Looking at the /usr/portage/net-proxy directory, I see several proxy
>programs.  I checked the privoxy man page at linux.die.net and it
>mentions that some features are not available under https.  Is this a
>privoxy limit, or is it a limitation of proxies in general?
>
>  Is "tinyproxy" noticeably simpler than privoxy?  My main requirement
>is to block a list of domains.  Is it possible for a proxy to edit a
>webpage on-the-fly, so that references to unwanted URLs are stripped
>out, and the browser doesn't waste time trying to download from a
>blocked adserver?

Not sure about that. But did you check the main page? (www.privoxy.org)

--
Joost 
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



<    1   2   3   4   5   6   7   8   9   10   >