Re: [gentoo-user] Upgrade an old system

2020-12-14 Thread thelma
On 12/14/2020 02:58 PM, Arve Barsnes wrote:
> On Mon, 14 Dec 2020 at 22:20,  wrote:
>> Looking at this directory:
>> https://github.com/gentoo/portage/releases/tag/portage-3.0.12
>>
>> file: portage-portage-3.0.12.tar.gz   has totally different structure
>> If I run: tar xzf portage-portage-3.0.12.tar.gz -C /usr
>> it will create directory /usr/portage-portage-3.0.12
> 
> That is a release of the portage *application*, you need snapshots of
> the portage *tree*.
> 
> I could find some a year old here:
> https://mirrors.sohu.com/gentoo/snapshots/
> 
> You might need to look for even older ones, but worth a try.
> 
> Regards,
> Arve

Moving forward like a snail.
Unmerged portage to local directory and running:
./portage-portage-3.0.12/bin/emerge -1 portage

gives me two blockers:
[blocks B  ] 

Re: [gentoo-user] Upgrade an old system

2020-12-14 Thread thelma
[snip]

emerge --update --oneshot portage

!!! All ebuilds that could satisfy 
">=app-crypt/openpgp-keys-gentoo-release-20180706" have been masked.
!!! One of the following masked packages is required to complete your request:
- app-crypt/openpgp-keys-gentoo-release-20200704::gentoo (masked by: EAPI 7)

The current version of portage supports EAPI '6'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.
(dependency required by 
"sys-apps/portage-2.3.99-r2::gentoo[rsync-verify,-build]" [ebuild])
(dependency required by "portage" [argument])

I don't even have "app-crypt/openpgp-keys-gentoo-release" installed why is it 
complaining? 



Re: [gentoo-user] Upgrade an old system

2020-12-14 Thread thelma
On 12/14/2020 12:52 PM, Arve Barsnes wrote:
> On Mon, 14 Dec 2020 at 20:38,  wrote:
>> but that portage "portage-20090720.tar.bz2" seems old; what is the
>> latest one?
> 
> They're generated every day, so pick your poison. Notice it mentions
> updating the portage tree 3-4 months at a time, so just pick some
> dates at reasonable intervals from your starting point.
> 
> Regards,
> Arve

Looking at this directory:
https://github.com/gentoo/portage/releases/tag/portage-3.0.12

file: portage-portage-3.0.12.tar.gz   has totally different structure
If I run: tar xzf portage-portage-3.0.12.tar.gz -C /usr
it will create directory /usr/portage-portage-3.0.12

emerge --update --oneshot portage
can not fine it as it is looking for /usr/portage



[gentoo-user] Upgrade an old system

2020-12-14 Thread thelma
I'm having similar problem as "n952162" upgrading an old (last updated
1.8-year ago)
It sync OK, updated the profile.

Looking instruction on this page:
https://wiki.gentoo.org/wiki/Upgrading_Gentoo

root #mv /usr/portage /usr/portage.latest
root #tar xjpf /path/to/portage-20090720.tar.bz2 -C /usr
root #emerge --update --oneshot portage

but that portage "portage-20090720.tar.bz2" seems old; what is the
latest one?



Re: [gentoo-user] [SOLVED] fsck.fat 4.1 - File system couldn't be fixed [SOLVED]

2020-12-13 Thread thelma
On 12/13/2020 06:33 AM, Victor Ivanov wrote:
[snip]
> 
> Out of curiosity, do you have the "sys-fs/dosfstools" package installed?
> 
> This is the package that provides the fsck.fat binary. It's not a
> dependency of commonly installed system packages so unless you install
> it manually it's probably missing which might explain why fsck is
> exiting with an error code.
> 
> - Victor

Yes, I had this packaged installed, but it did not help. I got hit by
this bug.  I'm surprised that it hasn't been discovered earlier.




Re: [gentoo-user] Re: grub-install: warning: File system `ext2' doesn't support embedding.

2020-12-13 Thread thelma
On 12/13/2020 09:05 PM, Grant Edwards wrote:
> On 2020-12-14, the...@sys-concept.com  wrote:
> 
>> I removed "vfat" boot partition and created/change it to ext2
>>
>> But now when i try to install grub:
>>
>> grub-install /dev/nvme0n1p2
>> Installing for i386-pc platform.
>> grub-install: warning: File system `ext2' doesn't support embedding.
>> grub-install: warning: Embedding is not possible.  GRUB can only be 
>> installed in this setup by using blocklists.  However, blocklists are 
>> UNRELIABLE and their use is discouraged..
>> grub-install: error: will not proceed with blocklists.
>>
>> Is it something that is going to create problem? 
> 
> If you want to install grub in an ext2 partition, you'll need to use
> the --force option to get grub2 to use blocklists. After you've done
> that, you need to make the critical file immutable so that it can't be
> altered or moved:
> 
>  # chattr +i /boot/grub/i386-pc/core.img
> 
> If you ever need to update grub, you'll have to unlock that file using
> 'chattr -i'.
> 
> --
> Grant

I don't think so. I just tried made typo.
Instead of running:
grub-install /dev/nvme0n1

I did:
grub-install /dev/nvme0n1p2

It install without any errors.

I've not done any installation for some time, a lot had changed.  It is
a good practice as next PC will be a production PC; so I know to stay
away from "vfat" in boot partition.



Re: [gentoo-user] grub-install: warning: File system `ext2' doesn't support embedding.

2020-12-13 Thread thelma
On 12/13/2020 08:28 PM, the...@sys-concept.com wrote:
> On 12/13/2020 08:15 PM, the...@sys-concept.com wrote:
>> I removed "vfat" boot partition and created/change it to ext2
>>
>> But now when i try to install grub:
>>
>> grub-install /dev/nvme0n1p2

Simple mistake it should be:
grub-install /dev/nvme0n1



Re: [gentoo-user] grub-install: warning: File system `ext2' doesn't support embedding.

2020-12-13 Thread thelma
On 12/13/2020 08:15 PM, the...@sys-concept.com wrote:
> I removed "vfat" boot partition and created/change it to ext2
> 
> But now when i try to install grub:
> 
> grub-install /dev/nvme0n1p2
> Installing for i386-pc platform.
> grub-install: warning: File system `ext2' doesn't support embedding.
> grub-install: warning: Embedding is not possible.  GRUB can only be installed 
> in this setup by using blocklists.  However, blocklists are UNRELIABLE and 
> their use is discouraged..
> grub-install: error: will not proceed with blocklists.
> 
> Is it something that is going to create problem? 

After rebooting, the system can not find boot disk.

fstab:
/dev/nvme0n1p2  /boot   ext2noauto,noatime  1 2 
/dev/nvme0n1p4  /   ext4noatime 0 1
/dev/nvme0n1p3  noneswapsw  0 0
 
fdisk -l
/dev/nvme0n1p12048   6143   40962M BIOS boot
/dev/nvme0n1p26144 268287 262144  128M EFI System
/dev/nvme0n1p3  26828813168631048576  512M Linux filesystem
/dev/nvme0n1p4 1316864 3907027119 3905710256  1.8T Linux filesystem

Do I need to go to "vfat" for /boot partition?
Why isn't it working? 



[gentoo-user] grub-install: warning: File system `ext2' doesn't support embedding.

2020-12-13 Thread thelma
I removed "vfat" boot partition and created/change it to ext2

But now when i try to install grub:

grub-install /dev/nvme0n1p2
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible.  GRUB can only be installed 
in this setup by using blocklists.  However, blocklists are UNRELIABLE and 
their use is discouraged..
grub-install: error: will not proceed with blocklists.

Is it something that is going to create problem? 



Re: [gentoo-user] how to control "forcefsck"

2020-12-13 Thread thelma
On 12/13/2020 05:56 PM, the...@sys-concept.com wrote:
> 
> After running in "/" directory:
> touch forcefsck
> 
> The file is gone now, but every time I reboot the system the root
> partition goes into force check:
> 
> fstab:
> /dev/nvme0n1p4/   ext4noatime 0 1
> 

If I'm not mistaken it should be:

tune2fs -c -1 /dev/nvme0n1p4

but why was the setting reset when I run "touch forcefsck"



[gentoo-user] how to control "forcefsck"

2020-12-13 Thread thelma


After running in "/" directory:
touch forcefsck

The file is gone now, but every time I reboot the system the root
partition goes into force check:

fstab:
/dev/nvme0n1p4  /   ext4noatime 0 1



Re: [gentoo-user] nvidia: loading out-of-tree module taints kernel

2020-12-13 Thread thelma
On 12/13/2020 05:48 PM, the...@sys-concept.com wrote:
> I'm loading nvidia via:  /etc/modules-load.d/video.conf
> 
> but when kernel boots, there is a error message: 
> 
> Failed to load nvidia
> 
> dmesg |grep nvidia
>  nvidia: loading out-of-tree module taints kernel.
>  nvidia: module license 'NVIDIA' taints kernel.
>  nvidia-nvlink: Nvlink Core is being initialized, major device number 246
>  nvidia :08:00.0: vgaarb: changed VGA decodes: 
> olddecodes=io+mem,decodes=none:owns=io+mem
>  nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 
>  455.28  Wed Sep 30 00:58:12 UTC 2020
> [drm] [nvidia-drm] [GPU ID 0x0800] Loading driver
> [drm] Initialized nvidia-drm 0.0.0 20160202 for :08:00.0 on minor 0
> nvidia-smi (1442) used greatest stack depth: 12624 bytes left
> caller _nv000708rm+0x1af/0x200 [nvidia] mapping multiple BARs
> 
> Why this error message?  

and yes, I run:
emerge -1 @module-rebuild



[gentoo-user] nvidia: loading out-of-tree module taints kernel

2020-12-13 Thread thelma
I'm loading nvidia via:  /etc/modules-load.d/video.conf

but when kernel boots, there is a error message: 

Failed to load nvidia

dmesg |grep nvidia
 nvidia: loading out-of-tree module taints kernel.
 nvidia: module license 'NVIDIA' taints kernel.
 nvidia-nvlink: Nvlink Core is being initialized, major device number 246
 nvidia :08:00.0: vgaarb: changed VGA decodes: 
olddecodes=io+mem,decodes=none:owns=io+mem
 nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  
455.28  Wed Sep 30 00:58:12 UTC 2020
[drm] [nvidia-drm] [GPU ID 0x0800] Loading driver
[drm] Initialized nvidia-drm 0.0.0 20160202 for :08:00.0 on minor 0
nvidia-smi (1442) used greatest stack depth: 12624 bytes left
caller _nv000708rm+0x1af/0x200 [nvidia] mapping multiple BARs

Why this error message?  



Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"

2020-12-13 Thread thelma
On 12/13/2020 04:33 PM, Neil Bothwick wrote:
> On Sun, 13 Dec 2020 11:52:51 -0700, the...@sys-concept.com wrote:
> 
>> I have "linux-firmware" installed but there is a "?" mark beside it
>>
>> eix linux-firmware
>> [?] sys-kernel/linux-firmware
>> Installed versions:  20201022-r3
>>
> It means the version you have installed is no longer in the tree. You
> should update to the latest.
> 

Something is wrong, I just --sync and reinstall linux-firmware but the output 
is still the same:

eix linux-firmware
[?] sys-kernel/linux-firmware
 Available versions:  20200316^bsd 20200421^bsd 20200519^bsd 20200619^bsd 
20200721^bsd 20200817^bsd 20200918^bsd 20201022-r2^bstd ***l^bstd 
{initramfs +redistributable savedconfig unknown-license}
 Installed versions:  20201022-r3^bst(05:30:05 PM 
12/13/2020)(redistributable -initramfs -savedconfig -unknown-license)
 Homepage:
https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git
 Description: Linux firmware files



Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"

2020-12-13 Thread thelma
On 12/13/2020 04:44 PM, Michael wrote:
> On Sunday, 13 December 2020 18:52:51 GMT the...@sys-concept.com wrote:
>> I have "nouveau" build into kernel  but it doesn't work:
>>
>> Fom dmesg:
>>
>> nouveau :08:00.0: NVIDIA GP107 (137000a1)
>> nouveau :08:00.0: gr: failed to load firmware "gr/sw_nonctx"
>> nouveau :08:00.0: gr: failed to load gr/sw_nonctx
>> nouveau :08:00.0: DRM: failed to create kernel channel, -22
>>
>> grep -i nouveau .config
>> CONFIG_DRM_NOUVEAU=y
>> # CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT is not set
>> CONFIG_NOUVEAU_DEBUG=5
>> CONFIG_NOUVEAU_DEBUG_DEFAULT=3
>> # CONFIG_NOUVEAU_DEBUG_MMU is not set
>> CONFIG_DRM_NOUVEAU_BACKLIGHT=y
> 
> I've never used NVIDIA cards with Gentoo, but in firmware terms you need to 
> specify in your kernel what firmware you want installed in it.  Have a look 
> at 
> this guide:
> 
>  https://wiki.gentoo.org/wiki/Nouveau/en
> 
> and this:
> 
>  https://wiki.gentoo.org/wiki/Linux_firmware
> 
> You'll need to add the firmware the video card asks for here:
> 
> Device Drivers  --->
>   Generic Driver Options  --->
> Firmware loader --->
>-*- Firmware loading facility
>() Build named firmware blobs into the kernel binary  <==
> 
> In this instance your card NVIDIA GP107 should need '/lib/firmware/nvidia/
> gp107', so the respective entry for it in the kernel config ought to be:
> 
> CONFIG_EXTRA_FIRMWARE="nvidia/gp107"
> 
> Someone more clued up on these cards can correct me or add to it.

Thank you, but I've managed to install "nvidia" following:
https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers

What confused me is the output from two kernels:

linux-5.4.80-gentoo-r1
was installed with: genkernel --menuconfig all
and "nouveau" was working OK on that kernel:

grep CONFIG_EXTRA_FIRMWARE ../linux-5.4.80-gentoo-r1/.config  showing:
CONFIG_EXTRA_FIRMWARE=""

The one below was compiled manually:
grep CONFIG_EXTRA_FIRMWARE ../linux-5.4.72-gentoo/.config
CONFIG_EXTRA_FIRMWARE=""

Both had same output, so why one kernel was working the other didn't?




[gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"

2020-12-13 Thread thelma
I have "nouveau" build into kernel  but it doesn't work:

Fom dmesg:

nouveau :08:00.0: NVIDIA GP107 (137000a1)
nouveau :08:00.0: gr: failed to load firmware "gr/sw_nonctx"
nouveau :08:00.0: gr: failed to load gr/sw_nonctx
nouveau :08:00.0: DRM: failed to create kernel channel, -22

grep -i nouveau .config
CONFIG_DRM_NOUVEAU=y
# CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT is not set
CONFIG_NOUVEAU_DEBUG=5
CONFIG_NOUVEAU_DEBUG_DEFAULT=3
# CONFIG_NOUVEAU_DEBUG_MMU is not set
CONFIG_DRM_NOUVEAU_BACKLIGHT=y

I have "linux-firmware" installed but there is a "?" mark beside it

eix linux-firmware
[?] sys-kernel/linux-firmware
Installed versions:  20201022-r3



Re: [gentoo-user] [SOLVED] fsck.fat 4.1 - File system couldn't be fixed [SOLVED]

2020-12-12 Thread thelma
On 12/12/2020 11:00 PM, Victor Ivanov wrote:
> On 13/12/2020 03:07, the...@sys-concept.com wrote:
>> if you have UEFI system most likely your "boot" partition is some form
>> of "vfat"
> 
> I strongly disagree with this statement. Most Linux distributions,
> including Gentoo, advise (or outright default to) having your /boot
> partition either separate, or having /boot as part of your root
> filesystem. And this is very sensible indeed.
> 
> Personally, I would even go further by saying that /boot should be
> journaled (e.g. ext4). Most distros do that by default.
> 
> A UEFI set-up only requires the EFI system partition to be vfat. It does
> not require the kernel or the ramdisk to be on it. GRUB2 can be
> configured to install only its own EFI-related files on the EFI system
> partition, then reading the kernel and the grub config file from your
> /boot partition:
> 
>   # grub-install --efi-directory=/path/to/efi --boot-directory=/boot/efi
> /dev/[nvme...|sd...]
> 
> You do not need CSM enabled for this.
> 
> Unfortunately, sometimes guides put the EFI partition mount point to be
> a directory within the /boot directory (e.g. /boot/efi) which itself can
> be the mount point for the boot partition. This can lead to people
> formatting both as vfat or indeed using the EFI partition itself in lieu
> of a separate /boot partition. I am not suggesting this is what happened
> in your case, but I have seen it happen.
> 
> Now if you use a different boot loader (e.g. rEFInd) it is up to that
> bootloader to have relevant support for the filesystem that your /boot
> partition is using.
> 
>> fsck.fat 4.1 (2017-01-24) open: no such file or directory
>>
>> There is a similar related bug filed about it (but I don't know why is
>> it marked resolved)
>> https://bugs.gentoo.org/306119
> 
> I don't think this issue is related wrt the root cause. But
> force-checking for filesystem errors certainly revealed the issue for
> your case: you don't have the fsck.fat binary in your initramfs. As a
> result, the filesystem checking process fails, the boot process is
> interrupted prematurely, and you're dropped into a shell to investigate.
> This is normal behaviour when an error occurs before the boot process
> switches to the real root.
> 
> One option is to disable filesystem checking for vfat - like you did,
> another is to make sure that the mkfs.fat binary is included in the
> ramdisk image. I am not sure how the latter would be best achieved with
> genkernel, perhaps others can advise on this.
> 
> - Victor

You are absolutely correct. I'm an old timer, before there was no need
for initramfs.
One of my 10-year old system is still running /boot with ext2; never had
a problem.
HD is making noise and they system was running 24/7.  But it is slowly
failing, might be HD or memory.

I was following the Gentoo handbook, maybe I didn't read it correctly
and/or miss the information on alternative setting.  I didn't see any
explanation that I need to have support for "fsck.fat".
I better stay away from any "vfat" format on boot partition, and I don't
see a reason to have initramfs (another complexity).




Re: [gentoo-user] [SOLVED] fsck.fat 4.1 - File system couldn't be fixed [SOLVED]

2020-12-12 Thread thelma


On 12/12/2020 03:40 PM, Neil Bothwick wrote:
> On Fri, 11 Dec 2020 14:36:51 -0700, the...@sys-concept.com wrote:
> 
>> I wipe the /boot, reinstall kernel, initframes, grub.
>> The system boots, I can login as root but X is not running,
>> the command is displaying:  "(none) /#"
>>
>> When I try to start the network I get:
>> fsck.fat 4.1 (2017-01-24) open: no such file or directory
>> Filesystems couldn't be fixed
>> ERROR: fsck failed to start
>>
>> It seems to me "/" file system mount in "read only" mode.
>> When I try to emerge anything I get: /var/log/emerge.log Read-only file
>> system.
> 
> Have you actually booted fully? This looks like the situation when
> mounting root fails and the initramfs drops you to a console? Does mount
> show that you partitions from fstab have mounted?

A lot of folks get hurt over this bug, I'm supersized that nobody
reported it yet that fsck.fat 4.1 has bugs.

Symptoms:
One day you end up with command line login:

(none) login:

Your root file system will be mounted as RO and only way to access your
system is to boot-strap it.

Recompiling anything (emerge -e system) will not help.
The screen output fly by so fast that you need to have a high speed
camera to catch the scrolling line.
What help me is  in "/" running:
touch forcefsck

It will force the system to run a check on all file systems in fstab.
This will slow down the system, so you will notice that error message:

fsck.fat 4.1 (2017-01-24) open: no such file or directory

There is a similar related bug filed about it (but I don't know why is
it marked resolved)
https://bugs.gentoo.org/306119

SOLUTION (workaround):

if you have UEFI system most likely your "boot" partition is some form
of "vfat"
if you have in fstab:

LABEL=boot  /boot   vfatnoauto,noatime  1 2

Change it to:
LABEL=boot  /boot   vfatnoauto,noatime  0 0

The force check of vfat system will skip and your system will boot normally.

My permanent solution will be to go back to old reliable "ext2 as boot".
 Most newer BIOS system have CSM (compatibility support module under
Boot menu) turning it ON will allow the boot partition to be in "ext2",
it will avoid future problems with "fsck.fat"

Running "boot" in ext2 I don't need "initramfs" either.




Re: [gentoo-user] fsck: caught SIGTERM, aborting

2020-12-12 Thread thelma
On 12/12/2020 02:03 PM, the...@sys-concept.com wrote:
> I created empty "forcefsck" file in root (and reboot) to see what happens and 
> I get this:
> 
> /dev/nvme0n1p4 780154/12206080 files (0.2% non-continous), 90753174/488213782 
> blocks 
> fsck.fat 4.1 (2017-01-24)
> Open: No such file or directory
>  * Filesystem couldn't be fixed
>  * rc: Aborting!
>  * * fsck: caught SIGTERM, aborting
> INIT: Entering runlevel: 3 
>  * Checking local filesystems (check forced) ...

I booted from USB and run:

 fsck -fy /dev/nvme0n1p4
fsck from util-linux 2.35.2
e2fsck 1.45.5 (07-Jan-2020)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/nvme0n1p4: 780154/122060800 files (0.2% non-contiguous),
90753174/488213782 blocks


fsck -n /dev/nvme0n1p4
fsck from util-linux 2.35.2
e2fsck 1.45.5 (07-Jan-2020)
/dev/nvme0n1p4: clean, 780154/122060800 files, 90753174/488213782 blocks
(check after next mount)



[gentoo-user] fsck: caught SIGTERM, aborting

2020-12-12 Thread thelma
I created empty "forcefsck" file in root (and reboot) to see what happens and I 
get this:

/dev/nvme0n1p4 780154/12206080 files (0.2% non-continous), 90753174/488213782 
blocks 
fsck.fat 4.1 (2017-01-24)
Open: No such file or directory
 * Filesystem couldn't be fixed
 * rc: Aborting!
 * * fsck: caught SIGTERM, aborting
INIT: Entering runlevel: 3 
 * Checking local filesystems (check forced) ...




Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-12 Thread thelma
On 12/12/2020 12:32 AM, Dan Egli wrote:
> Actually, you have an error or two below.
> 
> On 12/11/2020 6:16 PM, the...@sys-concept.com wrote:
>> No, I did not reformat the /boot partition. I just cd to /boot and run:
>> rm -r *
> Probably better to wipe the file system. But you talk about moving away
> from EFI in another thread, so we'll just say that should this happen
> again, you should wipe with mkfs. instead of just rm -r.
>>
>> Yes, this machine is new but I run it for a over 10-days, configured
>> most of the programs and it was running without much problems.
>> Yesterday, I decided to check some parameters in kernel .config so I run:
>>   genkernel --menuconfig all
>>
> Next time, just do this:
> 
> cd /usr/src/linux
> make menconfig (or nconfig)
> 
>> * Gentoo Linux Genkernel; Version 4.1.2
>> * Using genkernel configuration from '/etc/genkernel.conf' ...
>> * Running with options: --kernel-config=/proc/config.gz all
>>
>> * Working with Linux kernel 5.4.72-gentoo-x86_64 for x86_64
>> * Using kernel config file '/proc/config.gz' ...
>> *
>> * Note: The version above is subject to change (depends on config and
>> status of kernel sources).
>>
>> * kernel: >> Initializing ...
>> * >> Running 'make clean' ...
>> * >> --mrproper is set; Making 'make mrproper' ...
>> * >> Will ignore kernel config from '/proc/config.gz'
>> *    in favor of already existing but different kernel config
>> *    found in '/usr/src/linux/.config' ...
>> *
> So you are wrong below. As you can see above, genkernel IS using
> /usr/src/linux/.config. I'm not 100% certain, but I THINK genkernel will
> compare the config files, and prefer the .config if it is present.
>>   >> Running 'make oldconfig' ...
>> * >> Compiling 5.4.72-gentoo-x86_64 bzImage ...
>>
>>
>> When I exit it it started to compile the kernel (it did not finish) I
>> pressed
>> "CTRL-C" (interrupted).
>> I didn't know then, but running genkernel --menuconfig all
>> takes configuration from:
>> /etc/kernels/kernel-config-5.4.72-gentoo-x86_64
>>
>> not from: /usr/src/linux/.config
> No, unless /etc/kernels/kernel-config- is NEWER than .config,
> and maybe not even then. See above.
>> However, NO FILE HAD CHANGED IN /boot
>> But this this is the moment, I couldn't boot correctly.
> What was the boot error?
>> make && make modules_install
>> make install
>> genkernel --install --kernel-config=/usr/src/linux/.config initramfs
>> grub-install --target=x86_64-efi --efi-directory=/boot
>> grub-mkconfig -o /boot/grub/grub.cfg
>>
>> But nothing had changed. So I tired newer kernel: 5.4.80-gentoo-r1-x86_64
>> But this time I run (without interruptions):
>>   genkernel --menuconfig all
>> grub-mkconfig -o /boot/grub/grub.cfg
>>
>> And again nothing changed, root "/" still mounts "ro"
>>
>> findmnt
>> TARGET    SOURCE FSTYPE   OPTIONS
>> / /dev/nvme0n1p4 ext4 ro,relatime
>>
>> Normally it should be:
>> findmnt
>> TARGET   SOURCE  FSTYPE  OPTIONS
>> /    /dev/sda4   ext4   
>> rw,noatime,data=ordered
> Looks like it's not getting to the root remount stage. The kernel will
> almost always boot in ro mode. So you're probably getting stuck in the
> emergency shell. Can you see your device in /dev?

Yes, I can see /dev/nvme0n1p4 (this is root partition)
brw-rw root disk  /dev/nvme0n1p4

>>> Does dmesg show the drive being recognised, corresponding drivers being
>>> loaded, partitions and filesystems recognised?
>> cat dmesg  |grep error
>> doesn't show any errors

No, no errors in dmesg

>>
> What's the last 10 or so lines from dmesg when it fails to boot and goes
> to what I'm guessing is the emergency shell?
>> I'll try to boot GParted and see what comes up.
> 
> 
> I don't think gparted is your answer. Sounds to me like something is
> causing it to fail in the changeover from your initrd to the actual
> drive. If that's the case I bet your partitions are fine. Can you show
> us the last 10-15 lines printed on the screen before you get stuck?

In dmesg, I see some lines at the end like:

findsf (728) used greatest stack depth: 14048 bytes left
EXT4-fs (nvme0n1p4): mounted filesystem with ordered data mode. Opts: (null)
findsf (728) used greatest stack depth: 13896 bytes left
awk (735)  used greatest stack depth: 13000 bytes left
udevd (682) used greatest stack depth: 13792 bytes left







Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-12 Thread thelma
How to to fix it?  I can bootstrap from USB but what command to run it?

On 12/12/2020 03:59 AM, Tamer Higazi wrote:
> Take systemrescuecd and fix your partitions.
> 
> Let's see what might be the result.
> 
> 
> best, Tamer
> 
> On 12/11/20 10:36 PM, the...@sys-concept.com wrote:
>> I wipe the /boot, reinstall kernel, initframes, grub.
>> The system boots, I can login as root but X is not running,
>> the command is displaying:  "(none) /#"
>>
>> When I try to start the network I get:
>> fsck.fat 4.1 (2017-01-24) open: no such file or directory
>> Filesystems couldn't be fixed
>> ERROR: fsck failed to start
>>
>> It seems to me "/" file system mount in "read only" mode.
>> When I try to emerge anything I get: /var/log/emerge.log Read-only file
>> system.
>>
>>
> 
> 



Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-12 Thread thelma
On 12/12/2020 12:25 PM, Dan Egli wrote:
> Hmmm, looks like a missing or corrupted firmware file is failing to
> load. Observe:
> 
> On 12/12/2020 11:48 AM, the...@sys-concept.com wrote:
>>
>> platform regulatory.0: Direct firmware load for regulatory.db failed
>> with error -2
>> cfg80211: failed to load regulatory.db
>> nvme mvme0: missing or invalid SUBNQN field
>>
> I'd say, off my head, that your regulatory.db file has gotten corrupted.
> I'd suggest booting from a rescue CD, chrooting into your main
> partition, and reinstalling your firmware. It mentions the wireless, of
> course (cfg80211) but also it looks like either the firmware or the
> driver for your nvme system has gotten corrupted. It's obviously
> present, but it's complaining about missing information. You may want to
> go ahead and re-compile the kernel and the modules.If you're using
> genkernel I'd even go so far as to suggest a mrproper. Just to ensure
> that EVERYTHING is cleaned out. Then let genkernel rebuild everything.
> Another option, although one I dislike for _purely ascetic_ reasons,
> would be to just grab the gentoo-kernel-bin package. That's a
> precompiled kernel with a lot of stuff enabled as modules. It could very
> well be helpful in getting your system back on it's feet.

 I took care of this error, it was about cfg80211 enable wireless
support (which I don't have) so I disable it in .config.
But  when I generate initframes I'm getting a warning:

genkernel --install --kernel-config=/usr/src/linux/.config initramfs

* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:
*
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

Which grub file I edit to add support for "rootfstype=ext4" ?



Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-12 Thread thelma
On 12/12/2020 12:32 AM, Dan Egli wrote:
> Actually, you have an error or two below.
> 
> On 12/11/2020 6:16 PM, the...@sys-concept.com wrote:
>> No, I did not reformat the /boot partition. I just cd to /boot and run:
>> rm -r *
> Probably better to wipe the file system. But you talk about moving away
> from EFI in another thread, so we'll just say that should this happen
> again, you should wipe with mkfs. instead of just rm -r.
>>
>> Yes, this machine is new but I run it for a over 10-days, configured
>> most of the programs and it was running without much problems.
>> Yesterday, I decided to check some parameters in kernel .config so I run:
>>   genkernel --menuconfig all
>>
> Next time, just do this:
> 
> cd /usr/src/linux
> make menconfig (or nconfig)
> 
>> * Gentoo Linux Genkernel; Version 4.1.2
>> * Using genkernel configuration from '/etc/genkernel.conf' ...
>> * Running with options: --kernel-config=/proc/config.gz all
>>
>> * Working with Linux kernel 5.4.72-gentoo-x86_64 for x86_64
>> * Using kernel config file '/proc/config.gz' ...
>> *
>> * Note: The version above is subject to change (depends on config and
>> status of kernel sources).
>>
>> * kernel: >> Initializing ...
>> * >> Running 'make clean' ...
>> * >> --mrproper is set; Making 'make mrproper' ...
>> * >> Will ignore kernel config from '/proc/config.gz'
>> *    in favor of already existing but different kernel config
>> *    found in '/usr/src/linux/.config' ...
>> *
> So you are wrong below. As you can see above, genkernel IS using
> /usr/src/linux/.config. I'm not 100% certain, but I THINK genkernel will
> compare the config files, and prefer the .config if it is present.
>>   >> Running 'make oldconfig' ...
>> * >> Compiling 5.4.72-gentoo-x86_64 bzImage ...
>>
>>
>> When I exit it it started to compile the kernel (it did not finish) I
>> pressed
>> "CTRL-C" (interrupted).
>> I didn't know then, but running genkernel --menuconfig all
>> takes configuration from:
>> /etc/kernels/kernel-config-5.4.72-gentoo-x86_64
>>
>> not from: /usr/src/linux/.config
> No, unless /etc/kernels/kernel-config- is NEWER than .config,
> and maybe not even then. See above.
>> However, NO FILE HAD CHANGED IN /boot
>> But this this is the moment, I couldn't boot correctly.
> What was the boot error?
>> make && make modules_install
>> make install
>> genkernel --install --kernel-config=/usr/src/linux/.config initramfs
>> grub-install --target=x86_64-efi --efi-directory=/boot
>> grub-mkconfig -o /boot/grub/grub.cfg
>>
>> But nothing had changed. So I tired newer kernel: 5.4.80-gentoo-r1-x86_64
>> But this time I run (without interruptions):
>>   genkernel --menuconfig all
>> grub-mkconfig -o /boot/grub/grub.cfg
>>
>> And again nothing changed, root "/" still mounts "ro"
>>
>> findmnt
>> TARGET    SOURCE FSTYPE   OPTIONS
>> / /dev/nvme0n1p4 ext4 ro,relatime
>>
>> Normally it should be:
>> findmnt
>> TARGET   SOURCE  FSTYPE  OPTIONS
>> /    /dev/sda4   ext4   
>> rw,noatime,data=ordered
> Looks like it's not getting to the root remount stage. The kernel will
> almost always boot in ro mode. So you're probably getting stuck in the
> emergency shell. Can you see your device in /dev?
>>> Does dmesg show the drive being recognised, corresponding drivers being
>>> loaded, partitions and filesystems recognised?
>> cat dmesg  |grep error
>> doesn't show any errors
>>
> What's the last 10 or so lines from dmesg when it fails to boot and goes
> to what I'm guessing is the emergency shell?
>> I'll try to boot GParted and see what comes up.
> 
> 
> I don't think gparted is your answer. Sounds to me like something is
> causing it to fail in the changeover from your initrd to the actual
> drive. If that's the case I bet your partitions are fine. Can you show
> us the last 10-15 lines printed on the screen before you get stuck?

The last 10-15 lines are not showing much but there is more (I'm
retyping it from the screen) dmesg: (why the line BOOT_IMAGE is Read Only)

Kernel command line: BOOT_IMAGE=/vmlinuz-5.7.72-gentoo
root=UUID=d3229... ro

platform regulatory.0: Direct firmware load for regulatory.db failed
with error -2
cfg80211: failed to load regulatory.db
nvme mvme0: missing or invalid SUBNQN field


usb 3-4: config 1 has an invalid interface number: 2 but nax is 1
usb 3-4: config 1 has no interface number 1






[gentoo-user] UEFI system - installing Grub without EFI

2020-12-11 Thread thelma
I was trying to check VFAT boot partition on my disk with Gparted but it
failed.  Root partition checked OK.

Can I format the VFAT to EXT2 and install grub on it without EFI?

There is a possibility VFAT partition  got damaged.




Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-11 Thread thelma
On 12/11/2020 04:50 PM, Michael wrote:
> On Friday, 11 December 2020 22:29:12 GMT the...@sys-concept.com wrote:
>> On 12/11/2020 03:06 PM, Jack wrote:
>>> On 12/11/20 4:36 PM, the...@sys-concept.com wrote:
 I wipe the /boot, reinstall kernel, initframes, grub.
 The system boots, I can login as root but X is not running,
 the command is displaying:  "(none) /#"

 When I try to start the network I get:
 fsck.fat 4.1 (2017-01-24) open: no such file or directory
 Filesystems couldn't be fixed
 ERROR: fsck failed to start
[snip]
>>>
>>> Are you sure that fsck message has anything to do with starting the
>>> network?  It looks like fsck can't find the open command, so there may
>>> be something more wrong than just a read-only /.
>>
>> I'm using now linux-5.4.72-gentoo, grub only. Install boot loader from
>> scratch.
>> I only use genkernel to install initframes:
>>
>> genkernel --install --kernel-config=/usr/src/linux/.config initramfs
>>
>> No, errors during startup in dmesg.  So I have very little to go by.
>> Trying  "touch 1.txt"
>> Read-only file system.
>>
>> I'm using slim, but I can deal with X later on.
>> Something happen to this system and I can not fix it, it is a brand new
>> installation, but not reliable :-/
> 
> When you "wiped /boot" did you reformat the partition?  If yes, did you 
> recreate a filesystem label with the same name as used in your /etc/fstab?

No, I did not reformat the /boot partition. I just cd to /boot and run:
rm -r *

> Is this a brand new kernel image + initramfs, or a kernel image which you 
> have 
> used at least once before to boot this machine successfully?

Yes, this machine is new but I run it for a over 10-days, configured
most of the programs and it was running without much problems.
Yesterday, I decided to check some parameters in kernel .config so I run:
 genkernel --menuconfig all

* Gentoo Linux Genkernel; Version 4.1.2
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --kernel-config=/proc/config.gz all

* Working with Linux kernel 5.4.72-gentoo-x86_64 for x86_64
* Using kernel config file '/proc/config.gz' ...
*
* Note: The version above is subject to change (depends on config and
status of kernel sources).

* kernel: >> Initializing ...
* >> Running 'make clean' ...
* >> --mrproper is set; Making 'make mrproper' ...
* >> Will ignore kernel config from '/proc/config.gz'
*in favor of already existing but different kernel config
*found in '/usr/src/linux/.config' ...
* >> Running 'make oldconfig' ...
* >> Compiling 5.4.72-gentoo-x86_64 bzImage ...


When I exit it it started to compile the kernel (it did not finish) I
pressed
"CTRL-C" (interrupted).
I didn't know then, but running genkernel --menuconfig all
takes configuration from:
/etc/kernels/kernel-config-5.4.72-gentoo-x86_64

not from: /usr/src/linux/.config

However, NO FILE HAD CHANGED IN /boot
But this this is the moment, I couldn't boot correctly.

So after several tries I wipe the /boot, I downloaded standard kernel
linux-5.4.72-gentoo run as usual:
make && make modules_install
make install
genkernel --install --kernel-config=/usr/src/linux/.config initramfs
grub-install --target=x86_64-efi --efi-directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg

But nothing had changed. So I tired newer kernel: 5.4.80-gentoo-r1-x86_64
But this time I run (without interruptions):
 genkernel --menuconfig all
grub-mkconfig -o /boot/grub/grub.cfg

And again nothing changed, root "/" still mounts "ro"

findmnt
TARGETSOURCE FSTYPE   OPTIONS
/ /dev/nvme0n1p4 ext4 ro,relatime

Normally it should be:
findmnt
TARGET   SOURCE  FSTYPE  OPTIONS
//dev/sda4   ext4rw,noatime,data=ordered

> Does dmesg show the drive being recognised, corresponding drivers being 
> loaded, partitions and filesystems recognised?

cat dmesg  |grep error
doesn't show any errors

> Does syslog show any relevant errors?

Kernel log, nor error entry either.

> Does 'mount' or 'findmnt' show all your partitions?

Yes, they are all "rw" except the "/" partition  /dev/nvme0n1p4

> Are they mounted as rw?
> 
> These are just some steps you could follow to find out at what stage a 
> problem 
> may have occurred and what to check/fix to get it booting successfully.
> 
> PS.  These days there are precompiled kernels + initramfs available to get a 
> system booting quickly, like sys-kernel/gentoo-kernel-bin, before you finesse 
> a slimmer kernel manually later on - should you ever wish to roll your own by 
> hand.

I'll try to boot GParted and see what comes up.




Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-11 Thread thelma
On 12/11/2020 03:06 PM, Jack wrote:
> On 12/11/20 4:36 PM, the...@sys-concept.com wrote:
>> I wipe the /boot, reinstall kernel, initframes, grub.
>> The system boots, I can login as root but X is not running,
>> the command is displaying:  "(none) /#"
>>
>> When I try to start the network I get:
>> fsck.fat 4.1 (2017-01-24) open: no such file or directory
>> Filesystems couldn't be fixed
>> ERROR: fsck failed to start
>>
>> It seems to me "/" file system mount in "read only" mode.
>> When I try to emerge anything I get: /var/log/emerge.log Read-only file
>> system.
> 
> I fell like I'm shooting at a moving target.  Are you using genkernel or
> not?  Are you using grub or rEFInd?  Is there any interesting error in
> dmesg?  Is initframes hopefully just a typo for initramfs?  When
> booting, can you see what the boot  mgr is doing or trying to do?
> 
> You say X is not running -  are you using (or trying to use) a display
> manager?  You might be better off starting without one, and using a
> command line login before adding the complexity of X.
> 
> I'll guess the "none" is the hostname as part of your shell prompt.  You
> can "fix" that by setting a hostname for the PC.
> 
> Are you sure that fsck message has anything to do with starting the
> network?  It looks like fsck can't find the open command, so there may
> be something more wrong than just a read-only /.

I'm using now linux-5.4.72-gentoo, grub only. Install boot loader from
scratch.
I only use genkernel to install initframes:

genkernel --install --kernel-config=/usr/src/linux/.config initramfs

No, errors during startup in dmesg.  So I have very little to go by.
Trying  "touch 1.txt"
Read-only file system.

I'm using slim, but I can deal with X later on.
Something happen to this system and I can not fix it, it is a brand new
installation, but not reliable :-/




[gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-11 Thread thelma
I wipe the /boot, reinstall kernel, initframes, grub.
The system boots, I can login as root but X is not running,
the command is displaying:  "(none) /#"

When I try to start the network I get:
fsck.fat 4.1 (2017-01-24) open: no such file or directory
Filesystems couldn't be fixed
ERROR: fsck failed to start

It seems to me "/" file system mount in "read only" mode.
When I try to emerge anything I get: /var/log/emerge.log Read-only file
system.




Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma
On 12/11/2020 11:39 AM, Michael wrote:
> On Friday, 11 December 2020 18:24:27 GMT the...@sys-concept.com wrote:
>> On 12/11/2020 10:45 AM, Michael wrote:
>>> On Friday, 11 December 2020 16:42:08 GMT tedheadster wrote:
 On Fri, Dec 11, 2020 at 9:27 AM  wrote:
> On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
>> Now, when I boot I get a message:
>>
>> Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
>> root device.
>
> This puzzles me. I cannot find the string "is not a valid root device"
> (or

 sub-strings) in the source code for the Linux kernel, GRUB2, and refind.
 It
 seems to me it should be in one of them.

 - Matthew
>>>
>>> The error is indicative of the kernel driver for the / block device
>>> missing. If it is not built in-the-kernel, but as a module, then it
>>> should be in initramfs.
>>>
>>> Copy the kernel image, System.map, .config and corresponding initramfs to
>>> the /boot partition, then point your boot manager to the kernel to boot
>>> it.
>> How do you copy/generate initramfs in /boot directory?
> 
> https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel
> https://wiki.gentoo.org/wiki/Genkernel
> 
> If you're using genkernel it will copy it to /boot.  Besides the Handbook you 
> may find the following reference material on boot managers/loaders useful:
> 
> For rEFInd see here:
> 
> https://wiki.gentoo.org/wiki/Refind
> 
> For GRUB see here:
> 
> https://wiki.gentoo.org/wiki/GRUB2
> 
> For efibootmgr see here:
> 
> https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/
> Bootloader#Alternative_2:_efibootmgr

After I compile kernel I usually get this message (WHY?):

* You will find the initramfs in '/boot/initramfs-5.4.72-gentoo.img'.

* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:
*
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.



Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma
On 12/11/2020 10:45 AM, Michael wrote:
> On Friday, 11 December 2020 16:42:08 GMT tedheadster wrote:
>> On Fri, Dec 11, 2020 at 9:27 AM  wrote:
>>> On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
 Now, when I boot I get a message:

 Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
 root device.
>>>
>>> This puzzles me. I cannot find the string "is not a valid root device" (or
>>
>> sub-strings) in the source code for the Linux kernel, GRUB2, and refind. It
>> seems to me it should be in one of them.
>>
>> - Matthew
> 
> The error is indicative of the kernel driver for the / block device missing.  
> If it is not built in-the-kernel, but as a module, then it should be in 
> initramfs.
> 
> Copy the kernel image, System.map, .config and corresponding initramfs to the 
> /boot partition, then point your boot manager to the kernel to boot it.

How do you copy/generate initramfs in /boot directory?




Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma
On 12/11/2020 10:45 AM, Michael wrote:
> On Friday, 11 December 2020 16:42:08 GMT tedheadster wrote:
>> On Fri, Dec 11, 2020 at 9:27 AM  wrote:
>>> On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
 Now, when I boot I get a message:

 Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
 root device.
>>>
>>> This puzzles me. I cannot find the string "is not a valid root device" (or
>>
>> sub-strings) in the source code for the Linux kernel, GRUB2, and refind. It
>> seems to me it should be in one of them.
>>
>> - Matthew
> 
> The error is indicative of the kernel driver for the / block device missing.  
> If it is not built in-the-kernel, but as a module, then it should be in 
> initramfs.
> 
> Copy the kernel image, System.map, .config and corresponding initramfs to the 
> /boot partition, then point your boot manager to the kernel to boot it.


 grep -i initramfs .config  (not showing anything)
CONFIG_INITRAMFS_SOURCE=""

After cofiguring kernel, I run:
make && make modules_install
make install
grub-install --target=x86_64-efi --efi-directory=/boot

Installing for x86_64-efi platform.
Installation finished. No error reported.

grub-mkconfig -o /boot/grub/grub.cfg

I'm using kernel:  System.map-5.4.72-gentoo

ll /boot/
total 56547
drwxr-xr-x 4 root root  512 Dec 11 08:23 EFI
-rwxr-xr-x 1 root root  4730365 Dec 11 11:01 System.map-5.4.72-gentoo
-rwxr-xr-x 1 root root  4618921 Dec 11 08:57 System.map-5.4.72-gentoo-x86_64
-rwxr-xr-x 1 root root  4451817 Dec 11 10:16
System.map-5.4.80-gentoo-r1-x86_64
-rwxr-xr-x 1 root root   121805 Dec 11 11:01 config-5.4.72-gentoo
-rwxr-xr-x 1 root root   212517 Dec 11 06:18 config-5.4.72-gentoo-x86_64
-rwxr-xr-x 1 root root   121783 Dec 11 09:48 config-5.4.72-gentoo.old
drwxr-xr-x 5 root root  512 Dec 11 11:11 grub
-rwxr-xr-x 1 root root  3573416 Dec 11 08:59
initramfs-5.4.72-gentoo-x86_64.img
-rwxr-xr-x 1 root root 10521824 Dec 11 10:26
initramfs-5.4.80-gentoo-r1-x86_64.img
-rwxr-xr-x 1 root root  9991040 Dec 11 11:01 vmlinuz-5.4.72-gentoo
-rwxr-xr-x 1 root root  9831296 Dec 11 08:57 vmlinuz-5.4.72-gentoo-x86_64
-rwxr-xr-x 1 root root  9726336 Dec 11 10:17 vmlinuz-5.4.80-gentoo-r1-x86_64

Doesn't matter which kernel I boot, the login is:
"This is (none). unknown domain 
(none) longin:

I can login as user but not as root.
It seems to me it didn't boot correctly.  Don't now what else to try.



[gentoo-user] switching from "refine" to "grub"

2020-12-11 Thread thelma
I use refine as boot loader but it is giving me a problems.
How to switch back to grub 2
And remove any refine files from /boot



Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma
On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
[snip]
>>>
>>> I bootstrap the PC and run:  genkernel --menuconfig all
>>> and finish compiling, and I get a message:
>>> -
>>> * Kernel compiled successfully!
>>> *
>>> * --no-bootloader set; Skipping bootloader update ...
>>> *
>>> * Required kernel parameter:
>>> *
>>> * root=/dev/$ROOT
>>> *
>>> * Where $ROOT is the device node for your root partition as the
>>> * one specified in /etc/fstab
>>> ---
>>>
>>> What went wrong?
>>>
>>> Here is my fstab:
>>> LABEL=boot    /boot    vfat    noauto,noatime    1 2
>>> UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b  /    ext4    noatime   
>>> 0 1
>>> LABEL=swap    none    swap    sw    0 0
> 
> Now, when I boot I get a message:
> 
> Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
> root device.
> 
> I did not change anything in /etc/fstab

blkid /dev/nvme0n1p4
/dev/nvme0n1p4: UUID="d32946b3-2236-4998-80dd-68b7d78e0c7b" BLOCK_SIZE="4096" 
TYPE="ext4" PARTLABEL="rootfs" PARTUUID="17f9927c-a792-41fc-bff3-a50c420ee616"

So why boot can not find "/" partition ???



Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma
On 12/11/2020 03:15 AM, Dan Egli wrote:
> you didn't specify grub2 on the command line or (my preference) in
> /etc/genkernel.conf. So genkernel assumes you don't want it to fix your
> boot loader. If the kernel and ramdisk are all built, you can fix grub's
> config with grub-mkconfig -o /boot/grub/grub.cfg. For future kernel
> builds, read the paramaters in man genkernel so you know how to specify
> the boot loader, or just edit /etc/genkernel.conf and set the bootloader
> from none to grub2.
> 
> On 12/11/2020 12:54 AM, the...@sys-concept.com wrote:
>> My system will not boot.
>>
>> I installed sys-power/acpid  and wanted to double check the kernel
>> configuration.
>> I run: genkernel --menuconfig all
>> The ACPI option was enabled so I exit the menu but it started to
>> compile the kernel so I press CTRL-C (to stop it).
>>
>> Upon rebooting the X will not start no root login, just a screen with
>> login:
>> "joseph (none)"
>>
>> I bootstrap the PC and run:  genkernel --menuconfig all
>> and finish compiling, and I get a message:
>> -
>> * Kernel compiled successfully!
>> *
>> * --no-bootloader set; Skipping bootloader update ...
>> *
>> * Required kernel parameter:
>> *
>> * root=/dev/$ROOT
>> *
>> * Where $ROOT is the device node for your root partition as the
>> * one specified in /etc/fstab
>> ---
>>
>> What went wrong?
>>
>> Here is my fstab:
>> LABEL=boot    /boot    vfat    noauto,noatime    1 2
>> UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b  /    ext4    noatime   
>> 0 1
>> LABEL=swap    none    swap    sw    0 0

Now, when I boot I get a message:

Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
root device.

I did not change anything in /etc/fstab





Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-11 Thread thelma
On 12/11/2020 04:54 AM, tastytea wrote:
> On 2020-12-10 23:56-0700 Grant Taylor
>  wrote:
> 
>> On 12/10/20 9:20 PM, the...@sys-concept.com wrote:
>>> How to prevent PC from shutdown when running when power button is
>>> pressed? Is it a function in a BIOS or OS?  
>>
>> Press and release, in less than four seconds, is the OS.  Four
>> seconds or longer is the BIOS.
>>
>> Try stopping acpid and seeing if that gets you the desired results.
> 
> Nowadays (e)logind handles that. Setting 
>   HandlePowerKey=ignore
> in /etc/elogind/logind.conf should disable that (haven't tested).
> 
> Kind regards, tastytea

Thank, will definitely try it and let you folks know.
But right now, I've managed to break the boot-loader, so this is the
priority.




Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma


On 12/11/2020 03:15 AM, Dan Egli wrote:
> you didn't specify grub2 on the command line or (my preference) in
> /etc/genkernel.conf. So genkernel assumes you don't want it to fix your
> boot loader. If the kernel and ramdisk are all built, you can fix grub's
> config with grub-mkconfig -o /boot/grub/grub.cfg. For future kernel
> builds, read the paramaters in man genkernel so you know how to specify
> the boot loader, or just edit /etc/genkernel.conf and set the bootloader
> from none to grub2.

I am using "refind" (not grub)
With refind, do I need to run any special command to set-up correct kernel.
Here is my tree:  (grub is there, but I'm not using it)
tree -L 3 /boot
/boot
├── EFI
│   ├── gentoo
│   │   └── grubx64.efi
│   ├── refind
│   │   ├── BOOT.CSV
│   │   ├── icons
│   │   ├── keys
│   │   ├── refind.conf
│   │   └── refind_x64.efi
│   └── tools
├── System.map-5.4.72-gentoo-x86_64
├── System.map-5.4.72-gentoo-x86_64.old
├── System.map-5.4.80-gentoo-r1-x86_64
├── System.map-5.4.80-gentoo-r1-x86_64.old
├── config-5.4.72-gentoo
├── initramfs-5.4.72-gentoo-x86_64.img
├── initramfs-5.4.72-gentoo-x86_64.img.old
├── initramfs-5.4.80-gentoo-r1-x86_64.img
├── refind_linux.conf
├── vmlinuz-5.4.72-gentoo-x86_64
├── vmlinuz-5.4.72-gentoo-x86_64.old
├── vmlinuz-5.4.80-gentoo-r1-x86_64
└── vmlinuz-5.4.80-gentoo-r1-x86_64.old



> On 12/11/2020 12:54 AM, the...@sys-concept.com wrote:
>> My system will not boot.
>>
>> I installed sys-power/acpid  and wanted to double check the kernel
>> configuration.
>> I run: genkernel --menuconfig all
>> The ACPI option was enabled so I exit the menu but it started to
>> compile the kernel so I press CTRL-C (to stop it).
>>
>> Upon rebooting the X will not start no root login, just a screen with
>> login:
>> "joseph (none)"
>>
>> I bootstrap the PC and run:  genkernel --menuconfig all
>> and finish compiling, and I get a message:
>> -
>> * Kernel compiled successfully!
>> *
>> * --no-bootloader set; Skipping bootloader update ...
>> *
>> * Required kernel parameter:
>> *
>> * root=/dev/$ROOT
>> *
>> * Where $ROOT is the device node for your root partition as the
>> * one specified in /etc/fstab
>> ---
>>
>> What went wrong?
>>
>> Here is my fstab:
>> LABEL=boot    /boot    vfat    noauto,noatime    1 2
>> UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b  /    ext4    noatime   
>> 0 1
>> LABEL=swap    none    swap    sw    0 0
>>
>>



[gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-10 Thread thelma
My system will not boot.

I installed sys-power/acpid  and wanted to double check the kernel 
configuration.
I run: genkernel --menuconfig all
The ACPI option was enabled so I exit the menu but it started to compile the 
kernel so I press CTRL-C (to stop it).

Upon rebooting the X will not start no root login, just a screen with login:
"joseph (none)" 

I bootstrap the PC and run:  genkernel --menuconfig all 
and finish compiling, and I get a message:
-
* Kernel compiled successfully!
* 
* --no-bootloader set; Skipping bootloader update ...
* 
* Required kernel parameter:
* 
*   root=/dev/$ROOT
* 
* Where $ROOT is the device node for your root partition as the
* one specified in /etc/fstab
---

What went wrong?

Here is my fstab:
LABEL=boot  /boot   vfatnoauto,noatime  1 2
UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b   /   ext4noatime 0 1
LABEL=swap  noneswapsw  0 0




[gentoo-user] preventing PC sutdown by power button when running

2020-12-10 Thread thelma
How to prevent PC from shutdown when running when power button is pressed?
Is it a function in a BIOS or OS?




Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread thelma
On 12/10/2020 03:23 PM, Rich Freeman wrote:
> On Thu, Dec 10, 2020 at 5:08 PM  wrote:
>>
>> So I tried with  setting:
>> home_mailbox = .maildir
>> (no forward "/", so it should be mbox type).
> 
> Ok, your email is a bit confusing so I'm not quite sure what you're
> trying to accomplish.  I'm not sure why you'd want to stick an mbox
> mailbox in a maildir path.
> 
> Let's take this one step at a time and confirm everything is working
> properly before going to the next step.
> 
> Step 1 - Which mailbox standard do you want to use - mbox or maildir?
> The answer to this question should be just one word, but feel free to
> google pros/cons of each.

I'll stick with "mbox" type.

> Step 2 - We'll confirm postfix is configured appropriately for that
> choice and that it is delivering mail to the right place using shell
> commands (cat/etc) and not touch thunderbird.
>
> Step 3 - We'll configure thunderbird to use the appropriate location.
> 
> So, step 1 - which of the two formats do you WANT to use?  mbox or
> maildir?  I don't care how the old host worked.  I don't care how the
> new host is working now.  Which way do you WANT it to work?

I was under impression that dir name shouldn't be a problem as long as
it is the correct type "mbox"
Since postifx main.cf had already
home_mailbox = .maildir
so I use it, instead of defining my own.



Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread thelma
On 12/10/2020 02:33 PM, Rich Freeman wrote:
> On Thu, Dec 10, 2020 at 3:29 PM  wrote:
>>
>> On 12/10/2020 11:58 AM, J. Roeleveld wrote:
>>> Are you in the "mail" group?
>>>
>>
>> That was it. Now I can access the /var/spool/mail from TBird
>> I'm running Posfix and in main.cf I left as default:
>> home_mailbox = .maildir/
>>
>> So all the local mail (from emerge would go to this folder), I tired as
>> root send myself and email: "mailto root" the mail went to my home
>> folder .maildir
>> but TBird can not read it.  It complains:
>>
>> "Unable to locate mail spool file"
>>
> 
> So, two things:
> 
> 1.  Normal users should NOT be in the mail group.  This can read/write
> mail to all users and should be used by your mail delivery daemon.
> 2.  If you're using maildir for email, why are you configuring
> Thunderbird for mbox?
> 
> Background: there are two conventions for delivering mail on unix-like
> systems.  mbox uses one file per user in /var/spool/mail/$username.
> maildir uses one file per message in a directory in ~user/.maildir/new
> (for new messages).
> 
> Generally you need to pick which format you're using in the MUA (the
> thing you use to read your mail) and then the path is set
> automatically 99% of the time.
> 
You are correct. I'm suing mbox with TBird.
I'm trying to do it correctly.  Normally I use TBird on one system and
do backup of the whole folder: .thunderbird/ from one system to another,
except the local mail that is stored in /var/smpool/mail

By default TBird is storing local mail in .thunderbird/ it means I would
be copying local mail from one box to another.
By default postifix default directory for local folder is
home_mailbox = .maildir/
If I comment out that line the mail will be stored in /var/smpool/mail
If I removde the "/" from .maildir it will be mbox type. (this is
according to my notes, am I correct)

So I tried with  setting:
home_mailbox = .maildir
(no forward "/", so it should be mbox type).
I've tired sending test email to root, the mail went out but I couldn't
find it in .maildir
 TBird was configured to look in home .maildir  (this would be ideal
solution, but it doesn't work) I'm doing something wrong.

When I set it for /var/spool/mail everything works.



Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread thelma
On 12/10/2020 11:58 AM, J. Roeleveld wrote:
> On 10 December 2020 19:48:41 CET, the...@sys-concept.com wrote:
>> On 12/10/2020 11:21 AM, Jack wrote:
>>> On 2020.12.10 13:11, the...@sys-concept.com wrote:
 When I try to select /var/spool/mail I get an error:

 The Local Directory path "/var/spool/mail" is invalid. Please pick a
 different directory.

 drwxrwsr-t  2 root  mail 4096 Dec 10 10:56 mail

 Why Thunderbird can not read that directory?
>>> Are you running TBird as root?  Are you sure you don't want one lower
>>> level directory, such as /var/spool/mail/root or something like that?
>>
>> No, I run TBird as user.
>> On my other system the running TBird, as user, I can access
>> /var/spool/mail dir.
>> But on my main system I get an error:
>>
>> The Local Directory path "/var/spool/mail" is invalid. Please pick a
>> different directory.
>>
>> I check directory permission and they look OK.
> 
> Are you in the "mail" group?
> 
> --
> Joost

That was it. Now I can access the /var/spool/mail from TBird
I'm running Posfix and in main.cf I left as default:
home_mailbox = .maildir/

So all the local mail (from emerge would go to this folder), I tired as
root send myself and email: "mailto root" the mail went to my home
folder .maildir
but TBird can not read it.  It complains:

"Unable to locate mail spool file"






Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread thelma
On 12/10/2020 11:21 AM, Jack wrote:
> On 2020.12.10 13:11, the...@sys-concept.com wrote:
>> When I try to select /var/spool/mail I get an error:
>>
>> The Local Directory path "/var/spool/mail" is invalid. Please pick a
>> different directory.
>>
>> drwxrwsr-t  2 root  mail 4096 Dec 10 10:56 mail
>>
>> Why Thunderbird can not read that directory?
> Are you running TBird as root?  Are you sure you don't want one lower
> level directory, such as /var/spool/mail/root or something like that?

No, I run TBird as user.
On my other system the running TBird, as user, I can access
/var/spool/mail dir.
But on my main system I get an error:

The Local Directory path "/var/spool/mail" is invalid. Please pick a
different directory.

I check directory permission and they look OK.



[gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread thelma
When I try to select /var/spool/mail I get an error:

The Local Directory path "/var/spool/mail" is invalid. Please pick a
different directory.

drwxrwsr-t  2 root  mail 4096 Dec 10 10:56 mail

Why Thunderbird can not read that directory?




[gentoo-user] Thunderbird - localmail

2020-12-10 Thread thelma
When I try to read localmail with Thunderbird I get an error:
"The Local Directory path "/var/spool/mail" is invalid. Please pick a
different directory."

I have both directories:
/var/spool/mail/
/var/mail/

It seems like they are the same, same file sizes same files.
I imported all Thunderbird mail from another box. Do I need to delete
local mail account and setup a new one?



Re: [gentoo-user] Scanning double sided documents and printing them the same.

2020-12-09 Thread thelma
On 12/09/2020 05:46 PM, the...@sys-concept.com wrote:
> On 12/09/2020 05:09 PM, Dale wrote:
>> Howdy,
>>
>> I have a flatbed scanner.  It's a old HP 4570.  I been using Skanlite to
>> scan pictures etc and it does a great job.  On occasion tho I have a
>> double sided document.  I know how to scan them, scan one side, flip
>> over and scan the back.  That's easy enough.  How do I print them the
>> same way tho?  Sometimes I use it like a copying machine basically. 
>> Scan in, then print.  I'm not quite sure how to print the double sided
>> stuff in one go tho. 
>>
>> If someone does the same as me, can you share how you print them two
>> sided?  My printer is duplex so I just need to import both sides and
>> tell it to print.  I'm just not sure what software does that and makes
>> it easy.
>>
>> Thoughts??
>>
>> Dale
>>
>> :_)  :-) 
>>
> 
> Do you use XSane  to scan it?  You setup the printer in Setup menu under
> "Copy" and scan in duplex mode.  If you printer is setup by default to
> print duplex it will print it correctly, in duplex.  If not you will get
> two pages, it prints directly to a printer (the print windows doesn't
> pop-up).
> 
> I suggest to scan it first to a document and print it in duplex.

Correction. You have mentioned it is a flatbed scanner so you can not
scan in duplex mode.  Just create "multipage document" scan both sides,
save it and you should be able to print it in duplex mode.  I mostly use
PDF format for documents.




Re: [gentoo-user] Scanning double sided documents and printing them the same.

2020-12-09 Thread thelma
On 12/09/2020 05:09 PM, Dale wrote:
> Howdy,
> 
> I have a flatbed scanner.  It's a old HP 4570.  I been using Skanlite to
> scan pictures etc and it does a great job.  On occasion tho I have a
> double sided document.  I know how to scan them, scan one side, flip
> over and scan the back.  That's easy enough.  How do I print them the
> same way tho?  Sometimes I use it like a copying machine basically. 
> Scan in, then print.  I'm not quite sure how to print the double sided
> stuff in one go tho. 
> 
> If someone does the same as me, can you share how you print them two
> sided?  My printer is duplex so I just need to import both sides and
> tell it to print.  I'm just not sure what software does that and makes
> it easy.
> 
> Thoughts??
> 
> Dale
> 
> :_)  :-) 
> 

Do you use XSane  to scan it?  You setup the printer in Setup menu under
"Copy" and scan in duplex mode.  If you printer is setup by default to
print duplex it will print it correctly, in duplex.  If not you will get
two pages, it prints directly to a printer (the print windows doesn't
pop-up).

I suggest to scan it first to a document and print it in duplex.



Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
On 12/08/2020 05:25 PM, Steve Wilson wrote:
> 
> On 09/12/2020 00:01, Grant Taylor wrote:
>> On 12/8/20 4:44 PM, Steve Wilson wrote:
>>> I use this as the first step to limit ssh access to one of my
>>> servers: `iptables -A INPUT -p tcp -m tcp --dport 22 -m geoip !
>>> --src-cc GB -m comment --comment "Drop SSH from outside GB" -j DROP`
>>
>> Has the geoip match extension been updated to take into account
>> MaxMind discontinuing their GeoLite database and the need to support
>> GeoLite2?
>>
> The xt_geoip_dl script grabs a csv from
> https://db-ip.com/db/download/ip-to-country-lite. I imagine there's a
> method for dealing with maxmind's new version and converting to csv if
> they don't already provide one for the paid service.
> 
> Steve

Steve, suggested a good alternative database of IP's with two letter
country beside them.  It can be sorted by country in a spreadsheet. This
16MB file would seem like an ideal solution; but checking is it is
missing 212.114.17 number I've checked earlier from the other source.
The number 212.114.16 correctly identified as "FR" (France).

deny from 212.114.16.0/24
deny from 212.114.17.0/24

The dbip-country-lite-2020-12.csv lists:
212.114.10.0212.114.15.255  RU
212.114.16.0212.114.31.255  FR
212.114.32.0212.114.49.39   DE

In addition all numbers 2.61.192.0 is missing as well.




Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
On 12/08/2020 08:50 PM, the...@sys-concept.com wrote:
[snip]
> Creating ACL based on those internet sources eg.
>  https://www.countryipblocks.net/acl.php
> is not reliable.  I pulled a list of Russian and Ukrainian IPs from the
> above link and checking some of them, I found these two (and possibly
> more) are French IPs:
> 
> deny from 212.114.16.0/24
> deny from 212.114.17.0/24
> 
> If "geoip" database is based on similar sources the hole project is not
> a reliable control method.

I'll write a script to check, all the IP's from at text file with
"whois" and write the output out to another file, just to be sure.  I
don't know how long will it take, the file contains 26611-entries (IP
addresses).

You might be correct, Grant.  Putting the IP's in apache .config file
could be more efficient, instead of .htaccess file.



Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
On 12/08/2020 05:25 PM, Steve Wilson wrote:
> 
> On 09/12/2020 00:01, Grant Taylor wrote:
>> On 12/8/20 4:44 PM, Steve Wilson wrote:
>>> I use this as the first step to limit ssh access to one of my
>>> servers: `iptables -A INPUT -p tcp -m tcp --dport 22 -m geoip !
>>> --src-cc GB -m comment --comment "Drop SSH from outside GB" -j DROP`
>>
>> Has the geoip match extension been updated to take into account
>> MaxMind discontinuing their GeoLite database and the need to support
>> GeoLite2?
>>
> The xt_geoip_dl script grabs a csv from
> https://db-ip.com/db/download/ip-to-country-lite. I imagine there's a
> method for dealing with maxmind's new version and converting to csv if
> they don't already provide one for the paid service.
> 
> Steve

Creating ACL based on those internet sources eg.
 https://www.countryipblocks.net/acl.php
is not reliable.  I pulled a list of Russian and Ukrainian IPs from the
above link and checking some of them, I found these two (and possibly
more) are French IPs:

deny from 212.114.16.0/24
deny from 212.114.17.0/24

If "geoip" database is based on similar sources the hole project is not
a reliable control method.



Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
On 12/08/2020 05:25 PM, Steve Wilson wrote:
> 
> On 09/12/2020 00:01, Grant Taylor wrote:
>> On 12/8/20 4:44 PM, Steve Wilson wrote:
>>> I use this as the first step to limit ssh access to one of my
>>> servers: `iptables -A INPUT -p tcp -m tcp --dport 22 -m geoip !
>>> --src-cc GB -m comment --comment "Drop SSH from outside GB" -j DROP`
>>
>> Has the geoip match extension been updated to take into account
>> MaxMind discontinuing their GeoLite database and the need to support
>> GeoLite2?
>>
> The xt_geoip_dl script grabs a csv from
> https://db-ip.com/db/download/ip-to-country-lite. I imagine there's a
> method for dealing with maxmind's new version and converting to csv if
> they don't already provide one for the paid service.
> 
> Steve

Thanks.
The dbip-country-lite-2020-12.csv is 16MB (file) though, it includes all
the countries.
The country I want to ban file is only 697kB
so it might be easier to for apache, am I correct?

Either way, the apache would have to access the database where all the
codes are stored or .htaccess file.   Or is it easier if I incorporate
the IP addressed into main .config file (in apache)?




Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
On 12/08/2020 03:55 PM, the...@sys-concept.com wrote:
> What are my options apache blocking access based on country?
> So fare I run onto something "geoip" or ACL (long list of IP's provided by 
> eg:)
> https://www.ip2location.com/free/visitor-blocker
> 
> We geoip I think I will need to install some module for apache (apache 2.2).  
> It is using geoip.dat so it must be a long list of as well.  But they are not 
> offering any free version. 
> wget 
> http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
>  (doesn't work)


Just access to the web-page that is hosted by apache.
Looking at the IP addresses generated by some of those links, the
document is 10-pages long.



[gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
What are my options apache blocking access based on country?
So fare I run onto something "geoip" or ACL (long list of IP's provided by eg:)
https://www.ip2location.com/free/visitor-blocker

We geoip I think I will need to install some module for apache (apache 2.2).  
It is using geoip.dat so it must be a long list of as well.  But they are not 
offering any free version. 
wget 
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz 
(doesn't work)

-- 
Thelma




Re: [gentoo-user] askterisk 11.25.3-r1 masked

2020-12-06 Thread thelma
On 12/06/2020 03:00 PM, Daniel Pielmeier wrote:
> Am December 6, 2020 9:23:07 PM UTC schrieb the...@sys-concept.com:
>> I'm looking at the output of "equery y asterisk"
>> and it shows asterisk-11.25.3-r1 is masked
>> and https://packages.gentoo.org/packages/net-misc/asterisk show as
>> stable  (amd64)
>>
>> Why is it masked on my system?
> 
> It is masked on every system! As the mask says users should upgrade to newer 
> versions!
> 
> I guess https://packages.gentoo.org does not consider packages masked by 
> profiles. You can give your feedback about it here: 
> https://packages.gentoo.org/about/feedback

Upgrade is not a problem, re-writing / debugging the extconfig.conf
(dial plan) is; it takes time.





Re: [gentoo-user] askterisk 11.25.3-r1 masked

2020-12-06 Thread thelma
On 12/06/2020 02:34 PM, Michael Cook wrote:
> On 12/6/20 4:23 PM, the...@sys-concept.com wrote:
>> I'm looking at the output of "equery y asterisk"
>> and it shows asterisk-11.25.3-r1 is masked
>> and https://packages.gentoo.org/packages/net-misc/asterisk show as
>> stable  (amd64)
>>
>> Why is it masked on my system?
>>
> 
> It's EOL

Trying to emerge it, without unmasking anything, it just gives me slot conflict.
 
emerge -avq =net-misc/asterisk-11.25.3-r1
[ebuild  N] acct-group/asterisk-0 
[ebuild  N] net-misc/asterisk-core-sounds-1.6.1-r1  USE="gsm -alaw -g722 
-g729 -siren14 -siren7 -sln16 -ulaw -wav" L10N="-en-AU -en-GB -es -fr -it -ja 
-ru -sv" 
[ebuild  N] net-misc/asterisk-extra-sounds-1.5.2  USE="gsm -alaw -g722 
-g729 -siren14 -siren7 -sln16 -ulaw -wav" L10N="-en-GB -fr" 
[ebuild  N] net-misc/asterisk-moh-opsound-2.03-r1  USE="gsm -alaw -g722 
-g729 -siren14 -siren7 -sln16 -ulaw -wav" 
[ebuild  N] acct-group/dialout-0 
[ebuild  N] acct-user/asterisk-0 
[ebuild UD] dev-libs/openssl-1.0.2u [1.1.1g] USE="asm bindist sslv3* 
tls-heartbeat* zlib -gmp% -kerberos% -rfc3779 -sctp -sslv2% -static-libs -test 
-vanilla" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="(sse2)" 
[ebuild  N] net-misc/asterisk-11.25.3-r1  USE="alsa bluetooth caps iconv 
samples vorbis -calendar -cluster -curl -dahdi -debug -doc -freetds -gtalk 
-http -ilbc -ldap -libedit -libressl -lua -mysql -newt -odbc -oss -portaudio 
-postgres -radius (-selinux) -snmp -span -speex -srtp -static -syslog -xmpp" 
VOICEMAIL_STORAGE="file -imap -odbc" 

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-libs/openssl:0

This might be the reason, it it masked in my portage tree because of 
dev-libs/openssl-1.1.1g



[gentoo-user] askterisk 11.25.3-r1 masked

2020-12-06 Thread thelma
I'm looking at the output of "equery y asterisk"
and it shows asterisk-11.25.3-r1 is masked
and https://packages.gentoo.org/packages/net-misc/asterisk show as
stable  (amd64)

Why is it masked on my system?

-- 
Thelma



Re: [gentoo-user][SOLVED] "Print to File" US letter size (default)

2020-12-06 Thread thelma
On 12/06/2020 05:29 AM, k...@aspodata.se wrote:
> Thelma:
>> Is there a use flag or setting in make.conf to instruct all up to
>> default to "US Letter" size paper.
> ...
> 
> Try and see if this helps:
> 
>  man papersize
> 
> Regards,
> /Karl Hammar

I've done this one, but it didn't help.  I have few notes as to what to
change eg:

--
/usr/share/texmf-dist/dvips/config/config.ps (new system)
This has to be on the top, before other letter formats (the first one is
default)
...
@ letter 8.5in 11in
@+ ! %%DocumentPaperSizes: Letter
@+ %%BeginPaperSize: Letter
@+ /setpagedevice where
@+  { pop << /PageSize [612 792] >> setpagedevice }
@+  { /letter where { pop letter } if }
@+ ifelse
@+ %%EndPaperSize
...

--
/etc/papersize

letter

--
/etc/xpdfrc

psPaperSize letter

---

What solved the problem is:  (I must have miss this part during
installation)

eselect locale set # (select to: en_US.utf8 )
env-update && source /etc/profile
(log-out, log-in)




Re: [gentoo-user] [SOLVED] glabels not showing GNU Barcode

2020-12-05 Thread thelma
On 12/05/2020 02:31 PM, k...@aspodata.se wrote:
> Thelma:
> ...
>> https://packages.gentoo.org/packages/app-office/glabels
>>
>> It seems that version 3.99 is available upstream, while the latest
>> version in the Gentoo tree is 3.4.1.
> 
> There is two glabels, the "old" 3-series, and the newer "qt"
> 4-series, you can get them with:
> 
> git clone https://github.com/jimevins/glabels.git
> git clone https://github.com/jimevins/glabels-qt.git
> 
> ///
> 
> BTW, reading
>  glabels-qt/docs/BUILD-INSTRUCTIONS-LINUX.md 
> I see the following excerp:
> 
>  <<
> As of version 0.99, GNU Barcode no longer installs its library.  So install 
> 0.98 from source:
> ```
> wget https://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz
> tar xzf barcode-0.98.tar.gz
> cd barcode-0.98/
> ./configure && make
> sudo make install
> ```
>  >>
> 
> Doing just that and then reemerging glabels, gives me the missing gnu 
> barcode backend.
> 
> Regards,
> /Karl Hammar

IT WORKED!

I created local overlay manifest the barcode-0.98-r1.ebuild  (get it
from gentoo "attic" )
emerged =app-text/barcode-0.98-r1
but it is missing something as there is a "?" beside installed version
Don't know why?

eix barcode shows:

[I] app-text/barcode
 Available versions:  0.98-r1 ~0.99
 Installed versions:  0.98-r1[?](06:45:36 PM 12/05/2020)
 Homepage:https://www.gnu.org/software/barcode/
 Description: barcode generator

re-emerged "app-office/glabels"
and the GNU barcode show up.



Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread thelma


On 12/05/2020 12:33 PM, k...@aspodata.se wrote:
> Thelma:
>> On 12/05/2020 09:58 AM, k...@aspodata.se wrote:
[snip]

>>>  possible also as root
>>> ldconfig
>>>
>>>  And then reinstalling glabels
>>
>> Running "ldconfig" didn't help.
> 
> Strange, worked like a charm here.
> It has a lot of styles, do you want help making it work ?
> 
>>> There is also the iec16022 package,
> ...
>> I'll try the second solution if I have a change.  Thanks for the input.
> 
> Note that the iec16022 package only has one choise, just like QREncode.
> 
> Regards,
> /Karl Hammar

https://packages.gentoo.org/packages/app-office/glabels

It seems that version 3.99 is available upstream, while the latest
version in the Gentoo tree is 3.4.1.





Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread thelma
On 12/05/2020 12:33 PM, k...@aspodata.se wrote:
> Thelma:
>> On 12/05/2020 09:58 AM, k...@aspodata.se wrote:
>>> Karl:
> ...
>>> Instead of barcode you could try out zint:
>>>
>>> git clone https://git.code.sf.net/p/zint/code zint-code
>>> cd zint-code
>>> git co ade31c41fba14b942cca30a4a605e48517613d25
>>> mkdir build
>>> cd build
>>> cmake ..
>>> make
>>> make install
>>>
>>> Note:
>>>  Since ZBarcode_Render was removed in
>>>  commit f9d969cdd66984906719c87ed486909a673decec
>>>  you have to check out an earlier commit e.g. the one
>>>  I used above.
>>>
>>>  possible also as root>>> ldconfig
>>>
>>>  And then reinstalling glabels
>>
>> Running "ldconfig" didn't help.
> 
> Strange, worked like a charm here.
> It has a lot of styles, do you want help making it work ?
> 
>>> There is also the iec16022 package,
> ...
>> I'll try the second solution if I have a change.  Thanks for the input.
> 
> Note that the iec16022 package only has one choise, just like QREncode.
> 
> Regards,
> /Karl Hammar

I run as root:  ldconfig
(no output)

Re-emerge glabels and barcode
but, there is still "? mark

eix app-text/barcode
[?] app-text/barcode
 Available versions:  0.98-r1 ~0.99
 Installed versions:  0.99(01:54:54 PM 12/05/2020)
 Homepage:https://www.gnu.org/software/barcode/
 Description: barcode generator




Re: [gentoo-user]

2020-12-05 Thread thelma
On 12/05/2020 09:58 AM, k...@aspodata.se wrote:
> Karl:
>> Thelma:
>>> I have app-office/glabels installed with (barcode -eds)
>>> but the style menus is not showing "GNU Barcode
>>>
>>> Is it a bug?
>>
>> app-text/barcode doesn't provide the lib needed, see below.
> 
> Instead of barcode you could try out zint:
> 
> git clone https://git.code.sf.net/p/zint/code zint-code
> cd zint-code
> git co ade31c41fba14b942cca30a4a605e48517613d25
> mkdir build
> cd build
> cmake ..
> make
> make install
> 
> Note:
>  Since ZBarcode_Render was removed in
>  commit f9d969cdd66984906719c87ed486909a673decec
>  you have to check out an earlier commit e.g. the one
>  I used above.
> 
>  possible also as root
> ldconfig
> 
>  And then reinstalling glabels

Running "ldconfig" didn't help.

> 
> emerge -aqv app-office/glabels
> 
> ///
> 
> There is also the iec16022 package,
> 
> wget 
> https://archive.kernel.org/debian-archive/debian/pool/main/i/iec16022/iec16022_0.2.4.orig.tar.gz
> tar zxf iec16022_0.2.4.orig.tar.gz
> cd iec16022_0.2.4
> ./configure
> make
> make install
> 
> and then reemerge glabels.
> 
> Regards,
> /Karl Hammar

I'll try the second solution if I have a change.  Thanks for the input.



Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread thelma
On 12/05/2020 12:35 AM, the...@sys-concept.com wrote:
> I have app-office/glabels installed with (barcode -eds)
> but the style menus is not showing "GNU Barcode
> 
> Is it a bug?

The only difference after installation I've notice question mark in a
bracket, instead of "I"

eix app-text/barcode
[?] app-text/barcode

Normally, after compiling it shows [I]

The package compiled without any errors.




[gentoo-user] glabels not showing GNU Barcode

2020-12-04 Thread thelma
I have app-office/glabels installed with (barcode -eds)
but the style menus is not showing "GNU Barcode

Is it a bug?

-- 
Thelma



[gentoo-user] "Print to File" US letter size (default)

2020-12-04 Thread thelma
Is there a use flag or setting in make.conf to instruct all up to
default to "US Letter" size paper.

Changing the defaults is not easy on gentoo.  I have some notes but the
configuration files and setting keep changing so hunting all the config
files is time taking.

When the Print windows pops-up there is an option "Print to File"
How to change setting to default to US Letter size paper (the default is A4)

-- 
Thelma



Re: [gentoo-user] Re: Questions on attempt at first install.

2020-12-04 Thread thelma
On 12/04/2020 11:28 AM, Diagon wrote:
> One more:
> 
> Using genkernel, is there a way to make sure a module is included in the 
> initramfs?
> 
> /D
> 
>  
> 
>  > Could someone clarify for me what `genkernel --menuconfig` is doing?  
>  > 
>  > Is it equivalent to a manual kernel config, only saving me the `make` && 
> `make install`?
>  > 
>  > Or is it setting what `genkernel all` would set, and letting you modify 
> that?
>  > 
>  > Do I run it as `genkernel --menuconfig all` ?  As `genkernel --btrfs 
> --menuconfig all` ?
>  > 
>  > If I run `lsmod`, I see btrfs, but I also see that btrfs depends on: xor, 
> zstd_{de,}compress, xxhash, lzo_compress, zlib_defalte, raid6_pq, and each of 
> those may have their own dependencies.  
>  > 
>  > Do I need that whole chain for the kernel?
>  > 
>  > Thanks in advance!
>  > /D

I would like to know too.
I don't know specifically what "genkernel --menuconfig all" does but I
ended up redoing it, correcting some configuration.

In addition when I was redoing the "genkernel --menuconfig all" it
copied current (working) kernel in /boot/ to kernel-old and installs a
new one.
The new one boots OK.  The old kernel should work as well, but it doesn't.
So I would like to get to the bottom of it.

What is being installed in initramfs?



Re: [gentoo-user] [SOLVED] Another apache 2.4 - Forbidden: You don't have permission to access this resource.

2020-12-03 Thread thelma
On 12/03/2020 03:42 AM, Michael wrote:
> On Thursday, 3 December 2020 04:09:15 GMT the...@sys-concept.com wrote:
>> When I try to configure sql-ledger, /localhost/sql-ledger/index.html
>> I get an error:  Forbidden: You don't have permission to access this
>> resource.
>>
>> Apache starts normally but there is an entry in /var/logs/apache/error_log 
>> (how to make it go way)
>>
>> [:notice] [pid 5015] ModSecurity for Apache/2.9.3
>> (http://www.modsecurity.org/) configured. [:notice] [pid 5015] ModSecurity:
>> APR compiled version="1.7.0"; loaded version="1.7.0" [:notice] [pid 5015]
>> ModSecurity: PCRE compiled version="8.44 "; loaded version="8.44
>> 2020-02-12" [:notice] [pid 5015] ModSecurity: LIBXML compiled
>> version="2.9.10" [:notice] [pid 5015] ModSecurity: Status engine is
>> currently disabled, enable it by set SecStatusEngine to On.
>> [mpm_prefork:notice] [pid 5016] AH00163: Apache/2.4.46 (Unix)
>> OpenSSL/1.1.1g PHP/7.4.11 configured -- resuming normal operations Wed Dec
>> 02 20:38:26.746392 2020] [core:notice] [pid 5016] AH00094: Command line:
>> '/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D
>> LANGUAGE -D PHP -D SECURITY -d /usr/lib64/apache2 -f
>> /etc/apache2/httpd.conf' [authz_core:error] [pid 4900] [client ::1:46226]
>> AH01630: client denied by server configuration:
>> /usr/local/sql-ledger/index.html
>>
>>
>> The above error log entry has nothing to with the below configuration except
>> the last line: [authz_core:error] [pid 4900] [client ::1:46226] AH01630:
>> client denied by server configuration: /usr/local/sql-ledger/index.html
>>
>> My sql-ledger_apache.config  2.4 config
>>
>> Alias /sql-ledger /usr/local/sql-ledger/
>> 
>>   AllowOverride All
>>   AddHandler cgi-script .pl
>>   AddDefaultCharset On
>>   Options ExecCGI Includes FollowSymlinks
>>   Require ip 10.0.0.109
>> 
>>
>> 
>>   Require all denied
>> 
>>
>> All the configuration entries are in main server (not in .htaccess)
> 
> In the first instance try adding double quotes for all paths, e.g.
> 
> Alias "/sql-ledger" "/usr/local/sql-ledger/"
> Directory "/usr/local/sql-ledger">
> ...
> 
> and so on.  Then restart the server.

Thanks Michael, the correct setting is:

Alias /sql-ledger /usr/local/sql-ledger/
AddHandler cgi-script .pl


  Options ExecCGI Includes FollowSymlinks
  AllowOverride all
  Require all granted



  AllowOverride none
  Require all denied


But it wasn't my only problem, the old sql-ledger-2.8.35  was not
compatible with the newer software; the solution was to upgrade to newer
sql-ledger-3.2.9 that run with current postgresql-12
But this version of sql-ledger-3.2.9  has a bugs.
The backup script doesn't work correctly.  It works with one database
but, with another database when trying to back it up it  gave an error
(the backup doesn't work):
(The backup worked correctly on sql-ledger-2.8.35)

"Wide character in print at line 2060" and CPU goes 100%

The solution (fix, courtesy of my daughter) is to make a change in the
file:
sql-ledger/SL/AM.pm

(line #2040   add after "my $fields;" line:
 my $myString;

(line #2059   after:
  $fields .= join ',', map { $dbh->quote($_) } @arr;
  $fields .= ")";

-- replace  
print OUT qq|$query $fields;\n|;
}
-- end replace --

  with --
  $myString = qq|$query $fields;\n|;
  $myString =~ s/[^\x00-\x7f]//g;
  print OUT $myString;
}
--- end with --

Hope, it will save somebody hours of trying to troubleshoot this error.



[gentoo-user] Another apache 2.4 - Forbidden: You don't have permission to access this resource.

2020-12-02 Thread thelma
When I try to configure sql-ledger, /localhost/sql-ledger/index.html 
I get an error:  Forbidden: You don't have permission to access this resource.

Apache starts normally but there is an entry in /var/logs/apache/error_log  
(how to make it go way)

[:notice] [pid 5015] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) 
configured.
[:notice] [pid 5015] ModSecurity: APR compiled version="1.7.0"; loaded 
version="1.7.0"
[:notice] [pid 5015] ModSecurity: PCRE compiled version="8.44 "; loaded 
version="8.44 2020-02-12"
[:notice] [pid 5015] ModSecurity: LIBXML compiled version="2.9.10"
[:notice] [pid 5015] ModSecurity: Status engine is currently disabled, enable 
it by set SecStatusEngine to On.
[mpm_prefork:notice] [pid 5016] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.1.1g 
PHP/7.4.11 configured -- resuming normal operations
Wed Dec 02 20:38:26.746392 2020] [core:notice] [pid 5016] AH00094: Command 
line: '/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST 
-D LANGUAGE -D PHP -D SECURITY -d /usr/lib64/apache2 -f /etc/apache2/httpd.conf'
[authz_core:error] [pid 4900] [client ::1:46226] AH01630: client denied by 
server configuration: /usr/local/sql-ledger/index.html


The above error log entry has nothing to with the below configuration except 
the last line:
[authz_core:error] [pid 4900] [client ::1:46226] AH01630: client denied by 
server configuration: /usr/local/sql-ledger/index.html

My sql-ledger_apache.config  2.4 config

Alias /sql-ledger /usr/local/sql-ledger/

  AllowOverride All
  AddHandler cgi-script .pl
  AddDefaultCharset On
  Options ExecCGI Includes FollowSymlinks
  Require ip 10.0.0.109



  Require all denied


All the configuration entries are in main server (not in .htaccess)

-- 
Thelma



Re: [gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-02 Thread thelma
On 12/02/2020 04:14 PM, Peter Humphrey wrote:
> On Wednesday, 2 December 2020 19:45:27 GMT Rich Freeman wrote:
> 
>> You might not need the max performance NVMe is capable of, but it is
>> something you should be aware of if you want to benchmark it.
> 
> ...and once you've experienced it you won't want to go back.

Though, not everything showing that much difference in timing:

Opening Win-7 in VirtualBox on NVMe drive took 15sec (to login)
On Samsung EVO 850 SSD it took about 22sec. (to login).




Re: [gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-02 Thread thelma
On 12/02/2020 12:45 PM, Rich Freeman wrote:
> On Wed, Dec 2, 2020 at 1:33 PM Frank Steinmetzger  wrote:
>>
>> Am Tue, Dec 01, 2020 at 02:46:56PM -0700 schrieb the...@sys-concept.com:
>>> Nothing scientific, but I was surprised how fast M.2 disk so decided to
>>> time how fast  GnuCash will load my accounting, her it is:
>>>
>>> Box 1.)
>>> WD (spinning disk) CPU AMD-8150 (8-core), 16GiB
>>> Time to open GnuCash - 23sec.
>>>
>>> Box 2.)
>>> Samsung SSD 850, CPU AMD Ryzen 5 1400 Quad-Core, 16GiB
>>> Time to open GnuCash - 15sec.
>>
>> I can hardly believe that. Does your duration include the entire boot
>> process? If so, the times look quite alright, but that’s not what
>> description says.
>>
> 
> Keep in mind these are different hosts, probably running different
> software with different workloads/optimizations, with different CPUs,
> differing amounts of RAM, and different storage technologies.
> 
> It isn't particularly controversial to suppose that M.2 (NVMe) is
> going to be faster than SATA-based SSD, which is going to be faster
> than spinning disks.
> 
> When you want to get to the exact differences you need to test on
> configurations that are otherwise identical, and also account for
> stuff like caching.
> 
> Note also that M.2 is a form-factor, and you can find SATA-based M.2
> drives which aren't going to perform any better than any other
> SATA-based drive.  Also, since NVMe is far more capable than SATA/AHCI
> it matters even more exactly what NVMe drive you're talking about.
> The storage device itself, and the PCIe version can make a difference,
> and of course you need a CPU/MB that can actually take advantage of
> the drive's full capability.
> 
> You might not need the max performance NVMe is capable of, but it is
> something you should be aware of if you want to benchmark it.

You are correct, it wasn't any benchmark test.  And yes, the old PC are
about 10-year old and 3-4 years old; and the new one is just assembled.
But I was surprised how fast the GnuCash open the database on a new box,
so I time it for a curiosity.




Re: [gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-01 Thread thelma
On 12/01/2020 08:41 PM, bobwxc wrote:
>> -- 原始邮件 --
>> 发 件 人:the...@sys-concept.com
>> 发送时间:2020-12-02 05:46:56
>> 收 件 人:"Gentoo mailing list" 
>> 抄 送:
>> 主 题:[gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD
>>
>> Nothing scientific, but I was surprised how fast M.2 disk is, so decided to
>> time how fast GnuCash will load my accounting, here it is:
>>
>> Box 1.)
>> WD (spinning disk) CPU AMD-8150 (8-core), 16GiB
>> Time to open GnuCash - 23sec.
>>
>> Box 2.)
>> Samsung SSD 850, CPU AMD Ryzen 5 1400 Quad-Core, 16GiB
>> Time to open GnuCash - 15sec.
>>
>> Box 3.)
>> M.2 SSD, CPU AMD Ryzen 7, 32Gib
>> Time to open GnuCash - 2.5sec

> SATA Revision 3.0  --  6Gbps
> NVMe  --  PCI-E3.0*4  --  7.877 Gbps*4
> 
> 
> 
> 
> NVMe  is  much  faster  than  AHCI

This is nvme Force MP600 (SSD Interface. PCIe Gen 4.0 x4)
SSD Max Sequential Read CDM. Up to 4,950MB/s.
SSD Max Sequential Write CDM. Up to 4,250MB/s.

Vs.
Samsung SSD 850 evo
sequential write speeds up to 520 MB/s
sequential read speeds up to 540 MB/s






Re: [gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-01 Thread thelma
Typo: it should be:
Nothing scientific, but I was surprised how fast the M.2 disk is, so I
decided to
test how fast GnuCash loads my accounting; here it is:

On 12/01/2020 02:46 PM, the...@sys-concept.com wrote:
> Nothing scientific, but I was surprised how fast M.2 disk so decided to
> time how fast  GnuCash will load my accounting, her it is:
> 
> Box 1.)
> WD (spinning disk) CPU AMD-8150 (8-core), 16GiB
> Time to open GnuCash - 23sec.
> 
> Box 2.)
> Samsung SSD 850, CPU AMD Ryzen 5 1400 Quad-Core, 16GiB
> Time to open GnuCash - 15sec.
> 
> Box 3.)
> M.2 SSD, CPU AMD Ryzen 7,  32Gib
> Time to open GnuCash -  2.5sec
> 



[gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-01 Thread thelma
Nothing scientific, but I was surprised how fast M.2 disk so decided to
time how fast  GnuCash will load my accounting, her it is:

Box 1.)
WD (spinning disk) CPU AMD-8150 (8-core), 16GiB
Time to open GnuCash - 23sec.

Box 2.)
Samsung SSD 850, CPU AMD Ryzen 5 1400 Quad-Core, 16GiB
Time to open GnuCash - 15sec.

Box 3.)
M.2 SSD, CPU AMD Ryzen 7,  32Gib
Time to open GnuCash -  2.5sec

-- 
Thelma





Re: [gentoo-user] Brother printer HL-5370

2020-12-01 Thread thelma
On 12/01/2020 12:27 AM, k...@aspodata.se wrote:
> That printer supports BR-Script (PostScript lvl3 language emulation).
> Why not just use postscript.
> 
> Regards,
> /Karl Hammar
 
How do you use it / install it  on HL-5370?

When I was installing via "rpm" driver  for another printer HL-3170CDW I got a 
warning:

lpadmin -p HL3170CDW -E -v usb://dev/usb/lp0 -P 
/usr/share/cups/model/Brother/brother_hl3170cdw_printer_en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future 
version of CUPS. 



Re: [gentoo-user] apache 2.4 - deny access to directory

2020-12-01 Thread thelma
On 12/01/2020 07:18 AM, Michael wrote:
> On Monday, 30 November 2020 22:52:05 GMT the...@sys-concept.com wrote:
> 
>> Access based on IP address works from .htaccess with Files directive:
>>
>> 
>>Require ip 10.0.0.109
>> 
>>
>> But it doesn't read AuthType Basic, it doesn't ask me for any password.
>>
>> AuthName "restricted stuff"
>> AuthType Basic
>> AuthUserFile "/etc/apache2/users"
>> require user webmaster
>>
>> It seems to me Apache 2.4 is very limited what can, and can not go into
>> .htaccess.
> 
> OK, probably Authentication takes precedence from Authorization on apache 2.4.
> 
> Since you prefer to use .htaccess rather than a central apache config, let's 
> check if this works in your /admin/.htaccess:
> 
> ===
> AuthName "restricted stuff"
> AuthType Basic
> AuthUserFile "/etc/apache2/users"
> 
>Require ip 10.0.0.100
>Require user webmaster
> 
> ==
> 
> It should allow you to connect and then request username and passwd from IP 
> 10.0.0.100, but return '403 Forbidden' for clients connecting from any other 
> IP address, without requesting authentication.

WOW! it worked, it worked!
Thank you Michael!
IP works and AuthType Basic works too.

Why? It seems to me Apache 2.4 is very picky where/and order directives
are.  So much more to learn.  For basic operation I prefer .htaccess
files, it is much simpler and easier to block spammers, no need to
restart the main server, just update .htaccess file.

Thank you again!





Re: [gentoo-user] VirtualBox

2020-12-01 Thread thelma
On 12/01/2020 08:52 AM, Matt Connell (Gmail) wrote:
> You need to set the qt5 use flag in order to build the front-end UI for
> it.
> 
> On Tue, 2020-12-01 at 08:40 -0700, the...@sys-concept.com wrote:
>> I've emerged virtualbox but it doesn't appear in Application menu.

Thanks folks, yes it worked.
It has been a while since I did any upgrade/installation :-/





[gentoo-user] VirtualBox

2020-12-01 Thread thelma
I've emerged virtualbox but it doesn't appear in Application menu.
In addition I've noticed that virtualbox-bin was removed

-- 
Thelma



Re: [gentoo-user] Brother printer HL-5370

2020-11-30 Thread thelma
On 11/30/2020 08:41 PM, Miles Malone wrote:
> Install the net-print/brother-hl5370dw-bin driver from the brother printer
> overlay, and then add the printer with that driver from the cups browser
> interface.  Generally I find the brother binary cups drivers pretty great
> 
> On Tue, 1 Dec 2020 at 11:17,  wrote:
> 
>> Is there an easy way to install printer via cupsd/browser?
>>
>> The cupsd recognized my printer but doesn't list any driver.  When I
>> tested Debian it recognized my printer and driver was available.
>> How did they do it?

That is what I did, it worked.  Another printer I have is hl-3170cdw and
there are no drivers for it but installation via rpm is easy:

Instalation instructions at:
https://wiki.gentoo.org/wiki/Brother_networked_printer

check if exist if not make it:

mkdir -p /var/spool/lpd
mkdir -p /usr/lib64/cups/filter

rpm -i --nodeps hl3170cdwlpr-1.1.2-1.i386.rpm
rpm -i --nodeps hl3170cdwcupswrapper-1.1.4-0.i386.rpm

ln -s /usr/lib64/cups/filter/brother_lpdwrapper_hl3170cdw
/usr/libexec/cups/filter/

Ps. current "rpm-4.14.2.1-r1" package is buggy (should not be used)
there is a bug-filed against it.
rpm-4.16.0 works OK




[gentoo-user] Brother printer HL-5370

2020-11-30 Thread thelma
Is there an easy way to install printer via cupsd/browser?

The cupsd recognized my printer but doesn't list any driver.  When I
tested Debian it recognized my printer and driver was available.
How did they do it?

-- 
Thelma



Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread thelma
On 11/30/2020 02:20 PM, Michael wrote:
> On Monday, 30 November 2020 20:07:10 GMT the...@sys-concept.com wrote:
> 
>> Thank for looking into it and input.
>> I must be missing someting because if I use in .htaccess file direcive:
>>   or
>>  
>>
>> In both cases I get an error from Apache:
>>
>> [client 10.0.0.109] /var/www/localhost/htdocs/catalog/admin/.htaccess:
>> > /var/www/localhost/htdocs/catalog/admin/.htaccess: > here
> 
> Yes, the error is because Directory and/or Location directives ought to go in 
> the main apache config files for this vhost, rather than in .htaccess.
> 
> Is there a particular reason you want to use .htaccess, rather than files in 
> the /etc/apache subdirectories?

Access based on IP address works from .htaccess with Files directive:


   Require ip 10.0.0.109


But it doesn't read AuthType Basic, it doesn't ask me for any password.

AuthName "restricted stuff"
AuthType Basic
AuthUserFile "/etc/apache2/users"
require user webmaster

It seems to me Apache 2.4 is very limited what can, and can not go into
.htaccess.





Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread thelma
On 11/30/2020 12:43 PM, Michael wrote:
> I don't have time to look into this in much detail, or test it, but see 
> comments below.
> 
> On Monday, 30 November 2020 18:09:52 GMT the...@sys-concept.com wrote:
>> On 11/30/2020 05:34 AM, Michael wrote:
>>> On Sunday, 29 November 2020 18:22:09 GMT the...@sys-concept.com wrote:
>>>> Thelma
>>>>
>>>> On 11/29/2020 03:22 AM, Michael wrote:
>>>>> On Sunday, 29 November 2020 07:30:16 GMT the...@sys-concept.com wrote:
>>>>>> I'm trying to deny access to all except specific IP address in a
>>>>>> directory, just testing it.
>>>>>>
>>>>>> In modules.d/00_default_settings.conf
>>>>>>
>>>>>> 
>>>>>>
>>>>>>  Options MultiViews
>>>>>>  AllowOverride All
>>>>>>  Require all granted
>>>>>>
>>>>>> 
>>>>>>
>>>>>> in admin/.htaccess
>>>>>>
>>>>>> 
>>>>>>
>>>>>> Require all denied
>>>>>> Require ip 10.0.0.100
>>>>>>
>>>>>> 
>>>>>>
>>>>>> My IP is 10.0.0.112 and I can still access the server /admin directory
>>>>>>
>>>>>> What am I missing?
>>>>>
>>>>> In apache 2.4 the access control syntax has changed.  The RequireAll
>>>>> directive means *all* authorisation directives within it must succeed.
>>>>>
>>>>> https://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#requireall
>>>>>
>>>>> What happens if you just remove the first line, "Require all denied"?
>>>>
>>>> As you suggested I have:
>>>> in admin/.htaccess
>>>>
>>>> 
>>>>
>>>> Require ip 10.0.0.100
>>>>
>>>> 
>>>>
>>>> My IP is: 10.0.0.112 and it still allow me to access it.  I know apache
>>>> 2.4 is reading the file as the the below direcive works.
>>>
>>> I've tested different RequireAll directives in a .htaccess file and with
>>> otherwise default apache  settings I can confirm:
>>>
>>> This is correct:
>>> =
>>> 
>>>
>>> Require ip 10.0.0.100
>>>
>>> 
>>> =
>>> will only allow visitors from 10.0.0.100 to access the directory content.
>>>
>>> This is also correct:
>>> =
>>> 
>>>
>>> Require all granted
>>> Require ip 10.0.0.100
>>>
>>> 
>>> =
>>> will only allow visitors from 10.0.0.100 to access the directory content.
>>>
>>> Finally, this won't work:
>>> =
>>> 
>>>
>>> Require all denied
>>> Require ip 10.0.0.100
>>>
>>> 
>>> =
>>> because it returns 403 for all clients irrespective of IP address, since
>>> both subdirectives must be correct for the RequireAll to be true.
>>>
>>> I notice you have 'Options MultiViews' in your modules.d/
>>> 00_default_settings.conf, which will parse paths to find and serve any
>>> file
>>> requested by the client even if the URL is not complete.  It might be this
>>> conflicts with your .htaccess within admin/ subdirectory, but I'm not
>>> sure.
>>> Something in apache logs may shed light in this.
>>>
>>>> AuthName "restricted stuff"
>>>> AuthType Basic
>>>> AuthUserFile "/etc/apache2/users"
>>>> require user webmaster
>>>>
>>>> I've tried adding
>>>> RewriteEngine on
>>>>
>>>> With it, I can not login at all (access denied) regardless of IP.
>>>
>>> With apache 2.4 a new  directive was added to perform conditional
>>> checks and replace/augment many of the mod_rewrite functionalities.  I
>>> don't know how you have structured your RewriteCond and RewriteRule, but
>>> obviously they don't work as intended if they totally block access.
>>>
>>> You could check conflicting rules between your apache config and any
>>> .htaccess directives, or any loose and contradictory .htaccess files in
>>> higher subdirectories.
>>
>> Here i

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread thelma
On 11/30/2020 05:34 AM, Michael wrote:
[snip]
> 
> I've tested different RequireAll directives in a .htaccess file and with 
> otherwise default apache  settings I can confirm:
> 
> This is correct:
> =
> 
> Require ip 10.0.0.100
> 
> =
> will only allow visitors from 10.0.0.100 to access the directory content.
> 
> This is also correct:
> =
> 
> Require all granted
> Require ip 10.0.0.100
> 
> =
> will only allow visitors from 10.0.0.100 to access the directory content.
> 
> Finally, this won't work:
> =
> 
> Require all denied
> Require ip 10.0.0.100
> 
> =
> because it returns 403 for all clients irrespective of IP address, since both 
> subdirectives must be correct for the RequireAll to be true.
> 
> I notice you have 'Options MultiViews' in your modules.d/
> 00_default_settings.conf, which will parse paths to find and serve any file 
> requested by the client even if the URL is not complete.  It might be this 
> conflicts with your .htaccess within admin/ subdirectory, but I'm not sure.  
> Something in apache logs may shed light in this.
> 
> 
>> AuthName "restricted stuff"
>> AuthType Basic
>> AuthUserFile "/etc/apache2/users"
>> require user webmaster
>>
>> I've tried adding
>> RewriteEngine on
>>
>> With it, I can not login at all (access denied) regardless of IP.
> 
> With apache 2.4 a new  directive was added to perform conditional checks 
> and replace/augment many of the mod_rewrite functionalities.  I don't know 
> how 
> you have structured your RewriteCond and RewriteRule, but obviously they 
> don't 
> work as intended if they totally block access.
> 
> You could check conflicting rules between your apache config and any 
> .htaccess 
> directives, or any loose and contradictory .htaccess files in higher 
> subdirectories.

Partial success. It seems to me .htaccess  needs: 
to work.
The blow works on IP:


   
Require ip 10.0.0.109
  


But this below doesn't work.

AuthName "restricted stuff"
AuthType Basic
AuthUserFile "/etc/apache2/users"
require user webmaster

It doesn't read "AuthType Basic" it does not ask me for password.
I wish Apache 2.2 was still in portage.



[gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread thelma
On 11/30/2020 05:34 AM, Michael wrote:
> On Sunday, 29 November 2020 18:22:09 GMT the...@sys-concept.com wrote:
>> Thelma
>>
>> On 11/29/2020 03:22 AM, Michael wrote:
>>> On Sunday, 29 November 2020 07:30:16 GMT the...@sys-concept.com wrote:
>>>> I'm trying to deny access to all except specific IP address in a
>>>> directory, just testing it.
>>>>
>>>> In modules.d/00_default_settings.conf
>>>>
>>>> 
>>>>
>>>>Options MultiViews
>>>>AllowOverride All
>>>>Require all granted
>>>>
>>>> 
>>>>
>>>> in admin/.htaccess
>>>>
>>>> 
>>>>
>>>> Require all denied
>>>> Require ip 10.0.0.100
>>>>
>>>> 
>>>>
>>>> My IP is 10.0.0.112 and I can still access the server /admin directory
>>>>
>>>> What am I missing?
>>>
>>> In apache 2.4 the access control syntax has changed.  The RequireAll
>>> directive means *all* authorisation directives within it must succeed.
>>>
>>> https://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#requireall
>>>
>>> What happens if you just remove the first line, "Require all denied"?
>>
>> As you suggested I have:
>> in admin/.htaccess
>>
>> 
>> Require ip 10.0.0.100
>> 
>>
>> My IP is: 10.0.0.112 and it still allow me to access it.  I know apache
>> 2.4 is reading the file as the the below direcive works.
> 
> I've tested different RequireAll directives in a .htaccess file and with 
> otherwise default apache  settings I can confirm:
> 
> This is correct:
> =
> 
> Require ip 10.0.0.100
> 
> =
> will only allow visitors from 10.0.0.100 to access the directory content.
> 
> This is also correct:
> =
> 
> Require all granted
> Require ip 10.0.0.100
> 
> =
> will only allow visitors from 10.0.0.100 to access the directory content.
> 
> Finally, this won't work:
> =
> 
> Require all denied
> Require ip 10.0.0.100
> 
> =
> because it returns 403 for all clients irrespective of IP address, since both 
> subdirectives must be correct for the RequireAll to be true.
> 
> I notice you have 'Options MultiViews' in your modules.d/
> 00_default_settings.conf, which will parse paths to find and serve any file 
> requested by the client even if the URL is not complete.  It might be this 
> conflicts with your .htaccess within admin/ subdirectory, but I'm not sure.  
> Something in apache logs may shed light in this.
> 
> 
>> AuthName "restricted stuff"
>> AuthType Basic
>> AuthUserFile "/etc/apache2/users"
>> require user webmaster
>>
>> I've tried adding
>> RewriteEngine on
>>
>> With it, I can not login at all (access denied) regardless of IP.
> 
> With apache 2.4 a new  directive was added to perform conditional checks 
> and replace/augment many of the mod_rewrite functionalities.  I don't know 
> how 
> you have structured your RewriteCond and RewriteRule, but obviously they 
> don't 
> work as intended if they totally block access.
> 
> You could check conflicting rules between your apache config and any 
> .htaccess 
> directives, or any loose and contradictory .htaccess files in higher 
> subdirectories.

Here is complete file:   modules.d/00_default_settings.conf
I've removed 'Options MultiViews' but it disn't help.

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
UseCanonicalName Off
AccessFileName .htaccess
ServerTokens Prod
TraceEnable off
ServerSignature Off
HostnameLookups Off
EnableMMAP On
EnableSendfile Off
FileETag MTime Size
ContentDigest Off
ErrorLog /var/log/apache2/error_log
LogLevel warn


Options FollowSymLinks
AllowOverride None
Require all denied



AllowOverride All
Require all granted



DirectoryIndex index.html index.html.var



Require all denied


The server root .htaccess is empty
In server root/admin/.htaccess


   Require ip 10.0.0.100


AuthName "restricted stuff"
AuthType Basic
AuthUserFile "/etc/apache2/users"
require user webmaster

My IP is 10.0.0.109 so I should be denied access to admin/index.php but
I'm able to view it/access it.
It seems to me it is reading .htaccess file as "AuthType Basic" work, it
is asking me for a password. but "Require ip" doesn't work.  Because my
IP is 10.0.0.109 apache should deny me access with "access denied.

It is strange as the directive: "DirectoryIndex index.html
index.html.var" does not include "index.php" and I'm able to access this
file "admin/index.php"
so the index.php must be define somewhere else. Most likely via httpd.conf:

httpd.conf:75:LoadModule autoindex_module modules/mod_autoindex.so  (but
this is a binary file, can not read it).




Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-29 Thread thelma




Thelma
On 11/29/2020 03:22 AM, Michael wrote:
> On Sunday, 29 November 2020 07:30:16 GMT the...@sys-concept.com wrote:
>> I'm trying to deny access to all except specific IP address in a
>> directory, just testing it.
>>
>> In modules.d/00_default_settings.conf
>>
>> 
>>  Options MultiViews
>>  AllowOverride All
>>  Require all granted
>> 
>>
>> in admin/.htaccess
>>
>> 
>> Require all denied
>> Require ip 10.0.0.100
>> 
>>
>> My IP is 10.0.0.112 and I can still access the server /admin directory
>>
>> What am I missing?
> 
> In apache 2.4 the access control syntax has changed.  The RequireAll 
> directive 
> means *all* authorisation directives within it must succeed.
> 
> https://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#requireall
> 
> What happens if you just remove the first line, "Require all denied"?

As you suggested I have:
in admin/.htaccess


Require ip 10.0.0.100


My IP is: 10.0.0.112 and it still allow me to access it.  I know apache
2.4 is reading the file as the the below direcive works.

AuthName "restricted stuff"
AuthType Basic
AuthUserFile "/etc/apache2/users"
require user webmaster

I've tried adding
RewriteEngine on

With it, I can not login at all (access denied) regardless of IP.





[gentoo-user] apache 2.4 - deny access to directory

2020-11-28 Thread thelma
I'm trying to deny access to all except specific IP address in a
directory, just testing it.

In modules.d/00_default_settings.conf


Options MultiViews
AllowOverride All
Require all granted


in admin/.htaccess


Require all denied
Require ip 10.0.0.100


My IP is 10.0.0.112 and I can still access the server /admin directory

What am I missing?
-- 
Thelma



Re: [gentoo-user] Re: nvidia x server settings doesn't open

2020-11-28 Thread thelma




Thelma
On 11/28/2020 07:19 AM, Nikos Chantziaras wrote:
> On 27/11/2020 02:56, the...@sys-concept.com wrote:
>> I just installed nvidia-drivers-455.28-r1 and can not start "nvidia x
>> server setting" it doesn't open.
>>
>> running: $ nvidia-smi
>> NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA
>> driver. Make sure that the latest NVIDIA driver is installed and running.
> 
> What's the output of:
> 
>   lsmod
> 
> and:
> 
>   emerge --info

Here it is.

lsmod
Module  Size  Used by
ipv6  581632  602
crc_ccitt  16384  1 ipv6
cfg80211  835584  0
8021q  36864  0
garp   16384  1 8021q
mrp20480  1 8021q
stp16384  1 garp
llc16384  2 stp,garp
dm_mod155648  0
hid_logitech_hidpp 49152  0
eeepc_wmi  16384  0
asus_wmi   36864  1 eeepc_wmi
sparse_keymap  16384  1 asus_wmi
rfkill 28672  2 asus_wmi,cfg80211
wmi_bmof   16384  0
joydev 28672  0
snd_hda_codec_hdmi 73728  1
edac_mce_amd   32768  0
nouveau  2273280  4
snd_hda_codec_realtek   139264  1
snd_hda_codec_generic94208  1 snd_hda_codec_realtek
kvm_amd   110592  0
ledtrig_audio  16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
kvm   786432  1 kvm_amd
mxm_wmi16384  1 nouveau
snd_hda_intel  53248  3
video  53248  2 asus_wmi,nouveau
snd_intel_nhlt 20480  1 snd_hda_intel
ttm   122880  1 nouveau
snd_hda_codec 155648  4
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
drm_kms_helper217088  1 nouveau
snd_hda_core  102400  5
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep  16384  1 snd_hda_codec
irqbypass  16384  1 kvm
efi_pstore 16384  0
crct10dif_pclmul   16384  1
snd_pcm   118784  4
snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
ghash_clmulni_intel16384  0
drm   593920  7 drm_kms_helper,ttm,nouveau
snd_timer  40960  1 snd_pcm
efivars20480  1 efi_pstore
snd98304  14
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
pcspkr 16384  0
hid_logitech_dj28672  0
sp5100_tco 20480  0
soundcore  16384  1 snd
ccp   102400  1 kvm_amd
backlight  20480  3 video,asus_wmi,nouveau
i2c_piix4  28672  0
k10temp16384  0
pinctrl_amd32768  0
mac_hid16384  0
wmi36864  4 asus_wmi,wmi_bmof,mxm_wmi,nouveau
acpi_cpufreq   28672  0
efivarfs   16384  1
ext4  774144  1
mbcache16384  1 ext4
jbd2  131072  1 ext4
crc32_pclmul   16384  0
crc32c_intel   24576  2
aesni_intel   372736  0
igb   249856  0
crypto_simd16384  1 aesni_intel
nvme   53248  1
cryptd 24576  2 crypto_simd,ghash_clmulni_intel
xhci_pci   20480  0
glue_helper16384  1 aesni_intel
i2c_algo_bit   16384  2 igb,nouveau
ahci   40960  0
xhci_hcd  299008  1 xhci_pci
i2c_core   94208  6
drm_kms_helper,i2c_algo_bit,igb,i2c_piix4,nouveau,drm
nvme_core 110592  3 nvme
libahci40960  1 ahci
dca16384  1 igb

emerge --info
Portage 3.0.9 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop,
gcc-9.3.0, glibc-2.32-r2, 5.4.72-gentoo-x86_64 x86_64)
=
System uname:
Linux-5.4.72-gentoo-x86_64-x86_64-AMD_Ryzen_7_3800XT_8-Core_Processor-with-gentoo-2.7
KiB Mem:32848924 total,   8851448 free
KiB Swap:  0 total, 0 free
Timestamp of repository gentoo: Tue, 24 Nov 2020 20:30:01 +
Head commit of repository gentoo: c1218edbc9b95afbbd0bb97f70e40473d64229c5
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:  5.0_p18::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl:5.30.3::gentoo
dev-lang/python:  3.7.9::gentoo, 3.9.0::gentoo
dev-util/cmake:   3.17.4-r1::gentoo
sys-apps/baselayout:  2.7::gentoo
sys-apps/openrc:  0.42.1::gentoo
sys-apps/sandbox: 2.20::gentoo
sys-devel/autoconf:   2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:   1.16.2-r1::gentoo
sys-devel/binutils:   2.34-r2::gentoo
sys-devel/gcc:9.3.0-r1::gentoo
sys-devel/gcc-config: 2.3.2-r1::gentoo
sys-devel/libtool:2.4

Re: [gentoo-user] php-5.6.33

2020-11-27 Thread thelma
On 11/27/2020 04:26 AM, Michael wrote:
> On Friday, 27 November 2020 07:24:57 GMT the...@sys-concept.com wrote:
>> I need to install old: php-5.6.33 on my new system.  One program I have
>> depends on it.  Is it possible and what is the easiest way to go about it?
>>
>> I have the "php-5.6.33.ebuild" (and all other files) on my old system in
>> dir:
>> /var/db/pkg/dev-lang/php-5.6.33
>>
>> Is it possible to copy it to my: /usr/local/portage/dev-lang/
>> and build it on my new system?
> 
> There's two ways to go about it.  Since the MoBo is the same, I would run 
> quickpkg then copy it over and emerge it on the new disk.
> 
> Alternatively, copy over the ebuild and any associated files, then copy over 
> the source from distfiles and emerge it as you would normally emerge a 
> package.
> 
> However, dependencies ...
> 
> There are build time and run time dependencies.  The emerge will fail if 
> build 
> time dependencies are no longer available on the current portage tree and/or 
> fail to run if run time dependencies are missing.  In this case you'll have 
> to 
> fish these ebuilds out of the attic and try again.  Some packages will create 
> conflicts with the currently installed versions, which may become impossible 
> to resolve.  Which is why I originally suggested cloning an already working 
> system with all its packages, rather than reinstalling.
> 
> Either way, give quickpkg a spin and see where that gets you.

I'll try as you suggested, the mother board is different, it is a new
computer similar CPU AMD-8core.  I've tried duplicating it with Gparted,
didn't work.
The disk are different as well.
Old one is old WD spinning disk (about 10-years old)
New one is M.2 SSD

Old system is: emerge --info
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop,
gcc-6.4.0, glibc-2.25-r10, 4.9.72-gentoo x86_64)

New one: emerge --info
Portage 3.0.9 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop,
gcc-9.3.0, glibc-2.32-r2, 5.4.72-gentoo-x86_64 x86_64)

So I'm not sure if duplicating the drive would work, maybe I'm going the
wrong way about it.  It would be nice if gentoo have an easier way of
doing it, it would stand out from other distros.  I've tried Debian
(stable) it didn't work, and I know I have more flexibility with Gentoo.

 Thelma



Re: [gentoo-user] php-5.6.33

2020-11-27 Thread thelma
On 11/27/2020 04:26 AM, Michael wrote:
> On Friday, 27 November 2020 07:24:57 GMT the...@sys-concept.com wrote:
>> I need to install old: php-5.6.33 on my new system.  One program I have
>> depends on it.  Is it possible and what is the easiest way to go about it?
>>
>> I have the "php-5.6.33.ebuild" (and all other files) on my old system in
>> dir:
>> /var/db/pkg/dev-lang/php-5.6.33
>>
>> Is it possible to copy it to my: /usr/local/portage/dev-lang/
>> and build it on my new system?
> 
> There's two ways to go about it.  Since the MoBo is the same, I would run 
> quickpkg then copy it over and emerge it on the new disk.
> 
> Alternatively, copy over the ebuild and any associated files, then copy over 
> the source from distfiles and emerge it as you would normally emerge a 
> package.
> 
> However, dependencies ...
> 
> There are build time and run time dependencies.  The emerge will fail if 
> build 
> time dependencies are no longer available on the current portage tree and/or 
> fail to run if run time dependencies are missing.  In this case you'll have 
> to 
> fish these ebuilds out of the attic and try again.  Some packages will create 
> conflicts with the currently installed versions, which may become impossible 
> to resolve.  Which is why I originally suggested cloning an already working 
> system with all its packages, rather than reinstalling.
> 
> Either way, give quickpkg a spin and see where that gets you.

I'll try as you suggested, the mother board is different, it is a new
computer similar CPU AMD-8core.  I've tried duplicating it with Gparted,
didn't work.
The disk are different as well.
Old one is old WD spinning disk (about 10-years old)
New one is M.2 SSD

Old system is: emerge --info
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop,
gcc-6.4.0, glibc-2.25-r10, 4.9.72-gentoo x86_64)

New one: emerge --info
Portage 3.0.9 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop,
gcc-9.3.0, glibc-2.32-r2, 5.4.72-gentoo-x86_64 x86_64)

So I'm not sure if duplicating the drive would work, maybe I'm going the
wrong way about it.  It would be nice if gentoo have an easier way of
doing it, it would stand out from other distros.  I've tried Debian
(stable) it didn't work, and I know I have more flexibility with Gentoo.

 Thelma



[gentoo-user] php-5.6.33

2020-11-26 Thread thelma
I need to install old: php-5.6.33 on my new system.  One program I have
depends on it.  Is it possible and what is the easiest way to go about it?

I have the "php-5.6.33.ebuild" (and all other files) on my old system in
dir:
/var/db/pkg/dev-lang/php-5.6.33

Is it possible to copy it to my: /usr/local/portage/dev-lang/
and build it on my new system?

-- 
Thelma



[gentoo-user] nvidia x server settings doesn't open

2020-11-26 Thread thelma
I just installed nvidia-drivers-455.28-r1 and can not start "nvidia x
server setting" it doesn't open.

running: $ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA
driver. Make sure that the latest NVIDIA driver is installed and running.

-- 
Thelma



[gentoo-user] ssmtp - localmail

2020-11-25 Thread thelma
According to:
https://wiki.webevaluation.nl/sending_e-mail_with_ssmtp
ssmtp has no local e-mail so it can not send cron output to /var/mail/user

But from posting at:
https://unix.stackexchange.com/questions/69133/where-is-the-setting-for-sending-email-to-a-system-user-with-ssmtp

Aliases for TO: addresses would normally need to be set in /etc/aliases, but 
SSMTP doesn't read this! Instead, you need to edit /etc/mail.rc and add a line 
such as
alias root root

Can anybody verify it?

-- 
Thelma



Re: [gentoo-user] sendmail configuration

2020-11-25 Thread thelma



[snip
>  cat revaliases (did not test this one yet)
> root:root@localdomain:mail.my-domain.com
> thelma:i...@my-domain.com:mail.my-domain.com
> 
> Are the aliases correct?

Looking at aliases from postfix:
# Basic system aliases -- these MUST be present.
MAILER-DAEMON:  postmaster
postmaster: root

# General redirections for pseudo accounts.
adm:root
bin:root
daemon: root
exim:   root
lp: root
mail:   root
named:  root
nobody: root
postfix:root

# Well-known aliases -- these should be filled in!
root:   thelma
apache:     thelma
# alias for notification messages from HylaFAX servers
# FaxMaster:email-address

# operator:

# Standard RFC2142 aliases
abuse:  postmaster
ftp:root
hostmaster: root
news:   usenet
noc:root
security:   root
usenet: root
uucp:   root
webmaster:  root
www:webmaster

My revaliases file is a bit short.
Where is local mail being sent from "emerge" ?



Re: [gentoo-user] sendmail configuration

2020-11-25 Thread thelma
On 11/25/2020 07:52 PM, Matt Connell (Gmail) wrote:
> On Wed, 2020-11-25 at 19:41 -0700, the...@sys-concept.com wrote:
>> But if I can not make it to work, will go back to postfix.
> 
> For new setups, I've always had good success with SSMTP.  Very bare,
> simple, and reliable.
> 
> mail-mta/ssmtp in portage.

I'm trying to make ssmtp to work. But I got stuck.

On my system I'm using Thunderbird that works perfectly without much
difficulties.
On my system I need ssmtp to just sent mail out to my provider (incoming
mail is handled by Thunderbird) and get a local mail from emerge, etc
handled by ssmtp.

>From POP account I have:
mail.my-domain.com  Port: 110
user name: email-address

Outgoing mail:  mail.my-domain.com  Port: 1025
user name: email-address

Both incoming mail and outgoing mail require password.

I entered in: ssmtp.conf
mailhub=smtp.my-domain.com
rewriteDomain=
hostname=email-address
AuthUser=email-address
AuthPass=password
FromLineOverride=YES

Is there anything to improve?
The outgoing mail works, when tested via "mailto"

 cat revaliases (did not test this one yet)
root:root@localdomain:mail.my-domain.com
thelma:i...@my-domain.com:mail.my-domain.com

Are the aliases correct?



Re: [gentoo-user] sendmail configuration

2020-11-25 Thread thelma
On 11/25/2020 07:03 PM, Ralph Seichter wrote:
> * the...@sys-concept.com:
> 
>> I've always used postifx but I want to try sendmail this time.
>> And I have a hard time finding gentoo howto.
> 
> Well, configuration-wise, you are saying "I've always enjoyed a soothing
> massage, but I want to try being dragged over cobblestone pavement while
> simultaneously being caned this time". Some people might choose this
> option, but it is not exactly mainstream. ;-)
> 
> Based on my personal experience of having used Sendmail for many years
> before Postfix became available, I recommend avoiding Sendmail whenever
> humanly possible.
> 
> -Ralph

Thank you for input.  Maybe that is why it is so hard to find good
explanation/howto how to configure it.  The config file looks very
simple, that is I decided to try it.
But if I can not make it to work, will go back to postfix.




[gentoo-user] sendmail configuration

2020-11-25 Thread thelma
I've always used postifx but I want to try sendmail this time.
And I have a hard time finding gentoo howto.
I runonto some instruction in:
 http://www.quickfixlinux.com/linux/how-to-configure-sendmail-in-linux/

But don't have much lack.
Original config file after emerge looks like:

cat /etc/mail/sendmail.mc
divert(-1)
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id$')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
FEATURE(`local_procmail')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

I've added a line no.7
define(`SMART_HOST’,`mail.shaw.ca’)dnl

but I get an error running:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
m4:/etc/mail/sendmail.mc:7: ERROR: end of file in string

I forgot to mention that I need to input a password to connect to
provider mail-server when sending a mail.

-- 
Thelma



Re: [gentoo-user] genkernel all

2020-11-25 Thread thelma
On 11/25/2020 10:33 AM, Dale wrote:
> the...@sys-concept.com wrote:
>> On 11/25/2020 08:27 AM, the...@sys-concept.com wrote:
>>> On 11/25/2020 08:23 AM, the...@sys-concept.com wrote:
 I compiled "genkernel all" instead of looking for the correct entry to
 boot my M.2 drive.

 Not I compiled nvidia-drivers and got a message:

 * Messages for package x11-drivers/nvidia-drivers-455.28-r1:

  *   CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
  * Please check to make sure these options are set correctly.
  * Failure to do so may cause unexpected problems.
  *   CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.

 Genkernel all doesn't have any .config file.
 How to remove them?  Where to get .config for genkernel all?

>>> found it in /etc/genkernel.conf
>> That was not it. I copied genkernel.conf to /usr/src/linux/.config but
>> this configuration file is different.
>> I was looking for CONFIG_I2C_NVIDIA_GPU in genkernel.conf I couldn't
>> find it.
>>
>> The reason I'm using "genkernel all" as there is some setting missing in
>> my old .config file that is stop booting my M.2 SSD (are there any
>> special option in kernel for it?). I'm getting an error:
>> kernel panic - not syncing: VFS: unable to mount root fs on
>> unknown-block (0, 0)
>>
>>
>>
> 
> 
> If you have a bootable media, CD, another distro or whatever that works,
> you can grab the config from it if it recognizes M.2 SSD.  That will
> give you a starting point at least.  Later on, you can remove things or
> make changes as needed.  The command zcat /proc/config.gz should work
> and you can tell that to put it in a regular file and if mounted, even
> put it in your kernel source directory. 
> 
> Hope that helps.
> 
> Dale
> 
> :-)  :-) 

zcat /proc/config.gz
Very useful thank you. It will be handy.

I've noticed that using: genkernel --menuconfig all
puts the .config in /usr/src/linux directory and copy kernel to /boot
after compiling when you exit.
In addition I've switch to "refind" instead of grub; much simpler and
user friendly.

> 



Re: [gentoo-user] kernel panic - not syncing: VFS: unable to mount root fs on unknown-block (0, 0)

2020-11-25 Thread thelma
On 11/25/2020 02:50 AM, Michael wrote:
> On Wednesday, 25 November 2020 06:30:05 GMT the...@sys-concept.com wrote:
> 
>> On 11/24/2020 10:08 PM, the...@sys-concept.com wrote:
>>> I'm getting a kernel panic when booting a new system.
>>>
>>> kernel panic - not syncing: VFS: unable to mount root fs on unknown-block
>>> (0,0)
>>>
>>> fstab:
>>> LABEL=boot  /boot   vfat
> noauto,noatime1 2
>>> root=UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b  /   
>   ext4noatime 0 1
>>> LABEL=swap  noneswap
> sw0 0
>>>
>>> I even use: emerge --ask sys-kernel/genkernel
>>> genkernel all
>>>
>>> So all the driver are compile-in (nothing should be missing)
>>>
>>> ls -al /boot/vmlinu* /boot/initramfs*
>>> -rwxr-xr-x 1 root root 11221820 Nov 24 21:30
>>> /boot/initramfs-5.4.72-gentoo-x86_64.img -rwxr-xr-x 1 root root  9036672
>>> Nov 24 10:56 /boot/vmlinuz-5.4.72-gentoo -rwxr-xr-x 1 root root  8513920
>>> Nov 24 21:18 /boot/vmlinuz-5.4.72-gentoo-x86_64
>> This problem is solved, it seems to me I was booting old kernel.
>> Removing old kernel and re-running:
>> grub-mkconfig -o /boot/grub/grub.cfg
>>
>> Solved the problem.
> 
> Glad you got your new disk booting.
> 
> Worth mentioning your fstab syntax is not entirely correct.  According to 
> 'man 
> fstab' you can specify a device with  LABEL=, as long as you have set 
> up a filesystem label with e.g. mkfs, or tune2fs.  So, your "LABEL=boot" is 
> correct.
> 
> UUID on the other hand is meant to be specified like so:
> 
> UUID=
> 
> In your case it would be:
> 
> UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b
> 
> instead of it being preceded by "root=".

The "genkernel all" is working but I need to find out which option is it
that allow booting the drive.  The genkernel.conf is different from
standard kernel .config

Removing options from genkernel is not easy.




Re: [gentoo-user] genkernel all

2020-11-25 Thread thelma
On 11/25/2020 08:27 AM, the...@sys-concept.com wrote:
> On 11/25/2020 08:23 AM, the...@sys-concept.com wrote:
>> I compiled "genkernel all" instead of looking for the correct entry to
>> boot my M.2 drive.
>>
>> Not I compiled nvidia-drivers and got a message:
>>
>> * Messages for package x11-drivers/nvidia-drivers-455.28-r1:
>>
>>  *   CONFIG_I2C_NVIDIA_GPU:   should not be set. But it is.
>>  * Please check to make sure these options are set correctly.
>>  * Failure to do so may cause unexpected problems.
>>  *   CONFIG_I2C_NVIDIA_GPU:   should not be set. But it is.
>>
>> Genkernel all doesn't have any .config file.
>> How to remove them?  Where to get .config for genkernel all?
>>
> found it in /etc/genkernel.conf

That was not it. I copied genkernel.conf to /usr/src/linux/.config but
this configuration file is different.
I was looking for CONFIG_I2C_NVIDIA_GPU in genkernel.conf I couldn't
find it.

The reason I'm using "genkernel all" as there is some setting missing in
my old .config file that is stop booting my M.2 SSD (are there any
special option in kernel for it?). I'm getting an error:
kernel panic - not syncing: VFS: unable to mount root fs on
unknown-block (0, 0)




Re: [gentoo-user] genkernel all

2020-11-25 Thread thelma
On 11/25/2020 08:23 AM, the...@sys-concept.com wrote:
> I compiled "genkernel all" instead of looking for the correct entry to
> boot my M.2 drive.
> 
> Not I compiled nvidia-drivers and got a message:
> 
> * Messages for package x11-drivers/nvidia-drivers-455.28-r1:
> 
>  *   CONFIG_I2C_NVIDIA_GPU:should not be set. But it is.
>  * Please check to make sure these options are set correctly.
>  * Failure to do so may cause unexpected problems.
>  *   CONFIG_I2C_NVIDIA_GPU:should not be set. But it is.
> 
> Genkernel all doesn't have any .config file.
> How to remove them?  Where to get .config for genkernel all?
> 
found it in /etc/genkernel.conf



[gentoo-user] genkernel all

2020-11-25 Thread thelma
I compiled "genkernel all" instead of looking for the correct entry to
boot my M.2 drive.

Not I compiled nvidia-drivers and got a message:

* Messages for package x11-drivers/nvidia-drivers-455.28-r1:

 *   CONFIG_I2C_NVIDIA_GPU:  should not be set. But it is.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 *   CONFIG_I2C_NVIDIA_GPU:  should not be set. But it is.

Genkernel all doesn't have any .config file.
How to remove them?  Where to get .config for genkernel all?

-- 
Thelma



Re: [gentoo-user] kernel panic - not syncing: VFS: unable to mount root fs on unknown-block (0, 0)

2020-11-25 Thread thelma
On 11/25/2020 02:50 AM, Michael wrote:
> On Wednesday, 25 November 2020 06:30:05 GMT the...@sys-concept.com wrote:
[snip]
>>> root=UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b  /   
[snip]
>>
>> Solved the problem.
> 
> Glad you got your new disk booting.
> 
> Worth mentioning your fstab syntax is not entirely correct.  According to 
> 'man 
> fstab' you can specify a device with  LABEL=, as long as you have set 
> up a filesystem label with e.g. mkfs, or tune2fs.  So, your "LABEL=boot" is 
> correct.
> 
> UUID on the other hand is meant to be specified like so:
> 
> UUID=
> 
> In your case it would be:
> 
> UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b
> 
> instead of it being preceded by "root=".

I've notice it too during booting and corrected it, thanks.




Re: [gentoo-user] kernel panic - not syncing: VFS: unable to mount root fs on unknown-block (0,0)

2020-11-24 Thread thelma




Thelma
On 11/24/2020 10:08 PM, the...@sys-concept.com wrote:
> I'm getting a kernel panic when booting a new system.
> 
> kernel panic - not syncing: VFS: unable to mount root fs on unknown-block 
> (0,0)
> 
> fstab: 
> LABEL=boot/boot   vfatnoauto,noatime  1 2
> root=UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b/   
> ext4noatime 0 1
> LABEL=swapnoneswapsw  0 0
> 
> I even use: emerge --ask sys-kernel/genkernel
> genkernel all  
> 
> So all the driver are compile-in (nothing should be missing)
> 
> ls -al /boot/vmlinu* /boot/initramfs*
> -rwxr-xr-x 1 root root 11221820 Nov 24 21:30 
> /boot/initramfs-5.4.72-gentoo-x86_64.img
> -rwxr-xr-x 1 root root  9036672 Nov 24 10:56 /boot/vmlinuz-5.4.72-gentoo
> -rwxr-xr-x 1 root root  8513920 Nov 24 21:18 
> /boot/vmlinuz-5.4.72-gentoo-x86_64

This problem is solved, it seems to me I was booting old kernel.
Removing old kernel and re-running:
grub-mkconfig -o /boot/grub/grub.cfg

Solved the problem.





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