Re: [gentoo-user] USB mouse disconnecting

2019-01-13 Thread R0b0t1
The most likely cause is a poor electrical connection. How quickly
they wear depends on the types of devices you buy as well as your
ports.

The reason it seems like an electrical problem is the descriptor read
errors. If it was power management the device should cleanly cycle.

Cheers,
R0b0t1

On Sun, Jan 13, 2019 at 1:30 PM Pouru Lasse  wrote:
>
> For the past few weeks I've had strange issues with my USB mouse
> randomly disconnecting and reconnecting right afterwards. At first I
> thought it might be the USB port dying, but it happens with multiple USB
> ports (both USB 2 and 3) and two different Logitech mice. I haven't
> noticed any issues with other USB devices.
>
> Is this more likely a hardware or a software problem? I'm on kernel
> 4.14.83 and I'm pretty sure the problems didn't start right after the
> update, although it's hard to tell because the disconnects seem
> completely random and don't even happen every day. Dmesg output looks
> something like this, sometimes with multiple disconnects in a row, with
> the device number being incremented each time:
>
> [41235.377257] usb 3-2: USB disconnect, device number 17
> [41235.645027] usb 3-2: new low-speed USB device number 18 using xhci_hcd
> [41235.778228] usb 3-2: New USB device found, idVendor=046d, idProduct=c01e
> [41235.778232] usb 3-2: New USB device strings: Mfr=1, Product=2, 
> SerialNumber=0
> [41235.778234] usb 3-2: Product: USB-PS/2 Optical Mouse
> [41235.778236] usb 3-2: Manufacturer: Logitech
> [41235.783149] input: Logitech USB-PS/2 Optical Mouse as 
> /devices/pci:00/:00:14.0/usb3/3-2/3-2:1.0/0003:046D:C01E.001A/input/input41
> [41235.783504] hid-generic 0003:046D:C01E.001A: input,hidraw0: USB HID v1.10 
> Mouse [Logitech USB-PS/2 Optical Mouse] on usb-:00:14.0-2/input0
>
> Less often there are also errors like:
>
> [13844.911317] usb 3-2: device not accepting address 15, error -71
> [13844.911362] usb usb3-port2: unable to enumerate USB device
>
> and:
>
> [42555.126541] usb 3-2: reset low-speed USB device number 18 using xhci_hcd
> [42555.382373] usb 3-2: device descriptor read/64, error -71
> [42555.763574] usb 3-2: device descriptor read/all, error -71
> [42556.022536] usb 3-2: reset low-speed USB device number 18 using xhci_hc
>
> Usually the mouse starts working again right away, but sometimes I need
> to switch it to another port despite it being visible in lsusb. This, I
> guess, has something to do with the device number changing.
>
> One thing I suspected was USB power management, but as far as I know I
> haven't enabled any such options, at least not on purpose.
>
> - Lasse
>



[gentoo-user] Re: Thank you for your insight.

2018-12-28 Thread R0b0t1
Thank you for the response, though I feel you don't address my
question. Happily though, I spoke with an acquaintance and it was
determined that the subservience to the license (i.e. agreeing to be
bound by the GPL2) could not be offered as consideration as its
restrictions were not the licensee's to offer at the time of
acceptance of the license. The licensee had no rights to offer as part
of the contract, as the contract had not yet given them any rights to
give up. The terms put forth by the GPL2 are only restrictions that
are part of the license.

Furthermore, as stated above, it should seem quite self referential -
I can't offer my acceptance of a license as consideration, because it
is what I am trying to accept.

As I am sure you are aware, under US law there is no contract if both
sides have not provided consideration. This leaves us in the strange
place of gratis licenses being suggestions.

Cheers,
R0b0t1

On Fri, Dec 28, 2018 at 12:47 PM  wrote:
>
> Thank you for your insight.
>
> It is a shame that there were no responses. They ignored your post, then
> kept baying at me: "no this is wrong" "you're not a lawyer" "I will not
> lower myself to refute you with arguments!".
>
> As for non-monetary consideration to support an additional no-revocation
> term:
> Many of the old linux-kernel (programmer)rights-holders have received
> nothing, and have made no such promise.
> Many of the contributors (who did not transfer their rights) have
> received nothing.
>
> There is nothing to uphold the contention that they have forfeited their
> default right to rescind license to their property.
> They never made such a promise, they were never paid for such a promise,
> they never contracted for such, etc.
>
> They wrote code, licensed it gratuitously,
> and now an attempt is being made to both control their speech, their
> action, and to basically convert their property.
>
> Most of the entities who have been licensed the works have neither paid
> anything to the various rights-holders,
> nor have they ever contacted nor been contacted by the various
> rights-holders, etc.
>



Re: [gentoo-user] Re: Yes: The linux devs can rescind their license grant. GPLv2 is a bare license and is revocable by the grantor.

2018-12-27 Thread R0b0t1
Apologize for the follow up:

Not being able to rescind the license is like saying someone who was
lent a lawnmower gets to keep it indefinitely with no contest because
the person who lent it can't rescind the grant to the lawnmower.

On Thu, Dec 27, 2018 at 9:39 PM R0b0t1  wrote:
>
> This was cross posted so many places I have to preface: I got here
> from the Gentoo list. If this only makes it to the crossposter forward
> or follow up on the information as you see fit.
>
> The post is crass but still has technical merit. More importantly he
> seems to be right, the idea that the grantees can't rescind their
> grant is pretty strange. I'm allowed to change my mind, and you have
> no claim to my labor if you didn't pay for it, nor can you make me
> work for free.
>
> On Thu, Dec 27, 2018 at 9:16 PM  wrote:
> >
> > > (2) ... (I am not going to go over the legal mistakes you've made,
> > > because of (1))...
> >
> > I have not made legal mistakes, pompous programmer asshole*.
> >
> > A gratuitous license, absent an attached interest, is revocable at will.
> >
> > This goes for GPLv2 as used by linux, just as it goes for the BSD
> > license(s).
> > The only entities who have, with regards to BSD, an attached interests
> > are perhaps those companies who pay for its development. Non-gratis
> > (paying) customers
> > may have some refuge under consumer protection statutes, for current
> > versions they have
> > in their posession, paid for by good consideration.
> >
>
> 
> There is one thing you get for free (that you probably had anyway):
>
> I was seeing whether or not the disclaimer of liability in most FOSS
> licenses was valid. They may not be, *especially* in those United
> States which require a guarantee of merchantability or suitability for
> a particular purpose.
>
> Read: You made it, you claim it does something, and if someone uses it
> and it *doesn't* do that thing explosively it's still your fault even
> if it was free. The amount of damages are definitely tempered by the
> fact it was free. Depending on the license, state, and judge, you
> could have given consideration even though you did not pay money.
> 
>
> > Everyone else has NOTHING.
> > Do you understand that?
> >
>
> I think it is important to clarify that it can be requested you stop
> distributing the work or stop using it for some commercial purpose,
> but there is no way you could e.g. be forced to delete copies of it
> you already have.
>
> Also: Consideration can be nonmonetary, can you speak to this?
>
> Cheers,
> R0b0t1
>
> > [... snip anger ...]
> >
> > On 2018-12-24 16:01, Raul Miller wrote:
> > > (1) Wrong mailing lists - these are not linux mailing lists.
> > >
> > > (2) ... (I am not going to go over the legal mistakes you've made,
> > > because of (1))...
> > >
> > > (3) Anyways, ... people do make mistakes... But, please stop making
> > > these mistakes.
> > >
> > > Thanks,
> > >
> > > --
> > > Raul
> > >
> > > On Mon, Dec 24, 2018 at 10:55 AM  wrote:
> > >>
> > >> Bradley M. Kuhn: The SFConservancy's new explanation was refuted 5
> > >> hours
> > >> after it was published:
> > >>
> > >>
> > >>
> > >>
> > >> Yes they can, greg.
> > >>
> > >> The GPL v2, is a bare license. It is not a contract. It lacks
> > >> consideration between the licensee and the grantor.
> > >>
> > >> (IE: They didn't pay you, Greg, a thing. YOU, Greg, simply have chosen
> > >> to bestow a benefit upon them where they suffer no detriment and you,
> > >> in
> > >> fact, gain no bargained-for benefit)
> > >>
> > >> As a bare license, (read: property license), the standard rules
> > >> regarding the alienation of property apply.
> > >>
> > >> Therein: a gratuitous license is revocable at the will of the grantor.
> > >>
> > >> The licensee then may ATTEMPT, as an affirmative defense against your
> > >> as-of-right action to claim promissory estoppel in state court, and
> > >> "keep you to your word". However you made no such promise disclaiming
> > >> your right to rescind the license.
> > >>
> > >> Remeber: There is no utterance disclaiming this right within the GPL
> > >> version 2. Linus, furthermore, has chosen both to exclude the "or any
> > >> later version" codicil, to re

Re: [gentoo-user] Re: Yes: The linux devs can rescind their license grant. GPLv2 is a bare license and is revocable by the grantor.

2018-12-27 Thread R0b0t1
This was cross posted so many places I have to preface: I got here
from the Gentoo list. If this only makes it to the crossposter forward
or follow up on the information as you see fit.

The post is crass but still has technical merit. More importantly he
seems to be right, the idea that the grantees can't rescind their
grant is pretty strange. I'm allowed to change my mind, and you have
no claim to my labor if you didn't pay for it, nor can you make me
work for free.

On Thu, Dec 27, 2018 at 9:16 PM  wrote:
>
> > (2) ... (I am not going to go over the legal mistakes you've made,
> > because of (1))...
>
> I have not made legal mistakes, pompous programmer asshole*.
>
> A gratuitous license, absent an attached interest, is revocable at will.
>
> This goes for GPLv2 as used by linux, just as it goes for the BSD
> license(s).
> The only entities who have, with regards to BSD, an attached interests
> are perhaps those companies who pay for its development. Non-gratis
> (paying) customers
> may have some refuge under consumer protection statutes, for current
> versions they have
> in their posession, paid for by good consideration.
>


There is one thing you get for free (that you probably had anyway):

I was seeing whether or not the disclaimer of liability in most FOSS
licenses was valid. They may not be, *especially* in those United
States which require a guarantee of merchantability or suitability for
a particular purpose.

Read: You made it, you claim it does something, and if someone uses it
and it *doesn't* do that thing explosively it's still your fault even
if it was free. The amount of damages are definitely tempered by the
fact it was free. Depending on the license, state, and judge, you
could have given consideration even though you did not pay money.


> Everyone else has NOTHING.
> Do you understand that?
>

I think it is important to clarify that it can be requested you stop
distributing the work or stop using it for some commercial purpose,
but there is no way you could e.g. be forced to delete copies of it
you already have.

Also: Consideration can be nonmonetary, can you speak to this?

Cheers,
R0b0t1

> [... snip anger ...]
>
> On 2018-12-24 16:01, Raul Miller wrote:
> > (1) Wrong mailing lists - these are not linux mailing lists.
> >
> > (2) ... (I am not going to go over the legal mistakes you've made,
> > because of (1))...
> >
> > (3) Anyways, ... people do make mistakes... But, please stop making
> > these mistakes.
> >
> > Thanks,
> >
> > --
> > Raul
> >
> > On Mon, Dec 24, 2018 at 10:55 AM  wrote:
> >>
> >> Bradley M. Kuhn: The SFConservancy's new explanation was refuted 5
> >> hours
> >> after it was published:
> >>
> >>
> >>
> >>
> >> Yes they can, greg.
> >>
> >> The GPL v2, is a bare license. It is not a contract. It lacks
> >> consideration between the licensee and the grantor.
> >>
> >> (IE: They didn't pay you, Greg, a thing. YOU, Greg, simply have chosen
> >> to bestow a benefit upon them where they suffer no detriment and you,
> >> in
> >> fact, gain no bargained-for benefit)
> >>
> >> As a bare license, (read: property license), the standard rules
> >> regarding the alienation of property apply.
> >>
> >> Therein: a gratuitous license is revocable at the will of the grantor.
> >>
> >> The licensee then may ATTEMPT, as an affirmative defense against your
> >> as-of-right action to claim promissory estoppel in state court, and
> >> "keep you to your word". However you made no such promise disclaiming
> >> your right to rescind the license.
> >>
> >> Remeber: There is no utterance disclaiming this right within the GPL
> >> version 2. Linus, furthermore, has chosen both to exclude the "or any
> >> later version" codicil, to reject the GPL version 3, AND to publicly
> >> savage GPL version 3 (he surely has his reasons, perhaps this is one
> >> of
> >> them, left unstated). (GPLv3 which has such promises listed (not to
> >> say
> >> that they would be effective against the grantor, but it is an attempt
> >> at the least)).
> >>
> >>
> >>
> >>
> >> The Software Freedom Conservancy has attempted to mis-construe clause
> >> 4
> >> of the GPL version 2 as a "no-revocation by grantor" clause.
> >>
> >> However, reading said clause, using plain construction, leads a
> >> reasonable person to understand that said clause is speaking
> >> specifically about the situat

Re: [gentoo-user] net-nntp/inn - This package is masked and could be removed soon!

2018-11-25 Thread R0b0t1
On Sun, Nov 25, 2018 at 1:28 PM Grant Taylor
 wrote:
>
> Hi,
>
> I happily use net-nntp/inn on my server and was surprised to find that
> it is now masked and apparently up for removal.  It looks like
> maintenance has dropped off on the package.
>
> I've never maintained a portage overlay or otherwise contributed to
> Gentoo (save for mailing lists).  As such I don't know what I can do to
> help.
>
> I did skim the Proxy Maintainers page [1] and don't know that I'm ready
> to tackle that much responsibility.  Is there something else that I can
> do to help avoid the removal of the net-nntp/inn package?  Possibly at
> least keep it around as a masked package?
>
> Does anyone have any recommendations before blindly diving head first
> into something I'll regret by assuming responsibility that I'm not sure
> I'm ready for?
>
> Thanks for any pointers in advance.
>

It depends why it is up for removal. Fix that issue and submit a pull
requests via GitHub or via email to gentoo-dev. If using gentoo-dev
there is the possibility that it will never be allowed through the
filter, so perhaps ask about it on IRC as well.

In the rare chance that the package is just being removed because it's
old, making gentoo-dev aware that you use it should be enough.
Otherwise bump the version.

Cheers,
R0b0t1



Re: [gentoo-user] Re: What's with KDE?

2018-11-05 Thread R0b0t1
On Mon, Nov 5, 2018 at 5:36 PM Nikos Chantziaras  wrote:
>
> On 03/11/2018 06:43, Alan Grimes wrote:
> > How did they make it so that 40% of ordinary zip files I try to open
> > with konqueror fail CRC (but work perfectly from the command line)
> >
> > It used to have nice large icon mode with previews, and nice small-icons
> > in normal mode... Broken too for many months now. =\
> >
> > Akregator crashes all the time if I simply try to close a tab... It went
> > about three years without saving anything to disk when it's supposed to
> > buffer my RSS feeds. Now it's just crashtastic in the extreme...
>
> Plasma in itself is not too bad. I use Plasma, but not Konqueror or
> Akregator. Find the applications that work best for you. Just because
> you use Plasma doesn't mean you need to use the rest of KDE's
> applications ;-)
>
> My browser is Firefox, my email client is Thunderbird, my image viewer
> is eog (Eye of GNOME), etc, etc.
>
> I think my only KDE application is my file manager, which is Dolphin.
>

Plasma has some rough patches but the code quality is a lot better
than previous KDE frameworks. It improves regularly, so please keep
complaints current.

I do understand though - it has gotten a bit less stable since I last
tried it, but I think it is time to try it again. For my daily driver
I tend to use i3 though.

Cheers,
R0b0t1



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

2018-09-24 Thread R0b0t1
On Mon, Sep 24, 2018 at 12:33 PM, Nikos Chantziaras  wrote:
> On 24/09/2018 13:11, R0b0t1 wrote:
>>
>> On Mon, Sep 24, 2018 at 11:01 AM, Nikos Chantziaras 
>> wrote:
>>>
>>>
>>> To me it looks like youtubers and some sites trying to make money through
>>> clickbait?
>>>
>>
>> If you had not heard of it elsewhere the Linux code of conduct was
>> amended. It makes the CoC similar to those of other projects where
>> there are a number of (usually nontechnical) contributors who identify
>> as a champion of social justice.
>> [...]
>
> Well, if kernel developers are fine with that, then I don't see how that's
> relevant to anyone who isn't a kernel dev. If they want to adopt social
> justice politics, that's really their prerogative.
>
>

I suspect why he posted it is at least a few developers do not want
this to happen. Other large projects have had similar turmoil, but
there is usually no remedy if you disagree.

E.g. Django(?) had a large patch committed that changed the names of
master/slave to something else as the terms were considered abusive by
what looks to be a minority.



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

2018-09-24 Thread R0b0t1
On Mon, Sep 24, 2018 at 11:01 AM, Nikos Chantziaras  wrote:
>
> To me it looks like youtubers and some sites trying to make money through
> clickbait?
>

If you had not heard of it elsewhere the Linux code of conduct was
amended. It makes the CoC similar to those of other projects where
there are a number of (usually nontechnical) contributors who identify
as a champion of social justice.

The second link is not horrible, but I think is badly formatted. Here
is a picture for you:
https://4bds6hergc-flywheel.netdna-ssl.com/wp-content/uploads/2018/09/croraline-meritocracy.jpg.

The last link is actually very informative. I would recommend reading
it. Some contributors have apparently threatened to revoke the license
to their code which is now in Linux.

My personal opinion is that generally these CoC documents do not do
what they set out to do. Even without a contributor agreement people
can be and are ejected from projects for any reason. However, the
particular entourage that follows these CoCs can be harmful for a
community due to the regularity they find offense with other people.
You find under the "SJW" label people who think a man accused of rape
has no legal rights, etc... So CoC violations tend to devolve into
witchhunts.


My personal experience was that I was not really able to go to school
because of my gender. I am male. I had female classmates with worse
grades than I did that had school completely paid for due to
scholarships. If I tried to say this to some people they would blow up
in my face because of my race and gender, but would claim they are not
racist or sexist.

It is fine to say not everyone is like that, but trying to divorce a
movement from its most vocal subgroups is the
https://en.wikipedia.org/wiki/No_true_Scotsman.

Cheers,
R0b0t1



Re: [gentoo-user] remote debugging python on embedded platform

2018-09-17 Thread R0b0t1
On Mon, Sep 17, 2018 at 12:36 PM, R0b0t1  wrote:
> On Mon, Sep 17, 2018 at 11:53 AM, Raffaele Belardi
>  wrote:
>> (Moved from [pycharm-community vs pycharm-professional] thread)
>>
>> R0b0t1 wrote:
>>> On Mon, Sep 17, 2018 at 10:54 AM, Raffaele Belardi
>>>> I'd use Python to develop programs for fun on an ARM-linux embedded board, 
>>>> with the host
>>>> PC running Gentoo. I suppose that for debugging on the target I'd need 
>>>> this feature:
>>>> "Remote run/debug" which is available only in the (pycharm)Pro edition, 
>>>> right?
>>>>
>>>
>>> Usually what I see is either sftp or rsync (over ssh) to the remote
>>> computer, then ssh to run the updated files. Alternatively you can ssh
>>> to the remote host and run vim within that session.
>>>
>>
>> I suppose vim on Host + ssh for transfer/run would be fine for me.
>>
>> For debugging I saw some support for python is available in gdb but I'm not 
>> sure of the
>> environment, would I run gdb on the host or on the target (via gdbserver)?
>> Also, is gdb a viable solution given the interpreted nature of python or I'd 
>> better start
>> off with some GUI/IDE?
>>
>> I normally use gdb/gdbserver for embedded C debugging so I'm fine with the 
>> gdb command
>> line interface.
>>
>
> This is where it gets a bit weird... It seems there are multiple
> custom remote debug implementations.
>
> From some discussion on what PyCharm does (how it was broken by a
> company firewall) it looks like it starts an ssh connection to the
> target machine and runs pdb. PyDev may do something similar but it
> looks like it replaces pdb with its own module.
>
> Microsoft uses https://github.com/Microsoft/ptvsd. Visual Studio Code
> is actually quite good and should run on Gentoo - it is open source,
> as is their remote python debugger. I had forgotten about it but if
> you want a GUI do strongly consider it.

Also this, sorry - https://github.com/quantopian/qdb.



Re: [gentoo-user] remote debugging python on embedded platform

2018-09-17 Thread R0b0t1
On Mon, Sep 17, 2018 at 11:53 AM, Raffaele Belardi
 wrote:
> (Moved from [pycharm-community vs pycharm-professional] thread)
>
> R0b0t1 wrote:
>> On Mon, Sep 17, 2018 at 10:54 AM, Raffaele Belardi
>>> I'd use Python to develop programs for fun on an ARM-linux embedded board, 
>>> with the host
>>> PC running Gentoo. I suppose that for debugging on the target I'd need this 
>>> feature:
>>> "Remote run/debug" which is available only in the (pycharm)Pro edition, 
>>> right?
>>>
>>
>> Usually what I see is either sftp or rsync (over ssh) to the remote
>> computer, then ssh to run the updated files. Alternatively you can ssh
>> to the remote host and run vim within that session.
>>
>
> I suppose vim on Host + ssh for transfer/run would be fine for me.
>
> For debugging I saw some support for python is available in gdb but I'm not 
> sure of the
> environment, would I run gdb on the host or on the target (via gdbserver)?
> Also, is gdb a viable solution given the interpreted nature of python or I'd 
> better start
> off with some GUI/IDE?
>
> I normally use gdb/gdbserver for embedded C debugging so I'm fine with the 
> gdb command
> line interface.
>

This is where it gets a bit weird... It seems there are multiple
custom remote debug implementations.

>From some discussion on what PyCharm does (how it was broken by a
company firewall) it looks like it starts an ssh connection to the
target machine and runs pdb. PyDev may do something similar but it
looks like it replaces pdb with its own module.

Microsoft uses https://github.com/Microsoft/ptvsd. Visual Studio Code
is actually quite good and should run on Gentoo - it is open source,
as is their remote python debugger. I had forgotten about it but if
you want a GUI do strongly consider it.

Cheers,
R0b0t1



Re: [gentoo-user] pycharm-community vs pycharm-professional

2018-09-17 Thread R0b0t1
On Mon, Sep 17, 2018 at 10:54 AM, Raffaele Belardi
 wrote:
> András Csányi wrote:
>> Hi,
>>
>> Check this page:
>> https://www.jetbrains.com/pycharm/features/editions_comparison_matrix.html
>
> I'm not the OP but am interested in the topic and currently just a noob in 
> Python.
>
> I'd use Python to develop programs for fun on an ARM-linux embedded board, 
> with the host
> PC running Gentoo. I suppose that for debugging on the target I'd need this 
> feature:
> "Remote run/debug" which is available only in the Pro edition, right?
>

Yes. For all interested there is a .jar going around that has been
modified to avoid the license check that is as far as I can tell safe;
it does not require a network connection.

There is also PyDev, based on Eclipse. Remote debug (which entails
running) can be found documented at
http://www.pydev.org/manual_adv_remote_debugger.html.

Usually what I see is either sftp or rsync (over ssh) to the remote
computer, then ssh to run the updated files. Alternatively you can ssh
to the remote host and run vim within that session.

Cheers,
R0b0t1



Re: [gentoo-user] Vergleich layman und eselect repository

2018-09-12 Thread R0b0t1
On Wed, Sep 12, 2018 at 3:33 PM, R0b0t1  wrote:
> On Wed, Sep 12, 2018 at 12:53 PM, Klaus Ethgen  wrote:
>>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA512
>>
>> Hi Folks,
>>
>> To manage the overlays, there are two methodes. layman and eselect.
>> Which of this two methodes is recommended? Is layman just the old
>> method? Or is there some reason to use layman?
>>
>
> https://wiki.gentoo.org/wiki/Eselect/Repository
>
> Does mention it is meant to wrap layman. I find more references to
> layman in documentation, that is likely a contributor to its
> popularity.
>

Sorry, not wrap. Supersede.

>
>> Regards
>>Klaus
>> - --
>> Klaus Ethgen   http://www.ethgen.ch/
>> pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
>> Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
>> -BEGIN PGP SIGNATURE-
>> Comment: Charset: ISO-8859-1
>>
>> iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAluY8DUACgkQpnwKsYAZ
>> 9qwoLAwAsFvps/NxZfPrN+wujXW6rb/k3JzSkW+3Sf2Vuuvmm37DZspXCFB5IA3E
>> xTmzArJGAhbo9VfdQzrfJ//QRqEHwsGL3WfzETFsjSz5uPH/fvFHmmJSo7LRExbX
>> 1+E8RXlWienzzNnRsNyidqJZjMcO8Fen0syoCfieG3UtAi4U3cg4r4oeNXmKvndL
>> ZPwdgiwjLx2K/2zDL3GEtMfbxRoQsz/NwVCCtEQbXjnNo/ne01aAUKlQ6hG1+GlN
>> l6/nv6Dv2afLuF2/bUxxdNVxOERxhT49E9DUY1rYRaTP8a83wVliTKB3GsaX29Zn
>> nRMg8U8PijXfmr7QsBEwnqxYCT06CPtoHlu+W26mKNZ7VCqghENv0oBSe+olmBg1
>> ruH9N6VRIAPVVVkI1cAnHnYCiSUaZ0L5qlARTARRjNNDMISG8POo++WVldwzmDtv
>> svDMViSA0ewcF8u3Uq1qMx09GixyjX79NAhir7H5AsduNOTXl7TD5QQzt/mzF/S7
>> PObdcoDp
>> =Pm8p
>> -END PGP SIGNATURE-
>>



Re: [gentoo-user] Vergleich layman und eselect repository

2018-09-12 Thread R0b0t1
On Wed, Sep 12, 2018 at 12:53 PM, Klaus Ethgen  wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> Hi Folks,
>
> To manage the overlays, there are two methodes. layman and eselect.
> Which of this two methodes is recommended? Is layman just the old
> method? Or is there some reason to use layman?
>

https://wiki.gentoo.org/wiki/Eselect/Repository

Does mention it is meant to wrap layman. I find more references to
layman in documentation, that is likely a contributor to its
popularity.

Cheers,
R0b0t1

> Regards
>Klaus
> - --
> Klaus Ethgen   http://www.ethgen.ch/
> pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
> Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
> -BEGIN PGP SIGNATURE-
> Comment: Charset: ISO-8859-1
>
> iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAluY8DUACgkQpnwKsYAZ
> 9qwoLAwAsFvps/NxZfPrN+wujXW6rb/k3JzSkW+3Sf2Vuuvmm37DZspXCFB5IA3E
> xTmzArJGAhbo9VfdQzrfJ//QRqEHwsGL3WfzETFsjSz5uPH/fvFHmmJSo7LRExbX
> 1+E8RXlWienzzNnRsNyidqJZjMcO8Fen0syoCfieG3UtAi4U3cg4r4oeNXmKvndL
> ZPwdgiwjLx2K/2zDL3GEtMfbxRoQsz/NwVCCtEQbXjnNo/ne01aAUKlQ6hG1+GlN
> l6/nv6Dv2afLuF2/bUxxdNVxOERxhT49E9DUY1rYRaTP8a83wVliTKB3GsaX29Zn
> nRMg8U8PijXfmr7QsBEwnqxYCT06CPtoHlu+W26mKNZ7VCqghENv0oBSe+olmBg1
> ruH9N6VRIAPVVVkI1cAnHnYCiSUaZ0L5qlARTARRjNNDMISG8POo++WVldwzmDtv
> svDMViSA0ewcF8u3Uq1qMx09GixyjX79NAhir7H5AsduNOTXl7TD5QQzt/mzF/S7
> PObdcoDp
> =Pm8p
> -END PGP SIGNATURE-
>



Re: [gentoo-user] Anyone using gentoo on POWER?

2018-08-31 Thread R0b0t1
Availability is okay. As long as you're not trying to run a prefix
installation from AIX a almost everything should work out of the box.
Programs that are heavily optimized may fail due to lack of code paths for
POWER8/9 but that is fairly rare.

Toolchain problems are most common.

On Thu, Aug 30, 2018 at 7:04 PM, taii...@gmx.com  wrote:

> It is my understanding that both little and big endian work on the
> regular "linux" POWER9 machines so that you can use gentoo which is
> ppc64 not ppc64le for some reason - and I was wondering what peoples
> experiences are with this? what is package availability like? any
> problems? etc etc.
>
> Thanks!
>


Re: [gentoo-user] Cellphone VFAT datestamps versus linux datestamps

2018-08-27 Thread R0b0t1
On Mon, Aug 27, 2018 at 10:22 PM, R0b0t1  wrote:
> On Mon, Aug 27, 2018 at 9:48 PM, Walter Dnes  wrote:
>>   So I went to an event on Friday August 24th, and snapped some pics on
>> my cellphone.  Let's just say the datestamps were ridiculous.  Is there
>> a conversion algorithm or program to correct it? This may be a Windows
>> versus linux thing.  See attached listing...
>>
>
> The high order bits are incrementing too quickly. I will check in a
> bit, but I think you should parse them into epoch time and flip the
> endianness.
>

You might mess with the below. Is there a seconds field? It doesn't
quite work, potentially due to the missing info. It still seems too
far off. Run with list as first argument.

EXIF data may work, but I'd be worried the same mistake was made,
assuming the people who wrote the camera software messed with the
drivers.

---

#!/usr/bin/env python3
import sys, os, struct
from datetime import datetime
from pprint import pprint

def main():
for line in open(sys.argv[1], 'r'):
date = ' '.join(line.strip().split()[3:6])
dt = datetime.strptime(date, '%b %d %Y')
pprint(dt)
ts = int(datetime.timestamp(dt))
pprint(ts)
rts = struct.unpack('

Re: [gentoo-user] Cellphone VFAT datestamps versus linux datestamps

2018-08-27 Thread R0b0t1
On Mon, Aug 27, 2018 at 9:48 PM, Walter Dnes  wrote:
>   So I went to an event on Friday August 24th, and snapped some pics on
> my cellphone.  Let's just say the datestamps were ridiculous.  Is there
> a conversion algorithm or program to correct it? This may be a Windows
> versus linux thing.  See attached listing...
>

The high order bits are incrementing too quickly. I will check in a
bit, but I think you should parse them into epoch time and flip the
endianness.

What is the brand and model of your cellphone so I can avoid all
products from that company?



Re: [gentoo-user] =|

2018-07-29 Thread R0b0t1
On Sun, Jul 29, 2018 at 3:41 PM, Alan Grimes  wrote:
> I take great offence to anyone who tells me that it's MY fault. =|
>

It might not be your fault but what you are asking for is legitimately
a lot of work. I know, I've done it. I gave up and just run the games
on Ubuntu in a VM, or save that, in Windows.



Re: [gentoo-user] Steam is still BROKEN

2018-07-28 Thread R0b0t1
On Sat, Jul 28, 2018 at 8:33 PM, Alan Grimes  wrote:
> A picture is beginning to emerge, after the reboot..
>
>
> It did not give a usable error message so I had panicked and probably
> cleaned more than I should have... 73% chance the underlying issue was a
> graphics driver version bump that SHOULD have been clearly reported, but
> wasn't, the remaining chance being something else that had become
> incompatible while I was trying to update this junk. =\
>
> There was a library that I had to downgrade to version 1.8, from 2.x,
> that cleared an error, so it tried to load,
>
>
> Now it gets stuck eternally on "Connecting Steam Account: [...]"
>
> The logs are split among about 10^3 (rough estimate) different files,
> all of which are extremely boring...
>

Can you not run Steam in a VM or container? Distributed binaries on
Linux being pinned to old library versions has always been an issue.
There was a period of time roughly 1.5yr ago where people were
claiming Valve/Steam/developers had learned better (I attribute this
instead to Ubuntu starting to maintain more recent libraries) but it
seems like everything is broken again.

It looks like the errors you posted are exactly this issue, and this
is the one way to fix it forever. In my case I wouldn't trust Steam on
my main system anyway and would have to run it in a VM.

Cheers,
 R0b0t1



Re: [gentoo-user] is anyone using Nouveau graphics driver ?

2018-07-23 Thread R0b0t1
On Mon, Jul 23, 2018 at 9:47 AM, Andrey F.  wrote:
> My experience is the same. Things are super fast with Nouveau, but the
> random system-wide lock ups were unbearable. I'm a KDE plasma user as well.
> My last experience was about 6 months ago.
>
> I wonder if there is anything we can do to help solve the lockup issues in
> the long run with Nouveau.
>

I experienced these lockups using Plasma without Nouveau (in a VM,
with the VBox drivers). Is everyone sure it is Nouveau that is to
blame?

My understanding is it works perfectly save some of the advanced 3D rendering.

Cheers,
 R0b0t1



Re: [gentoo-user] OT: webmail choices, ARGH!

2018-07-17 Thread R0b0t1
On Tue, Jul 17, 2018 at 1:47 PM, Ian Zimmerman  wrote:
> Is _every_ fscking webmail package written in php?  Why?
>

The packages were written likely written a long time ago. Modern PHP
isn't as bad as it used to be, but I'd still avoid it in favor of
newer languages.

I have this problem with Ruby. A lot of people started writing Ruby code.

Do you have any problems with roundcube?

Cheers,
R0b0t1



Re: [gentoo-user] OT: virtual keyboard and DM

2018-07-16 Thread R0b0t1
On Mon, Jul 16, 2018 at 9:25 AM, Bill Kenworthy  wrote:
> Can anyone recommend a virtual keyboard and DM that works on a HiDPI
> screen?  I have a Microsoft surface4 and have tried sddm and lightdm
> with xkbd, matchbox-keyboard and florence and cant seem to get a working
> combination.  They are all too small and don't seem to work nicely or
> able to be properly controlled.
>
> BillK
>

Have a look at GNOME/Ubuntu's onboard. It seems to have gotten some
high DPI fixes.

You can also try adjusting the display properties of the different
windowing toolkits. That may help more. You should also file bugs with
all of the programs you tried should you find the time.

Cheers,
 R0b0t1



Re: [gentoo-user] How long does "Verifying /usr/portage" take?

2018-07-06 Thread R0b0t1
On Fri, Jul 6, 2018 at 2:16 PM, Dale  wrote:
> Grant Edwards wrote:
>> Now that the public key stuff is working again (knock on wood), I'm
>> curious if it's usual for an emerge --sync to take 10-15 minutes
>> longer than it used due to the "Verifying /usr/portage" step.
>>
>> On some systems (with fewer packages installed) it only takes a minute
>> or less. But, on my "main" desktop system it takes 10-15 minutes every
>> time.  During the verify step, the emerge process is only using about
>> 5% of the CPU, and my system is running 80% or more idle.
>>
>
>
> I haven't timed mine yet but that sounds about like mine here.  I'm not
> sure what the bottleneck is but I have a four core AMD CPU running at
> 3.2GHz with 16GBs of ram and SATA spinning rust drives.  While I'm glad
> to have the added security measures, it does add a significant amount of
> time to the update process, the tree not the compile part.  We all know
> the compile part can get big.  lol
>
> I guess like everything else, we'll just have to get used to it.  People
> will hack a ham sandwich if they can and can get something from it.
> That would be mustard on mine.  Some may like Mayo, which is fine too.
> ;-)
>

Run a program with `strace -c` to get statistics on time spent in
system calls. It will be disk IO.



Re: [gentoo-user] All Gentoo signing key expired and no way to fix it

2018-07-03 Thread R0b0t1
On Tue, Jul 3, 2018 at 6:00 AM, gevisz  wrote:
> 2018-07-03 13:35 GMT+03:00 Virgil Dupras :
>> On Tue, 03 Jul 2018 09:55:38 +0100
>> Mick  wrote:
>>
>>> On Tuesday, 3 July 2018 09:53:27 BST Arve Barsnes wrote:
>>> > On 3 July 2018 at 09:48, gevisz  wrote:
>>> > > Trying to renew them manually with the following commands does not help:
>>> > >
>>> > > # gpg --keyserver hkps.pool.sks-keyservers.net --recv-keys
>>> > > 0x825533CBF6CD6C97
>>> > It solved itself for me after running
>>> > gpg --homedir /var/lib/gentoo/gkeys/keyrings/gentoo/release --refresh-keys
>>> >
>>> > Cheers,
>>> > Arve
>>>
>>> Hmm ...
>>>
>>> # gpg --homedir /var/lib/gentoo/gkeys/keyrings/gentoo/release --refresh-keys
>>> gpg: keyblock resource '/var/lib/gentoo/gkeys/keyrings/gentoo/release/
>>> pubring.kbx': No such file or directory
>>>
>>> :-/
>>>
>>> --
>>> Regards,
>>> Mick
>>
>> Are you, by any chance, running this command through something like 
>> lxc-attach or ssh?
>> I had the exact same problem two days ago and it turned out to be something 
>> about the
>> environment being passed to the remote system. Sourcing /etc/profile did the 
>> trick.
>
> No, I do it on my desktop staying just in front of me.
> So, no need for ssh (and I do not know what lxc-attach is at all).
>
> Still, sourcing /etc/profile somehow helped:
>
> # emerge-webrsync
> Fetching most recent snapshot ...
> Trying to retrieve 20180702 snapshot from http://mirror.netcologne.de/gentoo 
> ...
> Fetching file portage-20180702.tar.xz.md5sum ...
> Fetching file portage-20180702.tar.xz.gpgsig ...
> Fetching file portage-20180702.tar.xz ...
> Checking digest ...
> Checking signature ...
> gpg: Signature made Tue Jul  3 03:51:21 2018 EEST
> gpg:using RSA key E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
> gpg: Good signature from "Gentoo Portage Snapshot Signing Key
> (Automated Signing Key)" [unknown]
> gpg: WARNING: This key is not certified with a trusted signature!
> gpg:  There is no indication that the signature belongs to the owner.
> Primary key fingerprint: DCD0 5B71 EAB9 4199 527F  44AC DB6B 8C1F 96D8 BF6D
>  Subkey fingerprint: E1D6 ABB6 3BFC FB4B A02F  DF1C EC59 0EEA C918 9250
> Getting snapshot timestamp ...
> Syncing local tree ...
>
> Number of files: 161,691 (reg: 134,254, dir: 27,437)
> Number of created files: 308 (reg: 301, dir: 7)
> Number of deleted files: 272 (reg: 268, dir: 4)
> Number of regular files transferred: 1,462
> Total file size: 218.08M bytes
> Total transferred file size: 10.83M bytes
> Literal data: 10.83M bytes
> Matched data: 0 bytes
> File list size: 589.73K
> File list generation time: 0.001 seconds
> File list transfer time: 0.000 seconds
> Total bytes sent: 11.76M
> Total bytes received: 69.61K
>
> sent 11.76M bytes  received 69.61K bytes  463.97K bytes/sec
> total size is 218.08M  speedup is 18.43
> Cleaning up ...
>

It looks like you resolved the issue. I had to refresh the keys multiple times.



Re: [gentoo-user] Change keyserver used by portage?

2018-07-01 Thread R0b0t1
On Sat, Jun 30, 2018 at 10:26 AM, Elijah Mark Anderson  wrote:
> Anyone one know how I can change the keyserver address used by portage? I keep
> getting "no route to host" for hkps.pool.sks-keyservers.net when I sync.

What are you trying to do? Find the command being run and run it
manually while specifying --keyserver. Also file a bug report.

I posted my last reply after pgp.mit.edu also failed. The URL you give
is obviously a key server pool, but it looks like MIT's may be also
(without inspecting it). I retried on MIT's URL until the request went
through. If you can't change the URL then keep trying.

The issue is, I think, that the pool will give you servers that don't
support HKP, but I have had this issue when contacting keyservers
directly.

Cheers,
 R0b0t1



Re: [gentoo-user] Change keyserver used by portage?

2018-07-01 Thread R0b0t1
On Sat, Jun 30, 2018 at 10:26 AM, Elijah Mark Anderson  wrote:
> Anyone one know how I can change the keyserver address used by portage? I keep
> getting "no route to host" for hkps.pool.sks-keyservers.net when I sync.

I'm getting the same thing. Also with pgp.mit.edu. Is there any fix?
The webrsync-gpg keys have expired, and the documentation says that
`gpg --homedir /var/lib/gentoo/gkeys/keyrings/gentoo/release
--refresh-keys` should be run.



Re: [gentoo-user] Installing on nvme - not all beer and skittles....

2018-06-29 Thread R0b0t1
On Fri, Jun 29, 2018 at 11:38 AM, Andrew Lowe  wrote:
> Hi all,
> I have an existing Gentoo install that I've "customised" a bit too 
> much
> and things are getting flaky. I've in turn taken the opportunity to
> purchase an nvme, a Samsung 960 Pro, and do a fresh install. Instead of
> using the install media I've just booted the existing install, mounted
> the nvme and then treated the install as though it's coming from a boot
> disk.
>
> I've followed, I think, correctly the install process but when I
> reboot, I get the following:
>
> "Reboot and Select proper Boot device
> or Insert Boot Media in selected Boot device and press a key"
>
> Overlooking the freaky capitalisation, the machine fires up and then
> leaves me with the above on the screen and that's it. I need to hit the
> power button to kill the machine and reboot, using the boot order, F12,
> option to now boot the existing installation.
>
> This is a new machine with a x470 Gigabyte motherboard, 64GB of memory
> and a nearly top end Ryzen CPU. Does anyone know of any little "tips and
> tricks" to ensure that the nvme will be seen and boot? As it is, Grub
> isn't even being seen
>
> Andrew
>
> p.s. I'll also wait until the github situation has been resolved.
>

How did you install the bootloader? Is your board switched to legacy
mode if that is what you are using? If using UEFI do you have both
BIOS and UEFI boot flags set?

The error you gave is what the motherboard firmware would display if
it can't find any bootable drives. Some firmware (like Apple's) will
only boot a UEFI partition if the enclosing protective MBR also has
the partition marked as bootable.

Cheers,
 R0b0t1



Re: [gentoo-user] Re: Hostile takeover of our github mirror. Don't use ebuild from there until new warning!

2018-06-29 Thread R0b0t1
On Fri, Jun 29, 2018 at 7:19 AM, Francisco Blas Izquierdo Riera
(klondike)  wrote:
> El 29/06/18 a las 03:55, Duane Robertson escribió:
>> On Thu, 28 Jun 2018 23:15:36 +0200
>> "Francisco Blas Izquierdo Riera (klondike)"  wrote:
>>
>>> Hi!
>>>
>>> I just want to notify that an attacker has taken control of the Gentoo
>>> organization in Github and has among other things replaced the portage
>>> and musl-dev trees with malicious versions of the ebuilds intended to
>>> try removing all of your files.
>>>
>>> Whilst the malicious code shouldn't work as is and GitHub has now
>>> removed the organization, please don't use any ebuild from the GitHub
>>> mirror ontained before 28/06/2018, 18:00 GMT  until new warning.
>>>
>>> Sincerely,
>>> Francisco Blas Izquierdo Riera (klondike)
>>> Gentoo developer.
>>>
>>>
>> Is it at all likely that any signing keys have been compromised? I
>> can't think of how that would happen, but I don't know much about the
>> situation.
>>
> If you mean the release signing key the answer is a clear no according
> to infra's forensics. If you mean specific developers' keys it is
> unlikely but not fully impossible as we still don't know how the
> attackers got hold of the compromised accounts.
>

I can't help but notice this was moved to gentoo-user. Are posts to
gentoo-dev being moderated properly, or should I not bother submitting
anything?



Re: [gentoo-user] Re: Hostile takeover of our github mirror. Don't use ebuild from there until new warning!

2018-06-28 Thread R0b0t1
On Thu, Jun 28, 2018 at 8:55 PM, Duane Robertson
 wrote:
> On Thu, 28 Jun 2018 23:15:36 +0200
> "Francisco Blas Izquierdo Riera (klondike)"  wrote:
>
>> Hi!
>>
>> I just want to notify that an attacker has taken control of the Gentoo
>> organization in Github and has among other things replaced the portage
>> and musl-dev trees with malicious versions of the ebuilds intended to
>> try removing all of your files.
>>
>> Whilst the malicious code shouldn't work as is and GitHub has now
>> removed the organization, please don't use any ebuild from the GitHub
>> mirror ontained before 28/06/2018, 18:00 GMT  until new warning.
>>
>> Sincerely,
>> Francisco Blas Izquierdo Riera (klondike)
>> Gentoo developer.
>>
>>
>
> Is it at all likely that any signing keys have been compromised? I
> can't think of how that would happen, but I don't know much about the
> situation.
>

It is my understanding release engineering maintains separate keys
explicitly to prevent situations like this from getting worse.

But, the same machine which was compromised (if a machine was
compromised) likely had commit signing keys. Considering the size of
Gentoo I think GitHub would respond to a request for information on
who added the malicious account to the project if that information is
not already available.


Considering what was done it could be assumed that no access to the
master repository was available. If so, any change pushed to the
mirror might have been far easier to notice and the attacker could
have considered their GitHub access worthless.

I'm not sure the above is a reasonable assessment; someone likely just
burned access easily worth multiple millions of dollars in CPU time.
Other infrastructure should be under scrutiny for past exploitation.

Cheers,
 R0b0t1



Re: [gentoo-user] Ethernet-over-USB confusion

2018-06-26 Thread R0b0t1
On Tue, Jun 26, 2018 at 12:47 PM,   wrote:
> Hi,
>
> short question:
>
> I want to access my Raspberry Pi Zero W via Ethernet-over-USB
> via ssh.
> On the Raspberry I have to include a module called g_ether.
> After rebooting I can see a new interface whith an IP assigned
> via ifconfig.
> On my PC I see a new inteface and dmesg tells me, that
> usb0 was renamed to a hillarious cryoted other name
> and this  also shows up when using ifconfig.
> But it has a complete different IP assigned,
>
> But I cannot ssh into the SoC even if the IP
> address is corrected manually.
>

Can you SSH into it at all via some other interface? Can you ping it?
Try g_multi so that you can have a serial terminal to log in with. If
possible switch to using g_ffs. I have included a script at the end of
my message which will create both CM and ACM (serial) endpoints.


On the device, bring up the interface and give a fixed static IP to
the interface. A route should be created but if not route everything
on that subnet through the gadget ethernet device.

On the host, bring up the interface and give a fixed static IP to the
interface. A route should be created but if not route everything on
that subnet through the gadget ethernet device.

It may be necessary to bring up the device first.

> What modules do I need loaded exactlu on the PC
> and on the SoC?
>

If usbX shows up and is renamed then you have the proper driver
loaded. There should be a message labelled "cdc_XXX." By default
g_ether should use CDC ECM (Ethernet control model), but it is also
possible to use CDC EEM (Ethernet emulation model), CDC NCM (network
control model), or RNDIS (remote network driver interface
specification, Windows).

Of the protocols ECM is the simplest, and in theory should have the
worst throughput do to inefficiency when wrapping Ethernet frames.
However in my tests it had the highest throughput by a few Mb/s
(~90Mbit). EEM and NCM were tied (88Mbit) though NCM is the newest and
may eventually surpass the others. RNDIS was slower by 10-15Mb/s
(70Mbit) and a full specification does not exist. However, it may be
necessary if you wish to easily use your device with Windows machines.

Cheers,
 R0b0t1

---

#!/bin/bash
set -euo pipefail

# General configuration:
GADGET_NAME="testgadget"
LANGUAGE=0x409
MANUFACTURER="R0b0t1"
PRODUCT="Test Gadget"

# Function configuration:
HOST_ADDRESS="1a:55:89:a2:69:42"
DEV_ADDRESS="1a:55:89:a2:69:41"


if [ "$EUID" -ne 0 ]; then
echo "This script must run as root."
exit 1
fi


echo "Loading libcomposite..."
CONFIGFS="/sys/kernel/config/usb_gadget"
GADGET="$CONFIGFS/$GADGET_NAME"
modprobe libcomposite

while [ ! -d $CONFIGFS ]; do
sleep 0.01
done


echo "Cleaning existing gadget..."
find $GADGET/configs/*/* -maxdepth 0 -type l -exec rm {} \; || true
find $GADGET/configs/*/strings/* -maxdepth 0 -type d -exec rmdir {} \; || true
find $GADGET/os_desc/* -maxdepth 0 -type l -exec rm {} \; || true
find $GADGET/functions/* -maxdepth 0 -type d -exec rmdir {} \; || true
find $GADGET/strings/* -maxdepth 0 -type d -exec rmdir {} \; || true
find $GADGET/configs/* -maxdepth 0 -type d -exec rmdir {} \; || true
rmdir $GADGET || true

#find "$GADGET/configs" -maxdepth 2 -type l -exec "rm" {} \;
#find "$GADGET"/configs/*/strings/* -maxdepth 0 -type d -exec "rmdir" {} \;
#find "$GADGET"/os_desc/* -maxdepth 0 -type l -exec "rm" {} \;
#find "$GADGET"/configs/functions/* -maxdepth 0 -type d -exec "rmdir" {} \;
#find "$GADGET"/configs/* -maxdepth 0 -type d -exec "rmdir" {} \;
#rmdir "$GADGET"

echo "Creating gadget..."
mkdir "$GADGET"
cd "$GADGET"

echo "Configuring device identifiers..."
echo 0x1d6b > idVendor  # Linux Foundation
echo 0x0104 > idProduct # Multifunction Composite Gadget
echo 0x0001 > bcdDevice # v0.1.0
echo 0x0200 > bcdUSB# USB 2.0
mkdir "strings/$LANGUAGE"
echo "$MANUFACTURER" > "strings/$LANGUAGE/manufacturer"
echo "$PRODUCT" > "strings/$LANGUAGE/product"

echo "Configuring composite device..."
echo 0xEF > bDeviceClass
echo 0x02 > bDeviceSubClass
echo 0x01 > bDeviceProtocol

# This is necessary for multifunction devices to work with Windows due
to deficiencies in the same's driver stack.
echo "Configuring OS-specific descriptors..."
echo 1   > os_desc/use
echo 0xcd> os_desc/b_vendor_code
echo MSFT100 > os_desc/qw_sign

echo "Creating Ethernet endpoint (CDC NCM) (1/1)..."
mkdir "functions/ncm.usb0"
#echo "$HOST_ADDRESS" > "functions/ncm.usb0/host_addr"
#echo "$DEV_ADDRESS" > "functions/ncm.usb0/dev_addr"

echo "Creating serial endpoint (1/2)..."
mkdir "functions/acm.usb0"

echo "Creating configuration..."
mkdir "configs/c.1"
echo 500 > "configs/c.1/MaxPower"
mkdir "configs/c.1/strings/$LANGUAGE"
echo "Config 1" > "configs/c.1/strings/$LANGUAGE/configuration"
ln -s "functions/ncm.usb0" "configs/c.1"
ln -s "functions/acm.usb0" "configs/c.1"
ln -s "configs/c.1" "os_desc/c.1"

echo "Attaching device..."
udevadm settle
ls "/sys/class/udc/" > UDC

echo "Done."



Re: [gentoo-user] Shadow Remote Desktop to connect to Windows 10

2018-06-13 Thread R0b0t1
On Wed, Jun 13, 2018 at 2:07 PM,   wrote:
> On 06/13/2018 11:47 AM, Mick wrote:
>> On Wednesday, 13 June 2018 18:33:35 BST R0b0t1 wrote:
> [snip]
>>
>> Also note that by default the MSWindows Remote Desktop on a workstation will
>> only allow one user at a time to use the desktop.  There is however a Remote
>> Assistance facility which you may be able to use to connect to a desktop
>> session without disconnecting the already logged in user.  Type msra.exe in
>> the search bar to launch it.
>>
>> I'm not sure if it is possible to connect from Linux with freerdp or other
>> clients, but you should be able to connect from another Windows 10 PC.
>
> No, I can not find msra.exe.
> It is suppose to be on run on the Windows 7 - I'm connecting from
> or on Windows 10 - I'm connecting to?
>

You need to run it on the computer you wish to connect to.

Note that if you think RDPWrap is illegal then using the remote
assistance tool in this way would *also* be illegal.

> I've tried to install on Windows 7 "RDPWrap" from"
> https://github.com/stascorp/rdpwrap/releases
>
> It didn't do anything!
>

What did you expect it to do? Did you read the README? I recommend the
zip file. From it you need to run install.bat. A window will pop up
and should say the install has completed properly. Afterwards you can
connect multiple times to your computer over RDP.

If you think there was an error take a picture. I've never used the
MSI. If you used the MSI it may have silently succeeded.

Cheers,
 R0b0t1



Re: [gentoo-user] Shadow Remote Desktop to connect to Windows 10

2018-06-13 Thread R0b0t1
On Wed, Jun 13, 2018 at 11:41 AM,   wrote:
> On 06/13/2018 10:00 AM, R0b0t1 wrote:
>> On Wed, Jun 13, 2018 at 10:18 AM,   wrote:
>>> I run on Gentoo in Virtual Box Windows 7 and trying to connect to
>>> Windows 10
>>>
>>> X2go - doesn't work on Windows 10
>>> RDS Connection in from Windows 7 to Windows 10 work but not in "shadow".
>>>
>>> Any suggestion what else to try?
>>>
>>
>> What do you mean by shadow?
>
> By "shadow" I mean can log-in into the same X-Session as the user is
> running.
> When I tried to connect from Windows 7 to Windows 10 using RDS I got
> connected but the user at Windows 10 was logged out automatically.  When
> the user on Windows 10 logged IN I got disconnected.
>
> I use X2go from between Gentoo boxes works very well, even controlling
> Windows 7 running in VirtualBox on remote system.
>
> The problem one of the remote systems is running Windows 10 (stand alone).
>

There are three ways I could see solving this, in order of ease of use:

1) Use RDPWrap.[1] You click some buttons and then connecting via RDP
with multiple users will not kick out your previously logged in
session.[2] To make things easier to manage I'd recommend creating a
separate account to run your VMs so that you can leave it on in the
background. However, there is a setting in the RDPWrap configuration
tool to allow multilogon with one user which you can try.

2) Use X2Go. Use the "suspend session" and "reconnect to session"
features. To use this you need to connect via X2Go to create a session
and then disconnect while leaving it active. You can later reconnect
at any time. This can be a little strange when accessing the session
locally, as you need to log in and then reconnect to the session on
the same computer.

3) Use X11 forwarding. This is likely to do what you have requested
but requires some minimal application support. If you launch a
forwarded application it will exit once it is closed on your desktop.
However, any daemonized programs you are running will stay active, and
the application you launch with Xming could be e.g. a managment
interface to that server.

4) Use VNC. This is probably the worst option but will do *exactly*
what you have requested. It will fight the user for the mouse if they
were sitting in front of the computer.

Can you comment on your evaluation of the suitability of some of the
other options?

Cheers,
 R0b0t1


[1]: Most users do not consider RDPWrap to be against Microsoft's
terms of use. I would feel comfortable using it in a corporate setting
(there is in fact a company that sells a product nearly identical to
RDPWrap). An in-depth discussion can be seen at
https://github.com/stascorp/rdpwrap/issues/26.

Perhaps the most limiting interpretation of the license that is still
reasonable allows you, the licensed user, to connect as many times as
you want to a single licensed installation:

Section 2.d(ⅴ): “Remote access. No more than once every 90 days, you
may designate a single user who physically uses the licensed device as
the licensed user. The licensed user may access the licensed device
from another device using remote access technologies.”

And in fact this is what I expected a Windows 8.1 Pro license to grant
me the ability to do out of the box, yet it does not without minor
modification.


Note the Windows license has some patently ridiculous things in it and
may not be valid. Taken at face value you are likely already violating
it. For example:

"Section 2.c: “[…] this license does not give you any right to, and
you may not:” and Section 2.c(ⅳ): “work around any technical
restrictions or limitations in the software;”

Ergo, "[...] using the file search utility FileLocator to work around
the restrictions Windows puts in place to limit your ability to find
files on the system is strictly speaking a violation of the Windows
license as written."


[2]: Depending on the settings you pass to RDPWrap connecting as your
user remotely while you are logged in locally will forcefully close
the local view to the sesion. This is probably what you want.



Re: [gentoo-user] Shadow Remote Desktop to connect to Windows 10

2018-06-13 Thread R0b0t1
On Wed, Jun 13, 2018 at 10:18 AM,   wrote:
> I run on Gentoo in Virtual Box Windows 7 and trying to connect to
> Windows 10
>
> X2go - doesn't work on Windows 10
> RDS Connection in from Windows 7 to Windows 10 work but not in "shadow".
>
> Any suggestion what else to try?
>

What do you mean by shadow?

There are a few options:
1) Have VirtualBox run a remote desktop server. You would connect to
VirtualBox, not the guest system.
2) RDPWrap (https://github.com/stascorp/rdpwrap) - This would allow
you to log in multiple times via Terminal Services to your local
machine. You could run VirtualBox on another account or on another
session of your normal account.
3) X2Go - This is really the best option I have used recently.
4) FreeNX - This may be defunct now, and may still depend on the
proprietary parts of NxMachine.
5) XRDP (http://www.xrdp.org/) - This is an open source Terminal
Services compatible server.
6) X forwarding - There are X servers for Windows and OSX.

I'd strongly recommend against #1. It is easy to set up at first but
becomes hard to integrate your experience between remote and local
systems. If you can spare the time I would recommend trying #4, RDP,
save its security, is actually a fairly feature-complete protocol,
supporting things like tunneling local devices to the remote machine.

Cheers,
 R0b0t1



Re: [gentoo-user] Binary packages for a different amd64 flavor

2018-06-12 Thread R0b0t1
On Tue, Jun 12, 2018 at 1:31 PM, Ian Zimmerman  wrote:
> I have had it with compiling stuff from source on my laptop.  It is just
> too slow.  So I would like to create binary packages on my desktop and
> then just tell the laptop to use them.
>
> Simple enough, except that the desktop is AMD Phenom, and the laptop is
> Intel 64 bit Atom.  Up to now, each system had unique CFLAGS to squeeze
> as much performance as possible.
>
> On the desktop:
> CFLAGS="-march=barcelona --param l1-cache-size=64 --param
>  l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe"
>
> On the laptop:
> CFLAGS="-march=ivybridge --param l1-cache-size=32 --param
>  l1-cache-line-size=64 --param l2-cache-size=4096 -O2 -pipe"
>
> I don't want to give up these tunings, but from the wiki page [1] I can
> see no straightforward way to have different CFLAGS when compiling binary
> packages, from the normal CFLAGS when installing directly from source on
> the host system.  Is the only way of doing this to set up a full-blown
> cross-development environment?
>
> [1]
> https://wiki.gentoo.org/wiki/Binary_package_guide
>

Use crossdev to generate an x86_64-pc-linux-gnu (or x86) toolchain.
You can specify something in place of "pc" to identify the system and
be fairly compliant, or you can invent your own naming and specify the
architecture manually. This will create a root in /usr with the name
given that will have a make.conf in /usr/${name}/etc/portage and
generated packages in /usr/${name}/usr/portage/packages.

Cheers,
 R0b0t1



Re: [gentoo-user] [Maybe OT]: Instability of system

2018-06-11 Thread R0b0t1
On Mon, Jun 11, 2018 at 1:16 PM, Wol's lists  wrote:
>
>
> On 11/06/18 16:30, R0b0t1 wrote:
>>
>> Federal law implies a warranty of fitness for a particular purpose*
>> from the seller, not the manufacturer. You can take it up with them.
>> The statute of limitations is 4 years. Make them deal with AMD.
>
>
> Please read the parent post !!!
>
> The seller no longer exists, so that is not an option.
>
> Federal law is irrelevant, as the OP is about 4000 miles outside their
> jurisdiction.
>
> I believe the OP and AMD are the same nationality, and that is nowhere near
> the American continent, let alone the US.
>

My apologies, sir. Sometimes I forget that the United States is not
the only country.

AMD is an American company based out of California. However rereading
the post I notice he is using Euros, in which case there are likely
even stronger guarantees of fitness for a particular purpose. I
suppose it doesn't help that the seller seems to have gone bankrupt.

Cheers,
 R0b0t1



Re: [gentoo-user] [Maybe OT]: Instability of system

2018-06-11 Thread R0b0t1
On Sun, Jun 10, 2018 at 8:48 AM, Mick  wrote:
> On Sunday, 10 June 2018 14:06:22 BST Alan Mackenzie wrote:
>
>> The shop I bouught everything from seems to have gone out of business,
>> with both its telephone number and its website having been down for a
>> sustained period.  So I'm unlikely to be able to get the processor
>> exchanged for an unbuggy one.  Shelling out for a new processor out of my
>> own pocket seems too much of a long shot to justify the money (~400
>> Euros) and the time.
>>
>> So it's looking like I'm not going to be getting the problem fixed any
>> time soon.  :-(
>
> All may not be lost, yet.
>
> Since this is arguably a manufacturing fault of the CPU, you should have some
> consumer rights over it.  Try contacting AMD directly for RMA, as long as it
> is still under the *manufacturer's* warranty and you have your receipt.
>

If at all possible avoid doing the RMA. It seems to take over a month,
time which you are not compensated for.

Federal law implies a warranty of fitness for a particular purpose*
from the seller, not the manufacturer. You can take it up with them.
The statute of limitations is 4 years. Make them deal with AMD.

Cheers,
 R0b0t1


* You generally can't waive this during a transaction, so those
disclaimers in open source licenses are not valid. What is more
important is there was no transfer of money.



Re: [gentoo-user] Vcore unstable?

2018-05-26 Thread R0b0t1
On Sat, May 26, 2018 at 6:50 PM,  <mad.scientist.at.la...@tutanota.com> wrote:
>
> i have a machine i just put lm sensors etc. on.  xsensors shows "Vcore"
> fluctuating between 1.12 and 1.3v.  stays at 1.12V when idling but increases
> with load.  Is this remotely normal behavior for an athlon chip in a desk
> top?  It's either some sort of throttling or the Vcore power supply is
> failing, obviously i'd like to know which.  If it's the power supply i can
> likely fix it if it needs to be fixed.  Also occurs to me that xsensors
> could be usefull tracking down intermittent issues.  I used it to monitor a
> power supply i wasn't sure about for about a week and it stayed nice.
>
> mad.scientist.at.large (a good madscientist)
> --
>

If it increases with load the regulator is working properly. The
higher voltage is needed to induce a higher current slew rate, i.e.
how fast the electrons accelerate, i.e. chip frequency.

Cheers,
 R0b0t1



Re: [gentoo-user] crossdev arm-unknown-linux-gnu failed

2018-05-26 Thread R0b0t1
On Sat, May 26, 2018 at 10:35 PM, Andrew Udvare <audv...@gmail.com> wrote:
>
>
>> On 2018-05-26, at 23:32, Andrew Udvare <audv...@gmail.com> wrote:
>>
>> You probably mean to use another triple name. The last part is the C 
>> library, so you probably mean:
>>
>> arm-unknown-Linux-glibc
>
> That is:
>
> arm-unknown-linux-glic
>
> It is case-sensitive.
>

You may need to fix the profile yourself, but the typical triplet is
now "arm-linux-gnueabihf." There is a tracker issue on this. Most
things compile for me, some breakage in @system.

Cheers,
 R0b0t1



Re: [gentoo-user] Console serial terminal/console with command history?

2018-05-22 Thread R0b0t1
On Tue, May 22, 2018 at 4:03 PM, Grant Taylor
<gtay...@gentoo.tnetconsulting.net> wrote:
> On 05/22/2018 02:43 PM, R0b0t1 wrote:
>>
>> Have you tried screen? It may have more features than kermit by default,
>> but it is intended for speaking with "smart" terminal devices and will do
>> lots of input processing.
>
>
> Are you saying that screen (and possibly tmux, etc.) have the ability to
> inject something like history and command line editing?
>
> I thought that they basically kept track of multiple TTYs (PTYs) and did
> some intelligent shuffling between them and / or copying & pasting of
> content therein.  That seems significantly different than introducing
> something like readline / rlwrap like functionality.
>

Yes - screen *can* hold everything until you hit enter and allow you
to edit the line and do wrapping clientside. Screen also handles
control codes properly.

I just tried to find the exact settings but drew a blank. It doesn't
do local line editing by default. Local editing should be okay with a
normal device but it will not work well if your board runs Linux.



Re: [gentoo-user] Console serial terminal/console with command history?

2018-05-22 Thread R0b0t1
On Tue, May 22, 2018 at 12:39 PM,  <tu...@posteo.de> wrote:
> Hi
>
> I am currently exploring Mecrisp-Stellaris FORTH on a STM32F103C8 uC.
>
> To communicate with the FORTH-system I use a serlal terminal console
> like picocom.
>
> Since I am still learning this quirky though fascinating language I
> really would appreciate a commandline history.
>
> For that I tried picocom and picocom with rlfe / rlwrap, neocon,
> screen, tio.
>
> None worked and/or has a fixed handling of CR<=>LF, which leads
> to an
>  ugly
>  output.
>
> Is there any serial terminal/console (no gui), which has a command
> history of some sort and a configurable handling of cr<=>lf?
>
> Thanks for any help in advance -- the FORTH will be with you!
> Cheers
> Meino
>

Have you tried screen? It may have more features than kermit by
default, but it is intended for speaking with "smart" terminal devices
and will do lots of input processing.

Based on your description of the problem you may want this?

Cheers,
 R0b0t1



Re: [gentoo-user] Re: Home/End Insert a ~ Instead of Moving Cursor

2018-05-21 Thread R0b0t1
On Mon, May 21, 2018 at 10:12 PM, Ian Zimmerman <i...@very.loosely.org> wrote:
> On 2018-05-21 21:23, R0b0t1 wrote:
>
>> The issue may be screen. If it is, what different thing do I do?
>
> tmux seems to be all the rage these days.
>

It does have vim bindings. That is nice. In any case, issue persists
with a bare ssh session to an Ubuntu host, but inputrc has the right
things in it.



[gentoo-user] Home/End Insert a ~ Instead of Moving Cursor

2018-05-21 Thread R0b0t1
How do I fix this? I found
https://wiki.archlinux.org/index.php/Home_and_End_keys_not_working,
but the provided /etc/inputrc settings are on all systems. Connections
are made via ssh (network) and screen (serial). The issue seems to
only appear in nested sessions on the ssh connection and on the serial
connection.

The issue may be screen. If it is, what different thing do I do?

Cheers,
 R0b0t1



[gentoo-user] Maintaining Configurations for Many SBCs

2018-05-17 Thread R0b0t1
I know of a few deployment automation solutions. I feel partial to Rex.

The main alternative that springs to mind is doing it all in either
bash or Python.

Has anyone given thought to a problem like this? I want to avoid doing
something like Android does, where I have repositories for each board,
and then a huge repository of repositories, and everything slowly
turns into molasses.

I need to keep:
  *) U-boot configuration.
  *) Kernel configuration.
  *) Root file system or stage 3.
  *) Stage 3 configuration, a.k.a. stage 4.

I need to be able to:
  *) Compile u-boot automatically.
  *) Compile the kernel automatically.
  *) Compile the stage 3.
  *) Generate the stage 4.
  *) Generate a bootable image.
  *) Maintain the stage 4 configuration as easily as possible.

Some of these are almost entirely covered by crossdev, others are
trivial scripting tasks. The hard part is finding something that has
tied most of this together in a way that is passable already.

Cheers,
 R0b0t1



[gentoo-user] Globally Disable Prompt Formatting, In All Programs Everywhere For All Time

2018-05-16 Thread R0b0t1
Hello,

This has come up on this list a few times in slightly more restricted
forms. Today, I feel the need to ask about how to Globally Disable
Prompt Formatting, In All Programs Everywhere For All Time.

The issue is that over some transports, e.g. a debug serial link, with
an actual serial port, the receiving program may not be able to
interpret escape codes. Typically this is an issue when on Windows,
though PuTTY exists. On Gentoo screen will work nicely, but is a bit
heavy.

Is the only way to find every program that generates escape sequences
and disable it? What about kernel messages during boot?

Cheers,
 R0b0t1



Re: [gentoo-user] plasma-desktop-5.12.4 build process hangs

2018-05-14 Thread R0b0t1
On Mon, May 14, 2018 at 12:23 PM, Elijah Mark Anderson <m...@kd0bpv.name> wrote:
> On Thursday, April 19, 2018 12:23:32 PM CDT Mick wrote:
>> On Thursday, 19 April 2018 14:44:40 BST Elijah Mark Anderson wrote:
>> > A friend has commissioned me to install Gentoo on one of their machines
>> > for
>> > them. I'm trying to run some final updates before I turn it back over to
>> > them, but it keeps hanging on plasma-desktop-5.12.4 after linking
>> > kcm_fontinst.so (see attachment).
>> >
>> > Anyone know what's going wrong? Is this just a bug in the ebuild, maybe?
>>
>> Your log shows no error.  I had a look for bug reports, but couldn't find
>> anything relevant.  If it reports no error, have you waited long enough for
>> the emerge to complete?
>>
>> --
>> Regards,
>> Mick
>
> Sorry about the late reply. Life got a little busy for a bit there. I no-
> longer have the machine in question. But a few days later, the owner of the
> machine tried syncing the mirrors and updating again, and it went through.
>
> I would certainly hope I waited long enough... considering that when I tried
> again, I left it running all night just in-case. lol. Thanks for trying. :)
>

This is what happened for me. Plasma was experiencing errors, I lost
interest, I tried again, plasma was not experiencing build errors.
Works for things besides Plasma as well!

Open source has taught me patience on the span of years. I wish it
were not necessary, of course.

Cheers,
 R0b0t1



Re: [gentoo-user] OT: Extracting year from data, but honour empty lines

2018-05-11 Thread R0b0t1
On Fri, May 11, 2018 at 6:16 PM, Daniel Frey <djqf...@gmail.com> wrote:
> Hi all,
>
> I am trying to do something relatively simple and I've had something
> working in the past, but my brain just doesn't want to work today.
>
> I have a text file with the following (this is just a subset of about
> 2500 dates, and I don't want to edit these all by hand if I can avoid it):
>
> --- START ---
> December 2, 1994
> March 27, 1992
> June 4, 1994
> 1993
> January 11, 1992
> January 3, 1995
>
>
> March 12, 1993
> July 12, 1991
> May 17, 1991
> August 7, 1992
> December 23, 1994
> March 27, 1992
> March 1995
> --- END ---
>
> As you can see, there's no standard in the way the date is formatted.
> Some of them are also formatted -MM-DD and MM-DD-.
>
> I have a basic grep that I tossed together:
>
> grep -o '\([0-9]\{4\}\)'
>
> This does extract the year but yields the following:
>
> 1994
> 1992
> 1994
> 1993
> 1992
> 1995
> 1993
> 1991
> 1991
> 1992
> 1994
> 1992
> 1995
>
> As you can see, the two empty lines are removed but this will cause
> problems with data not lining up later on.
>
> Does anyone have a quick tip for my tired brain to make this work and
> just output a blank line if there's no match? I swear I did this months
> ago and had something working but I apparently didn't bother saving the
> script I made. Argh!
>
> Dan
>

Use awk or perl and when the line matches the pattern ^\s*$ print a
blank line. Otherwise, apply the normal pattern.

Cheers,
 R0b0t1



Re: [gentoo-user] Is running Tor hidden services on VPS a good idea?

2018-04-24 Thread R0b0t1
On Tue, Apr 24, 2018 at 2:10 PM, Hubert Hauser <hu...@mail.com> wrote:
> I want to run a few Tor hidden services. My home network is behind a
> carrier gateway NAT so I can't make server from Raspberry Pi. I consider
> run Tor hidden services on VPS. What do you think about it? Is cgNAT
> obstacle if I want to run Tor hidden services?
>

A hidden service listens to connections from a Tor daemon. The
recommended setup has both on the same machine, so the web service is
only accepting connections from the machine it is run on. It does not
need to be outwardly accessible.

Tor will work even if you are behind NAT, assuming you do not run it
in a mode where it accepts Tor to Tor connections or Internet to Tor
connections.


Running a hidden service on a VPS, assuming you are not breaking the
laws in your jurisdiction, is likely the better idea. It will have
higher bandwidth and if an attacker succeeds in resolving its location
(which is possible to do and rather easy) they will get a datacenter,
not your neighborhood.

If you are breaking laws in your jurisdiction of residence I would
highly recommend moving. Whether or not it is a better idea to
self-host in this case is a tossup. On one hand, if you self-host and
the authorities resolve your hidden service's location, they get you,
but you may have a chance to destroy evidence. On the other hand, if
you VPS-host and the authorities resolve your hidden service's
location, they may subpoena the datacenter and get your details and
also the information on the server.

Cheers,
 R0b0t1



Re: [gentoo-user] Dell Precision Workstation Overheating

2018-04-20 Thread R0b0t1
On Fri, Apr 20, 2018 at 7:21 AM, Mick <michaelkintz...@gmail.com> wrote:
> On Friday, 20 April 2018 12:55:13 BST Corbin Bird wrote:
>> Oak Ridge National Laboratory uses these processors ( Rhea Cluster ) and
>> has numerous heat failures.
>>
>> Due to poor cooling ... surprised?
>>
>> The cooling is not working right. Something is still wrong.
>>
>> On 04/19/2018 09:33 PM, R0b0t1 wrote:
>> > Dell Precision T7600, two 16 thread Xeons, 192GB of RAM, two Quadro
>> > cards and a Tesla card.
>> >
>> > The system is a few years old at this point. Old enough that the
>> > thermal compound could have hardened, which is why I replaced it.
>
> If the problem started suddenly, rather than getting progressively worse over
> time, it may have something to do with kernel drivers, or some change in
> firmware.
>

As far as I know it has always been like this. It may be why it was
hardly used before it came into my care. Looking at the server I could
blame poor design; the inside is rather cramped, despite the care
taken with the internal baffles. They may not have run a good flow
simulation.

Mr. Bird's observation seems to support this.

> If the cause is mechanical, I'd also suggest checking the heat sink contact
> surface.  Some heat sinks are poorly manufactured and require flattening with
> wet 'n dry sandpaper to get a flat enough surface and improve their contact
> with the CPU.  I've seen 15°C improvement in a Zalman CPU cooler after excess
> metal was removed from copper pipes, which were manufactured proud.  Hardcore
> O/C's flatten the CPU too, but I'd avoid anything as radical because it can go
> badly wrong if you remove more than the surface varnish from the chip.
>
> In the interim, opening the side panel may also help in hot weather.
>

The internals are custom made to fit the motherboard, cards, and drive
slots. It may work better if I move it to another tower but it will be
a while before I can find one. I will look at the interface between
the heatsink and processor again, but it looked fine.


How concerned should I be about overheating machine check errors? I
used to think that it was best to avoid them, as the threshold was
high enough that very small parts of the die could overshoot and fail,
but I was informed that is not the case. Besides the throttling (which
is fairly bad) I am not sure if there are any drawbacks to the
overheating.

I am wondering what the point of 32 threads is if you can't use them at 100%.

Cheers,
 R0b0t1



Re: [gentoo-user] Dell Precision Workstation Overheating

2018-04-19 Thread R0b0t1
On Thu, Apr 19, 2018 at 9:26 PM, Corbin Bird <corbinb...@charter.net> wrote:
> What are the Dell system specs?
>
> ( Heatsink on a CPU?  How old is this system ? )
>

Dell Precision T7600, two 16 thread Xeons, 192GB of RAM, two Quadro
cards and a Tesla card.

The system is a few years old at this point. Old enough that the
thermal compound could have hardened, which is why I replaced it.

> On 04/19/2018 08:22 PM, R0b0t1 wrote:
>> I was compiling Gentoo, as is custom, but found my old new server to
>> be thermal cycling wildly. The fans will turn on full blast and
>> machine check errors will be generated if I use approximately more
>> than one third to half of the cores. The cores then throttle
>> themselves, only to immediately overheat once the throttle lifts. This
>> seems to persist on Windows, though Windows seems to be much more
>> conservative in its CPU usage, and triggers MCEs less.
>>
>> Any suggestions? I repasted the CPU and heatsink interface, and the
>> machine is not loaded with dust. It was hardly ever used. The MCEs
>> seem to be a "normal" part of operation, though less normal on
>> Windows.
>>
>> Is there a way to at least mimic the conservative CPU usage that
>> Windows exhibits?
>>
>> Cheers,
>>  R0b0t1
>>
>



[gentoo-user] Dell Precision Workstation Overheating

2018-04-19 Thread R0b0t1
I was compiling Gentoo, as is custom, but found my old new server to
be thermal cycling wildly. The fans will turn on full blast and
machine check errors will be generated if I use approximately more
than one third to half of the cores. The cores then throttle
themselves, only to immediately overheat once the throttle lifts. This
seems to persist on Windows, though Windows seems to be much more
conservative in its CPU usage, and triggers MCEs less.

Any suggestions? I repasted the CPU and heatsink interface, and the
machine is not loaded with dust. It was hardly ever used. The MCEs
seem to be a "normal" part of operation, though less normal on
Windows.

Is there a way to at least mimic the conservative CPU usage that
Windows exhibits?

Cheers,
 R0b0t1



Re: [gentoo-user] Re: emerge colors and light background

2018-04-19 Thread R0b0t1
On Thu, Apr 19, 2018 at 9:36 AM, Grant Edwards
<grant.b.edwa...@gmail.com> wrote:
> On 2018-04-19, Klaus Ethgen <klaus+gen...@ethgen.de> wrote:
>
>> I use light background and many colors of emerge and other tools are
>> simple unreadable (like light green).
>
> Yep, it's awful.  People have been complaining about it for years and
> years.
>
>> I searched how to adapt them to my background but did not success.
>
> The short answer is: you can't.  The devs use black backgrounds and
> you're supposed to also.
>
>> I already know about color.map but this just allows to tune some
>> colors and not all (at least the ones that are documented in the man
>> page).
>>
>> So, is there any way (without using --nocolor) to use color set that is
>> more readable?
>
> Nope.
>

You need to find a light color theme that works well. You should edit
your .Xdefaults (older documentation references .Xresources, which
does not seem to be parsed by some modern utilities or X11 servers) to
use that colorscheme. See the "export" tab on https://terminal.sexy/.

Pretty much every terminal should honor .Xdefaults, but if not, you
will need to change the colors in a menu.

If portage uses 256-color codes to specify an absolute color then that
should be changed, it makes the program unthemable via the standard
interface. It would also be an issue if portage used the less common
RGB color escapes.

Cheers,
 R0b0t1



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

2018-04-11 Thread R0b0t1
On Tue, Apr 10, 2018 at 11:08 PM, Dale <rdalek1...@gmail.com> wrote:
> J. Roeleveld wrote:
>>
>> 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
>
>
> Picking random post to reply to so anyone can respond to this question.
> I recall years ago there was talk of moving distfiles and such to a
> directory in /var on new installs at least.  At the time, I moved mine
> to /var/cache/portage.  I seem to recall that another location ended up
> being picked.  Does anyone recall if the move ever did occur and if so,
> where it went?  I recall reading about it but can't recall what was
> final on it or if it ended up being moved at all.
>

Do you mean /usr/portage/distfiles?

Can we stop using Oracle's JVM?

Cheers,
 R0b0t1



Re: [gentoo-user] Bootloader hangs without a keyboard

2018-04-08 Thread R0b0t1
On Sun, Apr 8, 2018 at 1:04 PM, Neil Bothwick <n...@digimed.co.uk> wrote:
> On Sun, 8 Apr 2018 10:47:06 -0500, R0b0t1 wrote:
>
>> >> Use the dongle from a wireless keyboard.
>> >
>> > That's also a good idea, I wasn't sure if you could buy those without
>> > a keyboard and hadn't thought to check.  Funnily enough, this is
>> > exactly what I've been doing so far (I have a Logitech wireless
>> > keyboard with a "unifying" receiver).
>> >
>>
>> You can buy Logitech unifying receivers for $9 or so, but it might be
>> cheaper to buy offbrand keyboard/receiver sets.
>
> Or a wireless remote control, those also appear as HID devices.
>

But there is a specific HID type for "boot keyboard" which is what the
EFI or BIOS firmware looks for when starting. The report is structured
so that the firmware does not need to implement the full USB standard.
Some board firmware is not implemented properly and does not parse the
reports properly, which means some keyboards do not work with all
motherboards.

The other reason I bring this up is because reading about EFI, it
seems the system can demand boot devices are present. I have no idea
why, but what OP is seeing may be intended behavior.

Cheers,
 R0b0t1



Re: [gentoo-user] Bootloader hangs without a keyboard

2018-04-08 Thread R0b0t1
On Sun, Apr 8, 2018 at 10:45 AM, Marc Joliet  wrote:
> Am Sonntag, 8. April 2018, 16:49:55 CEST schrieb Neil Bothwick:
>> On Sun, 08 Apr 2018 15:18:21 +0200, Marc Joliet wrote:
>> > > Yeah, I did hear about those while researching the problem (forgot to
>> > > mention, sorry), but thanks for pointing out how cheap they are.
>> >
>> > Ugh, I misread, yeah, of course those exist and are cheap (sadly I only
>> > have USB->PS/2 adapters).  I thought I had read about so-called
>> > keyboard simulators, which I interpreted to mean a USB dongle that
>> > pretends to be an input device, but ATM I cannot find any evidence of
>> > them actually existing,
>>
>> Use the dongle from a wireless keyboard.
>
> That's also a good idea, I wasn't sure if you could buy those without a
> keyboard and hadn't thought to check.  Funnily enough, this is exactly what
> I've been doing so far (I have a Logitech wireless keyboard with a "unifying"
> receiver).
>

You can buy Logitech unifying receivers for $9 or so, but it might be
cheaper to buy offbrand keyboard/receiver sets.



[gentoo-user] [OT?] Cheap Chinese Pen Tablet (UC-Logic Derivative) Problems

2018-04-07 Thread R0b0t1
Hello list,

I can plug in a Huion H420 I recently purchased. It registers, but the
lower portion of the screen (~150px) is not able to be navigated to by
the pen. I've tried looking for bugs (some are mentioned on Ubuntu
forums) but can't figure out if any are applicable to my device or
even what they are. Enabling or disabling the proper driver doesn't
seem to change the operation of the pen tablet.

Perhaps more problematic, the tablet registers as a mouse. I don't
want it to be a mouse. Shouldn't it register as a unique HID class?
Can anyone explain how pen input works on Linux? On Windows, the pen
can do mouse actions, but it is unique and separate.

Cheers,
 R0b0t1



Re: [gentoo-user] [OT] What is the best open-source VPN server for Linux?

2018-04-07 Thread R0b0t1
On Saturday, April 7, 2018, Mick <michaelkintz...@gmail.com> wrote:
> On Friday, 6 April 2018 18:55:18 BST gevisz wrote:
>> 2018-04-06 2:10 GMT+03:00 Grant Taylor <gtay...@gentoo.tnetconsulting.net
>:
>
>> > I'd encourage your friend to check out the VPN capabilities built into
>> > Windows.  He may need to install / configure (R)RAS to enable the
>> > features.
>>
>> Thank you for your advice. He is currently trying to set up RAS with SSTP
>> but RAS client so far cannot log into the server, while a third party VPN
>> just works (until the remote computer hangs for so far unknown reason
that
>> even may not be connected with the VPN server).
>>
>> We will continue to experiment to find the reason.
>
> Typical problems incurred with SSTP are relating to username
authentication
> and TLS certificate selection/configuration.
>
> SSTP authenticates OS users, not devices/PCs.  So use the *same* username
and
> passwd on all the OS login, SSTP VPN & RRAS wizards.
>
> The TLS server certificate has to contain a DN which will resolve to the
IP of
> the server in question, or better use the IP address both in the CN and
the
> X509v3 Subject Alternative Name fields.
>
> In addition, the SSTP certificate binding has to use the same TLS
certificate
> with that selected for RRAS and this is not always obvious (for SSTP at
> least).  You can use MSWindow's 'netsh ras show sstp-ssl-cert' command to
show
> the TLS certificate in use by SSTP and compare this with the RRAS
certificate
> selection.
>
> It is a bit of a faff, but that's what you get with SSTP.  The benefit of
it
> is that it is integrated with MSWindows authentication mechanisms and
network
> stack, allowing easy enterprise wide configuration and management.  For
your
> friend's one off VPN set up, OpenVPN, or SoftEther VPN is probably a
better
> MSWindows based option:
>

Companies which need user management tend to just set up an intranet and
provide VPN access to it which is likely not going to be a Microsoft
technology. There is no benefit to integrating OS authentication with your
transport security. If you contacted a Windows-focused business for your
administration they may set such a system up, but only because they don't
know any better.

Evaluating Microsoft software should be done extremely carefully. It is
very easy to waste time, ignoring other concerns. You may get something
working but it will not be easy to administrate or scale.

Microsoft's current revenue may be largely from customers using the sunk
cost fallacy.

Cheers,
R0b0t1


Re: [gentoo-user] [OT] What is the best open-source VPN server for Linux?

2018-04-06 Thread R0b0t1
On Fri, Apr 6, 2018 at 12:58 PM, Mick  wrote:
> On Friday, 6 April 2018 00:10:00 BST Grant Taylor wrote:
>> On 04/05/2018 03:51 AM, gevisz wrote:
>> > Yes, the Host is running Windows.
>>
>> Seeing as how both the ""Host and the ""Client are running Windows, I
>> would think seriously about trying to leverage Windows' built in VPN
>> capabilities.
>>
>> The following things come to mind:
>>
>>   - (raw) IPSec - this might be somewhat challenging b/c reasons
>
> I think you mean IKEv2 + IPSec?
>
> IKEv2 is used to exchange keys and IPSec is used to set up and encrypt the
> tunnel itself.  The tunnel is operating at layer 2, so TCP/UDP/ICMP will all
> be encrypted when sent through through the IPSec encrypted tunnel.
>
>
>>   - L2TP+IPSec - probably less challenging b/c of wizards
>
> This is using L2TP for encapsulating the frames + IKEv1 for secure key
> exchange + IPsec for encryption of the L2TP tunnel.
>
>
>>   - PPTP - just don't unless you haveto
>
> Well said:
>
> https://en.wikipedia.org/wiki/Point-to-Point_Tunneling_Protocol#Security
>
> It is an obsolete method with poor security.  I would not use it under any
> circumstances, unless security is of no importance.
>
>
>> I'd encourage your friend to check out the VPN capabilities built into
>> Windows.  He may need to install / configure (R)RAS to enable the features.
>
> As I mentioned before, there is also IKEv2+IPSec, which allows the client to
> roam between networks without dropping the connection.
>
> Finally, there is SSTP encrypting PPP frames within TLS.  I don't know why one
> would use this instead of OpenVPN, except that it comes as part of the
> MSWindows package, while OpenVPN has to be installed separately.
>
>
>> In my experience, using native features that come from the software
>> vendor is often simpler to maintain long term.
>
> +1
>
> They are also easier to set up initially, because both MSWindows peers will
> use the same combo of encryption suites, ciphers, etc.

You mean the same horribly insecure ciphers? The built in options are
so weak that I am not aware of anyone seriously using them; most
setups tunnel Windows technologies like RDP (which may sometimes
insist on being set up with encryption) over Linux based technologies.



Re: [gentoo-user] [OT] What is the best open-source VPN server for Linux?

2018-04-04 Thread R0b0t1
On Wed, Apr 4, 2018 at 3:18 PM, gevisz <gev...@gmail.com> wrote:
> A friend of mine asked me to recommend him an open-source
> VPN-server for Linux but unfortunately I never used one.
>

If not https://www.wireguard.com/, I recommend OpenVPN. You could try
to set up IPsec if you wanted.

> After some googling, I have found OpenVPN but do not know
> if it is the best choice that suits his purposes, namely to access
> local network that does not have its own fixed IP from the outside.
>
> To be more precise: the local network to be accessed to from the
> outside is part of another local network. The latter (outer) network
> has its own fixed IP but the former (inner) network gets its IP via DHCP.
> So, it is impossible to connect to a computer in the inner network
> from the outside directly.
>
> The computer in local network to be connected runs Windows.
> The said friend of mine have tried to run some VPN server from
> Windows but it somehow hangs the "inner" computer when
> his "outer" computer has problems connecting to the Internet.
>
> So, now his idea is
> 1) to run a virtual machine in the "inner" (Windows) computer,
> 2) to install into this virtual machine very lightweight Linux server
> only to run in it a VPN-server that should help him to connect
> from the outside to the "inner" host (Windows) computer, which
> has its fixed IP within the inner local network.
>

I'm not sure this makes sense. Firstly, in the case of OpenVPN at
least, there is a Windows client and associated signed fake network
device drivers. Perhaps if using Wireguard you might want to connect
through a VM to your VPN; I am not sure if there is a Windows client.

Secondly - you need the VPN server to be running on a computer which
is globally accessible. If your friend is in the US or some parts of
Europe their home line may not be behind NAT, and would work if set up
properly. In general most networks you connect to will not work. You
will always need one computer which is not behind NAT.

Cheers,
 R0b0t1



Re: [gentoo-user] Gentoo Hardened vs Kali Linux

2018-04-02 Thread R0b0t1
On Mon, Apr 2, 2018 at 2:02 PM, taii...@gmx.com  wrote:
> /* loading hacking tools /*
>
> I met someone who said he games on kaliwhy? all the elite hackers
> use it - it is a very powerful linux that is perfect for dual-booting
> with windows 10 due to its high level of security.
>

Do people actually dual boot with pentesting distros? I was always
under the impression you were supposed to load it from removable
storage.



Re: [gentoo-user] Ubuntu with Gentoo somehow...

2018-03-26 Thread R0b0t1
On Mon, Mar 26, 2018 at 8:55 AM, Rich Freeman <ri...@gentoo.org> wrote:
> On Mon, Mar 26, 2018 at 9:00 AM, R0b0t1 <r03...@gmail.com> wrote:
>>
>>
>> On Sunday, March 25, 2018, <tu...@posteo.de> wrote:
>>> Hi,
>>>
>>> is there a way to download the archive (or how is it called in the
>>> world of Ubuntu ?) of a program, from which I only know the
>>> apt-get and apt-install commands?
>>> And how can I do the same for a developer release of that program
>>> when I additionally know the ppa (whatever that is...?)
>>>
>>
>> I've never had this be easy enough I'd want to do it. Is it possible now?
>> I.e. grabbing all deps wouldn't be necessary if Gentoo's library versions
>> match the .deb's.
>>
>
> This could just be a language barrier issue, but it isn't entirely
> clear to me what the question is, and whether it has been answered.
>
> The original question doesn't seem to have anything to do with Gentoo,
> so I'm not sure why we're talking about "Gentoo's library versions."
>
> If the intent really was to ask how to fetch ubuntu packages for use
> with ubuntu then it would probably make more sense to ask about it on
> an Ubuntu list/forum/etc.
>
> If this is a Gentoo question and the submitter is just unfamiliar with
> Gentoo and is using Ubuntu terminology that is fine, but I think it
> would be helpful to have a bit more clarification, such as what the
> end goal is.  Are we asking for tarballs of sources (distfiles)?  Are
> we asking for binary packages?  Is this a question about generating
> ebuilds for versions not in the main repo?  Is this about how to get a
> .deb made for Ubuntu working on Gentoo?
>
> I think everybody is trying to be helpful, but is interpreting the
> question differently.  Perhaps the original submitter already got the
> answer they're looking for, which is fine.
>

Well, yes - I think the question as asked has been answered, but I'm
trying to figure out what he was doing. I did assume he was going to
be using the packages with Gentoo somehow, just based on the mailing
list he used.



Re: [gentoo-user] Ubuntu with Gentoo somehow...

2018-03-26 Thread R0b0t1
On Sunday, March 25, 2018, <tu...@posteo.de> wrote:
> Hi,
>
> is there a way to download the archive (or how is it called in the
> world of Ubuntu ?) of a program, from which I only know the
> apt-get and apt-install commands?
> And how can I do the same for a developer release of that program
> when I additionally know the ppa (whatever that is...?)
>

I've never had this be easy enough I'd want to do it. Is it possible now?
I.e. grabbing all deps wouldn't be necessary if Gentoo's library versions
match the .deb's.

Cheers,
R0b0t1


Re: [gentoo-user] ETA on mono-ncurses snafu?

2018-03-24 Thread R0b0t1
On Saturday, March 24, 2018, Alan Grimes <alonz...@verizon.net> wrote:
> Hey, do we have an ETA yet on when mono will be compatible with the
> ncurses which was released six months ago? =\
>

Which library exactly? I can't find mono-ncurses with portage. Searching
elsewhere turns up at least 5 projects.

Cheers,
R0b0t1


Re: [gentoo-user] emerge custom notes reminders

2018-03-22 Thread R0b0t1
On Thu, Mar 22, 2018 at 10:28 AM,  <the...@sys-concept.com> wrote:
> Is there a way to add custom notes reminders during emerge or after?
>

What kind of reminders? Perhaps we could have a developer add some
encouraging messages to various packages, or maybe some news items? I
know I could use some encouragement.

I could keep packages in an overlay and write messages to myself, but
I'm not sure it'd work as well.

Cheers,
 R0b0t1



Re: [gentoo-user] Re: A new AMD CPU weakness?

2018-03-21 Thread R0b0t1
On Sun, Mar 18, 2018 at 4:40 PM, taii...@gmx.com <taii...@gmx.com> wrote:
> On 03/18/2018 05:33 PM, R0b0t1 wrote:
>
>> On Sun, Mar 18, 2018 at 4:24 PM, taii...@gmx.com <taii...@gmx.com> wrote:
>>>
>>> Everyone please remember this is simply an exploit to obtain data off of
>>> AMD's version of ME which is a DRM mechanism added for hollywood and it
>>> requires physical access to reprogram the firmware thus this exploit has
>>> zero impact on anyone who doesn't profit off of DRM.
>>>
>> Except if it's anything like the Intel ME exploit, physical access can
>> be faked using a compromized USB device.
>
> You mean the skylake debug port?
>>>
>>> ME/PSP are evil - don't buy computers that have them - you have choices!
>>
>> No we don't.
>
> Yes we do.
> TALOS 2? g505s laptop? kgpe-d16? novena?
>
> I play new games at max settings on a pre-PSP AMD system KGPE-D16 where I
> have installed a libre firmware for the board and the BMC via the recent
> OpenBMC port (the facebook version of OpenBMCless features than the IBM
> version but still quite nice)
>
> The TALOS 2 costs less than a brand new xeon system with similar performance
> and it has better features such as IBM's OpenBMC, PCI-e 4.0, SMT4 etc.
> The stars have aligned and given us a libre firmware server/workstation that
> is brand new and very very fast.
>

The x86 parts are slowly going out of stock to the point where they
are expensive *when* I have found them. The TALOS 2 is the cheapest
POWER system available, but is still many thousands of dollars more
than a consumer computer (though much higher performance). ARM based
computers are not comparable in performance to common consumer
systems. Self hosting on a performant ARM processor is not a
reasonable proposition. High dollar ARM servers have closed
motherboard firmware.

Sure, if you devote all of a good salary's disposable income to a
mostly open hardware computer you can buy one. Most people don't make
that much. The bigger issue than that is all main manufacturers do not
want to remove their backdoors, and so ever so slowly, there will come
to be absolutely no choice at all, even for inordinate amounts of
money.



Re: [gentoo-user] Re: A new AMD CPU weakness?

2018-03-18 Thread R0b0t1
On Sun, Mar 18, 2018 at 4:24 PM, taii...@gmx.com  wrote:
> Everyone please remember this is simply an exploit to obtain data off of
> AMD's version of ME which is a DRM mechanism added for hollywood and it
> requires physical access to reprogram the firmware thus this exploit has
> zero impact on anyone who doesn't profit off of DRM.
>

Except if it's anything like the Intel ME exploit, physical access can
be faked using a compromized USB device.

> ME/PSP are evil - don't buy computers that have them - you have choices!
>

No we don't.



Re: [gentoo-user] How to use SR-IOV on a LSI RAID controller

2018-03-08 Thread R0b0t1
On Thu, Mar 8, 2018 at 6:07 PM, taii...@gmx.com  wrote:
> Again please I know how to assign devices and my board has excellent IOMMU
> groups that is not the issue - I want to know how to create the SR-IOV
> virtual functions and assign drives to them to use the same controller on
> more than one VM concurrently.

I see, sorry. This I can not find. What I can find is SR-IOV
documentation for network devices, but nothing for storage or graphics
devices.

It looks like the details are still unrecovered.



Re: [gentoo-user] How to use SR-IOV on a LSI RAID controller

2018-03-08 Thread R0b0t1
On Thu, Mar 8, 2018 at 4:14 PM, taii...@gmx.com <taii...@gmx.com> wrote:
> On 03/07/2018 09:02 PM, R0b0t1 wrote:
>
>> On Wed, Mar 7, 2018 at 7:52 PM, taii...@gmx.com <taii...@gmx.com> wrote:
>>>
>>> I bought a LSI-9211-8i / SAS 2008 controller which reports support for
>>> SR-IOV in lspci and I am wondering how I can use it.
>>>
>>> There is no info on the internet about this not even for their newer
>>> controllers where there is a lot of advertising about SR-IOV.
>>>
>>> The idea is that you can assign a RAID array, individual hard drive, etc
>>> to
>>> a VF which is then assigned to a VM via IOMMU providing better almost
>>> native
>>> performance vs emulated disks.
>>>
>>> Thanks!
>>
>> If it supports SR-IOV you can pass it to a guest with VFIO. If it did
>> not support SR-IOV it would not support VFIO.
>
> I know - my question is how do I create the virtual functions and assign the
> drives to them instead of simply attaching the entire controller?
>
> According to LSI's press release you could have for instance 5 different
> RAID's assigned to 5 different VM's via virtual functions - not simply all
> of them assign to one VM via assigning the controller like a non SR-IOV
> device
>

https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF
https://wiki.installgentoo.com/index.php/PCI_passthrough
https://www.kernel.org/doc/Documentation/vfio.txt

The one sticking point is that you need to figure out the layout of
your PCIe lanes to share multiple devices without conflicts.

Cheers,
 R0b0t1



Re: [gentoo-user] How to use SR-IOV on a LSI RAID controller

2018-03-07 Thread R0b0t1
On Wed, Mar 7, 2018 at 7:52 PM, taii...@gmx.com <taii...@gmx.com> wrote:
> I bought a LSI-9211-8i / SAS 2008 controller which reports support for
> SR-IOV in lspci and I am wondering how I can use it.
>
> There is no info on the internet about this not even for their newer
> controllers where there is a lot of advertising about SR-IOV.
>
> The idea is that you can assign a RAID array, individual hard drive, etc to
> a VF which is then assigned to a VM via IOMMU providing better almost native
> performance vs emulated disks.
>
> Thanks!
>

If it supports SR-IOV you can pass it to a guest with VFIO. If it did
not support SR-IOV it would not support VFIO.

Cheers,
 R0b0t1



Re: [gentoo-user] Gentoo in a VM

2018-03-06 Thread R0b0t1
On Tue, Mar 6, 2018 at 4:13 AM, Neil Bothwick  wrote:
> On Tue, 06 Mar 2018 10:05:05 +0100, J. Roeleveld wrote:
>
>> > 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.
>
> Apart from a few screengrabs and advice on creating the VM in the first
> place, what benefit does this have over the handbook?
>

There are friendly pictures for the simple minded among us, like myself.



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

2018-03-05 Thread R0b0t1
On Mon, Mar 5, 2018 at 10:44 PM,  <the...@sys-concept.com> wrote:
> On 03/05/2018 09:33 PM, R0b0t1 wrote:
>> On Mon, Mar 5, 2018 at 9:41 PM,  <the...@sys-concept.com> wrote:
>>> On 03/05/2018 07:33 PM, R0b0t1 wrote:
>>>> On Mon, Mar 5, 2018 at 7:40 PM,  <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.
>>>>>
>>>>> lsusb -t
>>>>> /:  Bus 11.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
>>>>> /:  Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
>>>>> /:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
>>>>> /:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
>>>>> /:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
>>>>> /:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M
>>>>> /:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
>>>>> |__ Port 3: Dev 13, If 0, Class=Human Interface Device,
>>>>> Driver=usbhid, 12M
>>>>> /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
>>>>> |__ Port 4: Dev 2, If 0, Class=Human Interface Device,
>>>>> Driver=usbhid, 12M
>>>>> |__ Port 4: Dev 2, If 1, Class=Human Interface Device,
>>>>> Driver=usbhid, 12M
>>>>> |__ Port 4: Dev 2, If 2, Class=Human Interface Device,
>>>>> Driver=usbhid, 12M
>>>>> /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
>>>>> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
>>>>> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
>>>>>
>>>>
>>>> How do you know they've stopped working? Are there notices in dmesg?
>>>> Some devices do not work well on USB3 ports.
>>>>
>>>> Cheers,
>>>>  R0b0t1
>>>
>>> dmesg is not showing anything.
>>> I have an usb extension cord pluged-in to the back of the computer "blue
>>> usb port" (I think the color blue designates USB-3), there are two of
>>> them.
>>> My usb stick was working OK on one, but it stopped.  I pluged the USB
>>> extension cord to the other port; so it was working for a while.  Now
>>> the second one stop working as well.
>>>
>>> When I connect my USB stick to the extension cable the "dmesg" is not
>>> showing any output.
>>>
>>
>> I've had this happen, but it wasn't reproducible. Is the drive
>> (sd[a-z]) still left on your filesystem?
>
> df -h
> Filesystem  Size  Used Avail Use% Mounted on
> /dev/sda374G   17G   54G  24% /
> tmpfs   1.6G  1.4M  1.6G   1% /run
> dev  10M 0   10M   0% /dev
> shm 7.9G   36M  7.8G   1% /dev/shm
> cgroup_root  10M 0   10M   0% /sys/fs/cgroup
> /dev/sda4   925G  409G  469G  47% /home
> /dev/sda5   828G  620G  166G  79% /home2
> /dev/sda130M   23M  6.0M  79% /boot
> none7.9G 0  7.9G   0% /run/user/1000
>

Sorry, I meant under /dev - is the last drive you plugged in still
there despite having been removed?



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

2018-03-05 Thread R0b0t1
On Mon, Mar 5, 2018 at 9:41 PM,  <the...@sys-concept.com> wrote:
> On 03/05/2018 07:33 PM, R0b0t1 wrote:
>> On Mon, Mar 5, 2018 at 7:40 PM,  <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.
>>>
>>> lsusb -t
>>> /:  Bus 11.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
>>> /:  Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
>>> /:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
>>> /:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
>>> /:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
>>> /:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M
>>> /:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
>>> |__ Port 3: Dev 13, If 0, Class=Human Interface Device,
>>> Driver=usbhid, 12M
>>> /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
>>> |__ Port 4: Dev 2, If 0, Class=Human Interface Device,
>>> Driver=usbhid, 12M
>>> |__ Port 4: Dev 2, If 1, Class=Human Interface Device,
>>> Driver=usbhid, 12M
>>> |__ Port 4: Dev 2, If 2, Class=Human Interface Device,
>>> Driver=usbhid, 12M
>>> /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
>>> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
>>> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
>>>
>>
>> How do you know they've stopped working? Are there notices in dmesg?
>> Some devices do not work well on USB3 ports.
>>
>> Cheers,
>>  R0b0t1
>
> dmesg is not showing anything.
> I have an usb extension cord pluged-in to the back of the computer "blue
> usb port" (I think the color blue designates USB-3), there are two of
> them.
> My usb stick was working OK on one, but it stopped.  I pluged the USB
> extension cord to the other port; so it was working for a while.  Now
> the second one stop working as well.
>
> When I connect my USB stick to the extension cable the "dmesg" is not
> showing any output.
>

I've had this happen, but it wasn't reproducible. Is the drive
(sd[a-z]) still left on your filesystem?



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

2018-03-05 Thread R0b0t1
On Mon, Mar 5, 2018 at 7:40 PM,  <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.
>
> lsusb -t
> /:  Bus 11.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
> /:  Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
> /:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
> /:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
> /:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
> /:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M
> /:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
> |__ Port 3: Dev 13, If 0, Class=Human Interface Device,
> Driver=usbhid, 12M
> /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
> |__ Port 4: Dev 2, If 0, Class=Human Interface Device,
> Driver=usbhid, 12M
> |__ Port 4: Dev 2, If 1, Class=Human Interface Device,
> Driver=usbhid, 12M
> |__ Port 4: Dev 2, If 2, Class=Human Interface Device,
> Driver=usbhid, 12M
> /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
>

How do you know they've stopped working? Are there notices in dmesg?
Some devices do not work well on USB3 ports.

Cheers,
 R0b0t1



Re: [gentoo-user] Tesseract Profile Error

2018-03-04 Thread R0b0t1
On Sun, Mar 4, 2018 at 5:54 PM, siefke_lis...@web.de
 wrote:
> Hello,
>
> I try to run tesseract but every command ends in the same mistake:
>
> tesseract --list-langs
> [DS] Profile file not available
> (tesseract_opencl_profile_devices.dat); performing profiling.
> Speicherzugriffsfehler
>
> Had someone an idea what can mean it?
>

Did you set L10N (localization) to include "de?" I did not set
anything and get English, but my locale is also US-English.



Re: [gentoo-user] QEMU on a partition

2018-03-02 Thread R0b0t1
On Fri, Mar 2, 2018 at 5:56 PM, Grant Taylor
<gtay...@gentoo.tnetconsulting.net> wrote:
> I've found that removing not-strictly-needed layers of abstraction reduces
> complexity and makes things faster.
>

I can't find it again, but there was a neat writeup investigating the
TCP over TCP "tunnel collapse" phenomena. When two layers are doing
the same thing, there is a tendency for both to behave poorly. I'm not
sure any deeper explanation was or can be offered, but it is something
that holds true not only for network traffic, but disk IO and
databases as well.

Cheers,
 R0b0t1



Re: [gentoo-user] QEMU on a partition

2018-03-02 Thread R0b0t1
On Fri, Mar 2, 2018 at 10:45 AM, Mick <michaelkintz...@gmail.com> wrote:
> On Friday, 2 March 2018 15:33:02 GMT R0b0t1 wrote:
>> You can pass a block device directly to QEMU, and this is recommended
>> for performance reasons.
>
> Does it make a measurable difference, after the guest OS has booted?
>
> I'll need to try this out.  :-)
>

If I remember right it makes a huge difference in raw IO speed, but
one of the most noticeable benefits is that there are no delays as
filesystem cache is flushed to service VM IO operations (which would
be noticed outside of the VM as well).



Re: [gentoo-user] QEMU on a partition

2018-03-02 Thread R0b0t1
On Fri, Mar 2, 2018 at 9:00 AM, Mick <michaelkintz...@gmail.com> wrote:
> On Friday, 2 March 2018 11:34:09 GMT Peter Humphrey wrote:
>> On Friday, 2 March 2018 11:12:36 GMT Helmut Jarausch wrote:
>> > Hi,
>> >
>> > I'd like to install a second Gentoo system on a partition by running
>> > QEMU using that partition (directly) - this is to create and update a
>> > Gentoo
>> > system with different CFLAGS (for an older machine).
>
> The QEMU guest's complete filesystem is contained within a *virtual* disk
> image.  As far as the host OS is concerned, the guest's disk with all
> partitions on it, is a file.  You can store this image file wherever you want
> and map the QEMU on the host to launch it.
>

You can pass a block device directly to QEMU, and this is recommended
for performance reasons. I have a Windows 10 VM that was passed an
entire SSD; it runs fine, and you can take the disk and plug it into
other computers. Passing a partition is a little different, if you
wish to load it directly, you would need to chainload it with GRUB, as
the MBR/GPT information would be duplicated.

All OP needs to do is pass something like "-drive
file=/dev/block,if=virtio". There should be more options, such as AIO
implementation, but you likely won't need to mess with them.


>
>> > Having no experience in such setups my initial problem is how to
>> > install grub2 on that partition (only). I don't want to modify the MBR
>> > of the whole drive containing that partition.
>
> You do not install the guest's GRUB or any other boot loader on the host's
> partition.  You install it within the virtual disk after you have launched the
> guest having attached a LiveCD to it, using QEMU.
>

If you pass a block device the MBR/GPT information will be stored
there. In the case of passing a partition, this means you can't boot
it "directly" because the BIOS/EFI firmware can't read it.

>
>> I do the same for my Atom machine by NFS-exporting its /usr/portage to a
>> chroot on my main machine. The question of booting doesn't arise; all that's
>> needed is a copy of /etc/portage* and the world file. If that sounds
>> interesting I can show you some more detail.
>>
>> * Things like -march and --jobs differ to suit the host machine, but that's
>> about all.
>
> As noted above you'll need to set up CFLAGS in the guest's make.conf file to
> suit the *guest* platform and its CPU.  Setting up "-march=native" won't work
> here.
>

QEMU should, by default, emulate the host processor exactly if your
machine has VT-x. The VM runs directly on the processor and all
instructions are available except the virtualization ones, but you can
enable nested VT-x or the AMD equivalent.

Cheers,
 R0b0t1



Re: [gentoo-user] mono broken?

2018-03-02 Thread R0b0t1
On Fri, Mar 2, 2018 at 12:48 AM, Alan Grimes <alonz...@verizon.net> wrote:
> Hey, what should I do next to try to resolve this, I am pretty sure it's
> an install issue on my mono, haven't really tried to use it like this in
> years...
>
> As below, the "test install" tool tells me it's broken but doesn't give
> me any clue as to the next step. =(
>
>
> atg@tortoise ~/test/kerbal/DMP_SERVER/Soviet $ mono DMPServer.exe
>
> Unhandled Exception:
> System.TypeInitializationException: The type initializer for
> 'System.Console' threw an exception. --->
> System.TypeInitializationException: The type initializer for
> 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic
> number is wrong: 542
>   at System.TermInfoReader.ReadHeader (System.Byte[] buffer,
> System.Int32& position) [0x00028] in :0
>   at System.TermInfoReader..ctor (System.String term, System.String
> filename) [0x0005f] in :0
>   at System.TermInfoDriver..ctor (System.String term) [0x00055] in
> :0
>   at System.ConsoleDriver.CreateTermInfoDriver (System.String term)
> [0x0] in :0
>   at System.ConsoleDriver..cctor () [0x0004d] in
> :0
>--- End of inner exception stack trace ---
>   at System.Console.SetupStreams (System.Text.Encoding inputEncoding,
> System.Text.Encoding outputEncoding) [0x7] in
> :0
>   at System.Console..cctor () [0x0008e] in
> :0
>--- End of inner exception stack trace ---
>   at DarkMultiPlayerServer.DarkLog.Fatal (System.String message)
> [0x0] in <14a0c0e70def4065931f8240b7201327>:0
>   at DarkMultiPlayerServer.Server.Main () [0x0066e] in
> <14a0c0e70def4065931f8240b7201327>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException:
> The type initializer for 'System.Console' threw an exception. --->
> System.TypeInitializationException: The type initializer for
> 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic
> number is wrong: 542
>   at System.TermInfoReader.ReadHeader (System.Byte[] buffer,
> System.Int32& position) [0x00028] in :0
>   at System.TermInfoReader..ctor (System.String term, System.String
> filename) [0x0005f] in :0
>   at System.TermInfoDriver..ctor (System.String term) [0x00055] in
> :0
>   at System.ConsoleDriver.CreateTermInfoDriver (System.String term)
> [0x0] in :0
>   at System.ConsoleDriver..cctor () [0x0004d] in
> :0
>--- End of inner exception stack trace ---
>   at System.Console.SetupStreams (System.Text.Encoding inputEncoding,
> System.Text.Encoding outputEncoding) [0x7] in
> :0
>   at System.Console..cctor () [0x0008e] in
> :0
>--- End of inner exception stack trace ---
>   at DarkMultiPlayerServer.DarkLog.Fatal (System.String message)
> [0x0] in <14a0c0e70def4065931f8240b7201327>:0
>   at DarkMultiPlayerServer.Server.Main () [0x0066e] in
> <14a0c0e70def4065931f8240b7201327>:0
> atg@tortoise ~/test/kerbal/DMP_SERVER/Soviet $ mono-
> mono-api-html  mono-cil-strip
> mono-find-requires mono-package-runtime
> mono-sgen  mono-test-install
> mono-api-info  mono-configuration-crypto
> mono-fpm   mono-service
> mono-shlib-cop mono-xmltool
> mono-boehm mono-find-provides
> mono-heapviz   mono-service2
> mono-symbolicate
>
>
>
> atg@tortoise ~/test/kerbal/DMP_SERVER/Soviet $ mono-test-install
> Active Mono: /usr/bin/mono
>
> Failed to compile sample System.Drawing program, your installation is broken
>

Which version do you have installed? Can you try remerging?

Cheers,
 R0b0t1



Re: [gentoo-user] Printer

2018-03-01 Thread R0b0t1
On Thu, Mar 1, 2018 at 4:33 AM, Roger Cahn <roger.c...@free.fr> 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.
>

Hello,

I strongly recommend a Brother laser/thermal printer. They can do
color now. You can alternatively buy reservoirs for ink based
printers.

Color lasers are usually "business" instead of "home" but I would not
buy a home printer if I could afford it. The savings will be quite a
bit. A business printer will last a decade or more, and is not that
much more expensive. Someone mentioned laser getting better, I would
agree.

Cheers,
 R0b0t1



[gentoo-user] Bouncing Messages

2018-03-01 Thread R0b0t1
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



Re: [gentoo-user] Re: emerge dev-hasell/stack fails with unclear error

2018-02-26 Thread R0b0t1
On Mon, Feb 26, 2018 at 11:59 PM,  <anton.stay.connec...@gmail.com> wrote:
> On Monday, February 26, 2018 10:24:44 AM EST you wrote:
>> When emerging dev-haskell/stack-1.3.2 I'm getting:
>>
>> 
>> [ 84 of 121] Compiling Stack.Path   ( src/Stack/Path.hs,
>> dist/build/Stack/Path.o )
>> [ 85 of 121] Compiling Stack.Package( src/Stack/Package.hs,
>> dist/build/Stack/Package.o )
>> [100 of 121] Compiling Stack.Upload ( src/Stack/Upload.hs,
>> dist/build/Stack/Upload.o )
>> [101 of 121] Compiling Control.Concurrent.Execute (
>> src/Control/Concurrent/Execute.hs, dist/build/Control/Concurrent/Execute.o
>> )
>> * ERROR: dev-haskell/stack-1.3.2::gentoo failed (compile phase):
>> *   setup build failed
>> *
>> * Call stack:
>> * ebuild.sh, line  124:  Called src_compile
>> *   environment, line 2851:  Called haskell-cabal_src_compile
>> *   environment, line 2049:  Called cabal_src_compile
>> *   environment, line  771:  Called cabal-build
>> *   environment, line  535:  Called die
>> * The specific snippet of code:
>> *   ./setup "$@" || die "setup build failed"
>> *
>> 
>>
>> So _probably_ something went wrong when compiling Control.Concurrent.Execute
>> -- but I see no way to tell what was the problem. How do I debug this?
>>
>
> Well,
>
> cd /var/tmp/portage/dev-haskell/stack-1.3.2/work/stack-1.3.2
> runhaskell Setup build
>
> does show an error. It looks like package version mismatch, digging into it...
>
> Sorry for the noise. Strange that emerge did not show any error message from
> the compillation, though...
>
> --
> Anton
>

If you get anywhere, please let me know how. I found the project an
inscrutable mess.

Cheers,
 R0b0t1



Re: [gentoo-user] Closing TAB of Firefix stops Video/Audio playback system wide...

2018-02-26 Thread R0b0t1
On Mon, Feb 26, 2018 at 10:18 AM, Wols Lists <antli...@youngman.org.uk> wrote:
> On 26/02/18 06:33, R0b0t1 wrote:
>> On Mon, Feb 26, 2018 at 12:13 AM, R0b0t1 <r03...@gmail.com> wrote:
>>> On Sun, Feb 25, 2018 at 10:07 PM,  <tu...@posteo.de> wrote:
>>>> Hi,
>>>>
>>>> whenever I close a TAB of Firefox the playback of video or/and audio
>>>> ist stopped for seconds. After that it starts, where it has stopped
>>>> before.
>>>>
>>>> I am using Firefox with alsa (compiled locally via emerge).
>>>>
>>
>> Sorry, my brain was off. But - doesn't Firefox use pulseaudio by
>> default, with no option for ALSA?
>>
>> https://bugzilla.mozilla.org/show_bug.cgi?id=1345661
>> https://bugzilla.mozilla.org/show_bug.cgi?id=1247056
>>
> Not on gentoo, I believe. I've never got round to configuring
> PulseAudio, which means I believe it is not installed, but Firefox sound
> works fine.
>
> Yes I think stock Firefox assumes you have PulseAudio, but the gentoo
> version doesn't.
>

I never installed it either, but pulseaudio is currently running, with
Firefox's pulsaudio USE unset:

# pgrep pulseaudio
8219

Cheers,
 R0b0t1



Re: [gentoo-user] Closing TAB of Firefix stops Video/Audio playback system wide...

2018-02-25 Thread R0b0t1
On Mon, Feb 26, 2018 at 12:13 AM, R0b0t1 <r03...@gmail.com> wrote:
> On Sun, Feb 25, 2018 at 10:07 PM,  <tu...@posteo.de> wrote:
>> Hi,
>>
>> whenever I close a TAB of Firefox the playback of video or/and audio
>> ist stopped for seconds. After that it starts, where it has stopped
>> before.
>>
>> I am using Firefox with alsa (compiled locally via emerge).
>>

Sorry, my brain was off. But - doesn't Firefox use pulseaudio by
default, with no option for ALSA?

https://bugzilla.mozilla.org/show_bug.cgi?id=1345661
https://bugzilla.mozilla.org/show_bug.cgi?id=1247056

Cheers,
 R0b0t1



Re: [gentoo-user] Closing TAB of Firefix stops Video/Audio playback system wide...

2018-02-25 Thread R0b0t1
On Sun, Feb 25, 2018 at 10:07 PM,  <tu...@posteo.de> wrote:
> Hi,
>
> whenever I close a TAB of Firefox the playback of video or/and audio
> ist stopped for seconds. After that it starts, where it has stopped
> before.
>
> I am using Firefox with alsa (compiled locally via emerge).
>
> What can cause this?
>

Check to see if pulseaudio is crashing.

I am experiencing a problem which may be unrelated, wherein sometimes
tabs do not play sound. If the first tab does not play sound most tabs
will not play sound, but occasionally one will; if the first tab plays
sound then occasionally most will.

Cheers,
 R0b0t1



Re: [gentoo-user] Is anyone using a TALOS 2 or any OpenPOWER machine?

2018-02-22 Thread R0b0t1
On Thu, Feb 22, 2018 at 3:40 PM, taii...@gmx.com <taii...@gmx.com> wrote:
> I am of curious as to peoples experiences with OpenPOWER machines and gentoo
> - is it as simple as using the ppc64 arch iso instead of x86_64?
> If anyone uses it for a workstation, what apps do you have? is there
> anything normal missing? (ie: that one would have on an x86_64 workstation)
>

I haven't been able to use Gentoo directly, but I have used Linux on
Power on GCC's servers. There's nothing terribly abnormal, though
there's a lot of interesting FPU modes.

> I noticed that gentoo only has big endian isos instead of little endian and
> I am also wondering what this means for software availability as I have
> never heard of endianness before a few months ago.
>

You should use ppc64le. This complicates things when compiling, and is
a minor issue for some other compilers, who do not support multilib in
a way that makes it possible to build a ppc64le toolchain from a ppc64
toolchain. You may need to set up tools on a computer of another
architecture, or get prebuilt tools from GCC.

> Info:
> https://en.wikipedia.org/wiki/POWER9 (POWER is now the only high performance
> arch that is owner controlled now that AMD has its ME analog PSP)
> http://raptorcs.com/ (The T2 is a modified "romulus" reference board made
> available to the general public with libre firmware)
>

They are expensive, but one day, if the Lord decides to bless me, I may own one.

Cheers,
 R0b0t1



Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread R0b0t1
On Sun, Feb 18, 2018 at 10:50 AM, Neil Bothwick <n...@digimed.co.uk> wrote:
> On Sun, 18 Feb 2018 09:55:01 -0600, R0b0t1 wrote:
>
>> >> There's also a way to boot systemrescuecd from a bootloader that
>> >> doesn't support ISO loading, like the systemd UEFI boot manager (aka
>> >> gummiboot).
>> >
>> > I just plug in the SysRescCD USB-3 stick.
>> >
>> > Much less complication  ;)
>> >
>> > --
>> > Regards,
>> > Peter.
>> >
>> >
>>
>> Please be careful, sir! The SysRescCD releases are not signed. The
>> Russians might be able to get you!
>
> That's not really an issue as neither Peter nor I is able to vote in US
> elections ;-)
>

Not to take the joke too far, but they're funding political groups all
over Europe.



Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread R0b0t1
On Sun, Feb 18, 2018 at 8:32 AM, Peter Humphrey  wrote:
> On Sunday, 18 February 2018 02:10:46 GMT Neil Bothwick wrote:
>> On Sun, 18 Feb 2018 00:44:05 +0200, zless wrote:
>> > I've grown a bit tired by this already. Before I will try your and
>> > Neil's suggestions I will test my luck with the Sysrescuecd iso.
>> > It seems that more people are interested in this and are reporting
>> > success.
>>
>> submenu "SystemRescueCd 64 bit options" {
>> menuentry "SystemRescueCd with default options" {
>> linux (loop)/isolinux/rescue64 isoloop=$isofile
>> initrd (loop)/isolinux/initram.igz
>> }
>>
>> menuentry "SystemRescueCd with all files cached to memory" {
>> linux (loop)/isolinux/rescue64 isoloop=$isofile docache
>> initrd (loop)/isolinux/initram.igz
>> }
>> }
>>
>> You can also add extra boot options, like setting the keymap to avoid the
>> boot process pausing to ask for your choice.
>>
>> There's also a way to boot systemrescuecd from a bootloader that doesn't
>> support ISO loading, like the systemd UEFI boot manager (aka gummiboot).
>
> I just plug in the SysRescCD USB-3 stick.
>
> Much less complication  ;)
>
> --
> Regards,
> Peter.
>
>

Please be careful, sir! The SysRescCD releases are not signed. The
Russians might be able to get you!



Re: [gentoo-user] Firefox Using 10G of RAM

2018-02-17 Thread R0b0t1
On Sat, Feb 17, 2018 at 10:57 PM, Dale <rdalek1...@gmail.com> wrote:
> R0b0t1 wrote:
>> On Sat, Feb 17, 2018 at 9:11 PM, Dale <rdalek1...@gmail.com> wrote:
>>> R0b0t1 wrote:
>>>> Hello List,
>>>>
>>>> This isn't normal. Is it due to the new process model? I think I read
>>>> that now they emulate chrome, which possibly means both browsers are
>>>> unsuitable for use. Firefox will require its threads be OOM killed if
>>>> not closely monitored.
>>>>
>>>> If it can be fixed - can anyone explain?
>>>>
>>>> Cheers,
>>>>  R0b0t1
>>>>
>>>>
>>>
>>> Have you checked to see what in Firefox is using that memory?
>>> about:memory  Then click on Verbose and then Measure.  In the past, I
>>> have found websites that are just awful at loading everything Firefox
>>> has and usually for no good reason.  It's one reason I use adblock, with
>>> some custom blocking not related to ads, and script blocking tools as
>>> well.  I can give those memory hungry things a toss in the trash before
>>> they even load.
>>>
>>> Maybe that will help.  Of course, it could be just Firefox being
>>> Firefox.  I have seen mine use 2GBs in the past but never that much.  :/
>>>
>>> Hope that leads to a clue.
>>>
>> It's a good tip, but the report seems to be a bit optimistic. Firefox
>> claims there are 5 processes using ~500MB each, yet if I close Firefox
>> 10G is suddenly free. Regardless of whether or not Firefox thinks it
>> is using the memory, the kernel thinks it is, because OOM killer
>> triggers.
>>
>> It may or may not be related to certain webpages, I can't especially tell.
>>
>> Cheers,
>>  R0b0t1
>>
>>
>
> I'm stuck on Firefox 56 at the moment, addon issues.  Anyway, I've had
> Firefox, and Seamonkey, to become quite the memory hog before too.
> Sometimes the memory things works but it's hard to grasp at times.
> Other times, it just provides no help at all.  I was hopeful that it
> would point out a particular addon or website for you.
>
> I run multiple profiles here because I have to be logged into the same
> site but as different users.  Sometimes the best thing to do is
> restart.  I have found that some sites take up a chunk of memory but
> when I close all the tabs for that site, it doesn't seem to release that
> memory until I restart Firefox.  I don't know if it is the website or
> Firefox because sometimes it seems to work as it should and sometimes
> not, even with the same site.
>
> It seems that any web browser that has a lot of bells and whistles is
> just going to be a memory hog.  I have to admit tho, 10GBs is
> excessive.  That would make me cringe a bit too.
>
> Maybe the next update will fix it???
>

Right, restarting Firefox is a solution, but not the best. I hope they
roll out the compartmentalized profiles soon.



Re: [gentoo-user] Firefox Using 10G of RAM

2018-02-17 Thread R0b0t1
On Sat, Feb 17, 2018 at 10:34 PM,  <tu...@posteo.de> wrote:
> On 02/17 09:55, R0b0t1 wrote:
>> On Sat, Feb 17, 2018 at 9:11 PM, Dale <rdalek1...@gmail.com> wrote:
>> > R0b0t1 wrote:
>> >> Hello List,
>> >>
>> >> This isn't normal. Is it due to the new process model? I think I read
>> >> that now they emulate chrome, which possibly means both browsers are
>> >> unsuitable for use. Firefox will require its threads be OOM killed if
>> >> not closely monitored.
>> >>
>> >> If it can be fixed - can anyone explain?
>> >>
>> >> Cheers,
>> >>  R0b0t1
>> >>
>> >>
>> >
>> >
>> > Have you checked to see what in Firefox is using that memory?
>> > about:memory  Then click on Verbose and then Measure.  In the past, I
>> > have found websites that are just awful at loading everything Firefox
>> > has and usually for no good reason.  It's one reason I use adblock, with
>> > some custom blocking not related to ads, and script blocking tools as
>> > well.  I can give those memory hungry things a toss in the trash before
>> > they even load.
>> >
>> > Maybe that will help.  Of course, it could be just Firefox being
>> > Firefox.  I have seen mine use 2GBs in the past but never that much.  :/
>> >
>> > Hope that leads to a clue.
>> >
>>
>> It's a good tip, but the report seems to be a bit optimistic. Firefox
>> claims there are 5 processes using ~500MB each, yet if I close Firefox
>> 10G is suddenly free. Regardless of whether or not Firefox thinks it
>> is using the memory, the kernel thinks it is, because OOM killer
>> triggers.
>>
>> It may or may not be related to certain webpages, I can't especially tell.
>>
>> Cheers,
>>  R0b0t1
>>
>
> Hi,
>
> try 'uBlock origin' and 'uMatrix' for a more specific block. You can
> even block certain elements of a webpage by simply clicking on
> them. Dont use uBlock (that one without the 'origin' in its name),
> since as far as I know it is no longer developed.
> Both do a good job for keeping your data yours, too.
>
> HTH!
> Cheers
> Meino
>

I do happen to have uBlock Origin.



Re: [gentoo-user] Firefox Using 10G of RAM

2018-02-17 Thread R0b0t1
On Sat, Feb 17, 2018 at 9:11 PM, Dale <rdalek1...@gmail.com> wrote:
> R0b0t1 wrote:
>> Hello List,
>>
>> This isn't normal. Is it due to the new process model? I think I read
>> that now they emulate chrome, which possibly means both browsers are
>> unsuitable for use. Firefox will require its threads be OOM killed if
>> not closely monitored.
>>
>> If it can be fixed - can anyone explain?
>>
>> Cheers,
>>  R0b0t1
>>
>>
>
>
> Have you checked to see what in Firefox is using that memory?
> about:memory  Then click on Verbose and then Measure.  In the past, I
> have found websites that are just awful at loading everything Firefox
> has and usually for no good reason.  It's one reason I use adblock, with
> some custom blocking not related to ads, and script blocking tools as
> well.  I can give those memory hungry things a toss in the trash before
> they even load.
>
> Maybe that will help.  Of course, it could be just Firefox being
> Firefox.  I have seen mine use 2GBs in the past but never that much.  :/
>
> Hope that leads to a clue.
>

It's a good tip, but the report seems to be a bit optimistic. Firefox
claims there are 5 processes using ~500MB each, yet if I close Firefox
10G is suddenly free. Regardless of whether or not Firefox thinks it
is using the memory, the kernel thinks it is, because OOM killer
triggers.

It may or may not be related to certain webpages, I can't especially tell.

Cheers,
 R0b0t1



[gentoo-user] Firefox Using 10G of RAM

2018-02-17 Thread R0b0t1
Hello List,

This isn't normal. Is it due to the new process model? I think I read
that now they emulate chrome, which possibly means both browsers are
unsuitable for use. Firefox will require its threads be OOM killed if
not closely monitored.

If it can be fixed - can anyone explain?

Cheers,
 R0b0t1



Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-17 Thread R0b0t1
I take it you have read
https://forums.gentoo.org/viewtopic-t-790015-highlight-grub2+iso.html.
This did not work for me either, and it would leave me in the same
place: the root filesystem would not be uncompressed and pivoted to.

I can't remember exactly what the change was, but I think I retrieved
the answer from that thread. Try the entry at
https://forums.gentoo.org/viewtopic-p-6348023.html#6348023, which is:

menuentry "Gentoo Linux minimal install" {
  loopback loop /boot/iso/install-amd64-minimal-20100408.iso
  linux (loop)/isolinux/gentoo root=/dev/ram0 init=/linuxrc dokeymap
looptype=squashfs loop=/image.squashfs cdroot initrd=gentoo.igz
isoboot=/boot/iso/install-amd64-minimal-20100408.iso
  initrd (loop)/isolinux/gentoo.igz
}

The difference being a change in parameter name. isoloop is now
isoboot. If that fails look at
https://forums.gentoo.org/viewtopic-p-7719674.html#7719674, but it
seems to contain the same changes.

Having read all of that again this does seem like the fix. If that
*still* doesn't work, recursively grep the unpacked ISO file for
either isoloop or isoboot to find the location in the script you
should be looking at.

Cheers,
 R0b0t1

On Fri, Feb 16, 2018 at 1:34 PM, zless <zl...@dmesg.site> wrote:
> Hello all,
>
> I'm trying to have the Gentoo Live CD ISO as a recovery media in grub.
>
> I tried all the options I could think off in a custom grub menu entry like
> this:
>
> menuentry "Gentoo ISO" {
> set cmdline="root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs 
> loop=/image.squashfs cdroot initrd=gentoo.igz BOOT_IMAGE=gentoo"
> loopback loop /path/to/iso/install-amd64-minimal-20180206T214502Z.iso
> linux  (loop)/isolinux/gentoo $cmdline isoloop=/image.squashfs 
> initrd=gentoo.igz vga=791 BOOT_IMAGE=gentoo
> initrd (loop)/isolinux/gentoo.igz
> }
>
> It boots the live CD kernel, it even asks for the keymap but then it fails to 
> mount the root device.
>
> Any idea how to properly boot the iso from grub?
>
>
>
>
>



Re: [gentoo-user] [OT] A little help for non-native English speakers

2018-02-01 Thread R0b0t1
On Thu, Feb 1, 2018 at 11:03 AM, Peter Humphrey  wrote:
> [Far off topic]

Allow me to play doubles advocate here for a moment. For all intensive
purposes I think you are wrong. In an age where false morals are a
diamond dozen, true virtues are a blessing in the skies. We often put
our false morality on a petal stool like a bunch of pre-Madonnas, but
you all seem to be taking something very valuable for granite. So I
ask of you to mustard up all the strength you can because it is a
doggy dog world out there. Although there is some merit to what you
are saying it seems like you have a huge ship on your shoulder. In
your argument you seem to throw everything in but the kids Nsync, and
even though you are having a feel day with this I am here to bring you
back into reality. I have a sick sense when it comes to these types of
things. It is almost spooky, because I cannot turn a blonde eye to
these glaring flaws in your rhetoric. I have zero taller ants when it
comes to people spouting out hate in the name of moral righteousness.
You just need to remember what comes around is all around, and when
supply and command fails you will be the first to go.

Make my words, when you get down to brass stacks it doesn't take
rocket appliances to get two birds stoned at once. It's clear who
makes the pants in this relationship, and sometimes you just have to
swallow your prize and accept the facts. You might have to come to
this conclusion through denial and error but I swear on my mother's
mating name that when you put the petal to the medal you will pass
with flying carpets like it’s a peach of cake.



Re: [gentoo-user] [off topic] Opteron CPU missing chips on the bottom

2018-01-30 Thread R0b0t1
On Tue, Jan 30, 2018 at 10:02 AM, taii...@gmx.com <taii...@gmx.com> wrote:
> On 01/30/2018 09:43 AM, Peter Humphrey wrote:
>
>> On Tuesday, 30 January 2018 13:51:31 GMT taii...@gmx.com wrote:
>>>
>>> I purchased a used g34 opteron off of fleabay (sold as working with no
>>> mention of this) and I noticed that it is missing some of the bits on
>>> the bottom
>>
>> Do you mean the pins that mate with the socket?
>>
>>> ... and that most of them are crooked,
>>
>> Send it back! Don't even touch it. Any attempt to straighten a pin will
>> snap
>> it off, as like as not.
>
> Not the pins (which on socket g34 are on the motherboard)
>
> It is the little IC components on the bottom of the CPU.
>

You should return it, most of those components are decoupling
capacitors. Quickly switching power produces high frequency noise that
can migrate to other parts of the circuit and cause spurious logic
errors.

It probably plugs in and turns on but I would not accept such a part.

Cheers,
 R0b0t1



Re: [gentoo-user] Re: Using both Gnome and KDE Plasma?

2018-01-24 Thread R0b0t1
On Wed, Jan 24, 2018 at 8:34 PM, Dale <rdalek1...@gmail.com> wrote:
> Nikos Chantziaras wrote:
>> On 25/01/18 02:28, Neil Bothwick wrote:
>>> On Thu, 25 Jan 2018 01:16:07 +0200, Nikos Chantziaras wrote:
>>>
>>>> One user wants Gnome, the other wants Plasma. Is this doable?
>>>>
>>>> Currently, Plasma is installed, and the profile is:
>>>>
>>>> default/linux/amd64/17.0/desktop/plasma/systemd
>>>>
>>>> The profiles seem to be either-or. There's one for plasma, one for
>>>> gnome. But I need both now :-/
>>>
>>> The differences between the profiles are mainly the USE flags set. As
>>> your system is already built with the plasma profiles, I'd add gnome to
>>> your USE flags and emerge gnome-base/gnome. Portage will shout at you if
>>> you need to enable any other USE flags.
>>
>> Don't know. There's use flags that seem to be set because it's
>> recommended to set them, not because they're needed.
>>
>> It seems to me that I have to choose either-or here in order to have a
>> well working desktop. Otherwise, if something doesn't seem work right,
>> I'll never know whether it's because of the profile or because of
>> something else.
>>
>> I suppose I have to switch to the gnome profile and then see if KDE is
>> still working as before. But it seems I'll have to manually replicate
>> whatever the plasma profile is setting by hand.
>>
>>
>>
>
>
> This is what I would do.  I would make sure emerge -uDNp world comes
> back clean, no remerges or updates.  Change profile to generic desktop.
> Do a emerge -DNp world and look at what changes, especially USE flags.
> Take those changes and set them in make.conf or package.use if you
> prefer.  Since both KDE and Gnome has their own desktop profile, using
> the generic profile I think would be the best bet.  You just may have to
> set some things in make.conf/package.use to add KDE and Gnome settings
> to have both installed at the same time.
>

Yes, this works and I've done it, which is why I recommended it.

Cheers,
 R0b0t1



Re: [gentoo-user] Using both Gnome and KDE Plasma?

2018-01-24 Thread R0b0t1
On Wed, Jan 24, 2018 at 5:16 PM, Nikos Chantziaras <rea...@gmail.com> wrote:
> One user wants Gnome, the other wants Plasma. Is this doable?
>
> Currently, Plasma is installed, and the profile is:
>
>   default/linux/amd64/17.0/desktop/plasma/systemd
>
> The profiles seem to be either-or. There's one for plasma, one for gnome.
> But I need both now :-/
>

Pick the desktop profile with no DE. Install kde-plasma/plasma-meta
and gnome-base/gnome. There should be a drop down in your display
manager that will allow you to select which DE to launch. If your
desktop manager is associated with a DE this may be harder to find. I
suggest SDDM.

Beware, sir. The Gnome foot is the left, or sinister, foot.

Cheers,
 R0b0t1



Re: [gentoo-user] Pointers are not supported: KDEDModule

2018-01-21 Thread R0b0t1
On Sun, Jan 21, 2018 at 9:45 AM, Mick <michaelkintz...@gmail.com> wrote:
> I'm trying to understand why X crashes at login, with this error in .xsession-
> errors:
>
> QDBusAbstractAdaptor: Cannot relay signal
> KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported:
> KDEDModule*
> QDBusAbstractAdaptor: Cannot relay signal
> KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported:
> KDEDModule*
> QDBusAbstractAdaptor: Cannot relay signal
> KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported:
> KDEDModule*
> QDBusAbstractAdaptor: Cannot relay signal
> KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported:
> KDEDModule*
> QDBusAbstractAdaptor: Cannot relay signal
> KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported:
> KDEDModule*
> QDBusAbstractAdaptor: Cannot relay signal
> KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported:
> KDEDModule*
> QDBusAbstractAdaptor: Cannot relay signal
> KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported:
> KDEDModule*
> QDBusAbstractAdaptor: Cannot relay signal
> KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported:
> KDEDModule*
> startkde: Done.
> The X11 connection broke (error 1). Did the X11 server die?
> QThread: Destroyed while thread is still running
> Closing SQL connection:  "kactivities_db_resources_139787921024832_readwrite"
> The X11 connection broke: I/O error (code 1)
> XIO:  fatal IO error 4 (Interrupted system call) on X server ":0"
>   after 2408 requests (2408 known processed) with 0 events remaining.
>
> If I restart xdm the user able to login, but the first time more often than
> not fails as above.

This seems very similar:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=797979. There is
also https://forums.gentoo.org/viewtopic-t-1056258-start-0.html with
no replies.

Which display manager are you using? Are you using more than one monitor?

Cheers,
 R0b0t1



Re: [gentoo-user] USB3 external storage HD's

2018-01-18 Thread R0b0t1
On Thu, Jan 18, 2018 at 12:33 PM,  <the...@sys-concept.com> wrote:
> Any recommendations?
>

Buy a SATA to USB3 enclosure and a 2.5" laptop drive separately.
Usually this will be cheaper and give you better performance. Low
quality drives are typically binned for USBHDD usage. This is changing
with the speed increase of USB3, but seems to not have entirely gone
away.

They sell SATA to USB3 *converters* that do not fully enclose the
drive. You can buy cases for the bare 2.5" HDDs if you want. You could
also look at 3.5" drives for higher storage density, though 2.5"
drives are catching up.

Just use the first result on Amazon or Newegg, or the cheapest thing
you can find at a physical store (a common brand is Startech).

Cheers,
 R0b0t1



Re: [gentoo-user] single core athlon?

2018-01-08 Thread R0b0t1
On Mon, Jan 8, 2018 at 4:43 PM, Walter Dnes  wrote:
>   There are "athlons" and then there are "athlons".  Check the gcc page
> https://gcc.gnu.org/onlinedocs/gcc-6.4.0/gcc/x86-Options.html#x86-Options
> for an idea of what's what.  You need at least the "k8" version.  The
> ultimate way to find out is to download the amd64 minimal install ISO
> https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Obtain_the_media
> and try to boot off it.
>

I was under the impression that disabling SMP on single core systems
could lead to a performance increase, but wasn't necessary.

Is the deciding factor actually processor family? And - there are GCC
versions or distributions that have already dropped support for x86_64
processors? I'd only read about 32 bit families being dropped.



Re: [gentoo-user] Microcode updates for "old" Intel CPU's

2018-01-07 Thread R0b0t1
On Sunday, 7 January 2018 20:46:52 GMT taii...@gmx.com wrote:
> I have several sandy/ivybridge CPU's and I was wondering if anyone knows
> as to if intel is releasing microcode updates for them.
>
> It sure would be funny if intel wanted you to buy a new CPU to fix a
> problem that was their fault to begin with.

As I found explained elsewhere, what can be done with microcode
updates is actually very limited. It was claimed that most often Intel
would use updates to disable features, permanently, and could not do
much more with microcode. This agrees with my understanding of
electronics, though I originally did think that slightly more was
possible. Perhaps they could disable some cache functionality or
speculative execution, but you would still be left with the
performance penalties of most of the code-based fixes.

In any case, using my original expectations, I would not expect them
to be able to modify the behavior of the execution units in such a
fundamental way. If great changes are possible with microcode then
Intel's processors are actually closer to FPGAs, which I do not think
is likely, as FPGAs are very power and space inefficient.


On Sun, Jan 7, 2018 at 6:00 PM, Peter Humphrey <pe...@prh.myzen.co.uk> wrote:
> Welcome to unbridled capitalism, USA-style.
>

I have a mobile device that I noticed had a severe reduction in
battery life mid-November, about the time the patches were rolled out
by Microsoft. I may have to look at legal action in this regard, as
now the device is unusable. I assumed it was compromised anyway and
would prefer the performance back.

Cheers,
 R0b0t1



Re: [gentoo-user] Expect a ~15% average slowdown if you use an Intel processor

2018-01-04 Thread R0b0t1
On Thu, Jan 4, 2018 at 10:18 AM, Rich Freeman <ri...@gentoo.org> wrote:
> On Thu, Jan 4, 2018 at 10:44 AM, R0b0t1 <r03...@gmail.com> wrote:
>>
>> I am still working through the information myself, but it looks like
>> BPF filters are an easy way to make sure you have something to look
>> for in kernelspace.
>
> My understanding is that for exploit 1 to work you need to have the
> kernel execute some code for you, and BPF is a way to do that because
> it is a JIT compiler.
>
> The bits about finding where BPF is in kernelspace is for exploit 2,
> which requires branching into that code, which requires knowing its
> address.
>

What I think is missing is the full details of the cache behavior,
because I saw some (ad hoc) proposals that the situation may be very,
very bad indeed. I'll see if I can find the explanation involving only
usermode code.

The original recommendation from CERT was to fully replace all
hardware: 
https://webcache.googleusercontent.com/search?q=cache:rzc6iQmgrIcJ:https://www.kb.cert.org/vuls/id/584653+=4=en=clnk=us

>> On Thu, Jan 4, 2018 at 9:44 AM, R0b0t1 <r03...@gmail.com> wrote:
>>> But, if they do,
>>
>> then AMD processors are susceptible in the same way, and the issue can
>> not be fixed. There are some news pieces and commenters claiming that
>> AMD processors suffer similar issues.
>
> AMD published this:
> https://www.amd.com/en/corporate/speculative-execution
>
> This tends to go along with Google's statement that AMD is vulnerable
> to variant 1, but not 2 or 3.
>
> There is plenty of speculation going on with the hazy info that was
> provided, but none of the original sources suggest that AMD is
> vulnerable to variant 3.  For variants 1/2 Google says that AMD is
> susceptible to only 1, and the white paper says that they're
> vulnerable to either 1/2 but they don't say which specifically.
>
> In any case, short of somebody publishing actual exploit code so that
> people can run their own tests, I'm going to go with AMD.  Nobody
> reputable is outright contradicting their statements.  For variant 1
> the only known vulnerability is BPF which probably next to nobody
> uses, and for variant 2 there really aren't any alternatives available
> right now anyway.
>

I think referring to BPF is a red herring, because it is really the
processor that is at fault. Not BPF. And yes, I'm aware of what AMD
claims.

Cheers,
 R0b0t1



Re: [gentoo-user] Expect a ~15% average slowdown if you use an Intel processor

2018-01-04 Thread R0b0t1
On Thu, Jan 4, 2018 at 9:44 AM, R0b0t1 <r03...@gmail.com> wrote:
> But, if they do,

then AMD processors are susceptible in the same way, and the issue can
not be fixed. There are some news pieces and commenters claiming that
AMD processors suffer similar issues.



  1   2   3   4   >