Re: [gentoo-user] Network printer not being found

2020-10-29 Thread William Kenworthy


On 29/10/20 10:16 pm, Peter Humphrey wrote:
> Afternoon all,
>
> Before my trials with booting, and eventually rebuilding everything from the 
> ground up, my Lexmark C2425 printer was working fine. Now the KDE system 
> settings printer applet can't detect it, even though pinging it works.
>
> Then when I point firefox to localhost:631 cups's behaviour has changed. If I 
> click Adding Printers and Classes, instead of a dialogue to let me add a 
> printer I now get a help page telling me how to do it at the command line.
>
> Even if I do manage to add the printer, cups reports that it isn't 
> responding. 
> I take this to mean I'm not using the right protocol. I've tried IPP, IPPS, 
> HTTP and HTTPS, following that help page.
>
> Package.use is the same as before, and I've tried with cups-browsed both 
> running and not.
>
> What am I missing?
>
Sounds like to clicked on the (somewhat fuzzily named) "adding Printers
and Classes" on the main page - thats actually the help page which you
described.

Try clicking on Administration on the top line and then add printer.

BillK





[gentoo-user] New thunderbird filter messages

2020-10-29 Thread William Kenworthy
Hi all,

    the old thunderbird mail reader had a handy "filter messages" field
that made filtering mails in the header panel easy - this has
disappeared leaving only global search or a very clumsy filter dialog. 
Have they removed it, or is it hidden somehow?

BillK




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

2020-10-29 Thread thelma
On 10/29/2020 10:53 AM, Michael wrote:
> On Thursday, 29 October 2020 14:10:07 GMT the...@sys-concept.com wrote:
>> On 10/29/2020 06:21 AM, Remco Rijnders wrote:
>>> On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in
>>>
>>> <7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>:
 After installing apache 2.4 I can not access server subdirectory:
 server/admin/index.html

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

 I can access index.html in a directory below /admin (server/index.html)
 but not the server/admin/index.html
>>>
>>> That seems to suggest that either the permissions or ownership of
>>> admin/index.html are different from admin/server/index.html, or that
>>> there is a
>>> difference of that kind between the directories admin/ and admin/server.
>>> Are
>>> they?
>>
>> Here are the permissions:
>>
>> index on server/
>> -rw-r--r--  1 root root19078 Jan 14  2011 index.php
> 
> The above is a .php file.

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

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

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

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

Yes

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

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

This is from apache.conf


Options FollowSymLinks
AllowOverride None
Require all denied



AllowOverride None
Require all granted



Options FollowSymLinks
AllowOverride All
Require all granted


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

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



Re: [gentoo-user] Re: [O/T of O/T] winmodem?

2020-10-29 Thread Dale
Grant Edwards wrote:
> On 2020-10-29, Michael  wrote:
>
>> Heh!  I recall horror stories of compiling linmodem to get it to work and 
>> every other version would fail to initialize the modem leaving me with no 
>> Internet connection.  Yes, the good old days, you know - when sometimes in 
>> the 
>> evenings we would actually read ... books.  LOL!
> I even tried to avoid plug-in-card modems in favor of external modems
> with a full set of LEDs and an RS-232C port.  I've probably still got
> one in a closet somewhere...
>
>
>
>


I got a couple of those.  No idea if they still work tho.  One I had was
a high dollar one back in its day.  It had a lot of dip switches on the
bottom to change how it worked. 

Oh the dial-up days.  May we never see them again.  ;-)

Dale

:-)  :-) 



Re: [gentoo-user] Network printer not being found

2020-10-29 Thread Michael
On Thursday, 29 October 2020 14:16:17 GMT Peter Humphrey wrote:
> Afternoon all,
> 
> Before my trials with booting, and eventually rebuilding everything from the
> ground up, my Lexmark C2425 printer was working fine. Now the KDE system
> settings printer applet can't detect it, even though pinging it works.

Is the IP address of the printer the same?

When you 'nmap -A -T4 -Pn -v ' do you see open ports?  It should 
offer 80, 443, 515, 9100, 631 depending on the protocols it uses.


> Then when I point firefox to localhost:631 cups's behaviour has changed. If
> I click Adding Printers and Classes, instead of a dialogue to let me add a
> printer I now get a help page telling me how to do it at the command line.

Hmm ... something must be amiss in your setup.  When I go to the 
Administration tab and click to add another printer the familiar cupsd GUI 
offers various protocols to choose from.  Have you set USE="X"?

Bear in mind, I don't use any network upnp autoconfiguration service on my LAN 
and therefore my use flags may be different to yours:

$ equery u cups
[ Legend : U - final flag setting for installation]
[: I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for net-print/cups-2.3.3-r1:
 U I
 + + X: Add support for X11
 - - abi_x86_32   : 32-bit (x86) libraries
 + + acl  : Add support for Access Control Lists
 + + dbus : Enable dbus support for anything that needs it (gpsd, 
gnomemeeting, etc)
 - - debug: Enable extra debug codepaths, like asserts and extra 
output. If you want to get meaningful backtraces see https://wiki.gentoo.org/
wiki/Project:Quality_Assurance/Backtraces
 - - kerberos : Add kerberos support
 - - lprng-compat : Do not install lp... binaries so cups and lprng can 
coexist. 
 + + pam  : Add support for PAM (Pluggable Authentication Modules) - 
DANGEROUS to arbitrarily flip
 + + ssl  : Add support for SSL/TLS connections (Secure Socket Layer / 
Transport Layer Security)
 - - static-libs  : Build static versions of dynamic libraries as well
 - - systemd  : Enable use of systemd-specific libraries and features like 
socket activation or session tracking
 + + threads  : Add threads support for various packages. Usually pthreads
 + + usb  : Add USB support to applications that have optional USB 
support (e.g. cups)
 - - xinetd   : Add support for the xinetd super-server
 - - zeroconf : Support for DNS Service Discovery (DNS-SD)


> Even if I do manage to add the printer, cups reports that it isn't
> responding. I take this to mean I'm not using the right protocol. I've
> tried IPP, IPPS, HTTP and HTTPS, following that help page.

You haven't locked down the printer itself to limit which IP addresses it will 
allow connections from?

Have a look here in case there is some step you've missed out:

https://wiki.gentoo.org/wiki/Printing


> Package.use is the same as before, and I've tried with cups-browsed both
> running and not.
> 
> What am I missing?

Cups usually captures informative logs and you can set increased verbosity for 
more detail.  What do these logs report?

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


[gentoo-user] Re: [O/T of O/T] winmodem?

2020-10-29 Thread Grant Edwards
On 2020-10-29, Michael  wrote:

> Heh!  I recall horror stories of compiling linmodem to get it to work and 
> every other version would fail to initialize the modem leaving me with no 
> Internet connection.  Yes, the good old days, you know - when sometimes in 
> the 
> evenings we would actually read ... books.  LOL!

I even tried to avoid plug-in-card modems in favor of external modems
with a full set of LEDs and an RS-232C port.  I've probably still got
one in a closet somewhere...





[gentoo-user] Re: [O/T of O/T] winmodem?

2020-10-29 Thread Michael
On Thursday, 29 October 2020 17:47:24 GMT Grant Edwards wrote:
> On 2020-10-28, Michael  wrote:
> > I had an old desktop which during a lightning storm ended up with a
> > blown PSU and a blown winmodem.  The winmodem was unrepairable, but
> > the PSU survived following the replacement of a single capacitor.
> 
> All Winmodems were 100% unrepairable fresh off the assembly line.
> 
> --
> Grant

Heh!  I recall horror stories of compiling linmodem to get it to work and 
every other version would fail to initialize the modem leaving me with no 
Internet connection.  Yes, the good old days, you know - when sometimes in the 
evenings we would actually read ... books.  LOL!

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


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



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

2020-10-29 Thread Grant Edwards
On 2020-10-28, Michael  wrote:

> I had an old desktop which during a lightning storm ended up with a
> blown PSU and a blown winmodem.  The winmodem was unrepairable, but
> the PSU survived following the replacement of a single capacitor.

All Winmodems were 100% unrepairable fresh off the assembly line.

--
Grant




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

2020-10-29 Thread Dale
Michael wrote:
>
> Commented lines are not taken into account.
>
> The format you specify above is correct.
>
> The problem seems to be with the youtube-dl version you are using.  I get no 
> such problems with youtube-dl version 2020.09.20.


I'm on this:


root@fireball / # youtube-dl --version
2020.06.16.1
root@fireball / #


How does one update?  Should I use the youtube-dl update tool or is
there a way to do it with emerge but point it somewhere beside git or
whatever that RIAA took down? 

Gonna google in the meantime. 

Dale

:-)  :-) 



Re: [gentoo-user] Re: [O/T] PSU caps

2020-10-29 Thread Dale
Michael wrote:
> On Wednesday, 28 October 2020 22:57:25 GMT Dale wrote:
>> Michael wrote:
>>> On Wednesday, 28 October 2020 19:27:06 GMT Dale wrote:
 I'm thinking about replacing that cap and seeing if it works.  I've
 repaired a few monitors that way but my question is, should I trust it
 after replacing that cap even if it works??  Should it be load tested or
 something?  Does the protection circuitry only work once?
>>> It depends what was damaged and the cause of it.  It could be the
>>> capacitor
>>> reached its predicted end of life.  It could have been a transient
>>> voltage, in which case more things in the protection circuit (diodes,
>>> resistors) may have also been damaged.
>>>
>>> I had an old desktop which during a lightning storm ended up with a blown
>>> PSU and a blown winmodem.  The winmodem was unrepairable, but the PSU
>>> survived following the replacement of a single capacitor.  :-)
>>>
>>> For the cost of a capacitor I'd give it a try and then measure the output
>>> voltages under load.
>> Well, we getting rain but I haven't heard a single bit of thunder or any
>> light blinking.  Nothing really bad anywhere near us either.  It's the
>> hurricane thing again.  I might add, I got surge protection coming out
>> my ears.  One in the main breaker box that should protect everything. 
>> It's installed right below the main breaker.
> This type of surge protectors are good for mains transients and can be reset 
> when they trip.
>

It also has a indicator that tells when it is done protecting or
something happens and it trips the breaker. 

>> Another one at the wall plug where I plug my UPS in.
> These may or may not reset - depending on the type.  The multi-socket 
> extensions with varistors (MOV) in them are not a fit and forget item.  If 
> they have seen repeated or prolonged overvoltage conditions close or above to 
> their clamping voltage value, they can and do degrade over time.  So you may 
> think I'm well protected me, but when the next transient comes along the 
> surge 
> protector provides next to no protection at all.  A close by lightning strike 
> will cause the varistor to fail catastrophically, in which case you'll know 
> it's cooked and take action to replace the unit, but otherwise you wouldn't 
> be 
> aware of its suboptimal capability.
>

These also have a indicator that indicates when they have absorbed all
the surges they can.  In the past, I've had a few go out.  I replace
them when needed.  The biggest issue with power around here, sags or
just total blinks.  Our power company has surge arrestors in several
places along the lines.  Sometimes when I'm driving down the road, I see
them.  They place different kinds of protection devices to help protect
from different power issues.  Some are just a basic spark gap that when
the voltage gets to high it sparks and some are large cans which work
like a large MOV.  Very effective given the high voltages on the wires. 
Sometimes after a large storm comes through, I see them in the bucket
trucks replacing them.  No telling how many TVs or deep freezers that
may have saved. 


>> End of life.  That is my bet.  I did a search for when I ordered the
>> power supply.  It is within a month or so of being 10 years old.  I may
>> replace that capacitor just for giggles but honestly, I got my money out
>> of that thing a few years ago.  I'd be worried about the other
>> capacitors in there too.  Are they about to pop as well??  Who knows. 
> If they are not domed they ought to be OK.
>
> A big power surge will overheat the capacitor, causing the electrolyte paste 
> to evaporate fast and blow its top off.
>
> Lower surges, or operating in overheated conditions for prolonged periods 
> will 
> cause it to dome as it expands.  It may also cause it to leak slowly, in 
> which 
> case it may not pop/explode.  There are a number of failure modes of 
> electrolytic capacitors, but I don't recall all of them.
>
> The wear and tear of capacitors is a function of temperature and voltage.  As 
> long as both are kept low they will last long(er).


They may be OK at the moment but what about a month down the road?  Six
months down the road?  Yea, the one with the most pressure, read that as
heat, voltage and other conditions, may pop first but the others may
follow suite sometime after that.  The thing is ten years old and the
other caps are likely the same age.  Of course, power supplies nowadays
have really good protection.  Odds are it won't do any damage outside
the power supply itself but there is always a risk.  Given the price of
a decent power supply, it may be better to just buy a new one.  It is
tempting tho. 

Dale

:-)  :-) 



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

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

The above is a .php file.


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

You shouldn't need apache:apache or 0777 ownership of this file which is very 
insecure, unless apache is meant to be editing it live.  Normally root:root 
and 0755 is what is used.

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

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

> It works on Apache 2.2 but not Apache 2.4

Directives changed on version 2.4.  It would be worth familiarising yourself 
with the latest:

https://httpd.apache.org/docs/2.4/upgrading.html


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


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

2020-10-29 Thread Remco Rijnders
On Thu, Oct 29, 2020 at 08:10:07AM -0600, thelma wrote in 
<474d741a-a72d-e3ff-f771-5c7ecd72c...@sys-concept.com>:

On 10/29/2020 06:21 AM, Remco Rijnders wrote:

On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in
<7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>:

After installing apache 2.4 I can not access server subdirectory:
server/admin/index.html

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

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


That seems to suggest that either the permissions or ownership of
admin/index.html are different from admin/server/index.html, or that
there is a
difference of that kind between the directories admin/ and admin/server.
Are
they?


Here are the permissions:

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

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

It works on Apache 2.2 but not Apache 2.4


Hi Thelma,

Please help us help you a little better. As I understand it, you have two
index.html files, but you show only one above. What role does index.php have in
all this? I am also unclear if your set up is server/admin or admin/server, as
you used both in your first message. So, all in all, I am a little confused as
to what your exact problem is and what the exact permissions on all the
directories and index.html files involved are.

Thanks!



[gentoo-user] Network printer not being found

2020-10-29 Thread Peter Humphrey
Afternoon all,

Before my trials with booting, and eventually rebuilding everything from the 
ground up, my Lexmark C2425 printer was working fine. Now the KDE system 
settings printer applet can't detect it, even though pinging it works.

Then when I point firefox to localhost:631 cups's behaviour has changed. If I 
click Adding Printers and Classes, instead of a dialogue to let me add a 
printer I now get a help page telling me how to do it at the command line.

Even if I do manage to add the printer, cups reports that it isn't responding. 
I take this to mean I'm not using the right protocol. I've tried IPP, IPPS, 
HTTP and HTTPS, following that help page.

Package.use is the same as before, and I've tried with cups-browsed both 
running and not.

What am I missing?

-- 
Regards,
Peter.






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

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

Here are the permissions:

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

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

It works on Apache 2.2 but not Apache 2.4



Re: [gentoo-user] console size/display anomaly

2020-10-29 Thread Walter Dnes
On Wed, Oct 28, 2020 at 09:54:04AM -0400, John Blinka wrote

> Any ideas?

  The 1940's called... they want their overscan back.  It sounds like
your TV set has "overscan", a relic of the 1940's.  I have a 13-year old
plasma digital, and get the same effect.  Back in the 1940's, and up
until the advent of ATSC, TV sets used CRT (Cathode Ray Tube) displays.
As they aged, the picture shrank, and the annoying vertical blanking
info bar at the top of the picture came into view.  To prevent this,
manufacturers *DELIBERATELY* oversized the picture, so that as the TV
aged, the picture would still fill the entire screen.  This is entirely
unnecessary on digital TV sets, where vertical blanking info doesn't
exist, and the picture size is fixed, and never shrinks.  But some
manufacturers are effing idiots and *DELIBERATELY* build in overscan on
digital TVs!!!

  Check your TV's handbook, and see if it has a "fullpixel" setting or
something similar in the setup menu.  Failing that your best bet in X is
"xrandr"; emerge it if you don't have it.  In a gui terminal (e.g.
xterm), execute something like...

xrandr --scale '1.25x1.25'

...This downscales the width (1st number) and height (2nd number) to 80%
of their original size, because 1 / 1.25 = 0.8

  You'll have to play around with the width and height parameters to get
something that fills your screen without overscanning.  Interpolation
may result in blurry fonts.  If so, throw in one of...

--filter 'bilinear'
--filter 'nearest'

...on the command line and see if it helps.  xrandr can do a bunch of
"interesting" stuff if you want.  You might also want try...

xrandr --setmonitor name geometry outputs

...to tweak image size.  Check the xrandr man page for "--setmonitor".

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



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

2020-10-29 Thread Remco Rijnders
On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in 
<7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>:

After installing apache 2.4 I can not access server subdirectory:
server/admin/index.html

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

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


That seems to suggest that either the permissions or ownership of
admin/index.html are different from admin/server/index.html, or that there is a
difference of that kind between the directories admin/ and admin/server. Are
they?



Re: [gentoo-user] Updating LibreOffice and EPYTHON

2020-10-29 Thread Walter Dnes
On Wed, Oct 28, 2020 at 11:31:12PM +0800, Andrew Lowe wrote
> On 28/10/20 9:18 pm, Adam Carter wrote:
> > On Tue, Oct 27, 2020 at 1:23 AM Andrew Lowe  > 
> > Stab in the dark - what does 'eselect python list' say?
> bluey /home/agl # eselect python list
> Available Python interpreters, in order of preference:
>[1]   python3.9
>[2]   python3.8 (fallback)
>[3]   python3.7 (fallback)
>[4]   python2.7 (fallback)

  Nice catch by Andrew.  Try executing...

eselect python set 1

...and emerging again.

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



[gentoo-user] Re: [O/T] PSU caps

2020-10-29 Thread Michael
On Wednesday, 28 October 2020 22:57:25 GMT Dale wrote:
> Michael wrote:
> > On Wednesday, 28 October 2020 19:27:06 GMT Dale wrote:
> >> I'm thinking about replacing that cap and seeing if it works.  I've
> >> repaired a few monitors that way but my question is, should I trust it
> >> after replacing that cap even if it works??  Should it be load tested or
> >> something?  Does the protection circuitry only work once?
> > 
> > It depends what was damaged and the cause of it.  It could be the
> > capacitor
> > reached its predicted end of life.  It could have been a transient
> > voltage, in which case more things in the protection circuit (diodes,
> > resistors) may have also been damaged.
> > 
> > I had an old desktop which during a lightning storm ended up with a blown
> > PSU and a blown winmodem.  The winmodem was unrepairable, but the PSU
> > survived following the replacement of a single capacitor.  :-)
> > 
> > For the cost of a capacitor I'd give it a try and then measure the output
> > voltages under load.
> 
> Well, we getting rain but I haven't heard a single bit of thunder or any
> light blinking.  Nothing really bad anywhere near us either.  It's the
> hurricane thing again.  I might add, I got surge protection coming out
> my ears.  One in the main breaker box that should protect everything. 
> It's installed right below the main breaker.

This type of surge protectors are good for mains transients and can be reset 
when they trip.


> Another one at the wall plug where I plug my UPS in.

These may or may not reset - depending on the type.  The multi-socket 
extensions with varistors (MOV) in them are not a fit and forget item.  If 
they have seen repeated or prolonged overvoltage conditions close or above to 
their clamping voltage value, they can and do degrade over time.  So you may 
think I'm well protected me, but when the next transient comes along the surge 
protector provides next to no protection at all.  A close by lightning strike 
will cause the varistor to fail catastrophically, in which case you'll know 
it's cooked and take action to replace the unit, but otherwise you wouldn't be 
aware of its suboptimal capability.


> End of life.  That is my bet.  I did a search for when I ordered the
> power supply.  It is within a month or so of being 10 years old.  I may
> replace that capacitor just for giggles but honestly, I got my money out
> of that thing a few years ago.  I'd be worried about the other
> capacitors in there too.  Are they about to pop as well??  Who knows. 

If they are not domed they ought to be OK.

A big power surge will overheat the capacitor, causing the electrolyte paste 
to evaporate fast and blow its top off.

Lower surges, or operating in overheated conditions for prolonged periods will 
cause it to dome as it expands.  It may also cause it to leak slowly, in which 
case it may not pop/explode.  There are a number of failure modes of 
electrolytic capacitors, but I don't recall all of them.

The wear and tear of capacitors is a function of temperature and voltage.  As 
long as both are kept low they will last long(er).

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


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

2020-10-29 Thread Michael
On Wednesday, 28 October 2020 23:15:21 GMT Dale wrote:
> David Haller wrote:
> > 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
> 
> Finally getting thing back to normal.  Been checking out the quality of
> new power supply and the age of my mobo.  Mobo is 7 years old.  May
> start digging around for one of those soon.  o_0
> 
> Searched for test video and grabbed the first hit.  Here is the complete
> output. 
> 
> 
> 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
> [debug] Python version 3.7.9 (CPython) -
> Linux-5.6.7-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.
> 7 [debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1
> [debug] Proxy map: {}
> 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
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line
> 797, in extract_info
> ie_result = ie.extract(url)
>   File
> "/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line
> 530, in extract
> ie_result = self._real_extract(url)
>   File
> "/usr/lib/python3.7/site-packages/youtube_dl/extractor/generic.py", line
> 2277, in _real_extract
> % (url, url), expected=True)
> youtube_dl.utils.ExtractorError:
> '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] C0DPdy98e4c: Downloading webpage
> [debug] Default format spec: bestvideo+bestaudio/best
> WARNING: Requested formats are incompatible for merge and will be merged
> into mkv.
> [debug] Invoking downloader on
> 'https://r2---sn-5uaeznd7.googlevideo.com/videoplayback?expire=1603948129
> =AfqZX8i_DJPqigTpkoDYAw=74.188.248.51=o-AH8t98t1pWRhfF0y-tZC-qs49qI_zv
> ZaKyBkU50HBe2G=244=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278
> %2C394%2C395%2C396%2C397=youtube=yes=m8=31%2C26=s
> n-5uaeznd7%2Csn-q4flrn7s=au%2Conr=m=2=20=1165000
> rv=1=video%2Fwebm=yes=294311=16.560=1449553649983144
> t=1603926401=2=yes=WEB=expire%2Cei%2Cip%2Cid%2Caita
> gs%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt=AOq0QJ8w
> RQIhAKZU6AYMDnJ3MkiGZrpNIARGZ1wcxQIuhv8RefWrUPJEAiBIWn9PA40XVnnUclzEp_nV18Ah
> 1PswHBQjNzNtA0Negg%3D%3D=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcw
> ndbps=AG3C_xAwRgIhAKvXqCZKwVUndAMo_5bv6VxIvB7fMndYKg1QSCR0Tqu2AiEAp32rZ
> ZE_hPo5cb1uRjg4PozYqTvXkkjWIaPEj7A9aog%3D=yes' [download]
> Destination: TEST VIDEO-C0DPdy98e4c.f244.webm
> [download] 100% of 287.41KiB in 00:02
> [debug] Invoking downloader on
> 'https://r2---sn-5uaeznd7.googlevideo.com/videoplayback?expire=1603948129
> =AfqZX8i_DJPqigTpkoDYAw=74.188.248.51=o-AH8t98t1pWRhfF0y-tZC-qs49qI_zv
> ZaKyBkU50HBe2G=140=youtube=yes=m8=31%2C26=sn
> -5uaeznd7%2Csn-q4flrn7s=au%2Conr=m=2=20=1165000
> v=1=audio%2Fmp4=yes=280597=17.600=1509088061399864=
> 1603926401=2=yes=WEB=expire%2Cei%2Cip%2Cid%2Citag%2
> Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt=AOq0QJ8wRQIg
> Zi7NlmQITSpxyahnu-mmF0TTQU4tTrjKNeNypYfUZS0CIQC25F6S6QoiRZ8g7HJf5HI1Ch6GBVpT
> S8QogQBmpR4xWA%3D%3D=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbp
> s=AG3C_xAwRgIhAKvXqCZKwVUndAMo_5bv6VxIvB7fMndYKg1QSCR0Tqu2AiEAp32rZZE_h
> Po5cb1uRjg4PozYqTvXkkjWIaPEj7A9aog%3D=yes' [download]
> Destination: TEST VIDEO-C0DPdy98e4c.f140.m4a
> [download] 100% of 274.02KiB in 00:02
> [ffmpeg] Merging formats into "TEST VIDEO-C0DPdy98e4c.mkv"
> [debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i
> 'file:TEST VIDEO-C0DPdy98e4c.f244.webm' -i 'file:TEST
> VIDEO-C0DPdy98e4c.f140.m4a' -c