Re: [gentoo-user] Re: firefox managed by my organization?

2020-03-05 Thread Walter Dnes
On Thu, Mar 05, 2020 at 12:30:51PM +, Michael wrote

> I haven't yet given Palemoon a spin and consequently have no
> experience of it.  How does it compare to FF?  I am curious as to
> security and performance comparisons.

  It's kept updated regularly for security.  See
http://www.palemoon.org/releasenotes.shtml for update info.  "CVE-"
mentions are usually for code inherited from Firefox.  The reason the
version number is "so low" is that update increments tend to be +0.0.1
instead of full integer +1 like Firefox/Chrome.  Major milestones are
where the integer increments occur.  I believe that performance is
roughly the same, but I don't use both, so I don't definitively know.
BTW, Pale Moon is still XUL, versus Firefox Webextensions, so the
respective addons/extensions are incompatible.  Pale Moon stuff is listed
at https://addons.palemoon.org/extensions/

> Would they differ in performance terms on an old AMD powered laptop?

  1st question; how old is the AMD laptop?  Pale Moon requires at least
SSE2-capable cpus.

  2nd question; how old is the AMD laptop?  As per thread
https://forum.palemoon.org/viewtopic.php?f=37=23031 the official
32-bit tarball will no longer be generated as of Nov 2020.  Note that
this will not prevent you from building it yourself in Gentoo or "the
hard way", or "community versions" or whatever.

> What is the recommended way to install in Gentoo?  I noticed
> the palemoon overlay has ebuilds for source and binary options.

  You can go the overlay route to manage it by Gentoo, but remember to
disable system libs.  This will continue to work for 32 and 64-bit.

  Or you can pull down the tarball and extract to your home directory
and point your program launcher to ${HOME}/palemoon/palemoon  The entire
program is contained in ${HOME}/palemoon so it doesn't splatter stuff
all over.  "Uninstalling" consists of "rm -rf ${HOME}/palemoon".  You
can set it to auto-update (64-bit only after November) if you install it
in a directory that you have write-access to.

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



Re: [gentoo-user] swaps mounted randomly

2020-03-05 Thread n952162

On 2020-03-05 18:26, Wols Lists wrote:

On 04/03/20 10:19, n952162 wrote:

Yes, everything mounts when I explicitly say swapon -a. No problems in
/var/log/messages.

I wonder. Is mount order deterministic at boot? Is it possible that
you're trying to activate the swap files before the underlying file
systems are mounted?

Cheers,
Wol



Yes, that's an issue ... there's two swap files.  One is on the root dir
and that one is the only one that came up active when I started the
system this morning.

The other one is on a mounted fs.  Earlier, I'd had it on the following
line to that fs, and as an admittedly feeble attempt, I moved that
swapon to the bottom of the file - who knows if those lines are
processed sequentially.  But it didn't help.

But, the thing is, the swap partition is also not mounted by its fstab
entry.  That wouldn't need an fs to be mounted.





[gentoo-user] Re: CPU speed scaling quirk (Intel; Dell i660)

2020-03-05 Thread Grant Edwards
On 2020-03-05, madscientistatlarge  wrote:

> To reduce problems with emitted Radio Frequency Interference, most
> processors now use a clock that varies in speed over time.  This
> doesn't really reduce the emitted energy, but because it is always
> changing frequency interference with other devices tends to be
> intermittent, and Ideally unnoticeable.  Also the oscillators used
> in computers are not the most precise, they don't need to be and
> precision cost.  The bios may let you toggle this deliberate
> frequency variation and off, which I suppose could be critical in
> some real-time cases, or a varying clock may, in some cases cause
> objectionable interference where as the fixed clock, may not, YMMV.

A clock that varies like that is usually referred to has a
"spread-spectrum" clock.  If properly implimented it has no measurable
effect on software execution (even for real-time cases) because the
variation is done so that the average frequency is "constant" and the
deviation from that average sums to 0 for any significant period of
time (anything over a few hundred microseconds).

The variation of the average over temperature and supply voltage is
usually far more significant.

-- 
Grant Edwards   grant.b.edwardsYow! PIZZA!!
  at   
  gmail.com




Re: [gentoo-user] swaps mounted randomly

2020-03-05 Thread Wols Lists
On 04/03/20 10:19, n952162 wrote:
> Yes, everything mounts when I explicitly say swapon -a.  No problems in
> /var/log/messages.

I wonder. Is mount order deterministic at boot? Is it possible that
you're trying to activate the swap files before the underlying file
systems are mounted?

Cheers,
Wol



Re: [gentoo-user] Migrating chroot to VM

2020-03-05 Thread Mickaël Bucas
Le jeu. 5 mars 2020 à 13:07, Michael  a écrit :
>
> On Thursday, 5 March 2020 09:54:01 GMT Alessandro Barbieri wrote:
> > I want to do a crazy thing. I want to migrate my gentoo installation from a
> > chroot to a VM (both on the same host). The host is debian but I can only
> > use SSH. What do you suggest to do?
>
> There are VMWare applications to convert a physical installation of an OS to a
> VM disk, but since the guest OS is linux, the way I would do it would be:
>
> 1. Create a virtual disk of the desired size.
> 2. Attach a LiveCD to the VM and boot with it.
> 3. Use the LiveCD environment to partition/format/mount the VM disk.
> 4. Use rsync to copy the filesystem contents from the chroot to the VM
> partitions.
> 5. Edit the copied fstab to correspond to the VM disk partition UUIDs and
> potentially reinstall GRUB.
> 6. Unmount the VM disk partitions, shutdown the VM, detatch the LiveCD and
> restart the VM.
>
> You could use partclone instead of rsync, which would retain the same UUIDs
> and filesystems as the chrooted system and therefore simplify the migration.
>
> HTH.

As a chroot is not a complete system, you will also have to do some
more actions inside the VM
- Compile and install a kernel [1], probably with the VMware modules
to get better performance.
- Tell Grub to include that kernel in the list of boot options [2]
- Check that an init system is fully configured, you can choose
between OpenRC or SystemD [3]
- Configure networking inside the VM [4] and in VMware on the host
- Add services like SSH to system start to be able to connect to the VM

As you can see, this will be a mix of a fresh install and a migration
of your chroot. Basically you can read through the Gentoo Handbook to
see what steps are necessary for the VM to boot.
When you copy the chroot files into the VM they will overwrite files
from the Stage3.
I believe the best step to do this is just before the "Installing
tools" chapter, but their may be side effects I don't anticipate...

The good thing about a VM is that if anything goes wrong, you just
trash it and restart !
Tell us how things turn out for you.

Best regards
Mickaël Bucas

[1] https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel
[2] https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader
[3] https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base
[4] https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/System



Re: [gentoo-user] Re: firefox managed by my organization?

2020-03-05 Thread Michael
On Wednesday, 4 March 2020 20:59:53 GMT Walter Dnes wrote:
> On Wed, Mar 04, 2020 at 07:12:35PM +0100, n952162 wrote
> 
> > On 2020-03-04 17:14, Daniel Frey wrote:
> > > It will go away but allowing Firefox to self-update on Gentoo will get
> > > you a very broken Firefox as the ebuilds have gone away from large
> > > monolithic builds to linking to local system libraries. Not recommended!
> > > 
> > > Dan
> > 
> > Ah, good point.  But I should be able to do the same thing from with
> > "preference" somewhere, I suspect.
> 
>   A Pale Moon user here.  We get the same warnings about not building
> Pale Moon with system libs (item 5
> https://forum.palemoon.org/viewtopic.php?f=62=20885 ).  Since PM is a
> Firefox fork, it inherits a lot of the same behaviour.  I notice that
> doing "emerge -pv firefox" shows the following default USE flags...
> 
> system-av1 system-harfbuzz system-icu system-jpeg system-libevent
> system-libvpx system-sqlite system-webp
> 
>   Over-riding them in package.use, that should prevent the problems.

I haven't yet given Palemoon a spin and consequently have no experience of it.  
How does it compare to FF?  I am curious as to security and performance 
comparisons.

What is the recommended way to install in Gentoo?  I noticed the palemoon 
overlay has ebuilds for source and binary options.  Would they differ in 
performance terms on an old AMD powered laptop?

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


Re: [gentoo-user] Migrating chroot to VM

2020-03-05 Thread Michael
On Thursday, 5 March 2020 09:54:01 GMT Alessandro Barbieri wrote:
> I want to do a crazy thing. I want to migrate my gentoo installation from a
> chroot to a VM (both on the same host). The host is debian but I can only
> use SSH. What do you suggest to do?

There are VMWare applications to convert a physical installation of an OS to a 
VM disk, but since the guest OS is linux, the way I would do it would be:

1. Create a virtual disk of the desired size.
2. Attach a LiveCD to the VM and boot with it.
3. Use the LiveCD environment to partition/format/mount the VM disk.
4. Use rsync to copy the filesystem contents from the chroot to the VM 
partitions.
5. Edit the copied fstab to correspond to the VM disk partition UUIDs and 
potentially reinstall GRUB.
6. Unmount the VM disk partitions, shutdown the VM, detatch the LiveCD and 
restart the VM.

You could use partclone instead of rsync, which would retain the same UUIDs 
and filesystems as the chrooted system and therefore simplify the migration.

HTH.


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


Re: [gentoo-user] CPU speed scaling quirk (Intel; Dell i660)

2020-03-05 Thread Michael
On Thursday, 5 March 2020 00:28:21 GMT Walter Dnes wrote:
>   I've cobbled together a script to select cpu governors and speeds.
> One weird thing I've noticed is that reported cpu speed doesn't quite
> match the selected speed.  E.g. on my machine (yours will vary)...
> 
> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
> 
> ...shows avalable speeds...
> 
> 3001000 300 290 280 270 260 250 240 230
> 220 210 200 190 180 170 160
> 
>   ***IMPORTANT*** "userspace" governor must be present.
> 
>   /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq reports speeds
> very close to, but slightly lower than the selected values, and they also
> seem to jump around a bit.  What gives?

My reported CPU frequency is also slightly lower than the values reported in 
'scaling_available_frequencies' and it fluctuates as the load on the CPU 
varies.  I take these values to be rounded upper limits, rather than what the 
CPU will be pegged at.

MoBo firmware plus kernel options seem to control (limit) the CPU frequency.  
I was installing Gentoo on a laptop, using a minimal CD and the CPU thermal 
cut out would kick in every time I tried to install packages shutting down the 
PC.  The frequency at the time reached 3600-3900MHz.  After I completed the 
install by limiting jobs and using an external cooling fan, I booted with my 
own newly configured kernel.  I felt disappointed to notice the frequency 
would never go above 2500, no matter what scaling_governor I used and what max 
frequency I selected.  I also tried using sys-power/cpupower to manipulate 
governors and frequencies, but nothing would change this hard limit of 
2500MHz.

I can't recall what the LiveCD was missing in the kernel/packages - it might 
have been acpi-freq.  This is the current state of affairs: 

$ cpupower frequency-info
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 4.0 us
  hardware limits: 1.40 GHz - 2.50 GHz
  available frequency steps:  2.50 GHz, 2.10 GHz, 1.80 GHz, 1.40 GHz
  available cpufreq governors: ondemand userspace performance schedutil
  current policy: frequency should be within 1.40 GHz and 2.50 GHz.
  The governor "schedutil" may decide which speed to use
  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 1.31 GHz (asserted by call to kernel)
  boost state support:
Supported: yes
Active: yes

Anyway, since I couldn't push it above 2500MHz, I've left it alone running on 
schedutil and it never overheats or cuts out.

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


Re: [gentoo-user] KDE weirdness after upgrade past Sunday.

2020-03-05 Thread Dale
J. Roeleveld wrote:
> On Wednesday, 4 March 2020 14:41:31 CET Dale wrote:
>> Howdy,
>>
>> I did my usual Sunday upgrades the other day. There was a lot of
>> upgrades to plasma and elogind it seems.  Let's add LOo in there as well
>> just for giggles.  Anyway, I have a few oddities going on here.  I'm not
>> quite sure what to make of it but wondering if anyone else has ran into
>> this.
>>
>> First weirdness.  When I lock my screen, CTRL + shift + L.  It locks the
>> screen just fine.  The weird part happens when I poke the mouse or hit a
>> key to wake the screen back up.  Instead of a screen asking for my
>> password with the goofy looking user avatar, I get a black screen with
>> the mouse pointer visible.  The background and the little box for my
>> password, nowhere to be found.  After a bit, I type in the password,
>> blindly, and it sits there for a while and then my desktop comes back. 
>> It takes a while and could be related to other problems coming up.
> I investigated this a bit more and found it has to do with " kde-plasma/
> kscreenlocker ".
> This process was using up 100% CPU (gladly only 1 core) and killing (-9) this 
> cleared the black screen.
>
> Can this also be related to still using consolekit? Do I really need to 
> migrate to "elogind" to be able to unlock my laptop after hibernate?
>
> Many thanks,
>
> Joost
>

I migrated to elogind a few months ago, there's a thread about it too. 
It went well.  No problems.  Still, when something goes wrong with
elogind, I'm trying to figure out how to recognize it. 

The biggest thing I don't like, it being in the boot runlevel.  It
requires me to remember to restart it after a upgrade.  If I forget, I
run into the issues in this thread.  From my understanding tho,
consolekit is leaving the building.  At some point, switching will have
to be done. 

When I was restarting elogind yesterday, I had a process that was taking
up one core as well.  I went back to the boot runlevel, stopped elogind,
killed any straggling processes and then restarted elogind and back to
default runlevel.  So far, everything is working fine.  It could be a
fluke, it could repeat and be a bug of some sort.  I'll know next time,
if I remember to check.  lol

Dale

:-)  :-) 



Re: [gentoo-user] KDE weirdness after upgrade past Sunday.

2020-03-05 Thread Dale
n952162 wrote:
>
> On 2020-03-04 17:16, Dale wrote:
>>
>> So elogind is a pretty good suspect.  One reason I'm asking about this,
>> I'm trying to figure out how elogind fails.  After all, if I'm stuck on
>> a console, I can't use Seamonkey or anything to find help.
>
> You could use w3m 
>
>
>
>

I have fluxbox installed but it wouldn't start.  I'm glad you mentioned
this because I need to either figure out what is broken or find another
backup GUI, that I can start from a console of course. 

Thanks. 

Dale

:-)  :-) 



[gentoo-user] Migrating chroot to VM

2020-03-05 Thread Alessandro Barbieri
I want to do a crazy thing. I want to migrate my gentoo installation from a
chroot to a VM (both on the same host). The host is debian but I can only
use SSH. What do you suggest to do?


[gentoo-user] Firefox display oddity

2020-03-05 Thread Peter Humphrey
Hello list,

This is www-client/firefox-68.5.0. From time to time, when I switch desktops 
to it, FF doesn't show the tab bar. The odd thing about it is that the mouse 
pointer picks up displayed objects as though the tab bar were on display, so I 
have to aim half an inch below what I want to select.

Then, pressing  shows the tab bar, not the menu bar, which remains 
hidden, and the mouse picks up the right objects - until I click something, 
when the tab bar disappears again. I think this is expected behaviour, given 
the misbehaviour.

Recompiling FF seems to be the only way to recover from this.

-- 
Regards,
Peter.






Re: [gentoo-user] KDE weirdness after upgrade past Sunday.

2020-03-05 Thread n952162



On 2020-03-04 17:16, Dale wrote:


So elogind is a pretty good suspect.  One reason I'm asking about this,
I'm trying to figure out how elogind fails.  After all, if I'm stuck on
a console, I can't use Seamonkey or anything to find help.


You could use w3m 





Re: [gentoo-user] Re: KDE weirdness after upgrade past Sunday.

2020-03-05 Thread Peter Humphrey
On Wednesday, 4 March 2020 15:04:01 GMT Nikos Chantziaras wrote:
> On 04/03/2020 15:41, Dale wrote:
> > [a lot of stuff]
> 
> I know you only reboot every other decade, so I have to ask: did you reboot?

When I have a major KDE upgrade, I log out afterwards and, as root, restart 
xdm, then log back in again. I did that this time too, and I haven't noticed 
any problems with KDE.

-- 
Regards,
Peter.