Re: [gentoo-user] OT: how does excel find commas within fields of a csv file?

2024-02-28 Thread Adam Carter
> The other thing is, look up the definition (such as there is) of CSVs.
> Special characters (such as commas) can be quoted. Standard practice as
> far as I can tell, is that any cell containing a comma will be
> double-quoted, and the quotes are stripped on import.
>

Thanks - looks like quoting is the answer.


[gentoo-user] OT: how does excel find commas within fields of a csv file?

2024-02-27 Thread Adam Carter
To clean up csv files I use excel's find/replace to swap the commas
occurring within fields for something benign. How does this magic work?
Different character sets within the same file?

Is it possible to do this with shell scripting?


[gentoo-user] 'make install' hijacked by installkernel ?

2024-01-26 Thread Adam Carter
I just tried to install a new kernel using 'make install' only to find that
the behaviour has changed and it appears to be running a bunch on
installkernel stuff.

'make help' says
  install - Install kernel using (your) ~/bin/installkernel or
 (distribution) /sbin/installkernel or install to
 $(INSTALL_PATH) and run lilo

So I guess that I want the 'install to  $(INSTALL_PATH) and run lilo'
behaviour that i'm used to. How to i get 'make install' to ignore
/sbin/installkernel ?


Re: [gentoo-user] Emerge load again

2024-01-06 Thread Adam Carter
>
> > So if it's consistently gcc that collapses to two threads, then
> > something (maybe explicit settings, maybe dependencies, maybe yadda
> > yadda) is telling make that only two jobs can run at the same time else
> > they'll trip over each other.
> >
> > Could be a dev has hard-coded the "two jobs" rule to make those random
> > crashes go away :-) Or maybe they found the problem, and that's why only
> > two jobs can run in parallel.
>
> Not so. As I said last time: 'if I set -distcc and -j12 -l12, I get 12
> threads
> in parallel'.
>

Have you checked you're not limiting jobs in /etc/distcc/hosts? ie no '/2'
after the IP address?


Re: [gentoo-user] LiveGUI USB Image

2024-01-03 Thread Adam Carter
>
> > dd if=/path/to/iso-image of=/dev/sd? bs=4M status=progress
> >
> > Replace the obvious bits.
>
> I've tried a few values of block size over the years, but so far I haven't
> noticed any difference. I haven't run any proper tests though.
>

I think it's just that the default blocksize is (or was) very small (512
bytes?) so setting it to anything non-small helps a lot.

eg one example (from
https://superuser.com/questions/234199/good-block-size-for-disk-cloning-with-diskdump-dd#234204)
seems to show that most gains are in by around 16k. There's probably a lot
of testing noise in these results.

$ ./dd_obs_test.sh
block size : transfer rate
   512 : 11.3 MB/s
  1024 : 22.1 MB/s
  2048 : 42.3 MB/s
  4096 : 75.2 MB/s
  8192 : 90.7 MB/s
 16384 : 101 MB/s
 32768 : 104 MB/s
 65536 : 108 MB/s
131072 : 113 MB/s
262144 : 112 MB/s
524288 : 133 MB/s
   1048576 : 125 MB/s
   2097152 : 113 MB/s
   4194304 : 106 MB/s
   8388608 : 107 MB/s
  16777216 : 110 MB/s
  33554432 : 119 MB/s
  67108864 : 134 MB/s


[gentoo-user] Choosing --param l2-cache-size

2024-01-03 Thread Adam Carter
>From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87444 it appears that
l2-cache-size is a misnomer;
"A comment in driver-i386.c says:

  /* Let the L3 replace the L2. This assumes inclusive caches
 and single threaded program for now. */
  if (level3.sizekb)
level2 = level3;"

"Probably the --param should be renamed to last-level-cache". So for the
CPUs below that means L3.

For the CPUs i have handy;
AMD 3900X
$ lscpu | grep '[23] cache'
L2 cache:   6 MiB (12 instances)
L3 cache:   64 MiB (4 instances)

AMD FX-8350
$ lscpu | grep '[23] cache'
L2 cache:   8 MiB (4 instances)
L3 cache:   8 MiB (1 instance)

Intel i5-1340P
$ lscpu | grep '[23] cache'
L2 cache:   9 MiB (6 instances)
L3 cache:   12 MiB (1 instance)

What is gcc using when using -march=native? (I use distcc so cant use
=native).
AMD 3900X
$ gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1
| sed 's/--param/\n--param/g' | grep '^--param l2-' | cut -d' ' -f1,2
--param l2-cache-size=512
>>> so this is the l2 size divided by the number of instances, 6MB / 12 =
512

AMD FX-8350
$ gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1
| sed 's/--param/\n--param/g' | grep '^--param l2-' | cut -d' ' -f1,2
--param l2-cache-size=2048
>>> so this is the l2 size divided by the number of instances, 8MB / 4 = 2MB

Intel i5-1340P
$ gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1
| sed 's/--param/\n--param/g' | grep '^--param l2-' | cut -d' ' -f1,2
--param l2-cache-size=12288
>>> this is the l3 size

So i'm thinking the Intel CPU l2-cache-size is correct but;
for the FX-8350 it should be l3 / instances, ie 8192 / 1 = 8192
for the 3900X it should be l3 / instances, ie 65536 / 4 = 16384

Am I correct?
Thanks


Re: [gentoo-user] emerge times blown out

2023-02-21 Thread Adam Carter
>
> Could it be that some kind of Spectre mitigation is active? I just read
> about
> some massive performance problems in Kernel 5.19+ on Skylake CPUs. Stable
> gentoo kernel was upgraded to 6.1 recently, which could also be affected
> by
> this problem.
> See https://lkml.iu.edu/hypermail/linux/kernel/2209.1/02248.html
>
> Try turning the mitigations off or revert to a 5.15.x kernel.
>

I have one skylake and its now running 6.2 with retbleed=stuff. The others
are AMD.

I will try 5.15.x. I have .configs from that time so it will rule kernel
stuff in/out.


Re: [gentoo-user] Re: emerge times blown out

2023-02-19 Thread Adam Carter
Thanks everyone for your suggestions. I've checked the frequencies of the
cores and they are scaling properly:
cpu MHz : 4024.653
cpu MHz : 4024.678
cpu MHz : 4024.639
cpu MHz : 4024.605
cpu MHz : 4024.643
etc

Will continue to pursue these lines of thought.


Re: [gentoo-user] emerge times blown out

2023-02-17 Thread Adam Carter
>
> Does that info help?
>
>
My reason for asking is that i'm seeing this across multiple systems, 2
AMD, 1 Intel, who's configuration hasn't really changed and while there is
some variance there has been a step change late December / early January.
Another example

Sat Nov 26 14:34:50 2022 >>> sys-apps/systemd-252.2
   merge time: 2 minutes and 19 seconds.

 Sat Dec 10 20:59:29 2022 >>> sys-apps/systemd-252.3
   merge time: 1 minute and 54 seconds.

 Wed Dec 14 13:56:52 2022 >>> sys-apps/systemd-252.3
   merge time: 2 minutes and 56 seconds.

 Wed Dec 21 20:08:36 2022 >>> sys-apps/systemd-252.4
   merge time: 3 minutes and 7 seconds.

 Tue Jan  3 22:29:43 2023 >>> sys-apps/systemd-252.4
   merge time: 12 minutes and 42 seconds.

 Thu Jan 12 14:56:32 2023 >>> sys-apps/systemd-252.4-r1
   merge time: 22 minutes and 12 seconds.

 Sat Jan 21 12:00:06 2023 >>> sys-apps/systemd-252.4-r1
   merge time: 12 minutes and 3 seconds.

 Mon Jan 30 15:41:44 2023 >>> sys-apps/systemd-252.5
   merge time: 21 minutes and 45 seconds.

 Fri Feb 17 21:18:21 2023 >>> sys-apps/systemd-252.6
   merge time: 22 minutes and 18 seconds.


[gentoo-user] emerge times blown out

2023-02-17 Thread Adam Carter
I have three systems (all ~arch) and the emerge times have blown out on all
of them across all packages. Worst example appears to be;

Fri Dec 23 13:11:44 2022 >>> net-libs/webkit-gtk-2.38.3-r410
   merge time: 37 minutes and 8 seconds.

 Fri Dec 23 13:43:08 2022 >>> net-libs/webkit-gtk-2.38.3
   merge time: 31 minutes and 24 seconds.

 Sat Feb  4 21:16:40 2023 >>> net-libs/webkit-gtk-2.38.4-r410
   merge time: 6 hours, 53 minutes and 28 seconds.

 Sun Feb  5 04:17:12 2023 >>> net-libs/webkit-gtk-2.38.4
   merge time: 7 hours and 32 seconds.

Is anyone else seeing this?


Re: [gentoo-user] rsync local mirror question

2022-10-25 Thread Adam Carter
On Wed, Oct 26, 2022 at 7:35 AM Walter Dnes  wrote:

>   I followed https://wiki.gentoo.org/wiki/Local_Mirror instructions for
> doing a local rsync mirror.  I ran commented the rsync mirrors line in
> the client's make.conf and ran "emerge --sync".  The client still
> synced from a server on the internet.  Do I need to manually force
> rsync to go local, e.g...
>
>
Maybe you missed this
"Now, make the other computers use the local rsync mirror instead of a
public one, by changing the *sync-uri* entry in the appropriate file in
/etc/portage/repos.conf/
."


Re: [gentoo-user] hibernate... /bin/echo: write error: No such device

2022-07-27 Thread Adam Carter
On Thu, Jul 28, 2022 at 7:53 AM Walter Dnes  wrote:

>   One of the last few items on the laptop setup.  I emerged hibernate
> and copied over the /etc/hibernate/ directory from my desktop.  When I
> try to hibernate the laptop, I get...
>
> [thimk][root][~] hibernate
> /bin/echo: write error: No such device
>

Is the device there?

FYI,

$ ls -l /bin/echo
-rwxr-xr-x 1 root root 51256 May  5 11:58 /bin/echo*
$ file /bin/echo
/bin/echo: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV),
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux
3.2.0, stripped
$ qfile /bin/echo
sys-apps/coreutils: /bin/echo

 echo is also a bash built in, but that wont be used since you're calling
echo with the full path


[gentoo-user] Re: emerge 7-9% faster with python 3.11 beta 4

2022-07-20 Thread Adam Carter
> How is it compared to PyPy3?
>
> I didn’t find pypy any faster than 3.10.


Re: [gentoo-user] About to have fiber internet and need VPN info

2022-07-18 Thread Adam Carter
On Sun, Jul 17, 2022 at 2:41 AM Dale  wrote:

> Peter Humphrey wrote:
> > On Saturday, 16 July 2022 11:57:25 BST Dale wrote:
> >
> >> Basically, I can upload files as fast as I download them.  Now I can
> upload
> >> videos or something.
> > ...or run a web server!
> >
>
>
> That's way above anything I'd want to tackle.  Heck, this VPN thing is a
> bit confusing.  I've never seen it used before so sort of lost with it.
> Maybe once installed it will make sense.
>

That prompts the question - why do you want a VPN? (what do you think it
will do for you?)

If it's to get around geo-blocking, it's probably a good option if there's
no legal implications. If it's for something else it's probably worth
digging a bit deeper. If it's to try to avoid legal responsibility (eg. to
download copyrighted content), don't do anything you're not prepared to pay
the fine / do the time for.


Re: [gentoo-user] About to have fiber internet and need VPN info

2022-07-18 Thread Adam Carter
>
> And you'll need to always keep in mind that a VPN is a low-level
> protection. It's enough for protecting yourself against spammers, script
> kiddies or
> similar but it can't keep you private in the face of any high-level
> threats. Don't place too much trust in VPNs.
>

I'm not an expert, but AFAIK VPNs don't offer any particular benefit with
regards to spam or script kiddies.

A VPN will;
- Hide your internet activity from your ISP
- Make your internet activity available to your VPN provider
- Make your internet activity available to your VPN provider's ISP

Without a VPN, your ISP could sell the details used to sign up for the
account (eg. name, phone number, email address) along with your internet
activity. With a VPN, the VPN provider could sell similar information,
however, there is typically an explicit claim that they won't do this,
whereas your ISP has probably buried information on what they do with your
information and metadata in Terms and Conditions documents. Your VPN
provider's ISP will be able to monitor your internet activity but it will
be mixed with the activity of the VPN provider's other customers, and they
won't have any of your sign up information.

I've heard some VPNs let you pay pseudo anonymously with crypto currency
(albeit with a cryptographically verifiable public ledger!), to prevent
direct matching of internet activity to an identity.


Re: [gentoo-user] MAC whitelisting and UDP traffic.

2022-07-13 Thread Adam Carter
On Wed, Jul 13, 2022 at 4:13 PM Adam Carter  wrote:

>
> On Tue, Jul 12, 2022 at 7:35 AM Laurence Perkins 
> wrote:
>
>> Ok, I asked a while ago about whitelisting MAC ranges for firewall rules,
>> and just so you know, adding 16 million potential MAC addresses
>>
>
>
Is your INSIDE interface on a 8 bit subnet (255.0.0.0) network?

20 years ago I heard of a /16 network and the arp traffic alone was
~200kps...


Re: [gentoo-user] MAC whitelisting and UDP traffic.

2022-07-13 Thread Adam Carter
On Tue, Jul 12, 2022 at 7:35 AM Laurence Perkins 
wrote:

> Ok, I asked a while ago about whitelisting MAC ranges for firewall rules,
> and just so you know, adding 16 million potential MAC addresses to the
> firewall…  Doesn’t work well…  No matter how you do it.  So I had to write
> a daemon to monitor which ones were local and add just those.  Whatever.
>
>
>
> That brings me to the next problem.  The routing and NAT work just fine if
> I’m letting everything through.  But if I’m dropping connections that don’t
> come from authorized devices then UDP only works in the outbound
> direction…  TCP is fine.
>
>
>
> For reference, the rules consist of:
>
>
>
> iptables -t nat -I POSTROUTING -o  -j MASQUERADE
>
> iptables -A FORWARD -i   -o  -m state --state
> RELATED,ESTABLISHED -j ACCEPT
>
>
>
> And then the daemon adds a:
>
> iptables -A FORWARD -i  -o  -m mac --mac-source  ADDRESS> -j ACCEPT
>
>
>
> for each authorized device.
>
>
>
> TCP works perfectly.
>
> UDP based protocols send out just fine, but any replies get blocked if the
> FORWARD chain’s default policy is  DROP.
>
>
>
> Now…  Everything I’m reading says that it’s supposed to be able to
> associate UDP replies based on port number, which indeed it must be doing
> in order for them to get translated correctly and directed to the correct
> device inside the NAT when the default policy is ACCEPT.
>
>
>
> So why is that rule to accept related packets not triggering for them?
>

I also would have expected the UDP replies to be permitted via -state
RELATED,ESTABLISHED.

Do they at least get into the state table;
grep udp /proc/net/nf_conntrack


[gentoo-user] emerge 7-9% faster with python 3.11 beta 4

2022-07-12 Thread Adam Carter
FYI, i've found 'emerge -pvuUD world' is 7-9% faster on my machines when I
compare 3.10 to 3.11b4.

To achieve this i've added '*/* PYTHON_TARGETS: -* python3_10 python3_11'
to package.use on my ~arch systems, then run 'emerge -avuUD portage'. At
the end of this python-exec.conf contains;
python3.11
python3.10

and when i run 'emerge --version' it shows that 3.11 is being used.
Alternatively you could put 'python3.11' in /etc/python-exec/emerge.conf
and comment python3.11 out of python-exec.conf if you want 3.10 to be the
default and 3.11 to just be used for emerge.


Re: [gentoo-user] Installing windows on second drive

2022-04-11 Thread Adam Carter
FYI, the windows installer added an entry to the EFI boot loader (as
Boot), but left Gentoo as the active entry;

# efibootmgr
BootCurrent: 0003
Timeout: 15 seconds
BootOrder: 0003,,0008,0007,0001,0002
Boot* Windows Boot Manager
Boot0001* Hard Drive
Boot0002* Network Card
Boot0003* 980GrubEFI
Boot0007* USB HDD
Boot0008* UEFI:  Patriot Memory PMAP, Partition 1


Re: [gentoo-user] Installing windows on second drive

2022-04-10 Thread Adam Carter
>
> iirc (and I'm about to do it again), Windows just makes itself default,
> and sets boot timeout to 0.
>
> So no I wouldn't bother modifying grub - just set the EFI timeout to,
> say, 5 secs. You then choose between Windows and grub, and then let grub
> sort out the linux side for you.
>

Ok, will do.

>
> I notice you're using a second drive, though. At least linux is on drive
> 0, with a decent EFI partition. I had another system with linux on drive
> 1. Windows made the EFI partition on drive 0 tiny, and I never worked
> out how to chain the two EFI partitions together. Couldn't put grub on
> drive 0, the partition was too small.
>

Actually the free drive is nvme0n1... I was running out of space on that
device so added nvme1n1 and moved Gentoo to that drive. On nvme1n1
partition 1 is 1gig for both EFI and /boot (with a minimal .iso available
via grub as a rescue option if needed).

With regards to windows making a tiny EFI partition on drive 0, i dont
think I understand the issue. I'm thinking I can either;
1. Use the EFI boot loader to choose between Windows and Linux, as you
mention above, with the small downside of having two boot loaders/timeouts,
or
2. Use EFI to default to grub on the second drive with a very short timer
(so its like its not even there) and put an entry for Windows in the grub
config

I will probably try #1 first, then update the grub config to boot windows
and confirm that works, then change to #2.

Let me know if i'm misunderstanding anything.

Thanks!


[gentoo-user] Installing windows on second drive

2022-04-09 Thread Adam Carter
I'm assuming that windows will modify the EFI configuration and i will need
to boot, say, a minimal cd image to run efibootmgr to set it back, then add
a Windows entry to the grub config.

Is that correct? Anything else i should be concerned about?


Re: [gentoo-user] strange errors in http log, what can/should I do about it.

2022-02-28 Thread Adam Carter
On Monday, February 28, 2022, John Covici  wrote:

> I got the following error this morning during my logwatch processing
> which I run daily and I would like to know if there is anything I can
> should do about it?  Seems to me it could be serious, if someone has
> penetrated my server.
>
>  A total of 4 possible successful probes were detected (the following
>  URLs
>   contain strings that match one or more of a listing of strings that
>indicate a possible exploit):
>
> /?f=../../../../../../../../../etc/passwd HTTP Response 200
> /?file=../../../../../../../../../etc/passwd HTTP Response 200
>/?filename=../../../../../../../../../etc/passwd HTTP
> Response 200
>/?id=../../../../../../../../../etc/passwd HTTP Response
>

If you put that url in a browser does it show your passwd file? I assume
because the logs say 200 it will.  If so shut down the httpd and reset all
the passwords

Check your httpd config… seems odd that an old attack like this would still
work.


Re: [gentoo-user] kernel 5.15+ (thru 5.16.5)

2022-02-03 Thread Adam Carter
>
> I recall reading some foobar with "simple framebuffer" cropping up and
> also I
> found this bug in case it helps with either of your machines:
>
> https://bugs.gentoo.org/821406
>

That's not the first time CONFIG_MPILEDRIVER=y has caused issues. I just
stick to CONFIG_MBULLDOZER=y on my FX-8530.


Re: [gentoo-user] dmesg on boot - is this behind my crashes?

2022-02-01 Thread Adam Carter
>
> [   12.260700] Buffer I/O error on dev dm-5, logical block 33554416,
> async page read
> [   12.262882] Buffer I/O error on dev dm-3, logical block 33554416,
> async page read
>

Might be worth check the status of the disks with smartctl, something like;
smartctl -a /dev/sda | egrep
'(^ID|Reallocated_Sector_C|Reported_Uncorrectable_Er|Command_Timeout|Current_Pending_Sect|Offline_Uncorre)'


> [   61.464558] [ cut here ]
> [   61.464579] WARNING: CPU: 0 PID: 1447 at sound/hda/hdac_bus.c:72
> snd_hdac_bus_exit+0x3b/0x50
> [   61.464610] Modules linked in: radeon i2c_algo_bit drm_kms_helper
> syscopyarea sysfillrect sysimgblt fb_sys_fops ttm vboxnetflt(O)
> vboxnetadp(O) vboxdrv(O) drm
> [   61.464669] CPU: 0 PID: 1447 Comm: kworker/0:11 Tainted: G
> O  5.10.76-gentoo-r1 #1
>

 First thing i'd do is update to the latest kernel (5.10.96) and emerge
@x11-module-rebuild as the issue may already be fixed.


Re: [gentoo-user] Re: script help - removing newlines

2021-12-08 Thread Adam Carter
>
> Hmm, maybe:
>
> $ awk '/^comment "[^"]*$/ { ORS=" " } /"$/ { ORS="\n" } { print }'
> yourfile.txt
>

Yes that works (after piping the file thru tr -d '\r' first). Thanks!


[gentoo-user] script help - removing newlines

2021-12-07 Thread Adam Carter
I have text files that are sometimes;

property "something"

comment "whatever"



but sometimes there are newline characters in the comment field;

property "something"

comment "something

something else

a third thing"



I want to replace any newlines between 'comment "' and the next '"' with
spaces so the whole comment is on a single line. How can it be done?


Re: [gentoo-user] Can't get rid of preserved libs

2021-11-21 Thread Adam Carter
>
> 
> Use emerge @preserved-rebuild to rebuild packages using these libraries
>
> I would appreciate any help to get rid of this message.
>
>
>
 https://wiki.gentoo.org/wiki/User:Sam/Portage_help/Circular_dependencies


Re: [gentoo-user] How to compress lots of tarballs

2021-09-26 Thread Adam Carter
On Sun, Sep 26, 2021 at 8:57 PM Peter Humphrey 
wrote:

> Hello list,
>
> I have an external USB-3 drive with various system backups. There are 350
> .tar
> files (not .tar.gz etc.), amounting to 2.5TB. I was sure I wouldn't need
> to
> compress them, so I didn't, but now I think I'm going to have to. Is there
> a
> reasonably efficient way to do this?
>

find  -name \*tar -exec zstd -TN {} \;

Where N is the number of cores you want to allocate. zstd -T0 (or just
zstdmt) if you want to use all the available cores. I use zstd for
everything now as it's as good as or better than all the others in the
general case.

Parallel means it uses more than one core, so on a modern machine it is
much faster.


Re: [gentoo-user] time to build a new machine ?

2021-09-24 Thread Adam Carter
>
> >> man mcelog
>
> 'man mcelog' + 'man mce' find nothing.  does it need to be installed ?
>

Yep and the package is called mcelog.

Did you check for any other messages before/after the mce errors?

Do you also have lm-sensors installed? Running sensord?

Genuine CPU issues seem pretty rare, so I would check for overheating or
power issues, and lm-sensors will help with that.


Re: [gentoo-user] irqbalance

2021-09-24 Thread Adam Carter
On Fri, Sep 24, 2021 at 10:35 PM William Kenworthy 
wrote:

> In going down the NUMA rabbit hole, I discovered "irqbalance".  Does
> anyone have an opinion on its usefulness? It is in portage.
>
> On some multicore arm systems I am using irq affiity to steer certain
> irq's to faster CPU's (network, usb) - but from what I have been reading,
> irqbalance can improve a mixed workload but a system with a small number of
> busy irq's is better served by separating and locking them to different,
> more powerful processors. e.g., arm big.LITTLE architectures.
>
IIRC MSIs have largely addressed the issue, so irqbalance is not so useful
anymore. Eg, /proc/interrupts on this system shows that the nvme drive gets
32 interrupts, and the intel gig eth card gets eight interrupts per port,
so there's no busy interrupts


Re: [gentoo-user] wine install : pango, freetype, harfbuzz circular dependencies

2021-07-19 Thread Adam Carter
>
> You could try the opposite at the initial circular dependency.
>
> USE="-truetype" emerge -1 harfbuzz


Different error, but i can't see a solution here either;

media-libs/harfbuzz:0

  (media-libs/harfbuzz-2.8.2-r1:0/0.9.18::gentoo, ebuild scheduled for
merge) USE="cairo glib graphite icu introspection -debug -doc -experimental
-static-libs -test -truetype" ABI_X86="32 (64) (-x32)" pulled in by
media-libs/harfbuzz (Argument)

  (media-libs/harfbuzz-2.8.2-r1:0/0.9.18::gentoo, installed) USE="cairo
glib graphite icu introspection truetype -debug -doc -experimental
-static-libs -test" ABI_X86="(64) -32 (-x32)" pulled in by

>=media-libs/harfbuzz-2.0:=[glib(+),introspection?,truetype(+),abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
required by (x11-libs/pango-1.48.7-r1:0/0::gentoo, installed) USE="X
introspection sysprof -debug" ABI_X86="(64) -32 (-x32)"



[gentoo-user] wine install : pango, freetype, harfbuzz circular dependencies

2021-07-18 Thread Adam Carter
Similarly to another thread, trying to get wine to install is triggering
this issue;
 * Error: circular dependencies:

(media-libs/harfbuzz-2.8.2-r1:0/0.9.18::gentoo, ebuild scheduled for merge)
depends on
 (media-libs/freetype-2.10.4:2/2::gentoo, ebuild scheduled for merge)
(buildtime_slot_op)
  (media-libs/harfbuzz-2.8.2-r1:0/0.9.18::gentoo, ebuild scheduled for
merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.

In my package.use;
# required by x11-libs/pango-1.48.7::gentoo
# required by media-gfx/imagemagick-7.1.0.2::gentoo[pango]
# required by virtual/imagemagick-tools-0::gentoo
# required by x11-misc/shutter-0.97::gentoo
# required by @selected
# required by @world (argument)
>=media-libs/freetype-2.10.4 harfbuzz

If i disable this, I get;
* Error: circular dependencies:

(sys-libs/gpm-1.20.7-r3:0/0::gentoo, ebuild scheduled for merge) depends on
 (sys-libs/ncurses-6.2_p20210123:0/6::gentoo, ebuild scheduled for merge)
(buildtime_slot_op)
  (sys-libs/gpm-1.20.7-r3:0/0::gentoo, ebuild scheduled for merge)
(buildtime)

and if I sys-libs/ncurses -gpm as suggested;
 * Error: circular dependencies:

(x11-libs/libva-2.12.0:0/2::gentoo, ebuild scheduled for merge) depends on
 (virtual/opengl-7.0-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  (media-libs/mesa-21.1.4:0/0::gentoo, ebuild scheduled for merge) (runtime)
   (x11-libs/libva-2.12.0:0/2::gentoo, ebuild scheduled for merge)
(buildtime_slot_op)

At which point i'm looking for an alternative approach.

I quickpkg'd harfbuzz and freetype, then tried to emerge --nodeps them, but
both failed at the configure stage.

Is there something else I should try?


Re: [gentoo-user] postfix: /etc/postfix/aliases or /etc/mail/aliases ?

2021-07-12 Thread Adam Carter
> Two options:
> 1/ use dafaults, i.e. /etc/mail/aliases
> 2/ use a custom location but then change postfix.service to give r/w
> access to the new aliases.db location
>
> I'd go with option #1 if you do not have a strong preference either way.
>
>
Agreed - will go with #1 now. Thanks for your comment about postfix-install

Cheers!


[gentoo-user] postfix: /etc/postfix/aliases or /etc/mail/aliases ?

2021-07-11 Thread Adam Carter
I have an old log warning I want to clean up, and am assuming that the
aliases and aliases.db file would typically be in the same directory. When
the postfix service starts at boot;
postfix/postalias[607]: fatal: open /etc/postfix/aliases.db: Read-only file
system

The location is currently configured in main.cf;
# postconf alias_maps
alias_maps = hash:/etc/postfix/aliases

And looks like the installer puts the original alias file there too, so I
assume my config is per the default config;
# qlist postfix | grep aliases
/etc/postfix/aliases

But this;
# grep aliases /lib/systemd/system/postfix.service
ExecStartPre=-/usr/bin/newaliases
ReadWritePaths=-/etc/mail/aliases.db

Suggests that /etc/mail is the correct location, so i'm wondering if i
missed an update to postfix.service. Can a postfix user please check their
ReadWritePaths to see if it's /etc/mail/aliases.db or
/etc/postfix/aliases.db ? Cheers.


Re: [gentoo-user] New install - root is mounted read-only

2021-06-18 Thread Adam Carter
On Fri, Jun 18, 2021 at 7:15 PM Wols Lists  wrote:

> I've started tackling my new build again, and when it boots root is
> read-only. Hopefully I've just missed something stupid, but how to I get
> it to transition read-write?
>

Weird - here's my fstab and dmesg entries if you want to compare;
# 
/dev/nvme0n1p1 /boot vfat noauto 1 2
/dev/nvme0n1p2 / ext4 noatime 0 1

dmesg | grep -i mount
[0.204991] Mount-cache hash table entries: 131072 (order: 8, 1048576
bytes, linear)
[0.205069] Mountpoint-cache hash table entries: 131072 (order: 8,
1048576 bytes, linear)
[2.390990] EXT4-fs (nvme0n1p2): mounted filesystem with ordered data
mode. Opts: (null). Quota mode: none.
[2.391735] VFS: Mounted root (ext4 filesystem) readonly on device 259:2.
[2.392955] devtmpfs: mounted
[2.660857] systemd[1]: Condition check resulted in Arbitrary Executable
File Formats File System Automount Point being skipped.
[2.691123] systemd[1]: Mounting Huge Pages File System...
[2.695813] systemd[1]: Mounting Kernel Debug File System...
[2.699613] systemd[1]: Mounting Kernel Trace File System...
[2.703758] systemd[1]: Mounting Temporary Directory (/tmp)...
[2.739488] systemd[1]: Mounted Huge Pages File System.
[2.741924] systemd[1]: Mounted Kernel Debug File System.
[2.744313] systemd[1]: Mounted Kernel Trace File System.
[2.746582] systemd[1]: Mounted Temporary Directory (/tmp).
[2.776402] systemd[1]: Mounting FUSE Control File System...
[2.782926] systemd[1]: Mounting Kernel Configuration File System...
[2.787158] systemd[1]: Starting Remount Root and Kernel File Systems...
[2.794343] systemd[1]: Mounted FUSE Control File System.
[2.796604] systemd[1]: Mounted Kernel Configuration File System.
[2.796823] EXT4-fs (nvme0n1p2): re-mounted. Opts: (null). Quota mode:
none.
[2.803599] systemd[1]: Finished Remount Root and Kernel File Systems.
[2.845843] systemd[1]: Set up automount mnt-backup.automount.
[2.848547] systemd[1]: Set up automount mnt-public.automount.


Re: [gentoo-user] X.Org Fatal server error: AIGLX: Suspending AIGLX clients for VT switch

2021-06-11 Thread Adam Carter
On Fri, Jun 11, 2021 at 2:24 AM  wrote:

> The X server is crashing with an error:  AIGLX: Suspending AIGLX clients
> for VT switch
> /home/fd/.local/share/xorg/Xorg.0.log
>
>
If you have recently updated the kernel, try 'emerge @x11-module-rebuild'

Otherwise here's what i have for my .config for a Radeon box;
$ zgrep FB /proc/config.gz | grep -v \#
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
CONFIG_FB_CMDLINE=y
CONFIG_FB_NOTIFY=y
CONFIG_FB=y
CONFIG_FB_BOOT_VESA_SUPPORT=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
CONFIG_FB_SYS_FOPS=y
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_VESA=y
CONFIG_FB_EFI=y
CONFIG_FB_SIMPLE=y


[gentoo-user] gdm is running Xwayland, what about startx?

2021-06-08 Thread Adam Carter
I've noticed that my gdm system is running /usr/bin/Xwayland instead of
/usr/bin/Xorg, so I infer that Gentoo devs, or upstream, are preferring it
now.

Can i try Xwayland with startx?

pstree shows the execution paths as below. Inscrutable to me and
interesting that they're so different.

gdm: systemd -> gnome-shell -> Xwayland
startx: startx -> xinit -> X (AND in parallel) gnome-session -> gnome-shell


Re: [gentoo-user] Issues with Python 3.8?

2021-06-03 Thread Adam Carter
>
> I have no "python_target" entries anywhere under " /etc/portage/ " (apart
> from
> what I have to add now to get the upgrade to actually work).
>
>
It may have been possible to use --changed-use and not add any python
target entries, or, it may be that you only need a very small number of
entries when using --changed-use.

You could try commenting out the target entries then running emerge -pvuUD
world to see what, if anything, remains.


Re: [gentoo-user] app-misc/ca-certificates

2021-06-03 Thread Adam Carter
On Tue, Jun 1, 2021 at 11:29 PM Rich Freeman  wrote:

> On Tue, Jun 1, 2021 at 7:59 AM Adam Carter  wrote:
> >>
> >> And another "wondering" - all the warnings about trusting self signed
> >> certs seem a bit self serving. Yes, they are trying to certify who you
> >> are, but at the expense of probably allowing access to your
> >> communications by "authorised parties" (such as commercial entities
> >> purchasing access for MITM access - e.g. certain router/firewall
> >> companies doing deep inspection of SSL via resigning or owning both end
> >> points).
> >
> > AFAIK in an enterprise MITM works by having a local CA added to the cert
> stores of the workstation fleet, and having that CA auto generate the certs
> for MITM. That didn't work with certificate pinning, but pinning has been
> deprecated.
>
> So, I don't know all the ways that pinning is implemented, but if
> you're talking about using MITM to snoop on enterprise devices on the
> enterprise network I'd think that pinning wouldn't be an issue,
> because you control the devices from cradle to grave.  Just ensure the
> pinned certificates are the ones that let you MITM the connections.
>

After seeing Grant's mention of CAA records I think I may have conflated
pinning with them, or perhaps there were some special controls in Chrome to
check that google certs were issued by the correct CA? Sorry i'm not clear
on this now (and may have never been).


Re: [gentoo-user] Issues with Python 3.8?

2021-06-03 Thread Adam Carter
On Thu, Jun 3, 2021 at 6:19 PM J. Roeleveld  wrote:

> All,
>
> I've got several packages complaining about "PYTHON_TARGETS" missing
> "python3_8"


You should add --changed-use to your emerge flags and clean any
PYTHON_TARGETS cruft out of package.use. On ~arch the default python has
just changed from 3.8 to 3.9. You may well find --depclean will remove 3.8
after that.


Re: [gentoo-user] is "scp" reliable?

2021-06-01 Thread Adam Carter
On Tue, Jun 1, 2021 at 2:46 PM J. Roeleveld  wrote:

> On Saturday, May 29, 2021 11:04:44 PM CEST Mark Knecht wrote:
> > On Sat, May 29, 2021 at 1:33 PM  wrote:
> > 
> >
> > > Another mystery.
> > > I copied the file to USB 1TB sandisk.
> > > md5sum check OK same as my computer
> > >
> > >
>
> > Different revisions of md5sum possibly?
>
> I have never had issues with different md5sum tools.
>

Yes - it hard to imagine a bug of that seriousness not being detected.
Getting it right is the tool's raison d'etre.


Re: [gentoo-user] app-misc/ca-certificates

2021-06-01 Thread Adam Carter
>
> And another "wondering" - all the warnings about trusting self signed
> certs seem a bit self serving. Yes, they are trying to certify who you
> are, but at the expense of probably allowing access to your
> communications by "authorised parties" (such as commercial entities
> purchasing access for MITM access - e.g. certain router/firewall
> companies doing deep inspection of SSL via resigning or owning both end
> points).


CAs who issue such dodgy certs tend to get booted from certificate stores,
since they cannot be trusted.
https://wiki.mozilla.org/CA:Symantec_Issues#Issue_D:_Test_Certificate_Misissuance_.28April_2009_-_September_2015.29

https://en.wikipedia.org/wiki/Certificate_Transparency helps keep CAs
honest.

The way i like to frame it is "any certificate should only be trusted as
much as the *least* trustworthy CA in your certificate store"

AFAIK in an enterprise MITM works by having a local CA added to the cert
stores of the workstation fleet, and having that CA auto generate the certs
for MITM. That didn't work with certificate pinning, but pinning has been
deprecated.


> If its only your own communications and not with a third,
> commercial party self signed seems a lot more secure.
>

Yes, I imagine there are some circumstances where it would make sense to
remove all the certs from your certificate store and then just add your
local CA's cert. In this case, the least trustworthy CA in the store is
your own :)


Re: [gentoo-user] emerge --depclean

2021-05-08 Thread Adam Carter
>   x11-libs/libvdpau
> selected: 1.4
>protected: none
>  omitted: none
>

I'm guessing that would be pulled in by USE +vdpau, so if you've removed it
then done an emerge with -N or -U it won't be required anymore.

>
>  x11-drivers/xf86-video-amdgpu
> selected: 19.1.0
>protected: none
>  omitted: none
>

And that would be pulled in by
VIDEO_CARDS="amdgpu"


Re: [gentoo-user] Machine hangs up with out of memory

2021-05-01 Thread Adam Carter
On Fri, Apr 30, 2021 at 8:09 PM Michael  wrote:

> On Friday, 30 April 2021 02:30:51 BST Adam Carter wrote:
> > On Wed, Apr 28, 2021 at 7:58 PM Kai Peter  wrote:
> > > Hi,
> > >
> > > I have an issue with a machine where I'm not able to detect the real
> > > root cause. It hangs up totally. It seems like it was running out of
> > > memory - but why? Hopefully somebody can give me some insight. As far I
> > > can see right now, it hangs up a few hours after an `emerge --update
> > > --newuse --deep --with-bdeps=y @world`.
> > >
> > > The machine is an Intel Atom with 8 GB RAM (physical, max) and 24 GB
> > > swap (a file). So 32 GB RAM in total.
> >
> > Might be worth adding zswap using zstd or lz4 to your config (uses more
> CPU
> > for less IO)
> > https://www.kernel.org/doc/html/latest/vm/zswap.html
>
> Zswap will help optimise the swapping of cold pages out of RAM into the
> compressed zswap cache and eventually push these out to the disk.  This
> won't
> help with the problem of not having enough RAM to start with for compiling
> packages with large resource requirements, like e.g. Chromium.
>

Yep, but the system is already at its full RAM, so we're in
workaround/tactical solution territory. Any system that needs 24gig swap to
support 8gig ram is going to really suck.

>
> With monster packages where more RAM is needed even for a single
> compilation
> job, after all cold pages have been swapped out, hot pages will start
> being
> swapped out/in.  I think at this point the same I/O race condition will
> ensue
> as if no zswap were available, plus a compress/decompress CPU load.  I
> guess
> the point of starting to thrash the on-disk swap trying to free RAM may
> start
> sooner, since RAM which would otherwise be available for the single
> prioritised compilation job is now being used by zswap.  So, there would
> be a
> sweet spot in using zswap to improve I/O performance, but it could end up
> becoming a disbenefit on compilation of RAM hungry packages.
>
> Please correct my reasoning above if I have misunderstood how zswap works.
>

What you've said sounds reasonable to me.


Re: [gentoo-user] Machine hangs up with out of memory

2021-04-29 Thread Adam Carter
On Wed, Apr 28, 2021 at 7:58 PM Kai Peter  wrote:

> Hi,
>
> I have an issue with a machine where I'm not able to detect the real
> root cause. It hangs up totally. It seems like it was running out of
> memory - but why? Hopefully somebody can give me some insight. As far I
> can see right now, it hangs up a few hours after an `emerge --update
> --newuse --deep --with-bdeps=y @world`.
>
> The machine is an Intel Atom with 8 GB RAM (physical, max) and 24 GB
> swap (a file). So 32 GB RAM in total.
>

Might be worth adding zswap using zstd or lz4 to your config (uses more CPU
for less IO)
https://www.kernel.org/doc/html/latest/vm/zswap.html

If you want to see which processes are using the most memory, run top then
type 'M' to have top sort by memory instead of CPU. You can also type 'm'
to make top show the memory numbers as an ascii bar graph. The man page
explains what VIRT RES SHR mean.


[gentoo-user] Re: Gnome-shell crashing

2021-04-29 Thread Adam Carter
On Thu, Apr 29, 2021 at 4:12 PM Adam Carter  wrote:

> Im my logs i see entries like
> Traps: gnome-shell trap int3 in libglib
>
> Is the issue more likely to be in glib than gnome-shell? Should I  mask
> off the latest version and try again or is there a better approach?
>

FWIW the solution to this is to mask
>gnome-base/gnome-settings-daemon-3.38.1 per bug 786966


Re: [gentoo-user] Rusty problems

2021-04-29 Thread Adam Carter
On Wednesday, April 28, 2021, Alan Mackenzie  wrote:

> Hello, Gentoo.
>
> I'm having problems building rust.


On systems that I setup assuming I wouldn’t need swap, I set swappiness low
and add a swap file (on ssd if possible) so the bigger builds can at least
finish, albeit more slowly. Generally swap never gets touched. I also use
zswap with zstd or lz4, which perform better than the old lzo deflate/zlib
options, sometimes by a wide margin.

I don’t bother with /var/tmp/portage on tmpfs any more as it seemed to be
more trouble than it was worth.


[gentoo-user] Gnome-shell crashing

2021-04-29 Thread Adam Carter
Im my logs i see entries like
Traps: gnome-shell trap int3 in libglib

Is the issue more likely to be in glib than gnome-shell? Should I  mask off
the latest version and try again or is there a better approach?


Re: [gentoo-user] Monitor complains of no HDMI signal on wake

2021-04-23 Thread Adam Carter
On Wed, Apr 21, 2021 at 7:48 AM Mike Kaliman  wrote:

> Hello all,
>
> I built a desktop that dual-boots Windows and Gentoo with rEFInd and each
> OS has its own hard drive. It's running an ASUS X570 motherboard along with
> an Nvidia RTX 2060 Super GPU. The GPU has 1 DisplayPort, 2 HDMI ports, and
> 1 DVI port. The processor is a Ryzen 3900X which doesn't have integrated
> graphics.
> I have two monitors plugged in and both are ASUS VG289Q. Each monitor has
> 2 HDMI ports and 1 DisplayPort. They're 4K monitors and I run them both as
> 3840x2160.
> I'm on "~amd64" and running the 5.11.15 kernel. The config is attached.
> I run the proprietary nvidia drivers and rebuild them on every kernel
> rebuild (as of writing this email, it's
> x11-drivers/nvidia-drivers-465.19.01, with package USE flags `X driver
> tools`).
> General USE flags: `nvidia X wayland gles2 unicode lm-sensors pulseaudio
> acl dbus alsa xvmc -amdgpu -nouveau -intel -radeon`
>
>
https://wiki.gentoo.org/wiki/Xorg/Multiple_monitors suggests you need the
xinerama USE flag, so try adding that then emerge -avuUD world.

FWIW xvmc has mostly gone away so you may find vdpau more useful.


Re: [gentoo-user] Running old RHEL as a VM on Ryzen

2021-04-16 Thread Adam Carter
>
> > Ok i see 3.10 was released 2013-06-30, so looking for a cpu released the
> > previous year, say
> > IvyBridge, IvyBridge-IBR Intel Xeon E3-12xx v2 (Ivy Bridge, 2012)
> >
> > and $ qemu-system-x86_64 -cpu ? | grep -i ivy
> > x86 IvyBridge (alias configured by machine type)
> >
> > x86 IvyBridge-IBRS(alias of IvyBridge-v2)
> >
> > x86 IvyBridge-v1  Intel Xeon E3-12xx v2 (Ivy Bridge)
> >
> > x86 IvyBridge-v2  Intel Xeon E3-12xx v2 (Ivy Bridge, IBRS)
> >
> >
> > So if I run the following then RHEL will think it's running on an
> IvyBridge
> > cpu, right?
> > $ qemu-system-x86_64 -cpu 'x86 IvyBridge-v1' etc
>
> Try:
>
> qemu-system-x86_64 -cpu IvyBridge-v1 ...
>
> The x86 part is to indicate the arch only, not meant to be included in the
> stanza.


Thanks - it's working. I had to go back one generation earlier to
'SandyBridge' as IvyBridge couldn't be used due to Ryzen missing the erms
instruction.


Re: [gentoo-user] Running old RHEL as a VM on Ryzen

2021-04-14 Thread Adam Carter
>
> > I tried running an old version of RHEL with an old 3.x kernel in
> > VirtualBox, however, it won't run due to my hosts Ryzen CPU so I
> > guess I need something that does CPU emulation.
> >
> > Is this likely to be achievable with qemu ?
>
> Yes. Look up the release date of your kernel[1] and pick a slightly
> older CPU[2].
>
> [1] <
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/refs/>
> [2] .
>
>
Great.

Ok i see 3.10 was released 2013-06-30, so looking for a cpu released the
previous year, say
IvyBridge, IvyBridge-IBR Intel Xeon E3-12xx v2 (Ivy Bridge, 2012)

and $ qemu-system-x86_64 -cpu ? | grep -i ivy
x86 IvyBridge (alias configured by machine type)

x86 IvyBridge-IBRS(alias of IvyBridge-v2)

x86 IvyBridge-v1  Intel Xeon E3-12xx v2 (Ivy Bridge)

x86 IvyBridge-v2  Intel Xeon E3-12xx v2 (Ivy Bridge, IBRS)


So if I run the following then RHEL will think it's running on an IvyBridge
cpu, right?
$ qemu-system-x86_64 -cpu 'x86 IvyBridge-v1' etc


[gentoo-user] Running old RHEL as a VM on Ryzen

2021-04-13 Thread Adam Carter
I tried running an old version of RHEL with an old 3.x kernel in
VirtualBox, however, it won't run due to my hosts Ryzen CPU so I guess I
need something that does CPU emulation.

Is this likely to be achievable with qemu ?


[gentoo-user] motherboard BIOS vs CPU microcode

2021-04-12 Thread Adam Carter
Do these largely overlap?

So if your motherboard manufacturer is diligent with releasing updates and
you've applied them, you generally won't expect a 'microcode updated early
to new patch_level' message from dmesg?


[gentoo-user] bonding round-robin for scaling bandwidth for a single flow

2021-04-10 Thread Adam Carter
I've been trying to replicate the results from;
https://louwrentius.com/linux-network-interface-bonding-trunking-or-how-to-get-beyond-1-gbs.html

To get over 1 Gig throughput for a single flow out of a 2x1GB bonded
connection. Presumably its only client→server file transfers that are over
1GB, as in this configuration the server is using LACP.

The setup is per the above, so; Switch: Netgear GS716Tv3 Client: bond uses
'Bonding Mode: load balancing (round-robin)'. The switch is configured as a
static trunk for those two ports Server: bond uses 'IEEE 802.3ad Dynamic
link aggregation' with Transmit Hash Policy: layer3+4 (shouldnt matter),
and the switch is configured as an LACP trunk for those two ports.Testing
using iperf3.

I can see the Client sending roughly equal numbers of packets down both
interfaces, so it looks like round-robin is working fine. The responses
from the server come back on a single interface, but i'm assuming that's ok
as they're just acks. Wireshark says the packet capture of the bond
interface of the server is full of 'dup ack', 'previous segment not
captured', 'tcp out of order' which I assume means that there's packet
forwarding jitter on the low end switch. Perhaps it could work with a
better switch?

Thanks for any ideas on this.


[gentoo-user] ruby and package.use

2021-02-09 Thread Adam Carter
It seems like ruby regularly wants to stuff ruby_targets_rebyNN entries
into package.use on my machines - is this normal?

Now that ruby3 is out it wants to add a bunch of ruby_targets_ruby30
entries to the ruby_targets_ruby27 crud that's already there.


Re: [gentoo-user] spam - different IP's

2021-02-04 Thread Adam Carter
On Thu, Feb 4, 2021 at 6:07 PM Adam Carter  wrote:

> On Thursday, February 4, 2021,  wrote:
>
>> I'm perplex with this entry in apache log.
>> I'm sure it was done by same person as the timing is very sequential and
>> same file-name request, but how they were able to lunch an attack from a
>> different IP's different geographical locations.
>> Can they spoof an IP?
>>
>>
> Probably just different instances of the same bot scanning for
> vulnerabilities. I imagine you will keep seeing that log from many
> different ips
>

FWIW i'm seeing the same traffic. Here's some numbers;

$ zgrep -ic wlwmanifest.xml access.log*
access.log:16
access.log-20210110.gz:0
access.log-20210117.gz:0
access.log-20210124.gz:34
access.log-20210131.gz:0


Re: [gentoo-user] spam - different IP's

2021-02-03 Thread Adam Carter
On Thursday, February 4, 2021,  wrote:

> I'm perplex with this entry in apache log.
> I'm sure it was done by same person as the timing is very sequential and
> same file-name request, but how they were able to lunch an attack from a
> different IP's different geographical locations.
> Can they spoof an IP?
>
>
Probably just different instances of the same bot scanning for
vulnerabilities. I imagine you will keep seeing that log from many
different ips



> 173.201.196.206 - - [03/Feb/2021:19:17:47 -0700] "GET
> /wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 195.70.43.234 - - [03/Feb/2021:19:18:24 -0700] "GET 
> /wordpress/wp-includes/wlwmanifest.xml
> HTTP/1.1" 404 196
> 198.38.92.110 - - [03/Feb/2021:19:21:18 -0700] "GET
> /new/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 50.62.208.141 - - [03/Feb/2021:19:21:20 -0700] "GET
> /en/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 64.62.206.242 - - [03/Feb/2021:19:21:34 -0700] "GET
> /web/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 184.168.46.171 - - [03/Feb/2021:19:22:11 -0700] "GET
> /home/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 50.63.196.23 - - [03/Feb/2021:19:23:41 -0700] "GET
> /www/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 203.205.21.159 - - [03/Feb/2021:19:23:57 -0700] "GET 
> /staging/wp-includes/wlwmanifest.xml
> HTTP/1.1" 404 196
> 66.113.226.191 - - [03/Feb/2021:19:25:42 -0700] "GET
> /news/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 148.72.232.107 - - [03/Feb/2021:19:26:06 -0700] "GET
> /news/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 35.208.134.190 - - [03/Feb/2021:19:26:22 -0700] "GET
> /shop/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 160.153.153.30 - - [03/Feb/2021:19:26:50 -0700] "GET
> /main/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 192.241.230.24 - - [03/Feb/2021:19:27:50 -0700] "GET
> /v2/wp-includes/wlwmanifest.xml HTTP/1.1" 403 199
> 66.113.221.43 - - [03/Feb/2021:19:28:37 -0700] "GET 
> /website/wp-includes/wlwmanifest.xml
> HTTP/1.1" 404 196
> 2.50.180.72 - - [03/Feb/2021:19:28:48 -0700] "GET 
> /portal/wp-includes/wlwmanifest.xml
> HTTP/1.1" 404 196
> 104.236.82.97 - - [03/Feb/2021:19:29:39 -0700] "GET
> /2019/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 50.63.197.91 - - [03/Feb/2021:19:30:46 -0700] "GET
> /1/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 103.27.61.222 - - [03/Feb/2021:19:30:57 -0700] "GET 
> /store/wp-includes/wlwmanifest.xml
> HTTP/1.1" 404 196
> 184.168.152.18 - - [03/Feb/2021:19:31:14 -0700] "GET
> /wp2/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 184.168.193.129 - - [03/Feb/2021:19:31:24 -0700] "GET 
> /blogs/wp-includes/wlwmanifest.xml
> HTTP/1.1" 404 196
>
>


Re: [gentoo-user] network transfer speed

2021-01-15 Thread Adam Carter
> On a remote network I run ethtool on both cards and I got both 1000Mb/s
> speed
>
>
As the 20 odd MB/s you're getting is above what is possible on 100M
ethernet, you can rule out any ethernet interfaces at 100M.

Can you describe the network between the two systems with the slow transfer?

If there is a fast WAN from one side of the globe to the other it could be
latency related. OpenSSH used to have a fixed internal window size that
made it slow on high bandwidth high latency links, and I notice the hpn USE
flag still exists in the openssh ebuild, which implies the issue with
openssh still exists. Rsync can use either ssh or its own protocol, so if
there's a high latency link between the two boxes and rsync is using ssh,
you could investigate rebuilding openssh with +hpn.

What does ping show the latency as?

Otherwise i'd be thinking about packet loss. First place to start for that
is on the endpoint interfaces;
ifconfig enp35s0f0 | grep err
RX errors 0  dropped 0  overruns 0  frame 0
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


Re: [gentoo-user] resizing and moving home directory to new partition on same drive

2021-01-11 Thread Adam Carter
>
> When I try to  use
> usermod -d /mnt/home/thelma -m thelma
> I get:
> usermod: user thelma is currently used by process 3037
>

Is 3037 an instance of bash running as thelma?

If so, try logging out that user then run the usermod command as root (not
thelma su'd to root)


Re: [gentoo-user] resizing and moving home directory to new partition on same drive

2021-01-10 Thread Adam Carter
>
> Can I use "nano" to edit /etc/password file
>

Yes, but it's generally safest to use usermod.


Re: [gentoo-user] update fails, but I don't see why

2020-12-04 Thread Adam Carter
> There seems to be some python3_6 and even python2_7 in your error
> output, maybe you have set some older python targets somewhere that
> you've forgotten about?
>

Yeah I was thinking the same.

If 'grep -i python /etc/portage/*' is not empty, try making it that way. On
my system with 1323 packages, having these empty and running emerge -avuUD
world just worked. 3_7 went away and everything was 3_8.


Re: [gentoo-user] update fails, but I don't see why

2020-12-03 Thread Adam Carter
On Fri, Dec 4, 2020 at 8:06 AM tastytea  wrote:

> On 2020-12-03 21:33+0100 n952162  wrote:
>
> > I'm trying to update the gentoo system that I last updated 6 weeks
> > ago, but it seems not to work.  Can somebody explain to me why?
>
> Python 3.8 is the new default target and not all packages support it
> yet. You can put
>   */* PYTHON_TARGETS: python3_7
> into /etc/portage/package.use as a workaround. Don't forget to remove
> it in a month or so.
>
>
Try emerge -avuUD @world (the U is the critical bit). For me, it pulled in
a bunch of extra rebuilds (with -python3_7 and +python3_8). After that
depclean removed 3.7


Re: [gentoo-user] duplicate gentoo system - errors

2020-11-24 Thread Adam Carter
> 3) AMD code runs only on same or newer AMD, because it has the 3DNow!
>instruction set the others lack.
>

FYI 3dnow and 3dnowext went away some time ago. It's not in any of the
Bulldozer or Zen CPUs.


Re: [gentoo-user] Going through these one by one.

2020-11-19 Thread Adam Carter
On Fri, Nov 20, 2020 at 8:36 AM Steven Lembark  wrote:

>
> Based on:
>
> 2020-04-22  Python 3.7 to become the default target
>
> I'd have thought that using:
>
> PYTHON_TARGETS="python2_7 python3_7"
> PYTHON_SINGLE_TARGET="python3_7"
>
>
I would remove those entries and try again. As a Gnome ~amd64 user, python
2.7 was depcleaned on the 11th as the last dependency was removed.

>


Re: [gentoo-user] kernel support for: i211 - intel network driver

2020-11-16 Thread Adam Carter
On Sat, Nov 14, 2020 at 9:18 AM  wrote:

> I have Asus X570-pro MB with Intel I211-AT network
> When I compiled into the kernel (not as module) the "IGB" network driver
> but the network is not recognized.
>
> lsmod |grep igb is not showing anything.
>

Not sure how close the I211 is to the I219, but lspci -k shows;
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (6)
I219-V (rev 30)
DeviceName:  LAN
Subsystem: Intel Corporation Ethernet Connection (6) I219-V
Kernel driver in use: e1000e

If i were you i'd just compile all these suggestions as modules and see
what gets loaded.


Re: [gentoo-user] Updating LibreOffice and EPYTHON

2020-10-28 Thread Adam Carter
On Tue, Oct 27, 2020 at 1:23 AM Andrew Lowe  wrote:

> Evening all,
> I'm in the middle of doing an "-NuD world" and my  Libreoffice
> build
> has failed right at the finish line. I get:
>
>
> * ERROR: app-office/libreoffice-6.4.7.2::gentoo failed (install phase):
>   *   No Python implementation set (EPYTHON is null).
>   *
>   * Call stack:
>   * ebuild.sh, line  125:  Called src_install
>   *   environment, line 5615:  Called python_optimize
>
> '/var/tmp/portage/app-office/libreoffice-6.4.7.2/image/usr/lib64/libreoffice/program'
>   *   environment, line 5287:  Called die
>   * The specific snippet of code:
>   *   [[ -n ${EPYTHON} ]] || die 'No Python implementation set
> (EPYTHON is null).';
>   *
>

Stab in the dark - what does 'eselect python list' say?


Re: [gentoo-user] Multiple addresses/routes for one ethernet card possible?

2020-10-24 Thread Adam Carter
On Sat, Oct 24, 2020 at 3:56 PM Walter Dnes  wrote:

>   After an outage on VDSL last month, I got a backup 10/1 cable
> subscription backup.  Switching is a bit of a hassle.  In addition to
> swapping cables, I have to run dhcpcd as root or sudo when swithching
> from VDSL to cable.  Switching back I have to run "dhcpcd -x", copy over
> my backup of /etc/resolve.conf, and run "/etc/init.d/net.eth0 restart".
>
>   The VDSL router/modem offers dhcp and static address space at
> 192.168.1.0/24, DNS and default GW 192.168.1.1.  I've bought a router
> that gets a WAN address from the cable modem via dhcpcd, and offers dhcp
> and static address space at 192.168.10.0/24, DNS and default GW
> 192.168.10.1. My current /etc/conf.d/net is...
>
> mtu_eth0="1466"
> config_eth0="
> 192.168.1.249/24 broadcast 192.168.1.255"
> routes_eth0="
> default via 192.168.1.1 metric 20
> 192.168.1.240/28 via 192.168.1.1 metric 0"
>
> ...for my machine 192.168.1.249.  Can I have something like...
>
> mtu_eth0="1466"
> config_eth0="
> 192.168.1.249/24 broadcast 192.168.1.255
> 192.168.10.249/24 broadcast 192.168.1.255"
> routes_eth0="
> default via 192.168.1.1 metric 20
> 192.168.1.240/28 via 192.168.1.1 metric 0"
>

For secondary IPs use eth0:0 as the interface name;
# ifconfig bond1
bond1: flags=5187  mtu 1500
inet 192.168.1.252  netmask 255.255.255.0  broadcast 192.168.1.255
ether aa:86:b3:f6:ee:97  txqueuelen 1000  (Ethernet)
RX packets 647891  bytes 867479673 (827.2 MiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 337624  bytes 114478897 (109.1 MiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

# ifconfig bond1:0 192.168.10.249/24
# ifconfig bond1:0
bond1:0: flags=5187  mtu 1500
inet 192.168.10.249  netmask 255.255.255.0  broadcast 192.168.10.255
ether aa:86:b3:f6:ee:97  txqueuelen 1000  (Ethernet)

For the routes, your eth0:0 interface will of course need to use
192.168.10.1

However, if you just have a PC with a single interface, and you are going
to just manually plug in which ever router you want to use, then just use
dhcp on eth0, and plug/replug the cable. The loss of link on the cable
should cause dhcp to DISCOVER again, and then get the correct IP and
gateway - so no changes will be required on the PC (assuming i understand
your setup correctly)


Re: [gentoo-user] kernel bad scheduling from idle thread

2020-10-15 Thread Adam Carter
>
> This is the first 5.4 kernel I have tried.  I did a make oldconfig and
> added a number of modules, but I would think the kernel would only
> load the ones that are needed.  I could not tell you the exact ones,
> as I try to make the kernel somewhat general, so I may add things
> which may not be necessary for my particular situation.
>

I think call traces indicate a kernel bug, not an issue with kernel
configuration. Try .71 - perhaps the issue has already been fixed.

If the issue persists in .71 then you could report to the kernel
maintainers if you have the time and inclination. I've reported a couple.
https://www.kernel.org/doc/html/latest/admin-guide/reporting-bugs.html -
just dont use gmail as they want plain text email.


Re: [gentoo-user] X Forwarding from virtual host

2020-10-15 Thread Adam Carter
On Wed, Oct 14, 2020 at 1:20 PM Dan Egli  wrote:

> Okay, this is I HOPE a simple enough question. I have a virtual server
> running on my Win10 Host (not my ideal O/S!) that has a full X environment
> on it. I usually connect via Putty(ssh) using VirtualBox's Host Only
> network. That's great for text, but how do I set things up so that I can
> run X programs on the virtual box and have them show on my Win host? I have
> an implimentation of X for Windows (Xming)running, and I set putty to
> forward X connections, but when I try something as silly as xeyes, it
> fails. I've notice that the DISPLAY environment isn't being set, but
> setting it myself doesn't seem to help. The Virtual Server's IP is
> 192.168.56.25 and the Host automatically gets .1, so I tried setting
> DISPLAY=129.168.56.1:0 and it doesn't work. I get a message "No protocol
> specified" followed by the error "Error: Can't open display: 192.168.56.1:0
> .0"
>
Usually when you forward X over ssh, DISPLAY is a port on the ssh client,
which is then forwarded by ssh to the remote port, that is, the port on the
remote server that the X server is listening on. So putty should be
automatically setting DISPLAY to something like  192.168.56.25:10.0 (ie
port 6010 on the guest) when you enable X forwarding. If it's not i'd say
there's something wrong with the putty setup.

That said, i think you should be able to just connect directly to
192.168.56.1:0.0 anyway - does Xming have an xhost setting? Does netstat on
the host show its listening on port 6000? Windows firewall?


Re: [gentoo-user] python variables

2020-10-02 Thread Adam Carter
On Sat, Oct 3, 2020 at 9:50 AM William Kenworthy  wrote:

> Hi, I am still having problems with the python settings.  There a lot of
> articals online for python on Gentoo but they all seem to miss a simple
> point: a list of what the current default should be:
>
> should there be nothing in a properly configured system (all handled
> automaticly)
>

I leave everything at the defaults, unless there's something that i'm
certain I want to achieve. This goes for all settings, including USE, and i
usually use package.use rather than USE= in make.conf.

So for me there's no specific python/ruby etc settings in make.conf, but
there's still eselect, and i generally keep away from the newest and oldest.

Try unsetting python settings in make.conf and run an emerge -avuUD world
to see what you get.

BTW, for ~arch users python:2.7 is pretty much gone. For me, I just have
some gnome stuff which depends on dev-libs/gjs, which depends on
dev-lang/spidermonkey:68 which depends on python:2.7.


Re: [gentoo-user] Errors in nonexistent partitions

2020-09-13 Thread Adam Carter
On Sun, Sep 13, 2020 at 8:17 PM Peter Humphrey 
wrote:

> Morning all,
>
> My ~amd64 system uses partitions 1 to 18 on /dev/nvme0n1, and it has two
> SATA
> disks as well, for various purposes. Today, after I'd taken the system
> down
> for its weekly backup (I tar all the partitions to a USB disk) and started
> up
> again, invoking gparted to look around, libparted spat out a list of
> partitions from 19 to 128 which, it said, "have been written but we have
> been
> unable to inform the kernel of the change..."
>
> I remerged gparted, parted, libparted and udisks, then booted another
> system
> and ran fsck -f on all the partitions from 4 to 18 - those that this
> system
> uses - and rebooted. No change - the same complaint from libparted.
>

I would start by dd ing an image of the entire disk, then making a copy to
work on (keeping the original image as a backup) then running testdisk
against the working copy image to see what it reports.


Re: [gentoo-user] which filesystem is best for raid 0?

2020-08-12 Thread Adam Carter
On Thu, Aug 13, 2020 at 5:29 AM Grant Taylor <
gtay...@gentoo.tnetconsulting.net> wrote:

> On 8/12/20 11:53 AM, Никита Степанов wrote:
> > which filesystem is best for raid 0?
>

Performance wise, ext4 and XFS lead most benchmarks for non-raid. XFS seems
best for raid1, so I imagine either of those would be best for raid0.

Depends on your use case, but ext2 (and to a much lesser degree btrfs) will
be less reliable than ext4 or XFS so what you use will depend on
speed/reliability trade off. ext2 is less reliable due to it missing the
journal, btrfs due to being less mature (IMO, this is a weakly held
belief). Also btrfs tends to be slower than ext4 and XFS for most
operations, sometimes by a large margin.

https://www.phoronix.com/scan.php?page=article=linux-50-filesystems=2


[gentoo-user] hplip network scanning port

2020-07-31 Thread Adam Carter
I used to be able to scan on my gentoo box from an HP officejet pro on the
network. This is now failing and i can see that the gentoo box is
attempting to connect to TCP/6566 on the HP, but the HP is not listening on
that port.

Test command is;
hp-scan -dhpaio:/net/HP_Officejet_Pro_8620?ip=

Is 6566 scan attempt using the correct port?

Nmap of the printer;
PORT  STATE SERVICE
80/tcpopen  http
139/tcp   open  netbios-ssn
443/tcp   open  https
445/tcp   open  microsoft-ds
515/tcp   open  printer
631/tcp   open  ipp
3910/tcp  open  prnrequest
3911/tcp  open  prnstatus
6839/tcp  open  unknown
7435/tcp  open  unknown
8080/tcp  open  http-proxy
9100/tcp  open  jetdirect
9220/tcp  open  unknown
53048/tcp open  unknown


Re: [gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained?

2020-07-29 Thread Adam Carter
>
> > So should I run something like: date ; time  > 100%CPU for a minute> ; date ?
>
> No, date will pull from your RTC, which is usually kept up to date with an
> asynchronous
> counter.
>
> First check GNU top(1) and look in the %Cpu line for "st." That is % CPU
> time stolen. If it is
> nonzero then the guest time's accounting is probably working. It's not
> typical for the
> hypervisor to hide this information. It's really important for load
> balancing.
>

Thanks for that. I haven't seen any non-zero stolen time yet, however.

FWIW vmstat also shows stolen time.


Re: [gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained?

2020-07-27 Thread Adam Carter
>
> Compare realtime it to measured CPU time. If one realtime second is
> shorter than a
> CPU second then you know the host is pausing your VM. There are other ways
> to
> check, but this should always work if you can contact an asynchronous time
> standard.
> You may need to average the time over tens of seconds or a minute.
>
> This method will allow you to figure out that AWS spot instances are
> oversubscribed ~1.5x.
>
>
Nice. FWIW the guest is running NTP.

So should I run something like: date ; time  ; date ?


Re: [gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained?

2020-07-26 Thread Adam Carter
On Mon, Jul 27, 2020 at 1:35 PM Ashley Dixon  wrote:

> On Mon, Jul 27, 2020 at 01:23:46PM +1000, Adam Carter wrote:
> > Having performance issues on a linux vmware guest that doesnt run vmtools
> > because its an 'appliance', but it does allow shell access. I assume CPU
> > utilisation shown by top etc is the utilisation of the vCPUs. Is there
> any
> > way to discover or infer host CPU issues?
>
> Do you mean that you want to monitor the host system from the guest? Can
> you not
> just SSH into the host from the guest?  You can also infer CPU  usage
> from  the
> /proc/stat file on the host system, if you can share  files  over  NFS
> or  some
> other file-sharing means.
>

I have ssh access (including root) to the guest but no access to the host.


[gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained?

2020-07-26 Thread Adam Carter
Having performance issues on a linux vmware guest that doesnt run vmtools
because its an 'appliance', but it does allow shell access. I assume CPU
utilisation shown by top etc is the utilisation of the vCPUs. Is there any
way to discover or infer host CPU issues?


Re: [gentoo-user] problem getting wifi card to route to internet

2020-07-26 Thread Adam Carter
> > Have you set the default route and enabled ip forwarding?
> >
> > Also you don’t need to add a route for connected interfaces
> Thanks for your quick response.  Packet forwarding is enabled and I am
> using shorewall to have normal firewall settings.
>

Ok so can the WLAN clients ping the internet facing interface of your new
linux/wlan/internet router? If not, do they get a DHCP IP address? Do they
have a default route?


Re: [gentoo-user] problem getting wifi card to route to internet

2020-07-25 Thread Adam Carter
On Saturday, July 25, 2020, John Covici  wrote:

> Hi.  This is not strictly a gentoo problem, but I would like advise
> from people on how to get my wifi card to see the internet.
>
> On my new box I have the following card:
> 00:14.3 Network controller: Intel Corporation Wireless-AC 9560
> [Jefferson Peak] (rev 10)
> Subsystem: Intel Corporation Wireless-AC 9560 [Jefferson Peak]
>Kernel driver in use: iwlwifi
>
> Now, I wanted to serve other computers with this device
>

Have you set the default route and enabled ip forwarding?

Also you don’t need to add a route for connected interfaces


Re: [gentoo-user] repoint virtual/rust to rust instead of rust-bin

2020-07-22 Thread Adam Carter
On Wed, Jul 22, 2020 at 5:39 PM Adam Carter  wrote:

>
> Have you tried adding --tree to your emerge command?
>>
>>
> Yes, and both the dev-lang and virtual were both just leaves. Checked the
> world file and it has;
> dev-lang/rust
> virtual/rust
>
> Should it be just the virtual?
>

Answering my own question - it should be neither. Removed them and
package.mask settings and it's good now.


Re: [gentoo-user] repoint virtual/rust to rust instead of rust-bin

2020-07-22 Thread Adam Carter
> Have you tried adding --tree to your emerge command?
>
>
Yes, and both the dev-lang and virtual were both just leaves. Checked the
world file and it has;
dev-lang/rust
virtual/rust

Should it be just the virtual?


Re: [gentoo-user] repoint virtual/rust to rust instead of rust-bin

2020-07-22 Thread Adam Carter
On Tue, Jul 21, 2020 at 6:29 PM Neil Bothwick  wrote:

>
> You have emerged rust-145 from testing but portage wants to install
> virtual/rust-1.44.1 from stable. This looks like a keywording issue.
>
> Are you running stable or testing? Do you have anything rust-related in
> package.accept_keywords?
>

No, nothing in /etc/portage/* System is testing/~amd64.

However, qlop shows the last rust-bin installed was actually 1.38, whereas
my memory was that it was 1.44, so i have mixed up two different systems. I
can't see anything in roots history that would have caused the issue.

FWIW if i mask dev-lang/rust-bin it wants to
[ebuild UD ] dev-lang/rust-1.44.1:stable/1.44::gentoo
[1.45.0:stable/1.45::gentoo] USE="-clippy -debug -doc -libressl (-miri)
-nightly -parallel-compiler -rls -rustfmt -system-bootstrap -system-llvm
-wasm" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="AMDGPU
(X86) -AArch64 -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC
-RISCV -Sparc -SystemZ -WebAssembly -XCore" 0 KiB
[ebuild UD ] virtual/rust-1.44.1::gentoo [1.45.0::gentoo] ABI_X86="(64)
-32 (-x32)" 0 KiB

No idea what's pulling in rust-1.44.1
# emerge -pv --depclean virtual/rust
Calculating dependencies... done!
  virtual/rust-1.45.0 pulled in by:
dev-util/cbindgen-0.14.3 requires >=virtual/rust-1.37.0,
=virtual/rust-1.45.0
mail-client/thunderbird-68.10.0 requires >=virtual/rust-1.34.0,
=virtual/rust-1.45.0
www-client/firefox-78.0.2 requires >=virtual/rust-1.41.0,
=virtual/rust-1.45.0

Added the following to package.mask and world will update without complaint
dev-lang/rust-bin


[gentoo-user] repoint virtual/rust to rust instead of rust-bin

2020-07-21 Thread Adam Carter
I've unmerged rust-bin, emerged rust (v1,45), then re-emerged virtual/rust
but if i run a world update it still wants to pull rust-bin back in;

# emerge -avuD --tree world

These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[ebuild UD ] virtual/rust-1.44.1::gentoo [1.45.0::gentoo] ABI_X86="(64)
-32 (-x32)" 0 KiB
[ebuild  N ]  dev-lang/rust-bin-1.44.1:stable::gentoo  USE="-clippy
-doc -rustfmt" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" 0 KiB

How do I clear this?


Re: [gentoo-user] problem emerging pycairo

2020-07-12 Thread Adam Carter
On Mon, Jul 13, 2020 at 2:36 PM Philip Webb  wrote:

> 200713 Adam Carter wrote:
> > On Mon, Jul 13, 2020 at 5:32 AM Philip Webb 
> wrote:
> >> root:543 ~> emerge -pv pycairo
> ...
> >> WARNING: One or more updates/rebuilds have been skipped
> >> due to a dependency conflict:
> >> dev-python/pycairo:0
> >>   (dev-python/pycairo-1.19.1:0/0::gentoo, ebuild scheduled for merge)
> >>   USE="-doc -examples -test" ABI_X86="(64)" PYTHON_TARGETS=
> >>   "(-pypy3) python3_6 python3_7 -python3_8 (-python3_9)" conflicts with
> >>   >=dev-python/pycairo-1.11.1 [python_targets_python2_7(-),
> >>   python_targets_python3_6(-),python_targets_python3_7(-),
> >>   -python_single_target_python2_7(-),-python_single_target_python3_6(-),
> >>   -python_single_target_python3_7(-),-python_single_target_python3_8(-),
> >>   -python_single_target_python3_9(-)] required by
> >>   (dev-python/pygobject-3.34.0:3/3::gentoo, installed)
> >>   USE="cairo -examples -test" ABI_X86="(64)"
> >>   PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_8"
> > I think it's because dev-python/pycairo-1.19.1 doesnt have python2_7 ,
> > which dev-python/pycairo-1.18.2 does and pygobject requires it.
> > You could try removing python2_7 from pygobject,
> > but i'm guessing there will be other dependencies that wont allow that.
>
> Thanks for the suggestion ; that does solve the problem, tho' how anyone
> could derive that info from the Portage output is quite beyond me
>

I cut and pasted the output into what my brain thought was a sensible order.

The problem is with pygobject, so what does it need?
USE="cairo -examples -test"
ABI_X86="(64)"
PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_8"

So out of that stuff, what does pycairo-1.18.2 have that pycairo-1.19.1 is
missing?
1.18
USE="-doc -examples -test"
PYTHON_TARGETS="(-pypy3%) python2_7 python3_6 python3_7 -python3_8
(-python3_9)"
1.19
USE="-doc -examples -test"
ABI_X86="(64)"
PYTHON_TARGETS="(-pypy3) python3_6 python3_7 -python3_8 (-python3_9)"

Ok so 1.19 doesn't have python2_7, so while pygobject is using it, pycairo
will need to have it. So, you tried rebuilding pygobject without 2_7, and
luckily nothing else that was using pygobject needed 2_7 so it worked.


Re: [gentoo-user] problem emerging pycairo

2020-07-12 Thread Adam Carter
On Mon, Jul 13, 2020 at 5:32 AM Philip Webb  wrote:

> this is the output :
>
> root:543 ~> emerge -pv pycairo
>
> These are the packages that would be merged, in order:
> Calculating dependencies... done!
> [ebuild   R] dev-python/pycairo-1.18.2::gentoo  USE="-doc -examples
> -test"
> PYTHON_TARGETS="(-pypy3%) python2_7 python3_6 python3_7 -python3_8
> (-python3_9)"
>
> WARNING: One or more updates/rebuilds have been skipped
> due to a dependency conflict:
>
> dev-python/pycairo:0
>
>   (dev-python/pycairo-1.19.1:0/0::gentoo, ebuild scheduled for merge)
>   USE="-doc -examples -test" ABI_X86="(64)" PYTHON_TARGETS=
>   "(-pypy3) python3_6 python3_7 -python3_8 (-python3_9)" conflicts with
>   >=dev-python/pycairo-1.11.1 [python_targets_python2_7(-),
>   python_targets_python3_6(-),python_targets_python3_7(-),
>   -python_single_target_python2_7(-),-python_single_target_python3_6(-),
>   -python_single_target_python3_7(-),-python_single_target_python3_8(-),
>   -python_single_target_python3_9(-)] required by
>   (dev-python/pygobject-3.34.0:3/3::gentoo, installed)
>   USE="cairo -examples -test" ABI_X86="(64)"
>   PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_8"
>
> root:544 ~> eix pycairo
>   [U] dev-python/pycairo
>   Available versions: 1.18.2^t 1.19.1^t {doc examples test
>   PYTHON_TARGETS="pypy3 python2_7 python3_6 python3_7 python3_8 python3_9"}
>   Installed versions: 1.18.2^t([2020-04-25 12:09:30])(-doc -examples -test
>   PYTHON_TARGETS="python2_7 python3_6 python3_7 -pypy3 -python3_8")
>
> root:545 ~> eix pygobject
>   [I] dev-python/pygobject
>   Available versions:
> (2)2.28.6-r55^t
> (3)3.32.1^t 3.34.0^t
>   {+cairo examples libffi test
>   PYTHON_TARGETS="python2_7 python3_6 python3_7 python3_8 python3_9"}
>   Installed versions: 3.34.0(3)^t([2020-05-09 19:57:48])(cairo -examples
> -test
>   PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_8")
>
>
I think it's because dev-python/pycairo-1.19.1 doesnt have python2_7 (which
dev-python/pycairo-1.18.2 does) and pygobject requires it. You could try
removing python2_7 from pygobject but i'm guessing there will be other
dependencies that wont allow that.


Re: [gentoo-user] SSD or MoBo playing up?

2020-06-18 Thread Adam Carter
On Fri, Jun 19, 2020 at 8:48 AM Michael  wrote:

> It started thus:
>
> Jun 18 17:52:45 asus kernel: ata1.00: exception Emask 0x0 SAct 0x2 SErr
> 0x0
> action 0x6 frozen
> Jun 18 17:52:45 asus kernel: ata1.00: failed command: WRITE FPDMA QUEUED
> Jun 18 17:52:45 asus kernel: ata1.00: cmd
> 61/20:08:60:f1:90/00:00:02:00:00/40
> tag 1 ncq dma 16384 out\x0a res
> 40/00:01:00:4f:c2/00:00:00:00:00/00
> Emask 0x4 (timeout)
> 
>

What does smartctl -a /dev/sda report?

Tried replacing the cable?


Re: [gentoo-user] Anyone willing to share a kernel .config file?

2020-06-18 Thread Adam Carter
On Fri, Jun 19, 2020 at 7:45 AM Andrew Lowe  wrote:

> Hi all,
> I have an AMD Ryzen 7 2700 CPU sitting in a Gigabyte X470 Aurus
> Ultra
> Gaming motherboard with 64GB of RAM and an nVidia graphics card. For
> some reason I've never been happy with the kernels config.
>

Can you post your .config, and also dmesg and .local/share/xorg/Xorg.0.log ?


Re: [gentoo-user] AMDGPU: computer won't shut down [UPDATE]

2020-06-10 Thread Adam Carter
>
> Can someone explain how the amdgpu.dc=1 parameter gets passed to grub?
>
> Thanks in advance.
>
Is it in /etc/default/grub's GRUB_CMDLINE_LINUX_DEFAULT=?

If the question is how it got there, maybe the timestamp on the file offers
a hint?


Re: [gentoo-user] Re: Netflix Error Code O7355 with Opera

2020-06-10 Thread Adam Carter
On Thu, Jun 11, 2020 at 5:40 AM Grant Edwards 
wrote:

> On 2020-06-10, J. Roeleveld  wrote:
>
> > I had it working in Firefox.
>
> firfox or firefox-bin?
>

Source built firefox works for me.

FWIW i build with USE +hwaccel +lto which seem to consistently work. pgo
works sometimes, then doesnt. Haven't tried pgo on v77.


Re: [gentoo-user] Kernel panic - not syncing: No working init found.

2020-06-05 Thread Adam Carter
>
> On my boxes with swap files, kernel 5.7.0 barfs;
>
> # file /swapfile
> /swapfile: Linux/i386 swap file (new style), version 1 (4K pages), size
> 2097151 pages, no label
> # swapon -a
> swapon: /swapfile: swapon failed: Invalid argument
>
> I havent looked into it yet as they're rarely used at all. What kernel are
> you using?
>

FYI this issue is due to fallocate creating files with holes (found via
dmesg | grep -i swap). Once I recreated the files with dd if=/dev/zero they
were good.


Re: [gentoo-user] Kernel panic - not syncing: No working init found.

2020-06-03 Thread Adam Carter
On Thu, Jun 4, 2020 at 2:24 AM  wrote:

> When I try to boot I'm getting an error:
>
> "Kernel panic - not syncing: No working init found. Try passing  init=
> option to kernel."
>
> I am running very low on disk space, I think.
> I've tried to boot strap the system and remove some files but boot strap
> is not working.  When I boot from minimal-install gentoo CD I try:
>
> swapon /dev/sda3
> swapon: /dev/sda3: read swap header failed: Input/output error
>
>
On my boxes with swap files, kernel 5.7.0 barfs;

# file /swapfile
/swapfile: Linux/i386 swap file (new style), version 1 (4K pages), size
2097151 pages, no label
# swapon -a
swapon: /swapfile: swapon failed: Invalid argument

I havent looked into it yet as they're rarely used at all. What kernel are
you using?


Re: [gentoo-user] AMD Radeon R7 370 (Pitcairn) causing the bootup to hang

2020-05-04 Thread Adam Carter
On Mon, May 4, 2020 at 10:21 AM Ashley Dixon  wrote:

> Hi gentoo-user,
>
> I'm attempting to configure a mid-range video card: the Radeon R7 370.
>  Running
> on the Pitcairn chipset and a member  of  the  Southern  Islands  family,
> I  am
> surprised at the complexity of setting up the Radeon driver in comparison
> to its
> NVIDIA counterpart.
>
> I followed [1] carefully.  Initially opting to compile AMDGPU into the
> kernel, I
> emerged linux-firmware with the following files.  All of the relevant
> files were
> added to the kernel's CONFIG_EXTRA_FIRMWARE string, using /lib/firmware
> as  the
> base directory.
>
> radeon/pitcairn_smc.bin
> radeon/pitcairn_ce.bin
> radeon/pitcairn_mc.bin
> radeon/pitcairn_me.bin
> radeon/pitcairn_pfp.bin
> radeon/pitcairn_k_smc.bin
> radeon/pitcairn_rlc.bin
> radeon/TAHITI_uvd.bin
> radeon/TAHITI_vce.bin
>

Did it load ok?
dmesg | grep -i drm.*firm
You should see;
[drm] Found UVD firmware Version etc
[drm] Found VCE firmware Version etc


> Unfortunately, upon booting, the kernel hangs with the following message.
>  This
> seems to be rather common, with a similar  complaint  being  discussed
> at  [2].
>
> fb0: switching to amdgpudrmfb from EFI VGA
>

Here's what i get (R9 380)
# dmesg | grep -i fb0
[1.302701] fbcon: amdgpudrmfb (fb0) is primary device
[1.474076] amdgpu :01:00.0: fb0: amdgpudrmfb frame buffer device

What CONFIG_FB options are enabled? I dont have CONFIG_FB_EFI set to try
removing that.


> As this all occurs pre-OpenRC, I am incapable of creating an S.S.H.\
> connection
> to the machine from my laptop.  When booting the kernel with the
> `nomodesetting`
> parameter, the X server reports the following after  a  successful
> kernel  boot
> (created when executing `startx`): [timestamps omitted]
>
> (EE) Failed to load module "fbdev" (module does not exist, 0)
> (II) LoadModule: "vesa"
> (WW) Warning, couldn't open module vesa
> (EE) Failed to load module "vesa" (module does not exist, 0)
> (II) RADEON: Driver for ATI/AMD Radeon chipsets:
> ATI Radeon Mobility X600 (M24), ATI FireMV 2400,
> ATI Radeon Mobility X300 (M24), ATI FireGL M24 GL,
>
> [...]
>
> ARUBA, TAHITI, PITCAIRN, VERDE, OLAND, HAINAN, BONAIRE,
> KABINI,
> MULLINS, KAVERI, HAWAII
> (II) modesetting: Driver for Modesetting Kernel Drivers: kms
> (--) using VT number 7
>
> (II) [KMS] drm report modesetting isn't supported.
> (EE) open /dev/dri/card0: No such file or directory
> (WW) Falling back to old probe method for modesetting
> (EE) open /dev/dri/card0: No such file or directory
>

I'd say that's the key. What CONFIG_DRM options are enabled?


Re: [gentoo-user] transparent compression? (e.g. device mapper for compression)

2020-04-30 Thread Adam Carter
On Thu, Apr 30, 2020 at 1:24 PM Caveman Al Toraboran <
toraboracave...@protonmail.com> wrote:

> hi - any nice way to have compression at the file
> system level, without using zfs?  perhaps some
> kind of device mapper that compresses data?
>
> i find file system compression to speed up
> read/write to slow disks noticeably (e.g. sata).
>

https://btrfs.wiki.kernel.org/index.php/Compression


Re: [gentoo-user] /proc/meminfo vs lshw -c memory

2020-04-18 Thread Adam Carter
On Sat, Apr 18, 2020 at 11:14 AM madscientistatlarge <
madscientistatla...@protonmail.com> wrote:

> If the bios sees it, an lshw sees it it's not the ram, I seriously doubt
> new ram would help.  I've seen a failing power supply make ram look flaky
> before, possibly the drive activity during booting is loading down the
> power supply enough to confuse your' system.  In any case, you should run
> memtest, boot into it (obviously try to install if necessary).  Also, how
> dusty is your' cpu?  A hot cpu can do truly crazy things, like cause an
> install to fail at exactly the same point 3 times in a row, seen it.  Also,
> don't desperately reseat the ram anymore, it's not the problem and those
> connectors don't last for ever, a few dozen times can wear them out though
> it should be closer to 50-100 minimum.  In any case, It's very unlikely to
> be the ram, the bios is seeing it, lshw is seeing it, for some reason the
> os isn't.  What command/program is telling you there is only 8G?  Is it
> system monitor, about this computer or what?
>
> /proc/meminfo, top, free etc.

I was watching CPU temperature with watch 'sensors k10temp-pci-00c3' and it
never got to the high mark.

I'll try a new power supply & memtest. Thanks.


[gentoo-user] /proc/meminfo vs lshw -c memory

2020-04-17 Thread Adam Carter
The BIOS and lshw -c memory shows 2x8Gig but the OS (/proc/meminfo) only
shows 8Gig. I've re-seated the RAM, tried different slots, booted from CD,
but no change. Last time i looked the OS showed 16Gig.

Is there anything else i can try or is it new RAM time?


[gentoo-user] Warning: libuv-1.36.0 breaks bind

2020-04-16 Thread Adam Carter
For me at least. Going back to 1.35 makes bind work again.

Error looks like
Apr 16 15:48:51 proxy named[944]: netmgr.c:1000:
REQUIRE(worker->recvbuf_inuse) failed, back trace
Apr 16 15:48:51 proxy named[944]: #0 0x61943fe4dc20 in ??
Apr 16 15:48:51 proxy named[944]: #1 0x70cde3c7cf4c in ??
Apr 16 15:48:51 proxy named[944]: #2 0x70cde3c95832 in ??
Apr 16 15:48:51 proxy named[944]: #3 0x70cde3c9a1d3 in ??
Apr 16 15:48:51 proxy named[944]: #4 0x70cde33bbcba in ??
Apr 16 15:48:51 proxy systemd[1]: named.service: Main process exited,
code=killed, status=6/ABRT
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- An ExecStart= process belonging to unit named.service has exited.
-- 
-- The process' exit code is 'killed' and its exit status is 6.
Apr 16 15:48:51 proxy named[944]: #5 0x70cde33bc293 in ??
Apr 16 15:48:51 proxy named[944]: #6 0x70cde33bea98 in ??
Apr 16 15:48:51 proxy named[944]: #7 0x70cde33ad2dd in ??
Apr 16 15:48:51 proxy named[944]: #8 0x70cde3c978e9 in ??
Apr 16 15:48:51 proxy named[944]: #9 0x70cde359c057 in ??
Apr 16 15:48:51 proxy named[944]: #10 0x70cde34ca62f in ??
Apr 16 15:48:51 proxy named[944]: exiting (due to assertion failure)
Apr 16 15:48:51 proxy systemd[1]: named.service: Failed with result
'signal'.


Re: [gentoo-user] OSS4

2020-04-13 Thread Adam Carter
On Tue, Apr 14, 2020 at 4:48 AM Jorge Almeida  wrote:

> On Mon, Apr 13, 2020 at 6:52 PM Michael  wrote:
> >
>
> > > ## arecord -l
> > >  List of CAPTURE Hardware Devices 
> > > card 0: PCH [HDA Intel PCH], device 0: Generic Analog [Generic Analog]
> > >   Subdevices: 1/1
> > >   Subdevice #0: subdevice #0
> > > card 0: PCH [HDA Intel PCH], device 2: Generic Alt Analog [Generic Alt
> > > Analog] Subdevices: 1/1
> > >   Subdevice #0: subdevice #0
> >
> > I can't see your USB mic anywhere ...
>
> Humm... The point is: the interface (Behring) has RCA output, which is
> connected to the LineIn of the integrated sound card (not an USB
> card). On the other hand, it also has a USB output, which is used to
> get Phantom Power (whatever that is), which works (when removed from
> the USB entry in the computer, the LEDs go off). However: I think the
> device (Behring) also works as a USB sound card (which I don'y want to
> use).
>

XLR style mics output to too low for sound card inputs, so let's assume the
Behring interface you have is boosting the signal (and since its an
amplifier it gets its power via USB). The question now is whether the
signal on RCA outputs is suitable for a sound card - i'm not sure, but IIRC
i've done this before and it worked.

I'd be inclined to try setting up the Behring USB though - if its a high
end device it will probably sound better.


Re: [gentoo-user] Re: Why busybox?

2020-04-06 Thread Adam Carter
> > > Why does portage insist on installing busybox for me?
> >
> > BusyBox is just a minimal set of utilities which would be useful for
> > rescuing a system, or to be used on an embedded system with extreme
> > limitations. There's not really any reason to remove this, but if you
> > insist...
>
> As for rescue scenarios, that has been obsolete for a long time.  For at
> least 10 years now, whenever I need to rescue myself I boot from a
> separate medium that is normally offline, a CD, an SD card or a thumb
> drive.
>

If your breakage can be fixed by busybox, then its easier, faster and
avoids downtime when compared to booting from alternate media. As its
statically linked, it will still run if any libraries required by the
conventional binary are stuffed (BTDT). Of course, sometimes its not enough
and you will have to fall back to booting from alternate media.

I don't think many will find a compelling case for its removal.


Re: [gentoo-user] Re: SDD, what features to look for and what to avoid.

2020-04-02 Thread Adam Carter
>
> 3900X@2133 nvme 512G Samsung 970 EVO PLUS 11904 2858
> 3900X@3200 nvme 512G Samsung 970 EVO PLUS 15213 3032
>
> Oooo.   That nvme speed is fss.  Do
> you happen to have the OS on that and if so, just how fast does it go from
> BIOS or Grub to bootup complete?  I'm almost scared to ask.
>

Yep, everything's on the nvme except /var. From grub to console login
prompt is about 20 seconds, but it waits quite a while for the network
service to come up, perhaps because its using a bonded interface.

Booting is quick, but I really notice the speed when booting a win10 vm in
virtualbox, which takes about 15 seconds.

The system was delivered with the RAM running at 2133, so the auto speed
detection hadnt worked. Hardcoding it to the spec speed of 3200 took the
cache reads from 11.9Gig 15.2Gig...


Re: [gentoo-user] Re: SDD, what features to look for and what to avoid.

2020-04-01 Thread Adam Carter
>
> A simple read test with hdparm -t reveals:
> 500 GB Crucial from 2016: Timing buffered disk reads: 1596 MB in  3.00
> seconds = 531.46 MB/sec
> 128 GB Sandisk from 2014: Timing buffered disk reads: 1532 MB in  3.00
> seconds = 510.60 MB/sec
> 120 GB Sandisk from 2017: Timing buffered disk reads: 968 MB in  3.00
> seconds = 322.42 MB/sec
>
>
FYI some other hdparm results in case anyone's interested.

Host Disk Cached Reads Buffered Reads
Phenom965 6T wd red WDC WD60EFRX-68L 3785 147
Phenom965 8T wd red WDC WD80EFAX-68K 3716 190
Phenom965 250G Samsung SSD 840 (sata) 3757 60
FX-8350 nvme 512G Samsung 950 (951?) 4793 1435
FX-8350 1T WDC WD10EARX-00N 3883 118
FX-8350 3T WDC WD30EFRX-68A 4422 111
3900X@2133 3T WDC WD30EFRX-68A 11623 143
3900X@3200 3T WDC WD30EFRX-68A 15225 139
3900X@2133 nvme 512G Samsung 970 EVO PLUS 11904 2858
3900X@3200 nvme 512G Samsung 970 EVO PLUS 15213 3032
i3-6100U INTEL SSDSCKJW12 128G M2 sata 3541 448


  1   2   3   4   5   6   7   8   9   10   >