[gentoo-user] Re: Qustions about installkernel news item

2024-02-07 Thread Nikos Chantziaras

On 24/01/2024 19:58, Walter Dnes wrote:

https://www.gentoo.org/support/news-items/2024-01-18-installkernel-merge.html
for those who haven't run across it yet.  The news item mentions...


Previously sys-kernel/installkernel-gentoo provided kernel
installation automation for users of GRUB via USE=grub.


   I run grub (no dracut) under openrc but "emerge -pv installkernel" shows...

[ebuild U  ] sys-kernel/installkernel-18::gentoo [12::gentoo] USE="-dracut* 
-grub -module-rebuild% -systemd% -uki -ukify" 8 KiB

   Does this mean I can safely ignore it in my case?


Do you use grub-mkconfig instead of a custom config? If yes, the grub 
USE flag will call that for you. You can also disable the dracut USE 
flag so you don't get a warning about dracut missing when you "make 
install" the new kernel.





[gentoo-user] Re: Dual Booting - selection from command line

2024-01-09 Thread Nikos Chantziaras

On 10/01/2024 02:18, the...@sys-concept.com wrote:
I have a box that is two HD's and both are bootable; using "refind" 
instead of grub.
So the selection I choose at boot which drive to boot will be the 
default (during reboot, from command line) until I select the second drive.


The box will be installed in a remote location, so I have no option to 
select which drive to boot from (unless I'm in front of the box).
Is it possible to select which drive I want to "boot" from the command 
line (reboot #2 etc)?


Maybe this helps: 
https://gist.github.com/Darkhogg/82a651f40f835196df3b1bd1362f5b8c





[gentoo-user] Re: udev rule for periodic polling of USB gamepad?

2024-01-03 Thread Nikos Chantziaras

On 03/01/2024 19:53, Michael Cook wrote:

On 1/3/24 12:33, Nikos Chantziaras wrote:
Is it possible to have a USB controller (8BitDo Pro 2) polled every 
second or so with a udev rule? Or through some other mechanism?


This controller has a quirk where it disconnects every 4 seconds or so 
and rubmbles when it does so. [...]


I do not have this issue. I have the switch on the back of the 
controller set to the X position and just connect over bluethooth 
without any issues.


Mine does not have bluetooth. It's the "wired" version. It also doesn't 
have switch. Switching modes works by simply holding down one of the 
buttons when connecting. It auto detects X-Input when connecting it to a 
PC. Holding down the X button will unfortunately not prevent it from 
still doing auto-detection stuff when it doesn't get polled for several 
seconds.



https://codeberg.org/fabiscafe/game-devices-udev I do have these udev 
rules installed, unsure if they fix the issue you're talking about.


I have those too.




[gentoo-user] udev rule for periodic polling of USB gamepad?

2024-01-03 Thread Nikos Chantziaras
Is it possible to have a USB controller (8BitDo Pro 2) polled every 
second or so with a udev rule? Or through some other mechanism?


This controller has a quirk where it disconnects every 4 seconds or so 
and rubmbles when it does so. It also changes device number when this 
happens. It does this because it tries to auto-detects the kind of 
system it has been plugged into (like an XBox, Android, a Nintendo 
Switch, whatever.)


Support for this controller was added in kernel 6.3 or so, but the 
support is extremely half-assed because it doesn't deal with this 
specific quirk. Currently on 6.6.9 here but this was never fixed.





[gentoo-user] Re: alsamixer - no sound

2023-12-16 Thread Nikos Chantziaras

On 17/12/2023 01:54, the...@sys-concept.com wrote:
But the scary thing is I don't know what fix it and running as user: 
alsamixer still does not allow me to save default sound card

I select with F6.


You don't set a "default sound card" with F6. All that does is simply 
allow you to see the mixer controls of a different sound card.


You set your default sound card by using your desktop environment audio 
settings. In KDE, I click on the speaker tray icon and there I can 
select my default sound card and default microphone:


  https://i.imgur.com/Lz3Bfyk.png

Surely there's something similar in the desktop environment you're using.




[gentoo-user] Re: Python 3.11 USE flags being flipped on

2023-12-14 Thread Nikos Chantziaras

On 15/12/2023 00:53, stefan1@shitposting.expert wrote:
I just tried to run today's emerge, when I saw that python 3.11 was 
being pulled in and packages had this USE flag flipped on.


Python 3.11 is the default right now (and has been for some months now.) 
You should follow the python upgrade procedure (there should be a news 
item for this, you can view those with "eselect news list".)


After the upgrade, it might be easier to block new python versions until 
Gentoo switches the default version again later. This has been a 
mainstay in my packacke.mask for ages now:


  # Prevent a shitload of different python versions from being installed
  <=dev-lang/python-3.10
  >=dev-lang/python-3.12

(Obviously the versions are gonna differ over time.)

I don't set PYTHON_TARGETS nor PYTHON_SINGLE_TARGET. Currently, the 
defaults are:


  PYTHON_SINGLE_TARGET="python3_11"
  PYTHON_TARGETS="python3_11"

When the default Python version changes, this is usually announced 
through a portage news item and you'll get a notification about it when 
you sync.


If you really want to stick to 3.10, you can try setting the above vars 
for portage. You can do this in your package.use:


  */* PYTHON_TARGETS: -* python3_10
  */* PYTHON_SINGLE_TARGET: -* python3_10

However, 3.11 is the current default for a reason. Maybe some packages 
really require it, and thus you will end up with both 3.10 and 3.11 
installed. If you just want a single version installed, then it's a good 
idea to not go against the current portage default.





[gentoo-user] Re: No text scrolling at boot

2023-12-14 Thread Nikos Chantziaras

On 13/12/2023 21:29, the...@sys-concept.com wrote:
When gentoo boots grub display only kernel selection on the screen, 
hitting "Enter" there is not kernel line scrolling,
only the login screen after few seconds: graphical login, user and 
password.

Which parameter controls it. is it grub?

In /etc/default/grub
...
#GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_GFXMODE=1024x768x32
GRUB_GFXPAYLOAD_LINUX=keep

framebuffer settings in the kernel configuration under "Device Drivers" 
-> "Graphics support" -> "Support for frame buffer devices."

is build IN.


Enable the EFI frame buffer and rebuild the kernel. You should probably 
also use the native resolution of your monitor GRUB_GFXMODE. And also 
use "auto" as a fallback. For my 1440p display, I use:


GRUB_GFXMODE=2560x1440x32,auto






[gentoo-user] Re: Wifi issues with 6.1.66 kernel and rtl8723bu driver

2023-12-14 Thread Nikos Chantziaras

On 13/12/2023 22:34, Alexis Praga wrote:

Hi,

After a recent update to the latest kernel, I'm having troubles with a custom 
wifi driver [1], packaged using latest git into GURU.
The laptop does recognize and connect to my wifi (that is, my iphone). But I 
cannot access internet and NetworkManager cannot be restarted or stopped (I 
have to force-shutdown the computer).
It may come from wpa_supplicant.

Reverting the kernel to previous version (6.1.60) fixes the issue.


6.1.67 was an emergency release to fix one single issue related to wifi:

https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.67




[gentoo-user] Re: world updates blocked by Qt

2023-10-12 Thread Nikos Chantziaras

On 11/10/2023 21:14, Alan McKinnon wrote:
On Wed, Oct 11, 2023 at 4:49 PM Michael Cook > wrote:

I just --backtrack=100 and walked away, seemed to have figured
something out for my system and updated normally.

This is the one that solved it. Been away too long, forgot all about 
backtrack


I've had this in my make.conf for many years now:

  EMERGE_DEFAULT_OPTS="--backtrack=200"

Never hit the issue you described (KDE desktop, thus Qt is always a dep.)




[gentoo-user] Re: An annoyance in GPM, and a fix for it

2023-10-09 Thread Nikos Chantziaras

On 04/10/2023 21:11, Alan Mackenzie wrote:

Similarly, with a triple click, one can select a line, or a sequence of
lines.  This is all very fine, but GPM adds a CR after each line in the
sequnce, INCLUDING THE LAST ONE.  This makes it less useful for, say,
copying a shell script command from and editor onto a command line.
Because typically, you'd want to edit the command before executing it,


Hm. Bash by default will ignore a newline when pasting something. I 
think it's relatively new feature (like a year or two.) It's called 
"bracketed paste." It should be enabled by default. If not, it can 
enabled with:


  set enable-bracketed-paste on




[gentoo-user] Re: Password questions, looking for opinions. cryptsetup question too.

2023-09-27 Thread Nikos Chantziaras

On 19/09/2023 08:36, Dale wrote:
In the real world tho, how do people reading this make passwords that no 
one could ever guess?
I use nonsensical phrases that also contain symbols instead of words. 
For example "all stars and cats for pies":


  all*s

I can memorize those.




[gentoo-user] Re: long compiles

2023-09-12 Thread Nikos Chantziaras

On 11/09/2023 23:21, Alan McKinnon wrote:
Yup, that jibes with what I see. Oh well, just means that the need for 
overnight compiles did not go away haha


Ever since I added the following to my make.conf:

PORTAGE_NICENESS=19
PORTAGE_IONICE_COMMAND="sh -c \"schedtool -D \${PID} && ionice -c 3 -p 
\${PID}\""


I never needed overnight compiles again. Make sure sys-process/schedtool 
is installed. As long as you have plenty of RAM so the system doesn't 
swap, you can use the system normally even while building monster 
packages. I can even play video games without issue while portage is 
emerging now.





[gentoo-user] Re: long compiles

2023-09-12 Thread Nikos Chantziaras

On 11/09/2023 22:19, Alan McKinnon wrote:
chromium has been building since 10:14, it's now 21:16 and still going 
so 9 hours at least on this machine to build a browser - almost as bad 
as openoffice at it's worst (regularly took 12 hours). Nodejs also took 
a while, but I didn't record time.


What's your CPU and how much RAM? Even on my older system I had (an 
4-core i5 2500K) libreoffice took like 2 hours or so to build.




What other packages have huge build times?


IIRC, dev-qt/qtwebengine is one of the heaviest when it comes to build 
times.


Anyway, a nice way to cut down on build times is to build on tmpfs. To 
do that however with heavy packages like that, I had to upgrade to 32GB 
RAM. There was a large price drop in the memory market a couple months 
ago, so I snatched a 32GB DDR4 3600 kit (2x16GB) for like 80€. So now 
with plenty of RAM, I configured a 14GB tmpfs in /var/tmp/portage. I 
never hit swap when emerging.





[gentoo-user] Re: dosbox 0.74.3 can't init SDL: No audio device on one machine

2023-09-01 Thread Nikos Chantziaras

On 31/08/2023 21:51, Walter Dnes wrote:

   This is the most frustrating type of problem.  On one machine I can
run dosbox fine.  On a second machine...

[waltdnes][~] /usr/bin/dosbox
DOSBox version 0.74-3
Copyright 2002-2019 DOSBox Team, published under GNU GPL.
---
Exit to error: Can't init SDL No available audio device


These days I recommend games-emulation/dosbox-staging instead.(It's a 
fork of dosbox, *not* a staging area for dosbox. The name is rather 
unfortunate.)





[gentoo-user] Re: Migrate install from Intel 6th gen to AMD Zen 4

2023-08-29 Thread Nikos Chantziaras

On 29/08/2023 13:22, Victor Ivanov wrote:

Hello,

I will soon be upgrading from a mobile Skylake platform to a desktop
Ryzen 7000 series and a full re-install is not an option unless all
else fails. I'm thinking of simply moving the drive and recompile as
necessary. I don't see why this wouldn't work, but wanted to double
check with the community just in case.


The only thing I did after upgrading to a different platform (Intel to 
AMD) is *first* switching to sys-kernel/gentoo-kernel-bin on the old 
system, move my storage devices to the new system, and then switch back 
to sys-kernel/gentoo-sources on the new system.


gentoo-kernel-bin is a pre-compiled kernel that serves as a fallback in 
case gentoo-sources won't boot. My CFLAGS are:


  -O2 -pipe -mtune=native -march=native -ftree-vectorize

and didn't need changing. CPU_FLAGS_X86 did of course did need changing 
(with cpuid2cpuflags.)


Usually, critical packages that serve to get you a command-line login 
don't end up using amy "weird" CPU instructions (like AVX512 or 
whatever), but other packages might. So it's best to rebuild @world once 
your new system can boot.





[gentoo-user] Re: Highlight certain packages being upgraded

2023-07-09 Thread Nikos Chantziaras

On 08/07/2023 11:33, Dale wrote:

that excessively long qt package
Off-topic, but just in case you mean qtwebengine, I was able to get rid 
of it by putting "-webengine" in my USE flags. After a world update, a 
depclean should then remove it from the system.


You might have to juggle a few other USE flags in specific packages to 
make it happen though, I forgot. It's been a while.





[gentoo-user] Re: QMPlay2 single instance, want multiple.

2023-06-20 Thread Nikos Chantziaras

On 17/06/2023 08:02, Dale wrote:

[...]
--osd-on-seek=no


Omit the "--" when putting these in mpv.conf. So just write:

osd-on-seek=no




[gentoo-user] Re: dev-libs/nss-3.90

2023-06-06 Thread Nikos Chantziaras

On 06/06/2023 11:44, victor romanchuk wrote:

hi,

just noticed that night upgrade to [~amd64] dev-libs/nss-3.90 crashed 
firefox and thunderbird at start: both ABENDing with `illegal 
instruction' diagnostics. FF rebuild did not change behavior


Downgrade to ~dev-libs/nss-3.89.1 cured the issue


https://bugs.gentoo.org/907932




[gentoo-user] Re: Activating BMQ CPU Scheduler

2023-05-16 Thread Nikos Chantziaras

On 06/05/2023 17:45, Holger Hoffstätte wrote:

Unfortunately it seems that a recent change in the mainline kernel
introduced a bit of an incompatibility, which is why the BMQ/PDS patch
now turns it off. We're trying to get that incompatibility fixed.

Anyway: glad you're up and running now!


I had two lockups in one week, so I reverted back to CFQ. It happened 
while I wasn't using the machine. I came back to find it unresponsive, 
except the mouse cursor still moves. But you can't do anything other 
than move the mouse. Not even SysRq works. Usually I can do the SysRq+ 
REISSUB key sequence to reboot machines that stopped responding, but it 
doesn't do anything in this case. The log contains nothing, meaning 
logging has locked up too.





[gentoo-user] Re: Mouse pain

2023-05-15 Thread Nikos Chantziaras

On 15/05/2023 20:16, Wols Lists wrote:
I've got a fancy gaming mouse and there is ABSOLUTELY NOTHING 
beyond the complete basics that is configurable :-(


I also have such a mouse, but I have to configure it in Windows (using 
the "Logitech HUB" software.) Fortunately, the settings are stores on 
the mouse itself so it remembers the settings in Linux. Not optimal 
having to boot Windows to configure the mouse, but better than nothing :P





[gentoo-user] Re: Mouse pain

2023-05-14 Thread Nikos Chantziaras

On 15/05/2023 03:46, mad.scientist.at.la...@tutanota.com wrote:

The switches themselves do that when they start to wear out.  I've had it 
happen to a number of mice/track balls.  Indeed I'll soon be replacing those 
switches on several track balls and I'll use better switches that have the same 
dimensions.  It may be worth trying to de-dust and de-dust bunny them but it 
probably isn't the problem.


I bought a mouse with optical switches, which are advertised to never 
develop this exact problem. I guess I'll have to wait for a couple years 
to see if the claims check out :P





[gentoo-user] Re: Activating BMQ CPU Scheduler

2023-05-06 Thread Nikos Chantziaras

On 03/05/2023 20:11, Holger Hoffstätte wrote:

On 2023-05-02 21:19, Nikos Chantziaras wrote:

On 02/05/2023 09:53, Holger Hoffstätte wrote:

[...]
BMQ has severe issues. When emerging something while I play a game
(either native or through wine-proton,) there's long lag spikes and
freezes. Even worse, there's bugs like the system completely hanging
on shutdown, or "umount" hanging with 100% CPU use by two kernel
threads.

[...]


Check first if you had CONFIG_PSI enabled. The setting will work in any 
case,
but if you already had it disabled/missing then there's no need to try 
again.


It was enabled so now I disabled it. I'm not even sure why it was 
enabled in the first place, it sounds useless and is documented as "Say 
N if not sure." Haven't had any issues to far.


The main thing I was hoping BMQ might be able to fix is the short sound 
dropout when seeking in MPV. Meaning sound dropping out in other 
applications while seeking in a video in MPV. And guess what, it indeed 
fixes it. I had similar audio issues many years ago, and back then BFQ 
was able to fix them.


Thanks for the help!




[gentoo-user] Re: Activating BMQ CPU Scheduler

2023-05-02 Thread Nikos Chantziaras

On 02/05/2023 09:53, Holger Hoffstätte wrote:

[...]
Switched back to the default (called "CFS" I think.)

BMQ has severe issues. When emerging something while I play a game
(either native or through wine-proton,) there's long lag spikes and
freezes. Even worse, there's bugs like the system completely hanging
on shutdown, or "umount" hanging with 100% CPU use by two kernel
threads.


Can you try booting with psi=0 and check if that helps? There's a known
bad interaction with the PSI (Pressure Stall Information) mechanism,
which is active by default in many kernel configs. The latest version
of the BMQ patch makes sure to turn it off, you may not have that version
yet. BMQ (and PDS) works fine and has done so for quite a while.


Will have to rebuild again. Does that work on 6.1 kernels? (I only use 
LTS nowadays.)





[gentoo-user] Re: Activating BMQ CPU Scheduler

2023-05-01 Thread Nikos Chantziaras

On 26/04/2023 23:06, Holger Hoffstätte wrote:

On 2023-04-26 18:15, Nikos Chantziaras wrote:
So I wanted to try the BMQ scheduler in gentoo-sources. Is just 
enabling it in the kernel build all that's needed? I did so, booted, and:


   $ dmesg | grep -i bmq
   [    0.100284] sched/bmq: BMQ CPU Scheduler v6.1-r4 by Alfred Chen.

That's all and it's in use now? Or do I need to toggle anything else?


That's all you need to do, right. You can slso alternatively switch to 
PDS under
the "General setup > Scheduler features" kernel-config menu, which is 
slightly better
for throughput and "more correct" when many tasks have varying 
priorities - beefy

workstation or server.
BMQ is kind of simplistic (in an elegant way), but that's why it is so 
effective

for low-end systems and desktops.
Run iperf3 over loopback (i.e. both server and client) to see the 
difference.


Switched back to the default (called "CFS" I think.)

BMQ has severe issues. When emerging something while I play a game 
(either native or through wine-proton,) there's long lag spikes and 
freezes. Even worse, there's bugs like the system completely hanging on 
shutdown, or "umount" hanging with 100% CPU use by two kernel threads.





[gentoo-user] Re: Gcc 13.1 and chromium

2023-04-28 Thread Nikos Chantziaras

On 27/04/2023 21:40, Alan Grimes wrote:
I rebuilt my system on gcc 13.1. I think the compiler is good but it 
exposed some bugs in a handful of packages, these are:


Tracker bugs are always useful for knowing what will break before you 
upgrade: https://bugs.gentoo.org/865117





[gentoo-user] Activating BMQ CPU Scheduler

2023-04-26 Thread Nikos Chantziaras
So I wanted to try the BMQ scheduler in gentoo-sources. Is just enabling 
it in the kernel build all that's needed? I did so, booted, and:


  $ dmesg | grep -i bmq
  [0.100284] sched/bmq: BMQ CPU Scheduler v6.1-r4 by Alfred Chen.

That's all and it's in use now? Or do I need to toggle anything else?




[gentoo-user] Re: Nvidia-drivers fails to patch

2023-04-22 Thread Nikos Chantziaras

On 21/04/2023 19:29, Dale wrote:

I ran into a buggy driver a while back and once I synced and upgraded,
the old one was gone.  So, I started keeping a local copy just in case.
Of course, as long as I keep a older driver to fall back on, it won't
break anymore.
It will break with kernel and x.org upgrades. NVidia still updates the 
legacy drivers from time to time to support new kernel and x.org versions.





[gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-20 Thread Nikos Chantziaras

On 20/04/2023 13:59, Dale wrote:

In place of "find -type..." say "find / -type..."


Ahhh, that worked.  I also realized I need to leave off the ' at the
beginning and end.  I thought I left those out.  I copy and paste a
lot.  lol


Btw, if you only want to do this for the root filesystem and exclude all 
other mounted filesystems, also use the -xdev option:


  find / -xdev -type ...




[gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Nikos Chantziaras

On 19/04/2023 22:26, Dale wrote:
So for future reference, let it format with the default?  I'm also 
curious if when it creates the file system it will notice this and 
adjust automatically. It might.  Maybe?


AFAIK, SSDs will internally convert to 4096 in their firmware even if 
they report a physical sector size of 512 through SMART. Just a 
compatibility thing. So formatting with 4096 is fine and gets rid of the 
internal conversion.


I believe Windows always uses 4096 by default and thus it's reasonable 
to assume that most SSDs are aware of that.





[gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-19 Thread Nikos Chantziaras

On 19/04/2023 04:45, Dale wrote:

Filesystem created:   Sun Apr 15 03:24:56 2012
Lifetime writes:  993 GB

That's for the main / partition.  I have /usr on it's own partition tho.

Filesystem created:   Sun Apr 15 03:25:48 2012
Lifetime writes:  1063 GB

I'd think that / and /usr would be the most changed parts of the OS.
After all, /bin and /sbin are on / too as is /lib*.  If that is even
remotely correct, both would only be around 2TBs.  That dang thing may
outlive me even if I don't try to minimize writes.  ROFLMBO


I believe this only shows the lifetime writes to that particular 
filesystem since it's been created?


You can use smartctl here too. At least on my HDD, the HDD's firmware 
keeps tracks of the lifetime logical sectors written. Logical sectors 
are 512 bytes (physical are 4096). The logical sector size is also shown 
by smartctl.


With my HDD:

  # smartctl -x /dev/sda | grep -i 'sector size'
  Sector Sizes: 512 bytes logical, 4096 bytes physical

Then to get the total logical sectors written:

  # smartctl -x /dev/sda | grep -i 'sectors written'
  0x01  0x018  6 37989289142  ---  Logical Sectors Written

Converting that to terabytes written with "bc -l":

  37988855446 * 512 / 1024^4
  17.68993933033198118209

Almost 18TB.




[gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Nikos Chantziaras

On 18/04/2023 18:05, Dale wrote:

I compile on a spinning rust
drive and use -k to install the built packages on the live system.  That
should help minimize the writes.  


I just use tmpfs for /var/tmp/portage (16GB, I'm on 32GB RAM.) When I 
keep binary packages around, those I have on my HDD, as well as the 
distfiles:


DISTDIR="/mnt/Data/gentoo/distfiles"
PKGDIR="/mnt/Data/gentoo/binpkgs"



Since I still need a spinning rust
drive for swap and such, I thought about putting /var on spinning rust.


Nah. The data written there is absolutely minuscule. Firefox writes like 
10 times more just while running it without even any web page loaded... 
And for actual browsing, it becomes more like 1000 times more (mostly 
the Firefox cache.)


I wouldn't worry too much about it. I've been using my current SSD since 
2020, and I'm at 7TBW right now (out of 200 the drive is rated for) and 
I dual boot Windows and install/uninstall large games on it quite often. 
So with an average of 3TBW per year, I'd need over 80 years to reach 
200TBW :-P But I mentioned it in case your use case is different (like 
large video files or recording and whatnot.)





[gentoo-user] Re: Finally got a SSD drive to put my OS on

2023-04-18 Thread Nikos Chantziaras

On 16/04/2023 01:47, Dale wrote:

Anything else that makes these special?  Any tips or tricks?


Only three things.

1. Make sure the fstrim service is active (should run every week by 
default, at least with systemd, "systemctl enable fstrim.timer".)


2. Don't use the "discard" mount option.

3. Use smartctl to keep track of TBW.

People are always mentioning performance, but it's not the important 
factor for me. The more important factor is longevity. You want your 
storage device to last as long as possible, and fstrim helps, discard hurts.


With "smartctl -x /dev/sda" (or whatever device your SSD is in /dev) pay 
attention to the "Data Units Written" field. Your 500GB 870 Evo has a 
TBW of 300TBW. That's "terabytes written". This is the manufacturer's 
"guarantee" that the device won't fail prior to writing that many 
terabytes to it. When you reach that, it doesn't mean it will fail, but 
it does mean you might want to start thinking of replacing it with a new 
one just in case, and then keep using it as a secondary drive.


If you use KDE, you can also view that SMART data in the "SMART Status" 
UI (just type "SMART status" in the KDE application launcher.)





[gentoo-user] Re: updating /boot directory EFI

2023-04-17 Thread Nikos Chantziaras

On 16/04/2023 21:44, Wol wrote:

On 16/04/2023 15:22, Nikos Chantziaras wrote:

On 16/04/2023 07:01, the...@sys-concept.com wrote:

After installing new kernel how to update /boot EFI directory?


You don't need to. You only need to do that when you want to reinstall 
GRUB itself into the EFI partition. The kernel is installed in /boot, 
not into the EFI partition.



And if grub isn't installed?


It is.


Basically you have a choice. Install grub into EFI, and use grub as your 
boot manager. Or ditch grub (the recommended route) and use EFI as your 
boot manager.


EFI can't boot my ISO images (sysrescuecd and memtest86+.)




[gentoo-user] Re: updating /boot directory EFI

2023-04-16 Thread Nikos Chantziaras

On 16/04/2023 07:01, the...@sys-concept.com wrote:

After installing new kernel how to update /boot EFI directory?


You don't need to. You only need to do that when you want to reinstall 
GRUB itself into the EFI partition. The kernel is installed in /boot, 
not into the EFI partition.





[gentoo-user] Re: Portage 'Completed (m of n)' messages

2023-04-11 Thread Nikos Chantziaras

On 11/04/2023 18:26, Peter Humphrey wrote:

On Tuesday, 11 April 2023 14:36:27 BST Arve Barsnes wrote:

On Tue, 11 Apr 2023 at 14:45, Peter Humphrey  wrote:

On Tuesday, 11 April 2023 13:28:58 BST Nikos Chantziaras wrote:

On 11/04/2023 13:59, Peter Humphrey wrote:

What does the panel think of these new status messages from portage
(~amd64)?


What messages? Where? When? :P


They seem to be a feature of sys-apps/portage-3.0.46 and probably 3.0.45.


Nikos' questions still stand :P


We all know that, when a package is emerged, portage announces the start of
the process, and the start of installation to the live disk. Well, now, it
also announces completion of all work on the package.

That causes another length of introductory string, so now there are three
columns to scan for package numbers.

It's a personal preference, I'm sure - even GOM(s) don't all agree.  :)


Oh, I thought there were actual desktop notifications or something, 
which sounded weird. I almost never look the terminal when emerging :P





[gentoo-user] Re: config file '/etc/mtab' needs updating

2023-04-11 Thread Nikos Chantziaras

On 11/04/2023 13:38, Dale wrote:

I saw this the other day as well.  I just skipped it.  Still, it made me
wonder, given what it does and what should update the file, why should
emerge touch that file?


Because the file belongs to the sys-apps/baselayout package.



It's like fstab.  I doubt I'd ever let any
config update touch fstab.  I don't think I'd ever try to touch mtab
myself.


fstab is a config file. mtab is not ;-) It doesn't even belong in /etc, 
but it's kept there for backwards compatibility.





[gentoo-user] Re: Portage 'Completed (m of n)' messages

2023-04-11 Thread Nikos Chantziaras

On 11/04/2023 13:59, Peter Humphrey wrote:

What does the panel think of these new status messages from portage (~amd64)?


What messages? Where? When? :P





[gentoo-user] Re: Docker mounting strangeness.

2022-12-02 Thread Nikos Chantziaras

On 01/12/2022 21:48, Laurence Perkins wrote:
I’m setting up an image to use Docker, which will be deployed on 
multiple machines.  Since the containers will be large, I didn’t want 
them on the root partition.


Ok, easy enough, I just put it in fstab to mount a different partition 
on /var/lib/docker.  Presto, now I don’t have to worry about a container 
using up all the OS’s disk space.


I don't know what's wrong in your case, but in order to have docker 
store its files elsewhere, I created this file:


  /etc/docker/daemon.json

with this in it:

  {
  "data-root": "/mnt/Data/cache/docker"
  }

I stopped the docker daemon and did:

  mkdir /mnt/Data/cache/
  mv /var/lib/docker /mnt/Data/cache/

as root. Then started the docker daemon again and it worked.

/etc/docker/daemon.json is useful for other settings as well, like 
enabling BuildKit by default without having to specify it on the command 
line every time. I use:


  {
  "data-root": "/mnt/Data/cache/docker",
  "features": { "buildkit": true }
  }




[gentoo-user] Re: Upgrading from 5.14 to 6.0 version

2022-11-14 Thread Nikos Chantziaras

On 12/11/2022 23:37, Dale wrote:
Usually, I try to update about once a year.  I don't change hardware 
much.


The main reason I suggested LTS is because that, *when* you decide to do 
a @world update, you will get the latest LTS of the same main version 
you're already using. For example you'll go from 5.15.20 to 5.15.78. And 
that means you won't have to bother with an array of endless "make 
oldconfig" questions. There'll be like one or two at most, which is 
trivial to deal with.


I've been using LTS kernels for years now, and I never looked back. 
"make oldconfig" usually doesn't say anything, making it a ridiculously 
fast and no-brainer update, and yet I get the latest bugfixes and 
security fixes.


It just works :-)




[gentoo-user] Re: Upgrading from 5.14 to 6.0 version

2022-11-12 Thread Nikos Chantziaras

On 12/11/2022 21:13, Wol wrote:

On 12/11/2022 18:22, Dale wrote:

Where does one go for a list of the LTS kernels?  Since I reboot so
rarely, what not use one of them??  Of course, the kernel I have in use
now has long uptimes so it is sort of LTS for this rig anyway.


Do you REALLY want an LTS kernel? Sounds like you don't. You need to 
update them just as much as any other kernel.


The point of an LTS kernel is it supposed to NOT receive feature 
updates, just bug fixes. Given that Artificial Stupidity bots regularly 
try to apply updates to stable kernels, is it worth restricting yourself 
  to old kernels? Especially when it's not unknown for a bot to try to 
backport a patch from kernel X+2, when it depends on a patch from X+1 
that hasn't been backported, and anybody using that code finds their 
"stable" kernel blowing up in their face.


The idea behind stable kernels is great. The implementation leaves a lot 
to be desired and, as always, the reason is not enough manpower.


wat




[gentoo-user] Re: Upgrading from 5.14 to 6.0 version

2022-11-12 Thread Nikos Chantziaras

On 11/11/2022 08:25, Dale wrote:

Howdy,

I been stuck on gentoo-sources 5.14.15 for a while.  I tried upgrading
to I think 5.16 and then more recently 5.18.
If you've been using 5.14 until now, it would appear to me you're the 
target audience of the LTS kernels. 5.15 is the latest LTS kernel. Those 
kernels are maintained with bugfixes and backports for at least 2 years.


The next LTS will probably be 6.1, so if you update to that, stick to it 
for the next 2 years and then update to whatever is the latest LTS then.





[gentoo-user] Re: [SOLVED] Pipewire not a dependency?

2022-10-02 Thread Nikos Chantziaras

On 02/10/2022 12:47, Michael wrote:

I applied the above and now the microphone in Skype works again.  I assume the
same applies to other PulseAudio friendly applications, which won't play
nicely with PipeWire only.  I suppose at some point PulseAudio will be
completely replaced by PipeWire and applications will update their code
accordingly.


Pipewire recommends using the pulseaudio API anyway, at least for now:

https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/FAQ#what-audio-api-do-you-recommend-to-use

Which makes sense. Pipewire is supposed to be a drop-in replacement for 
both pulseaudio and jack. And both of those aren't dead. It makes sense 
for applications to try and work on any system, regardless of whether 
pipewire is used or not.






[gentoo-user] Re: Pipewire not a dependency?

2022-10-02 Thread Nikos Chantziaras

On 01/10/2022 19:56, Michael wrote:

Anyway, I ventured into pipewire because I wanted to see if Skype would work
without pulseaudio and in this system it won't.  After I manually installed
pipewire Skype won't access the microphone.  :-(


Maybe Skype uses ALSA? It's best to enable the "pipewire-alsa" USE flag 
on pipewire and disable the "pulseaudio" flag on alsa-plugins:


media-video/pipewire: pipewire-alsa
media-plugins/alsa-plugins: -pulseaudio

This replaces pulseaudio's ALSA plugin with pipewire's. Skype might work 
with  this.






[gentoo-user] Re: systemd-boot on an openrc system

2022-09-29 Thread Nikos Chantziaras

On 28/09/2022 15:20, Peter Humphrey wrote:

Looking more carefully, I see only one machine has an /etc/machine-info.


I'm on systemd (openrc is not installed at all), and I don't have 
/etc/machine-info. And /etc/kernel/install.d/ is empty.






[gentoo-user] Re: Pipewire not a dependency?

2022-09-29 Thread Nikos Chantziaras

On 28/09/2022 13:57, Michael wrote:

I'm trying to understand why one laptop with Plasma which had pulseaudio
removed, won't bring in pipewire as a dependency.  I have set USE="-
screencast", because I don't need/want this functionality, as I have done on
other systems which nevertheless have had pipewire brought in as a dependency.


Probably some other package pulls it in directly, independent of the 
screencast USE flag. For example media-sound/easyeffects.






[gentoo-user] Re: python mess - random winge!

2022-07-04 Thread Nikos Chantziaras

On 05/07/2022 08:04, William Kenworthy wrote:

I synced portage a couple of days now and now my systems are rebuilding
python modules for 3.10 without any input from me [...]

Yes, that's normal and there was a news item about it. Do:

  eselect news list

to get the and then use the NUMBER of the "Python 3.10 to become the 
default on 2022-07-01" news item:


  eselect read NUMBER

This will give you details on how to do the upgrade properly.




[gentoo-user] Re: Boot has no space left.

2022-06-30 Thread Nikos Chantziaras

On 30/06/2022 20:11, Guillermo wrote:

[screenshot]


Doesn't "emerge -a --depclean" remove all these old kernels?




[gentoo-user] Re: X11 crashes anyone?

2022-06-19 Thread Nikos Chantziaras

On 20/12/2021 09:10, Nikos Chantziaras wrote:
Has anyone here noticed that x.org likes to crash sometimes as of late? 
Never happened before, going years and years back. The last month or so, 
I've got three x.org crashes:


systemd-coredump[204553]: [] Process 453 (X) of user 0 dumped core.


So half a year later and I was still getting these crashes. I found the 
possible issue. More and more people started having the same crashes as 
different distros were updating their X11 stuff. It seems the issue is this:


  https://gitlab.freedesktop.org/xorg/xserver/-/issues/1261

A patch was merged in xorg upstream about 4 months ago:

  https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/865

Downloadable diff:

  https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/865.diff

This patch is not carried in portage. I copied it to 
/etc/portage/patches/x11-base/xorg-server/ and rebuilt xorg-server three 
days ago, and I haven't had any more crashes.


Fingers crossed...




[gentoo-user] Re: plasmashell becomes sluggish with 100% CPU usage

2022-05-25 Thread Nikos Chantziaras

On 24/05/2022 23:20, Nikos Chantziaras wrote:
Anyone noticed anything lately with plasmashell? I think it started 
happening after Qt was upgraded from 5.15.3 to 5.15.4. At login, the 
desktop is very unresponsive and sluggish. Mouse clicks take over a 
second to register.


The plasmashell process is hogging one core of the CPU to almost 100%. 
It only happens on login. Logging out and back in again usually fixes it.


So I decided to just let it do that and see what happens. After about 90 
seconds or so, it calms down and things become normal...





[gentoo-user] Re: plasmashell becomes sluggish with 100% CPU usage

2022-05-24 Thread Nikos Chantziaras

On 25/05/2022 00:53, Daniel Frey wrote:
Do you have an nvidia card? This machine that constantly has this issue 
does, but my laptop (intel graphics) does not.


Yeah, it's nvidia using the binary driver. But I've never had this issue 
before. It only started happening today when I booted up the machine.





[gentoo-user] plasmashell becomes sluggish with 100% CPU usage

2022-05-24 Thread Nikos Chantziaras
Anyone noticed anything lately with plasmashell? I think it started 
happening after Qt was upgraded from 5.15.3 to 5.15.4. At login, the 
desktop is very unresponsive and sluggish. Mouse clicks take over a 
second to register.


The plasmashell process is hogging one core of the CPU to almost 100%. 
It only happens on login. Logging out and back in again usually fixes it.





[gentoo-user] Audio stopped working in KVM with libvirtmanager

2022-05-07 Thread Nikos Chantziaras
Audio in KVM (qemu) launched through libvirtmanager used to work fine 
last time I used it (about 3 months ago.) There has been lots of updates 
since then, including a switch from Pulseaudio to Pipewire, and 
something along the way broke it. Now I get no sound whatsoever. qemu 
doesn't even show up as an application in the audio mixer, nor in the 
output of "pw-top".


If I launch the VM directly through qemu with:

  qemu-system-x86_64 [...] -audiodev id=audio1,driver=pa

then it works fine. But if I launch it through libvirtmanager, it 
doesn't. Even if I force the use of "-audiodev id=audio1,driver=pa" in 
the XML of the VM in /etc/libvirt/qemu/, it still doesn't work. There's 
no error anywhere, no warning, nothing in the logs.


Does anyone have any idea what to do?




[gentoo-user] Re: Sound not sounding

2022-03-24 Thread Nikos Chantziaras

On 23/03/2022 18:50, Peter Humphrey wrote:

The USB sound dongle on this workstation has stopped working, but only for me.
The system settings Audio setup window detects it but no sound is heard


Run "alsamixer" (it's a command-line tool) and in the text UI that 
appears, press F6, select your USB audio device, and then check if it's 
muted or the volume is 0.


PulseAudio generally uses the ALSA sound mixer to change volumes, but 
not always. For some devices, it uses a software volume control that 
doesn't use the ALSA volume controls. So if those are set to 0, there 
will never be any sound.





[gentoo-user] Re: Google and "fetchmail" + "ssmtp"

2022-03-17 Thread Nikos Chantziaras

On 17/03/2022 18:51, Dr Rainer Woitok wrote:

Greetings,

since quite some time,  longe before  "converting" to Gentoo,  I've used
"fetchmail" and "ssmtp" to retrieve and send mail via my Google account.

Some time after I had all set up,  Google started nagging  about my not-
so-secure access to my mail account via just userid and password.  Up to
now I simply ignored that.   But now Google told me  to only allow "Sign
in with Google" or OAuth 2.0 after 2022-05-30.

I've seen quite a few people with "@gmail" or "@googlemail" addresses on
this list, so others might have a similar problem,  but maybe nobody but
me is using this Google + "fetchmail" + "ssmtp" combination.   Any ideas
how to get OAuth into this set-up?


I don't use fetchmail (just an email client), but fetchmail 7 apparently 
supports oauth2. It's masked in portage because it's still alpha 
(net-mail/fetchmail-7.0.0_alpha9-r1).


And then read:

http://mmogilvi.users.sourceforge.net/software/oauthbearer.html

Which also seems to contain Gentoo instructions. Apparently, you don't 
need to apply the patches for fetchmail 6 if you instead unmask and 
emerge the 7.0.0 alpha version.





[gentoo-user] Re: gentoo-sources-5.10.103 - will not boot

2022-03-14 Thread Nikos Chantziaras

On 14/03/2022 00:26, the...@sys-concept.com wrote:

Simple human error :-/

When I did:
cd linux
cp ../linux-old_kernel/.config .
mount /boot/
make oldconfig

New entries showed up. Instead of pressing "enter" I made a mistake and 
press "Y" several times.
This enabled some feature in the new kernel that shouldn't be there; 
example: "CONFIG_KCSAN = y"


Good old contradictory defaults in the kernel config. You press "?" to 
see the description of an option, and it tells you stuff like "say N 
unless you know what you're doing," but the default when pressing enter 
is Y...


Go figure.




[gentoo-user] Re: sys-devel/llvm and LLVM_TARGETS

2022-03-12 Thread Nikos Chantziaras

On 12/03/2022 18:03, Grant Edwards wrote:

On 2022-03-12, Nikos Chantziaras  wrote:

On 12/03/2022 10:43, Dale wrote:

https://bugs.gentoo.org/767700

Is that the one?  It mentions the target but I don't quite understand
the why.  The biggest thing, will this break something if I let it do
it?


No. Unlike GCC, LLVM/Clang is always a cross-compiler.


You can't use LLVM/Clang to compile for the host on which it's
running?


Why not?




[gentoo-user] Re: sys-devel/llvm and LLVM_TARGETS

2022-03-12 Thread Nikos Chantziaras

On 12/03/2022 10:43, Dale wrote:

https://bugs.gentoo.org/767700

Is that the one?  It mentions the target but I don't quite understand
the why.  The biggest thing, will this break something if I let it do
it?


No. Unlike GCC, LLVM/Clang is always a cross-compiler. This just enables 
some extra targets. It won't actually affect anything other than perhaps 
the binaries becoming a bit larger.





[gentoo-user] Re: Root can't write to files owned by others?

2022-03-11 Thread Nikos Chantziaras

On 11/03/2022 17:06, Mark Knecht wrote:

Is this related to the 'dirty pipe' vulnerability that has been in the
news of late and has gotten patched in most distros in the last few
days?


In one of the discussions about the patch, it was mentioned that "a 
couple of CVEs would have never happened" if this had been the default 
to begin with. So, probably yes?





[gentoo-user] Re: Root can't write to files owned by others?

2022-03-10 Thread Nikos Chantziaras

On 10/03/2022 20:44, Michael wrote:

~ # sysctl -a | grep fs.protected_regular
fs.protected_regular = 1


To check the current value of a setting, you can just run:

  sysctl fs.protected_regular

No grep or root needed.




[gentoo-user] Re: Root can't write to files owned by others?

2022-03-10 Thread Nikos Chantziaras

On 10/03/2022 11:55, Dr Rainer Woitok wrote:

Big thanks to all kind people making suggestions.  But up to now nothing
helped.


Are you sure that:

sysctl fs.protected_regular=0

does not help? I can reproduce it here on my system with kernel 5.15.27, 
and setting that sysctl to 0 fixes it immediately.





[gentoo-user] Re: Root can't write to files owned by others?

2022-03-09 Thread Nikos Chantziaras

On 09/03/2022 20:28, Dr Rainer Woitok wrote:

until recently my system behaves sort of strangely:

$ echo x | sudo tee /tmp/file
Password:
tee: /tmp/file: Permission denied
[...]


Since when can't root write to files  it doesn't own?   And not even, if
the file has write permission for everybody?


This is normal, at least when using systemd. To disable this behavior, 
you have to set:


  sysctl fs.protected_regular=0

But you should know what this means when it comes to security. See:

  https://www.spinics.net/lists/fedora-devel/msg252452.html




[gentoo-user] Re: Portage detects fake "world file problems" and packages that don't exist

2022-01-10 Thread Nikos Chantziaras

On 08/01/2022 22:44, Nikos Chantziaras wrote:

This is weird. When doing:

emerge -auDU @world

Portage says:


!!! Problems have been detected with your world file
!!! Please run emaint --check world


!!! Ebuilds for the following packages are either all
!!! masked or don't exist:
media-sound/pavucontrol media-sound/pulseeffects sys-block/gparted

Nothing to merge; quitting.



It was a bug and it's fixed now: https://bugs.gentoo.org/830881




[gentoo-user] Re: Portage detects fake "world file problems" and packages that don't exist

2022-01-09 Thread Nikos Chantziaras

On 09/01/2022 12:00, Neil Bothwick wrote:

On Sat, 8 Jan 2022 22:44:08 +0200, Nikos Chantziaras wrote:


emerge -auDU @world

!!! Problems have been detected with your world file
!!! Please run emaint --check world


!!! Ebuilds for the following packages are either all
!!! masked or don't exist:
media-sound/pavucontrol media-sound/pulseeffects sys-block/gparted

My world file is fine and "emaint --check world" doesn't find anything.


Have you edited your world file manually? I wonder if you could have
introduced some non-ASCII characters or changed line endings - something
that portage objects to but emaint doesn't.


I checked and there's nothing weird in there. I even deleted the world 
file, and then recreated it by doing "emerge --noreplace" all these 
packages. Portage then re-created the world file.


Same result.

I then spend some time trying to find the packages that cause the 
problem. I tracked it down to media-sound/pulseeffects. If I remove just 
that one package from the world file, then the error message is gone, 
but also "emerge -uDU @world" is now much faster.


This package is probably triggering a portage bug.




[gentoo-user] Re: Portage detects fake "world file problems" and packages that don't exist

2022-01-08 Thread Nikos Chantziaras

Did that already. No additional info is shown.


On 09/01/2022 01:03, Jack wrote:
If nothing else, I would start by adding a --verbose to that emerge 
command.  It may just confuse you worse, but it might add some useful info.


On 2022.01.08 15:44, Nikos Chantziaras wrote:

This is weird. When doing:

emerge -auDU @world

Portage says:


!!! Problems have been detected with your world file
!!! Please run emaint --check world


!!! Ebuilds for the following packages are either all
!!! masked or don't exist:
media-sound/pavucontrol media-sound/pulseeffects sys-block/gparted

Nothing to merge; quitting.


My world file is fine and "emaint --check world" doesn't find 
anything. Also, all these packages that portage claims are masked or 
don't exist are not masked and they exist.


This is on ~amd64.

I'm stumped :-/












[gentoo-user] Portage detects fake "world file problems" and packages that don't exist

2022-01-08 Thread Nikos Chantziaras

This is weird. When doing:

emerge -auDU @world

Portage says:


!!! Problems have been detected with your world file
!!! Please run emaint --check world


!!! Ebuilds for the following packages are either all
!!! masked or don't exist:
media-sound/pavucontrol media-sound/pulseeffects sys-block/gparted

Nothing to merge; quitting.


My world file is fine and "emaint --check world" doesn't find anything. 
Also, all these packages that portage claims are masked or don't exist 
are not masked and they exist.


This is on ~amd64.

I'm stumped :-/




[gentoo-user] Re: yt-dlp config file different than old youtube-dl

2022-01-08 Thread Nikos Chantziaras

On 08/01/2022 07:26, Dale wrote:

This is the line from the old youtube-dl.conf that worked for it:

--format 'bestvideo[ext=webm,ext=mp4][width<=?1280]+bestaudio/best'


The "--format-sort" option is much better for this. To prefer 720p video 
or lower, but not higher:


--format-sort=width:1280,height:720,vcodec:av1

The AV1 codec preference is nowadays default, but I like to specify it 
anyway. AV1 has the smallest video size but at the same time the highest 
video quality as well. If AV1 is not available, it will fall back to VP9 
(higher quality, bigger size,) and then to H.264 (lower quality, smaller 
size.)





[gentoo-user] Re: X11 crashes anyone?

2022-01-06 Thread Nikos Chantziaras

On 26/12/2021 09:34, Nikos Chantziaras wrote:

On 21/12/2021 08:50, Ionen Wolkens wrote:

On Tue, Dec 21, 2021 at 08:31:55AM +0200, Nikos Chantziaras wrote:

Seems to be a different issue then. I'm on an nvidia card using the
binary driver, and there's no problems like the ones you're having. It's
a straight disappearance of the desktop here when it happens due to the
X11 process segfault.

[...]

With 495.44-r2 and 495.46-r10, Xorg log may have a backtrace
mentioning libnvidia-glcore.so, if so try 495.46-r0.


Just got another one. I was smart enough this time to save 
Xorg.0.log.old before it gets overwritten. No mention of nvidia anywhere:


[ 47526.314] (EE) Backtrace:
[ 47526.321] (EE) 0: /usr/bin/X (xorg_backtrace+0x5b) [0x55c605c611cb]
[ 47526.321] (EE) 1: /usr/bin/X (0x55c605b16000+0x14f0f5) [0x55c605c650f5]
[ 47526.321] (EE) 2: /lib64/libpthread.so.0 (0x7fd0097df000+0x12660) 
[0x7fd0097f1660]
[ 47526.321] (EE) 3: /lib64/libc.so.6 (0x7fd00961c000+0x15b0b3) 
[...]

[ 47526.321] (EE) Segmentation fault at address 0x7fff46403180

[...]

I guess I'll just downgrade the nvidia drivers to 470.94 anyway and see 
if it happens again.


It just happened again with 470.94. :-/




[gentoo-user] Re: X11 crashes anyone?

2021-12-25 Thread Nikos Chantziaras

On 21/12/2021 08:50, Ionen Wolkens wrote:

On Tue, Dec 21, 2021 at 08:31:55AM +0200, Nikos Chantziaras wrote:

Seems to be a different issue then. I'm on an nvidia card using the
binary driver, and there's no problems like the ones you're having. It's
a straight disappearance of the desktop here when it happens due to the
X11 process segfault.

[...]

With 495.44-r2 and 495.46-r10, Xorg log may have a backtrace
mentioning libnvidia-glcore.so, if so try 495.46-r0.


Just got another one. I was smart enough this time to save 
Xorg.0.log.old before it gets overwritten. No mention of nvidia anywhere:


[ 47526.314] (EE) Backtrace:
[ 47526.321] (EE) 0: /usr/bin/X (xorg_backtrace+0x5b) [0x55c605c611cb]
[ 47526.321] (EE) 1: /usr/bin/X (0x55c605b16000+0x14f0f5) [0x55c605c650f5]
[ 47526.321] (EE) 2: /lib64/libpthread.so.0 (0x7fd0097df000+0x12660) 
[0x7fd0097f1660]
[ 47526.321] (EE) 3: /lib64/libc.so.6 (0x7fd00961c000+0x15b0b3) 
[0x7fd0097770b3]

[ 47526.321] (EE) 4: /usr/bin/X (0x55c605b16000+0x83397) [0x55c605b99397]
[ 47526.321] (EE) 5: /usr/bin/X (0x55c605b16000+0x84e11) [0x55c605b9ae11]
[ 47526.321] (EE) 6: /usr/bin/X (0x55c605b16000+0x85335) [0x55c605b9b335]
[ 47526.321] (EE) 7: /usr/bin/X (0x55c605b16000+0x863c6) [0x55c605b9c3c6]
[ 47526.321] (EE) 8: /usr/bin/X (0x55c605b16000+0x1058e5) [0x55c605c1b8e5]
[ 47526.321] (EE) 9: /usr/bin/X (XkbHandleActions+0x2b0) [0x55c605c522f0]
[ 47526.321] (EE) 10: /usr/bin/X (0x55c605b16000+0x135401) [0x55c605c4b401]
[ 47526.321] (EE) 11: /usr/bin/X (0x55c605b16000+0x1355fa) [0x55c605c4b5fa]
[ 47526.321] (EE) 12: /usr/bin/X (0x55c605b16000+0x148686) [0x55c605c5e686]
[ 47526.321] (EE) 13: /usr/bin/X (WaitForSomething+0x268) [0x55c605c5e918]
[ 47526.321] (EE) 14: /usr/bin/X (0x55c605b16000+0x77f25) [0x55c605b8df25]
[ 47526.321] (EE) 15: /usr/bin/X (0x55c605b16000+0x7c4c3) [0x55c605b924c3]
[ 47526.321] (EE) 16: /lib64/libc.so.6 (__libc_start_main+0xcd) 
[0x7fd00963f7fd]

[ 47526.321] (EE) 17: /usr/bin/X (_start+0x2a) [0x55c605b5365a]
[ 47526.321] (EE)
[ 47526.321] (EE) Segmentation fault at address 0x7fff46403180



Alternatively, 495.46* may mention failed in libpthread (or libc if
glibc-2.34), in that case try 495.44-r2 instead.


It does mention libc, but I'm on glibc-2.33-r7.

I guess I'll just downgrade the nvidia drivers to 470.94 anyway and see 
if it happens again.





[gentoo-user] Re: Apparently 2.4 is not >= 2.2?

2021-12-21 Thread Nikos Chantziaras

On 22/12/2021 02:28, Steven Lembark wrote:

Q: Are either of these issues well-known pathologies of emerge?
[...]


emerge: there are no ebuilds to satisfy 
">=dev-lang/python-exec-2:2/2=[python_targets_python2_7(-),python_targets_python3_6(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]".
(dependency required by "dev-python/pytest-runner-4.2::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


Post the output of:

emerge --info dev-lang/python-exec




[gentoo-user] Re: X11 crashes anyone?

2021-12-20 Thread Nikos Chantziaras

On 20/12/2021 13:21, Michael wrote:

On Monday, 20 December 2021 07:10:59 GMT Nikos Chantziaras wrote:

Has anyone here noticed that x.org likes to crash sometimes as of late?
[...]


I have been suffering similar symptoms[1] on a AMD Kaveri APU powered box,
running plasma with two monitors, which worsened[2] in the last couple of
weeks.  All other boxen work fine, so I assumed some Radeon driver issue
specific to this machine.

[1]  For some months now the RH monitor would not acquire the correct
resolution. [...]

[2] Last week's update broke both xorg and wayland.  Plasma crashes when
launched and partially recovers. [...]


Seems to be a different issue then. I'm on an nvidia card using the 
binary driver, and there's no problems like the ones you're having. It's 
a straight disappearance of the desktop here when it happens due to the 
X11 process segfault.





[gentoo-user] Re: Movie editing softeware

2021-12-20 Thread Nikos Chantziaras

On 20/12/2021 05:17, William Kenworthy wrote:
Hi, what is a usable piece of software in portage to do a quick edit of 
a movie? (cut start/end and maybe splice a bit in/out of the middle?)


I use LosslessCut for this:

  https://github.com/mifi/lossless-cut

It's not in Portage, but the provided AppImage download "just runs". If 
you've never used an AppImage before, it behaves just like a normal 
executable. So "chmod +x LosslessCut-linux.AppImage" and then just run it.





[gentoo-user] X11 crashes anyone?

2021-12-19 Thread Nikos Chantziaras
Has anyone here noticed that x.org likes to crash sometimes as of late? 
Never happened before, going years and years back. The last month or so, 
I've got three x.org crashes:


systemd-coredump[204553]: [] Process 453 (X) of user 0 dumped core.

This is x11-base/xorg-server-21.1.2-r2.

qlop -v x11-base/xorg-server says:

  2021-08-04T17:58:15 >>> x11-base/xorg-server-1.20.13-r1: 52s
  2021-11-30T16:15:54 >>> x11-base/xorg-server-21.1.1: 28s
  2021-12-03T18:49:22 >>> x11-base/xorg-server-21.1.1-r2: 27s
  2021-12-16T17:08:40 >>> x11-base/xorg-server-21.1.2: 24s
  2021-12-19T21:57:08 >>> x11-base/xorg-server-21.1.2-r2: 25s

So it seems this coincides with the upgrade from 1.20.13 to 21.1.1 about 
a month ago.


Anyone else seeing this?




[gentoo-user] Re: "Broken soname dependencies found" after portage upgrade

2021-12-19 Thread Nikos Chantziaras

On 12/12/2021 18:11, Nikos Chantziaras wrote:
After upgrading from portage 3.0.28 to 3.0.30, I get this when doing 
emerge --depclean:


Calculating dependencies... done!
  * Broken soname dependencies found:
  *
  *   x86_64: libexpat.so required by:
  * app-emulation/vmware-workstation-16.2.1.18811642-r1


Mystery solved. This functionality was always there though 
--ignore-soname-deps, but disabled by default. The new default is 
--ignore-soname-deps=n, which triggers those.




[gentoo-user] Re: "Broken soname dependencies found" after portage upgrade

2021-12-13 Thread Nikos Chantziaras

On 12/12/2021 18:41, Neil Bothwick wrote:

On Sun, 12 Dec 2021 18:11:53 +0200, Nikos Chantziaras wrote:


After upgrading from portage 3.0.28 to 3.0.30, I get this when doing
emerge --depclean:

Calculating dependencies... done!
   * Broken soname dependencies found:
   *
   *   x86_64: libexpat.so required by:
   * app-emulation/vmware-workstation-16.2.1.18811642-r1
[...]


Revdep-rebuild won't work because vmware-workstation is a binary package.
You may need to add a file to /etc/revdep-rebuild that adds the vmware
path (somewhere in /opt?) to SEARCH_DIRS_MASK.


This is already the case:

  SEARCH_DIRS_MASK="/opt/vmware"

As I said, revdep-rebuild does not find anything to rebuild and prints 
nothing. It's "emerge --depclean" that shows these messages.





[gentoo-user] Re: "Broken soname dependencies found" after portage upgrade

2021-12-13 Thread Nikos Chantziaras

On 12/12/2021 18:57, tastytea wrote:

On 2021-12-12 18:11+0200 Nikos Chantziaras  wrote:


After upgrading from portage 3.0.28 to 3.0.30, I get this when doing
emerge --depclean:

Calculating dependencies... done!
   * Broken soname dependencies found:
   *   x86_64: libexpat.so required by:
   * app-emulation/vmware-workstation-16.2.1.18811642-r1
[...]
   *   x86_64: liblttng-ust.so.0 required by:
   * dev-dotnet/dotnet-sdk-bin-6.0.100
[...]


It means the binary wants to load some libraries (like libexpat.so)
portage can't find.


(And before anyone asks, the software works just fine, and neither
revdep-rebuild nor revdep-rebuild.sh find anything wrong.)


But vmware (or rather, the linker) seems to find them. Maybe they are in
the same directory as the binary and portage doesn't search there? You
can check which libraries exactly the binary wants to load with ldd.


Example:

$ ldd 
/opt/vmware/lib/vmware-installer/3.0.0/python/lib/lib-dynload/readline.cpython-39-x86_64-linux-gnu.so
ldd: warning: you do not have execution permission for 
`/opt/vmware/lib/vmware-installer/3.0.0/python/lib/lib-dynload/readline.cpython-39-x86_64-linux-gnu.so'

linux-vdso.so.1 (0x7ffde924c000)
libreadline.so.6 => not found

It seems the new portage version does these checks now. Is there a way 
to opt-out of those checks?





[gentoo-user] "Broken soname dependencies found" after portage upgrade

2021-12-12 Thread Nikos Chantziaras
After upgrading from portage 3.0.28 to 3.0.30, I get this when doing 
emerge --depclean:


Calculating dependencies... done!
 * Broken soname dependencies found:
 *
 *   x86_64: libexpat.so required by:
 * app-emulation/vmware-workstation-16.2.1.18811642-r1
 *
 *   x86_64: libgdbm_compat.so.3 required by:
 * app-emulation/vmware-workstation-16.2.1.18811642-r1
 *
 *   x86_64: liblttng-ust.so.0 required by:
 * dev-dotnet/dotnet-sdk-bin-6.0.100
 *
 *   x86_64: libreadline.so.6 required by:
 * app-emulation/vmware-workstation-16.2.1.18811642-r1
 *
 *   x86_64: libgdbm.so.3 required by:
 * app-emulation/vmware-workstation-16.2.1.18811642-r1
 *
 *   x86_64: libbz2.so.1.0 required by:
 * app-emulation/vmware-workstation-16.2.1.18811642-r1
 *
>>> No packages selected for removal by depclean

What does it even mean?

(And before anyone asks, the software works just fine, and neither 
revdep-rebuild nor revdep-rebuild.sh find anything wrong.)





[gentoo-user] Re: [OT] suggest SSD partitioning

2021-12-10 Thread Nikos Chantziaras

On 09/12/2021 21:27, p...@xvalheru.org wrote:
I'm planning small /boot partition, / partition and /data (including 
home) partition.


I just use one partition. What's the point of having multiple ones if
they're all on the same storage device?


But I'm not sure if I should create a swap partition or swap to 
file. I'm daily hibernating the system to disk. And what should be 
the size od the swap same as RAM or bigger?
The "perfect" setup here would be to get a very small SSD (and those 
tend to be very cheap), like a 64GB one for $20 or thereabout, and use 
that as your swap. Just a single swap partition that uses all available 
storage space.


I don't like swap being on my main SSD, since SSDs wear out when you 
write to them. If you're hibernating the system all the time, that 
results in quite a lot of data being written. Having a cheap small 
dedicated SSD for that where you don't care much about its longevity 
sounds like a good idea to me.


If you can't do that, then it doesn't matter much whether you use a swap 
file or partition. On an SSD, both should perform about the same. On an 
HDD, swap files could run into fragmentation issues if you resize them 
or create them incorrectly. On an SSD, fragmentation doesn't have much 
of an impact. A swap file gives you the option to resize it later on 
without having to do filesystem and partition resizing, so I'd say a 
swap file sounds better.





[gentoo-user] Re: Trying to fix stuttering emulators (melonDS and PCSX2)

2021-11-30 Thread Nikos Chantziaras

On 27/11/2021 09:52, Jamie Getty wrote:
Hello Gentoo users. I've recently been encountering some issues running 
games on my PC. Here's video evidence of the issues I've seen: 
https://www.youtube.com/watch?v=1hNwwOOikGQ 



That video shows your PC is not fast enough to run the emulator. It only 
runs at about half speed.


What is your CPU? You can also use sys-process/htop to see how 
overloaded the primary CPU core gets. If it's at 100%, then that means 
you just need a CPU with faster single-core performance.





[gentoo-user] Re: youtube-dl has been very slow

2021-11-08 Thread Nikos Chantziaras

On 08/11/2021 17:57, Matt Connell (Gmail) wrote:

What was the reasoning/motivation behind the fork?  I see the yt-dl
subreddit recommending yt-dlp as you have here, but not explanation
other than the throttling being experienced and described here.


It was a fork that added things youtube-dl didn't want to add. They are 
described on their github page:


  https://github.com/yt-dlp/yt-dlp

One thing they added in particular that I find great is the ability to 
specify which codec to prefer. I want AV1, which is the highest quality 
codec on youtube. Before, I had to do this:


--format=bestvideo[vcodec^=av01][width>?2500][width<=?2560]+bestaudio/bestvideo[ext=webm][width>?2500][width<=?2560]+bestaudio/bestvideo[ext=mp4][width>?2500][width<=?2560]+bestaudio/bestvideo[vcodec^=av01][width>?1800][width<=?1920]+bestaudio/bestvideo[ext=webm][width>?1800][width<=?1920]+bestaudio/bestvideo[ext=mp4][width>?1800][width<=?1920]+bestaudio/bestvideo[vcodec^=av01][width>?1100][width<=?1280]+bestaudio/bestvideo[ext=webm][width>?1100][width<=?1280]+bestaudio/bestvideo[ext=mp4][width>?1100][width<=?1280]+bestaudio/bestvideo[vcodec^=av01][width>?800][width<=?1024]+bestaudio/bestvideo[ext=webm][width>?800][width<=?1024]+bestaudio/bestvideo[ext=mp4][width>?800][width<=?1024]+bestaudio/bestvideo[vcodec^=av01][width>?600][width<=?800]+bestaudio/bestvideo[ext=webm][width>?600][width<=?800]+bestaudio/bestvideo[ext=mp4][width>?600][width<=?800]+bestaudio/bestvideo[vcodec^=av01][width>?400][width<=?580]+bestaudio/bestvideo[ext=webm][width>?400][width<=?580]+bestaudio/bestvideo[ext=mp4][width>?400][width<=?580]+bestaudio/bestvideo[vcodec^=av01][width>?200][width<=?400]+bestaudio/bestvideo[ext=webm][width>?200][width<=?400]+bestaudio/bestvideo[ext=mp4][width>?200][width<=?400]+bestaudio/best

But with yt-dlp I only have to do this:

  --format-sort=width:2560,height:1440,vcodec:av1

If that's not a win, I don't what is :)


[gentoo-user] Re: acrobat reader

2021-10-08 Thread Nikos Chantziaras

On 22/09/2021 22:29, the...@sys-concept.com wrote:

I have evince, it will not open it.

This is the form I'm trying to open:

https://cfr.forms.gov.ab.ca/Form/AHC0102.pdf


I just opened this URL in firefox-bin-93.0, which claims support for 
"XFA-based forms", and indeed I can fill it out just fine.


So finally solved, I suppose?




[gentoo-user] Re: Compile large packages as last package

2021-08-15 Thread Nikos Chantziaras

On 14/08/2021 22:20, Ramon Fischer wrote:
Is there any way to tell "portage", that packages like "qtwebengine", 
"(ungoogled-)chromium", "firefox" and so on are always compiled as last 
package?


The simplest way is to exclude those packages in the first update, and 
then allow them in the second:


emerge -uDU @world --exclude "qtwebengine firefox chromium" && emerge 
-uDU @world


The dependency tracker of portage will of course also exclude packages 
that depend on the excluded packages, unless they themselves have 
updates pending. In that case, they *might* get built twice; once 
against the current version of the excluded packages, and then perhaps 
again on the second run, if there's rebuild triggers involved.


Most of the time though, you won't run into cases of redundant rebuilds. 
Rebuild triggers are not very common.





[gentoo-user] Re: Recommend C source browser/editor?

2021-08-07 Thread Nikos Chantziaras

On 06/08/2021 23:25, Grant Edwards wrote:

Would anybody care to recommend a tool for browsing around (and
editing) a tree of somebody-else's C code?

I prefer emacs for day-to-day editing of my code (when I know what's
where), but I'm looking for something to browse around a tree of
unfamiliar source code and make minor changes. I briefly tried
emacs+cscope at a few points in the past, but it just never worked
very well.

It would be nice to have something that I can just point at a tree of
source files and not to have to spend a lot of time setting up a
"project" or "workspace" or whatever...


If emacs has support for compilation databases (a 
"compile_commands.json" file), then you can generate one. The easiest 
way to do that is with dev-util/bear:


  $ bear -- make -j16

This will build the project as usual, but a compile_commands.json file 
will be generated in the current directory. Load that file into an 
editor or IDE that supports compilation databases.





[gentoo-user] Re: Inquiry about gentoo kernel configuration

2021-07-13 Thread Nikos Chantziaras

On 11/07/2021 16:17, Dongliang Mu wrote:

On Sun, Jul 11, 2021 at 1:54 AM Nikos Chantziaras  wrote:

On 10/07/2021 12:15, Dongliang Mu wrote:

I am a newbie to Gentoo. For Debian, I can get configuration files
from Debian packages. I wonder if possible to get the kernel
configuration files of Gentoo.


You can use the one shipped in the sys-kernel/gentoo-kernel-bin package.


Thanks. There is only a file - *.ebuild file in this package. From the
package, I did not find out what .config file it uses. It seems this
script uses the config file of current system.


It ships its own .config. The easiest way here is to simply install 
gentoo-kernel-bin. After you get a system running that kernel, build 
your own, basing your new config on the existing one.





[gentoo-user] Re: Inquiry about gentoo kernel configuration

2021-07-10 Thread Nikos Chantziaras

On 10/07/2021 12:15, Dongliang Mu wrote:

Hi Gentoo users,

I am a newbie to Gentoo. For Debian, I can get configuration files
from Debian packages. I wonder if possible to get the kernel
configuration files of Gentoo.


You can use the one shipped in the sys-kernel/gentoo-kernel-bin package.




[gentoo-user] Re: Since when does module-rebuild delete modules for previous kernel version?

2021-07-10 Thread Nikos Chantziaras

On 08/07/2021 02:09, Nikos Chantziaras wrote:

So I just noticed that when I run:

emerge @module-rebuild

after having installed a kernel update, the kernel modules of the 
previous kernel version are being deleted. I am sure this didn't use to 
be the case.

Found the issue. On my new system, I had this in my make.conf:

  UNINSTALL_IGNORE="/usr/src"

because /usr/src is a symlink to a directory on my HDD (as I don't want 
to write all that data to my SSD.) Portage would bark about it during 
depclean if I don't put that in UNINSTALL_IGNORE.


From "man make.conf":

  UNINSTALL_IGNORE = [space delimited list of fnmatch patterns]

  This variable prevents uninstallation of files that match
  specific fnmatch(3) patterns. [...] Defaults to
  "/lib/modules/*".

Right. However, it's obvious I've hit a portage inconsistency here. For 
example, when I use:


  CONFIG_PROTECT="blah"

in make.conf, "blah" is appended to CONFIG_PROTECT. But for whatever 
reason, this is not the case for UNINSTALL_IGNORE. It completely nukes 
the default value instead. I had to change this to:


  UNINSTALL_IGNORE="${UNINSTALL_IGNORE} /usr/src"

and now all is fine.




[gentoo-user] Re: Since when does module-rebuild delete modules for previous kernel version?

2021-07-07 Thread Nikos Chantziaras

On 08/07/2021 02:18, Neil Bothwick wrote:

On Thu, 8 Jul 2021 02:09:17 +0300, Nikos Chantziaras wrote:


So far, so good. But when I ran "emerge @module-rebuild", which
rebuilds these two packages:

app-emulation/vmware-modules
x11-drivers/nvidia-drivers

The vmwware and nvidia kernel modules got deleted from
/lib/modules/5.10.47-gentoo.

This is bad. When did this change? How can I prevent this from
happening?


Hasn't this always been the case. emerging a package removes files
installed by the previous merge.

I think adding /lib/modules to CONFIG_PROTECT will prevent their
deletion.


I just tried that after "eselect kernel set 1" and rebuilding modules, 
and it doesn't help.


I am quite sure the modules were not uninstalled in my old system. It 
could be that I had to set some option somewhere, but I don't remember :-/





[gentoo-user] Since when does module-rebuild delete modules for previous kernel version?

2021-07-07 Thread Nikos Chantziaras

So I just noticed that when I run:

emerge @module-rebuild

after having installed a kernel update, the kernel modules of the 
previous kernel version are being deleted. I am sure this didn't use to 
be the case. I have two entries configured in grub:


  Gentoo
  Gentoo (previous kernel)

They load /boot/vmlinuz and /boot/vmlinuz.old respectively (these are 
created by "make install" of gentoo-sources.)


Right now, I have gentoo-sources-5.10.47 booted. Modules are in:

  /lib/modules/5.10.47-gentoo

I just built 5.10.48 and did the usual "make install" and "make 
modules_install". This updated the vmlinuz and vmlinuz.old symlinks in 
/boot (as well as the config[.old] and System.map[.old] symlinks) and 
installed its modules into:


  /lib/modules/5.10.48-gentoo

So far, so good. But when I ran "emerge @module-rebuild", which rebuilds 
these two packages:


  app-emulation/vmware-modules
  x11-drivers/nvidia-drivers

The vmwware and nvidia kernel modules got deleted from 
/lib/modules/5.10.47-gentoo.


This is bad. When did this change? How can I prevent this from happening?




[gentoo-user] Re: app-emulation/docker-20.10.2 ebuild is borked?

2021-01-08 Thread Nikos Chantziaras

On 09/01/2021 05:02, Ionen Wolkens wrote:

On Sat, Jan 09, 2021 at 03:46:10AM +0200, Nikos Chantziaras wrote:

Portage was trying to update docker from 20.10.1 to 20.10.2. However, it
aborts with:

ERROR: setup
CONFIG_RT_GROUP_SCHED: is not set when it should be.


I don't believe this check aborts the build, maybe something else
happened? At least it doesn't for me.


Hm, right. It says "ERROR" so I assumed it's an error, not a warning.



I replied to https://bugs.gentoo.org/764524#c1 which should answer both
issues. I'm assuming some extra changes were accidentally merged while adding
cli USE.


Thank you! Performing those two changes in the ebuild fixed it.




[gentoo-user] app-emulation/docker-20.10.2 ebuild is borked?

2021-01-08 Thread Nikos Chantziaras
Portage was trying to update docker from 20.10.1 to 20.10.2. However, it 
aborts with:


  ERROR: setup
  CONFIG_RT_GROUP_SCHED: is not set when it should be.

That's a stupid requirement and not needed, as it breaks realtime 
scheduling with rtkit (PulseAudio for example.)


So I copied the ebuild to my local overlay and removed ~RT_GROUP_SCHED 
from CONFIG_CHECK. Portage now aborts with:


  ERROR: compile
  ERROR: app-emulation/docker-20.10.2::local failed (compile phase):
USE Flag 'selinux' not in IUSE for app-emulation/docker-20.10.2

OK, so I added "selinux" to IUSE. Portage now aborts with:

  Building: bundles/dynbinary-daemon/dockerd-dev
  GOOS="" GOARCH="" GOARM=""
  cannot find package "github.com/docker/docker/cmd/dockerd" in any of:
  /usr/lib/go/src/github.com/docker/docker/cmd/dockerd (from $GOROOT)

/var/tmp/portage/app-emulation/docker-20.10.2/work/docker-20.10.2/src/github.com/docker/docker/cmd/dockerd 
(from $GOPATH)

  * ERROR: app-emulation/docker-20.10.2::local failed (compile phase):
  *   dynbinary failed

Unfortunately, 20.10.1 was deleted from portage and I cannot go back as 
docker-cli has already been updated to 20.10.2...


Help?




[gentoo-user] Re: Your opinion on jpeg encoders, please

2021-01-06 Thread Nikos Chantziaras

On 04/01/2021 23:37, Frank Steinmetzger wrote:

However I noticed that the latter procuces larger files for the same quality
setting. So currently, I first save with a very high setting from Showfoto
and then recompress the whole directory in a one-line-loop using
imagemagick’s convert.
You lose some extra quality when doing this due to recompression. What 
you should do is save in a lossless format (like png or bmp) and then 
convert that to jpg.





[gentoo-user] Re: Big USB disks

2020-12-23 Thread Nikos Chantziaras

On 22/12/2020 14:58, Peter Humphrey wrote:

Greetings,

Just a quickie - is there a way to enable a machine built on an MSDOS BIOS


A *what* BIOS? Do mean you run MS-DOS as on OS?




[gentoo-user] Re: XWindow appearing in a non-graphical tty. A bug or feature?

2020-12-19 Thread Nikos Chantziaras

On 18/12/2020 18:04, gevisz wrote:

During the last 22 years, I got used to the setting
when the XWindow system appeared on one of
the "graphical" virtual terminals, mostly on tty6 or tty7.

However, after installing a new Gentoo system with
gentoo-kernel, I found out that the XWindow system
started to appear in the same tty, where I started it
using the startx command, shadowing all that was
typed there including the messages from the xorg-server.

So, I just wonder: "Is it a bug or a feature?"

And where exactly can one configure it?


Are you using systemd? In contrast to OpenRC, systemd launches X11 on 
the current TTY:


https://bbs.archlinux.org/viewtopic.php?id=169903




[gentoo-user] Re: Recommended location of the Gentoo ebuild repository

2020-12-16 Thread Nikos Chantziaras

On 16/12/2020 13:51, gevisz wrote:

How would you comment the following quote from Gentoo Handbook
"In most situations, /usr/ is to be kept big: not only will it contain
   the majority of applications, it typically also hosts the Gentoo ebuild
   repository (by default located at /var/db/repos/gentoo) which already
   takes around 650 MiB."
that can be found here:
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks ?

Have I correctly understood that the Gentoo ebuild repository default location
is /var/db/repos/gentoo but virtually everybody relocate it to /usr/ during
the installation process?

Why not change its default location to /usr/ in this case?

Where the Gentoo ebuild repository should be allocated? Why?


Wherever you want. I have on /mnt/Data/gentoo/portage, so... meh :P




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

2020-12-14 Thread Nikos Chantziaras

On 15/12/2020 03:21, 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?


Your problem is somewhere else. Your CPU is 64-bit, as are all desktop 
CPUs made in the last 15 years.





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

2020-11-29 Thread Nikos Chantziaras

On 29/11/2020 05:53, the...@sys-concept.com wrote:

On 11/28/2020 07:19 AM, Nikos Chantziaras wrote:

On 27/11/2020 02:56, the...@sys-concept.com wrote:

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

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


What's the output of:

   lsmod

and:

   emerge --info


Here it is.
[...snip...]


Your system is using the nouveau driver. You need to disable it and only 
enable the nvidia driver. In your make.conf, change this:


  VIDEO_CARDS="nvidia nouveau"

to:

  VIDEO_CARDS="nvidia"

Also, add "nvidia" to your make.conf USE flags (this might not be 
actually needed, but better safe than sorry.)


Then also see if you have nouveau enabled for something elsewhere in 
your portage configuration. Do this:


  grep -r nouveau /etc/portage

This should print nothing. If it does, then you should edit the files 
and disable nouveau.


Finally, tell portage to check what needs to be re-emerged due to these 
changes:


  emerge -auDN --with-bdeps=y @world

Reboot.




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

2020-11-28 Thread Nikos Chantziaras

On 27/11/2020 02:56, the...@sys-concept.com wrote:

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

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


What's the output of:

  lsmod

and:

  emerge --info




[gentoo-user] Re: How to switch from rust to rust-bin?

2020-09-07 Thread Nikos Chantziaras

On 07/09/2020 13:13, Walter Dnes wrote:

On Sun, Sep 06, 2020 at 12:47:34PM -0400, Walter Dnes wrote


Since I don't yet have rust on my desktop, I'll try "emerge -1
rust-bin" before doing the world update.  Hopefully, that'll satisfy
the virtual/rust dependency from the get-go.


   I decided to go a bit more heavy-handed route with my backup desktop
I included "dev-lang/rust" in package.mask before running the update.
It worked...

[i3][root][~] eselect rust list
Available Rust versions:
   [1]   rust-bin-1.45.2 *

   That route only applies to systems that don't have rust installed yet.


That's not necessary. If a system doesn't have rust installed yet, all 
you need is `emerge -1 rust-bin`. This will then satisfy the virtual.





[gentoo-user] Re: How to switch from rust to rust-bin?

2020-09-06 Thread Nikos Chantziaras

On 06/09/2020 10:48, Walter Dnes wrote:

   I notice that there is a "rust-bin" ebuild present.  If nothing else,
I'd like to switch over to that to save the notebook from unnecessary
grinding when rust updates.  What's the procedure for selecting it?


emerge -C dev-lang/rust
emerge -a1 virtual/rust dev-lang/rust-bin
emerge -auD @world
emerge -a --depclean




[gentoo-user] Re: Change MAKEOPTS on the fly?

2020-07-12 Thread Nikos Chantziaras

On 12/07/2020 11:59, Michael wrote:

On Sunday, 12 July 2020 09:29:08 BST Nikos Chantziaras wrote:

No. But what you can do is lower its nice level to 19, and CPU and IO
priority to "idle".

schedtool -D -n 19 pid
ionice -c 3 -p pid


Another trick to use if the atom is becoming I/O disk bound is:

echo bfq > /sys/block/sda/queue/scheduler

This will have more of an impact if the PC is swapping heavily and the I/O on
/dev/sda is choking other processes accessing the disk.


bfq seems to help a bit (although not as much as some years ago, when 
bfq was an actual disk scheduler rather than just a scheduling policy 
tweak.)


I have bfq enabled by default for everything by putting the following in 
/etc/udev/rules.d/20-block.rules:


  ACTION=="add|change", SUBSYSTEM=="block", ATTR{queue/scheduler}="bfq"

This will use bfq for all storage (including storage devices plugged in 
at runtime, like USB disks.)





[gentoo-user] Re: Change MAKEOPTS on the fly?

2020-07-12 Thread Nikos Chantziaras

On 12/07/2020 11:54, tastytea wrote:

On 2020-07-12 11:29+0300 Nikos Chantziaras  wrote:


On 12/07/2020 09:04, William Kenworthy wrote:

Hi,

      is there a way to change the MAKEOPTS setting on a running
emerge? I am using "-j 5 -l 4" whilst emerging gcc-9.3 but its
creating too much pressure  on memory.  I expect the emerge to take
many more hours but complete eventually - but reducing it to "-j2"
will help other operations whilst not losing whats already been
completed (this is an old atom N330 with 4G ram and is my
gateway/router/firewall/snort/... and the overload is starting to
affect the network throughput significantly).


[…]
ionice is in sys-apps/util-linux, so it's probably already installed.
schedtool though is in sys-process/schedtool and it might not be
installed.
[…]


The nice level can also be adjusted with `renice` from
sys-apps/util-linux:

 renice -n 19 -p pid


Yep, forgot about that. However, I have observed that the nice level 
doesn't have much impact. But setting a process to SCHED_IDLEPRIO 
(schedtool -D) and nice level 19 (schedtool -n 19) has a huge impact.





  1   2   3   4   5   6   7   8   9   10   >