Re: [gentoo-user] Soft scrolling on framebuffer consoles - New version of the patch - with GPM handling.

2023-09-09 Thread David Rosenbaum
hanks

On Sat, Jan 28, 2023 at 9:42 AM Peter Humphrey 
wrote:

> On Friday, 27 January 2023 22:31:17 GMT Alan Mackenzie wrote:
> > On Fri, Jan 27, 2023 at 12:24:41 +, Peter Humphrey wrote:
>
> --->8
>
> > > I've attached the reject files.
> >
> > Thanks for these!  It looks like it'll probably be straightforward to
> > amend the patch for 6.1.8.  Are you currently running 6.1.8 as your main
> > kernel?
>
> Yes Alan, I'm running ~amd64, so 6.1.8 is the current kernel. I have
> 5.15.88
> as a backup.
>
> --
> Regards,
> Peter.
>
>
>
>
>


Re: [gentoo-user] Please help me understand this emerge error message.

2023-08-11 Thread David Rosenbaum
Thanks I'm a dam47 year old man that pays wifi an ph.bill

David

On Fri, Aug 11, 2023, 2:52 PM Dale  wrote:

> Alan Mackenzie wrote:
> > Hello, Gentoo.
> >
> > For the past couple of days, after $ emerge --sync, I've tried
> >
> > $ emerge -auND @world
> >
> > ..  It has come back very quickly with the error message:
> >
> > #
> >
> > !!! The ebuild selected to satisfy ">=net-misc/curl-7.21.5[ssl]" has
> unmet requirements.
> > - net-misc/curl-8.1.2::gentoo USE="adns ftp gnutls http2 imap pop3
> progress-meter smtp ssl tftp -alt-svc -brotli -gopher -hsts -idn -kerberos
> -ldap -mbedtls (-nghttp3) -nss -openssl -rtmp (-rustls) -samba -ssh
> (-sslv3) -static-libs -telnet
> > -test -verify-sig -websockets -zstd" ABI_X86="(64) -32 (-x32)"
> CURL_SSL="openssl -gnutls -mbedtls -nss (-rustls)"
> >
> >   The following REQUIRED_USE flag constraints are unsatisfied:
> > curl_ssl_openssl? ( openssl )
> >
> >   The above constraints are a subset of the following complete
> expression:
> > ssl? ( exactly-one-of ( curl_ssl_gnutls curl_ssl_mbedtls
> curl_ssl_nss curl_ssl_openssl curl_ssl_rustls ) ) curl_ssl_gnutls? ( gnutls
> ) curl_ssl_mbedtls? ( mbedtls ) curl_ssl_nss? ( nss ) curl_ssl_openssl? (
> openssl ) curl_ssl_rustls? (
> > rustls )
> >
> > #
> >
> > ..  I don't understand what is meant by "curl_ssl_openssl? ( openssl )"
> in
> > the above message.  I assume it's talking about some USE flag, but which?
> > openssl?  curl_ssl_openssl?  As a matter of interest, I have
> > =dev-libs/openssl-3.0.9-r2 installed.
> >
> > Please help me understand what's happening.
> >
> > Thanks for the help!
> >
>
> I think I got that a while back.  This is what I have for my USE flags
> for that package.
>
>
> root@fireball / # equery u net-misc/curl
> [ Legend : U - final flag setting for installation]
> [: I - package is installed with flag ]
> [ Colors : set, unset ]
>  * Found these USE flags for net-misc/curl-8.0.1:
>  U I
>  - - abi_x86_32   : 32-bit (x86) libraries
>  + + adns : Add support for asynchronous DNS resolution
>  - - alt-svc  : Enable alt-svc support
>  - - brotli   : Enable brotli compression support
>  - - curl_ssl_gnutls  : Use GnuTLS
>  - - curl_ssl_mbedtls : Use mbed TLS
>  - - curl_ssl_nss : Use Mozilla's Network Security Services
>  + + curl_ssl_openssl : Use OpenSSL
>  + + ftp  : Enable FTP support
>  - - gnutls   : Enable gnutls ssl backend
>  - - gopher   : Enable Gopher protocol support
>  - - hsts : Enable HTTP Strict Transport Security
>  + + http2: Enable HTTP/2.0 support
>  - - idn  : Enable support for Internationalized Domain Names
>  + + imap : Enable Internet Message Access Protocol support
>  - - kerberos : Add kerberos support
>  - - ldap : Add LDAP support (Lightweight Directory Access
> Protocol)
>  - - mbedtls  : Enable mbedtls ssl backend
>  - - nss  : Enable nss ssl backend
>  + + openssl  : Enable openssl ssl backend
>  + + pop3 : Enable Post Office Protocol 3 support
>  + + progress-meter   : Enable the progress meter
>  - - rtmp : Enable RTMP Streaming Media support
>  - - samba: Add support for SAMBA (Windows File and Printer
> sharing)
>  + + smtp : Enable Simple Mail Transfer Protocol support
>  - - ssh  : Enable SSH urls in curl using libssh2
>  + + ssl  : Enable crypto engine support (via openssl if
> USE='-gnutls -nss')
>  - - static-libs  : Build static versions of dynamic libraries as well
>  - - telnet   : Enable Telnet protocol support
>  - - test : Enable dependencies and/or preparations
> necessary to run tests (usually controlled by FEATURES=test but can be
> toggled independently)
>  + + tftp : Enable TFTP support
>  - - verify-sig   : Verify upstream signatures on distfiles
>  - - websockets   : Enable websockets support
>  - - zstd : Enable zstd compression
> root@fireball / #
>
>
>
> I think it wants you to enable openssl or one of the other USE flag
> options.  Since I seem to recall having openssl installed already, I
> just picked it.  I'd try enabling that and see if the error goes away.
>
> Hope that helps.
>
> Dale
>
> :-)  :-)
>
>


Re: [gentoo-user] Re: Email clients

2023-07-31 Thread David Rosenbaum
David

On Mon, Jul 31, 2023, 4:22 PM Grant Edwards 
wrote:

> On 2023-07-31, Kusoneko  wrote:
> >
> > Jul 31, 2023 13:52:25 Grant Edwards :
> >
> >> On 2023-07-31, Kusoneko  wrote:
> >>>
> >>>> Don't get me wrong, I'm "team plaintext" all day every day but I'm not
> >>>> going to make my life more difficult on principles.  There are hills
> >>>> worth dying on but this isn't mine.
> >>>
> >>> Iirc, you can setup mutt to open html emails either in a web browser
> >>> or with something like w3m.
> >>
> >> Wait -- those are web engines. I thought the argument was that mutt
> >> didn't need a web engine. If that was the case, then you would have no
> >> need to set up mutt to use them to display HTML email.
> >
> > Why would you want a mail client to also be a web browser when you
> > already have a web browser to do that job?
>
> I don't want a mail client that's also a web browser. I want a mail
> client that renders HTML. That's only a small small of what a web
> browser does. Most of what a web browser does these days is provide an
> environment in which to run JavaScript.
>
> > I will never understand the mindset of trying to include web
> > browsers into everything. Web browsers are massive pieces of
> > software, including one in everything massively increases the
> > compile time and resource usage of the software it's added into.
>
> That's because they do a lot more than just render HTML.
>
> >>> There's no need for a web engine in a mail client when you have a
> >>> perfectly workable web engine in the browser.
> >>
> >> Composing HTML also e-mails requires a web-engine. Sure, you can do
> >> that using emacs, markdown mode, a web browser for previewing, and so
> >> on. It's a lot of work.
> >
> > I don't get the point of composing HTML emails. Let's be honest
> > here, unless you're writing emails as part of a company with
> > complicated messes of html signatures or marketing emails, the only
> > difference between composing a plain text email and a html email for
> > most people is unnoticeable.
>
> I found that not to be the case for the Outlook users to whom I sent
> e-mails. I was unable to figure out how to get mutt to generate
> plaintext e-mails that were rendered properly by Outlook (e.g. using a
> fixed font, honoring newlines and multiple spaces, etc.) in Outlook.
>
> It's also difficult to get plaintext e-mails to display in a
> reasonable way on both a large screen and a small screen
> (i.e. phone). I was not happy seeing what my plaintext, 72 column
> e-mails looked like on a small phone screen.
>
> --
> Grant
>
>
>
>


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

2023-07-11 Thread David Rosenbaum
Thank u

David

On Sat, Jul 8, 2023, 4:33 AM Dale  wrote:

> Howdy,
>
> I was wondering.  Is there a way to highlight certain packages that are
> about to be upgraded?  Example, I like to know when some larger packages
> like Firefox, LOo, that excessively long qt package and a couple others
> are going to be upgraded.  Some that are listed in the world file show
> up in a darker green and are easier to see however, some are not. They
> are dependencies of another package but I'd like to have them stick out
> in the list of packages to be upgraded.  I don't recall ever seeing
> anyone mention this as a feature of emerge or heard of a way to
> configure such a thing either.  That said, it could be possible and just
> not well known.
>
> I'd like to be able to have those packages show up as red or something
> like that.  If it is possible.
>
> Thoughts?  Ever heard of such a thing?
>
> Dale
>
> :-)  :-)
>
>


Re: [gentoo-user] Instrumenting emerges

2023-07-08 Thread David M. Fellows
>Hello list,
>
>Has anyone here developed a utility to record the one-minute load average once 
>per minute and log the results? The first bit is easy: just cat /proc/loadavg, 
>but the logging has me stumped for the moment.

while [ true ] ; do cat /proc/loadavg |logger; sleep 60; done

But you will want to read man logger to see where/how to direct the
logging to somewhere more convenient than default.

DaveF
>
>I see there's a QT-Charts module, but my impression is that it's a 
>programmer's tool.
>
>Ideas?
>
>-- 
>Regards,
>Peter.
>
>
>
>



Re: [gentoo-user] Bespoke terminal font

2023-06-05 Thread David Rosenbaum
Thank u

Dave

On Mon, Jun 5, 2023, 11:36 AM Peter Humphrey  wrote:

> Hello list,
>
> I'm still trying to find a terminal font (not an X font) to suit my
> deteriorating sight. Every terminal font I've found includes either a dot
> in
> the centre of the /zero/ character or a diagonal bar across it. Either of
> these makes a zero resemble an eight: 0, 8. I often need a magnifying
> glass to
> see which it is. I suppose it's meant to distinguish a zero from a capital
> o:
> 0, O, but this can be handled better in moderate to large font sizes such
> as I
> use, by sloping the shoulders of the zero to resemble those used in the
> publishing trade.
>
> I use DejaVu mono in KDE Plasma, which does not do this and is much easier
> to
> Read with the plain 0. I'd like to find a terminal font like it. Or is
> there a
> tool I can use to adjust the Terminus Font I use in my VTs? All the font
> editors I've seen are for GUI use.
>
> There was a half-suitable utility years ago, whose name I've forgotten,
> which
> might well be suitable if it could handle two-byte characters.
>
> Is there either a console font like what I've described, or a font editor
> that
> would allow me to make my own?
>
> --
> Regards,
> Peter.
>
>
>
>
>


Re: [gentoo-user] Systemd query ...

2023-05-16 Thread David M. Fellows
>Le lun. 15 mai 2023 à 11:58, Wols Lists  a écrit :
>
>> Nothing to do with but sparked by the Apache problem ...
>>
>> One of the emails mentioned that the "ExecStop" section didn't appear to
>> be working ... That's caused me considerable grief in a systemd config
>> file I've written ...
>>
>> Basically, somebody else added an ExecStop section - and all hell broke
>> loose. It seemed to be firing on boot :-( And the service in question -
>> ScarletDME - seemed to be killing processes at random, like DoveCot ...
>>
>> Okay, accidentally killing processes it shouldn't is probably down the
>> fork/exec code in ScarletDME, I haven't dug into it to know, but systemd
>> should not be triggering the stop in the first place. Has anybody else
>> encountered anything like this?
>>
>> Sorry I'm not likely to respond quickly to say "solved", as I need to
>> get "in the mood" to get back to debugging, but if anybody has any hints
>> and tips, they'd be appreciated, and it might shed some light on that
>> Apache problem :-)
>>
>> Cheers,
>> Wol
>>
>>
>Hi Wol,
>
>It was very difficult to get Apache working with systemd Gentoo.
>No apache2.service found with apache installation.
>so i looked at the Linux Mint OS to copy the apache2.service.
>These commands
>
>ExecStart=/usr/sbin/apachectl start
>ExecStop=/usr/sbin/apachectl graceful-stop
>ExecReload=/usr/sbin/apachectl graceful
>
>did not work at all...
>BUT,
>By manually launching /usr/bin/apache2ctl, it  worked.
>

On my gentoo system apache is installed in
/usr/sbin as apache2 and apache2ctl
 ^
It also installs /lib/systemd/system/apache2.service which references the
above files in a "gentoo-ish" way.

The Linux Mint service file you list above refers to apache without the "2".

Perhaps this shedd some light on your problem.

DaveF

>So i wrote a little simple bash script /usr/bin/op_apache
>
>#!/bin/bash
>
>case ${1} in
>"start")
>apache2ctl
>;;
>"stop")
>killall apache2
>;;
>"restart")
>killall apache2
>sleep 1
>apache2ctl
>;;
>esac
>
>And in apache2.service, i put :
>
>ExecStart=/usr/bin/op_apache start
>ExecStop=/usr/bin/op_apache stop
>ExecReload=/usr/sbin/op_apache restart
>
>Now it works fine, but what a headache !
>
>Cheers,
>
>--
>Jacques
>



Re: [gentoo-user] Gcc 13.1 and chromium

2023-04-27 Thread David Rosenbaum
Dave

On Thu, Apr 27, 2023, 14:52 jul...@jroy.ca  wrote:

> On Thu, 2023-04-27 at 14:40 -0400, Alan Grimes wrote:
> > atg@tortoise ~ $ chromium
> > [19039:19057:0427/143338.626886:ERROR:bus.cc(399)] Failed to connect
> > to
> > the bus: Could not parse server address: Unknown address type
> > (examples
> > of valid types are "tcp" and on UNIX "unix")
>
> This seems to be an environment variable issue.
> Do you have a value set for DBUS_SESSION_BUS_ADDRESS?
>
> Try `dbus-launch chromium`
>
> --
> Julien
>


Re: [gentoo-user] text output from the kernel during boot is not showing

2023-04-24 Thread David Souza
Interesting, the kernel is not showing anything about the framebuffer
device fb0. Could you check if in /dev there is a framebuffer device? There
should be a file called fb0 or fb with another number.
Can you also print the output of:

$ dmesg  | grep fbcon

This would be to check the kernel output if it tries to set a device for
outputting kernel messages to a framebuffer device.

I think there is an option missing in your kernelconfig. Did you build your
own kernel or are you using a binary or similar?

Am Mo., 24. Apr. 2023 um 19:08 Uhr schrieb :

> On output of: $ dmesg | grep fb0
> on a box that doesn't show kernel text during boot:
>
> [0.004012] ACPI: Reserving PCCT table memory at [mem
> 0xd8b68fb0-0xd8b6901d]
>
> this the output from a box that everything is working OK:
> [0.00] ACPI: Reserving PCCT table memory at [mem
> 0xd8b68fb0-0xd8b6901d]
>
> I even compare the difference between grub before and after upgrade, and
> new sys-boot/grub-2.06-r6
> inserted line:
>
> # Comment if you don't want GRUB to pass "root=PARTUUID=xxx" parameter to
> kernel
> GRUB_DISABLE_LINUX_PARTUUID=false
>
> but the above two lines are on my other boxes as well afater upgrade and
> text messages from kernel boot showing OK
>
>
>
> On 4/23/23 18:07, David Souza wrote:
> > Is your framebuffer device showing in /dev? It should be called
> /dev/fb0,1,2. If yes could you post the output of
> > $ dmesg | grep fb0
> >
> > On Sun, Apr 23, 2023, 22:31  the...@sys-concept.com>> wrote:
> >
> > No, I did not change anything, during kernel upgrade only run: make
> oldconfig
> >
> > but nvidia-drivers-525.105.17 compiled  with a note:
> > WARN: setup
> > Detected potential configuration issues with used kernel:
> > CONFIG_FB_SIMPLE: is set, recommended to disable and switch to
> FB_EFI or
> >   FB_VESA as it currently may be broken with >=kernel-5.18.13 +
> NVIDIA:
> > https://github.com/NVIDIA/open-gpu-kernel-modules/issues/341 <
> https://github.com/NVIDIA/open-gpu-kernel-modules/issues/341>
> >   (feel free to ignore this if it works for you)
> >
> > Though, I got same note compiling nvidia-drivers-470.182.03  and
> kernel boot normally showing text.
> >
> > WARN: setup
> > Detected potential configuration issues with used kernel:
> > CONFIG_FB_SIMPLE: is set, recommended to disable and switch to
> FB_EFI or
> >   FB_VESA as it currently may be broken with >=kernel-5.18.13 +
> NVIDIA:
> > https://github.com/NVIDIA/open-gpu-kernel-modules/issues/341 <
> https://github.com/NVIDIA/open-gpu-kernel-modules/issues/341>
> >   (feel free to ignore this if it works for you)
> >
> > I don't use EFI on these systems.
> > So make me wonder if has all to do with the nvidia-driver.
> >
> > On 4/23/23 00:26, David Souza wrote:
> >  > Did you change something in your kernel config? I had the same
> problem once, because I forgot to enable these kernel options:
> >  > (From the AMD64 Handbook)
> >  >
> >  > Device Drivers
> >  >  Firmware Drivers --->
> >  >  EFI (Extensible Firmware Interface) Support --->
> >  >  <*> EFI Variable Support via sysfs
> >  >  Graphics support --->
> >  >  Frame buffer Devices --->
> >  >  <*> Support for frame buffer devices --->
> >  >  [*] EFI-based Framebuffer Support
> >  >
> >  >
> >  > Regards,
> >  > David
> >  >
> >  > On Sat, Apr 22, 2023, 20:56  the...@sys-concept.com> <mailto:the...@sys-concept.com  the...@sys-concept.com>>> wrote:
> >  >
> >  > I upgraded to kernel 6.1.19 and nvidia-525.105.17
> >  >
> >  > But during boot text is not showing up/scrolling
> >  >
> >  > --
> >  > Thelma
> >  >
> >
>
>


Re: [gentoo-user] text output from the kernel during boot is not showing

2023-04-23 Thread David Souza
Is your framebuffer device showing in /dev? It should be called
/dev/fb0,1,2. If yes could you post the output of
$ dmesg | grep fb0

On Sun, Apr 23, 2023, 22:31  wrote:

> No, I did not change anything, during kernel upgrade only run: make
> oldconfig
>
> but nvidia-drivers-525.105.17 compiled  with a note:
> WARN: setup
> Detected potential configuration issues with used kernel:
>CONFIG_FB_SIMPLE: is set, recommended to disable and switch to FB_EFI or
>  FB_VESA as it currently may be broken with >=kernel-5.18.13 + NVIDIA:
>  https://github.com/NVIDIA/open-gpu-kernel-modules/issues/341
>  (feel free to ignore this if it works for you)
>
> Though, I got same note compiling nvidia-drivers-470.182.03  and kernel
> boot normally showing text.
>
> WARN: setup
> Detected potential configuration issues with used kernel:
>CONFIG_FB_SIMPLE: is set, recommended to disable and switch to FB_EFI or
>  FB_VESA as it currently may be broken with >=kernel-5.18.13 + NVIDIA:
>  https://github.com/NVIDIA/open-gpu-kernel-modules/issues/341
>  (feel free to ignore this if it works for you)
>
> I don't use EFI on these systems.
> So make me wonder if has all to do with the nvidia-driver.
>
> On 4/23/23 00:26, David Souza wrote:
> > Did you change something in your kernel config? I had the same problem
> once, because I forgot to enable these kernel options:
> > (From the AMD64 Handbook)
> >
> > Device Drivers
> >  Firmware Drivers --->
> >  EFI (Extensible Firmware Interface) Support --->
> >  <*> EFI Variable Support via sysfs
> >  Graphics support --->
> >  Frame buffer Devices --->
> >  <*> Support for frame buffer devices --->
> >  [*] EFI-based Framebuffer Support
> >
> >
> > Regards,
> > David
> >
> > On Sat, Apr 22, 2023, 20:56  the...@sys-concept.com>> wrote:
> >
> > I upgraded to kernel 6.1.19 and nvidia-525.105.17
> >
> > But during boot text is not showing up/scrolling
> >
> > --
> > Thelma
> >
>
>


Re: [gentoo-user] text output from the kernel during boot is not showing

2023-04-23 Thread David Souza
Did you change something in your kernel config? I had the same problem
once, because I forgot to enable these kernel options:
(From the AMD64 Handbook)

Device Drivers
Firmware Drivers --->
EFI (Extensible Firmware Interface) Support --->
<*> EFI Variable Support via sysfs
Graphics support --->
Frame buffer Devices --->
<*> Support for frame buffer devices --->
[*] EFI-based Framebuffer Support


Regards,
David

On Sat, Apr 22, 2023, 20:56  wrote:

> I upgraded to kernel 6.1.19 and nvidia-525.105.17
>
> But during boot text is not showing up/scrolling
>
> --
> Thelma
>
>


Re: [gentoo-user] Converting shell globs to regular expressions

2023-04-13 Thread David M. Fellows
>Greetings,
>
>does anybody know about some command to convert shell globs  (shell pat-
>terns) into regular expressions?   Back in the old Unix days there was a
>"glob" command, but "e-files" only turns up a GNU library.

Would one of the functions in
  dev-perl/Text-Glob
do what you need?

DaveF

>
>I am aware  of Python's  "fnmatch.translate()" function,  but this -- of
>course -- returns a  Python style  regular expression  which I can't use
>together with  "grep" or "gawk".   So using this function  would require
>moving and converting the "grep" and "gawk" specific code  from my Shell
>script into a separate Python script.   This would be doable,  if neces-
>sary, but I would prefer staying with just my Shell script.
>
>Any pointers heartily welcome :-)
>
>Sincerely,
>  Rainer
>



Re: [gentoo-user] mailing list problem?

2023-04-06 Thread David M. Fellows
>I've recently gotten a few of my usual "Bouncing messages" messages  
>from the mailing list, but when I go to the archives to see if I can  
>identify the problematic messages, I don't see anything since the  
>middle of March.  I've filed a bug (https://bugs.gentoo.org/903753) a  
>few days ago, but no response yet.
>
>Any thoughts or suggestions?

The planned move of the gentoo services to new hardware seems to be taking
longer that anticipated. See
 https://infra-status.gentoo.org/

Other than that, wait patiently.:)
DaveF
>
>Thanks.
>
>Jack
>



Re: [gentoo-user] After upgrade no login screen anymore

2023-03-25 Thread David Rosenbaum
Dave

On Sun, Mar 12, 2023, 11:09 Alexander Puchmayr <
alexander.puchm...@linznet.at> wrote:

> On Samstag, 11. März 2023, 13:03:41 CET Alexander Puchmayr wrote:
> > Hi there,
> >
> > After having done a world update, neither sddm nor lightdm do start an
> > Xserver anymore. The X server itself runs fine, I can start it from the
> > console and I after setting DISPLAY properly can even start programs
> using
> > it, but the login managers do not start X for some reason.
> >
> > No hint so far in the logs, and no ideas where I should looking.
> >
> > The system is running inside a virtualbox VM, with Win10 as host
> operating
> > system.
> >
>
> Its even getting more strange, the very same image copied from the windows
> laptop to a linux box and started with kvm/libvirt works fine, but in
> windows/
> virtualbox it doesn't.
>
> Now I have two completely identical systems which only differn in the
> hypervisor they're started with, named "virtualbox" and "libvirt". On both
> systems, I start lightdm from the command line with -d option, and compare
> the
> results.
>
> Intrestingly the "libvirt" system writes "New seat added from logind:
> seat0",
> the "virtualbox" system does not, which seems to be the relevant
> difference
> (see log output below)
>
> Further, I found the following command in another forum:
>
> Gdbus introspect --system --dest org.freedesktop.login1 --object-path /org/
> freedesktop/login1/seat/seat0
>
> And the relevant difference here is in the org.freedesktop.login1.Seat
> properties section
>
> ...
> readonly b CanGraphical = false;
> ...
>
> on virtualbox. The same command on "libvirt" machine shows "true" here.
>
> So, what is required for a login seat to be treated as "graphical"?
>
> Thanks
> Alex
>
>
> [virtualbox] # lightdm -d
> [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
> [+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=867
> [+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/
> lightdm.conf.d
> [+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/
> lightdm.conf.d
> [+0.00s] DEBUG: Loading configuration dirs from
> /etc/xdg/lightdm/lightdm.conf.d
> [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
> [+0.00s] DEBUG: Registered seat module local
> [+0.00s] DEBUG: Registered seat module xremote
> [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
> [+0.01s] DEBUG: _g_io_module_get_default: Found default implementation
> local
> (GLocalVfs) for ?gio-vfs?
> [+0.01s] DEBUG: Using cross-namespace EXTERNAL authentication (this will
> deadlock if server is GDBus < 2.73.3)
> [+0.02s] DEBUG: Monitoring logind for seats
> [+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
> [+0.02s] DEBUG: Could not run plymouth --ping: Failed to execute child
> process
> ?plymouth? (No such file or directory)
> [+0.02s] DEBUG: Loading users from org.freedesktop.Accounts
> [+0.02s] DEBUG: User /org/freedesktop/Accounts/User2001 added
> [+0.02s] DEBUG: User /org/freedesktop/Accounts/User1001 added
> [+0.09s] DEBUG: User /org/freedesktop/Accounts/User2002 added
> ...waiting for ctrl-C and no login screen ...
>
> [libvirt] # lightdm -d
> [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
> [+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=793
> [+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/
> lightdm.conf.d
> [+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/
> lightdm.conf.d
> [+0.00s] DEBUG: Loading configuration dirs from
> /etc/xdg/lightdm/lightdm.conf.d
> [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
> [+0.00s] DEBUG: Registered seat module local
> [+0.00s] DEBUG: Registered seat module xremote
> [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
> [+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will
> deadlock if server is GDBus < 2.73.3)
> [+0.00s] DEBUG: _g_io_module_get_default: Found default implementation
> local
> (GLocalVfs) for ?gio-vfs?
> [+0.01s] DEBUG: Monitoring logind for seats
> [+0.01s] DEBUG: New seat added from logind: seat0
> [+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
> [+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no
> [+0.01s] DEBUG: Seat seat0: Starting
> [+0.01s] DEBUG: Seat seat0: Creating greeter session
> [+0.01s] DEBUG: Seat seat0: Creating display server of type x
> [+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child
> process
> ?plymouth? (No such file or directory)
> [+0.01s] DEBUG: Using VT 7
> [+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
> [+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
> [+0.01s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/
> root/:0
> [+0.01s] DEBUG: XServer 0: Launching X Server
> [+0.01s] DEBUG: Launching process 799: /usr/bin/X :0 -seat seat0 -auth
> /var/
> run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

Re: [gentoo-user] Is it OK to get rid of app-alternatives/* ?

2023-03-02 Thread David Rosenbaum
Thanks

Dave

On Sun, Feb 19, 2023, 05:31 Neil Bothwick  wrote:

> On Wed, 15 Feb 2023 23:09:54 -0500, Walter Dnes wrote:
>
> > > It's bad enough depclean deleting the active kernel if you don't
> > > watch out, without something deciding to install a non-existent
> > > kernel and deleting the live one :-)
> >
> >   I have my own hand-coded script that runs "emerge --pretend
> > --depclean" and tweaks/filters the output into another script called
> > "cleanscript". I've set it to filter out "gentoo-sources".  I then
> > inspect "cleanscript" before running it.  And, oh yeah, depclean wants
> > to remove nano.  I had to "emerge -n nano" to protect it.
>
> You can add kernel sources to a set so they are never depcleaned
>
> % cat sets.conf
> [kernels]
> class = portage.sets.dbapi.OwnerSet
> world-candidate = False
> files = /usr/src
>
> Then emerge -n @kernels
>
> I do the same with gcc so I can keep the previous version
>
> [gcc]
> class = portage.sets.dbapi.OwnerSet
> world-candidate = False
> files = /usr/x86_64-pc-linux-gnu/gcc-bin
>
>
> --
> Neil Bothwick
>
> For security reasons, all text in this mail
>   is double-rot13 encrypted.
>


Re: [gentoo-user] nextcloud or owncloud and qt5 or rclone

2023-02-23 Thread David Rosenbaum
Dave

On Thu, Jan 26, 2023, 17:51 Neil Bothwick  wrote:

> On Thu, 26 Jan 2023 22:18:44 +0100, hitachi303 wrote:
>
> > so until now I am running my box without qt5. Compiling takes so long.
> >
> > But I am missing a client for owncloud or nextcloud. So I see
> > nextcloud-cliend does not run without qt5. It does not need webengine
> > but still. So I see as alternativ there is rclone. From the size of the
> > download it seems to be even bigger.
>
> The download size isn't really relevant, it's the amount of dependencies.
> rclone uses Go AFAIR, so that's a lot less to build than Qt5.
>
> > Does anyone have experience with rclone?
>
> I use it regularly, although not with NextCloud (I use the Qt client for
> that as I run KDE). It's basically rsync for cloud providers and should
> work well with NextCloud, although you won't get the automatic syncing of
> changes that you get with the client
>
>
> --
> Neil Bothwick
>
> If it isn't broken, I can fix it.
>


Re: [gentoo-user] Is it OK to get rid of app-alternatives/* ?

2023-02-14 Thread David Rosenbaum
Dave

On Tue, Feb 14, 2023, 20:47 Walter Dnes  wrote:

>   A whole bunch of busy-work for emerge, and nothing in the news item
> indicates it's really necessary for the average user.  Howsabout...
>
> * manually zapping with "rm -rf /var/db/repos/gentoo/app-alternatives"
> * and then include "app-alternatives" in the file pointed to by
>   PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from="
>
>   Am I missing something obvious that would cause problems?
>
> --
> I've seen things, you people wouldn't believe; Gopher, Netscape with
> frames, the first Browser Wars.  Searching for pages with AltaVista,
> pop-up windows self-replicating, trying to uninstall RealPlayer.  All
> those moments, will be lost in time like tears in rain... time to die.
>
>


Re: [gentoo-user] Re: Bouncing messages

2023-01-18 Thread David Rosenbaum
Dave

On Wed, Jan 18, 2023, 18:20 Dale  wrote:

> Grant Taylor wrote:
> > On 1/18/23 8:07 AM, Neil Bothwick wrote:
> >> You can also request redelivery of messages based on the internal
> >> numbers if you follow the help advice in all list message headers.
> >
> > The problem is that if the message is rejected because of filtering
> > the first time around, there's a very good chance that it will also be
> > filtered on subsequent re-delivery requests.
> >
> >
> >
>
>
> I might add, in the past I followed the instructions to get bounced
> messages, I've never once had it work.  I don't get a error or anything
> either, like I do if I do something wrong doing something else.
>
> Just a FYI.
>
> Dale
>
> :-)  :-)
>
>


Re: [gentoo-user] Portage wrongly blocking an update

2023-01-16 Thread David Rosenbaum
Thanks

Dave

On Sun, Jan 15, 2023, 04:53 Peter Humphrey  wrote:

> Hello list,
>
> Today's update of my LAN server failed to resolve a block. It said it
> couldn't
> emerge net-proxy/squid-5.7 because of:
>
> [blocks B  ]  net-proxy/squid-5.7)
> [,,,]
> (net-proxy/squid-5.7:0/0::gentoo, ebuild scheduled for merge) pulled in by
> net-proxy/squid required by @apps
>
> That's all I got. No sign of what required  where
> the < had come from.
>
> The apps set does not specify a version, and no other package depends on
> squid, so I removed it with emerge -C, then restarted the update, which
> ran to
> completion.
>
> It seems to me that portage should have been able to do the same, and
> upgrade
> squid smoothly.
>
> --
> Regards,
> Peter.
>
>
>
>
>


Re: [gentoo-user] Re: Bouncing messages

2023-01-16 Thread David Rosenbaum
Send again

David

On Sun, Jan 15, 2023, 19:50 Jigme Datse  wrote:

> On Sat, 14 Jan 2023 10:25:27 +
> Peter Humphrey  wrote:
>
> > On Saturday, 14 January 2023 07:00:29 GMT Nuno Silva wrote:
> > > On 2023-01-13, Peter Humphrey wrote:
> > > > Hello list,
> > > >
> > > > Ever since the new year I've been getting a bounce message from
> > > > this list
> > > > - 19 of them so far. The first of those listed one message twice,
> > > > most of the others six times. The message was 200359.
> > > >
> > > > I don't know what that message was, but why is the system Out
> > > > There
> > having
> > > > such a hard time with it?
> > >
> > > Was the message from the list software or from a Microsoft system?
> >
> > I don't know - I haven't received it as far as I know. The only
> > archive entries I've found are of this conversation.
>
> This seems like it might be a problem.  A lot of the time when I get
> "weird bounces" for messages for a mailing list, it isn't the list, but
> somewhere down the line, which is bouncing because they either aren't
> properly handling mailing lists, or something else (like in this
> example given, failing to properly handle forwarding "bouncing onward"
> sort of as the PINE parlance was used) list messages.
>
> > > There's possibly one subscriber that has configured their
> > > Exchange/Outlook account to forward e-mails to a Gmail account, and
> > > forwarding as implemented by Microsoft apparently isn't done
> > > correctly and so "SPF" checks run by Gmail are failing.
> >
> > Hmm. Would that cause the message to me to fail, in particular?
>
> The message *to* you?  I don't think so.  Or it might be someone
> sending from a server which somehow throws something into the header
> that causes it to be bounced that the list manager doesn't properly
> deal with?
>
> > > I tried to send a message to this list about this topic back in
> > > November but it never made through, perhaps it was filtered because
> > > it quoted some of the error messages.
> >
> >
>
>


Re: [gentoo-user] No New Image 15th January 2023?

2023-01-16 Thread David Rosenbaum
Dave

On Sun, Jan 15, 2023, 21:00 Luna Jernberg  wrote:

> Hey!
>
> Did the ISO builds not go as planned last week?
>
>


Re: [gentoo-user] Thunderbird build failure ..

2023-01-01 Thread David Rosenbaum
Thanks bud

Dave

On Sun, Jan 1, 2023, 4:22 PM cal  wrote:

> On 1/1/23 13:05, Wol wrote:
> > On 01/01/2023 20:08, cal wrote:
> >> FWIW, Thunderbird builds fine with GCC on my machine -- I'm unsure of
> >> your reasons for setting your Portage compiler to clang, but you may
> >> wish to use a package.env override to build Thunderbird with GCC as a
> >> workaround until the problem can be fixed upstream.
> >
> > I don't know anything about clang ... it must be the default ...
> >
> > I thought part of Firefox/Thunderbird was written in Rust, so I assumed
> > it was built with llvm as a matter of course.
> >
> > I'll just wait for it to sort itself out.
> >
> > Cheers,
> > Wol
> You're right, it looks like the Thunderbird ebuild has a clang USE
> turned on by default; I didn't realize that in my earlier reply and
> assumed you had overridden this yourself.  Regardless, this version
> built correctly on my machine, so it's worthy of investigation with
> upstream which combinations of parameters may be triggering the crash.
>
> cal
>
>


Re: [gentoo-user] Soft scrolling on framebuffer consoles - New version of the patch - with GPM handling.

2022-12-31 Thread David Rosenbaum
Thanks
Dave

On Sat, Dec 31, 2022, 11:13 AM Alan Mackenzie  wrote:

> Hello again, Peter.
>
> On Sat, Dec 31, 2022 at 15:47:01 +, Peter Humphrey wrote:
> > Hello Alan,
> > On Saturday, 31 December 2022 14:08:43 GMT you wrote:
>
> > > What I'm thinking here is that you might be installing a font which is
> > > bigger than the 8x16 standard that you appear to be booting with.  To
> > > check this, would you please do:
>
> > > # file /lib/rc/console/font
>
> > > , which should return a message like:
>
> > > /lib/rc/console/font: Linux/i386 PC Screen Font v1 data, 256
> characters,
> > > Unicode directory, 8x16
>
> > > What is the size of this font, here (where it says 8x16 for my font)?
> > > The reason I ask is, I've got a horrible suspicion that one of the C
> > > functions which copies screen data when the screen size is changed can
> > > only copy to a same sized or (possibly) _bigger_ screen (i.e. with a
> > > smaller font).  If this is indeed the case, it might explain why you're
> > > seeing a hang, here.
>
> > I think you've put your finger on it:
>
> > $ file /lib/rc/console/font
> > /lib/rc/console/font: Linux/i386 PC Screen Font v2 data, 256 characters,
> > Unicode directory, 22x11
>
> > I use consolefont="ter-122n" from the terminus-font package. It's a long
> time
> > since I was able to read a high-resolution screen in its native
> resolution.
>
> > Is there some way I can get the UEFI BIOS to boot with that font, or a
> larger
> > one? Or perhaps let the system boot without setting a font and then
> changing
> > it later?
>
> Probably, but it would be better if I just fixed the bug(s) in my changes
> to
> the kernel.  Changing font size is something one should be able to do.
>
> > Neither of those looks easy to do. I'd better have a good root through
> the
> > BIOS options to start with.
>
> A happy new year to you (and everybody else here), and give me somewhere
> between a few hours and a few days, and this bug should get fixed.
>
> Again, thanks for such effective testing!
>
> > --
> > Regards,
> > Peter.
>
> --
> Alan Mackenzie (Nuremberg, Germany).
>
>


Re: [gentoo-user] Looking for simple GUI MUA that works with ssmtp

2022-12-26 Thread David Rosenbaum
Dave

On Mon, Dec 26, 2022, 9:06 PM Jack  wrote:

> On 12/26/22 20:43, Walter Dnes wrote:
> >mutt has served me well over the years, but thanks to *BRAINDEAD
> > CORPORATE IDIOTS* I need a GUI client to parse 100 K of HTML that
> > replaces 1 page of text.  These aren't just plain spammers, but
> > businesses that I deal with regularly.  It seems that plaintext email is
> > going the way of cursive writing.  Any suggestions for an MUA that can
> > spit out rmail to port 25?
>
> Can't mutt open an html message or attachment in a browser?
>
>
>


Re: [gentoo-user] Major problems with libpcre / UTF8

2022-12-26 Thread David Rosenbaum
Fix this

Dave

On Mon, Dec 26, 2022, 3:00 AM David Rosenbaum 
wrote:

>
>
> Dave
>
> On Thu, Dec 15, 2022, 4:01 PM ralfconn  wrote:
>
>> On 12/15/22 21:52, Walter Dnes wrote:
>>  >I just finished solving my babl problems, but more stuff shows up in
>>  > libpcre.  First, here are my USE flags.  I don't see "utf8" anywhere.
>>  >
>>  > Calculating dependencies... done!
>>  > [ebuild   R] dev-libs/libpcre-8.45-r1:3::gentoo USE="bzip2 cxx
>> jit readline (split-usr) (unicode) zlib -libedit -pcre16 -pcre32
>> -static-libs" 0 KiB
>>  >
>>  >Can someone give me their output from "emerge -pv1 dev-libs/libpcre"
>>  >
>>  > mc (Midnight Commander) spews out a lot of...
>>  >
>>  > (mc:5796): GLib-CRITICAL **: 15:19:15.617: PCRE library is compiled
>> without UTF8 support
>>  >
>>  >Application windows have every second character missing in the
>> window
>>  > title; e.g. "xterm" shows as "xem".  I have a spreasheet that tracks my
>>  > Presto card usage.  The title has gone from "presto.gnumeric-Gnumeric"
>> to
>>  > "pet.nmrc-Guei'.  Various PCRE-based searches fail in vaious apps.
>> HELP!
>>
>>
>> # emerge -pv1 dev-libs/libpcre
>>
>> These are the packages that would be merged, in order:
>>
>> Calculating dependencies... done!
>> [ebuild   R] dev-libs/libpcre-8.45-r1:3::gentoo  USE="bzip2 cxx jit
>> readline (split-usr) (unicode) zlib -libedit -pcre16 -pcre32
>> -static-libs" ABI_X86="(64) -32 (-x32)" 1,542 KiB
>>
>> # cat /etc/locale.gen
>> en_US ISO-8859-1
>> en_US.UTF-8 UTF-8
>> it_IT ISO-8859-1
>> it_IT.UTF-8 UTF-8
>>
>>
>>


Re: [gentoo-user] NAS and replacing with larger drives

2022-12-26 Thread David Rosenbaum
Need link

Dave

On Tue, Dec 20, 2022, 1:52 AM Dale  wrote:

> Wols Lists wrote:
> > On 18/12/2022 22:11, Dale wrote:
> >> Wol wrote:
> >>> On 18/12/2022 18:59, Dale wrote:
>  Since this is local, I just use rsync to do my backups.  I did have to
>  change the options a bit.  It seems TrueNAS doesn't like some of the
>  permissions or something.
> >>>
> >>> Are you running the rsync daemon on the NAS? I'm probably teaching
> >>> grandma to suck eggs, but that massively reduces the need for network
> >>> traffic.
> >>>
> >>> Cheers,
> >>> Wol
> >>>
> >>>
> >>
> >>
> >> I mount the NAS on my Gentoo rig.  I mount it under /mnt.  Then I run
> >> rsync and copy from the source to the mount point for the NAS.  I may
> >> could go the other way but never thought about doing it that way.  Kinda
> >> sounds backwards to me but I dunno. ;-)
> >>
> > Sounds to me like you're doing it all wrong either way ...
> >
> > What is *supposed* to happen is that you have the daemon running on
> > one machine and the client on the other - doesn't matter which.
> >
> > Then the client tells the daemon what files are to be copied, THE TWO
> > COMPARE CHECKSUMS, and only the stuff that fails the checksum is
> > copied. So if you're doing an incremental backup, network usage and
> > writes are kept to a minimum.
> >
> > I tell people to an in-place backup if they're running on a snapshot
> > setup, because again it only writes stuff that has actually changed.
> >
> > Cheers,
> > Wol
> >
> >
>
>
> Do you have a link to the proper way to do it?  I don't copy to a
> different machine often so my current method may be the problem.  Maybe
> the way you mention will work much better, even a little better would be
> nice. ;-)
>
> Dale
>
> :-)  :-)
>
>


Re: [gentoo-user] NAS and replacing with larger drives

2022-12-26 Thread David Rosenbaum
Dave

On Sun, Dec 18, 2022, 2:54 PM Wol  wrote:

> On 18/12/2022 18:59, Dale wrote:
> > Since this is local, I just use rsync to do my backups.  I did have to
> > change the options a bit.  It seems TrueNAS doesn't like some of the
> > permissions or something.
>
> Are you running the rsync daemon on the NAS? I'm probably teaching
> grandma to suck eggs, but that massively reduces the need for network
> traffic.
>
> Cheers,
> Wol
>
>


Re: [gentoo-user] Major problems with libpcre / UTF8

2022-12-25 Thread David Rosenbaum
Dave

On Thu, Dec 15, 2022, 4:01 PM ralfconn  wrote:

> On 12/15/22 21:52, Walter Dnes wrote:
>  >I just finished solving my babl problems, but more stuff shows up in
>  > libpcre.  First, here are my USE flags.  I don't see "utf8" anywhere.
>  >
>  > Calculating dependencies... done!
>  > [ebuild   R] dev-libs/libpcre-8.45-r1:3::gentoo USE="bzip2 cxx
> jit readline (split-usr) (unicode) zlib -libedit -pcre16 -pcre32
> -static-libs" 0 KiB
>  >
>  >Can someone give me their output from "emerge -pv1 dev-libs/libpcre"
>  >
>  > mc (Midnight Commander) spews out a lot of...
>  >
>  > (mc:5796): GLib-CRITICAL **: 15:19:15.617: PCRE library is compiled
> without UTF8 support
>  >
>  >Application windows have every second character missing in the window
>  > title; e.g. "xterm" shows as "xem".  I have a spreasheet that tracks my
>  > Presto card usage.  The title has gone from "presto.gnumeric-Gnumeric"
> to
>  > "pet.nmrc-Guei'.  Various PCRE-based searches fail in vaious apps.
> HELP!
>
>
> # emerge -pv1 dev-libs/libpcre
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild   R] dev-libs/libpcre-8.45-r1:3::gentoo  USE="bzip2 cxx jit
> readline (split-usr) (unicode) zlib -libedit -pcre16 -pcre32
> -static-libs" ABI_X86="(64) -32 (-x32)" 1,542 KiB
>
> # cat /etc/locale.gen
> en_US ISO-8859-1
> en_US.UTF-8 UTF-8
> it_IT ISO-8859-1
> it_IT.UTF-8 UTF-8
>
>
>


Re: [gentoo-user] NAS and replacing with larger drives

2022-12-17 Thread David Rosenbaum
Dave

On Sat, Dec 17, 2022, 11:42 AM Dale  wrote:

> Mark Knecht wrote:
>
>
>
> On Sat, Dec 17, 2022 at 8:52 AM Dale  wrote:
> >
> > Mark Knecht wrote:
> >
> >
> >
> > On Fri, Dec 16, 2022 at 8:50 PM Dale  wrote:
> >
> > > I
> > > wonder, could one install the LVM stuff and use that?  That would be
> > > interesting.  I wonder if there is a NAS software that uses LVM
> > > instead.  Interesting thought.  I just may go bug google on that one.
>  o_O
> >
> > Maybe I'm missing the point but why would you want LVM on a
> > storage pool? If I'm doing backups I just want space. I let TrueNas
> > put it on disk and give it back if asked. Why put another layer
> > of indirection?
> >
> > If you're intending to use it as simple NAS - i.e. - the only copy
> > of some data on your network - then possibly LVM might
> > be interesting, but then you need a second TrueNAS box
> > to back that up. NAS as a mountable data location is
> > different than NAS doing backups which is what I thought
> > this thread was about. What am I not remembering?
> >
> > - Mark
> >
> >
> > It's more about me being more used to using LVM.  Also, more used to
> Linux as well.  BSD is not something I have much experience with and until
> recently, none with ZFS.  Even the little experience I have with BSD was
> well over a decade ago, maybe two decades ago.  I barely remember it really.
> >
> > By replacing ZFS with LVM, I'm working with something I'm familiar with
> and less likely to mess up things.  Things get messed up enough without
> adding more confusion.  ;-)
> >
> > Dale
> >
> > :-)  :-)
>
> Hummm...I don't know Dale, I don't know... ZFS is a file system.
> LVM is an abstraction on top (or underneath?) of a file system.
> My understanding of LVM is that it frees you from hard decisions
> on partition sizes, not that it replaces ZFS or ext3/4/5.
>
>
> That is true.  Thing is, I've learned how to manage LVM even with
> encrypted data.  I've also learned how to expand storage without losing
> data or getting confused about what I'm doing.  To me, using LVM is pretty
> easy given the notes I have for the tasks I do most often.
>
>
> You may or may not know this but TrueNAS is available as a
> Linux version:
>
> https://www.truenas.com/blog/first-release-of-truenas-on-linux/
>
> I don't recommend it. It's new. Let someone else figure it out. However
> it might be more to your liking, and because it's Linux you'd be more
> comfortable messing it up. ;0-
>
> WRT you I recommend that you try living in NGL for a while. Possibly
> you are just a bit too indoctrinated in the religion of building packages
> 30-50 times a year believing (without hard data) that it provides value.
> Instead you might just consider relaxing and letting the system
> take care of itself. In the last year I've only updated my TrueNAS box
> twice that I can remember.
>
> On the other hand if system tweaking is what brings you joy then
> Que Sera Sera .
>
> Good luck,
> Mark
>
>
>
> It's not that I want to compile things, it's that I want to use things I'm
> already really familiar with.  If I bought a Raspberry Pi and built a NAS
> with it, I don't care if I compile the software on it or not as long as it
> has the software I need or I can install what I need.  From what I've read,
> compiling on a Raspberry isn't much fun.  It's very time consuming. Having
> a OS, binary one at that, that is Linux based is a big plus.  I can run
> LVM, cryptsetup and such in likely every Linux distro out there and get the
> same result as on my Gentoo box.  Switching to BSD, using ZFS, means I have
> to learn a whole new set of tools and methods.  I had enough fun learning
> LVM and I don't think LVM is going to die anytime soon.  It should be
> around for the foreseeable future.  As it is, even now, I still don't get
> how ZFS works.  I just followed a guide to get it working, sort of.  It's
> still not encrypted.  Figuring that out is next.  That should be fun.
>
> My network card is out for delivery.  A few days late but better than
> never I guess.  I'll see if the drivers needed for it are available as
> modules or not.  I suspect they are tho based on info in this thread.
>
> Dale
>
> :-)  :-)
>


Re: [gentoo-user] Gaming on gentoo

2022-12-17 Thread David Rosenbaum
Dave

On Tue, Dec 13, 2022, 12:18 AM Alan Ianson  wrote:

> Hello list,
>
> I am a gentoo newbie. I have installed gentoo about a month ago and have
> been busy since in my free time getting it up and running.
>
> I have a problem with quakespasm, it segfaults on startup.. this is what I
> get..
>
> alan@irondust:/usr/share/games/quake$ quakespasm
> Command line: quakespasm
> Found SDL version 2.24.2
> Detected 2 CPUs.
> Initializing QuakeSpasm v0.95.1
> Host_Init
> Playing registered version.
> Console initialized.
> UDP Initialized
> Server using protocol 666 (FitzQuake)
> Exe: 20:46:02 Dec 12 2022
> 256.0 megabyte heap
> Video mode 1920x1080x24 60Hz (24-bit z-buffer, 0x FSAA) initialized
> GL_VENDOR: NVIDIA Corporation
> GL_RENDERER: GeForce GT 610/PCIe/SSE2
> GL_VERSION: 4.6.0 NVIDIA 390.157
> FOUND: ARB_vertex_buffer_object
> FOUND: ARB_multitexture
> GL_MAX_TEXTURE_UNITS: 4
> FOUND: ARB_texture_env_combine
> FOUND: ARB_texture_env_add
> FOUND: SDL_GL_SetSwapInterval
> FOUND: EXT_texture_filter_anisotropic
> FOUND: ARB_texture_non_power_of_two
> FOUND: GLSL
> FOUND: glGenerateMipmap
>
> Sound Initialization
> Segmentation fault
> alan@irondust:/usr/share/games/quake$
>
> I get the above with version 0.95.1 (installed from guru using the git
> version) and from 0.94.1 also from guru.
>
> I am not sure why it segfaults or what I can do about that. I have built
> it with sdl and sdl2 and I get the same result.
>
> I have run quakespasm on other distributions like debian, archlinux and
> slackware without issues so there may be something different about gentoo
> that I need to know about.
>
> Any thoughts or ideas about how to get this working would be appreciated.
>
>


Re: [gentoo-user] Gaming on gentoo

2022-12-16 Thread David Rosenbaum
Thank u

Dave

On Fri, Dec 16, 2022, 8:18 PM Alan Ianson  wrote:

> On Thu, 15 Dec 2022 19:06:07 +
> Laurence Perkins  wrote:
>
> > Note that some programs will dynamically load libraries at runtime, in
> addition to being linked against them at build time.  These don’t
> necessarily show up in ldd. (Qt is horrible about this) Enabling core dumps
> or running under a debugger might shed some light on what’s going on.  If
> that doesn’t work easily then check the project documentation to see if
> they have a special debugging workflow.  Some game engines require a very
> specific debugging setup for the output to make any sense.
>
> One thing I notice that is different about Artur's setup and mine is that
> pulseaudio doesn't show up in his ldd output.
>
> I am just configuring a desktop without pulseaudio and see if that works
> any better. I think pulseaudio is worthwhile but I'll try without it and
> see how it goes.
>
>


Re: [gentoo-user] Docker installation issues

2022-12-16 Thread David Rosenbaum
Thank u

Dave

On Sat, Dec 10, 2022, 3:51 PM Mansour Al Akeel 
wrote:

> Andreas,
>
> Thank you very much. In fact I didn't go that deep yet, and not sure if I
> should. I just found that the url is not accessible even from a browser.
> Googling a bit, tells me there is no clear URL for docker-registry and
> possibly this one is outdated. I will continue looking around to confirm
> what the current default repo should be. If you have any suggestions,
> please let me know.
>
>
>  localhost in ~
> ○ → curl -k -v https://registry-1.docker.io/v2/
> *   Trying 34.228.211.243:443...
>
> * connect to 34.228.211.243 port 443 failed: Connection timed out
> * Failed to connect to registry-1.docker.io port 443 after 129401 ms:
> Couldn't connect to server
> * Closing connection 0
> curl: (28) Failed to connect to registry-1.docker.io port 443 after
> 129401 ms: Couldn't connect to server
>
>
>
>
>
> On Sat, Dec 10, 2022 at 1:32 PM Andreas Fink  wrote:
>
>> On Sat, 10 Dec 2022 12:30:40 -0500
>> Mansour Al Akeel  wrote:
>>
>> > I am using Openrc
>> >
>> > This was my initial /etc/conf.d/docker
>> > DOCKER_OPTS="--storage-driver overlay2 --data-root /srv/var/lib/docker"
>> >
>> > when I try:
>> >
>> > $ docker pull hello-world
>> >
>> > Error response from daemon: Get "https://registry-1.docker.io/v2/":
>> > net/http: request canceled while waiting for connection (Client.Timeout
>> > exceeded while awaiting headers)
>> >
>> > Trying to troubleshoot:
>> >
>> > localhost /home/mansour # tail -n 20 /var/log/docker.log
>> > time="2022-12-10T12:17:03.473550705-05:00" level=info msg="scheme
>> \"unix\"
>> > not registered, fallback to default scheme" module=grpc
>> > time="2022-12-10T12:17:03.473566413-05:00" level=info
>> > msg="ccResolverWrapper: sending update to cc:
>> > {[{unix:///run/containerd/containerd.sock   0 }]  }"
>> > module=grpc
>> > time="2022-12-10T12:17:03.473573787-05:00" level=info msg="ClientConn
>> > switching balancer to \"pick_first\"" module=grpc
>> > time="2022-12-10T12:17:03.474530993-05:00" level=info msg="parsed
>> scheme:
>> > \"unix\"" module=grpc
>> > time="2022-12-10T12:17:03.474545549-05:00" level=info msg="scheme
>> \"unix\"
>> > not registered, fallback to default scheme" module=grpc
>> > time="2022-12-10T12:17:03.474563752-05:00" level=info
>> > msg="ccResolverWrapper: sending update to cc:
>> > {[{unix:///run/containerd/containerd.sock   0 }]  }"
>> > module=grpc
>> > time="2022-12-10T12:17:03.474571186-05:00" level=info msg="ClientConn
>> > switching balancer to \"pick_first\"" module=grpc
>> > time="2022-12-10T12:17:03.478908716-05:00" level=warning msg="Your
>> kernel
>> > does not support cgroup blkio weight"
>> > time="2022-12-10T12:17:03.478927115-05:00" level=warning msg="Your
>> kernel
>> > does not support cgroup blkio weight_device"
>> > time="2022-12-10T12:17:03.479037897-05:00" level=info msg="Loading
>> > containers: start."
>> > time="2022-12-10T12:17:03.495743563-05:00" level=info msg="failed to
>> read
>> > ipv6 net.ipv6.conf..accept_ra" bridge=docker0
>> > syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra
>> > time="2022-12-10T12:17:03.518761943-05:00" level=info msg="Default
>> bridge
>> > (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option
>> --bip
>> > can be used to set a preferred IP address"
>> > time="2022-12-10T12:17:03.518886881-05:00" level=info msg="failed to
>> read
>> > ipv6 net.ipv6.conf..accept_ra" bridge=docker0
>> > syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra
>> > time="2022-12-10T12:17:03.534616741-05:00" level=info msg="Loading
>> > containers: done."
>> > time="2022-12-10T12:17:03.541080189-05:00" level=info msg="Docker
>> daemon"
>> > commit=a89b84221c graphdriver(s)=overlay2 version=20.10.17
>> > time="2022-12-10T12:17:03.541122352-05:00" level=info msg="Daemon has
>> > completed initialization"
>> > time="2022-12-10T12:17:03.549888103-05:00" level=info msg="API listen on
>> > /var/run/docker.sock"
>> > time="2022-12-10T12:17:27.025622231-05:00" level=warning msg="Error
>> getting
>> > v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http:
>> request
>> > canceled while waiting for connection (Client.Timeout exceeded while
>> > awaiting headers)"
>> > time="2022-12-10T12:17:27.025667054-05:00" level=info msg="Attempting
>> next
>> > endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\
>> ":
>> > net/http: request canceled while waiting for connection (Client.Timeout
>> > exceeded while awaiting headers)"
>> > time="2022-12-10T12:17:27.026851821-05:00" level=error msg="Handler for
>> > POST /v1.41/images/create returned error: Get \"
>> > https://registry-1.docker.io/v2/\": net/http: request canceled while
>> > waiting for connection (Client.Timeout exceeded while awaiting headers)"
>> >
>> > time="2022-12-10T12:15:42.036053086-05:00" level=info msg="loading
>> plugin
>> > \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
>> > time="2022-12-10T12:15:42.036068412-05:00" 

Re: [gentoo-user] NAS and replacing with larger drives

2022-12-10 Thread David Rosenbaum
Thanks

Dave

On Sat, Dec 10, 2022, 11:19 AM Frank Steinmetzger  wrote:

> Am Sat, Dec 10, 2022 at 09:20:17AM + schrieb Wols Lists:
>
> > > > Depending on the PVR make/model I've seen 1080p resolution
> recordings with
> > > > .m2ts and .ts file extensions, while the codecs inside them are the
> same.
> -^^^
> >
> > > I wasn’t aware that ts could contain h264. But then again—I never
> really
> -^^^
> > > bothered with live TV recordings in recent years.
>
> > I think this is confusing CONTAINER and CODEC.
>
> Where do we confuse those two? We specifically talked of codecs and
> “contain”.
>
> > .ts is a container format, h264 is a codec. I don't understand it myself,
> > either but think of ts as your directory structure and h264 as your file
> > structure.
>
> Now you are confusing me. You say you don’t understand it, but then explain
> it. TS is like AVI and MKV: a file structure for the payload data. And
> payload data can be all kinds of stuff, from ASS plaintext subtitles, over
> opus audio to mpeg2 or h264 video.
>
> > Incidentally, sticking this stuff in a .tar is probably okay - that's
> just
> > another container, but sticking it in a .tar.gz is not, the gz is your
> codec
> > and will make the file BIGGER in all probability.
>
> Tar does not compress, it simply puts all inputs in a 1:1 stream. It does
> add some metadata (filename and so on). Packers reduce data volume by
> increasing information-per-byte. So if the total information stays the same
> (for lossless coding), the number of bytes decreases. Encoded video data
> ideally has even entropy. It is indistinguishable from random noise. That’s
> why compressing it again does not yield anything, or even adds some volume
> again.
>
> --
> Grüße | Greetings | Salut | Qapla’
> Please do not share anything from, with or about me on any social network.
>
> “Mankind must put an end to war or war will put an end to mankind.”
>  – John F. Kennedy
>


Re: [gentoo-user] NAS and replacing with larger drives

2022-12-10 Thread David Rosenbaum
Can I get sum help with privacy an control of my ph.

David

On Sat, Dec 10, 2022, 9:49 PM David Rosenbaum 
wrote:

> Tanks
>
> Dave
>
> On Sat, Dec 10, 2022, 9:46 PM David Rosenbaum 
> wrote:
>
>>
>>
>> Dave
>>
>> On Sat, Dec 10, 2022, 4:28 PM Mark Knecht  wrote:
>>
>>>
>>>
>>> On Sat, Dec 10, 2022 at 1:42 PM Dale  wrote:
>>> 
>>> > It does appear that several people are making it so NAS boxes can be
>>> > easily built by us nerdy types and not be huge.  Things are a bit
>>> > interesting right now for hardware and such.  Some parts are expensive,
>>> > hard to find or just plain unavailable.  Still, I suspect that this
>>> will
>>> > get better later on.  The good thing, people are working on this. There
>>> > is interest in having a option.
>>> >
>>>
>>> I know I've said this before but yes, people are working on it and it
>>> is buildable by people like us.
>>>
>>> https://www.truenas.com/truenas-core/
>>>
>>> Any old x64 PC and a few disks will get you up and running. It's
>>> open source as much as BSD is open source. It's not Linux
>>> so there was a little learning to do but it wasn't bad.
>>>
>>> Mine has a small SSD as the boot drive and then RAID1 pairs
>>> running OpenZFS for storage. It's inexpensive if you have an
>>> old computer to build on.
>>>
>>> Good luck,
>>> Mark
>>>
>>


Re: [gentoo-user] NAS and replacing with larger drives

2022-12-10 Thread David Rosenbaum
Tanks

Dave

On Sat, Dec 10, 2022, 9:46 PM David Rosenbaum 
wrote:

>
>
> Dave
>
> On Sat, Dec 10, 2022, 4:28 PM Mark Knecht  wrote:
>
>>
>>
>> On Sat, Dec 10, 2022 at 1:42 PM Dale  wrote:
>> 
>> > It does appear that several people are making it so NAS boxes can be
>> > easily built by us nerdy types and not be huge.  Things are a bit
>> > interesting right now for hardware and such.  Some parts are expensive,
>> > hard to find or just plain unavailable.  Still, I suspect that this will
>> > get better later on.  The good thing, people are working on this. There
>> > is interest in having a option.
>> >
>>
>> I know I've said this before but yes, people are working on it and it
>> is buildable by people like us.
>>
>> https://www.truenas.com/truenas-core/
>>
>> Any old x64 PC and a few disks will get you up and running. It's
>> open source as much as BSD is open source. It's not Linux
>> so there was a little learning to do but it wasn't bad.
>>
>> Mine has a small SSD as the boot drive and then RAID1 pairs
>> running OpenZFS for storage. It's inexpensive if you have an
>> old computer to build on.
>>
>> Good luck,
>> Mark
>>
>


Re: [gentoo-user] NAS and replacing with larger drives

2022-12-10 Thread David Rosenbaum
Dave

On Sat, Dec 10, 2022, 4:28 PM Mark Knecht  wrote:

>
>
> On Sat, Dec 10, 2022 at 1:42 PM Dale  wrote:
> 
> > It does appear that several people are making it so NAS boxes can be
> > easily built by us nerdy types and not be huge.  Things are a bit
> > interesting right now for hardware and such.  Some parts are expensive,
> > hard to find or just plain unavailable.  Still, I suspect that this will
> > get better later on.  The good thing, people are working on this. There
> > is interest in having a option.
> >
>
> I know I've said this before but yes, people are working on it and it
> is buildable by people like us.
>
> https://www.truenas.com/truenas-core/
>
> Any old x64 PC and a few disks will get you up and running. It's
> open source as much as BSD is open source. It's not Linux
> so there was a little learning to do but it wasn't bad.
>
> Mine has a small SSD as the boot drive and then RAID1 pairs
> running OpenZFS for storage. It's inexpensive if you have an
> old computer to build on.
>
> Good luck,
> Mark
>


Re: [gentoo-user] NAS and replacing with larger drives

2022-12-10 Thread David Rosenbaum
Someone has hacked my ph.im 44 years old an pay for every thing.house car
an wifi

Dave

On Sat, Dec 10, 2022, 12:28 PM Michael  wrote:

> On Saturday, 10 December 2022 16:30:03 GMT Wols Lists wrote:
> > On 10/12/2022 16:19, Frank Steinmetzger wrote:
> > > Where do we confuse those two? We specifically talked of codecs and
> > > “contain”.
> >
> > "I didn't know .ts could contain h264".
> >
> > If .ts is the container, then surely the assumption is it can contain
> > any codec? If not, why not?
>
> Not any codec.  Some container formats are only compatible with certain
> codecs, or rather the other way around.  Have a look here:
>
> https://en.wikipedia.org/wiki/Comparison_of_video_container_formats
>
> I suppose the answer to 'why not' boils down to the whatever structure and
> data the container format is designed to be compatible with, but I don't
> know
> more than this.
>
>
> https://en.wikipedia.org/wiki/File:Informatik-Containerformate-Beispiele.svg
>
>


Re: [gentoo-user] x11-bas/xorg-x11 removal

2022-10-29 Thread David Haller
Hello,

On Sat, 29 Oct 2022, ralfconn wrote:
>Rather than adding the whole x11-base/xorg-apps and x11-base/xorg-fonts, I'd
>like to build a list of the x11 utilities currently installed on my systems
>to add them to world in preparation of the xorg-x11 package removal.
>
>Is anybody aware of some ready to use tool for the purpose, without
>re-inventing the wheel?

for c in x11-base/ x11-apps/; do
eix '-I*' --format '' "$c"
done

HTH,
-dnh

-- 
panic("Oh boy, that early out of memory?");
linux-2.2.16/arch/mips/mm/init.c



Re: [gentoo-user] C compiler cannot create executables

2022-09-10 Thread David Haller
Hello,

On Sat, 10 Sep 2022, Jack wrote:
>I now get this error trying to emerge two different packages: libofx-0.10.7
>and gnupg (both 2.2.39 and 2.3.6).  It might also be the same problem for a
>few bugs on b.g.o found by searching on "cannot create exectuables."
>
>The relevant lines from build.log are
>
>checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
>checking whether the C compiler works... no
>configure: error: in
>`/var/tmp/portage/dev-libs/libofx-0.10.7/work/libofx-0.10.7':
>configure: error: C compiler cannot create executables
>See `config.log' for more details
>
>and from config.log:
>
>configure:2941: x86_64-pc-linux-gnu-gcc -V >&5
>x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-V'
>x86_64-pc-linux-gnu-gcc: fatal error: no input files
>compilation terminated.
>configure:2952: $? = 1
>configure:2941: x86_64-pc-linux-gnu-gcc -qversion >&5
>x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-qversion';
>did you mean '--version'?
>x86_64-pc-linux-gnu-gcc: fatal error: no input files
>compilation terminated.
>configure:2952: $? = 1

These tests are normal fails with gcc, they are version checks for
other compilers.

>configure:2972: checking whether the C compiler works
>configure:2994: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -og -ggdb 
>-Wl,-O1 -Wl,--as-needed conftest.c  >&5
>configure:2998: $? = 0
>configure:3036: result: no
>configure: failed program was:
[..boilerplate..]
>configure:3041: error: in
>`/var/tmp/portage/dev-libs/libofx-0.10.7/work/libofx-0.10.7':
>configure:3043: error: C compiler cannot create executables
>See `config.log' for more details
>
>The thing I find curious is that it appears to me that the output of the test
>compile is a file called "g" which I don't recall ever seeing, and so I
>wonder if the problem is that something has changed with gcc defaults and
>configure does not yet recognize that change.  I also don't know the 
>significance of the two "fatal error: no input files".
>
>The fact that this happens with two unrelated packages suggests that it's 
>not specific to either of them, but something in my system or configuration.

And it's a standard autoconf macro, namely AC_PROG_CC that results in
the error and the stuff before that is also standard. And as no
autoreconf is called, autotools versions should not matter.

>Any thoughts or suggestions?

I use gcc 11.3.0 here as well, and have no problem. Check for the
variables CC, CFLAGS, CPPFLAGS, LDFLAGS and LIBS in
/var/tmp/portage/dev-libs/libofx-0.10.7/temp/environment.

Somehow, that '-og' must have crept in there.

HTH,
-dnh

-- 
printk("%s: Boo!\n", dev->name);
linux-2.6.19/drivers/net/depca.c



Re: [gentoo-user] Getting printer working, the road of Pain.

2022-09-09 Thread David M. Fellows
>On Thursday, 8 September 2022 21:40:25 BST Wols Lists wrote:
>> On 08/09/2022 21:24, Lee wrote:
>> > Who needs to go to the hassle maintaining a printer of their own, buying
>> > cartridges, paper etc? I set up an online account at my neighborhood
>> > Kinkos, and I just upload whatever docs I need and they print out in HD
>> > whatever I need for pennies a page. Ymmv.
>> 
>> YMMV. But if your neighbouhood Kinkos is fifty miles away your mileage
>> most definitely does vary :-)
>
>What is a Kinkos?

Was a copy shop chain. See https://en.wikipedia.org/wiki/FedEx_Office
DaveF
>
>-- 
>Regards,
>Peter.
>
>
>
>



Re: [gentoo-user] Getting maximum space out of a hard drive

2022-08-26 Thread David Haller
Hello,

On Thu, 25 Aug 2022, Dale wrote:
>Jack wrote:
[..]
>> Related question - how much space would you actually save by
>> decreasing the number of inodes by 90%?  Enough for one or two more
>> videos?
>
>Now I have to admit, that is a question I have too.

From my tests with a swapfile (which matches what I remember from real
FSen), I think '-T largefile' vs. default frees up around 1.6% of the
capacity, so for 9.1T it'd be around 150G which might be worthwhile
_iff_ you are sure about what kind of files will go on that FS.

FWIW, in a pinch if you run out of Inodes, you can create an image
file on that fs, taking just 1 Inode, format that image differently,
loop-mount it and put ton's of files inside the image. It'll eat a bit
of performance though.

And about the average filesize in a dir: Just find out the size (e.g.: 
 du -msx /foo
) and the number of used inodes (e.g.:
find /foo -xdev | wc -l
[1]) and then just divide:
summed_size_in_unit / number_of_files = avg_size_in_unit
for FSen, just divide used space by used inodes.

HTH,
-dnh

[1] assuming you have no files with '\n' in the filename

-- 
printk (KERN_ERR "%s: Oops - your private data area is hosed!\n", ...)
linux-2.6.6/drivers/net/ewrk3.c



Re: [gentoo-user] Getting maximum space out of a hard drive

2022-08-18 Thread David Haller
Hello,

On Thu, 18 Aug 2022, Dale wrote:
>Rich Freeman wrote:
>> On Thu, Aug 18, 2022 at 2:04 PM Dale  wrote:
>>>
>>> Part. # SizePartition TypePartition Name
>>> 1007.0 KiB  free space
>>>19.1 TiB Linux filesystem  10Tb
>>> 1007.5 KiB  free space
>>>
>>>
>>> I'm not sure why there seems to be two alignment spots.  Is that
>>> normal?  Already, there is almost 1TB lost somewhere.
>> 10 TB = 9.09495 TiB.  You aren't missing much of anything.
[..]
>Well, I realize it would be less than advertised but I just want to
>maximize it as much as I can.  I found the -m option for the file system
>a good while back and it saves a lot on these larger drives.  Since this
>is a external drive, no point in reserving any root space, since root
>will likely never access it after the file system is put on it. 

Also, if you're using ext2/3/4, there's the preset, i.e. if you're
rather sure about what kind of data is going to be on there, you
can tune it so that it reserves more or less place for metadata like
inodes, which can be another bit.

I made some experiments with a temp-repurposed swapfile of 2051M size:

Output of 'df -m':
1M-blocks  Used Available   Inodes   mke2fs-options used
201667  1847131072-j -t ext4
201667  1949131072-j -t ext4 -m 0
204867  18782048  -j -t ext4 -T largefile
204867  19812048  -j -t ext4 -T largefile -m 0

So, defaults uses about 1.7% of the space for metadata, and -T
largefile only about 0.15% of the space. Of course, there are rather
few inodes with '-T largefile'. But if you want to put basically only
some big videos on there, 2048 inodes seems a lot for a mere 2G of
space ;) This should scale linearly (in steps) for bigger devices and
can amount to quite some more space.

Anyway, see /etc/mke2fs.conf, 'man mke2fs' and 'man mke2fs.conf for
details.

I've done this in the past and got bitten by too few inodes, but you
can get around that for "inode-hogs" like news-spools etc. by using a
loop-filesystem with different parameters or a different fs. Just
beware: reiserfs on reiserfs is a recipie for desaster.

HTH,
-dnh

-- 
There are two major products that come out of Berkeley:
LSD and UNIX. We don't believe this to be a coincidence.
   -- Jeremy S. Anderson



Re: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong

2022-07-29 Thread David M. Fellows
>Dear friends, I am updating the gentoo mip-n32 system on my Yeeloong
>netbook. During updating of the @world, it began to update the gcc
>12.1.1 from gcc 11.3.0 which is also the one doing the compilation. And
>after a long-time compilation, it stops with error messages: " ..

Hmm. 1G ram and 1G swap is not much memory for building gcc.
You could check dmesg and syslog for out-of memory kill messages occurring
during your builds.

It would be easy to try again specifying MAKEOPTS="-j1".  Also make
sure that you have no unnecesary other processes running during the build -
especially memory hogs like a web browser.

You could add swap, but if you are doing much swapping it will be intolerably
slow.

I would also arrange for some extra cooling of the laptop just in the load is
causing overheating.

DaveF

>
>
>rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod
>gpl.pod cpp.pod gcov.pod lto-dump.pod make[2]: *** [Makefile:5000:
>all-stage2-gcc] Error 2 make[1]: *** [Makefile:22474: stage2-bubble]
>Error 2 make: *** [Makefile:22697: bootstrap-lean] Error 2 * ERROR:
>sys-devel/gcc-12.1.1_p20220625::gentoo failed (compile phase): * emake
>failed * * If you need support, post the output of `emerge --info
>'=sys-devel/gcc-12.1.1_p20220625::gentoo'`, * the complete build log and
>the output of `emerge -pqv '=sys-devel/gcc-12.1.1_p20220625::gentoo'`.
>* The complete build log is located at
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log'.
>* The ebuild environment file is located at
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/environment'.
>* Working directory:
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/build' * S:
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-12-20220625'
>* Please include
>/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-build-logs.tar.
>bz2 in your bug report. *
>
>
 Failed to emerge sys-devel/gcc-12.1.1_p20220625, Log file:
>
>
 '/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log' " I
>also tried to emerge 11.3.1, but it still stoped at the compile stage.
>But I forgot to save the enviroment.
>
>
>Any help? The necessary log files are attached. Thanks.
>>> application/x-gzip attachment, name=buildlogs-12.1.1.tar.gz
>>> application/x-gzip attachment, name=buildlogs-11.3.1.tar.gz



Re: [gentoo-user] Reinstall

2022-05-11 Thread David Palao

Hi,

What I would suggest is to try yo emerge @world first with a reduced 
list of USE flags, maybe the default, and after success you could 
introduce back the wanted USE flags and emerge @world once more.


It could be a bit too much compilation, but if you have already binary 
packages, it will not be so expensive the second round, IMHO.


Best

On 11/5/22 11:57, Francisco Ares wrote:

Hello

After a main HD failure, I'll have to reinstall Gentoo from almost 
zero - I have a full and recent copy of the /etc directory and the 
file /var/lib/portage/world in a secondary HD (along many personal 
backups).


Installation basics done, now it is time for an emerge world.

Although the emerge lists is as huge as expected, it doesn't even 
start, portage says there are cyclic USE flags that I should avoid at 
the first moment, but may restore afterwards.


But it doesn't say which are those USE flags that block each other.

Is there any way to find those better than brute force?

By the way, I also have a copy of all binary packages (I always use 
the -b flag while emerging any package) in that second disk. But that 
didn't help so far, even trying to use the -K flag. I thought on 
un-tar'ing those binary packages by hand, but portage will be unaware 
of this, not knowing the packages are installed.


Any hint will be greatly appreciated!

Thanks

Francisco




Re: [gentoo-user] problem emerging virt-manager 4.0.0

2022-04-06 Thread David M. Fellows
>Hi.  In today's world update, I get the following strange output when
>trying to emerge virt-manager.  I am not even sure what this means.

Small consolation, no great help, but you are not alone.  See
https://bugs.gentoo.org/836645

>From the bug title maybe downgrading dev-python/setuptools would be
a workaround.

DaveF
>
 Configuring source in
 /var/tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0
 ...
>python3.9 setup.py configure --default-graphics=spice
>error: Multiple top-level packages discovered in a flat-layout: ['po',
>'ui', 'man', 'data', 'virtinst', 'virtManager'].
>
>To avoid accidental inclusion of unwanted files or directories,
>setuptools will not proceed with this build.
>
>If you are trying to create a single distribution with multiple
>packages
>on purpose, you should not rely on automatic discovery.
>Instead, consider the following options:
>
>1. set up custom discovery (`find` directive with `include` or
>`exclude`)
>2. use a `src-layout`
>3. explicitly set `py_modules` or `packages` with a list of names
>
>To find more information, look for "package discovery" on setuptools
>docs.
> * ERROR: app-emulation/virt-manager-4.0.0::gentoo failed (configure
> phase):
>  *   (no error message)
>
>Thanks in advance for any suggestions.
>
>-- 
>Your life is like a penny.  You're going to lose it.  The question is:
>How do
>you spend it?
>
> John Covici wb2una
> cov...@ccs.covici.com
>



Re: [gentoo-user] How to degrade Gentoo system with webrsync method?

2022-01-19 Thread Robert David

Hi,

to the downgrade thing it can be partly done using the squashfs portage 
snapshots laying on every portage mirror. There is a long history list 
there.


https://gentoo.osuosl.org/snapshots/squashfs/

So you can migrate your portage tree from plain files to the squashfs.

But actually the real issue here is that you are modifying your live 
system with potentially broken things and than stay in a non working 
state. For stable binary distribution there is a very high probability 
that upgrade will pass correctly. But on gentoo the probability is much 
less. So it needs to be counted with.
The easiest thing is to let the portage create binary packages from the 
ones that are unmerged and keep old portage squashfs at hand. This is 
still live system and I would not do that.
Instead just use any filesystem for the root that allows you creating 
boot environments (zfs, btrfs, lvm).
I have only experience with zfs, so creating boot environments is very 
easy and an atomic operation, where the upgrade only happen in a new BE 
until it is ready to go.
Having BE setup correctly and squashfs images in it, provides you a 
consistent working environment all the time. And if something does not 
work as expected, you may return to the previous BE (if you didnt remove 
it).


Robert.

On 1/9/22 12:47, gevisz wrote:

I constantly have problems with updating/recompiling tensorflow.
Sometimes, it compiles ok but most of the time it is not.
The last time when it failed to recompile was on 30-12-2021.
I reported this in the thread "tensorflow-2.5.0-r1 compilation failed"

So, I decided to degrade my Gentoo system to the state in which
it was on 12-12-2021, when my tensorflow was still ok, and froze it forever.

The problem is that I do not know how to sync my Gentoo repository
to the state it was on 12-12-2021.

I use webrsync sync method via "maint -A sync" and would prefer
to use the same sync method for degrading my Gentoo system.

Can anybody, please, tell me how to do it using this sync method?





Re: [gentoo-user] The old wine/harfbuzz/freetype circle ...

2021-09-18 Thread David Haller
Hello,

On Sat, 18 Sep 2021, antlists wrote:
>I've got stuck on this merry-go-round ...
>
>I'm trying to emerge wine, and it's come up with this. It insisted on adding
>abi_x86_32 or whatever it is to loads of things, but it's now blowing up with
>this circular dependency. If I try and install one with "use = -theother" it
>won't go ...

This should work:

# USE="-harfbuzz" emerge media-libs/freetype
# emerge media-libs/harfbuzz
# emerge media-libs/freetype

HTH,
-dnh

-- 
Sheridan: "If you're gonna wait for the universe to start making
sense you'll have a *long* wait ahead of you."
 -- Babylon 5 - 4x12 - Conflicts of Interest



Re: [gentoo-user] faded images with Gwenview

2021-09-13 Thread David Haller
Hello,

On Sun, 12 Sep 2021, Philip Webb wrote:
>It remains a puzzle.  Any further comments from anyone are most welcome.

Gwenview uses color-management via media-libs/lcms, feh does not.
See "Rendering intent" and "Color profile" under "Advanced" in
Gwenview's configure dialog.

HTH,
-dnh

-- 
Hey, what do you expect from a culture that
*drives* on *parkways* and *parks* on *driveways*?
--Gallagher



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

2021-09-08 Thread David M. Fellows
>Thank you for your ideas!
>
>I was actually hoping for a neat hack with "/etc/portage/env/" and 
>"/etc/portage/package.env/", where you can set environment variables.

Did you look at example 2 in
https://wiki.gentoo.org/wiki//etc/portage/package.env ?

It seems to address your problem.
DaveF
>
>I will try out the following solution:
>
>$ < "/etc/portage/package.env/no_tmpfs.conf
># custom - 20181121 - rfischer: list packages, which are too big for
>tmpfs
>#app-emulation/qemu-kv no_tmpfs.conf
>#app-office/libreoffice no_tmpfs.conf
>#dev-java/icedtea no_tmpfs.conf
>#dev-lang/ghc no_tmpfs.conf
>#dev-lang/rust no_tmpfs.conf
>#mail-client/thunderbird no_tmpfs.conf
>#sci-libs/tensorflow no_tmpfs.conf
>#sys-devel/gcc no_tmpfs.conf
>#www-client/firefox no_tmpfs.conf
>#www-client/ungoogled-chromium no_tmpfs.conf #throttle_make_emerge.conf
>
>$ < "${HOME}/bin/update.sh"
>[...]
>large_package_list=$(/bin/grep --extended-regexp --only-matching
>"[a-z]+-[a-z]+\/[-0-9a-zA-Z]+" "/etc/portage/package.env/no_tmpfs.conf")
>[...]
>/usr/bin/emerge --ask --update --deep --newuse --tree --verbose
>--exclude="${large_package_list//$'\n'/ }" @world
>/usr/bin/emerge --ask --update --deep --newuse --tree --verbose @world
>
>-Ramon
>
>On 15/08/2021 17:48, Nikos Chantziaras wrote:
>> 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.
>>
>>
>
>-- 
>GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF
>
>
>
>>> application/pgp-signature attachment, name=OpenPGP_signature



Re: [gentoo-user] SNAFU

2021-09-02 Thread David Haller
Hello,

On Thu, 02 Sep 2021, David Haller wrote:
>On Thu, 02 Sep 2021, Neil Bothwick wrote:
>>Yes it does, but only on the testing version. If you are running stable,
>>you won't have it.
>
>I beg to differ on that point:
>
>$ cd $(portageq get_repo_path / gentoo)
>$ for f in sys-libs/glibc/glibc-*.ebuild; do \
>if grep -q 'KEYW.* amd64' "$f"; then \
>  printf "${f##*\/}:"; \
>  sed -n -e 's/IUSE.*\( +\?crypt \).*/\1/p' "$f"; \
>fi; \
>  done
>glibc-2.25-r11.ebuild:glibc-2.30-r9.ebuild: +crypt 
>glibc-2.31-r7.ebuild: +crypt 
>glibc-2.32-r8.ebuild: +crypt 
>glibc-2.33-r1.ebuild: +crypt 
>glibc-2.33.ebuild: +crypt 
>
>$ [same as above but with 'KEYW.* ~amd64']:
>glibc-2.33-r6.ebuild: +crypt 
>glibc-2.33-r7.ebuild: +crypt 
>glibc-2.34.ebuild: +crypt 
>glibc-.ebuild: +crypt
>
>Repo synced earlier today.

Ah yes, of course there is this:

$ grep -r sys-libs/glibc.*crypt  profiles/
profiles/base/package.use.force:=sys-libs/glibc-2.33-r2 crypt

-dnh

-- 
panic("huh?\n");
linux-2.2.16/arch/i386/kernel/smp.c



Re: [gentoo-user] SNAFU

2021-09-02 Thread David Haller
Hello,

On Thu, 02 Sep 2021, Neil Bothwick wrote:
>Yes it does, but only on the testing version. If you are running stable,
>you won't have it.

I beg to differ on that point:

$ cd $(portageq get_repo_path / gentoo)
$ for f in sys-libs/glibc/glibc-*.ebuild; do \
if grep -q 'KEYW.* amd64' "$f"; then \
  printf "${f##*\/}:"; \
  sed -n -e 's/IUSE.*\( +\?crypt \).*/\1/p' "$f"; \
fi; \
  done
glibc-2.25-r11.ebuild:glibc-2.30-r9.ebuild: +crypt 
glibc-2.31-r7.ebuild: +crypt 
glibc-2.32-r8.ebuild: +crypt 
glibc-2.33-r1.ebuild: +crypt 
glibc-2.33.ebuild: +crypt 

$ [same as above but with 'KEYW.* ~amd64']:
glibc-2.33-r6.ebuild: +crypt 
glibc-2.33-r7.ebuild: +crypt 
glibc-2.34.ebuild: +crypt 
glibc-.ebuild: +crypt

Repo synced earlier today.

HTH,
-dnh

-- 
printk(KERN_ERR "happy meal: Eieee, rx config register gets greasy fries.\n");
linux-2.6.19/drivers/net/sunhme.c



Re: [gentoo-user] Radeon navi cards and opencl

2021-08-31 Thread David M. Fellows
>On Monday, 30 August 2021 16:08:27 BST Peter Humphrey wrote:
>> Hello list,
>> 
>> Does anyone know whether AMD intend to make their navi cards usable with
>> opencl under Linux? I have a Radeon Pro W5500, which is a navi 14 card, and
>> from what I can see neither rocm-opencl nor amdgpu-pro-opencl can drive it.
>> 
>> Rather spoils the point of upgrading to it.
>
>AMD have published Linux drivers on their website, but in RPM and .deb 
>formats. I tried one anyway, but installation stops immediately with 
>'unsupported OS'. Not surprising, of course, but is there any way of porting 
>and archive full of .debs so that it can be used in Gentoo?

app-arch/deb2targz
app-arch/rpm2targz
perhaps?
And you get to keep all the pieces if the expected APIs do not match the
actual APIs. :)
DaveF

>
>-- 
>Regards,
>Peter.
>
>
>
>



Re: [gentoo-user] rescue cd for zfs 2.1 or thereabouts

2021-08-31 Thread Robert David
Hi John,

my approach is to have EFI partition with staticly compiled grub, alpine
linux rescue system and kernel with tiny initramfs for zfs root.

It works really well, only thing you need to consider is when upgrading
root pool, you will not be able to boot to previous BE with old zfs.
Without upgrading the pool, the transition is just easy as recompiling
new kernel and upgrading the zfs userspace tools.

For the alpine I use script to put a new version on /boot
https://github.com/robertek/root-scripts/blob/master/alpine_recovery_update

and having grub entry:

menuentry "Alpine linux recovery" {
linux   /boot/vmlinuz-lts modules=loop,squashfs,sd-mod,nvme quiet 
nomodeset
initrd  /boot/initramfs-lts
}

The alpine extended version contains zfs modules, so you only need to
"apk add zfs" and then modprobe zfs.

The extended version is little bit bigger, but I'm fine to live with 1G efi
partition.

Robert.

On Monday, August 23, 2021 10:15:10 AM CEST John Covici wrote:
> Hi.  I have been using 5.4 lts kernels for a while, but it seems I
> need to change to 5.10 lts -- even Debian is now using 5.10, so it
> seems time to do this.
> 
> Now, the problem is that I am using zfs and will not give it up, and
> the version I have been using 0.8.6 is no longer supported in 5.10
> versions of the kernel.  So, I need a newer version of zfs and a
> rescue cd in case I get into trouble.  Sysresc seems to no longer be
> compatible withgentoo linux, so what is available?  I could use gentoo
> catalyst to make something -- I have done that in the past, but its
> quite a bit of work and I would prefer if there were something
> available I could use out of the box.
> 
> Thanks in advance for any suggestions.







Re: [gentoo-user] dev-python/isodate breaks my emerge because it's at EAPI?

2021-08-02 Thread David Haller
Hello,

On Mon, 02 Aug 2021, n952162 wrote:
>!!! All ebuilds that could satisfy
>"dev-python/isodate[python_targets_python3_8(-)?,python_targets_python3_9(-)?]"
>have been masked.
>!!! One of the following masked packages is required to complete your
>request:
>- dev-python/isodate-0.6.0-r2::gentoo (masked by: EAPI 8)
>
>The current version of portage supports EAPI '7'. You must upgrade to a
 ^^
>newer version of portage before EAPI masked packages can be installed.

You should read a bit more carefully... It seems your sys-apps/portage
is a bit dated.

Upgrade sys-apps/portage first, then it should work.

HTH,
-dnh

-- 
printk(KERN_DEBUG "%s: burped during tx load.\n", dev->name)
linux-2.6.6/drivers/net/3c501.c



Re: [gentoo-user] [OT] Using an odd number of drives in ZFS RaidZ

2021-07-04 Thread Robert David
On Thursday, July 1, 2021 5:01:25 PM CEST antlists wrote:
> On 01/07/2021 14:47, Robert David wrote:
> > Hi Frank,
> > 
> > 
> > 
> > In any of my data arrays I have long time migrated off the RAIDZ to the
> > MIRROR or RAID10. You will find finally that the RAIDZ is slow and not
> > very flexible. Only think you gain is the extra space in constrained
> > array spaces. For RAID10 it is much easier to raise the size, just
> > resilvering to new bigger disks, removing old and expanding. The
> > resilvering speed is magnitude faster.
> > 
> > And anyway much easier to recover
> > in cases of failure.
> 
> ARE YOU SURE???
> 
> The standard mirror does not cope with corruption very well. Lose a disk
> and resilvering is fast. Corrupt the data, and you'll be tearing your
> hair out why things go wrong randomly, with no automated way, even once
> you've realised what's happened, to recover your data other than a
> restore from backup.

Yes I'm sure. What I meant easier is that the pool is much easier to
handle and recover.

For RAIDZ1 the thing you mention for MIRROR is the same, only it is
multiplied with the amount of disks. So if 1 disk fail and you resilver,
then all the remaining disks spinning to populate the spare. If any of
them fails, then you are screwed. RAIDZ2 is better in this space and in
case of 4 disks it is better when it comes to resiliency (for 10 disks
it may not be true), but you lose the flexibility.

Also time to resilver under RAIDZ is much slower, which means longer
time under unprotected pool. It is always needed to decide what workload
you are serving and how precious the data are.

For data like movies RAIDZ1 is enough I think.

Also it is good to check the SMART data time to time to see the amount
of error corrections (some are ok, but highly rising no). Solaris has
FMA for this to kick in spare. Under home environment it is fine to
check it time to time and consider new disk before the old one
completely dies. This reminds me I need to buy new disk to my home NAS :)
(because of the rising corrections).

And finally, always do backups for the data you are about to save. I got
raspberry pi with attached USB JBOD with two disks serving as backup
station. It is not fast to be a real NAS, but to do send/receive of
incremental snapshots it is enough. I automaticly sync there the
datasets that are worth not to lose (photos, documents, etc), many times
these datasets are also the ones that are not such big.
Ideally put this backup station to some remote location (or at least 
different room).

Robert.

> 
> > If you really need the additional space, consider adding second jbod
> > with another disks.
> 
> That'd be my approach - migrate a load of stuff off onto another disk
> elsewhere, but that's not what the OP wants to do.
> 
> > Robert.
> 
> Cheers,
> Wol







Re: [gentoo-user] [OT] Using an odd number of drives in ZFS RaidZ

2021-07-01 Thread Robert David
Hi Frank,

On Tuesday, June 29, 2021 3:56:49 PM CEST Frank Steinmetzger wrote:
> Hello fellows
> 
> This is not really a Gentoo question, but at least my NAS (which this mail
> is about) is running Gentoo. :)
> 
> There are some people amongst this esteemed group that know their stuff
> about storage and servers and things, so I thought I might try my luck here.
> I’ve already looked on the Webs, but my question is a wee bit specific and
> I wasn’t able to find the exact answer (yet). And I’m a bit hesitant to ask
> this newbie-ish question in a ZFS expert forum. ;-)
> 
> Prologue:
> Due to how records are distributed across blocks in a parity-based ZFS vdev,
> it is recommended to use 2^n data disks. Technically, it is perfectly fine
> to deviate from it, but for performance reasons (mostly space efficiency)
> it is not the recommended way. That’s because the (default) maximum record
> size of 128 k itself is a power of 2 and thus can be distributed evenly on
> all drives. At least that’s my understanding. Is that correct?
> 
> So here’s the question:
> If I had three data drives, (c|w)ould I get around that problem by setting a
> record size that is divisible by 3, like 96 k, or even 3 M?

I would not bother with this. 128k is a good default for general usage
and even if you got 3 data disks the actual loss is pointless to think
about (assuming you got 4k disks).


> 
> 
> 
> Here’s the background of my question:
> Said NAS is based on a Mini-ITX case which has only four drive slots (which
> is the most common configuration for a case of this formfactor). I started
> with two 6 TB drives, running in a mirror configuration. One year later
> space was running out and I filled the remaining slots. To maximise
> reliability, I went with RaidZ2.
> 
> I reached 80 % usage (which is the recommended maximum for ZFS) and am
> now evaluating my options for the coming years.
> 1) Reduce use of space by re-encoding. My payload is mainly movies, among
>which are 3 TB of DVDs which can be shrunk by at least ⅔ by re-encoding.
>→ this takes time and computing effort, but is a long-term goal anyway.

I always think about in such cases if I really need such data. In many
cases with clear consideration I find out I may remove half of the data
without any pain. It is like cleaning my home, there are many things
extra and there is missing a space for real valuable things, with disk
data it is the same.

> 2) Replace all drives with bigger ones. There are three counter arguments:
>• 1000 € for four 10 TB drives (the biggest size available w/o helium)
>• they are only available with 7200 rpm (more power, noise and heat)
>• I am left with four perfectly fine 6 TB drives
> 3) Go for 4+2 RaidZ2. This requires a bigger case (with new PSU due to
>different form factor) and a SATA expansion card b/c the Mobo only has
>six connectors (I need at least one more for the system drive), costing
>250 € plus drives.
> 4) Convert to RaidZ1. Gain space of one drive at the cost of resilience. I
>can live with the latter; the server only runs occasionally and not for
>very long at a time. *** This option brings me to my question above,
>because it is easy to achieve and costs no €€€.

In any of my data arrays I have long time migrated off the RAIDZ to the
MIRROR or RAID10. You will find finally that the RAIDZ is slow and not
very flexible. Only think you gain is the extra space in constrained
array spaces. For RAID10 it is much easier to raise the size, just
resilvering to new bigger disks, removing old and expanding. The
resilvering speed is magnitude faster. And anyway much easier to recover
in cases of failure. 

If you really need the additional space, consider adding second jbod
with another disks.

Robert.






Re: [gentoo-user] Rationalizing log files

2021-05-14 Thread David Haller
Hello,

On Thu, 13 May 2021, Walter Dnes wrote:
[..]
>  And maybe either stop logging Facebook, or else log iptables messages
>to a separate file (how is that done?).  The Facebook tracker messages
>are generated by iptables rules...
>
>-A INPUT -s 31.13.24.0/21 -j FECESBOOK
>-A INPUT -s 31.13.64.0/18 -j FECESBOOK
[..]
>-A OUTPUT -d 31.13.24.0/21 -j FECESBOOK
>-A OUTPUT -d 31.13.64.0/18 -j FECESBOOK

FWIW:

For one: why not filter the iptables messages into a seperate logfile?

E.g. for syslog-ng (you'll need to add the filter to other
filters/log, having them in the filters you can use those
more intuitively):


filter f_iptables   { facility(kern) and message("IN=") and message("OUT="); };
filter f_console{ ... and not filter(f_iptables); }
filter f_messages   { ... and not filter(f_iptables); };
filter f_warn   { ... and not filter(f_iptables); };
[..]
log { source(src); source(chroots); filter(f_messages); destination(messages); 
};

# Firewall (iptables) messages in one file:
destination firewall { file("/var/log/firewall" suppress(30)); };
log { source(src); source(chroots); filter(f_iptables); destination(firewall); 
};


You might be logging more specifically, so you could add more specific
filters. That's what those filters (and log-prefixes in iptables) are
for after all :)

Also add a matching logrotate entry:


/var/log/firewall {
delaycompress
missingok
notifempty
size +4096k
sharedscripts
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}


or some such as /etc/logrotate.d/firewall (or however you name you
iptables-logfile.

And second, how about setting up a local dnsmasq to send all fb-crap
to NXDOMAIN on the DNS-level?

 dnsmasq.conf or e.g. /etc/dnsmasq.d/blocklist.conf [1] 
address=/fb.com/
address=/fb.me/
address=/facebook.net/
address=/facebook.de/
address=/facebook.fr/
address=/facebook.co.uk/
address=/facebook.com/
address=/fbcdn.net/
address=/instagram.com/
address=/instagram.de/
address=/whatsapp.de/
address=/whatsapp.com/
address=/whatsapp.net/


That has the effect that all (sub-)domains with those names give
NXDOMAIN, i.e. are non-existant. Compare to:

$ nslookup there.is.no.such.domain.invalid

Depending on what sites you visit, you might add more domains like
e.g. facebook.ca, facebook.mx, facebook.es or whatever fb-domains
sites that you visit include...

Just as ideas,
-dnh

[1] you'll need a matching conf-dir or conf-file directive, preferably
at the end of the main /etc/dnsmasq.conf then, I use:

conf-dir=/etc/dnsmasq.d,*.conf

which includes all *.conf files from /etc/dnsmasq.d/ (and ignores
other files there like *.conf~ or Makefile or whatnot, so you can
be creative and e.g. generate your blocklist from a simple list of
domains ;) E.g.:
 /etc/dnsmasq.d/Makefile
all: blocklist.conf
blocklist.conf: blocklist.conf.in
sort -u $< | sed 's@\(.*\)@address=/&/@' > $@


You get the ideas ;) (and if not: ask!)

-- 
Of course. Anything with more than 2 buttons is too complex. This includes
things with 2 or less buttons. This may include clothing.  -- Satya



Re: [gentoo-user] Re: File transfer via USB?

2021-04-25 Thread David M. Fellows
>On 4/25/21 12:14 PM, Grant Edwards wrote:
>> Nope. Many years ago I used UUCP a number of times for "production" 
>> projects involving data gathering from remote systems via dial-up.
>
>:-)
>
>> 25+ years ago, I wrote an article about one of those projects for 
>> Linux Journal.
>
>Can you narrow that down any more?  I'd like to go find a copy of it and 
>read it.

A quick Duckduckgo search for "linux journal" grant edwards
yields

https://www.linuxjournal.com/article/2880
Still available. Reading it takes me back...
DaveF



Re: [gentoo-user] SSSD and nsupdate installation issue

2021-03-13 Thread David M. Fellows
>Hey all,
>
>I've been trying to install SSSD on my Gentoo laptop over the past week 
>and keep getting stuck at the same spot. I've tried 2.2.0-r1, 2.3.1-r2, 
>and even 2.4.2 - all are failing during initial configuration, claiming 
>that "nsupdate does not support 'realm'". I've manually run the Autoconf 
>script and it doesn't seem to find this issue with nsupdate, so I'm 
>really starting to scratch my head. Admittedly, my knowledge of the 
>Gentoo package build process is lacking and after exhausting my 
>google-foo I now climb the mountain in search of guidance.
>
>The dependencies and flags for SSSD seem pretty straightforward, so not 
>sure what could be causing this. Any pointers (or commiseration) would 
>be much appreciated.
>
>A few snippets below:
>
>checking for executable nsupdate... yes
>checking for nsupdate 'realm' support'... no
>configure: error: nsupdate does not support 'realm'
>
>environment, line 3426:  Called econf '--localstatedir=/var' 
>'--runstatedir=/run' '--with-pid-path=/run' 
>'--with-plugin-path=/usr/lib64/sssd' 
>'--enable-pammoddir=//lib64/security' 
>'--with-ldb-lib-dir=/usr/lib64/samba/ldb' 
>'--with-db-path=/var/lib/sss/db' 
>'--with-gpo-cache-path=/var/lib/sss/gpo_cache' 
>'--with-pubconf-path=/var/lib/sss/pubconf' 
>'--with-pipe-path=/var/lib/sss/pipes' 
>'--with-mcache-path=/var/lib/sss/mc' 
>'--with-secrets-db-path=/var/lib/sss/secrets' 
>'--with-log-path=/var/log/sssd' '--with-os=gentoo' 
>'--with-nscd=/usr/sbin/nscd' '--with-unicode-lib=glib2' 
>'--disable-rpath' '--sbindir=/usr/sbin' '--enable-local-provider' 
>'--without-kcm' '--without-secrets' '--with-samba' 
>'--with-smb-idmap-interface-version=6' '--enable-cifs-idmap-plugin' 
>'--without-selinux' '--without-semanage' '--enable-krb5-locator-plugin' 
>'--disable-pac-responder' '--with-nfsv4-idmapd-plugin' '--enable-nls' 
>'--with-libnl' '--with-manpages' '--with-sudo' '--with-autofs' 
>'--with-ssh' '--disable-valgrind' '--without-python2-bindings' 
>'--without-python3-bindings' '--with-initscript=sysv'
>
>Best,
>
>Alex

The problem seems to be described in this bug report:

https://bugs.gentoo.org/679838

It also describes a workaround  (set FEATURES=-network-sandbox).

DaveF




[gentoo-user] mu scripts on Gentoo

2021-03-10 Thread David Martí Huescar
First of all, hi there, just joined the list =)

I'm a bit confused about the net-mail/mu package. On the mu-script
manpage it says that mu ships with several scripts. I emerged it with
the guile flag, but mu barks at me that there is no
/usr/share/mu/scripts file.

If I look with "equery f mu", I don't see anything like a scripts
folder. It installed the mu-guile infodocs, but not the mu guile
module.

Am I missing something?

Thank you in advance,

David.



Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-06 Thread David Haller
Hello,

On Sat, 06 Mar 2021, Steven Lembark wrote:
>Question then is why "python-exec2c" dispatched via a symlink from
>"python3" would fail to see the installed copy of pyyaml (or how
>should I check with modules are avalable via "python3")?
[..]
>I think that pyyaml is installed:
>
>*  dev-python/pyyaml
>  Latest version available: 5.4.1
>  Latest version installed: 5.4.1
>  Size of files: 170 KiB
>  Homepage:  https://pyyaml.org/wiki/PyYAML 
> https://pypi.org/project/PyYAML/ https://github.com/yaml/pyyaml
>  Description:   YAML parser and emitter for Python
>  License:   MIT

Check with 'eix dev-python/pyyaml' or 'equery uses dev-python/pyyaml'
for what python versions that module is actually installed for and
compare that with the default python3 version (check 'python3 --version')

You probably need to re-emerge dev-python/pyyaml if PYTHON_TARGETS has
changed. You probably have it installed just for one target (which is
not your current default python3).

$ equery uses dev-python/pyyaml
[..]
 + + python_targets_python3_7 : Build with Python 3.7
 + + python_targets_python3_8 : Build with Python 3.8
 - - python_targets_python3_9 : Build with Python 3.9
[..]

So I have it installed for python 3.7.x and 3.8.x ...

HTH,
-dnh

-- 
It's simply unbelievable how much energy and creativity people have
invested into creating contradictory, bogus and stupid licenses...
--- Sven Rudolph about licences in debian/non-free.



Re: [gentoo-user] cmake-3.18.5 build fails

2021-02-12 Thread David Haller
Hello,

On Fri, 12 Feb 2021, Jack wrote:
>On 2021.02.12 14:49, Walter Dnes wrote:
>>   64-bit Gentoo on a new 12-core machine.  The build fails in the compile
>> phase.  Switching makeopts from -j4 to -j1 didn't help.  Build log is
>> attached.
>The error seems to be at linking:
>
>/usr/lib/gcc/x86_64-pc-linux-gnu/7.5.0/../../../../x86_64-pc-linux-gnu/bin/ld:
>/usr/lib64/libjsoncpp.so: undefined reference to
>`std::__cxx11::basic_ostringstream,
>std::allocator >::basic_ostringstream()@GLIBCXX_3.4.26'
>
>/usr/lib64/libjsoncpp.so belongs to dev-libs/jsoncpp.  cmake depends on
>>=dev-libs/jsoncpp-1.9.2-r2:0=
>
>I have 1.9.4 installed.  (1.9.3 is the only other one I see in Portage.)  Is
>it possible you have an older version, and the dep needs to be updated?

I needs just to be recompiled, I think. With '-std=c++11' or later. 
Search for
'undefined reference to std::__cxx11::basic_'
(no quotes) on your least untrusted search engine, or better, if your
search-engine supports the 'site:' parameter, for 
'undefined reference to std::__cxx11::basic_ site:gentoo.org'

AFAIR, there were both at least one news item and tons of
mails/forum-posts about this issue with 'std::__cxx11::basic.*string'
stuff. It's that C++ ABI change for all that string related stuff. It
all basically boils down to just recompile all your C++ libs using
some form of (basic_)string (and all stuff depending on those) using
the new cxx11 ABI. ISTR that was rather well communicated in the news
items and on this ML. And there's stuff on the wiki, e.g.:
https://wiki.gentoo.org/wiki/Upgrading_GCC

ISTR there's more specific stuff, but that's the gist of it. Rebuild
what depends on libstdc++. IIRC:

$ revdep-rebuild -v -p --library  /usr/lib/libstdc++.so.5

(change /usr/lib/ to whatever matches your platform and don't forget
/usr/lib32 if you do multilib ;)

>Also, might it be related to gcc version?  I'm currently using 10.2.0-r5
>~amd64.

Nah. It's libstdc++ ;)

HTH,
-dnh

-- 
The only languages that can comfortably be written with the repertoire of
US-ASCII happen to be Latin, Swahili, Hawaiian and American English without
most typographic frills. It is rumoured that there are more languages in the
world. -- Roman Czyborra



Re: [gentoo-user] forcing Gentoo to accept simple password

2021-02-07 Thread David Haller
Hello,

On Sat, 06 Feb 2021, the...@sys-concept.com wrote:
>What changing one need to make to force gentoo log-in to accept
>simple password. The system is not a high security risk so I have no
>need for a sophisticated password.

>I think it has to do something with file: /etc/pam.d/system-auth
[..]
>passwordrequiredpam_passwdqc.so 
>config=/etc/security/passwdqc.conf

Uninstall sys-auth/passwdqc... From it's manpage:


DESCRIPTION
 The pam_passwdqc module is a simple password strength checking
 module for PAM.


You need to remove the 'passwdqc' USE flag from sys-auth/pambase, else
it'll get pulled in again.

HTH,
-dnh

-- 
Linux is not a desktop OS for people whose VCRs are still
flashing "12:00". -- Paul Tomblin



Re: [gentoo-user] HOWTO: Freezing/unfreezing (groups of) processes

2021-02-05 Thread David Haller
Hello,

On Fri, 05 Feb 2021, Walter Dnes wrote:
>On Fri, Feb 05, 2021 at 06:55:12AM -0500, Rich Freeman wrote
>> On Fri, Feb 5, 2021 at 2:45 AM Walter Dnes  wrote:
>> >   So far, so good, but running "ps -ef | grep whatever" and then
>> > typing the kill -SIGSTOP/SIGCONT command on the correct pid is grunt
>> > work, subject to typos.

It's much easier to use the '-o' option of ps, i.e.:

$ ps -eo pid,cmd

That gives you a much easier format to work with. There's a lot more
fields to use, e.g. tname or tty, args or cmd, comm, and many more see
'man ps' under "STANDARD FORMAT SPECIFIERS".

>  My reading of the "killall" man page is that it works on command
>names.  For my script, "pstop palemoon" stops all instances of Pale
>Moon.  But my script greps the entire line, so "pstop slashdot" will
>stop the process...
>
>/home/waltdnes/pm/palemoon/palemoon -new-instance -p slasdot
>
>  Does "killall" have that ability to stop a process based on any
>parameters in the command line?

The following script does:

 ~/bin/pstop && ln -s pstop ~/bin/pcont 
#!/usr/bin/gawk -f
BEGINFILE { if( FILENAME != "" ) { exit(0); } }
BEGIN {
### determine if were run as pstop or pcont
cmdlinefile = "/proc/" PROCINFO["pid"] "/cmdline" ;
getline cmdline < cmdlinefile;
n = split(cmdline, argv, "\0");
IAM=argv[3];
if( IAM ~ /pstop$/) { SIG="STOP"; } else { SIG="CONT"; };

### now to work ...
printf("%s-ing pids: ", SIG); 
bcmd = sprintf("kill -%s ", SIG);
pscmd = "ps -eo pid,cmd";

# IGNORECASE=1 ### uncomment for case insensitive matching
while ( pscmd | getline ) {
if( $1 != PROCINFO["pid"] ) { ### ignore ourself
p = $1; $1 = ""; ### save pid to p; prune pid from $0
for(i=1; i < (ARGC); i++) {
if( $0 ~ ARGV[i] ) {
printf("%s ", p);
cmd = bcmd p;
system(cmd);
}
}
}
}
}
END { printf("\n"); }


Arguments can be any number of (quoted where neccessary) regular
expressions described under 'Regular Expressions' in 'man gawk'
(basically Extended POSIX REs as in egrep, see 'man 7 regex').

Example use:

$ pstop palemoon firefox slashdot 'chrom(e|ium)'

(and the same for pcont)

HTH,
-dnh

-- 
Love your enemies: they'll go crazy trying to figure out what you're up
to. -- BSD fortune file



Re: [gentoo-user] package updated rss feed not working

2021-02-02 Thread David M. Fellows
>Lets try this again, 1st mail did not seem to get through?!
>

It got through to my part of tyhe world.

>
>On 2021-01-30 11:29, smurfd wrote:
>> hey
>>
>> since a while back the rss feed : 
>> https://packages.gentoo.org/packages/updated.atom
>>
>> is not working. today i looked into it, i get : 429 Too Many 
>> Requests   if i go to that page.
>>
>> just fyi
>>
>> br smurfd
>>
A visit to https://infra-status.gentoo.org
reveals the following information:

packages.gentoo.org Atom feeds broken.

packages.gentoo.org is having some performance problems. We believe the
root cause is Atom feeds causing expensive queries and we have disabled
the feeds. If you experience a 429 error, it is likely due to this service
change. We are working on resolving this; but it may be a few weeks.
Fri, 01 Jan 2021 00:00:00 GMT
No ETA for service recovery available.

DaveF



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

2021-01-17 Thread David Haller
Hello,

On Sun, 17 Jan 2021, the...@sys-concept.com wrote:
>On 1/17/21 2:04 PM, David Haller wrote:
>> 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
>> 
>
>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 

Yes. That's why I quoted the comment that the FQDN has to be first.

You can check with:

$ hostname
$ hostname -f

The former must give the short name ("syscon3"), the second one the FQDN
("syscon3.domain.tld").

HTH,
-dnh

-- 
>Wow, and everyone swears [Python]'s better than Perl. Wait, you don't say
>it's worse, never mind.  -- Satya
The axis on which Perl sits is rotated 90 degrees with respect to the
rest of language-goodness-space.-- Garrett Wollman



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

2021-01-17 Thread David Haller
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

-- 
Less is more or less more



Re: [gentoo-user] [OT] Differences between wget and browser file retrieval?

2021-01-14 Thread David Haller
Hello,

On Thu, 14 Jan 2021, Walter Dnes wrote:
>  I'm bored, so I do a regular daily report at the DSL Reports "CanChat"
>sub-forum, on the Covid-19 case counts for Ontario, using provincial
>data.  I download 2 files daily as source data.  One of them is a PDF
>file, which is run through "pdftotext" and then parsed by a bash script
>(don't ask).  Today, the command...
>
>  wget https://files.ontario.ca/moh-covid-19-report-en-2021-01-14.pdf
>
>...returns a zero-byte file.  *BUT*, sticking the URL into the URL bar
>of Pale Moon and Google Chrome (and I assume Firefox/etc) brings up the
>PDF file just fine.  Is "wget" being blocked?
[..]
>  I've tried setting --user-agent= with my browser's string as shown by
>https://www.whatismybrowser.com/detect/what-is-my-user-agent  but no
>luck.  Is there some way to get around this?  I have not updated this
>past week, so I don't think the problem is at my end.

I could download that file just fine just now[1]. Try running 'wget'
with the '-S' option. Oh and:

[..]
WARNING: cannot verify files.ontario.ca's certificate, issued by
[..]

If you sent stderr to /dev/null ...

So, try:

wget -S --no-check-certificate -U 'Mozilla/5.0 ...' \
https://files.ontario.ca/moh-covid-19-report-en-2021-01-14.pdf

BTW: you know that you can let date format that URL? e.g.:

wget -S --no-check-certificate -U 'Mozilla/5.0 ...' \
  "$(date '+https://files.ontario.ca/moh-covid-19-report-en-%Y-%m-%d.pdf')"

There just are no unescaped '%' allowed besides the format strings for
the date/time. So if an URL contains one, you need to escape those
with another '%', as in e.g.
$(date '+foo%%20bar-%Y-%m-%d.pdf')
^^ this fella

In your case, the URL is clean ;)

HTH,
-dnh

[1] $ TZ=America/Toronto date
Thu Jan 14 16:50:15 EST 2021

-- 
"Airplane travel is nature's way of making you look like your passport
photo." -- Al Gore



Re: [gentoo-user] ISO verification question.

2020-12-24 Thread David Haller
Hello,

On Thu, 24 Dec 2020, bobwxc wrote:
>With the cryptographic signature validated, next verify the checksum to make
>sure the downloaded ISO file is not corrupted. The.DIGESTS.ascfile contains
>multiple hashing algorithms, so one of the methods to validate the right one
>is to first look at the checksum registered in the.DIGESTS.ascfile. For
>instance, to get the SHA512 checksum:
>
>|user $||grep -A 1 -i sha512 install-amd64-minimal-20141204.iso.DIGESTS.asc|
[..]
>As both checksums match, the file is not corrupted and the installation can
>continue.

It's easier not to compare manually:

$ grep -A1 SHA512 install-iso.DIGESTS | sha512sum -c -

Analog for whirlpool:

$ grep -A1 WHIRLPOOL install-iso.DIGESTS | whirlpool-hash -c -

HTH,
-dnh

-- 
To resist the influence of others, knowledge of one's self is
most important.   -- Teal'C, Stargate SG-1, 9x14 - Stronghold



Re: [gentoo-user] sci-electronics/ngspice-27-r1 missing tcl

2020-12-22 Thread David M. Fellows
>Neil Bothwick:
>> On Wed, 16 Dec 2020 18:30:47 +0100 (CET), k...@aspodata.se wrote:
>> 
>> > What can I do to make ./configure below use the suggested option ?
>> > 
>> > sci-electronics/ngspice-27-r1's build log contains:
>> >
>> >  checking for tclConfig.sh... 
>> >  can't find Tcl configuration script "tclConfig.sh"
>> >  Should you add --with-tcl=/usr/lib64 to ./configure
>> > arguments?
>> 
>> Try EXTRA_ECONF="--with-tcl=/usr/lib64" emerge -1a ngspice
>
> According to:
>https://wiki.gentoo.org/wiki/Project:AMD64/Multilib_layout
>eselect news read 34
>
> gentoo now uses /usr/lib64. Tcl installs the program in /usr/lib64:
># grep /usr/lib64/tclConfig.sh  /var/db/pkg/dev-lang/tcl-8.6.8/CONTENTS
>obj /usr/lib64/tclConfig.sh 854158d4603ecea0e98975dac780e04f 1581626600
>
> so if ngspice doesn't find tclConfig.sh, shouldn't that be considered 
> a bug ?

Don't know. Is there a reason why ngspice-27-r1 in particular is required?

I added
 =sci-visualization/xgraph-12.1-r4 xgraph
to package.license
 sci-electronics/ngspice ~amd64
 sci-visualization/xgraph ~amd64
to package.accept_keywords
and
 sci-electronics/ngspice tcl
to package.use

And
emerge -1 ngspice
built without any complaints. (And included lots of tcl stuff.)
It runs, but I have no data to test it with, nor inclination to try to
learn to use it.

DaveF

>
>Regards,
>/Karl Hammar
>
>



Re: [gentoo-user] Rearranging hard drives and data.

2020-12-19 Thread David Haller
Hello,

On Sat, 19 Dec 2020, antlists wrote:
>On 19/12/2020 18:49, David Haller wrote:
>> -dnh, the MoBo though is quite a fine piece with 8 SATA + 2 eSATA
>>  ports onboard:)  I'm gonna miss eSATA in newer HW:(  Hot-plug
>>  almost like USB but full SATA feature set and speed (e.g. SMART).
>
>Buy add-in sata cards. The ones I've been looking at are two-port cards, with
>two internal and two external (jumper-selected) connectors.

I already got one. Yes, I'd pitch MoBo w/many SATA vs. MoBo w/fewer
SATA plus AddIn, but PCI(e) slots are also limited and >=2 port cards
get expensive rather quick, say a card with >= 4 internal and
_extra_[0] 1-2 eSATA ... So, I'll rather have a MoBo with lots of SATA
+ addin than MoBo plus tons of addin cards...

My MoBo has the AMD 710 "Southbridge" with 6 int. SATA2/3G [1] ports,
a MV9128 with 2 int. SATA3/6G ports and a JMB362 with 2 ext. eSATA2/3G
ports. Try to find _anything_ even remotely resembling that (with any
SATA rev) ;) My guess is, with most MoBos you'd need two 4-port addin
cards even for that. And my MoBo was not even expensive, just ~80 EUR
in 04/2010. BTW: GA-770TA-UD3, hosting a AMD Athlon II X2 250 for then
~65 EUR :) Still running as champs :))

Again: find me a MoBo + Addin Card(s) Combo with: >= 9 internal SATA
ports, >=1 eSATA ports (dedicated, not switched with one of the
internal ones!). An IDE port would be a nice extra.

Were it not for gentoo and large stuff needing 6+ hours to compile,
the occasional reencoding of a video[3], and some fucking websites
which take ages to load (which was one reason for me to update 10
years ago from my then Athlon 500[2])... *ELIDED* those *ELIDED*
webdevs *ELIDED* - sideways - *ELIDED* that *ELIDED* *ELIDED* so
called webpages that gobble CPU as if there's no tomorrow! And
*ELIDED* I know, I built webpages that (besides larger pictures) load
snappy over a 4kB/56kBit/s modem in fractions of a second (no wonder,
being typically <0.5KB in size and no JS or other crud, there's a lot
you can fit in 1 KB :).

What was I saying, ahh, yes: ... I'd not even consider upgrading.

Well, more RAM would be nice by now, what with those *ELIDED* browsers
and *ELIDED* Java-Apps gobbling RAM as if there's TiBs of it for
free... *ARG*&*()#@*{!@_)(@I*CONNECTION RESET BY BEER*

-dnh

[0] i.e. working in parallel to the internal ports

[1] SATA2 was still normal then

[2] yep, the original, slowest Athlon ever sold, sufficed for me for
many many years, along with an even older Matrox Mystique (the
original 150MHz RAMDAC but as the beefy 4MB SGRAM version)

[3] BTW: it's astonishing how inefficient some streamed videos are
encoded, just today I crunched down one from 2.9GiB to about
639MiB. Albeit, I scaled down from 720p to 576p, but do the maths.

I regularly get to <50% of the size of the original without any
scaling, and all without any visible loss (x264 with crf=23:nr=750,
that codec-internal noise reduction alone can get you ~10% less
size ;) Well, it's what you get when you don't know about codecs
or you just run HW-encoders at defaults, I guess...

-- 
"That time in Seattle... was a nightmare.  I came out of it dead broke,
without a house, without anything except a girlfriend and a knowledge of
UNIX."  "Well, that's something," Avi says.  "Normally those two are
mutually exclusive."--Neal Stephenson, "Cryptonomicon"



Re: [gentoo-user] Rearranging hard drives and data.

2020-12-19 Thread David Haller
Hello,

On Sat, 19 Dec 2020, antlists wrote:
>On 19/12/2020 16:51, David Haller wrote:
>> Beware: I use a lot of disks and I tried running it with then 8 (or 9?
>> or 10? Lots!) HDDs with a 500W (or even 550W) PSU. System wouldn't
>> reliably boot up. Replaced with a 650W PSU and it's running since
>> (which is, those 10+ years now:)  Currently I have a SSD and 7 HDDs
>> (and 2 DVD[1]);)
>
>Bear in mind I'm talking about a computer the size of a washing machines, and
>an 800MB drive the size of a tower case...
>
>Back in the old days, you could configure the system so the drive would wait
>a certain number of seconds after power-on before actually powering up.
>
>So you'd work out what power you had spare above normal operation to spin up
>your drives, and avoid overloading the system.
>
>That useful feature has probably been lost in the name of progress... :-)

Called "staggered spinup" (or something alike).

In servers, it's still there, but not in run-of-the-mill desktops like
mine... Sadly so in my case, I could and would have used that...

-dnh, the MoBo though is quite a fine piece with 8 SATA + 2 eSATA
ports onboard :) I'm gonna miss eSATA in newer HW :( Hot-plug
almost like USB but full SATA feature set and speed (e.g. SMART).

-- 
It takes a million monkeys at typewriters to write Shakespeare, but
only a dozen monkeys at computers to run Network Solutions.
   -- Patrick Delahanty



Re: [gentoo-user] Rearranging hard drives and data.

2020-12-19 Thread David Haller
Hello,

On Sat, 19 Dec 2020, Dale wrote:
>A friend donated a older PC to me the other day.  It's a fairly nice rig
>despite its age.  Some specs for those interested but may not matter in
>the end.  TL;DR, skip to next paragraph.  It's a Dell Inspiron 546.  AMD
>9750 quad core CPU running at 2.4GHz.  It currently has 4GBs but

Meh. I'm running an Athlon II X2 250, 65W TDP, i.e. same CPU family
(0x10/16), running at 3.0 GHz with 4GiB DDR3 RAM ... After (again)
over 10 years, I'd like to upgrade again a bit, Ryzen 5000 4-8core
w/32GiB RAM like ;)

[..]
>The power supply was replaced a few years ago.  I may buy a new one that
>is a little bit larger. It has a 300 watt now, a 400 watt would give
>some breathing room for start up power for the extra drives.  I haven't
>measured the wattage it pulls now.  May do that later. 

Beware: I use a lot of disks and I tried running it with then 8 (or 9? 
or 10? Lots!) HDDs with a 500W (or even 550W) PSU. System wouldn't
reliably boot up. Replaced with a 650W PSU and it's running since
(which is, those 10+ years now :) Currently I have a SSD and 7 HDDs
(and 2 DVD[1]) ;)

Typical spinning rust drives are (or at least were) specced to take up
to about 30W while spinning up, ~10-12W-ish on access, ~5-7W-ish while
idle. For me, that then was ~240-300W alone for all the drives at
power-on. Too much obviously for the 500W PSU along with all the rest
of the box also starting ;)

I've got a nice Seasonic PSU from Corsair (TX650 v2) (the v1 was some
other stuff), only drawback is that it has gotten a bit clogged up
with dust and gotten loud and there's no easy way to clean it out (at
least without taking it apart) *sigh*...

>I'm thinking of making a storage system out of it.  I think it is
>referred to as a NFS.

Nope. NFS is "Network File System". You mean "NAS" = "Network Attached
Storage" ;)

>It should be plenty fast enough to move data around.  Only downside,
>not many spaces for hard drives.

Also, that Phenom X6 w/ 125W TDP is plenty powerhungry, even at idle
(ISTR 50W-ish, while modern stuff can take only 20-10W for the system,
aside from the HDDs in both cases).

>I see only two spaces for hard drives with one already taken.  There
>is a open area that I could add a drive cage, I think.  May can fit
>two or three hard drives in that.  There's also a 5 1/4 space too. 
>Another downside tho, I'm thinking of going to SAS drives.  If I can
>afford that, it will be a more dependable setup.  Of course, that
>means I have to add card(s) for the controller(s).  It doesn't have a
>lot of expansion slots but may be enough. Mobo is only SATA.
>
>Another option, find another case.  If I recall correctly tho, some
>puter makers don't use standard layouts for the mobo screw holes. 
>Anyone know if Dell is a standard ATX or some other screw hole pattern? 

No idea, but I'd go for a different case. And probably, depending on
budget vs. power-consumption (cost) for a different CPU+MoBo+RAM,
something like a AMD Ryzen 3 3200G or maybe a x86 Celeron/Pentium/i3...

HTH,
-dnh

[1] too lazy even to unplug the older one

-- 
Actually, NT is more like LSD with all the good effects filtered out.
 -- Andrew Maddox



Re: [gentoo-user] syslog-ng: filter plugin NOT not found ????

2020-12-16 Thread David Haller
Hello,

On Wed, 16 Dec 2020, Todd Goodman wrote:
>I think you need a semi-colon inside and after the right curly brace ('}')
>
>You right braces are parentheses and not right curly braces too (maybe a cut
>and paste issue?)
>
>FWIW, the following is what I use to separate my mail logs out and it works:
>
>destination messages { file("/var/log/messages"); };
>destination maillog { file("/var/log/maillog"); };
>
>filter f_mail { facility(mail); };
>filter f_messages { not facility(mail); };
>
>log { source(src); filter(f_mail); destination(maillog); };
>log { source(src); filter(f_messages); destination(messages); };
>
>On 12/15/2020 10:44 PM, Dan Egli wrote:
>> Help me understand this, please?  I have ISC dhcpd configured to log to
>> syslog.local7 (since I don't see an option to force it into it's own log
>> file). So I went into my syslog-ng file and created two filters, just
>> like on the example page of syslog-ng.com:
>> 
>> filter dhcpmsgs { facility(23) );
>> filter non_dhcp { NOT filter(dhcpmsgs) )

Also, where's that '23' coming from? Shouldn't that be

filter dhcpmsgs { facility(local7); };

HTH,
-dnh

-- 
printk(KERN_DEBUG "%s: Flex. T...\n", DRV_NAME);
linux-2.6.6/drivers/net/wan/dscc4.c



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

2020-12-13 Thread David Haller
Hello,

On Sun, 13 Dec 2020, the...@sys-concept.com wrote:
>dmesg |grep nvidia
> nvidia: loading out-of-tree module taints kernel.
> nvidia: module license 'NVIDIA' taints kernel.
 ^^^
[..]
>Why this error message?  

There is no error.
See 

-dnh

-- 
"The command 'man man' works fine, but 'man woman' produces:
 No manual entry for woman."-- Constantinos Maltezos



Re: [gentoo-user] cannot emerge chromium 89.0.4343.0

2020-12-09 Thread David Haller
Hello,

On Wed, 09 Dec 2020, John Covici wrote:
>On Wed, 09 Dec 2020 11:20:06 -0500, Mark Knecht wrote:
[..]
>FAILED: obj/v8/v8_base_without_compiler/intl-objects.o 
[..] -O2 -pipe -c ../../v8/src/objects/intl-objects.cc -o 
obj/v8/v8_base_without_compiler/intl-objects.o
>../../v8/src/objects/intl-objects.cc:52:28: error: static assertion failed: v8 
>is required to build with ICU 68 and up
>   52 | V8_MINIMUM_ICU_VERSION <= U_ICU_VERSION_MAJOR_NUM,

The wording though is, ahm, backwards. You need dev-libs/icu >= 68.0,
which is still unstable. Or set '-system-icu' as useflag.

HTH,
-dnh

-- 
printk(KERN_DEBUG "adintr: Why?\n");
linux-2.6.19/sound/oss/ad1848.c



Re: [gentoo-user] Anyone using extract_url with mutt?

2020-11-26 Thread David Haller
Hello,

On Thu, 26 Nov 2020, Walter Dnes wrote:
>  urlview has served me faithfully for many years in conjunction with
>mutt.  In a recent install, I find it's no longer available (python
>2.7?).

Stated reason was "upstream dead" (which seems the case since 2013,
with issues on github[1])...

>extract_url is touted as a drop-in replacement for urlview.  I
>emerged it and did some RTFM, ending up more confused than ever.  I want
>to display urls on a simple menu, just like urlview, select, and pass
>the selected url to my palemoon email profile...
>
>/home/waltdnes/pm/palemoon/palemoon -new-instance -p email

I don't know urlview, but FWIW, I use the mouse or cursor in e.g. 
emacs to select the URL (or just a part) as usual and then
Ctrl+"8th-Button" (actually lower thumb button, use xev / evtest to
find the right button number) to call the browser, done via xbindkeys:

# call browser with selected text as URL
"/home/dh/bin/browser $(xsel -o)"
Control + b:8

You can use pretty much any unused key-combination with or without the
mouse as trigger.

(that ~/bin/browser is just my little wrapper-shellscript adding e.g. 
a profile option, a '-new-tab' if the browser is already running or
calling another unliked, but needed for some specific pages, browser...)

Ah: x11-misc/xbindkeys x11-misc/xsel

HTH,
-dnh

[1] https://github.com/sigpipe/urlview/issues

-- 
Door: Something a cat wants to be on the other side of



Re: [gentoo-user] Browser have problems with illegal characters

2020-11-26 Thread David Haller
Hello,

On Wed, 25 Nov 2020, Jack wrote:
[..]
>Found it.  It is "middle dot" U+00B7 which in UTF-8 two bytes of octal 302
>267 or hex C2 8E.
>
>Also, now that I look at the page source,  I see "Introduction to
>Metaprogramming in Nim  HookRace Blog" so I do wonder if it
>is something funny with the character coding with iso88591.  In fact, it does
>look like that unicode point it NOT available in iso88591.  I wonder what the
>proper fall-back should be in such a case.

It is available, but it seems the locale is not used for encoding
filenames.

 man 7 latin1 
Oct   Dec   Hex   Char   Description
267   183   B7 · MIDDLE DOT


-dnh

-- 
>> This needs quotes:
>> use lib "/path/to/perl/modules";
> Single or double quotes?
Yes. -- Tad McClellan in comp.lang.perl.misc



Re: [gentoo-user] youtube-dl and the conf file.

2020-10-29 Thread David Haller
Hello,

On Wed, 28 Oct 2020, Dale wrote:
>David Haller wrote:
>> Please run again with -v, such as:
>>
>> $ youtube-dl -v https://www.youtube.com/watch?v=byTOZIvyXPo
>>
>> and then check at the top for the lines:
>>
>> [debug] System config: []
>> [debug] User config: [ .. THIS IS WHAT I'M INTERESTED IN .. ]
>> [debug] Custom config: []
>> [debug] Command-line args: [u'-v', 
>> u'https://www.youtube.com/watch?v=IzPxJK4drcc']
>> [..]
>> [debug] youtube-dl version 2020.09.20
[..]
>dale@fireball ~/Desktop $ youtube-dl -v
>https://www.youtube.com/watch?v=C0DPdy98e4c
>[debug] System config: []
>[debug] User config: ['ytdl-format=bestvideo[height<=?1280]+bestaudio/best']
>[debug] Custom config: []
>[debug] Command-line args: ['-i', '-v',
>'https://www.youtube.com/watch?v=C0DPdy98e4c']
>[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
>[debug] youtube-dl version 2020.06.16.1

You seem to have a stray config file ;) I checked with the exact same
version as you and your config file and it gives me:

$ youtube-dl --config-location /tmp/test-ytconf
[..]
[debug] User config: []
[debug] Custom config: ['--format', 
'bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][width<=?1280]+bestaudio/best',
 '--merge-output-format', 'mp4']
[debug] youtube-dl version 2020.06.16.1
[debug] Python version 3.8.6 (CPython) ...

(I use the seperate config to not overwrite mine, but I tested it with
my config and it also gives me:

[debug] User config: [ ...  '--format', 'best[height ...]

So, you seem to have some user config file which contains:

ytdl-format=bestvideo[height<=?1280]+bestaudio/best

instead of '--format[space]some_specs'. To find it the easiest, try:

$ strace -eopen youtube-dl SOMEURL 2>&1 | grep /home/

Here, it shows just ~/.config/youtube-dl/config to be used.

HTH,
-dnh

-- 
 A funny symbol that I can't read has just been input.
 Continue, and I'll forget that it ever happened.  -- a TeX message



Re: [gentoo-user] youtube-dl and the conf file.

2020-10-28 Thread David Haller
Hello,

On Tue, 27 Oct 2020, Dale wrote:
[..]
>ERROR: 'ytdl-format=bestvideo[height<=?1280]+bestaudio/best' is not a
>valid URL. Set --default-search "ytsearch" (or run  youtube-dl
>"ytsearch:ytdl-format=bestvideo[height<=?1280]+bestaudio/best" ) to
>search YouTube
>[youtube] byTOZIvyXPo: Downloading webpage

Please run again with -v, such as:

$ youtube-dl -v https://www.youtube.com/watch?v=byTOZIvyXPo

and then check at the top for the lines:

[debug] System config: []
[debug] User config: [ .. THIS IS WHAT I'M INTERESTED IN .. ]
[debug] Custom config: []
[debug] Command-line args: [u'-v', 
u'https://www.youtube.com/watch?v=IzPxJK4drcc']
[..]
[debug] youtube-dl version 2020.09.20

and mail them here ... One should see there how yt-dl parses your
config and hopefully what goes wrong with it.

HTH,
-dnh

-- 
Thou shalt not droppeth thy leatherman onto live motherboards.
-- Andreas "Buzh" Skau



Re: [gentoo-user] youtube-dl and the conf file.

2020-10-27 Thread David Haller
Hello,

On Tue, 27 Oct 2020, Dale wrote:
>This is what the conf file looks like now.  I took out the format
>option.  Add it back later when this current issue is settled. 
>
>--format
>'bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][width<=?1280]+bestaudio/best'

Is that one or two lines? It think it should be one! I.e.:

--format foo

Try:

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

Or, I think it's equivalent:

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

HTH,
-dnh

-- 
Linux is not a desktop OS for people whose VCRs are still
flashing "12:00". -- Paul Tomblin



Re: [gentoo-user] No sound. Please, help!

2020-10-18 Thread David Haller
Hello,

On Sun, 18 Oct 2020, Dale wrote:
>gevisz wrote:
>> Thank you for your help. I turned on the computer, changed options snd
>> cards_limit to 2 and ran aplay /usr/share/sound/alsa/*.wav (I have a
>> different named wav files). There was a sound.
[..]
>> reboot I have a sound and on another I have no sound. Any thoughts?
>
>Try adding alsasound to the default runlevel.  And then:
>
>/etc/init.d/alsasound start
>
>and then
>
>/etc/init.d/alsasound save

One should run that '/etc/init.d/alsasound save' once when sound
works, so that later save on stop and restore on reboot work ;)

BTW: I liked the SUSE way of symlinking init-scripts to /usr/sbin/rc*,
e.g. /usr/sbin/rcalsasound -> /etc/init.d/alsasound
I now do that (to /usr/local/sbin/rc*) for stuff that I don't want in
a runlevel, but still start/stop occasionally ;)

>P. S.  I found a new sledge hammer.  Is this being sent as plain text
>only?  No HTML at all? 

Yes.

-dnh

-- 
All technology is suspect, and must be considered potentially dangerous.
  -- BUTLERIAN JIHAD, Handbook for Our Grandchildren



Re: [gentoo-user] No sound. Please, help!

2020-10-18 Thread David Haller
Hello,

On Sun, 18 Oct 2020, gevisz wrote:
>??, 18 ???. 2020 ?. ? 09:09, David Haller :
[..]
>> Try this in /etc/modprobe.d/alsa.conf (or some file there):
>>
>> 
>> alias char-major-116 snd
>> alias snd-card-0 snd-hda-intel
>> options snd-hda-intel model=auto
>> 
[..]
>So, after changes you suggested, it looks as follows:
># Alsa kernel modules' configuration file.
>
># ALSA portion
>alias char-major-116 snd
># OSS/Free portion
>alias char-major-14 soundcore
>
>##
>## IMPORTANT:
>## You need to customise this section for your specific sound card(s)
>## and then run `update-modules' command.
>## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
>##
>##  ALSA portion
>## alias snd-card-0 snd-interwave
>alias snd-card-0 snd-hda-intel
>## alias snd-card-1 snd-ens1371
>##  OSS/Free portion
>## alias sound-slot-0 snd-card-0
>## alias sound-slot-1 snd-card-1
>##
>
># OSS/Free portion - card #1
>alias sound-service-0-0 snd-mixer-oss
>alias sound-service-0-1 snd-seq-oss
>alias sound-service-0-3 snd-pcm-oss
>alias sound-service-0-8 snd-seq-oss
>alias sound-service-0-12 snd-pcm-oss
>##  OSS/Free portion - card #2
>## alias sound-service-1-0 snd-mixer-oss
>## alias sound-service-1-3 snd-pcm-oss
>## alias sound-service-1-12 snd-pcm-oss
>
>alias /dev/mixer snd-mixer-oss
>alias /dev/dsp snd-pcm-oss
>alias /dev/midi snd-seq-oss
>
># Set this to the correct number of cards.
>options snd-hda-intel model=auto
>options snd cards_limit=1

Looks good, but snd-hda-codec-hdmi might still get loaded, so try with:

options snd cards_limit=2

(or even more)...

>Tried to run 'update-modules' command but got
>bash: update-modules: command not found
>message.

Should not be necessary.

[still no sound after reboot in FF/Skype]

Try:

aplay /usr/share/sounds/alsa/test.wav

before tackling FF etc. And check alsamixer etc. for it might have
wrong options set as the device might have been moved..

HTH,
-dnh

-- 
Two atoms are walking along. Suddenly, one stops. The other says,
"What's wrong?" "I've lost an electron." "Are you sure?" "I'm positive!"



Re: [gentoo-user] No sound. Please, help!

2020-10-18 Thread David Haller
Hello,

On Sat, 17 Oct 2020, gevisz wrote:
>??, 17 ???. 2020 ?. ? 14:57, David Haller :
[..]
>Here is the comparative table for your kernel parameters vs those of
>gentoo-kernel 5.4.64 and my last tried configuration in
>gentoo-sources-4.19.86:
>CONFIG | 4.14 | 5.4.64 | 4.19.86
>SND  | y  | m| y
>SND_TIMER   | y  | m| y
>SND_PCM  | y  | m| y
>SND_HWDEP | m | m| y
>SND_DRIVERS   | y  | y | y
>SND_PCI| y  | y | y
>SND_HDA  | m | m| y
>SND_HDA_INTEL| m| m| y
>SND_HDA_HWDEP | y | y | n
>SND_HDA_RECONFIG | y| y | y
>SND_HDA_CODEC_REALTEK | m | m | y
>SND_HDA_GENERIC   | m | m | y
>SND_HDA_CORE| m | m | y
>SND_SPI | y | n | absent

Looks ok.

[..]
>So, it seems that at least the configuration for kernel 5.4.64 should
>work. However, it does not.

Try this in /etc/modprobe.d/alsa.conf (or some file there):


alias char-major-116 snd
alias snd-card-0 snd-hda-intel
options snd-hda-intel model=auto


HTH,
-dnh

-- 
"Getting a penguin to pee on demand is _messy_."  -- Linus Torvalds



Re: [gentoo-user] No sound. Please, help!

2020-10-17 Thread David Haller
Hello,

On Sat, 17 Oct 2020, gevisz wrote:
[.. reordering ..]
>And finally: installed on the same computer legacy operating system
>never had any sound problems.

Ah, oh, so the HW works and you got the speaker connector in the
hole. That's good![1] ;)

>At different times during the last one and a half years, I tried to
>make sound work on my new Gentoo install on a computer with Gigabyte
>GA-MA790FXT-UD5P motherboard and MSI ATI Radeon R4770 graphic card.

Ok, that board should be rather closeish to mine (GA-MA770TA-UD3.
Might use a different soundchip though, but those should work
automatically.

[..]
>lspci | grep "Audio"
>00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00
>Azalia (Intel HDA)
>01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RV710/730
>HDMI Audio [Radeon HD 4000 series]

Simliar here, but it'd be interesting, what actual device is that
onboard sound, here it's:

$ /sbin/lspci -nn | grep Audio
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 
Azalia (Intel HDA) [1002:4383]
[plus the HDMI of the video card]

According to the MoBo manual, it's a Realtek ALC888 codec.

>My current kernel configuration is exactly the same as in the
>gentoo-kernel-5.4.64 package as I have not changed anything there.

This works here:

CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=m
CONFIG_SND_DRIVERS=y
CONFIG_SND_PCI=y

CONFIG_SND_HDA=m
CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_CODEC_REALTEK=m
CONFIG_SND_HDA_GENERIC=m
CONFIG_SND_HDA_CORE=m
CONFIG_SND_SPI=y

Not sure if CONFIG_SND_SPI and CONFIG_SND_HDA_GENERIC are needed, but
the other ones seem crucial.

Oh, the above is for a 4.14 kernel, but has been the same for a looong
time now.

HTH,
-dnh

[1] happend to me a few days ago when I, after a long time again, un-
and then wrongly replugged the speaker on my MoBo ;)

-- 
WoKo ist so etwas, wie eine seltsame Schleife. Wenn zwei von ihnen zusammen-
kommen, erklären sie sich gegenseitig für nichtexistent und löschen sich auf
diese Weise aus. Zum Schluß wird einer übrigbleiben. Und den können wir dann
ganz leicht am nächsten Baum aufknüpfen...  [Daniel Reutter in dag°]



Re: [gentoo-user] [OT] .fetchmailrc syntax error

2020-10-15 Thread David Haller
Hello,

On Wed, 14 Oct 2020, Walter Dnes wrote:
>[i3][waltdnes][~] fetchmail 
>fetchmail:/home/waltdnes/.fetchmailrc:1: syntax error at option
>
>  Anybody have this working?  The following was pulled by getmail as
>"SimpleSSLretriever" on port 995.  Here's what I'm trying that's
>failing...
>
>poll mail.##.com protocol pop3 with option sslproto '':
 ^^ that should be
 'options'.

And you _should_ use TLS, IMHO! E.g.: sslproto 'TLS1.3+'

See 'man fetchmail', search for '\-\-sslproto'.

HTH,
-dnh

-- 
/* When we have more time, we can teach the penguin to say 
 * "By your command" or "Activating turbo boost, Michael".
 */
linux-2.2.16/arch/sparc/prom/sun4prom.c



Re: [gentoo-user] emerge @world output unfamiliar. Am I updated?

2020-10-02 Thread David M. Fellows
>On 2020-10-02 10:45, n952162 wrote:
>> Have I successfully updated my system?
>>
>> I ran this command:
>>
>> emerge \
>>     -v \
>>     --verbose-conflicts \
>>     --deep \
>>     -update \
>>     --changed-use \
>>     --keep-going \
>>     --with-bdeps=y \
>>     --changed-deps \
>>     --backtrack=100 \
>>     @world
>>
>> and got tons of stuff that looks like spurious debugging/tracing info

Probably not.  And a good thing too.
Assuming the above is an accurate transcription of the command you used.

-update is definitely NOT the same as --update.

-update is equivalent to -u -p -d -a -t -e
so --update --pretend --debug --ask --tree --empty-tree
--debug, --tree produce voluminous output,
--empty-tree says rebuild everything.

Hope this helps.

DaveF





Re: [gentoo-user] Dolphin, CPU usage and process ID to which window.

2020-09-08 Thread David Haller
Hello,

On Mon, 07 Sep 2020, Dale wrote:
>Another question.  I use top to see what is using the CPU so much.  When
>it is Dolphin, I can't tell which window it is.  I sometimes have a few
[..]
>Is there a way to figure
>out which process goes with which window or running instance of
>Dolphin?  In top, it shows a ID number like this.
>
>16577 dale  20   0  986256 160680  79288 S   2.8   0.5  25:56.63
>/usr/bin/dolphin -session
>10c8caded100015521120210315890017_1597693134_23929
>
>Is there a way to know what window that ID belongs too? 

 switch_to_pid_win.sh 
#!/bin/sh
pid="$1"
window_id=$(wmctrl -p -l -x | awk -vPID="$pid" '$3 == PID { printf("%s", $1); 
}')
wmctrl -i -a "$window_id"


$ switch_to_pid_win.sh PID_OF_OFFENDING_PROCESS

e.g.

$ switch_to_pid_win.sh 16577

HTH,
-dnh

-- 
panic("esp_handle: current_SC == penguin within interrupt!");
linux-2.2.16/drivers/scsi/esp.c



Re: [gentoo-user] Python 2.7 removal : problem with Firefox + Spidermonkey

2020-08-02 Thread David Haller
Hello,

On Sat, 01 Aug 2020, james wrote:
>On 8/1/20 7:04 PM, David Haller wrote:
>> On Sat, 01 Aug 2020, Walter Dnes wrote:
>> [..]
>> >   So a "palemoon-bin" ebuild is possible.
>> 
>> There's already one in the palemoon overlay.
>
>This is what you are referring to?
>
>www-client/palemoon-bin [2]
>Available versions:  28.11.0^ms {startup-notification}
> Homepage:https://www.palemoon.org/
>
>[2] "palemoon" /var/lib/layman/palemoon

If your palemoon is the one "in" layman and refers to

sync-uri = https://github.com/deu/palemoon-overlay.git

then yes. 

-dnh

-- 
   "Now, what was I doing before I so rudely interrupted myself?" 



Re: [gentoo-user] Python 2.7 removal : problem with Firefox + Spidermonkey

2020-08-01 Thread David Haller
Hello,

On Sat, 01 Aug 2020, Walter Dnes wrote:
[..]
>  So a "palemoon-bin" ebuild is possible.

There's already one in the palemoon overlay.

-dnh

-- 
"If Pacman had affected us as kids we'd be running around in dark rooms,
 munching pills and listening to repetitive music."  -- Marcus Brigstocke



Re: [gentoo-user] Strange output when restarting network. Long term issue.

2020-07-23 Thread David Haller
Hello,

On Thu, 23 Jul 2020, Ashley Dixon wrote:
[..]
>[super] root@ad-gentoo-main / # etc/init.d/net.eno1 restart
[..]
>forked to background, child pid 14536
 
[..]

It's just output from backgrounded processes. Just ignore it or enter
Ctrl-C to get a fresh prompt. Using enter is not recommended.

Compare running:

{ echo "start"; sleep 2; echo "done" ; } &

HTH,
-dnh

-- 
My word processor was written by Stanford Professor Donald Knuth.  Who
wrote yours?



Re: [gentoo-user] Simple replacement for "getmail"?

2020-07-22 Thread David M. Fellows
>On Wed, 22 Jul 2020 01:02:43 -0400, Walter Dnes wrote:
>
>>   Would "fetchmail" work as a drop-in replacement for getmail here?  Are
>> there any better, simpler solutions?
>
>I switched to getmail years ago because of frustrations with fetchmail.
>At the moment I have getmail in my overlay and unmasked so I'm still
>using it, but a comparable alternative would be welcome.

getmail6 is a fork of getmail-5.14. The project is on github
https://github.com/getmail6

It is early days but it is currently working for me fetching from POP3,
POP3 with SSL, and IMAP with ssl.

My description of what I did to get it into my overlay is shown at
https://github.com/getmail6/getmail6/issues/7#issuecomment-661534001

The instructions in the README say how to install it in a directory of
your choice.

DaveF
>
>
>-- 
>Neil Bothwick
>
>The considered application of terror is also a form of communication.
>
>>> application/pgp-signature attachment



Re: [gentoo-user] binary packages: how to ...

2020-07-15 Thread David Haller
Hello,

On Wed, 15 Jul 2020, Matt Connell (Gmail) wrote:
>It seems that in order to un-rar something in a fully free-software-
>compatible way, I believe options are limited to using a programming
>language library.  dev-python/rarfile is available under the ISC
>license, which is listed as GPL compatible.

 dev-python/rarfile/rarfile-3.1.ebuild 
RDEPEND="compressed? ( || ( app-arch/unrar app-arch/rar ) )"


-dnh

-- 
Microsoft DNS service terminates abnormally when it recieves a response
to a DNS query that was never made.  Fix Information: Run your DNS
service on a different platform.-- bugtraq



Re: [gentoo-user] arpwatch changed syntax?

2020-07-01 Thread David M. Fellows
>hi.
>
>
>background: ---
>
>previously, i used to run it by this:
>
>> arpwatch -i enp7s0 -m cave...@domain.com -s /usr/sbin/sendmail
>
>but now, after some update, apparently this doesn't work any more.
>
>what seems to have changed is:
>
>* "-m" is replaced by "-w" or "-W". * "-s" doesn't specify sendmail
>path, but is rather only a flag to suppress "reports sent by email".
>
>if i update the command into:
>
>> arpwatch -i enp7s0 -w cave...@domain.com

No answers to your questions below, but you could try

  PATH=/usr/sbin:$PATH  arpwatch -i enp7s0 -w cave...@domain.com

and see if that solves your problem.

DaveF
>
>then, it runs normally, but, it fails to send emails, with this error:
>
>> execl: sendmail: No such file or directory
>
>`whereis sendmail`:
>
>> sendmail: /usr/sbin/sendmail /usr/lib/sendmail /usr/lib64/sendmail
>/usr/share/man/man1/sendmail.1.bz2
>
>
>questions: --
>
>Q1: what happened that caused this syntax change? e.g. is it an update
>from upstream? or is it a totally new app written by other devs? or am i
>hallucinating (pretty sure it used to work tho)?
>
>Q2: is there any better tool to monitor arps and to email me when
>interesting things happen?
>
>thanks a lot for your time.
>
>rgrds, cm.
>
>



Re: [gentoo-user] Testing a used hard drive to make SURE it is good.

2020-06-22 Thread David Haller
Hello,

On Mon, 22 Jun 2020, Dale wrote:
>David Haller wrote:
>> On Thu, 18 Jun 2020, Dale wrote:
>>> David Haller wrote:
[..]
>>>> ./ones | dd of=/dev/null bs=8M count=1000 iflag=fullblock
>> [..]
>>> I got it to compile, at least it created a file named ones anyway.  What
>>> I'm unclear about, where is the if= for dd in the command?  All the
>>> commands I've seen before has a if= and a of=.  The if for input and of
>>> for output or target.
>>  man 1 dd 
>>if=FILE
>>   read from FILE instead of stdin
>> [..]
>>of=FILE
>>   write to FILE instead of stdout
>> 
>>
>> note the stuff after 'instead' ;)
>
>So it is piped in with the | thingy?  Got it. 

Exactly. Hm. Maybe 'dev_one' might be a better name for the program...
Or something ;)

[..]
>Thanks much.

You're welcome.

-dnh

-- 
/* When we have more time, we can teach the penguin to say 
 * "By your command" or "Activating turbo boost, Michael".
 */
linux-2.2.16/arch/sparc/prom/sun4prom.c



Re: [gentoo-user] Testing a used hard drive to make SURE it is good.

2020-06-22 Thread David Haller
Hello,

On Thu, 18 Jun 2020, Dale wrote:
>David Haller wrote:
[..]
>> Compile with:
>> gcc $CFLAGS -o ones ones.c
>> or
>> gcc $(portageq envvar CFLAGS) -o ones ones.c
>>
>> and use/test e.g. like
>>
>> ./ones | dd of=/dev/null bs=8M count=1000 iflag=fullblock
[..]
>I got it to compile, at least it created a file named ones anyway.  What
>I'm unclear about, where is the if= for dd in the command?  All the
>commands I've seen before has a if= and a of=.  The if for input and of
>for output or target.

 man 1 dd 
   if=FILE
  read from FILE instead of stdin
[..]
   of=FILE
  write to FILE instead of stdout


note the stuff after 'instead' ;)

>I'm assuming that if I want to target sdb, I'd
>replace null with /dev/sdb. 

Yes.

>As I've posted before, even my scripting skills are minimal.  Surprised
>I got it to compile even.

Well, you could copy & paste and on gentoo, there is bound to be a
'gcc' ;)

>something.  I placed all this in the /root directory.  I'm assuming I
>can copy paste the commands above while in /root to make it work?

Yes. Or put 'ones' in /root/bin/ or even /usr/local/bin. Depending on
if you expect to use the program later on. But if it's just for this
once it's fine in /root/ alongside the sourcecode.

HTH,
-dnh

-- 
BUGS
   It is not yet possible to change operating system by writ­
   ing to /proc/sys/kernel/ostype. -- Linux sysctl(2) manpage



Re: [gentoo-user] old kernel on Gentoo

2020-06-17 Thread David Haller
Hello,

On Wed, 17 Jun 2020, Raffaele BELARDI wrote:
>I might need to build and run an old 3.x kernel on a Desktop PC for
>some very specific tests. Would Gentoo be a good solution? I see that
>currently gentoo-sources only includes 4.x and 5.x sources.

You might try sys-kernel/vanilla-sources-3.16.85.

-dnh

-- 
  I distinctly remember forgetting that. -Clara Barton



Re: [gentoo-user] Testing a used hard drive to make SURE it is good.

2020-06-17 Thread David Haller
Hello,

On Tue, 16 Jun 2020, Dale wrote:
[..]
>For the /dev/one, I found some which seems to work.  They listed further
>down.  I think my google search terms was poor.  Google doesn't have ESP
>for sure.  O_o
[..]
>dd if=<(yes $'\xFF' | tr -d "\n") of=

This is correct but _much_ slower than my program. I get about
1.1-1.2GB/s with that and with that 'yes' I get only about 47 MB/s...

>root@fireball / # cat /root/freq-commands | grep man
>print man pages to text file
>man  | col -b > /home/dale/Desktop/smartctl.txt
>print man pages to .pdf but has small text.
>man -t  > /home/dale/Desktop/smartctl.pdf

$ man -l -Tps -P-pa4 $(man -w smartctl ) | ps2pdf - smartctl.pdf

Use e.g. '-P-pletter' for letter paper size.

>It's amazing sometimes how wanting to do one thing, leads to learning
>how to do many other things, well, trying to learn how anyway.  LOL 

*g*

-dnh

-- 
I have described my half-hearted attempts at housekeeping as "the
minimual effort required to prevent the fungus from achieving
sentience."  -- Steve VanDevender



Re: [gentoo-user] Testing a used hard drive to make SURE it is good.

2020-06-15 Thread David Haller
Hello,

On Mon, 15 Jun 2020, Dale wrote:
[..]
>While I'm at it, when running dd, I have zero and random in /dev.  Where
>does a person obtain a one?  In other words, I can write all zeros, I
>can write all random but I can't write all ones since it isn't in /dev. 
>Does that even exist?  Can I create it myself somehow?  Can I download
>it or install it somehow?  I been curious about that for a good long
>while now.  I just never remember to ask. 

I've wondered that too. So I just hacked one up just now.

 ones.c 
#include 
#include 
#include 
static unsigned int buf[BUFSIZ];
int main(void) {
unsigned int i;
for(i = 0; i < BUFSIZ; i++) { buf[i] = (unsigned int)-1; }
while( write(STDOUT_FILENO, buf, sizeof(buf)) );
exit(0);
}


Compile with:
gcc $CFLAGS -o ones ones.c
or
gcc $(portageq envvar CFLAGS) -o ones ones.c

and use/test e.g. like

./ones | dd of=/dev/null bs=8M count=1000 iflag=fullblock

Here, it's about as fast as

cat /dev/zero | dd of=/dev/null bs=8M count=1000 iflag=fullblock

(but only about ~25% as fast as 
dd if=/dev/zero of=/dev/null bs=8M count=1000 iflag=fullblock
for whatever reason ever, but the implementation of /dev/zero is
non-trivial ...)

HTH,
-dnh

-- 
Computers make very fast, very accurate mistakes.



Re: [gentoo-user] [OT] splitting audio file at points of silence ?

2020-06-14 Thread David Haller
Hello,

On Sun, 14 Jun 2020, tu...@posteo.de wrote:
>I want to split an audio file containing crow calls at points
>where no crow call is. The "silence" in between is not exactly
>"silence" but some low level noise.
>
>Searching the internet for "split audio at silence" and similiar
>gives me this link
>https://unix.stackexchange.com/questions/318164/sox-split-audio-on-silence-but-keep-silence
>
>which uses a program called "silence" to detect the silence.
>
>Unfortunately I can't figure out, what package contains that program
>or from where I can download that program.

You need 'media-sound/sox' and then use the silence effect. Note that
it is _one_ command on _one_line in that answer on stackexchange

sox -V3 audiobook.mp3 audiobook_part_.mp3 silence \
1 0.5 0.1% 1 0.5 0.1% : newfile : restart

See 'man 7 soxeffect'

HTH,
-dnh

-- 
Ich glaube aber nicht, dass der DDR Ram hat. Er hat seinen Rechner doch erst
vor einem Jahr gekauft! Die werden Ihm da doch nicht uralt-Speicherbausteine
hereingesteckt haben. Maximal kann er also "Ex-DDR"-Speicher haben (Sprich
Infineon, denn die Produzieren ja auch in Dresden ...).-- Konrad Neitzel



  1   2   3   4   5   6   7   8   9   10   >