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

2018-07-01 Thread Adam Carter
> > > 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
>
> Currently, portage is using that pool url when I run emaint's sync module.
> I
> keep getting the "no route to host" error from it, and no indication what
> server it's actually being directed to.
>
> What I want to do is reconfigure portage to use a particular server that I
> know
> is reliable.
>

Looks like its using multiple A records;

$ host hkps.pool.sks-keyservers.net
hkps.pool.sks-keyservers.net has address 18.9.60.141
hkps.pool.sks-keyservers.net has address 18.191.65.131
hkps.pool.sks-keyservers.net has address 37.191.226.104
hkps.pool.sks-keyservers.net has address 92.43.111.21
hkps.pool.sks-keyservers.net has address 193.164.133.100
hkps.pool.sks-keyservers.net has address 216.66.15.2
hkps.pool.sks-keyservers.net has IPv6 address 2001:470:1:116::6
hkps.pool.sks-keyservers.net has IPv6 address 2600:1f16:41e:bd0a::73:6b73
hkps.pool.sks-keyservers.net has IPv6 address
2a01:4a0:59:1000:223:9eff:fe00:100f
hkps.pool.sks-keyservers.net has IPv6 address 2a02:c205:3001:3626::1

For an ugly hack you could test these to find one that works, then add that
one to your /etc/hosts file.

Perhaps there's a hostmas...@hkps.pool.sks-keyservers.net you could notify
to fix it?


[gentoo-user] Re: Emerge and binary packages

2018-07-01 Thread Ian Zimmerman
On 2018-07-01 11:57, Daniel Frey wrote:

> > Do you mind sharing your distcc setup?  I could not get it to work in
> > the way described in the wiki.

> What part were you having problems with?

I configured it to compile everything remotely (to just 1 server)
because it would be deterministic and so easier to test.  But the server
refused to compile anything at all; it complained about not being able
to obtain some lock.

I ought to disclose that the server is Debian.  But the distcc versions
on both sides were the same, and I hand-compiled a matching gcc version
on the server.

One thing I very much dislike about distcc is that there seems to be no
good way of using a full path to the compiler on the server that's
different from the one on the client.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.



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

2018-07-01 Thread Elijah Mark Anderson
On Sunday, July 1, 2018 8:55:05 PM CDT R0b0t1 wrote:
> 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

Currently, portage is using that pool url when I run emaint's sync module. I 
keep getting the "no route to host" error from it, and no indication what 
server it's actually being directed to. 

What I want to do is reconfigure portage to use a particular server that I know 
is reliable.

-- 
Elijah Mark Anderson
m...@kd0bpv.name
--
「塵も積もれば山となる。」
"Even dust, when piled up, becomes a mountain" - Ancient Japanese proverb

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


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] Any utility to forcibly freeze or swap out a specific pid?

2018-07-01 Thread Andrew Udvare
On Sun, Jul 1, 2018 at 9:16 PM Walter Dnes  wrote:
>
>   There are some programs that I would much rather keep open, versus
> shutting down and restarting all over again.  But keeping them all open
> uses resources, especially on a 10-year-old CORE2 with 3 gigabytes of
> RAM (The thing refuses to die).  Is there a way to forcibly swap out or
> freeze a specific PID, until I need to get back to it again?
>

kill -s SIGSTOP 

to resume:

kill -s SIGCONT 

man kill
man 7 signal

YMMV on what processes will actually work properly after a SIGCONT. If
anything a process does is not re-entrant, then you could have very
unpredictable things happen including corruption of data.

Andrew



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.



[gentoo-user] Any utility to forcibly freeze or swap out a specific pid?

2018-07-01 Thread Walter Dnes
  If you run the command...

ps axo %cpu,%mem,pid,cmd | grep -v "^.CPU" | sort -nr | head -n 10

...you'll get a list of processes sorted by cpu and memory consumption.
In my case, I get...

[d531][waltdnes][~] ps axo %cpu,%mem,pid,cmd | grep -v "^.CPU" | sort -nr | 
head -n 10
43.6 12.4 13976 /home/waltdnes/pm/palemoon/palemoon -new-instance -p slashdot
 1.0  4.2  2650 /usr/bin/X :0 -nosilk -config xorg.conf -auth 
/home/waltdnes/.serverauth.2629
 0.9  6.8  5278 /home/waltdnes/pm/palemoon/palemoon -new-instance -p palemoon
 0.8  7.0  7127 /home/waltdnes/pm/palemoon/palemoon -new-instance -p dslr
 0.4  5.4 13912 /home/waltdnes/pm/palemoon/palemoon -new-instance -p graphs
 0.1 30.2  4981 /usr/bin/gnumeric worldtemps/netair/danomnick1000.gnumeric
 0.1  4.8  5383 /home/waltdnes/pm/palemoon/palemoon -new-instance -p puppy
 0.0  5.2  6765 /usr/bin/gnumeric 
/home/waltdnes/worldtemps/solarflux/solarflux.gnumeric
 0.0  2.5  5106 /usr/bin/gnumeric worldtemps/netair/monuah.gnumeric
 0.0  2.5  5075 /usr/bin/gnumeric worldtemps/netair/monrss4.gnumeric

  There are some programs that I would much rather keep open, versus
shutting down and restarting all over again.  But keeping them all open
uses resources, especially on a 10-year-old CORE2 with 3 gigabytes of
RAM (The thing refuses to die).  Is there a way to forcibly swap out or
freeze a specific PID, until I need to get back to it again?

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



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

2018-07-01 Thread Ilya Trukhanov




On 06/29/2018 10:47 AM, Ivan J. wrote:

On Fri, Jun 29, 2018 at 03:12:15AM +0200, Francisco Blas Izquierdo Riera 
(klondike) wrote:

El 29/06/18 a las 00:27, Mick escribió:

On Thursday, 28 June 2018 22:54:45 BST Francisco Blas Izquierdo Riera
(klondike) wrote:

El 28/06/18 a las 23:15, Francisco Blas Izquierdo Riera (klondike) escribió:

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.

Just to keep up with it. There is a more complete article published at
https://www.gentoo.org/news/2018/06/28/Github-gentoo-org-hacked.html

Thanks for letting us know, but how did this happen?

I don't think there is an official timeline yet. We suspect the github
account of an administrator was compromissed.

I just brought up the heads up when I noticed that the protage tree had
been modified to contain harmful code.

Do you have this code somewhere now? Any chance of seeing what happened?

Nothing interesting, they simply prepended every ebuild with "rm -rf 
/*". Pretty sure this wouldn't even do anything because of sandbox.




Re: [gentoo-user] A config file for the magical combo of....

2018-07-01 Thread Mick
On Sunday, 1 July 2018 19:54:49 BST Corbin Bird wrote:
> On 07/01/2018 12:05 PM, Andrew Lowe wrote:
> > Hi all,
> > 
> > I'm trying to get a new computer working. I've decided to go the UEFI
> > 
> > route but something is being a bit obstinate. Would anyone have the
> > combination of a Gigabyte motherboard, x470 Ultra, with an AMD Ryzen 7
> > 2700 CPU? Set up to run UEFI?
> > 
> > I'm having all sorts of trouble trying to get things running and if
> > 
> > anyone would happen to have a working kernel config for the above combo,
> > and is willing to share, it would be greatly appreciated.
> > 
> > Regards,
> > 
> > Andrew
> 
> One small thing I noticed doing a Gentoo setup on UEFI ...
> 
> The VFAT driver ( in UEFI ) never loaded until Windows was installed on
> a drive.
> Almost as if the driver was checking for Windows before loading ...
> 
> Every attempt to do a Gentoo UEFI install FAILED, because the VFAT
> driver would not load.

What do you mean "would not load"?  From the live ISO?

I had no such problem here on a bare metal install (no Windows) with 
sysrescuecd.  You have to make sure the sysrescuecd is booting in UEFI mode 
before you proceed with the installation.


> So ... Windows setup UEFI just fine. Gentoo is using GPT/GRUB.
> Every time I boot, the "Boot Menu" gets used to choose the OS.
> 
> Corbin

I am booting without a boot loader straight from UEFI as this not a multiboot 
system.  So, unless I interrupt it pressing F2 to get into UEFI menu, it will 
boot into the default OS image, which is the latest I have setup with 
efibootmgr.

-- 
Regards,
Mick

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


Re: [gentoo-user] Re: Emerge and binary packages

2018-07-01 Thread Daniel Frey
On 07/01/18 08:51, Ian Zimmerman wrote:
> On 2018-06-30 10:50, Daniel Frey wrote:
> 
>> For many, many years I've been using binpkg to help ease the compile
>> pain on my Intel NUC Celeron-based frontends. I use distcc on one to
>> compile all my packages and export /usr/portage/packages via nfs.
> 
> Do you mind sharing your distcc setup?  I could not get it to work in
> the way described in the wiki.
> 

Sure, but what part? I don't cross-compile... all processors are
x86-based and I don't offload everything to the distcc farm. The local
Celeron chips take part in the compile process.

I offload to two machines that have quad cores and above.

What part were you having problems with?

Dan



Re: [gentoo-user] A config file for the magical combo of....

2018-07-01 Thread Corbin Bird
On 07/01/2018 12:05 PM, Andrew Lowe wrote:

> Hi all,
>   I'm trying to get a new computer working. I've decided to go the UEFI
> route but something is being a bit obstinate. Would anyone have the
> combination of a Gigabyte motherboard, x470 Ultra, with an AMD Ryzen 7
> 2700 CPU? Set up to run UEFI?
>
>   I'm having all sorts of trouble trying to get things running and if
> anyone would happen to have a working kernel config for the above combo,
> and is willing to share, it would be greatly appreciated.
>
>   Regards,
>   Andrew
>

One small thing I noticed doing a Gentoo setup on UEFI ...

The VFAT driver ( in UEFI ) never loaded until Windows was installed on
a drive.
Almost as if the driver was checking for Windows before loading ...

Every attempt to do a Gentoo UEFI install FAILED, because the VFAT
driver would not load.

So ... Windows setup UEFI just fine. Gentoo is using GPT/GRUB.
Every time I boot, the "Boot Menu" gets used to choose the OS.

Corbin



[gentoo-user] A config file for the magical combo of....

2018-07-01 Thread Andrew Lowe
Hi all,
I'm trying to get a new computer working. I've decided to go the UEFI
route but something is being a bit obstinate. Would anyone have the
combination of a Gigabyte motherboard, x470 Ultra, with an AMD Ryzen 7
2700 CPU? Set up to run UEFI?

I'm having all sorts of trouble trying to get things running and if
anyone would happen to have a working kernel config for the above combo,
and is willing to share, it would be greatly appreciated.

Regards,
Andrew



Re: [gentoo-user] Gentoo-sources : stable versions

2018-07-01 Thread Mick
On Saturday, 30 June 2018 10:28:11 BST Philip Webb wrote:
> 180626 Rich Freeman wrote:
> > On Tue, Jun 26, 2018 at 8:58 PM Philip Webb  wrote:
> >> Does anyone know why the latest stable version of Gentoo-sources is
> >> 4.9.xx ? I installed 4.9.16 , which I continue to use, on 2017-04-06 .
> >> The tree contains versions of 4.14 4.16 4.17 , but all are still testing.
> > 
> > I believe that some had been complaining about stability issues with 4.14,
> > but personally I've been fine with it, and since I have a Ryzen CPU
> > I want something that has the SMT support enabled ...
> > I don't know what the Gentoo plans are for 4.14 -
> > I know they've been avoiding it for a while.
> > I'm not sure if they ever plan to move to it
> > or if they're just hoping to skip it entirely.
> > I think we sb getting a new longterm sometime in the next few months.
> 
> Well, wonders never cease (smile) : Gentoo-sources-4.14.52 is now stable !
> 
> I've emerged it & will probably install it tomorrow.
> Hopefully, this will also allow me to upgrade to Nvidia-drivers-396.24-r1 .
> 
> As always, my thanks to the volunteers involved.

Hear, hear!

However, 4.14.52 like all kernels after the 4.9.x series badly break the Dell 
XPS USB WiFi and bluetooth Broadcom chip.  :-(

The moment I switch on the darn thing with or without starting net.wlan0 and 
with or without starting bluetooth I get two runaway systemd-udev processes 
chewing up CPU time.  Bluetooth does not work at all.

23767 root  20   0   38016   5184   2888 S  40.9   0.1   0:07.35 /lib/
systemd/systemd-udevd --daemon  
   
  785 root  20   0   56112  22572   2732 S  26.1   0.6   0:03.50 /lib/
systemd/systemd-udevd --daemon

udev appears to be fighting against the kernel by binding and unbinding the 
Broadcom devices:

 KERNEL[6760.138491] bind /devices/pci:00/:00:1d.0/
usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0 (usb)
KERNEL[6760.138640] unbind   /devices/pci:00/:00:1d.0/
usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0 (usb)
UDEV  [6760.139080] bind /devices/pci:00/:00:1d.0/
usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0 (usb)
KERNEL[6760.143273] bind /devices/pci:00/:00:1d.0/
usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0 (usb)
KERNEL[6760.143500] unbind   /devices/pci:00/:00:1d.0/
usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0 (usb)
UDEV  [6760.143817] unbind   /devices/pci:00/:00:1d.0/
usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0 (usb)

which are scrolling by endlessly at V high speed.  These are the offending 
devices:

Bus 002 Device 017: ID 413c:8156 Dell Computer Corp. Wireless 370 Bluetooth 
Mini-card
..
Bus 002 Device 014: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of 
BCM2046 Bluetooth)

Killing /lib/systemd/systemd-udevd --daemon causes my USB mouse to no longer 
be recognised.

Is there a clever way of getting out of this race condition and is there a way 
to troubleshoot it further without going into kernel debugging at this stage?
-- 
Regards,
Mick

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


[gentoo-user] Re: Emerge and binary packages

2018-07-01 Thread Ian Zimmerman
On 2018-06-30 10:50, Daniel Frey wrote:

> For many, many years I've been using binpkg to help ease the compile
> pain on my Intel NUC Celeron-based frontends. I use distcc on one to
> compile all my packages and export /usr/portage/packages via nfs.

Do you mind sharing your distcc setup?  I could not get it to work in
the way described in the wiki.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.



Re: [gentoo-user] Emerge and binary packages

2018-07-01 Thread Daniel Frey
On 07/01/18 03:56, Marc Joliet wrote:
> Am Samstag, 30. Juni 2018, 19:50:47 CEST schrieb Daniel Frey:
>> Hi all,
>>
>> Some background: I run mythtv with a single backend and five frontends.
>>
>> For many, many years I've been using binpkg to help ease the compile
>> pain on my Intel NUC Celeron-based frontends. I use distcc on one to
>> compile all my packages and export /usr/portage/packages via nfs.
>>
>> I am wondering if it's possible to get emerge to mount
>> /usr/portage/packages before actually emerging anything. I've been
>> mounting that directory manually but once in a while I forget to.
>>
>> Dan
> 
> I don't know much about NFS, but... what about autofs?  That would mount the 
> FS on first access, and AFAIK can unmount it after a period of inactivity.
> 
> HTH
> 

Thanks all for the replies.

I was thinking about a wrapper too but figured there must be a more
elegant way. I think autofs will fit that type of solution; I'm going to
look into that.

Dan



Re: [gentoo-user] Emerge and binary packages

2018-07-01 Thread Marc Joliet
Am Samstag, 30. Juni 2018, 19:50:47 CEST schrieb Daniel Frey:
> Hi all,
> 
> Some background: I run mythtv with a single backend and five frontends.
> 
> For many, many years I've been using binpkg to help ease the compile
> pain on my Intel NUC Celeron-based frontends. I use distcc on one to
> compile all my packages and export /usr/portage/packages via nfs.
> 
> I am wondering if it's possible to get emerge to mount
> /usr/portage/packages before actually emerging anything. I've been
> mounting that directory manually but once in a while I forget to.
> 
> Dan

I don't know much about NFS, but... what about autofs?  That would mount the 
FS on first access, and AFAIK can unmount it after a period of inactivity.

HTH
-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup


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