Re: [gentoo-user] hardware - memory problem

2020-12-16 Thread thelma
On 12/16/2020 03:51 PM, antlists wrote:
> Or is this a 32-bit system WITHOUT extended memory support?
> 
> I don't properly understand it, but with a 32-bit system the kernel uses
> 1GB of memory and user-space uses the other 3GB. Extended memory support
> means each process can have its own 3GB space which enables you to use
> all available memory, but without it I think the entire system is stuck
> in the first 4GB.
> 
> Cheers,
> Wol

Hm..., did I use wrong stage?

stage3-i686-20201116T214503Z.tar.xz
on:
AMD FX(tm)-8150 Eight-Core Processor



Re: [gentoo-user] hardware - memory problem

2020-12-16 Thread thelma
On 12/16/2020 03:34 PM, Mark Knecht wrote:
> On Wed, Dec 16, 2020 at 3:29 PM Mark Knecht  wrote:
>>
>>
>>
>> On Wed, Dec 16, 2020 at 3:22 PM  wrote:
>>>
>>> I run Memtest86 on my old box and it completed 1pass without any errors.
>>> Memtest86 reports 16G memory
>>>
>>> When I boot Gentoo it shows only 3282Mb
>>> free -m
>>>   totalusedfree  shared  buff/cache
>>> available
>>> Mem:   3282 1252475   7 680
>>>   3033
>>>
>>> Is it a motherboard? How to test it?
>>>
>>
>> Start with
>>
>> cat /proc/meminfo
> 
>>
> Or lshw and look for the DIMM modules themselves

cat /proc/meminfo
MemTotal:3360992 kB
MemFree: 2806556 kB
MemAvailable:3077952 kB
Buffers:   97156 kB
Cached:   262116 kB
SwapCached:0 kB
Active:   329656 kB
Inactive: 133864 kB
Active(anon): 104804 kB
Inactive(anon): 2964 kB
Active(file): 224852 kB
Inactive(file):   130900 kB
Unevictable:   0 kB
Mlocked:   0 kB
HighTotal:   2504328 kB
HighFree:2120028 kB
LowTotal: 856664 kB
LowFree:  686528 kB
SwapTotal:   8757244 kB
SwapFree:8757244 kB
Dirty:   292 kB
Writeback: 0 kB
AnonPages:104252 kB
Mapped:93812 kB
Shmem:  3516 kB
KReclaimable:  34340 kB
Slab:  56524 kB
SReclaimable:  34340 kB
SUnreclaim:22184 kB
KernelStack:2256 kB
PageTables: 2596 kB
NFS_Unstable:  0 kB
Bounce:0 kB
WritebackTmp:  0 kB
CommitLimit:10437740 kB
Committed_AS: 987564 kB
VmallocTotal: 122880 kB
VmallocUsed:4080 kB
VmallocChunk:  0 kB
Percpu: 1248 kB
HugePages_Total:   0
HugePages_Free:0
HugePages_Rsvd:0
HugePages_Surp:0
Hugepagesize:   4096 kB
Hugetlb:   0 kB
DirectMap4k:   12280 kB
DirectMap4M:  32 kB


lshw -C memory
 *-memory
   description: System Memory
   physical id: 29
   slot: System board or motherboard
   size: 16GiB
 *-bank:0
  description: DIMM 1333 MHz (0.8 ns)
  physical id: 0
  slot: A0
  size: 4GiB
  width: 64 bits
  clock: 1333MHz (0.8ns)
 *-bank:1
  description: DIMM 1333 MHz (0.8 ns)
  physical id: 1
  slot: A1
  size: 4GiB
  width: 64 bits
  clock: 1333MHz (0.8ns)
 *-bank:2
  description: DIMM 1333 MHz (0.8 ns)
  physical id: 2
  slot: A2
  size: 4GiB
  width: 64 bits
  clock: 1333MHz (0.8ns)
 *-bank:3
  description: DIMM 1333 MHz (0.8 ns)
  physical id: 3
  slot: A3
  size: 4GiB
  width: 64 bits
  clock: 1333MHz (0.8ns)


When I loot at "htop" it only shows:
Mem:155M/3.21G



[gentoo-user] ssh Connection reset by port 22

2020-12-15 Thread thelma
During compiling -uavDN @world one of the package refuse to compile

sys-auth/polkit-0.118::gentoo failed (configure phase):
  econf failed

Call stack:
  ebuild.sh, line  125:  Called src_configure
environment, line 2211:  Called econf '--localstatedir=/var'
'--disable-static' '--enable-man-pages' '--disable-gtk-doc'
'--disable-examples' '--enable-libelogind' '--enable-introspection'
'--enable-nls' '--with-pam-module-dir=/lib/security' '--with-authfw=pam'
'--disable-libsystemd-login'
'--with-systemdsystemunitdir=/lib/systemd/system' '--disable-test'
'--with-os-type=gentoo'
   phase-helpers.sh, line  680:  Called __helpers_die 'econf failed'
  isolated-functions.sh, line  112:  Called die
The specific snippet of code:
die "$@"

Now, I can no longer ssh to to it, I get:
Connection reset by 10.0.0.100 port 22



Re: [gentoo-user] ssh Connection reset by port 22

2020-12-15 Thread thelma
On 12/15/2020 07:53 PM, the...@sys-concept.com wrote:
> During compiling -uavDN @world one of the package refuse to compile
> 
> sys-auth/polkit-0.118::gentoo failed (configure phase):
>   econf failed
[snip]
> 
> Now, I can no longer ssh to to it, I get:
> Connection reset by 10.0.0.100 port 22

perl-cleaner --reallyall -- -av solved the problem with:
sys-auth/polkit-0.118
but I still get the error when trying to ssh:

Connection reset by 10.0.0.100 port 22



Re: [gentoo-user] ssh Connection reset by port 22

2020-12-15 Thread thelma
On 12/15/2020 10:41 PM, cal wrote:
> On 12/15/20 9:36 PM, the...@sys-concept.com wrote:
>> On 12/15/2020 07:53 PM, the...@sys-concept.com wrote:
>>> During compiling -uavDN @world one of the package refuse to compile
>>>
>>> sys-auth/polkit-0.118::gentoo failed (configure phase):
>>>    econf failed
>> [snip]
>>>
>>> Now, I can no longer ssh to to it, I get:
>>> Connection reset by 10.0.0.100 port 22
>>
>> perl-cleaner --reallyall -- -av solved the problem with:
>> sys-auth/polkit-0.118
>> but I still get the error when trying to ssh:
>>
>> Connection reset by 10.0.0.100 port 22
>>
> 
> Is there anything interesting if you run ssh -vvv (you can vary the
> amount of 'v's) to increase the verbosity of the ssh client and see what
> it's doing prior to the connection reset?
> 
> Have you tried restarting sshd on the server?
> 

Nothing that would indicate any error.

OpenSSH_7.5p1-hpn14v12lpk, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "10.0.0.100" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 10.0.0.100 [10.0.0.100] port 22.
debug1: Connection established.
debug1: identity file /home/joseph/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/joseph/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/joseph/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/joseph/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/joseph/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/joseph/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/joseph/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/joseph/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.5p1-hpn14v12lpk
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.1
debug1: match: OpenSSH_8.1 pat OpenSSH* compat 0x0400
debug1: Remote is NON-HPN aware
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 10.0.0.100:22 as 'joseph'
debug3: hostkeys_foreach: reading file "/home/joseph/.ssh/known_hosts"
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection reset by 10.0.0.100 port 22



Re: [gentoo-user] ssh Connection reset by port 22

2020-12-15 Thread thelma
On 12/15/2020 10:41 PM, cal wrote:
> On 12/15/20 9:36 PM, the...@sys-concept.com wrote:
>> On 12/15/2020 07:53 PM, the...@sys-concept.com wrote:
>>> During compiling -uavDN @world one of the package refuse to compile
>>>
>>> sys-auth/polkit-0.118::gentoo failed (configure phase):
>>>    econf failed
>> [snip]
>>>
>>> Now, I can no longer ssh to to it, I get:
>>> Connection reset by 10.0.0.100 port 22
>>
>> perl-cleaner --reallyall -- -av solved the problem with:
>> sys-auth/polkit-0.118
>> but I still get the error when trying to ssh:
>>
>> Connection reset by 10.0.0.100 port 22
>>
> 
> Is there anything interesting if you run ssh -vvv (you can vary the
> amount of 'v's) to increase the verbosity of the ssh client and see what
> it's doing prior to the connection reset?
> 
> Have you tried restarting sshd on the server?

tail -f /var/log/auth.log (on the server)
does not show any log-in attempt

only:
sshd: Server listening on 0.0.0.0 port 22
sshd: Server listening on :: port 22




[gentoo-user] ERROR: asterisk failed to start

2020-12-22 Thread thelma
This is new asterisk (-13.36.0) installation when I try to start it, I get an 
error:

 * Caching service dependencies ... 
   [ ok ]
 * Starting asterisk PBX ...
 *   Max open filedescriptors  : 4096
 *   Starting asterisk as  : asterisk:asterisk (+supplementaries)
 *   Signalling asterisk wrapper script to terminate ...   
[ !! ]
 * ERROR: asterisk failed to start

When I re-emerge I get:

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) net-misc/asterisk-13.36.0::gentoo
>>> Installing (1 of 1) net-misc/asterisk-13.36.0::gentoo
>>> Jobs: 1 of 1 complete   

!!! existing preserved libs found








Re: [gentoo-user] CPU you selected does not support x86-64 instruction set

2020-12-14 Thread thelma
On 12/14/2020 09:38 PM, J. Roeleveld wrote:
> On 15 December 2020 02:21:22 CET, the...@sys-concept.com wrote:
>>
>> By mistake on new installation I untar wrong: stage-3  x86_64 instead
>> of
>> i686
>>
>> during kernel compiling I got:
>> cc1: error: CPU you selected does not support x86-64 instruction set
>>
>> Is it possible to untar new stage-3 (i686) over current one, or I need
>> to delete all the folders?
> 
> To avoid any leftover files causing issues, I would start over.
> 
> --
> Joost

You are correct, it is easier to start over.





Re: [gentoo-user] CPU you selected does not support x86-64 instruction set

2020-12-14 Thread thelma
On 12/14/2020 11:17 PM, the...@sys-concept.com wrote:
> On 12/14/2020 06:21 PM, the...@sys-concept.com wrote:
>>
>> By mistake on new installation I untar wrong: stage-3  x86_64 instead of
>> i686
>>
>> during kernel compiling I got:
>> cc1: error: CPU you selected does not support x86-64 instruction set
>>
>> Is it possible to untar new stage-3 (i686) over current one, or I need
>> to delete all the folders?
> 
> After selecting stage-3 (i686) I still get the same error message when
> trying to compile kernel:
> 
> CC  scripts/mod/empty.o
> cc1: error: CPU you selected does not support x86-64 instruction set
> make[1]: *** [scripts/Makefile.build:266: scripts/mod/empty.o] Error 1
> make: *** [Makefile:1137: prepare0] Error 2
> 
> The CPU I have:
> AMD FX(tm)-8150 Eight-Core Processor
> 
> make.conf
> COMMON_FLAGS="-march=native -O2 -pipe"
> #COMMON_FLAGS="-O2 -march=i686 -pipe"
> CFLAGS="${COMMON_FLAGS}"
> CXXFLAGS="${COMMON_FLAGS}"
> FCFLAGS="${COMMON_FLAGS}"
> FFLAGS="${COMMON_FLAGS}"
> CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"

SOLVED:
One need to disable "64-bit kernel" in the root of the menuconfig.



Re: [gentoo-user] CPU you selected does not support x86-64 instruction set

2020-12-14 Thread thelma
On 12/14/2020 06:21 PM, the...@sys-concept.com wrote:
> 
> By mistake on new installation I untar wrong: stage-3  x86_64 instead of
> i686
> 
> during kernel compiling I got:
> cc1: error: CPU you selected does not support x86-64 instruction set
> 
> Is it possible to untar new stage-3 (i686) over current one, or I need
> to delete all the folders?

After selecting stage-3 (i686) I still get the same error message when
trying to compile kernel:

CC  scripts/mod/empty.o
cc1: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [scripts/Makefile.build:266: scripts/mod/empty.o] Error 1
make: *** [Makefile:1137: prepare0] Error 2

The CPU I have:
AMD FX(tm)-8150 Eight-Core Processor

make.conf
COMMON_FLAGS="-march=native -O2 -pipe"
#COMMON_FLAGS="-O2 -march=i686 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"




Re: [gentoo-user] CPU you selected does not support x86-64 instruction set

2020-12-14 Thread thelma
On 12/14/2020 11:50 PM, J. Roeleveld wrote:
> On Tuesday, December 15, 2020 7:17:57 AM CET the...@sys-concept.com wrote:
>> On 12/14/2020 06:21 PM, the...@sys-concept.com wrote:
>>> By mistake on new installation I untar wrong: stage-3  x86_64 instead of
>>> i686
>>>
>>> during kernel compiling I got:
>>> cc1: error: CPU you selected does not support x86-64 instruction set
>>>
>>> Is it possible to untar new stage-3 (i686) over current one, or I need
>>> to delete all the folders?
>>
>> After selecting stage-3 (i686) I still get the same error message when
>> trying to compile kernel:
>>
>> CC  scripts/mod/empty.o
>> cc1: error: CPU you selected does not support x86-64 instruction set
>> make[1]: *** [scripts/Makefile.build:266: scripts/mod/empty.o] Error 1
>> make: *** [Makefile:1137: prepare0] Error 2
>>
>> The CPU I have:
>> AMD FX(tm)-8150 Eight-Core Processor
> 
> Isn't this a 64-bit CPU?
> If you boot using a 64bit live-image (the gentoo-admin ISO as an example), 
> you 
> should be able to actually use 64bit.
> 
> --
> Joost

I'm confused as well, setting from make.conf on this CPU with previous
kernel was:
CHOST="x86_64-pc-linux-gnu"




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] 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 ???



[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



[gentoo-user] CPU you selected does not support x86-64 instruction set

2020-12-14 Thread thelma


By mistake on new installation I untar wrong: stage-3  x86_64 instead of
i686

during kernel compiling I got:
cc1: error: CPU you selected does not support x86-64 instruction set

Is it possible to untar new stage-3 (i686) over current one, or I need
to delete all the folders?



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



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

2020-12-14 Thread thelma
On 12/14/2020 02:03 AM, Michael wrote:
> On Monday, 14 December 2020 00:27:03 GMT the...@sys-concept.com wrote:
>> 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
[snip]
>>
>> Both had same output, so why one kernel was working the other didn't?
> 
> Were both of these kernels installed with a corresponding correctly 
> functioning initramfs, which had all the requisite files (including --
> firmware) to boot with, or only one of them did?
> 
> Without an initramfs you will need to specify and build any requisite 
> firmware 
> blobs in the kernel image itself, so they are available to the system as it 
> boots up.

 Since I was able to make "nvidia" work I abandon fighting with
installing/enabling "nouveau"
Originally I wanted to have it as a backup switching between these two
(just in case) but it is not an easy project.



Re: [gentoo-user] Re: Upgrade an old system

2020-12-14 Thread thelma
On 12/14/2020 02:55 PM, Grant Edwards wrote:
> On 2020-12-14, the...@sys-concept.com  wrote:
>> I'm having similar problem as "n952162" upgrading an old (last updated
>> 1.8-year ago)
> 
> If I were youe, I'd just reinstall after 1.8 years. Updating is going
> to take way, way more work.
> 
> --
> Grant

I was thinking the same thing. But I'll try first if its possible to
upgrade.



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  ] 

[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] 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



[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] 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? 



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] 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] 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"



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] 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] 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] 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] 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 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.


 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] kernel support for: i211 - intel network driver

2020-11-13 Thread thelma
I have Asus X570-pro MB with Intel I211-AT network
When I compiled into the kernel (not as module) the "IGB" network driver
but the network is not recognized.

lsmod |grep igb is not showing anything.

I think the above commend only show anything if I compile it as a
module, isn't it?
If I compile it into the kernel, it will not show anything.

Anyhow, what driver should I use.

-- 
Thelma



[gentoo-user] duplicate gentoo system

2020-11-17 Thread thelma
I'm looking for an idea to duplicate my old gentoo system.
I'm using old programs that require older version php, ( PHP Version
5.6) the program is not compatible with newer php. 7.4 and apache 2.2

Gentoo is install on 1TB  SSD  (/dev/sda)
The new 2TB  SSD is M.2 (so it has a strange name)

1.) Is my option only:
dd if=/dev/sdX of=/dev/sdY bs=64K conv=noerror,sync

If I duplicate the drive this way I'll end-up with two partitions, as
I'll have 1TB free on a new drive.  Or is there a way to resize
partition on M.2 SSD

2.) Another options, I could dig-out the old programs from "attic", but
that will not be an easy job.

-- 
Thelma



Re: [gentoo-user] duplicate gentoo system

2020-11-17 Thread thelma
On 11/17/2020 11:26 AM, Michael wrote:
> On Tuesday, 17 November 2020 17:47:09 GMT the...@sys-concept.com wrote:
>> I'm looking for an idea to duplicate my old gentoo system.
>> I'm using old programs that require older version php, ( PHP Version
>> 5.6) the program is not compatible with newer php. 7.4 and apache 2.2
>>
>> Gentoo is install on 1TB  SSD  (/dev/sda)
>> The new 2TB  SSD is M.2 (so it has a strange name)
>>
>> 1.) Is my option only:
>> dd if=/dev/sdX of=/dev/sdY bs=64K conv=noerror,sync
>>
>> If I duplicate the drive this way I'll end-up with two partitions, as
>> I'll have 1TB free on a new drive.  Or is there a way to resize
>> partition on M.2 SSD
>>
>> 2.) Another options, I could dig-out the old programs from "attic", but
>> that will not be an easy job.
> 
> You could go about this in a number of different ways.
> 
> dd command will take forever, as it is copying every bit and byte from one 
> disk to the next, whether it contains data or not.
> 
> I prefer to use a clonezilla liveUSB to copy a disk or selected partitions 
> between disks, which will take significantly less time as only blocks with 
> data get copied over.
> 
> You can increase the partition size after you finish copying it onto the new 
> disk and then the filesystem size within it.  Gparted can run both steps in a 
> single stroke.
> 
> If you prefer a more manual and tedious way, you can create a partition as 
> large as you need it to be on the new disk, format it with a filesystem of 
> choice, then use rsync or tar to copy over the files you want and --exclude 
> anything you don't want copied over.

Thanks for the input, will try on the weekend.




Re: [gentoo-user] duplicate gentoo system

2020-11-17 Thread thelma
On 11/17/2020 11:26 AM, Michael wrote:
> On Tuesday, 17 November 2020 17:47:09 GMT the...@sys-concept.com wrote:
>> I'm looking for an idea to duplicate my old gentoo system.
>> I'm using old programs that require older version php, ( PHP Version
>> 5.6) the program is not compatible with newer php. 7.4 and apache 2.2
>>
>> Gentoo is install on 1TB  SSD  (/dev/sda)
>> The new 2TB  SSD is M.2 (so it has a strange name)
>>
>> 1.) Is my option only:
>> dd if=/dev/sdX of=/dev/sdY bs=64K conv=noerror,sync
>>
>> If I duplicate the drive this way I'll end-up with two partitions, as
>> I'll have 1TB free on a new drive.  Or is there a way to resize
>> partition on M.2 SSD
>>
>> 2.) Another options, I could dig-out the old programs from "attic", but
>> that will not be an easy job.
> 
> You could go about this in a number of different ways.
> 
> dd command will take forever, as it is copying every bit and byte from one 
> disk to the next, whether it contains data or not.
> 
> I prefer to use a clonezilla liveUSB to copy a disk or selected partitions 
> between disks, which will take significantly less time as only blocks with 
> data get copied over.
> 
> You can increase the partition size after you finish copying it onto the new 
> disk and then the filesystem size within it.  Gparted can run both steps in a 
> single stroke.
> 
> If you prefer a more manual and tedious way, you can create a partition as 
> large as you need it to be on the new disk, format it with a filesystem of 
> choice, then use rsync or tar to copy over the files you want and --exclude 
> anything you don't want copied over.

Manual approach might be confusing and prone to errors.
I will try Gparted as you suggested but I was wondering if it will allow
me to combine/join partitions.  On most modern system I think there is:
1 - boot partiton
2 - swap if needed
3 - root partition (where home is as well)

My current layout is old one:
dev/sda1/boot   ext2
/dev/sda3   /   ext4
/dev/sda2   noneswap
/dev/sda4   /home   ext4

Is it possible with Gparted combine "/" and "home" partitions, or is it
as simple as coping all file from "home" partition to "/" home folder.







[gentoo-user] duplicate gentoo system - errors

2020-11-22 Thread thelma
OK, I used Gparted (Bootable usb) to copy partition from:
Western Digital driver, usually:
/dev/sda1 etc

to M.2 SSD
/dev/ nvme0n1p1 etc

I can boot M.2 drive, but the x-server doesn't work (even though I use
same graphical card).  Network is not working (easy fix, new driver
needs to be compiled IN) but there is a bigger problem.

Duplicating was easy, but when I try to recompile a kernel I get an error:

make menuconfig
HOSTCC script/kconfig/mconf.o
 : internal compiler error: Illegal instruction

Even if I try to run: emerge --info  I get:
Illegal instruction

In addition my fstab doesn't look correct (but it works)
/dev/sda1/bootext2

It should be something like:
/dev/nvme0n1p1   /boot   ext2

-- 
Thelma



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

2020-11-22 Thread thelma


On 11/22/2020 05:25 PM, Michael wrote:
> On Sunday, 22 November 2020 23:39:44 GMT the...@sys-concept.com wrote:
>> OK, I used Gparted (Bootable usb) to copy partition from:
>> Western Digital driver, usually:
>> /dev/sda1 etc
>>
>> to M.2 SSD
>> /dev/ nvme0n1p1 etc
>>
>> I can boot M.2 drive, but the x-server doesn't work (even though I use
>> same graphical card).  Network is not working (easy fix, new driver
>> needs to be compiled IN) but there is a bigger problem.
> 
> If you have cloned each partition from the old to the new disk, then the new 
> disk should work exactly as the old disk does.  I mean, it should have the 
> same kernel, the same / filesystem, the same modules, etc.
> 
> Since the new disk is an nvme drive, you will need additional drivers - 
> should 
> these not be available in the old kernel.
> 
> 
>> Duplicating was easy, but when I try to recompile a kernel I get an error:
>>
>> make menuconfig
>> HOSTCC script/kconfig/mconf.o
>>  : internal compiler error: Illegal instruction
>>
>> Even if I try to run: emerge --info  I get:
>> Illegal instruction
>>
>> In addition my fstab doesn't look correct (but it works)
>> /dev/sda1/bootext2
>>
>> It should be something like:
>> /dev/nvme0n1p1   /boot   ext2
> 
> Do you have both disks connected to the MoBo when you're trying to boot from 
> the new disk?

Yes, they are both connected

> Have you changed the UUIDs on the new partitions?

Never used UUID in fstab. Do I just run: blkid|grep UUID
and copy it to fstab.

> Have you installed the boot manager on the new disk (if using MBR)?

I just copied the whole MBR to a new disk and it worked, the system
boots, but nothing can be compiled.




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

2020-11-22 Thread thelma
On 11/22/2020 06:16 PM, Jack wrote:
> On 2020.11.22 20:09, the...@sys-concept.com wrote:
>> On 11/22/2020 05:25 PM, Michael wrote:
>> > On Sunday, 22 November 2020 23:39:44 GMT the...@sys-concept.com wrote:
>> >> OK, I used Gparted (Bootable usb) to copy partition from:
>> >> Western Digital driver, usually:
>> >> /dev/sda1 etc
>> >>
>> >> to M.2 SSD
>> >> /dev/ nvme0n1p1 etc
>> >>
>> >> I can boot M.2 drive, but the x-server doesn't work (even though I use
>> >> same graphical card).  Network is not working (easy fix, new driver
>> >> needs to be compiled IN) but there is a bigger problem.
>> >
>> > If you have cloned each partition from the old to the new disk, then
>> the new
>> > disk should work exactly as the old disk does.  I mean, it should
>> have the
>> > same kernel, the same / filesystem, the same modules, etc.
>> >
>> > Since the new disk is an nvme drive, you will need additional
>> drivers - should
>> > these not be available in the old kernel.
>> >
>> >
>> >> Duplicating was easy, but when I try to recompile a kernel I get an
>> error:
>> >>
>> >> make menuconfig
>> >> HOSTCC script/kconfig/mconf.o
>> >>  : internal compiler error: Illegal instruction
>> >>
>> >> Even if I try to run: emerge --info  I get:
>> >> Illegal instruction
>> >>
>> >> In addition my fstab doesn't look correct (but it works)
>> >> /dev/sda1    /boot    ext2
>> >>
>> >> It should be something like:
>> >> /dev/nvme0n1p1   /boot   ext2
>> >
>> > Do you have both disks connected to the MoBo when you're trying to
>> boot from
>> > the new disk?
>>
>> Yes, they are both connected
>>
>> > Have you changed the UUIDs on the new partitions?
>>
>> Never used UUID in fstab. Do I just run: blkid|grep UUID
>> and copy it to fstab.
>>
>> > Have you installed the boot manager on the new disk (if using MBR)?
>>
>> I just copied the whole MBR to a new disk and it worked, the system
>> boots, but nothing can be compiled.
> I would confirm that you are really booted from the new disk and not the
> old one.  It is possible that the MBR from the new disk was used to
> boot, but if /etc/fstab says /boot is mounted from /dev/sda1 then that
> does seem wrong.  I almost always put an empty file in the root of each
> partition named for the disk/partition just so I can be sure what's
> actually mounted.  Is /etc/fstab identical on both disks?  What does
> fstab say about where / is mounted from?

You are absolutely correct.  I was booting the whole time the Western
Digital (old drive). :-/  My mistake, once I removed the WD drive the
new M.2 SSD doesn't even boot.
I think the easiest way would be to re-install the Getnoo from scratch
and dig out the old programs I need from "attic".  Mixing/moving SSD
(sda) and M2.2 (nvme0n1) and transferring partitions might not be as easy.




[gentoo-user] locating non utf-8 characters

2020-11-02 Thread thelma
I'm using sql-ledger and while making backup it uses stardard gzip program:
$gzip = "gzip -S .gz";

The backup works with some dataset but one data set us giving me an
error while trying to perform backup:

Wide character in print at SL/AM.pm line 2044.
Content-Type: application/file; Content-Disposition: attachment;
filename=dataset_3-3.2.6-20201101.sql.gz
ãù&ü_1604265628.dataset_3-3.2.6-20201101.sqlÏ\Yo;ñ~œØ –

Since sql-ledger file are standard utf-8 files, I was thinking using:
 grep -axv '.*' file

would find all not utf-8 characters. And it did. I use "nano" to remove
them but I'm still getting the same error while performing backup.

Any ideas?

-- 
Thelma



[gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-28 Thread thelma
After installing apache 2.4 I can not access server subdirectory:
server/admin/index.html

Forbiden
You don't have permission to access /admin/index.html on this server

I can access index.html in a directory below /admin (server/index.html)
but not the server/admin/index.html

I even change the permission on the index file:
-rwxrwxrwx  1 apache apache   428 Oct 28 16:44 index.html

I removed .htaccess from server/admin (it doesn't help)

In apache.conf


Options FollowSymLinks
AllowOverride None
Require all denied



AllowOverride None
Require all granted



Options FollowSymLinks
AllowOverride None
Require all granted



-- 
Thelma



Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-30 Thread thelma
On 10/30/2020 04:31 AM, Michael wrote:
[snip]
>>
>> This is from apache.conf
>>
>> 
>> Options FollowSymLinks
>> AllowOverride None
>> Require all denied
>> 
>>
>> 
>> AllowOverride None
>> Require all granted
>> 
>>
>> 
>> Options FollowSymLinks
>> AllowOverride All
>> Require all granted
>> 
>>
>> I just search all server .htaccess files for "AllowOverride" but none is
>> active in these files.
>> grep -Rnw '/var/www/html/catalog/' -e 'AllowOverride'
> 
> You wouldn't find "AllowOverride" within an .htaccess file.  This is a 
> directive placed in the main /etc/apache2 configuration files to determine if 
> directives contained in local filesystem .htaccess files will be processed or 
> not.  An 'AllowOverride None' will ignore .htaccess directives and make the 
> server speedier in responding to requests.  TBH .htaccess are typically used 
> locally, when you are not allowed to make changes to the main apache 
> configuration files.  Note, if you changed the name of ".htaccess" with the 
> 'AccessFileName' directive, you may end up missing it.
> 
> Another thing to check is any changes to the default 'DirectoryIndex' types, 
> for the particular subdirectory.  If you have removed index.html or 
> index.html.var in this directive then apache won't serve index files when a 
> directory like admin/ is requested.
> 
> Finally, you could increase the log verbosity to debug level and see if more 
> information is revealed as to the cause of this problem.

I have a bigger problem.
The apache 2.4 doesn't read configuration files.
In apache2.conf I have:

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

So it should read read every *config file in sites-enabled/
In that directory I have:

ll sites-enabled/
lrwxrwxrwx 1 root root   35 Oct 27 21:15 000-default.conf ->
../sites-available/000-default.conf
-rw-r--r-- 1 root root 3420 Oct 29 18:03 vhosts.conf

vhosts.conf - define my web-site, but I commented everything out in that
file (it is empty) and restarted apache:
/etc/init.d/apache2 restart

And I can still display my web page.
How is it possible???




Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-29 Thread thelma
On 10/29/2020 06:21 AM, Remco Rijnders wrote:
> On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in
> <7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>:
>> After installing apache 2.4 I can not access server subdirectory:
>> server/admin/index.html
>>
>> Forbiden
>> You don't have permission to access /admin/index.html on this server
>>
>> I can access index.html in a directory below /admin (server/index.html)
>> but not the server/admin/index.html
> 
> That seems to suggest that either the permissions or ownership of
> admin/index.html are different from admin/server/index.html, or that
> there is a
> difference of that kind between the directories admin/ and admin/server.
> Are
> they?

Here are the permissions:

index on server/
-rw-r--r--  1 root root19078 Jan 14  2011 index.php

index on server/admin/
drwxr-xr-x  6 root root 4096 Oct 28 22:08 admin
-rwxrwxrwx  1 apache apache   428 Oct 28 16:44 index.html

It works on Apache 2.2 but not Apache 2.4



Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-30 Thread thelma
On 10/30/2020 11:55 AM, Michael wrote:
> On Friday, 30 October 2020 16:27:05 GMT the...@sys-concept.com wrote:
> 
>> I have a bigger problem.
>> The apache 2.4 doesn't read configuration files.
>> In apache2.conf I have:
>>
>> # Include the virtual host configurations:
>> IncludeOptional sites-enabled/*.conf
>>
>> So it should read read every *config file in sites-enabled/
>> In that directory I have:
>>
>> ll sites-enabled/
>> lrwxrwxrwx 1 root root   35 Oct 27 21:15 000-default.conf ->
>> ../sites-available/000-default.conf
>> -rw-r--r-- 1 root root 3420 Oct 29 18:03 vhosts.conf
> 
> I have different configuration files, one for each website.  This makes it 
> easier to know where to look and what to edit when I want to make changes.
> 
> 
>> vhosts.conf - define my web-site, but I commented everything out in that
>> file (it is empty) and restarted apache:
>> /etc/init.d/apache2 restart
>>
>> And I can still display my web page.
>> How is it possible???
> 
> I would assume it is possible to still display your website because the main 
> apache2.conf and/or ./sites-available/000-default.conf contain some default 
> settings which specify the DocumentRoot where your website filesystem resides.
> 
> Your approach to start from first principles by commenting out individual 
> configurations is sound, because you can check in this way what works and 
> what 
> does not.

I check all configuration files for "DocumentRoot" and all the files
have DocumentRoot commented out (so nothing is active)
grep -Rnw '/etc/apache2/' -e 'DocumentRoot'

Restarted apache 2.4 and the web-page is still loading :-/




[gentoo-user] Apache 2.4 .htaccess allows access

2020-10-31 Thread thelma
My server box ip is 10.0.0.109
In my .htaccess file I've tried



Require all denied
/RequireAll>


I can still access the server

I tried:

Require all denied


No difference, it allow me to access the server, and I know apache reads
the .htaccess file

-- 
Thelma



Re:[SOLVED] [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-31 Thread thelma


On 10/30/2020 12:34 PM, Michael wrote:
[snip]
 vhosts.conf - define my web-site, but I commented everything out in that
 file (it is empty) and restarted apache:
 /etc/init.d/apache2 restart

 And I can still display my web page.
 How is it possible???
>>>
>>> I would assume it is possible to still display your website because the
>>> main apache2.conf and/or ./sites-available/000-default.conf contain some
>>> default settings which specify the DocumentRoot where your website
>>> filesystem resides.
>>>
>>> Your approach to start from first principles by commenting out individual
>>> configurations is sound, because you can check in this way what works and
>>> what does not.
>>
>> I check all configuration files for "DocumentRoot" and all the files
>> have DocumentRoot commented out (so nothing is active)
>> grep -Rnw '/etc/apache2/' -e 'DocumentRoot'
>>
>> Restarted apache 2.4 and the web-page is still loading :-/
> 
> ServerRoot specified somewhere?  Increase log verbosity and see what it 
> reports, otherwise I'm out of ideas!

Solved.
For some reason or another in my /etc/hosts file I had:
10.0.0.112  server.ca

And apache was accessing my production box1

box1 - production
box2 - work in progress

I changed in hosts to:
10.0.0.112  www.server.ca

And apache was resolving accessing box2 only.
Strange.







Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-29 Thread thelma
On 10/29/2020 10:53 AM, Michael wrote:
> On Thursday, 29 October 2020 14:10:07 GMT the...@sys-concept.com wrote:
>> On 10/29/2020 06:21 AM, Remco Rijnders wrote:
>>> On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in
>>>
>>> <7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>:
>>>> After installing apache 2.4 I can not access server subdirectory:
>>>> server/admin/index.html
>>>>
>>>> Forbiden
>>>> You don't have permission to access /admin/index.html on this server
>>>>
>>>> I can access index.html in a directory below /admin (server/index.html)
>>>> but not the server/admin/index.html
>>>
>>> That seems to suggest that either the permissions or ownership of
>>> admin/index.html are different from admin/server/index.html, or that
>>> there is a
>>> difference of that kind between the directories admin/ and admin/server.
>>> Are
>>> they?
>>
>> Here are the permissions:
>>
>> index on server/
>> -rw-r--r--  1 root root19078 Jan 14  2011 index.php
> 
> The above is a .php file.

Yes, it is and I can read that file.  The files that I can not access
are in:
server/admin/index.html

> 
> 
>> index on server/admin/
>> drwxr-xr-x  6 root root 4096 Oct 28 22:08 admin
>> -rwxrwxrwx  1 apache apache   428 Oct 28 16:44 index.html
> 
> You shouldn't need apache:apache or 0777 ownership of this file which is very 
> insecure, unless apache is meant to be editing it live.  Normally root:root 
> and 0755 is what is used.

Yes, I'll change that.  I just use it temporarily as I run out of ideas
to try :-/

> 
> Is 'server/' a subdirectory of '/var/www/'?

Yes

> .htaccess won't work if you have disabled it with 'AllowOverride None'. 

Thank you for the pointer.  I just change this directive in apache.conf
for /var/www/  and restarted apache but there is no difference.  I still
can not access /server/admin/ directory from apache.  server =
/var/www/html/catalog/

This is from apache.conf


Options FollowSymLinks
AllowOverride None
Require all denied



AllowOverride None
Require all granted



Options FollowSymLinks
AllowOverride All
Require all granted


I just search all server .htaccess files for "AllowOverride" but none is
active in these files.
grep -Rnw '/var/www/html/catalog/' -e 'AllowOverride'

> 
>> It works on Apache 2.2 but not Apache 2.4
> 
> Directives changed on version 2.4.  It would be worth familiarising yourself 
> with the latest:
> 
> https://httpd.apache.org/docs/2.4/upgrading.html
> 



[gentoo-user] x2go server - Connection failed. /usr/lib64/x2go/x2gocheckport: line 131: DBD::SQLite::db:

2020-12-30 Thread thelma
I just installed x2goserver-4.1.0.2 (fuse sqlite -postgres) and I'm
getting an error trying to connect to the server:

Connection failed. /usr/lib64/x2go/x2gocheckport: line 131:
DBD::SQLite::db: syntax error in expression (error token is
"::SQLite::db") /usr/lib64/x2go/x2gocheckport: line 131:
DBD::SQLite::db: syntax error in expression (error token is
"::SQLite::db") /usr/lib64/x2go/x2gocheckport: line 131:
DBD::SQLite::db: syntax error in expression (error token is
"::SQLite::db") /usr/lib64/x2go/x2gocheckport: line 131:
DBD::SQLite::db: syntax error in expression (error token is
"::SQLite::db") /usr/lib64/x2go/x2gocheckport: line 131:
DBD::SQLite::db: syntax error in expression (error token is
"::SQLite::db") /usr/lib64/x2go/x2gocheckport: line 131:
DBD::SQLite::db: syntax error in expression (error token is
"::SQLite::db") /usr/lib64/x2go/x2gocheckport: line 131:
DBD::SQLite::db: syntax error in expression (error token is
"::SQLite::db") /usr/lib64/x2go/x2gocheckport: line 131:
DBD::SQLite::db: syntax error in expression (error token is
"::SQLite::db") /usr/lib64/x2go/x2gocheckport: line 131:
DBD::SQLite::db: syntax error in expression (error token is
"::SQLite::db") /usr/lib64/x2go/x2gocheckport: line 131:
DBD::SQLite::db: syntax error in expression (error token is
"::SQLite::db") Unable to find free display port or insert new session
into database; parameters: port (50), hostname (syscon7) and session
name ().

The server starts without any errors but client can not connect to it.



Re: [gentoo-user] x2go server - Connection failed. /usr/lib64/x2go/x2gocheckport: line 131: DBD::SQLite::db:

2020-12-30 Thread thelma
On 12/30/2020 02:10 PM, the...@sys-concept.com wrote:
> I just installed x2goserver-4.1.0.2 (fuse sqlite -postgres) and I'm
> getting an error trying to connect to the server:

I've missed the find print:
x2godbadmin --createdb



[gentoo-user] x2goserver - very slow

2020-12-30 Thread thelma
The current x2goserver-4.1.0.2 is very, very slow.

I am still runing older x2goserver-4.0.1.22 and the speed is OK but the
current one 4.1.0.2 is very slow over local LAN regardless of the
setting I use.






Re: [gentoo-user] Apache 2.4 - set SecStatusEngine to On

2021-01-03 Thread thelma




Thelma
On 1/3/21 9:02 AM, Michael wrote:
> On Saturday, 2 January 2021 04:46:58 GMT the...@sys-concept.com wrote:
>> Status engine is currently disabled, enable it by set SecStatusEngine to On.
>>
>> How to enable "SecStatusEngine to On" in Apache 2.4
>>
>>  From my log file:
>> [Fri Jan 01 19:44:52.649498 2021] [core:notice] [pid 14152] 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'
>> [Fri Jan 01 21:10:26.781254 2021] [mpm_prefork:notice] [pid 14152]
>> AH00169: caught SIGTERM, shutting down
>> [Fri Jan 01 21:10:27.871561 2021] [:notice] [pid 16586] ModSecurity for
>> Apache/2.9.3 (http://www.modsecurity.org/) configured.
>> [Fri Jan 01 21:10:27.871577 2021] [:notice] [pid 16586] ModSecurity: APR
>> compiled version="1.7.0"; loaded version="1.7.0"
>> [Fri Jan 01 21:10:27.871579 2021] [:notice] [pid 16586] ModSecurity:
>> PCRE compiled version="8.44 "; loaded version="8.44 2020-02-12"
>> [Fri Jan 01 21:10:27.871581 2021] [:notice] [pid 16586] ModSecurity:
>> LIBXML compiled version="2.9.10"
>> [Fri Jan 01 21:10:27.871582 2021] [:notice] [pid 16586] ModSecurity:
>> Status engine is currently disabled, enable it by set SecStatusEngine to On.
> 
> I would think you set it on in the config file for your vhost.  I don't use 
> this function, but there are instructions how to configure it here:
> 
> https://github.com/SpiderLabs/ModSecurity/wiki
> 
> HTH.

Adding:
SecStatusEngine  On

to: 79_mod_security.conf

solved the problem, the error message went away, but I'm puzzled why these 
messages appear in file:  error_log
these are not error logs just information. 




Re: [gentoo-user] Thunderbird - Unable to save your message as a draft.

2021-01-05 Thread thelma
On 1/5/21 1:16 PM, antlists wrote:
> On 04/01/2021 20:18, the...@sys-concept.com wrote:
>> With Thunderbird-78.6.0 I'm getting an error message when composing messages:
>>
>> Unable to save your message as a draft.
>> Sending of the message failed.
>>
>> What is the solution? I've run onto few of them but they are mostly for 
>> Windows users not really applicable to Linux.
>>
> Is your drafts folder on a network? Is the network available? I've hit that 
> problem a few times.
> 
> Cheers,
> Wol

No, it was on a local computer. 
I restore emails from old computer (lost one day of emails) and now it is 
working. But I don't know what had happened.
I've tried to restore only specific folders "Drafts" from old computer but it 
did not help, so it must have had something to do with other configuration. 
I've notices others had similar issues but solution is not standard across as 
TB has different menu layout through out platforms and versions.   They are 
making it hard to configure it.
As an example is a line wrapping, and old version of TB had this under "Option" 
menu (I think); now they hide it it some obscure configuration menu under "Edit 
--> Preferences --> General)




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

2021-01-10 Thread thelma
On 1/10/21 3:46 PM, antlists wrote:
> On 10/01/2021 21:42, the...@sys-concept.com wrote:
>> I want to move /home directory to a new partition (save drive).
>>
>> I have 1-SSD drive:
>> Filesystem  Size  Used Avail Use%
>> /dev/sda4   916G  405G  464G  47% /
>>
>>
>> Home directory is on it taking about 360GB
>>
>> I was planning doing it in stages.
>>
>> Stage-1
>> Using Gparted to resize "/" portion shirk it to about 450GB
>> create new ext4 partition  for /home /dev/sda5
>>
>> Boot-strap the PC with live-gentoo
>> mv /home /home.org
>> mkdir /home
>> mount ext4 /dev/sda5 /home/
>>
>> cp -rp /home.org/*  /home/
>>
>> edit fstab:
>> /dev/sda5    /home    ext4    default  0  0
>> reboot and test home
>>
>> Am I missing something?
> 
> Couple of things.
> 
> Firstly, why use a gentoo live disk? Just log in as root.
> 
> Secondly, why rename home? Just mount sda5 on /mnt to do the move, then add 
> it to fstab to mount on /home.
> 
> And a little bit you might have missed - DON'T put root's home on a mounted 
> disk - if it's currently in /home, move it to /. Don't forget to edit 
> /etc/passwd if you have to move it.

Can you elaborate pls.?
My current "home" is in "/"; so why move it there, it is already there.  
I don't have extra disk around, but I could copy /home over network to another 
PC.

I was planning to move "home" to another partition as I plan to wipe old 
installation (it is impossible for me to upgrade); it will be easier to 
reinstall.
My old installation is: 
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)

Since, old installation has home or "/" (root) partition, if I wipe the root, 
home will be gone as well.  So I was planning on moving "home" to another 
partition, this way all data will be there.
So, after moving "home" to another partition "sda5" I can wipe the "sda4" and 
re-install gentoo.  "home" data would not be touched by upgrade. 




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

2021-01-10 Thread thelma
On 1/10/21 6:57 PM, Wols Lists wrote:
> On 11/01/21 00:31, the...@sys-concept.com wrote:
>> On 1/10/21 3:46 PM, antlists wrote:
>>> On 10/01/2021 21:42, the...@sys-concept.com wrote:
 I want to move /home directory to a new partition (save drive).

 I have 1-SSD drive:
 Filesystem  Size  Used Avail Use%
 /dev/sda4   916G  405G  464G  47% /


 Home directory is on it taking about 360GB

 I was planning doing it in stages.

 Stage-1
 Using Gparted to resize "/" portion shirk it to about 450GB
 create new ext4 partition  for /home /dev/sda5

 Boot-strap the PC with live-gentoo
 mv /home /home.org
 mkdir /home
 mount ext4 /dev/sda5 /home/

 cp -rp /home.org/*  /home/

 edit fstab:
 /dev/sda5/homeext4default  0  0
 reboot and test home

 Am I missing something?
>>>
>>> Couple of things.
>>>
>>> Firstly, why use a gentoo live disk? Just log in as root.
>>>
>>> Secondly, why rename home? Just mount sda5 on /mnt to do the move, then add 
>>> it to fstab to mount on /home.
>>>
>>> And a little bit you might have missed - DON'T put root's home on a mounted 
>>> disk - if it's currently in /home, move it to /. Don't forget to edit 
>>> /etc/passwd if you have to move it.
>>
>> Can you elaborate pls.?
>> My current "home" is in "/"; so why move it there, it is already there.  
>> I don't have extra disk around, but I could copy /home over network to 
>> another PC.
> 
> Are you logging in as root?! THAT'S DANGEROUS!
> 
> Probably not, you are probably misunderstanding me.
> 
> I've just checked, on my system, root's home is /root, which is as it
> should be. Is your home /home/username, or is it /username? You make it
> sound like it's /username, which I don't think is what you mean ...
>>
>> I was planning to move "home" to another partition as I plan to wipe old 
>> installation (it is impossible for me to upgrade); it will be easier to 
>> reinstall.
>> My old installation is: 
>> 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)
>>
>> Since, old installation has home or "/" (root) partition, if I wipe the 
>> root, home will be gone as well.  So I was planning on moving "home" to 
>> another partition, this way all data will be there.
>> So, after moving "home" to another partition "sda5" I can wipe the "sda4" 
>> and re-install gentoo.  "home" data would not be touched by upgrade. 
>>
>>
> Ahh ... you didn't say that! That changes everything!
> 
> Okay. I would look to free about 380GB (just enough) at the end of the
> disk to create sda5 which will be (at least temporarily) your new /home.
> LOGGED IN AS ROOT just mount that on /mnt, and copy the contents of
> /home into it.
> 
> Now using your gentoo install disk delete sda4 and split it into two -
> your new sda4 for your new gentoo, and a new sda5 (AT LEAST as big as
> one you created in the last step), which will shunt the partition you
> just created into sda6. Install your new gentoo.
> 
> Now you've got sda4 (/), sda5 (which will be /home), and sda6 (where
> you've just copied your old /home). Mount sda6 on /mnt again, and copy
> it to /home (sda5).
> 
> Finally, delete sda6, extend sda5 to use the space you've just freed,
> and expand the filesystem on /home to use the full size of the extended
> partition.
> 
> That'll probably leave you with a 150GB /root, but that'll be plenty I
> expect (and a 760GB /home).
> 
> Cheers,
> Wol
> 

Thank you, that will work too!



[gentoo-user] resizing and moving home directory to new partition on save drive

2021-01-10 Thread thelma
I want to move /home directory to a new partition (save drive). 

I have 1-SSD drive:
Filesystem  Size  Used Avail Use% 
/dev/sda4   916G  405G  464G  47% /  


Home directory is on it taking about 360GB

I was planning doing it in stages.

Stage-1
Using Gparted to resize "/" portion shirk it to about 450GB
create new ext4 partition  for /home /dev/sda5

Boot-strap the PC with live-gentoo 
mv /home /home.org
mkdir /home
mount ext4 /dev/sda5 /home/

cp -rp /home.org/*  /home/

edit fstab:
/dev/sda5   /home   ext4default  0  0
reboot and test home

Am I missing something?
If everything works, remove /home.org

Stage-2:
With Gparted resize both root and home portion, giving root about 200GB and 
rest to /home (dev/sda5)




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

2021-01-10 Thread thelma
On 1/10/21 9:26 PM, Adam Carter wrote:
>>
>> Can I use "nano" to edit /etc/password file
>>
> 
> Yes, but it's generally safest to use usermod.

When I try to  use 
usermod -d /mnt/home/thelma -m thelma
I get:
usermod: user thelma is currently used by process 3037

Do I need to boot strap for this to work?



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

2021-01-10 Thread thelma
On 1/10/21 3:46 PM, antlists wrote:
> And a little bit you might have missed - DON'T put root's home on a mounted 
> disk - if it's currently in /home, move it to /. Don't forget to edit 
> /etc/passwd if you have to move it.

Can I use "nano" to edit /etc/password file 
all I need to change is the 
user:x:1000:1000::/home/user:/bin/bash

to:
user:x:1000:1000::/mnt/home/user:/bin/bash

Or I need to use:  "vipw -s"



Re: [gentoo-user] network transfer speed

2021-01-15 Thread thelma
On 1/15/21 9:55 AM, Jack wrote:
[snip]

 I don't know where does the file he sync from.
 If you sync a file from a server in other city, for a 20 to 22MB/s speed
 is very normal. But if in home, that is not good.

 And for ftp and rsync.
   ftp is better for transferring a single large file once.
   rsync is better for a long-term, incremental synchronization. The
 file verification of rsync may take a lot of time for first sync.
>>> There is a theoretical network speed as already mentioned.  There is a
>>> protocol speed, which may limit throughput if it has e.g. heavy encryption/
>>> compression and the CPU is anaemic.  Finally, there is a MoBo bus 
>>> (SCSI/SATA/
>>> USB) and the media storage limit.  If using USB 1.1 or 2.0 and/or the disks
>>> are slow or experience write amplification, you'll find this will constrain
>>> the final transfer speed significantly.
>> The computers on this network are 2-meters apart and they both use SSD Drive 
>> (so USB limitation doesn't come under consideration).
>> Like I said, on my home network when I transfer the 24GB file I get about 
>> 110MiBps transfer, so I was expecting the same in remote location).
>> Some units are connected to a router Ausus RT-AC66U B1 but these ports are 
>> gigabit too.
> When you say the computers are remote, is it possible the file is passing 
> through your local computer on the way between the two remote machines?  
> Where are you actually running the rsync command?

The fact that I'm logged via ssh over VPN to a remote network should not have 
any influence over network speed.
I just made a loop:
Network A ==> Internet ==> Network B  
ssh back to Network A over internet and run "rsync" I got same speed (as if I 
run the command locally) on Network A 112MB/s  

So the limiting factor is somewhere else. 



Re: [gentoo-user] network transfer speed

2021-01-15 Thread thelma
On 1/15/21 1:11 AM, Raffaele BELARDI wrote:
>> -Original Message-
>> From: the...@sys-concept.com 
>> Sent: Friday, January 15, 2021 07:57
>> To: Gentoo mailing list 
>> Subject: [gentoo-user] network transfer speed
>>
>>
>> On both of my systems the network card speed is showing 1000
>> cat /sys/class/net/enp4s0/speed   1000
>>
>> but when I do rsync larage file I only see about: 20 to 22MB/s On my home
>> network I get about 110MB/s between PC's
>>
>> Both PC's have SSD  and the swith is Gigabit (I think).
>> How to find a the bottleneck?
> 
> If the PCs attached to the switch show 1000 then the switch _is_ gigabit.
> 
> On my 1Gb home network I have an FTP transfer speed between Gentoo PCs A and 
> B of almost 900Mbps, the other way round is almost half of that. One 
> difference between the two systems is the disk, A uses SATA-2 disk while B 
> has SATA-3.
> 
> Does the 'B' in 110MB/s stand for byte? If so you have 880Mbps which is not 
> bad, the problem probably lies somewhere else. Otherwise you could check the 
> switch error count (if you have a managed switch) or the network card error 
> count, just to ensure you don't have a cabling/connector problem.
> 
> Have you tried other transfer methods just for comparison? I think FTP is 
> still the fastest way to transfer files, though insecure or inconvenient as 
> it might be. I have no experience with rsync.
> 
> raffaele

On a remote network I run ethtool on both cards and I got both 1000Mb/s speed

1.)
ethtool net0
Settings for net0:
Supported ports: [ TP MII ]
Supported link modes:   10baseT/Half 10baseT/Full 
100baseT/Half 100baseT/Full 
1000baseT/Half 1000baseT/Full 
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full 
100baseT/Half 100baseT/Full 
1000baseT/Half 1000baseT/Full 
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes:  10baseT/Half 10baseT/Full 
 100baseT/Half 100baseT/Full 
 1000baseT/Full 
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: on (auto)

2.) 
ethtool enp4s0
Settings for enp4s0:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full 
100baseT/Half 100baseT/Full 
1000baseT/Full 
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full 
100baseT/Half 100baseT/Full 
1000baseT/Full 
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on (auto)



Re: [gentoo-user] network transfer speed

2021-01-19 Thread thelma
On 1/19/21 12:46 AM, Raffaele BELARDI wrote:
>> -Original Message-
>> From: the...@sys-concept.com 
>> Sent: Monday, January 18, 2021 20:13
>> To: gentoo-user@lists.gentoo.org
>> Subject: Re: [gentoo-user] network transfer speed
>>
>> What switch would you folks recommend?
>> I'm planning getting to the bottom of it including replacing switch and 
>> cable if
>> I have to.
> 
> At home I'm using Netgear GS305E/GS308E with no particular issue. The 'E' 
> stands for managed, I never use management features except for checking the 
> port status (nice to have, but LEDs give the same information) and in some 
> particular, business-related configuration, to enable port mirroring. I 
> haven't tried yet to set up a VLAN or configure QoS parameters, which I think 
> would be the main reason to prefer a managed over a non-managed.
> Since I always used Netgear I can't say if they are better than others.
> I think  you are already aware that unless all cable patches are at least 
> CAT5e you're not going to get 1Gb speed. The 'e' here makes a real difference 
> over the plain CAT5.
> 
> Raffaele

That is a good hint, I need to check if it is CAT5 or CAT5e
 



Re: [gentoo-user] app-emulation/docker with Linode kernel

2021-01-20 Thread thelma
On 1/20/21 7:53 PM, Matt Connell (Gmail) wrote:
> I use docker, on a Gentoo system, running on a Linode-hosted VPS, with
> their kernel.  I rely heavily on docker, with ~10 containers providing
> various services at any given time.
> 
> Lately, I've had a couple of incidents of the system becoming
> unresponsive, and I believe it is docker-related.
> 
> When I emerge docker, portage gives me the following warnings/errors:
> 
>> *   CONFIG_RT_GROUP_SCHED: is not set when it should be.
>> *   CONFIG_IPVLAN: is not set when it should be.
>> *   CONFIG_OVERLAY_FS_REDIRECT_DIR: should not be set. But it is.
> 
> Could these complaints be a portent of what is causing the system to
> become unresponsive?  Is there anything I can do to resolve this when I
> am using Linode's kernels?
> 
> I know what to do when I am configuring and building my own kernel, but
> on this system I'd prefer to avoid this if possible, since it is
> Someone Else's Computer, after all.
> 
> Any input is appreciated.

Do you have access to their kernel .config file? If so just compile them IN and 
test it, make a backup of the current /boot kernel. 
 I would say these should be compiled into the kernel.  The first two are not 
compiled into my kernel and the third option is missing (no I'm not using 
docker) 

 



Re: [gentoo-user] merged on \${HOST} with notice"

2021-01-17 Thread thelma
On 1/17/21 12:59 PM, Hogren wrote:
> 
> On 17/01/2021 19:18, the...@sys-concept.com wrote:
>> I have in a new machine (as on all other boxes) in make.conf
>> PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"
>>
>> In  /etc/conf.d/hostname
>> hostname="syscon3"
>>
>> But when a package is emerge I receive via email notice as in subject line: 
>> "...merged on localhost.localdomain"
>> eg: package dev-vcs/git-2.26.2 merged on localhost.localdomain with notice
>>
>> Which file define "${HOST}"
>>
> Hello,
> 
> I suppose you had already rebooted after modify the file ?
> 
> Do you have Systemd ?
> 
> 
> Regards,
> 
> Hogren

No, I did not rebooted the system. Do I need to?
I can not pin it down which file/setting it is.  

When I receive emerge notice from my new system, both of them have "...merged 
on localhost.localdomain" instead of "hostname" eg. syscon3 syscon7 etc.
 



Re: [gentoo-user] merged on \${HOST} with notice"

2021-01-17 Thread thelma
On 1/17/21 12:59 PM, Hogren wrote:
> 
> On 17/01/2021 19:18, the...@sys-concept.com wrote:
>> I have in a new machine (as on all other boxes) in make.conf
>> PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"
>>
>> In  /etc/conf.d/hostname
>> hostname="syscon3"
>>
>> But when a package is emerge I receive via email notice as in subject line: 
>> "...merged on localhost.localdomain"
>> eg: package dev-vcs/git-2.26.2 merged on localhost.localdomain with notice
>>
>> Which file define "${HOST}"
>>
> Hello,
> 
> I suppose you had already rebooted after modify the file ?
> 
> Do you have Systemd ?

I forgot to mention, I use openrc
 



Re: [gentoo-user] merged on \${HOST} with notice"

2021-01-17 Thread thelma
On 1/17/21 2:04 PM, David Haller wrote:
> Hello,
> 
> On Sun, 17 Jan 2021, the...@sys-concept.com wrote:
>> I have in a new machine (as on all other boxes) in make.conf
>> PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"
> [..]
>> Which file define "${HOST}"
> 
>  /etc/hosts 
> [..]
> # IP-Address  Full-Qualified-Hostname  Short-Hostname
> 
> 127.0.0.1   syscon3.domain.tld   syscon3 localhost
> ::1 syscon3.domain.tld   syscon3 localhost
> 
> 
> Use 'localdomain' as domain.tld if you don't have a domain.
> 
> HTH,
> -dnh

THANK YOU! It is working.
Does placement of the name make a difference? 
eg:  
127.0.0.1   syscon3.domain.tld   syscon3 localhost

vs.
127.0.0.1   localhost  syscon3  syscon3.domain.tld 



[gentoo-user] depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown symbol

2021-01-17 Thread thelma
I'm compiling VirtualBox support into the latest kernel-5.4.80-gentoo-r1

[*] Virtualization  --->
<*>   Kernel-based Virtual Machine (KVM) support
<*> KVM for AMD processors support

And I get an error when compiling the kernel:  make && make modules_install

DEPMOD  5.4.80-gentoo-r1
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_mmap
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_manager_func
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_device_release
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_kunmap
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_del_sub_from_lru
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_device_init
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_init_mm
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_dma_acc_size
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_tt_init
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_kmap
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_add_to_lru
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_init
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_validate
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_move_to_lru_tail
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_put
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_tt_fini
depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown 
symbol ttm_bo_eviction_valuable



Re: [gentoo-user] network transfer speed

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

1.) One Gentoo PC (that is about 20-30meters away from the switch) negotiated 
the speed of only 100 despite being capable of doing 1000.
I'll have to buy a new switch and make a new CAT5e cable to test it.
But but it will take some time.

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

2.) The two Gentoo PC that are meters away from the switch are my concern firs.
One is a server, another small PC run 24/7 and both negotiated speed of 1000 
with the switch.

I have to re-test the transfer speed between these to boxes first, and check to 
light on the switch if it is green and/or orange
 
> If there is a fast WAN from one side of the globe to the other it could be
> latency related. OpenSSH used to have a fixed internal window size that
> made it slow on high bandwidth high latency links, and I notice the hpn USE
> flag still exists in the openssh ebuild, which implies the issue with
> openssh still exists. Rsync can use either ssh or its own protocol, so if
> there's a high latency link between the two boxes and rsync is using ssh,
> you could investigate rebuilding openssh with +hpn.
> 
> What does ping show the latency as?
> 
> Otherwise i'd be thinking about packet loss. First place to start for that
> is on the endpoint interfaces;
> ifconfig enp35s0f0 | grep err
> RX errors 0  dropped 0  overruns 0  frame 0
> TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I'll test the above for errors tomorrow.
 



Re: [gentoo-user] network transfer speed

2021-01-16 Thread thelma
On 1/16/21 11:55 AM, Michael wrote:
> On Friday, 15 January 2021 22:43:36 GMT the...@sys-concept.com wrote:
> 
>> The fact that I'm logged via ssh over VPN to a remote network should not
>> have any influence over network speed. 
> 
> It may influence speed if you're trying to push a large file through the 
> tunnel.  TCP over TCP tends to choke due to retransmissions:
> 
> http://sites.inka.de/bigred/devel/tcp-tcp.html
> 
> Is the VPN you mention using a TCP or UDP tunnel?

The VPN is using UDP tunnel.
  
> 
>> I just made a loop:
>> Network A ==> Internet ==> Network B
>> ssh back to Network A over internet and run "rsync" I got same speed (as if
>> I run the command locally) on Network A 112MB/s
>>
>> So the limiting factor is somewhere else.
> 
> I'm sorry, but I fail to understand with any clarity what runs where and how 
> when you test things locally, Vs remotely.  I mean:

What I did is log-in to a remote network over ssh, from remote network I logged 
back to my network PC using ssh and tested the transfer speed.
 
> - Network topology;
> - Network Protocols;
> - Applications & application protocols;
> - Relevant services on each peer;
> - Actions on each peer;
> - Results per action.
> 
> As already mentioned iperf or netcat/telnet results will confirm if this is 
> purely a network issue, ISPs performing deep packet inspection/throttling 
> affecting throughput asymmetrically, etc.
> 
> SSDs are typically faster than spinning disks, but not always as fast as 
> ramdisks/tmpfs, especially if write amplification takes place, TRIM kicks in, 
>  
> etc.
> 
> Stacking network + application protocols can also have an adverse effect.  
> Applications like rsync which compare file names, sizes, hashes and what not, 
> do not offer a reliable speed comparison.
> 
> Methodically testing each component of the transmission system should get you 
> an answer at the end.

On a remote network there are 5-pcs 
- two of them are Windows PC
- 3-pcs are Gentoo 

I was just testing Getnoo PC's
One small PC is about 20-30meters away from the switch and connected by CAT5 
(or CAT5e)
that PC is network card is capable of 1000-speed according to "ethtool" but 
negotiated the speed of 100 according to:
/sys/class/net/enp4s0/speed

The 2-PCs closer to the switch, negotiated the speed of 1000 according to:
/sys/class/net/enp/speed

I have to check (this week) if they are both connected directly to a switch and 
or firewall Ausus RT-AC66U and the light on the switch. 
I'll check out/investigate the use of "net-misc/iperf" to check the speed. 
 



[gentoo-user] new installation - ERROR: dev-lang/rust-1.47.0-r2::gentoo failed (compile phase)

2021-01-16 Thread thelma
trace.
Traceback (most recent call last):
  File "./x.py", line 11, in 
bootstrap.main()
  File 
"/var/tmp/portage/dev-lang/rust-1.47.0-r2/work/rustc-1.47.0-src/src/bootstrap/bootstrap.py",
 line 1009, in main
bootstrap(help_triggered)
  File 
"/var/tmp/portage/dev-lang/rust-1.47.0-r2/work/rustc-1.47.0-src/src/bootstrap/bootstrap.py",
 line 995, in bootstrap
run(args, env=env, verbose=build.verbose)
  File 
"/var/tmp/portage/dev-lang/rust-1.47.0-r2/work/rustc-1.47.0-src/src/bootstrap/bootstrap.py",
 line 143, in run
raise RuntimeError(err)
RuntimeError: failed to run: 
/var/tmp/portage/dev-lang/rust-1.47.0-r2/work/rustc-1.47.0-src/build/bootstrap/debug/bootstrap
 dist -vv 
--config=/var/tmp/portage/dev-lang/rust-1.47.0-r2/work/rustc-1.47.0-src/config.toml
 -j8
 * ERROR: dev-lang/rust-1.47.0-r2::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 * ebuild.sh, line 125:  Called src_compile
 *   environment, line 3644:  Called die
 * The specific snippet of code:
 *   env $(cat "${S}"/config.env) RUST_BACKTRACE=1 "${EPYTHON}" ./x.py dist 
-vv --config="${S}"/config.toml -j$(makeopts_jobs) || die )

-- 
Thelma



Re: [gentoo-user] fstab mount /home by default

2021-01-17 Thread thelma
On 1/17/21 1:22 AM, the...@sys-concept.com wrote:
> On one of my system I have in fstab:
> /dev/sda4 /home   ext4noatime 0 1
> and /home is mounted by default 
> 
> On my new installation, I have in my fstab:
> /dev/sda5 /home   ext4noatime 0 1
> 
> but on new installation /home doesn't mount by default, why?
> 
> On new installation, I created a user without "-m" 
> useradd  -G users,wheel,audio -s /bin/bash thelma
> 
> added to fstab: 
> /dev/sda5 /home   ext4noatime 0 1
> 
> but it doesn't mount by default.
> xfce4 created new entry in /home  /thelma
> so I deleted the entry /thelma but manual mounting:  mount /dev/sda5 /home
> does not create directory /thelma manually under /home
> 
> When I mount manually /dev/sda5  /home all data is there but but trying login 
> as user "X" gets a black screen now.
> How to get back "X"
> 
> When I ssh and try to start it manually I get:
> Fatal server error:
> (EE) xf86OpenConsole: Cannot open virtual console 8 (Permission denied)

Spelling :-/
It should be:
dev/sda5/home   ext4defaults
0 1
 



[gentoo-user] fstab mount /home by default

2021-01-17 Thread thelma
On one of my system I have in fstab:
/dev/sda4   /home   ext4noatime 0 1
and /home is mounted by default 

On my new installation, I have in my fstab:
/dev/sda5   /home   ext4noatime 0 1

but on new installation /home doesn't mount by default, why?

On new installation, I created a user without "-m" 
useradd  -G users,wheel,audio -s /bin/bash thelma

added to fstab: 
/dev/sda5   /home   ext4noatime 0 1

but it doesn't mount by default.
xfce4 created new entry in /home  /thelma
so I deleted the entry /thelma but manual mounting:  mount /dev/sda5 /home
does not create directory /thelma manually under /home

When I mount manually /dev/sda5  /home all data is there but but trying login 
as user "X" gets a black screen now.
How to get back "X"

When I ssh and try to start it manually I get:
Fatal server error:
(EE) xf86OpenConsole: Cannot open virtual console 8 (Permission denied)



Re: [gentoo-user] depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs unknown symbol

2021-01-17 Thread thelma
On 1/17/21 5:43 PM, the...@sys-concept.com wrote:
> I'm compiling VirtualBox support into the latest kernel-5.4.80-gentoo-r1
> 
> [*] Virtualization  --->
> <*>   Kernel-based Virtual Machine (KVM) support
> <*> KVM for AMD processors support
> 
> And I get an error when compiling the kernel:  make && make modules_install
> 
> DEPMOD  5.4.80-gentoo-r1
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_mmap
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_manager_func
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_device_release
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_kunmap
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_del_sub_from_lru
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_device_init
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_init_mm
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_dma_acc_size
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_tt_init
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_kmap
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_add_to_lru
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_init
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_validate
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_move_to_lru_tail
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_put
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_tt_fini
> depmod: WARNING: /lib/modules/5.4.80-gentoo-r1/misc/vboxvideo.ko needs 
> unknown symbol ttm_bo_eviction_valuable

In kernel-5.4.80-gentoo-r1 
CONFIG_DRM_VBOXVIDEO is not set

need to be set for VirtualBox.
The strange part is that this setting is not enable in: kernel-5.4.72-gentoo 
x86_64
and VirtualBox is working and I never got any error messages like this when 
compiling kernel-5.4.72-gentoo 



Re: [gentoo-user] network transfer speed

2021-01-18 Thread thelma
On 1/18/21 4:41 AM, bobwxc wrote:
> 在 2021/1/18 下午6:19, J. Roeleveld 写道:
>> On Monday, January 18, 2021 10:58:24 AM CET Raffaele BELARDI wrote:
 -Original Message-
 From: J. Roeleveld 
 Sent: Monday, January 18, 2021 09:47
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] network transfer speed

 Some cheaper switches fail-over to hub-mode when the traffic exceeds
 what it can manage.
>>> Interesting, do you have pointers to such switches' specs? Or is it from
>>> experience?
> That's true.
> Some cheap switches may become like a network cable when it fails or exceeds 
> network flow. And there is also no log to check, will cause some strange 
> problems.
> 
> Actually , some business machines also have such a policy that they become 
> straight through or completely blocked in case of failure. But they have a 
> fail log for review.
>> This is from experience, also 1 of the reasons why I switched to managed
>> switches.
>>
>> -- 
>> Joost

What switch would you folks recommend?
I'm planning getting to the bottom of it including replacing switch and cable 
if I have to. 



[gentoo-user] Failed to load vboxpci

2021-01-18 Thread thelma
emerge --info
Portage 3.0.13 (python 3.8.6-final-0, default/linux/amd64/17.1/desktop, 
gcc-9.3.0, glibc-2.32-r5, 5.4.80-gentoo-r1 x86_64)

This is new installation.  
cat /etc/modules-load.d/virtualbox.conf 
vboxdrv
vboxnetadp
vboxnetflt
vboxpci

All modules are loading OK except "vboxpci"

modprobe vboxpci
modprobe: FATAL: Module vboxpci not found in directory 
/lib/modules/5.4.80-gentoo-r1





Re: [gentoo-user] Failed to load vboxpci

2021-01-18 Thread thelma
On 1/18/21 2:12 PM, tastytea wrote:
> On 2021-01-18 14:04-0700 the...@sys-concept.com wrote:
> 
>> emerge --info
>> Portage 3.0.13 (python 3.8.6-final-0,
>> default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r5,
>> 5.4.80-gentoo-r1 x86_64)
>>
>> This is new installation.  
>> cat /etc/modules-load.d/virtualbox.conf 
>> vboxdrv
>> vboxnetadp
>> vboxnetflt
>> vboxpci
>>
>> All modules are loading OK except "vboxpci"
>>
>> modprobe vboxpci
>> modprobe: FATAL: Module vboxpci not found in directory
>> /lib/modules/5.4.80-gentoo-r1
> 
> app-emulation/virtualbox-modules does not install vboxpci.ko here. I
> guess the information in the wiki is outdated.
> 
> $ equery files app-emulation/virtualbox-modules | grep '\.ko$'
> /lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxdrv.ko
> /lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxnetadp.ko
> /lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxnetflt.ko
> 
> Kind regards, tastytea

I have the same output:

# equery files app-emulation/virtualbox-modules | grep '\.ko$'
/lib/modules/5.4.80-gentoo-r1/misc/vboxdrv.ko
/lib/modules/5.4.80-gentoo-r1/misc/vboxnetadp.ko
/lib/modules/5.4.80-gentoo-r1/misc/vboxnetflt.ko

What is missing is in 5.4.80-gentoo-r1 is: vboxpci.ko

In my old kernel it was there: 
/lib/modules/5.4.72-gentoo/misc/vboxpci.ko




Re: [gentoo-user] Failed to load vboxpci

2021-01-18 Thread thelma
On 1/18/21 2:31 PM, the...@sys-concept.com wrote:
> On 1/18/21 2:12 PM, tastytea wrote:
>> On 2021-01-18 14:04-0700 the...@sys-concept.com wrote:
>>
>>> emerge --info
>>> Portage 3.0.13 (python 3.8.6-final-0,
>>> default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r5,
>>> 5.4.80-gentoo-r1 x86_64)
>>>
>>> This is new installation.  
>>> cat /etc/modules-load.d/virtualbox.conf 
>>> vboxdrv
>>> vboxnetadp
>>> vboxnetflt
>>> vboxpci
>>>
>>> All modules are loading OK except "vboxpci"
>>>
>>> modprobe vboxpci
>>> modprobe: FATAL: Module vboxpci not found in directory
>>> /lib/modules/5.4.80-gentoo-r1
>>
>> app-emulation/virtualbox-modules does not install vboxpci.ko here. I
>> guess the information in the wiki is outdated.
>>
>> $ equery files app-emulation/virtualbox-modules | grep '\.ko$'
>> /lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxdrv.ko
>> /lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxnetadp.ko
>> /lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxnetflt.ko
>>
>> Kind regards, tastytea
> 
> I have the same output:
> 
> # equery files app-emulation/virtualbox-modules | grep '\.ko$'
> /lib/modules/5.4.80-gentoo-r1/misc/vboxdrv.ko
> /lib/modules/5.4.80-gentoo-r1/misc/vboxnetadp.ko
> /lib/modules/5.4.80-gentoo-r1/misc/vboxnetflt.ko
> 
> What is missing is in 5.4.80-gentoo-r1 is: vboxpci.ko
> 
> In my old kernel it was there: 
> /lib/modules/5.4.72-gentoo/misc/vboxpci.ko

It seems to me this driver is no longer needed/used. 
 



[gentoo-user] BIOS can not find boot partition

2021-01-23 Thread thelma
I'm missing something as system can not find boot device 

fdisk /dev/nvme0n1
Disklabel type: gpt

Device StartEndSectors   Size Type
/dev/nvme0n1p1  2048   6143   4096 2M BIOS boot
/dev/nvme0n1p2  6144 268287 262144   128M EFI System
/dev/nvme0n1p326828813168631048576   512M Linux swap
/dev/nvme0n1p4   1316864  315889663  314572800   150G Linux filesystem

I don't want to use EFI.
/boot = dev/nvme0n1p2  (ext4) file system

When I run:
grub-install /dev/nvme0n1p2
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.

but there is /boot/grub 

Running: grub-mkconfig -o /boot/grub/grub.cfg  is OK (no errors) 

fstab:
/dev/nvme0n1p2  /boot   ext4noauto,noatime  1 2 

The BIOS has CSM compatibly mode enable. 
When I try to boot, system can not find bootable partition.

Am I suppose to put any file system on /dev/nvme0n1p1 (2Mb partition) the 
installation manual did not mention anything. 
  



Re: [gentoo-user] Failed to load vboxpci

2021-01-18 Thread thelma
On 1/18/21 2:46 PM, Neil Bothwick wrote:
> On Mon, 18 Jan 2021 14:31:49 -0700, the...@sys-concept.com wrote:
> 
>> On 1/18/21 2:12 PM, tastytea wrote:
>>> On 2021-01-18 14:04-0700 the...@sys-concept.com wrote:
>>>   
 emerge --info
 Portage 3.0.13 (python 3.8.6-final-0,
 default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r5,
 5.4.80-gentoo-r1 x86_64)

 This is new installation.  
 cat /etc/modules-load.d/virtualbox.conf 
 vboxdrv
 vboxnetadp
 vboxnetflt
 vboxpci

 All modules are loading OK except "vboxpci"

 modprobe vboxpci
 modprobe: FATAL: Module vboxpci not found in directory
 /lib/modules/5.4.80-gentoo-r1  
>>>
>>> app-emulation/virtualbox-modules does not install vboxpci.ko here. I
>>> guess the information in the wiki is outdated.
>>>
>>> $ equery files app-emulation/virtualbox-modules | grep '\.ko$'
>>> /lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxdrv.ko
>>> /lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxnetadp.ko
>>> /lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxnetflt.ko
>>>
>>> Kind regards, tastytea  
>>
>> I have the same output:
>>
>> # equery files app-emulation/virtualbox-modules | grep '\.ko$'
>> /lib/modules/5.4.80-gentoo-r1/misc/vboxdrv.ko
>> /lib/modules/5.4.80-gentoo-r1/misc/vboxnetadp.ko
>> /lib/modules/5.4.80-gentoo-r1/misc/vboxnetflt.ko
>>
>> What is missing is in 5.4.80-gentoo-r1 is: vboxpci.ko
>>
>> In my old kernel it was there: 
>> /lib/modules/5.4.72-gentoo/misc/vboxpci.ko
> 
> Your old kernel could have it from an older installation of
> virtualbox-modules, that module is no longer installed
> 
> % qlist virtualbox-modules
> /lib/modules/5.4.80-gentoo-r1/misc/vboxnetflt.ko
> /lib/modules/5.4.80-gentoo-r1/misc/vboxnetadp.ko
> /lib/modules/5.4.80-gentoo-r1/misc/vboxdrv.ko
> /etc/modprobe.d/vboxdrv.conf
> /usr/lib/modules-load.d/virtualbox.conf
> 
> And the virtualbox.conf file contains
> 
> vboxdrv
> vboxnetflt
> vboxnetadp
> 
> No mention of vboxpci.
> 
> Does VirtualBox work?

Yes, it works.  Gentoo wiki did not get updated, in addition I was copying 
configuration from previous kernel that I just installed a month ago or so.  
It is hard o catch all the changes during updates. 
 

 



Re: [gentoo-user] new installation - ERROR: dev-lang/rust-1.47.0-r2::gentoo failed (compile phase)

2021-01-17 Thread thelma
On 1/17/21 4:18 AM, Michael wrote:
> On Sunday, 17 January 2021 11:04:17 GMT Peter Humphrey wrote:
>> On Saturday, 16 January 2021 20:59:17 GMT the...@sys-concept.com wrote:
>>> Reinstalling Gentoo on one box (I wiped the root partition, so it is a
>>> clean install) and I'm getting this error
>>
>> --->8
>>
>> Have you thought of using rust-bin instead of rust? "emerge -1 rust-bin" It
>> saves prodigious amounts of compiling here. Of course, you can't do that if
>> you need to set particular USE flags.
>>
>> There was a discussion here a month or two ago. Either rust or rust-bin will
>> satisfy virtual/rust.
> 
> 
> Rust uses up tonnes of RAM in compiling, so unless enough RAM and perhaps 
> SWAP 
> is available, it could fail.  Increasing resources and/or reducing the make 
> job number should improve the situation.

I think that might have been the case, I run emerge second time and it compiled 
just fine.
Maybe I will switch to "rust-bin", thanks for suggestion.  Why do we need it, 
is it part of "system-bootstrap"?
 



[gentoo-user] network transfer speed

2021-01-14 Thread thelma


On both of my systems the network card speed is showing 1000
cat /sys/class/net/enp4s0/speed   1000

but when I do rsync larage file I only see about: 20 to 22MB/s
On my home network I get about 110MB/s between PC's 

Both PC's have SSD  and the swith is Gigabit (I think). 
How to find a the bottleneck? 



Re: [gentoo-user] network transfer speed

2021-01-15 Thread thelma
On 1/15/21 6:26 AM, Hogren wrote:
> 
> On 15/01/2021 09:34, Raffaele BELARDI wrote:
>>
>> ST Restricted
>>
>>> -Original Message-
>>> From: Hogren 
>>> Sent: Friday, January 15, 2021 08:50
>>> To: gentoo-user@lists.gentoo.org
>>> Subject: Re: [gentoo-user] network transfer speed
>>>
>>>
>>> On 15/01/2021 07:56, the...@sys-concept.com wrote:
>>> Hello
 On both of my systems the network card speed is showing 1000
 cat /sys/class/net/enp4s0/speed   1000

 but when I do rsync larage file I only see about: 20 to 22MB/s On my
 home network I get about 110MB/s between PC's

 Both PC's have SSD  and the swith is Gigabit (I think).
 How to find a the bottleneck?

>>> 20MB = 80Mb so it sounds like your network is a 100Mb network. What is the
>>> perfs of your switch(s) between your systems ?
>> I disagree, /sys/class/net/enp4s0/speed shows the speed negotiated by the 
>> network card with the switch, it cannot be 1000 if the switch is a only a 
>> 10/100. I think we can safely assume the network is a gigabit one.
>>
>> raffaele
> 
> Yes, I thought about that after. But may be he has several switchs between 
> the two systems.
> 
> Hogren

I just checked the remote location and there are two swiches:
- D-link Green Technology (I think it is DSG-1005D
- Trident Gigabit Switch  - TEG-S80g
 
They are both Gigabit switches.



Re: [gentoo-user] network transfer speed

2021-01-15 Thread thelma
On 1/15/21 2:58 AM, Michael wrote:
> On Friday, 15 January 2021 08:42:16 GMT bobwxc wrote:
>> 在 2021/1/15 下午4:27, Raffaele BELARDI 写道:
 -Original Message-
 From: bobwxc 
 Sent: Friday, January 15, 2021 08:57
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] network transfer speed

 在 2021/1/15 下午2:56, the...@sys-concept.com 写道:
> On both of my systems the network card speed is showing 1000
> cat /sys/class/net/enp4s0/speed   1000
>
> but when I do rsync larage file I only see about: 20 to 22MB/s On my
> home network I get about 110MB/s between PC's
>
> Both PC's have SSD  and the swith is Gigabit (I think).
> How to find a the bottleneck?

 1000Mbps network card's maximum theoretical speed is about 125MiB/s.
 It only works in short distances.
>>>
>>> Correct but that's the line speed that you'll never reach, when you take
>>> into account Ethernet frame overhead, IP (and possibly TCP) header
>>> overhead and application ( rsync, FTP, SMB, NFS) overhead you get lower
>>> figures. In my experience 900Mbps (110MiBps) on a 1000Mbps line is more
>>> realistic for 'normal' transfers.
>> Yes, you are right. So it is just *theoretical* speed :-)
>>
>> I don't know where does the file he sync from.
>> If you sync a file from a server in other city, for a 20 to 22MB/s speed
>> is very normal. But if in home, that is not good.
>>
>> And for ftp and rsync.
>>  ftp is better for transferring a single large file once.
>>  rsync is better for a long-term, incremental synchronization. The
>> file verification of rsync may take a lot of time for first sync.
> 
> There is a theoretical network speed as already mentioned.  There is a 
> protocol speed, which may limit throughput if it has e.g. heavy encryption/
> compression and the CPU is anaemic.  Finally, there is a MoBo bus (SCSI/SATA/
> USB) and the media storage limit.  If using USB 1.1 or 2.0 and/or the disks 
> are slow or experience write amplification, you'll find this will constrain 
> the final transfer speed significantly.

The computers on this network are 2-meters apart and they both use SSD Drive 
(so USB limitation doesn't come under consideration).
Like I said, on my home network when I transfer the 24GB file I get about 
110MiBps transfer, so I was expecting the same in remote location).
Some units are connected to a router Ausus RT-AC66U B1 but these ports are 
gigabit too. 

 



Re: [gentoo-user] network transfer speed

2021-01-15 Thread thelma
On 1/15/21 9:55 AM, Jack wrote:
> On 1/15/21 11:51 AM, the...@sys-concept.com wrote:
>> On 1/15/21 2:58 AM, Michael wrote:
>>> On Friday, 15 January 2021 08:42:16 GMT bobwxc wrote:
 在 2021/1/15 下午4:27, Raffaele BELARDI 写道:
>> -Original Message-
>> From: bobwxc 
>> Sent: Friday, January 15, 2021 08:57
>> To: gentoo-user@lists.gentoo.org
>> Subject: Re: [gentoo-user] network transfer speed
>>
>> 在 2021/1/15 下午2:56, the...@sys-concept.com 写道:
>>> On both of my systems the network card speed is showing 1000
>>> cat /sys/class/net/enp4s0/speed   1000
>>>
>>> but when I do rsync larage file I only see about: 20 to 22MB/s On my
>>> home network I get about 110MB/s between PC's
>>>
>>> Both PC's have SSD  and the swith is Gigabit (I think).
>>> How to find a the bottleneck?
>> 1000Mbps network card's maximum theoretical speed is about 125MiB/s.
>> It only works in short distances.
> Correct but that's the line speed that you'll never reach, when you take
> into account Ethernet frame overhead, IP (and possibly TCP) header
> overhead and application ( rsync, FTP, SMB, NFS) overhead you get lower
> figures. In my experience 900Mbps (110MiBps) on a 1000Mbps line is more
> realistic for 'normal' transfers.
 Yes, you are right. So it is just *theoretical* speed :-)

 I don't know where does the file he sync from.
 If you sync a file from a server in other city, for a 20 to 22MB/s speed
 is very normal. But if in home, that is not good.

 And for ftp and rsync.
   ftp is better for transferring a single large file once.
   rsync is better for a long-term, incremental synchronization. The
 file verification of rsync may take a lot of time for first sync.
>>> There is a theoretical network speed as already mentioned.  There is a
>>> protocol speed, which may limit throughput if it has e.g. heavy encryption/
>>> compression and the CPU is anaemic.  Finally, there is a MoBo bus 
>>> (SCSI/SATA/
>>> USB) and the media storage limit.  If using USB 1.1 or 2.0 and/or the disks
>>> are slow or experience write amplification, you'll find this will constrain
>>> the final transfer speed significantly.
>> The computers on this network are 2-meters apart and they both use SSD Drive 
>> (so USB limitation doesn't come under consideration).
>> Like I said, on my home network when I transfer the 24GB file I get about 
>> 110MiBps transfer, so I was expecting the same in remote location).
>> Some units are connected to a router Ausus RT-AC66U B1 but these ports are 
>> gigabit too.
> When you say the computers are remote, is it possible the file is passing 
> through your local computer on the way between the two remote machines?  
> Where are you actually running the rsync command?

I ssh over VPN to remote computers and run "rsync" there.  Will it effect the 
speed? 
 



[gentoo-user] merged on \${HOST} with notice"

2021-01-17 Thread thelma
I have in a new machine (as on all other boxes) in make.conf
PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"

In  /etc/conf.d/hostname
hostname="syscon3"

But when a package is emerge I receive via email notice as in subject line: 
"...merged on localhost.localdomain"
eg: package dev-vcs/git-2.26.2 merged on localhost.localdomain with notice

Which file define "${HOST}"



[gentoo-user] Apache - prevent local ip from log files

2021-01-02 Thread thelma
Trying to prevent local local IP from appearing in log files.
I have in  modules.d/00_mod_log_config.conf

DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%h %l %u %t \"%r\" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
SetEnvIf Remote_Addr "10\.0\.0\.109" dontlog
CustomLog /var/log/apache2/access_log common env=!dontlog

This setting worked in Apache 2.2 but Apache 2.4 is still logging all my 
localhost IP's.




Re: [gentoo-user] thunderbird - 78.6.0 disable line wrap

2021-01-02 Thread thelma


On 1/2/21 2:55 AM, Remco Rijnders wrote:
> On Fri, Jan 01, 2021 at 09:40:59PM -0700, thelma wrote in 
> <4047b613-de75-3eeb-46cf-df4895577...@sys-concept.com>:
>> I was using old version of thunderbird and line wrap was in "Option" menu; 
>> but in new version "line wrap On/Off" disappeared.
>>
>> How to disable line wrap?
> 
> They make this really impossible to find... Anyways, go to the menu Edit -->
> Preferences, then scroll down go to the bottom option in the window that shows
> "Config Editor...". Click to accept the risk and void your warranty. In the
> search bar, enter "wrap". I think the settings you'll want are
> mail.wrap_long_lines and/or plain_text.wrap_long_lines. Double click to change
> the values. The changed settings should take effect immediately.
> 
> I hope this helps.
> 
> Kind regards,
> 
> Remco

Yes, I found it.
They keep changing these settings; I don't know why. 
Changing: "mailnews.wraplength" value "72" to "0" 
Solved the problem 
 
thanks



[gentoo-user] Apache 2.4 - set SecStatusEngine to On

2021-01-01 Thread thelma

Status engine is currently disabled, enable it by set SecStatusEngine to On.

How to enable "SecStatusEngine to On" in Apache 2.4

From my log file:
[Fri Jan 01 19:44:52.649498 2021] [core:notice] [pid 14152] 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'
[Fri Jan 01 21:10:26.781254 2021] [mpm_prefork:notice] [pid 14152] 
AH00169: caught SIGTERM, shutting down
[Fri Jan 01 21:10:27.871561 2021] [:notice] [pid 16586] ModSecurity for 
Apache/2.9.3 (http://www.modsecurity.org/) configured.
[Fri Jan 01 21:10:27.871577 2021] [:notice] [pid 16586] ModSecurity: APR 
compiled version="1.7.0"; loaded version="1.7.0"
[Fri Jan 01 21:10:27.871579 2021] [:notice] [pid 16586] ModSecurity: 
PCRE compiled version="8.44 "; loaded version="8.44 2020-02-12"
[Fri Jan 01 21:10:27.871581 2021] [:notice] [pid 16586] ModSecurity: 
LIBXML compiled version="2.9.10"
[Fri Jan 01 21:10:27.871582 2021] [:notice] [pid 16586] ModSecurity: 
Status engine is currently disabled, enable it by set SecStatusEngine to On.





[gentoo-user] thunderbird - 78.6.0 disable line wrap

2021-01-01 Thread thelma
I was using old version of thunderbird and line wrap was in "Option" 
menu; but in new version "line wrap On/Off" disappeared.


How to disable line wrap?





[gentoo-user] sound not working

2021-01-02 Thread thelma
I have:
lspci | grep -i audio
08:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio 
Controller (rev a1)
0a:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD 
Audio Controller

Kernel (seems like correct driver)
grep -i snd_hda_intel .config
CONFIG_SND_HDA_INTEL=y
# CONFIG_SND_HDA_INTEL_DETECT_DMIC is not set

User is in "audio" group.  
alsamixer is showing only:
Card: PulseAudio 
Chip: PulseAudio

Shouldn't it be showing some kind of Nvidia audio? 





[gentoo-user] Thunderbird - Unable to save your message as a draft.

2021-01-04 Thread thelma
With Thunderbird-78.6.0 I'm getting an error message when composing messages:

Unable to save your message as a draft.
Sending of the message failed.

What is the solution? I've run onto few of them but they are mostly for Windows 
users not really applicable to Linux. 



Re: [gentoo-user] preventing some IP's from from being logged in apache

2021-01-12 Thread thelma
On 1/11/21 11:32 PM, J. Roeleveld wrote:
[snip]
> If you blocked the IP in the firewall, it shouldn't show in the log.
> 
> Add iptables to the webserver and block that IP.
> Personally, I would block the whole range (45.93.201.0/24), which is either 
> linked to Cyprus or Russia (according to whois)
> 
> Any block in the apache-config might fail due to a bug or new configuration.
> 
> --
> Joost

Asus routers don't have capabilities to block external IP's (I need to find a 
better router).
Blocking that IP range in apache works, all the IPs I blocked are getting 403 
error (regardless what they type) 
but you might be right, apache 2.4 
 SetEnvIf Remote_Addr "45\.93\.201\.104" dontlog  (does not work). 

I wish they design blocking by country easier. 



Re: [gentoo-user] sound not working

2021-01-03 Thread thelma
On 1/2/21 10:45 PM, the...@sys-concept.com wrote:
> I have:
> lspci | grep -i audio
> 08:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio 
> Controller (rev a1)
> 0a:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD 
> Audio Controller
> 
> Kernel (seems like correct driver)
> grep -i snd_hda_intel .config
> CONFIG_SND_HDA_INTEL=y
> # CONFIG_SND_HDA_INTEL_DETECT_DMIC is not set
> 
> User is in "audio" group.  
> alsamixer is showing only:
> Card: PulseAudio 
> Chip: PulseAudio
> 
> Shouldn't it be showing some kind of Nvidia audio? 
 
I was able to make it to work by compiling some additional codec in kernel but 
I can not store the alsa letting:

alsamixer 
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! 
(This could e.g. happen if you try to connect to a non-root PulseAudio as a 
root user, over the native protocol. Don't do that.)

What to do with it?



Re: [gentoo-user] ssh Connection reset by port 22

2020-12-15 Thread thelma
On 12/15/2020 11:35 PM, the...@sys-concept.com wrote:
[snip]
> 
> tail -f /var/log/auth.log (on the server)
> does not show any log-in attempt
> 
> only:
> sshd: Server listening on 0.0.0.0 port 22
> sshd: Server listening on :: port 22

Solved by reinstalling openssh.



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.




[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.




[gentoo-user] spam - different IP's

2021-02-03 Thread thelma
I'm perplex with this entry in apache log.  
I'm sure it was done by same person as the timing is very sequential and same 
file-name request, but how they were able to lunch an attack from a different 
IP's different geographical locations.
Can they spoof an IP? 

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



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

2021-02-03 Thread thelma


On 2/3/21 10:22 PM, the...@sys-concept.com wrote:
> I'm perplex with this entry in apache log.  
> I'm sure it was done by same person as the timing is very sequential and same 
> file-name request, but how they were able to lunch an attack from a different 
> IP's different geographical locations.
> Can they spoof an IP? 
> 
> 173.201.196.206 - - [03/Feb/2021:19:17:47 -0700] "GET 
> /wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 195.70.43.234 - - [03/Feb/2021:19:18:24 -0700] "GET 
> /wordpress/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 198.38.92.110 - - [03/Feb/2021:19:21:18 -0700] "GET 
> /new/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 50.62.208.141 - - [03/Feb/2021:19:21:20 -0700] "GET 
> /en/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 64.62.206.242 - - [03/Feb/2021:19:21:34 -0700] "GET 
> /web/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 184.168.46.171 - - [03/Feb/2021:19:22:11 -0700] "GET 
> /home/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 50.63.196.23 - - [03/Feb/2021:19:23:41 -0700] "GET 
> /www/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 203.205.21.159 - - [03/Feb/2021:19:23:57 -0700] "GET 
> /staging/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 66.113.226.191 - - [03/Feb/2021:19:25:42 -0700] "GET 
> /news/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 148.72.232.107 - - [03/Feb/2021:19:26:06 -0700] "GET 
> /news/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 35.208.134.190 - - [03/Feb/2021:19:26:22 -0700] "GET 
> /shop/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 160.153.153.30 - - [03/Feb/2021:19:26:50 -0700] "GET 
> /main/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 192.241.230.24 - - [03/Feb/2021:19:27:50 -0700] "GET 
> /v2/wp-includes/wlwmanifest.xml HTTP/1.1" 403 199
> 66.113.221.43 - - [03/Feb/2021:19:28:37 -0700] "GET 
> /website/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 2.50.180.72 - - [03/Feb/2021:19:28:48 -0700] "GET 
> /portal/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 104.236.82.97 - - [03/Feb/2021:19:29:39 -0700] "GET 
> /2019/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 50.63.197.91 - - [03/Feb/2021:19:30:46 -0700] "GET 
> /1/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 103.27.61.222 - - [03/Feb/2021:19:30:57 -0700] "GET 
> /store/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 184.168.152.18 - - [03/Feb/2021:19:31:14 -0700] "GET 
> /wp2/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196
> 184.168.193.129 - - [03/Feb/2021:19:31:24 -0700] "GET 
> /blogs/wp-includes/wlwmanifest.xml HTTP/1.1" 404 196

Correction: should be "launch" 



Re: [gentoo-user] lightdm - can not login

2021-06-11 Thread thelma
On 6/11/21 2:17 AM, Michael wrote:
> On Thursday, 10 June 2021 22:42:10 BST the...@sys-concept.com wrote:
>> On 6/10/21 2:38 PM, Michael wrote:
>>> On Thursday, 10 June 2021 21:22:12 BST the...@sys-concept.com wrote:
 On 6/10/21 1:19 PM, the...@sys-concept.com wrote:
> I'm trying to use the default "lightdm" for login but whenever I type-in
> the password it it puts me back to login screen (asking for password) I
> changed/updated the password and the system accept it but I still can
> not
> log-in.

 I switched to "sddm" and it works, but it is "ugly".
>>>
>>> There are some themes you could choose from, or make your own to improve
>>> the aesthetics of its default appearance.  Access to themes may be
>>> available via your desktop environment's settings, or by setting them
>>> manually in sddm.conf.> 
 How to enable "num-lock" with sddm?
 I have "num-lock" in default run-level and it turns on when system is
 booting but when the "sddm" starts the num-lock is OFF again.
>>>
>>> The default /usr/share/sddm/sddm.conf.d/00default.conf has:
>>>
>>> # Initial NumLock state. Can be on, off or none.
>>> # If property is set to none, numlock won't be changed
>>> # NOTE: Currently ignored if autologin is enabled.
>>> Numlock=none
>>>
>>> You can change this in yours to 'on' and see if it makes any difference.
>>
>> In:   /usr/share/sddm/sddm.conf.d/00default.conf
>> I change to
>> Numlock=on
>>
>> It makes no difference, when system boots the "Numlock" is still off.
> 
> By "... when system boots" you mean when sddm starts, or when the xfce4 
> desktop loads?
> 
> Is it actually off, or is the corresponding LED failing to illuminate, but 
> the 
> keyboard responds correctly?
> 
> https://forum.xfce.org/viewtopic.php?id=3270
> 
> 
> I do not have numlock enabled via openrc on the default runlevel and I have 
> not installed numlockx.  I copied the numlock configuration snippet into /etc/
> sddm.conf and set it to 'on'.  Restarting enabled the numlock function and 
> turned on the LED too, once sddm was running.  After login into a desktop 
> finished (Plasma) the numlock remained on.  So on this machine it works as 
> advertised with sddm and a Plasma DE.  
> 
> xfce4 has a desktop setting, under Settings > Keyboard where you can enable 
> numlock - without depending on the display manager.
> 
> 
>> There
>> is no default user login either and some kind of "Consoll log for..." on
>> the lower right hand corner (that user don't need to see).
> 
> This is not what I see here of a number of different PCs.  There are avatars 
> for each linux user and there is no log showing on the sddm panel.  Do you 
> have missing components like e.g. elogind, policykit?
> 
> If the OS have only one user then this user's avatar will be selected to 
> login 
> with.  With more than one user, the last user who logged in will be selected.
> 
> 
>> Previously I did not use any log-in manager, I start X from
>> .bash_profile
>> if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi
>>
>> .xinitrc
>> exec startxfce4
> 
> Have you looked at this page - it describes bashrc as an option:
> 
> https://wiki.gentoo.org/wiki/X_without_Display_Manager
> 
> 
>> but I'm not sure if it runs/starts in VT=7
>> How to check or force X to VT=7
> 
> Ctrl+Alt+Fn to discover which virtual terminal your Xsession is running on.

I'm back on "LightDM" login manager, the login works.
It was as simple as selecting, in top right hand corner (on "setting") during 
Login "Xfce" instead of "Xsession" that is using "twm" which I don't have it 
even installed.  Xfce4 is the only desktop I have so it should be a default one.

As for numlock it still not ON.
The solution I think is to install: "x11-misc/numlockx" and point to it the 
configuration file.
I but I have "numlock" in default run-level and during start up the Numlock key 
turn ON but as soon as the "LightDM" starts, the Numlock light goes OFF.  
Installing another application just to turn it ON is pointless. 
 



Re: [gentoo-user] MIT-MAGIC-COOKIE-1 keyxwininfo: error: unable to open display ":0"

2021-06-11 Thread thelma
On 6/11/21 7:12 PM, the...@sys-concept.com wrote:
> After installing and logging via LightDM 
> When I try to login over X2GO I get:
> 
> Connection failed. Invalid MIT-MAGIC-COOKIE-1 keyxwininfo: error: unable to 
> open display ":0" Invalid MIT-MAGIC-COOKIE-1 keyxwininfo: error: unable to 
> open display ":0"

The reason, why I'm getting this error is that "LightDM"  as automatic logout.  
Anybody know how to prevent it?  


 



[gentoo-user] MIT-MAGIC-COOKIE-1 keyxwininfo: error: unable to open display ":0"

2021-06-11 Thread thelma
After installing and logging via LightDM 
When I try to login over X2GO I get:

Connection failed. Invalid MIT-MAGIC-COOKIE-1 keyxwininfo: error: unable to 
open display ":0" Invalid MIT-MAGIC-COOKIE-1 keyxwininfo: error: unable to open 
display ":0"




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