[gentoo-user] Re: Netflix Error Code O7355 with Opera
On 2020-06-11, Walter Dnes wrote: > I have Chrome installed. I looked at Chromium. It wants even more > stuff on top of what Chrome has pulled in! No way. Besides the dependencies, Chromium itself is a very long build. 2.5 days on my oldish laptop, 1.5 days on all my other machines. -- Grant
[gentoo-user] Re: Netflix Error Code O7355 with Opera
On 2020-06-10, J. Roeleveld wrote: > I had it working in Firefox. firfox or firefox-bin? -- Grant
[gentoo-user] Re: Netflix Error Code O7355 with Opera
On 2020-06-10, Walter Dnes wrote: > On Wed, Jun 10, 2020 at 05:41:18PM -0000, Grant Edwards wrote > >> I've nevert gotten Netflix to work in anything except Chrome. [Though >> I don't remember trying Opera.] > > I've got the sinking feeling that it's c copyright management thingy > that only works on Chrome. I dread building it; wish me luck... You don't actually build Chrome. You install the binary package. You can build Chromium, but Netflix won't work with it. -- Grant
[gentoo-user] Re: Netflix Error Code O7355 with Opera
On 2020-06-10, Mark Knecht wrote: >On all of my Kubuntu machines I have no problem with Netflix in Chrome. > The closest ffmpeg info I can give you with their package manager follows. I've nevert gotten Netflix to work in anything except Chrome. [Though I don't remember trying Opera.] -- Grant
[gentoo-user] Re: Have I to install wifi now?
On 2020-05-30, Peter Humphrey wrote: > I masked the latest version of plasma-meta, 5.18.5, [...] > Is this going to be policy in future? Bloat the machine up with bells and > whistles that are unwanted, and even actively disliked. Already I've been > obliged to install encryption and LVM, neither of which I want; where is it > going to end? Running Openbox instead of Plasma? I had a hard enough time preventing XFCE from installing tons of stuff I didn't wan't. Gnome and KDE desktops are so far beyond the pale it takes OTH radar to find them. -- Grant
[gentoo-user] Re: matplotlib build fails: link using /usr/lib instead of /usr/lib64
On 2020-05-27, Ashley Dixon wrote: > > These are likely due to a problem with your tool-chain as a whole, and > not > individual packages. See [1] and [2] for more discussion regarding this > matter. > > Do you run a multilib profile ? Does /usr/lib contain anything at all ? Yes. I have a few packages built for 32-bit.
[gentoo-user] Re: matplotlib build fails: link using /usr/lib instead of /usr/lib64
On 2020-05-27, Grant Edwards wrote: > I tried to emerge matplotlib today, and it failed because it's linking > in 32-bit libraries instead of 64 bit ones: > > x86_64-pc-linux-gnu-g++ -shared -Wl,-O1 -Wl,--as-needed -march=native -O2 > -pipe -fno-strict-aliasing -DNDEBUG > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/mplutils.o > > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/py_converters.o > > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/_backend_agg.o > > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/_backend_agg_wrapper.o > > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_bezier_arc.o > /var/tmp/portage/dev-python > > /matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_curves.o > > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/bui > ld/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_image_filters.o > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_trans_affine.o > > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vcgen_contour.o > > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vcgen_dash.o > > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vcgen_stroke.o > > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vpgen_seg > mentator.o -L/usr/lib -L/usr/lib64 -L/usr/lib64 -lfreetype -lpython3.7m -o > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/lib/matplotlib/backends/_backend_agg. > cpython-37m-x86_64-linux-gnu.so > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > skipping incompatible /usr/lib/libm.so when searching for -lm > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > skipping incompatible /usr/lib/libm.a when searching for -lm > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > skipping incompatible /usr/lib/libc.so when searching for -lc > > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: > skipping incompatible /usr/lib/libc.a when searching for -lc > error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1 I think the linker warnings above are normal. When I change MAKEOPTS from -j4 to -j1, it built OK. I still saw a bunch of the "skipping incompatble " messages. -- Grant
[gentoo-user] matplotlib build fails: link using /usr/lib instead of /usr/lib64
I tried to emerge matplotlib today, and it failed because it's linking in 32-bit libraries instead of 64 bit ones: x86_64-pc-linux-gnu-g++ -shared -Wl,-O1 -Wl,--as-needed -march=native -O2 -pipe -fno-strict-aliasing -DNDEBUG /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/mplutils.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/py_converters.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/_backend_agg.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/_backend_agg_wrapper.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_bezier_arc.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_curves.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/bui ld/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_image_filters.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_trans_affine.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vcgen_contour.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vcgen_dash.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vcgen_stroke.o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vpgen_segmentator.o -L/usr/lib -L/usr/lib64 -L/usr/lib64 -lfreetype -lpython3.7m -o /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/lib/matplotlib/backends/_backend_agg. cpython-37m-x86_64-linux-gnu.so /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1 What would cause that? It doesn't appear that it's being build for both 32-bit and 64-bit targets: These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-python/matplotlib-2.2.2-r1::gentoo USE="-cairo (-doc) -examples -excel -gtk2 -gtk3 -latex -qt5 -test -tk -wxwidgets" PYTHON_TARGETS="python2_7 python3_7 -python3_6" 0 KiB Total: 1 package (1 new), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No]
[gentoo-user] Re: Gentoo RPi boot to ram or read-only FS?
On 2020-05-26, Frank Tarczynski wrote: > I'm building a video conference appliance using a Raspberry Pi 4 for > my parents. Sorry, no advice running Gentoo on RPi. I run OSMC/Kodi on an older RPi, and it works fine, but I don't think there are any video conference apps for Kodi. But... For skype and zoom, I'd probably just buy them a 10" Kindle Fire. There are Zoom and Skype apps available for it. Main drawback: smallish screen and limited to 4 video windows at a time in zoom. However, it's portable: you can flip to the back camera and walk around the house/yard to show something to people. It's also nice in that you can just tap on a Zoom invite url in the email app, and it "just works". I haven't trie Skype on Fire. You can add hangounts/duo, but you've got to futz around sideloading the Google App store first. -- Grant
[gentoo-user] Re: Command line tool to crop PDF documents?
On 2020-05-21, Ashley Dixon wrote: > There is also [1], which is a slightly improved version of Oberdiek's > pdfcrop. > It uses pure GhostScript and Perl to work around some of the caveats of > pdfcrop, > including preserving interactive content (such as hyperref links in > TeX > documents) and allowing you to avoid emerging the huge texlive-core package > for > one small utility. > > [1] https://tex.stackexchange.com/a/42259/ I don't see any pure Perl/Ghostscript utility in that thread. There's a bash program, but it doesn't support compression in input files. The pdfcrop.pl included in texlive seems to work OK with compressed input files, but the output filesize balloons up by about 6X. This app did work beautifully with no fuss: https://pypi.org/project/pdfCropMargins/ https://github.com/abarker/pdfCropMargins I can remove the crop marks from a PDF book, and then keep as much or little of the remaining whitespace margins as I want. The output file is smaller than the input file (which is sort of what you'd expect when you're removing stuff). Now I can uninstall TexLive until the next time I need to tweak my résumé. :) I usually do have TexLive installed, but a while back it was causing a blockage when trying to do an update. So I uninstalled it in order to get on the the 'emerge -auvND world' and never got around to re-installing it until today. -- Grant
[gentoo-user] Re: Command line tool to crop PDF documents?
On 2020-05-21, Ashley Dixon wrote: > On Thu, May 21, 2020 at 02:21:26PM -0000, Grant Edwards wrote: >> Google has found various references to 'croppdf' which is included >> in a package of texlive extra utilities on Ubuntu. Gentoo seems >> have 38 different 'texlive' ebuilds. Is there any way to tell >> which (if any) contains croppdf? > > You can use the e-file command from app-portage/pfl to check which > package in Portage provides a specific file---including binaries. > Emerge pfl and run `e-file pdfcrop`. Yep. It looks like pdfcrop from texlive-core will do what I want. It would have helped if I hadn't trasmuted "pdfcrop" to "croppdf" when I was searching for info! I initially just trield downloading pdfcrop.pl and running it without texlive installed, but it relies on texpdf. -- Grant
[gentoo-user] Command line tool to crop PDF documents?
I'm looking for a command-line tool to crop a multi-page PDF document. I want to specify the crop window on the command line. I don't want it to automagically remove all of the marginal whitespace. I don't want GUI where I have to draw a box. Google has found various references to 'croppdf' which is included in a package of texlive extra utilities on Ubuntu. Gentoo seems have 38 different 'texlive' ebuilds. Is there any way to tell which (if any) contains croppdf? -- Grant
[gentoo-user] Re: Cmake: Just wonderful!
On 2020-05-13, Alan Grimes wrote: > This is just fantasmagorically wonderful: IIRC, I had the same error (building a different package). I just did "emerge -C cmake" then did another 'emerge -auvND world', and it all worked itself out. -- Grant
[gentoo-user] Re: Is Gentoo dead?
On 2020-04-24, lego12...@yandex.ru wrote: > On Fri, Apr 24, 2020 at 01:34:39PM -0000, Grant Edwards wrote: >> On 2020-04-24, lego12...@yandex.ru wrote: >> > The core of portage should be in C, imho. >> >> Why? I've been running Gentoo on multiple machines (generally at >> least 4 or 5) for 15+ years now. I've never seen any problems that >> could be attributed to the fact that portage isn't written in C. > > I don't have such experience. I use gentoo/funtoo for a less period, but > on more machines(servers and desktops). And i catched one or two > (don't remember exactly) situations where emerge was broken. But was it broken _because_it_wasn't_written_in_C_? I've written a _lot_ of C, and a _lot_ of Python over the years. If it were written in C, it would be broken worse and more often. -- Grant
[gentoo-user] Re: [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: Is Gentoo dead?
On 2020-04-24, lego12...@yandex.ru wrote: > On Thu, Apr 23, 2020 at 03:27:16PM -0500, Steven Lembark wrote: >> >> > portage must be in C and statically linked. >> >> Seems to argue in favor of a statically-linked dynamic language: The >> runtime compiler can be static with install scripts being a bit more >> malleable. > > The core of portage should be in C, imho. Why? I've been running Gentoo on multiple machines (generally at least 4 or 5) for 15+ years now. I've never seen any problems that could be attributed to the fact that portage isn't written in C. -- Grant
Re: [gentoo-user] Converting a Portage Flat File to a Directory Structure
On 4/20/20 7:13 AM, Ashley Dixon wrote: Hi gentoo-user, Hi, Following the recent conversation started by Meino, I have decided to convert my package.* files to directory structures. For all but one, this has proven tedious, but relatively painless. My package.use file is another story: at over three-hundred lines, the thought of manually converting this to a directory structure does not attract me. Are there any tools in Portage to help with this, or must I resort to writing a shell script ? I'm not aware of a tool to do the conversion. However there may be one that I'm not aware of. For example, considering the following lines in my flat package.use: media-video/openshot printsupport sys-apps/util-linux tty-helpers I want to take this file and create a directory structure: media-video/openshot, containing "media-video/openshot printsupport" sys-apps/util-linux, containing "sys-apps/util-linux tty-helpers" I wasn't aware that you could put sub-directories in /etc/portage/package.use. I've always had to put the files directly in that directory, not sub-directories. As such, my files have names like sys-apps-util-linux to avoid naming collisions. Perhaps things have changed since I last tried to use a sub-directory or I am misremembering. How can this be done ? I think it should be relatively easy to script reading the line, extracting the package name, munging the name, and writing the entire unmodified line to a new file based on the munged name. If directories work, create and populate them without munging names. -- Grant. . . . unix || die
Re: [gentoo-user] best rss reader?
On 4/19/20 3:15 PM, Caveman Al Toraboran wrote: hi - could everyone share his rss reading setup? Hi, 1. what rss feed reader do you use? Primary: rss2email Secondary: Thunderbird 2. what are your theoretical principles that guided you to choose the rss feed that you use. I want to read things on multiple devices, and IMAP based email does extremely well at that. I have select few things that I don't run through rss2email that I just read via Thunderbird's RSS support. -- Grant. . . . unix || die
Re: [gentoo-user] Alternate Incoming Mail Server
On 4/11/20 4:13 PM, antlists wrote: Which was also a pain in the neck because it was single-threaded - if the ISP tried to send an incoming email at the same time the gateway tried to send, the gateway hung. Ew. I can't say as I'm surprised about that, given the nature of SMTP servers in the '90s. I wonder what the licensing would have been to have one machine sending outbound and another receiving inbound. Though that does assume that you could have multiple SMTP gateways connected to MS-Mail. You could pretty much guarantee most mornings I'd be in the server room deleting a bunch of private emails from the outgoing queue, and repeatedly rebooting until the queues in both directions managed to clear. Oy vey! The point is that when the server sends EHLO, it is *not* a *permitted* response for the client to drop the connection. That was the specification for ESMTP - the client should reject EHLO, the server tries again with HELO, and things (supposedly) proceed as they should. Which they can't, if the client improperly kills the connection. Agreed. Which shouldn't have been a problem. ESMTP was designed to fall back gracefully to SMTP. But if clients don't behave correctly as per the SMTP spec, how can the server degrade gracefully? I wonder how many Sun Sparc boxen were put between Microsoft mail infrastructure and the rest of the world in the '90s and '00s. -- Grant. . . . unix || die
Re: [gentoo-user] Alternate Incoming Mail Server
On 4/11/20 2:17 PM, Michael Orlitzky wrote: Exchange used to do all manner of stupid things, but now that Microsoft is running it themselves and making money from O365, they seem to have figured out how to make it send mail correctly. I've found that Exchange / IIS SMTP is fairly standards compliant since the early-mid 2000s. Microsoft has always been making money off of Exchange. (Presuming people are being legal about it.) Be it CALs, upgrade licensing, etc. Nowadays they prefer to cripple Outlook with non-Exchange protocols, so that our users complain about not having shared calendars when we've had CalDAV integrated with IMAP for 10+ years. CalDAV is decidedly not an email protocol; POP3, IMAP, SMTP. I'm not aware of Outlook ever claiming support for CalDAV. It has supported POP3, IMAP, SMTP, Exchange proprietary protocols, and likely NNTP. You can get shared calendaring, address books, and folders without Exchange. I used MAPIlab's Colab product for a number of clients for many years circa 2010. It is (was?) an Outlook add-on that added support for accessing a shared PST file. It worked great in multiple client's offices of between 5 and 25 people. (My bigger clients had Exchange.) So, IMHO, complaining that Outlook doesn't support CalDAV is sort of like complaining that Firefox doesn't support SIP telephony. Could it if it wanted to, sure. Should it, maybe. Does it, no. -- Grant. . . . unix || die
Re: [gentoo-user] Alternate Incoming Mail Server
On 4/11/20 2:08 PM, antlists wrote: Okay, it was a long time ago, and it was MS-Mail (Exchange's predecessor, for those who can remember back that far), but I had an argument with my boss. He was well annoyed with our ISP for complying with RFC's because they switched to ESMTP and MS-Mail promptly broke. I don't recall any RFC (from the time) stating that ESMTP was REQUIRED. It may have been a SHOULD. The ISP chose to make the change that resulted in ESMTP. Also, I'm fairly sure that MS-Mail didn't include SMTP in any capacity. It required an external MS-Mail SMTP gateway, which I Microsoft did sell, for an additional cost. The *ONLY* acceptable reason for terminating a connection is when you recieve the command "BYE", so when Pipex sent us the command EHLO, MS-Mail promptly dropped the connection ... I'll agree that what you're describing is per the (then) SMTP state machine. We have sense seen a LOT of discussion about when it is proper or not proper to close the SMTP connection. If the MS-Mail SMTP gateway sent a 5xy error response, it could see how it could subsequently close the connection per protocol state machine. Pipex, and I suspect other ISPs, had to implement an extended black list of customers who couldn't cope with ESMTP. If the MS-Mail SMTP gateway hadn't closed the connection and instead just returned an error for the command being unknown / unsupported, Pipex would have quite likely tried a standard HELO immediately after getting the response. Also, we're talking about the late '90s during the introduction of ESMTP, which was a wild west time for SMTP. -- Grant. . . . unix || die
[gentoo-user] Re: How to disable fuzzy-search in emerge?
On 2020-04-10, Grant Taylor wrote: > I took pause for a moment wondering if this was something I typed or > not. ;-) I know what you mean. :) -- Grant (the other one)
Re: [gentoo-user] Re: How to disable fuzzy-search in emerge?
On 4/10/20 11:00 AM, Grant Edwards wrote: Yes, that works! Good. Thanks!! You're welcome. I don't know why it didn't occur to me to check for a make.conf variable instead of an environment variable or USE flag. Of course now that I know that make.conf variable's name, I have found it in few other places in the emerge man page, and there's a clear description of it in make.conf(5). Unfortunately, the emerge man page doesn't really discuss make.conf except for a few places where it's mentioned that some specific option can be controlled via make.conf. I often feel like the make.conf file is a collection of environment variables, almost as if the file was sourced prior to running emerge. As such, I have to realize that if something looks like an environment variable, it can probably go into the make.conf as such. -- Grant I took pause for a moment wondering if this was something I typed or not. ;-) -- Grant. . . . unix || die
[gentoo-user] Re: How to disable fuzzy-search in emerge?
On 2020-04-10, Grant Taylor wrote: > > On 4/10/20 10:08 AM, Grant Edwards wrote: >> Yes, I'm aware I can add "--fuzzy-search n" to make it act sane, but >> is there an environment variable or USE flag or _something_ to make >> emerge --search do the right thing by default? > Does adding it to EMERGE_DEFAULT_OPTS in /etc/portage/make.conf help? Yes, that works! Thanks!! I don't know why it didn't occur to me to check for a make.conf variable instead of an environment variable or USE flag. Of course now that I know that make.conf variable's name, I have found it in few other places in the emerge man page, and there's a clear description of it in make.conf(5). Unfortunately, the emerge man page doesn't really discuss make.conf except for a few places where it's mentioned that some specific option can be controlled via make.conf. -- Grant
[gentoo-user] Re: How to disable fuzzy-search in emerge?
On 2020-04-10, Dale wrote: > Equery used to behave like emerge does now, and maybe always has. Really? Equery used to do fuzzy search by default, where it returns package that don't actually contain the search string? What I liked about emerge --search, is that it would show you both the installed version and the available version. I never figured out how to get equery to do that. -- Grant
Re: [gentoo-user] How to disable fuzzy-search in emerge?
On 4/10/20 10:08 AM, Grant Edwards wrote: Yes, I'm aware I can add "--fuzzy-search n" to make it act sane, but is there an environment variable or USE flag or _something_ to make emerge --search do the right thing by default? Does adding it to EMERGE_DEFAULT_OPTS in /etc/portage/make.conf help? -- Grant. . . . unix || die
[gentoo-user] Re: How to disable fuzzy-search in emerge?
On 2020-04-10, Alec Ten Harmsel wrote: > On Fri, Apr 10, 2020, at 12:08, Grant Edwards wrote: >> I really, really hate how emerge now returns bucketfulls of useless, >> unrelated results when you do a search. WTF is the point of returning >> a bunch of packages that don't contain the search string when there is >> is a package name that match the search string exactly? > > This doesn't answer your question, but `eix' is way faster and I've been > using it since I've started using Gentoo. Yes, I should just use eix or equery instead, now that emerge --search is broken by default. -- Grant
[gentoo-user] How to disable fuzzy-search in emerge?
I really, really hate how emerge now returns bucketfulls of useless, unrelated results when you do a search. WTF is the point of returning a bunch of packages that don't contain the search string when there is is a package name that match the search string exactly? Yes, I'm aware I can add "--fuzzy-search n" to make it act sane, but is there an environment variable or USE flag or _something_ to make emerge --search do the right thing by default? I have never, even once, found the current defult behavior to be useful. -- Grant
Re: [gentoo-user] Re: Alternate Incoming Mail Server
On 4/8/20 4:06 PM, Michael Orlitzky wrote: The driving force behind junkemailfilter.com passed away almost two years ago: Hum. That doesn't call the technology behind it into question. Though it does call into question the longevity of it. Maybe prematurely (?), I removed their lists from our servers shortly thereafter. You should check if that service is still doing anything. It would be quite bad, for example, if the domain junkemailfilter.com expired and if someone else bought it and decided to start accepting your email. Valid concern. Perhaps it's time for me to start creating my own custom SMTP engine to do the same types of tests that JEF-PT does / did. -- Grant. . . . unix || die -- Grant. . . . unix || die
Re: [gentoo-user] Re: Alternate Incoming Mail Server
On 4/8/20 3:36 PM, Neil Bothwick wrote: So does that mean you have four MX records? Yes. Nolist server Primary MX Backup MX Project Tar server in order of decreasing priority? Exactly. (1) $ dig +short +noshort mx tnetconsulting.net | sort tnetconsulting.net. 604800 IN MX 10 graymail.tnetconsulting.net. tnetconsulting.net. 604800 IN MX 15 tncsrv06.tnetconsulting.net. tnetconsulting.net. 604800 IN MX 20 tncsrv05.tnetconsulting.net. tnetconsulting.net. 604800 IN MX 99 tarbaby.junkemailfilter.com. (1) They aren't always returned in order do to round-robin DNS. But things that use MX records know to sort based on MX weight. -- Grant. . . . unix || die
[gentoo-user] Re: Alternate Incoming Mail Server
On 2020-04-08, Grant Taylor wrote: > On 4/8/20 7:39 AM, Grant Edwards wrote: >> NB: The cheap VPS instances that I work with do have static IP >> addresses, but they share that static IP with a bunch of other VPS >> instances. If you want your VPS to have a non-shared static IP >> address, then make sure that's what you're signing up for (it costs >> more). > > I think we're thinking two different things for VPS. I'm thinking > Virtual Private Server, as in a Virtual Machine. > > I've not seen any Virtual Private Servers that re-use the same IP as > other Virtual Private Servers. > > It sounds to me like you might be talking about Virtual Hosting of web > sites, which do tend to put multiple web sites on the same IP. No, what I'm talking about are vendor-provisioned RedHat VMs. I was having problems sending emails from my server due to lack of reverse DNS for the IP in question. When I asked the provider if they could set up reverse DNS for that IP, they said no they can't because that IP is shared with other VM hosts. Therefore, it's not possible for them to map that static IP address to my FQDN. IIRC, I send email through sendgrid. If I wanted sole usage of a static IP (which would allow reverse DNS), I'd have to move up a tier in the product list and pay more. That said, the VM in question does have two virtual web hosts (with separate FQDNs) which would share the same IP even if I did cough for the next higher tier where that VM has sole ownership of a static IP. I only need to send mail from one of the two FQDNs that poit to that IP, so that would be OK. -- Grant
Re: [gentoo-user] Re: Alternate Incoming Mail Server
On 4/8/20 7:39 AM, Grant Edwards wrote: NB: The cheap VPS instances that I work with do have static IP addresses, but they share that static IP with a bunch of other VPS instances. If you want your VPS to have a non-shared static IP address, then make sure that's what you're signing up for (it costs more). I think we're thinking two different things for VPS. I'm thinking Virtual Private Server, as in a Virtual Machine. I've not seen any Virtual Private Servers that re-use the same IP as other Virtual Private Servers. It sounds to me like you might be talking about Virtual Hosting of web sites, which do tend to put multiple web sites on the same IP. -- Grant. . . . unix || die
[gentoo-user] Re: Alternate Incoming Mail Server
On 2020-04-08, Grant Taylor wrote: > If all you're after is a static IP and aren't worried about sending > email from it, you can get a cheap VPS and establish a VPN from your > house to it. Use the static IP of said VPS as your home static IP. }:-) NB: The cheap VPS instances that I work with do have static IP addresses, but they share that static IP with a bunch of other VPS instances. If you want your VPS to have a non-shared static IP address, then make sure that's what you're signing up for (it costs more). -- Grant
Re: [gentoo-user] Alternate Incoming Mail Server
On 4/7/20 4:53 AM, Ashley Dixon wrote: Grant's mail server, I assume, is configured with the highest security in mind, so I can see how a mail server with a dynamic I.P. could cause issues in some contexts. I don't do any checking to see if the IP is from a dynamic net block or not. Some people do. I just wish my I.S.P. offered _any_ sort of static I.P. package, but given that I live in remote area in the north of England, I.S.P.s aren't exactly plentiful. If all you're after is a static IP and aren't worried about sending email from it, you can get a cheap VPS and establish a VPN from your house to it. Use the static IP of said VPS as your home static IP. }:-) -- Grant. . . . unix || die -- Grant. . . . unix || die
Re: [gentoo-user] Alternate Incoming Mail Server
On 4/6/20 10:49 PM, J. Roeleveld wrote: I am afraid most (if not all) ISPs will reject emails if the reverse DNS does not match. My experience has been that there needs to be something for both the forward and reverse DNS. Hopefully they match each other and — and what I call — round resolve each other. Ideally, they round resolve /and/ match the SMTP HELO / EHLO name. I think you can get away with at least the first part. There will likely be warnings, but they probably won't prevent email delivery in and of themselves. Using a dynamic range is another "spam" indicator and will also get your emails blocked by (nearly) all ISPs. Yep. If it's not blatant blocking of believed to be dynamic clients (how is left up to the reader's imagination), you start to run into additional filtering that may or may not reject the message. I would suggest putting your outbound SMTP server on a cheap VM hosted somewhere else. Or you get an outbound SMTP-service that allows you to decide on domain name and email addresses. Unfortunately the spammers have made many such cheap VMs IP net blocks have bad reputations. I'm starting to see more people blocking the cheaper VPS providers. -- Grant. . . . unix || die
[gentoo-user] Re: Internet slow at times. Can't figure out why. ISP??
On 2020-04-07, Michael wrote: > On Tuesday, 7 April 2020 05:55:06 BST J. Roeleveld wrote: >> On Tuesday, April 7, 2020 5:54:25 AM CEST Ian Zimmerman wrote: >> > On 2020-04-06 22:14, Dale wrote: >> > > I have DSL and it isn't to fast to begin with. At >> > > times tho, I'm only getting about 20 or 30% of what I should. >> > >> > Are you often on the phone at those times? May it be poor filtering? >> > >> > At my last residence - also "in the sticks", LOL - we had to give up on >> > DSL completely, because 6 times out of 10 when we got a phone call the >> > internet dropped. Seriously. We're not proud to support the Comcast >> > monopoly, but what a difference. >> >> This is likely caused by NOT having a filter for every device. >> >> Longer version: >> >> DSL requires a splitter/filter between the wall-socket (where the phone >> normally plugs in) and the DSL modem. It also has a 2nd connection for the >> phone. > > It is not the ADSL modem which requires the filter, but the analogue > telephone. My experience with multiple different installations is that lack of a filter can pretty much kill the ADSL signal and redner the DSL mode useless. > The filter cuts out audible frequencies so you can't hear them > when you're making a call. In my experience, it often also prevents the phones and connected lines from presenting such a screwed up impedance to the DSL signal that DSL stops working. -- Grant
Re: [gentoo-user] Alternate Incoming Mail Server
On 4/6/20 3:17 PM, Ashley Dixon wrote: Hello, Hi, [O.T.] Unfortunately, Grant, I cannot reply to your direct e-mail. My best guess is that you have a protection method in place in the event that the reverse D.N.S.\ does not match the forward ? You're close. I do require reverse DNS. I will log a warning if forward and reverse don't match, but the email should still flow. Lack of reverse DNS is problematic though. As I'm on a domestic I.P., this is out of my control (i.e., `nslookup mail.suugaku.co.uk` returns my I.P., but `nslookup ` returns some obscure hostname provided by my I.S.P.). Oops! Been there. Done that. I've added your mail server's name & IPv4 & IPv6 addresses to my /etc/hosts file. Please try again. I'll also send you an email from an alternate address. Sadly, it doesn't look like you can use the hack that I've used in the past. If forward and reverse DNS do match , you can configure your outgoing email server to simply use that name when talking to the outside world. Unfortunately, it doesn't look like you can do that because the forward DNS doesn't return an A / record for the name name that the PTR returns. This sounds quite enticing; I'll have a look, thanks :) :-) I didn't mean to infer that my back-up server would be different to my primary server, as my primary is rather minimal. And yes, good point, I suppose if anything, I should have tougher anti-spam measures on my backup MX :) For simplicity and consistency sake, I'd encourage you to have the same spam / virus / hygiene filtering on all mail servers that you control. This is what I was intending to do. I hadn't even considered dynamically playing with the D.N.S., given that addresses are commonly cached for a short period to avoid hammering name-servers (?) You have influence on how long things are cached for by adjusting the TTL value in your DNS. I say "influence" vs "control" because not all recursive DNS servers honor the TTL value that you specify. Some servers set a lower and / or upper bound on the TTL that they will honor. Oh my goodness, I feel silly now :) I was considering just using courier to catch the incoming mail, and then rsync it over to my primary when it comes back on-line, I supposed that you could have a full functional mail server, including delivering to mailboxes and then synchronizing the mailboxes between the servers. But that would be more work, and I'm guessing that's contrary to the simple alternate server that I think you are after. but using an S.M.T.P.-forwarder certainly seems more elegant. ;-) Cheers for your help and detailed explanations Grant. Not only will your suggestions make my humble mail server operate better, but it's also great fun to set up :) You're quite welcome. -- Grant. . . . unix || die
Re: [gentoo-user] Re: Alternate Incoming Mail Server
On 4/6/20 1:16 PM, Michael Orlitzky wrote: Greylisting suffers from one problem that unplugging the server doesn't: greylisting usually works on a triple like (IP address, sender, recipient), and can therefore continue to reject people who do retry, but retry from a different IP address. This occasionally affects things like Github notifications and requires manual intervention. I used to be a strong advocate of greylisting. I had some of the problems that have been described. Then I switched to Nolisting, a close varient of greylisting that I haven't seen any of the same (or any) problems with. If a sending email server follows the RFCs and tries multiple MXs, then email gets through in seconds instead of having to re-try and wait for a greylist timeout. There's also no issue with (re)trying from different IPs. (I would still recommend greylisting, personally, but it's a harder sell than that of foregoing a secondary MX.) Greylisting, or better, nolisting is a very good thing. See my other email for why I disagree about foregoing additional MXs. -- Grant. . . . unix || die
Re: [gentoo-user] Re: Alternate Incoming Mail Server
On 4/6/20 1:03 PM, Rich Freeman wrote: More often than not, yes. The main exception I've seen are sites that email you verification codes, such as some sorts of "two-factor" implementations (whether these are really two-factor I'll set aside for now). Many of these services will retry, but some just give up after one attempt. I believe that's a perfect example of services that should send email through a local MTA that manages a queue and retries mail delivery. There is no need for this type of queuing logic and complexity to be in the application. Especially if the application is otherwise stateless and runs for the duration of a single HTTP request. -- Grant. . . . unix || die
Re: [gentoo-user] Alternate Incoming Mail Server
On 4/6/20 11:55 AM, Michael Orlitzky wrote: Ok, you're right. ;-) My suggestion to create multiple records was in response to the claim that there are MTAs that will try a backup MX, but won't retry the primary MX, which is false to begin with. Trying to argue against an untrue premise only muddied the water. I will not exclude the possibility of email sending programs that will use backup MX(s) and not use the primary MX. But these are not general purpose MTAs. Back to the point: all real MTAs retry messages. You can find bulk mailers and spam zombies and one or two java "forgot password" webforms from 1995 that won't retry; but by and large, everyone does. By and large, yes all well behaved MTAs do re-try. The web form is a classic example of what a local queuing MTA is good for. If anyone has evidence to the contrary, it should be easy to find and present. If, on the other hand no such MTAs exist, then it's quite pointless to run a second MX for the five seconds a year that it's useful. I disagree. · I've seen connectivity issues break connection between a sending host and a primary MX. · Receiving side · Sending side · Breakage in the Internet (outside of the direct providers on the ends) · combination of the above · It's not five seconds a year. · It's more likely an hour or two a year, possibly aggregated. · You can't control the retry time frame on the sending side. · You can control the retry / forward time on secondary MX(s). · Messages can be canceled while sitting in sending systems queues. · It's much more difficult for someone to interfere with messages sitting on your systems. · Especially without your knowledge. · It's /still/ considered best practice to have /multiple/ inbound MX servers. · Be it primary / secondary · Anycasted instance · Other tricks · Do you want to tell the CEO that he can't have his email for 36 hours because you patched the mail server and the sender's system won't retry for 35.5 hours? My professional and personal opinion is that if you're serious about email, then you should have multiple inbound MX servers. -- Grant. . . . unix || die -- Grant. . . . unix || die
[gentoo-user] Re: How to configure keyboard layout for X11 libinput?
On 2020-04-06, Mike Gilbert wrote: >> I also had to remove the "XkbRules" option. Now the keyboard mapping >> is back to "normal". 'Twould be nice if things like that were >> documented somewhere, but I'm not sure where it would be... > > Take a look at the libinput(4) man page, which is installed by > x11-drivers/xf86-input-libinput. Nothing there except mouse/trackpad stuff. I don't see anything about keyboard layout in general or XkbRules in particular. -- Grant
Re: [gentoo-user] Alternate Incoming Mail Server
On 4/6/20 11:14 AM, Michael Orlitzky wrote: Why don't you say which MTA it is that both (a) combines MX records with different priorities, and (b) doesn't retry messages to the primary MX? You seem to have conflated the meaning of my message. I only stated that I've seen multiple MTAs to (a) combine MX records. I never said that those MTAs also didn't (b) retry message delivery. I have seen the following MTAs do (a) in the past: · Microsoft Exchange · IIS SMTP service · Novell GroupWise · Lotus Domino · Sendmail · Postfix Those are the ones that come to mind. I'm sure there are others that I ran into less frequently. My understanding from researching this years ago is that it used to be considered a configuration error to have multiple MX records with names that resolve to the same IP. As such, MTAs would combine them / deduplicated them to avoid wasted resource consumption. There is no point trying to connect to the same IP, even by a different name, an additional time after the previous time failed during the /current/ delivery / queue cycle. -- Grant. . . . unix || die
Re: [gentoo-user] Alternate Incoming Mail Server
certainly a nice-to-have. It's not really a different problem. It is really required. Having the email on an alternate server without a way to get the email to the main mail server where all the clients are configured to access it is an untenable situation that is tantamount to not having the email that goes to the alternate server. What do you think; is this at all possible ? Yes, absolutely possible. Has anyone here done anything like this before ? Yes, absolutely been done before. What you're asking for can all be hacked together using things other than SMTP. But it is very much that, a hack, cobbled together. Or, you can use SMTP, which you're already using, and does exactly what you're asking to do. Thanks in advance. [1] https://wiki.junkemailfilter.com/index.php/Project_Tar -- Grant. . . . unix || die
Re: [gentoo-user] Alternate Incoming Mail Server
On 4/6/20 10:43 AM, Michael Orlitzky wrote: Well, I can't refute an anecdote without more information, but if you're worried about this you can create the same MX record twice so that the "backup" is the primary. That's not going to work as well as you had hoped. I've run into many MTAs that check things and realize that the hosts in multiple MX records resolve to the same IP and treat them as one. You may get this to work. But I would never let clients to rely on this. -- Grant. . . . unix || die
Re: [gentoo-user] Alternate Incoming Mail Server
On 4/6/20 10:19 AM, J. Roeleveld wrote: I find that, with a backup MX, I don't seem to loose emails. Having multiple email servers of your own, primary, secondary, tertiary, etc, makes it much more likely that the email will move from the sending systems control to your control. I think it's fairly obvious that having the inbound email somewhere you control it is self evident. I've run into poorly configured sending servers that will try (re)sending once a day / week. So, you would be waiting on them for that day / week to re-send, presuming they do re-send. Conversely, if you have your own secondary mail server, the inbound message will likely land at the secondary mail server seconds ~> minutes after being unable to send to the primary mail server. Thus when your primary mail server comes back online minutes later, your secondary can send it on to your primary. Thus a net delay of minutes vs hours / days / week(s). I have, however, found evidence of mailservers belonging to big ISPs not retrying emails if there is no response from the singular MX. I've not noticed this, but I've not been looking for it, and I've had secondary email servers for decades. Note: You don't have to have and manage your own secondary mail server. You can outsource the task to someone you trust. The primary thing is that there are multiple servers willing to accept responsibility for your email. Be they your servers and / or someone else's servers acting as your agent. General call to everybody: If you're an individual and you want a backup (inbound relay) email server, send me a direct email and we can chat. I want to do what I can to help encourage people to run their own servers. I'm happy to help. -- Grant. . . . unix || die
[gentoo-user] Re: How to configure keyboard layout for X11 libinput?
On 2020-04-06, Grant Edwards wrote: > On 2020-04-06, Michael wrote: > >> Did you try '/etc/X11/xorg.conf.d/10-evdev.conf' ? > > My keyboard config is in /etc/X11/xorg.conf.d/30-keyboard.conf > > The control/capslock key mapping still works, but the keyboard layout > is borked. If I remove that file, the control/capslock mapping stops > working (as expected), and the kayboard layout is OK. > > Next, I tried just removing 'Option "XkbLayout'", and that made no > difference. Here is what I started with: > > Section "InputClass" > Identifier "keyboard-all" > Driver "libinput" > Option "XkbLayout" "us" > Option "XkbRules" "xorg" > Option "XkbOptions" "ctrl:nocaps,compose:ralt" > MatchIsKeyboard "on" > EndSection I also had to remove the "XkbRules" option. Now the keyboard mapping is back to "normal". 'Twould be nice if things like that were documented somewhere, but I'm not sure where it would be... -- Grant
[gentoo-user] Re: How to configure keyboard layout for X11 libinput?
On 2020-04-06, Michael wrote: > On Monday, 6 April 2020 15:37:34 BST Grant Edwards wrote: >> I switched from evdev to libinput as recommeded by recent news, and >> now my keyboard is hosed: a bunch of keys are unrecognized or send the >> wrong thing. (Arrow keys don't work, right-CTRL causes screen to >> flash, pgup/pgdown don't work, etc.). Unfortunately, all of the >> keyboard layout documentation I find talks about evdev, but doesn't >> mention libinput: >> >> https://wiki.gentoo.org/wiki/Keyboard_layout_switching >> >> Where/how to I set keyboard layout for libinput? >> >> -- >> Grant > > Did you try '/etc/X11/xorg.conf.d/10-evdev.conf' ? My keyboard config is in /etc/X11/xorg.conf.d/30-keyboard.conf The control/capslock key mapping still works, but the keyboard layout is borked. If I remove that file, the control/capslock mapping stops working (as expected), and the kayboard layout is OK. Next, I tried just removing 'Option "XkbLayout'", and that made no difference. Here is what I started with: Section "InputClass" Identifier "keyboard-all" Driver "libinput" Option "XkbLayout" "us" Option "XkbRules" "xorg" Option "XkbOptions" "ctrl:nocaps,compose:ralt" MatchIsKeyboard "on" EndSection Here's what I have no (no difference in behavior): Section "InputClass" Identifier "keyboard-all" Driver "libinput" Option "XkbRules" "xorg" Option "XkbOptions" "ctrl:nocaps,compose:ralt" MatchIsKeyboard "on" EndSection
[gentoo-user] How to configure keyboard layout for X11 libinput?
I switched from evdev to libinput as recommeded by recent news, and now my keyboard is hosed: a bunch of keys are unrecognized or send the wrong thing. (Arrow keys don't work, right-CTRL causes screen to flash, pgup/pgdown don't work, etc.). Unfortunately, all of the keyboard layout documentation I find talks about evdev, but doesn't mention libinput: https://wiki.gentoo.org/wiki/Keyboard_layout_switching Where/how to I set keyboard layout for libinput? -- Grant
[gentoo-user] Re: Copying root to SSD in one go...a good idea...or?
On 2020-04-06, Jack wrote: > On 4/6/20 9:35 AM, Grant Edwards wrote: >> On 2020-04-06, William Kenworthy wrote: >> >>> Use rsync with the bwlimit option to slow down the overall data rate - >>> monitor the temp with smart and slow it up if needed (I actually don't >>> think you will have a problem.) >> Does bwlimit work with local copies? The man page says specifically >> it's for limiting bandwidthon sockets. > > Can't you use the network syntax for one end of the rsync transfer to > bring the socket controls into play? Sure, if you want to route all the data through the network stack. You'll have to configure rsync to listen on localhost, and it seems like a waste, but it should work to limit bandwidth.
[gentoo-user] Re: Quick question: Bootdevice nameing...
On 2020-04-06, tu...@posteo.de wrote: > If I change to boot sequence in the BIOS to boot the harddisk from > the docking station...will it become /dev/sda ? No. The BIOS boot sequence has nothing to do with the order that mass storage devices are enumerated and named by the kernel. > Fstab depends on this... Then it's broken. For USB attached storage, you have to use UUID or LABEL for it to be reliable. -- Grant
[gentoo-user] Re: Copying root to SSD in one go...a good idea...or?
On 2020-04-06, William Kenworthy wrote: > Use rsync with the bwlimit option to slow down the overall data rate - > monitor the temp with smart and slow it up if needed (I actually don't think > you will have a problem.) Does bwlimit work with local copies? The man page says specifically it's for limiting bandwidthon sockets. -- Grant
[gentoo-user] Re: simple image annotation software
On 2020-04-05, Urs Schütz wrote: > On 2020-04-02 15:57, Grant Edwards wrote: [...] >> I installed flameshot (required no additional packages be installed). >> >> It can not be used to annotate existing image files. There's a long >> list of requests for that feature on the GitHub site, but apparently >> no progress on that front. According to some of those comments, >> shutter can do it. >> >> Personally, I don't really "get" the need for the capture >> functionality. ImageMagick's 'import' command works for me... > > What about displaying an image and taking a screenshot? To clumpsy? That doesn't work if the image size is larger than the display (which is generally true for digital photos these days). -- Grant
[gentoo-user] Re: Copying root to SSD in one go...a good idea...or?
On 2020-04-05, Mark Knecht wrote: > If copying 100GB causes too much heat watching smartctl will show you > before it gets too hot and you can stop it. If your SSD really can't handle large data transfers without damage, I'd get a different one. Copying a few hundred GB in one go golly well better be a use case considered by the designer/manufacturer. If not, they're utterly incompetent and you shouldn't buy their products. However, if do want to control the rate at which files are copied, rsync has a --bwlimit option. But, the description of that option specifically says it's for controlling bandwidth usage on "the socket", so perhaps it's ineffective for local copies. -- Grant
Re: [gentoo-user] ...recreating exactly the same applications on a new harddisc?
On 4/4/20 11:34 AM, tu...@posteo.de wrote: Hi, Hi, I am currently preparing a new harddisc as home for my new Gentoo system. Is it possible to recreate exactlu the same pool of applications/programs/libraries etc..., which my current system have - in one go? Baring cosmic influences, I would expect so. That is: Copy from the current system into the chroot environment, fire up emerge, go to bed and tommorow morning the new system ready...? Does this exists and is it reasonable to do it this way? Thanks for any hint in advance! I think that any given system is the product of it's various components. Change any of those components, and you change the product. I see the list of components as being at least: · world file · portage config (/etc/portage) · USEs · accepted keywords · accepted licenses · portage files (/usr/portage) · this significantly influences the version of packages that get installed, which is quite important · kernel · version · config Copying these things across should get you a quite similar system. I suspect you would be down to how different packages are configured. But the world file is only one of many parts that make up the system. I didn't include distfiles because theoretically, you can re-download files. However, I've run into cases where I wasn't able to download something and had to transfer (part of) distfiles too. If you're going to the trouble to keep a system this similar, why not simply copy the system from one drive / machine to another? -- Grant. . . . unix || die
Re: [gentoo-user] Re: mail cannot send emails (trying to use it with smartd)
On 4/3/20 4:01 PM, Grant Edwards wrote: If you want to become an ultra-professional, that's fine. If you just want to be able to send mail interactively from mutt... OK, that's a bad example now that mutt has built-in SMTP client capabilities. How about ... if you only want to get email off your local box to a remote server and don't care how it's done, then Sendmail probably isn't your best / easiest / first choice. ;-) -- Grant. . . . unix || die
[gentoo-user] Re: mail cannot send emails (trying to use it with smartd)
On 2020-04-03, Grant Taylor wrote: > (20)ProTip: You really do want local outbound queueing /somewhere/ on box. > > You don't want your web application to error out when it can't reach > it's SMTP server. You don't want t loose that receipt for the > transaction that the customer just made. Can you regenerate the > receipt? ;-) If you've got any sort of non-interactive "server" type applications that need to send mail, then you _definitely_ want local queueing -- and probably decent logging capabilities and local delivery of problem notification e-mails. I only use ssmtp for situations where mail is only sent by an application I'm interacting with and where I can _see_ that the send failed and can save/postpone the message while I fix whatever's broken that caused the failure. > But I really object to the "ultra-professional" comment, because > everybody has to start somewhere. If you want to become an ultra-professional, that's fine. If you just want to be able to send mail interactively from mutt... OK, that's a bad example now that mutt has built-in SMTP client capabilities. -- Grant
Re: [gentoo-user] Re: mail cannot send emails (trying to use it with smartd)
On 4/2/20 10:47 PM, Caveman Al Toraboran wrote: wow, didn't know sendmail's syntax was so hard it needed a compiler :D thank you very much for your help. highly appreciated. I think that's an inaccurate statement. First, m4 is a macro package, not a compiler. Second, the macros are used to reduce the size of the macro config (mc) file to something manageable instead of hundreds of lines that are easy to cause a syntax mistake. Third, the macros made the mc file more semantics in nature instead of Sendmail config file (cf) specific. Meaning that one line allows changing values in multiple places that use the common information, like the domain name(s). My home system has a 33 line mc file (including comments) that expands to 1915 lines of cf file (including comments). Both the input and output is ASCII text. Humans can read both of them. Humans that understand cf syntax can read both files. This is far from turning something into byte code. -- Grant. . . . unix || die
Re: [gentoo-user] Re: mail cannot send emails (trying to use it with smartd)
On 4/2/20 8:23 PM, Grant Edwards wrote: It's very powerful but the configuration file format is almost impossible to understand, so people developed an m4 application that accepted a _slightly_ less cryptic language and generated the sendmail configuration file. The configuration file is far from impossible to understand. Calling it a configuration file is sort of a misnomer in that it's more of a programing language than a configuration file. Some have even said that it's Turning complete. It does have some things going against it though. 1) It is highly dependent on the tab character (one or more) being used to separate two parts of specific lines. This is easily visually lost as well as frequently lost with bad copy & paste. But it's trivial to know about and correct. (Compare that to Python that has lost all of it's leading white space.) 2) The "config" file is really multiple sub-routine that are called in specific instances and do very specific things. You must know which one you need to use when. 3) Sendmail's logic is different than what most people are used to. It's not quite RPN. But it's different enough that many people have problems with it. I think it's more like relay logic. Each line in a rule-set has an opportunity to apply to the current working space. Each line can modify the working space, possibly directly or indirectly by calling other things. If you aren't careful, the working set can be inadvertently matched by multiple lines (rules). As such, the working set is specifically modified so that other lines don't match if they should not. There is a lot of pattern manipulation to keep track of and it takes practice. I'm sure that there are others. But those are the big ones that come to mind at the moment. At it's peak back in the early 90's there were approximately five people in the world who actually understood sendmail, and none of them ever worked where you did. I don't know about the '90s, but I do know that in the '00s and '10s, your statement is exaggeration to the point of being hyperbole. I have witnessed an active Sendmail support community for about 15 of the last 20 years. Most of that support was via the comp.mail.sendmail newsgroup. The rest of us stumbled in the dark using the finely honed cargo-cult practices cutting and pasting random snippets out of example configurations to see what happened. Your lack of use of resources doesn't mean that said resources wasn't available. Usually what happed is that mail was lost or flew around in a loop multiplying to the point where a disk parition filled up. Yep. That said, sendmail has features that no other MTA has. For example, it can transfer mail using all sorts of different protocols that nobody uses these days. It's not just (on the wire) protocols that sendmail supports. Many of which are effectively obsolete save for specific microcosms. Sendmail also supports interfacing with other programs in a very flexible manner. It is fairly easy to have Sendmail support Mailman (et al.) in such a way as that you don't need to change anything on the email server when adding or removing mailing lists. No, I'm not talking about automated alias generation. There is no need for alias generation when Sendmail and Mailman are connected properly. Sendmail quite happily supports LMTP into local mail stores / programs. This is quite handy when you want something like a recipient's sive filter to be able to reject a message. Back in the 90's a number of replacement MTAs were developed such as qmail, postfix, exim, etc. When you installed one of these, (instead of the classic sendmail), they would usually provide an executable file named "sendmail" that accepted the same command line arguments and input format that the original did. That allowed applications who wanted to send email to remain ignorant about exactly what MTA was installed. Yep. The "sendmail" command has become a de facto industry standard that most MTAs emulate. -- Grant. . . . unix || die
Re: [gentoo-user] Re: mail cannot send emails (trying to use it with smartd)
On 4/2/20 6:26 PM, Caveman Al Toraboran wrote: though i'm a bit curious about sendmail (if your time allows). Feel free to ask questions about sendmail. I'll do my best to answer. do you mean the ebuild "sendmail"? or the command "sendmail"? In this context, ebuild as a reference to the MTA known as Sendmail. i used to think it's a swiss-army kind of tool (used to call "sendmail" in my cgi scripts decades ago without any infrastructure; by just directly zapping recipient's smtp gateway). Yes, Sendmail can e a Swiss Army knife. That's one of it's advantages. That's also one of it's disadvantages. Your historic use of Sendmail is an example of using a local queuing MTA. Your CGI scripts passed the message off to the queuing MTA and didn't need to worry about what to do if the remote mail server couldn't be reached. You didn't have to bother with detecting the error and reporting it to the end user via the web form. You didn't have to bother with storing information for later retry. The local queuing MTA did all of that for you. -- Grant. . . . unix || die
Re: [gentoo-user] Re: mail cannot send emails (trying to use it with smartd)
On 4/2/20 8:18 AM, Grant Edwards wrote: Then DO NOT use sendmail. Sendmail is only for the ultra-professional who already knows how to configure it (not joking). I take exception to that for multiple reasons: 1) Bootstrapping - you can't learn something without actually using it. 2) I've been quite happily using Sendmail on multiple platforms for 20 years. 3) Sendmail is capable of working in every single email scenario that I've seen in said 20 years. The same can't be said for other MTAs. If all your mail gets sent via a single SMTP server at your ISP (or wherever), then Sendmail is definitely not what you want. That depends. If you have a fleet of Sendmail servers, chances are good that you will prefer to re-use the same solution, even in small / simple role. Read: The Devil that you know. If you don't need local queueing (so you can send email while offline), then I'd pick ssmtp. (20)ProTip: You really do want local outbound queueing /somewhere/ on box. You don't want your web application to error out when it can't reach it's SMTP server. You don't want t loose that receipt for the transaction that the customer just made. Can you regenerate the receipt? ;-) You can have each application do it's own queuing / re-sending, r you can rely on the local MTA to do it for you. Where do you want the queuing complexity? A local queuing MTA is simple and solves a LOT of problems. If you want something even more sophisticated (e.g. something that can deliver mail locally and receive inbound mail using SMTP), then postfix or exim would probably the be the next step up: I would add Sendmail to the front of that list. But I might be biased. I've read claims that there are things you can do with sendmail that Exim or Postfix can't handle, but I'm not sure I believe it. I am sure I'll never need to do any of those things. I don't know Exim or Posfix well enough to comment with any authority. I do know that I Sendmail, Postifx, and Exim all handle (E)SMTP without any problem. I think that Postfix can be made to handle UUCP. Sendmail has four different ways that it can use UUCP, built in. I have no idea about Exim. Sendmail can easily work with other protocols, Mail11, fax, pager, news gateway (send and / or receive). It's also easy to add additional protocols without needing to recompile anything, only configuration changes are needed. I don't know where in the list I lost Postfix and / or Exim, but I expect that they didn't make it through the last paragraph. For a long time, Sendmail did have one claim to fame that no other MTA had. Specifically Sendmail had the ability to use milters (mail filters) and filter email during the SMTP transaction. It's trivial to hook ClamAV, SpamAssassin, and just about anything you want into checking mail during the SMTP transaction such that you have the ability to reject, not bounce, the message. Thus making the sending host be responsible for it. I'm sure there are many more and far more esoteric things that Sendmail can do. Though I doubt that many of them are as germane today as they were in the mid '90s. I was recently playing with the ability to have a domain spread across multiple servers and configuring Sendmail to route messages to the proper back end server, a feature known as LDAP routing. Yes, Sendmail has a lot of power, much like unix. It will happily hand you a loaded gun, encourage you to point it at your feet and empty the magazine as fast as possible. When you're done, it will help you reload and do it again. If you know how to wield this power Sendmail can be a wonderful tool that can be used in all of the scenarios described in this thread. It's also relatively trivial to have Sendmail be a basic queuing outbound only MTA that uses ISP smart hosts to provide SMTP services to local applications. But I really object to the "ultra-professional" comment, because everybody has to start somewhere. -- Grant. . . . unix || die smime.p7s Description: S/MIME Cryptographic Signature
[gentoo-user] Re: Idea for Videoconferencing (Video part)
On 2020-04-03, Petric Frank wrote: > Idea: Use two cameras positioned left and right or top and bottom of the > screen. Combine the two video streams and generate a third stream having a > virtual camera positioned at the middle of the screen. Can you explain how that "combine" would be done in real time? It sounds like some pretty sophisticated real-tiem 3D modelling and CGI to me... -- Grant
[gentoo-user] Re: mail cannot send emails (trying to use it with smartd)
On 2020-04-03, Caveman Al Toraboran wrote: > though i'm a bit curious about sendmail (if your > time allows). do you mean the ebuild "sendmail"? Yes. I meant the program provided by the "sendmail" ebuild. That is the MTA named "sendmail" that's been around since the universe cooled enough to form atoms: https://en.wikipedia.org/wiki/Sendmail For many years it was the de-facto standard MTA for Unix systems. It's very powerful but the configuration file format is almost impossible to understand, so people developed an m4 application that accepted a _slightly_ less cryptic language and generated the sendmail configuration file. At it's peak back in the early 90's there were approximately five people in the world who actually understood sendmail, and none of them ever worked where you did. The rest of us stumbled in the dark using the finely honed cargo-cult practices cutting and pasting random snippets out of example configurations to see what happened. Usually what happed is that mail was lost or flew around in a loop multiplying to the point where a disk parition filled up. That said, sendmail has features that no other MTA has. For example, it can transfer mail using all sorts of different protocols that nobody uses these days. Back in the 90's a number of replacement MTAs were developed such as qmail, postfix, exim, etc. When you installed one of these, (instead of the classic sendmail), they would usually provide an executable file named "sendmail" that accepted the same command line arguments and input format that the original did. That allowed applications who wanted to send email to remain ignorant about exactly what MTA was installed. Exim, postfix, qmail and the others were all still full-function MTAs intended for a multi-users system. They could route mail to different destinations (including delivering it locally to a variety of mailbox types) and accept inbound email from other MTAs. While they were far easier to set up and maintain than the original sendmail, they were still massive overkill for a computer that was used only by a single person where reading mail was done via POP/IMAP and all outbound mail was handed over to a single outside mail relay. They often didn't deal well with the fact that they were running on a host that didn't have a "real" hostname that meant anything to the outside world, and that the local hostname had nothing to do with the email addresses of the user(s). For that use case, simple MTAs like msmtp, ssmtp, and nullmailer were written that don't handle incoming mail at all, and where all outbound mail is sent to a single mail relay host. The first two don't even do any queuing: if you try to send mail when your relay host is unreachable, then the send simply fails. These too, when installed, provide an executable named "sendmail" that accepts the same command line options and input format as the original.
[gentoo-user] Re: SDD, what features to look for and what to avoid.
On 2020-04-02, Mark Knecht wrote: > On Thu, Apr 2, 2020 at 7:29 AM Grant Edwards > wrote: >> On 2020-04-02, Dale wrote: >> >> I've been wondering if older fairly generic motherboards (7-8 years >> old) from the likes of Asrock would be able to boot from an NVMe card >> using a PCIe adapter like this: >> >> > https://www.amazon.com/QNINE-Adapter-Express-Controller-Expansion/dp/B075MDH28Y >> >> I suspect not... > The questions section says it will only boot from the card if the BIOS > supports the MB booting from NVMe drives Obvioiusly, boards can only boot from devices that are supported by the BIOS. The question is when did NVMe support in BIOSes become common? -- Grant
[gentoo-user] Re: SDD, what features to look for and what to avoid.
On 2020-04-02, Dale wrote: > Oooo. That nvme speed is fss. > Do you happen to have the OS on that and if so, just how fast does it go > from BIOS or Grub to bootup complete? I'm almost scared to ask. o_O I've been wondering if older fairly generic motherboards (7-8 years old) from the likes of Asrock would be able to boot from an NVMe card using a PCIe adapter like this: https://www.amazon.com/QNINE-Adapter-Express-Controller-Expansion/dp/B075MDH28Y I suspect not... -- Grant
[gentoo-user] Re: mail cannot send emails (trying to use it with smartd)
On 2020-04-02, Caveman Al Toraboran wrote: > On Wednesday, April 1, 2020 10:20 AM, Ian Zimmerman > wrote: > >> Normally the mail program works by execing /usr/sbin/sendmail to to the >> hard part :-P Do you have it? It doesn't have to be the "real" >> sendmail - any MTA program you install usually makes a symlink from >> /usr/sbin/sendmail to itself. > > i got sendmail around. but didn't do any configurations. > > what's the minimum configuration to do? i'm really not planning > anything ultra-professional. Then DO NOT use sendmail. Sendmail is only for the ultra-professional who already knows how to configure it (not joking). If all your mail gets sent via a single SMTP server at your ISP (or wherever), then Sendmail is definitely not what you want. > i hope it to send an email the shameless style (just send an smtp > message to the smtp server where my email is hosted) If you don't need local queueing (so you can send email while offline), then I'd pick ssmtp. NB: ssmtp is a bit old and in need of a ebuild maintainer, so might not be my first choice if I wasn't already familiar it. https://wiki.archlinux.org/index.php/SSMTP Nullmailer is also a good option with the added bonus of queueing outbound mail while you're offline.: https://github.com/bruceg/nullmailer https://wiki.archlinux.org/index.php/Nullmailer If you want something even more sophisticated (e.g. something that can deliver mail locally and receive inbound mail using SMTP), then postfix or exim would probably the be the next step up: https://wiki.gentoo.org/wiki/Postfix https://wiki.archlinux.org/index.php/Postfix https://wiki.gentoo.org/wiki/Exim https://wiki.archlinux.org/index.php/Exim I've read claims that there are things you can do with sendmail that Exim or Postfix can't handle, but I'm not sure I believe it. I am sure I'll never need to do any of those things. -- Grant
[gentoo-user] Re: simple image annotation software
On 2020-04-02, Grant Edwards wrote: > On 2020-04-02, Ashley Dixon wrote: > >> If your original images are screenshots, I'd recommend 'flameshot'. > > They're not. They're jpeg files produced by running photos though > some Imagemagick 'convert' operations. Does that mean flameshot can't > be used to annotate them? I installed flameshot (required no additional packages be installed). It can not be used to annotate existing image files. There's a long list of requests for that feature on the GitHub site, but apparently no progress on that front. According to some of those comments, shutter can do it. Personally, I don't really "get" the need for the capture functionality. ImageMagick's 'import' command works for me... -- Grant
[gentoo-user] Re: simple image annotation software
On 2020-04-02, Ashley Dixon wrote: > If your original images are screenshots, I'd recommend 'flameshot'. They're not. They're jpeg files produced by running photos though some Imagemagick 'convert' operations. Does that mean flameshot can't be used to annotate them? > Unfortunately, it requires Qt, but you've likely already got that if you run a > G.U.I.-based configuration. I've got some minimal Qt libraries (e.g. what it takes to run Wireshark and VLC). > https://gpo.zugaina.org/media-gfx/flameshot I'll try one of those ebuilds... -- Grant
[gentoo-user] Re: simple image annotation software
On 2020-04-01, Michael wrote: > On Wednesday, 1 April 2020 15:42:48 BST Grant Edwards wrote: >> What application would people recommed to add some simple annotations >> to image files? > I would be mentioning LO Draw, which you have considered. I tried LO Draw — it works OK, but it's a bit clumsy: 0. Create new "draw" document 1. Insert the photo 2. Change photo size to "actual" 3. Edit page size to match photo size and set margins to 0 4. Edit photo position to set to 0,0 5. Add annotations 6. Export page to jpg/png -- Grant
[gentoo-user] simple image annotation software
What application would people recommed to add some simple annotations to image files? For example, I'd like to add a few arrows, some text, and maybe a box or oval or two. I sometimes do stuff like that from the command line using ImageMagick's "convert", but drawing arrows with that is pretty painful. I found x11-misc/shutter, which I think can do it, though I don't need the screenshot capability. However, shutter pulls in 50+ other packages as dependencies (including a load of gnome stuff) that I don't really want. Are there any other options? I could probably figure out how to do it in LibreOffice draw, but that seems suboptimal. -- Grant
[gentoo-user] Re: Still questions concerning a reasonable setup of a new system: UEFI &&/|| MTBR
On 2020-03-28, tu...@posteo.de wrote: > The SSD: > > 1.) From the pure technical point of view: Is it possible to > format the SSD with a good ole MTB and boot the system > from it and mount the hardisc (GPT) as usual? Yes. From that point of view, there's no functional difference between SDD and spinning platters. > 2.) Is this reasonable? Using two different label schemes seems overly complex. I'd use GPT for both, just to keep things consistent. -- Grant
[gentoo-user] Re: VLC stopped working: XML reader not found
On 2020-03-22, Grant Edwards wrote: > The only other Qt GUI app I have installed (AFAICT) is wireshark. It > worked fine a few days ago, and now it segfaults too. > > ... I installed qterminal as a quick test, and it segfaults also. I checked another system that was also upgraded and VLC works fine there. Back on the first system I tried emerge --dep-clean, and it complained about the old 5.13 qt package versions being missing. So I did emerge --update --newuse --deep --with-bdeps=y @world And all of the 5.14 qt package got emerged again. Now Qt apps work. I don't know why they "emerge -auvND world" command that originally did the upgrade didn't work right. -- Grant
[gentoo-user] Re: VLC stopped working: XML reader not found
On 2020-03-22, David Abbott wrote: >>> VLC suddenly stopped working this week. Last week it worked fine, but >>> now I get this: >>> >>> $ vlc >>> VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7) >>> [55814c41d3e0] main xml reader error: XML reader not found >>> [55814c399580] main libvlc: Running vlc with the default interface. >>> Use 'cvlc' to use vlc without interface. >>> Segmentation fault >>> >>> I re-emerged it, but no change. Why is VLC suddenly looking for an >>> XML reader and segfaulting when it doesn't find one? [doesn't appear to be related to recent addition of second monitor] > Is the xml use flag enabled? No, it wasn't. I rebuilt vlc with the xml flag enabled. No error message about XML reader not found, but it still segfaults. Now that I think about it, I can't swear that it didn't always complain about not findig an XML reader. It didn't used to segfault though. :) Looking at the emerge logs, I see that a bunch of QT5 stuff got upgraded two days ago. My current assumption is that the qt5 upgrade is the culprit. Sure enough, starting vlc with the ncurses interface works fine. VLC without the xml use flag also works fine when run with the ncurses interface -- the XML reader not found message is back again. I suspect it's always been there, and I just never noticed until VLC started segfaulting. The only other Qt GUI app I have installed (AFAICT) is wireshark. It worked fine a few days ago, and now it segfaults too. ... I installed qterminal as a quick test, and it segfaults also. I guess I'll have to start rolling back Qt packages on Monday when I need Wireshark to work again. :/ -- Grant
[gentoo-user] Re: VLC stopped working: XML reader not found
On 2020-03-22, Grant Edwards wrote: > VLC suddenly stopped working this week. Last week it worked fine, but > now I get this: > > $ vlc > VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7) > [55814c41d3e0] main xml reader error: XML reader not found > [55814c399580] main libvlc: Running vlc with the default interface. > Use 'cvlc' to use vlc without interface. > Segmentation fault > > I re-emerged it, but no change. Why is VLC suddenly looking for an > XML reader and segfaulting when it doesn't find one? > > A few days ago, I did plug in a second monitor and used xrandr to > configure a single display with two screens. Does that have something > to do with VLC suddenly blowing a gasket about XML? It doesn't appear to be related. I switched back to my old single-monitor configuration, and VLC still segfaults the same way. -- Grant
[gentoo-user] VLC stopped working: XML reader not found
VLC suddenly stopped working this week. Last week it worked fine, but now I get this: $ vlc VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7) [55814c41d3e0] main xml reader error: XML reader not found [55814c399580] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. Segmentation fault I re-emerged it, but no change. Why is VLC suddenly looking for an XML reader and segfaulting when it doesn't find one? A few days ago, I did plug in a second monitor and used xrandr to configure a single display with two screens. Does that have something to do with VLC suddenly blowing a gasket about XML? -- Grant
[gentoo-user] Re: SDD, what features to look for and what to avoid.
On 2020-03-17, David Haller wrote: > And they produce and use their own controllers, so they additionally > know the ins and outs of those, i.e. they can easily optimize the > whole SSD from Flash-Chip over controller up to the firmware... Yep, that was definitely the gist of my (wishful) thinking when I decided on Samsung. > AFAIgathered, Samsung is the only one producing the whole product. > Albeit, I heard rumours, that the various divisions of Samsung could > as well be different manufacturers[1], I've worked with smaller corporations where various seemingly closely-related divisions might as well be on different planets. But at least there's chance that Samsung products can benefit from the vertical/horizontal integration. As it says on the coffee mug my neice gave me for christmas: Hold on, let me overthink this. -- Grant
[gentoo-user] Re: SDD, what features to look for and what to avoid.
I've put five Samsung SATA drives into various things in the past few years with flawless results. Samsung is one of the big manufacturers of flash chips, so I figure they should always end up with 1st choice quality chips in their own drives... -- Grant Edwards grant.b.edwardsYow! Where's the Coke at machine? Tell me a joke!! gmail.com
[gentoo-user] Re: SDD, what features to look for and what to avoid.
On 2020-03-17, Andrea Conti wrote: > "NAND flash" (as opposed to "NOR flash") refers to the way memory cells > are organized and connected. See for example > https://www.embedded.com/flash-101-nand-flash-vs-nor-flash/ > > AFAIK all SSDs use some variant of NAND flash. Correct. NOR flash density is far lower than NAND flash. NOR is only used for small applications (e.g. BIOS, small embedded systems). Anytime you see sizes quoted in 'Gb' rather than 'Mb', you're certainly talking about NAND. -- Grant
[gentoo-user] Re: SDD strategies...
On 2020-03-17, Neil Bothwick wrote: > Same here. The main advantage of spinning HDs are that they are cheaper > to replace when they fail. I only use them when I need lots of space. Me too. If I didn't have my desktop set up as a DVR with 5TB of recording space, I wouldn't have any spinning drives at all. My personal experience so far indicates that SSDs are far more reliable and long-lived than spinning HDs. I would guess that about half of my spinning HDs fail in under 5 years. But then again, I tend to buy pretty cheap models. -- Grant
[gentoo-user] Re: Python: ebuilds vs. pip3 install --user
On 2020-03-11, Marc Joliet wrote: > Am Mittwoch, 11. März 2020, 18:54:43 CET schrieb Grant Edwards: >> [...] >> Q: Under what conditions will having a second installation of a Python >>library under .local cause problems? > > IIUC you shouldn't have any problems, simply because ~/.local/ is not part of > the system python's module search path: > > % python3 > Python 3.6.10 (default, Feb 26 2020, 01:09:02) > [GCC 9.2.0] on linux > Type "help", "copyright", "credits" or "license" for more information. >>>> import sys >>>> sys.path > ['', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/ > lib-dynload', '/usr/lib64/python3.6/site-packages'] Except it is for me (and I don't know how it gets there): $ which python /usr/bin/python $ file /usr/bin/python /usr/bin/python: symbolic link to python-exec2c $ file /usr/bin/python-exec2c /usr/bin/python-exec2c: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, stripped $ set | grep -i py $ python Python 3.6.10 (default, Feb 26 2020, 16:43:12) [GCC 9.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path ['', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/home/grante/.local/lib64/python3.6/site-packages', '/usr/lib64/python3.6/site-packages', '/usr/lib64/python3.6/site-packages/pygdbmi-0.8.4.0-py3.6.egg', '/usr/lib64/python3.6/site-packages/pcpp-1.1.1-py3.6.egg', '/usr/lib64/python3.6/site-packages/pytz-2019.2-py3.6.egg', '/usr/lib64/python3.6/site-packages/python_dateutil-2.8.0-py3.6.egg'] >>> The entry for /home/grante/.local/lib64/python3.6/site-packages (where pip --user installs things) is in my path. -- Grant Edwards grant.b.edwardsYow! Remember, in 2039, at MOUSSE & PASTA will gmail.combe available ONLY by prescription!!
[gentoo-user] Re: Python: ebuilds vs. pip3 install --user
On 2020-03-11, Mark Knecht wrote: > I cannot really answer your questions about multiple python versions as > you've outlined it. FWIW, I'm not asking about different versions of Python. I'm asking about different versions of Python libraries — all of which were installed for the same version/instance of Python (3.6 in my example). > However I've used virtualenv (and others) for this sort of thing > where I want a specific program to run with a specific version of > python. It's easy to use and keeps everything isolated very > well. The downside of it is that you have to enter/exit the > environment to use the program but I've had 5 or 6 versions of > python installed at one time and it works fine for what it does. That was what I was going to do if the "pip --user" method didn't work well. In my exaple it's a unix-style command-line utility, so wrapping it a Bash script that activates the venv should work fine. -- Grant Edwards grant.b.edwardsYow! You mean you don't at want to watch WRESTLING gmail.comfrom ATLANTA?
[gentoo-user] Python: ebuilds vs. pip3 install --user
Background: a utility written in Python that I use regularly (weasyprint) was out-of-date and is being dropped from Gentoo's package database. I tried (and faield) to creaate an ebuild for a more recent version. So I ended up doing $ pip3 install --user weasyprint That installed weasyprint and a few depdendancies (tinycss2, defusedxml, ciarocffi) under ~/.local/{bin,lib64}. Question: Can those dependancies installed under ~/.local cause problems for things that were installed using standard ebuilds which require older/other versions of those libraries (which were installed using standard ebuilds)? For example, weasyprint requires cairosvg 2.4, and 2.4.2 was installed under .local via the pip3 command shown above. My stable cairosvg is 2.0.3 and it is installed in the usual "system" location /usr/lib64/python3.6/site-packages by the normal "emerge" process. [IIRC, at one point I tried unmasking 2.4.2, but that caused a cascade of other problems.] Q: Under what conditions will having a second installation of a Python library under .local cause problems? -- Grant Edwards grant.b.edwardsYow! If I felt any more at SOPHISTICATED I would DIE gmail.comof EMBARRASSMENT!
[gentoo-user] Re: New laptop - AMD or Intel?
On 2020-03-09, Mark Knecht wrote: > Would that be the consensus of the group here? After decades of buying AMD, over the past 5 years or so all my machines gradually shifted to Intel. So you can probably bet _that's_ not what you want... -- Grant Edwards grant.b.edwardsYow! I know th'MAMBO!! at I have a TWO-TONE CHEMISTRY gmail.comSET!!
[gentoo-user] Re: Nice job,
On 2020-03-08, Alan Grimes wrote: > Nikos Chantziaras wrote: >> On 08/03/2020 03:22, Alan Grimes wrote: >>> Cannot mix incompatible Qt library (version 0x50e00) with this library >>> (version 0x50e01) >> >> RTFM when using Gentoo. > > Which manual? I haven't changed my behavior regarding updating my system > in fifteen years. =| Perhaps that's the problem? ;) This appears to be a KDE/Qt problem. All of the terminals I use work fine, but I don't run KDE. -- Grant
[gentoo-user] Re: New Intel vulnerability?
On 2020-03-07, Rich Freeman wrote: > In this case we're talking about a TPM where a threat model > is an attacker with physical access that is trying to play games with > the busses/etc, and as such it is important that it initialize using > code in ROM that is known-good. Note that the person behind the attack doesn't need physical access. If an attacker can shove malicious firmware into something like a PCI card with DMA bus-master capabilities, then on power-up that card can carry out the attack. However, getting the firmware into the PCI card would probably require root privledges, so there would need to be a pre-existing privledge-elevation vulnerability. I think. :) -- Grant
[gentoo-user] Re: CPU speed scaling quirk (Intel; Dell i660)
On 2020-03-05, madscientistatlarge wrote: > To reduce problems with emitted Radio Frequency Interference, most > processors now use a clock that varies in speed over time. This > doesn't really reduce the emitted energy, but because it is always > changing frequency interference with other devices tends to be > intermittent, and Ideally unnoticeable. Also the oscillators used > in computers are not the most precise, they don't need to be and > precision cost. The bios may let you toggle this deliberate > frequency variation and off, which I suppose could be critical in > some real-time cases, or a varying clock may, in some cases cause > objectionable interference where as the fixed clock, may not, YMMV. A clock that varies like that is usually referred to has a "spread-spectrum" clock. If properly implimented it has no measurable effect on software execution (even for real-time cases) because the variation is done so that the average frequency is "constant" and the deviation from that average sums to 0 for any significant period of time (anything over a few hundred microseconds). The variation of the average over temperature and supply voltage is usually far more significant. -- Grant Edwards grant.b.edwardsYow! PIZZA!! at gmail.com
Re: [gentoo-user] OT: looking for email provider
On 2/6/20 8:56 PM, John Covici wrote: I do run my own mail server for years, but I would like to know how to run those "hygene features". I do have spf, but that is about it -- maybe this should be another thread, but I want to keep doing this and be sure of having my mail delivered to where its going which sometimes gmail gives me problems. I don't know if the gentoo-user mailing list is the is the best location to have this discussion. If you think it is, start a new thread and I'll reply with more information about what I'm doing. Or, feel free to email me directly and I'll share the information off-list. -- Grant . . . unix || die
Re: [gentoo-user] OT: looking for email provider
On 2/6/20 3:36 PM, Laurence Perkins wrote: Sure you can set up just a simple email server Having run a personal email server for 20 years, including all contemporary hygiene measures, I don't think "simple" and "email server" go together any more. I can rattle off most of what I'm doing in short order. But when doing so takes 5+ minutes, I think we're beyond the realm of "simple". -- Grant . . . unix || die
[gentoo-user] Re: External hard drive and idle activity
On 2020-01-06, Dale wrote: > Finally got around to rebooting. It was a experience for sure. X > wouldn't come up, the plasma thingy doing its thing. Jeepers. No > wonder I hate rebooting. I try to remember to reboot all of my machines once a month or so when I've got some spare time (especially after significant updates). Otherwise, something will demand/cause a reboot in the middle of something urgent and then you know what happens... -- Grant Edwards grant.b.edwardsYow! for ARTIFICIAL at FLAVORING!! gmail.com
[gentoo-user] revdep-rebuild ignoring SEARCH_DIRS_MASK
Has anybody else noticed that revdep-rebuild recently started to ignore SEARCH_DIRS_MASK? I have it set thusly in make.conf SEARCH_DIRS_MASK="/usr/lib/digilent/waveforms" and that used to prevent revdep-rebuild from reinstalling sci-electronics/digilent-waveforms every time (it's a binary install that has it's own version of a bunch of shared libraries). Sometime in past month or so, revdep-rebuild started to reinstall it every time despite the SEARCH_DIRS_MASK. AFAICT, the layout of the waveforms package hasn't changed. When I add --verbose to the revdep rebuild, all of the files that trigger the reinstall appear to be under the masked directory. -- Grant Edwards grant.b.edwardsYow! On the road, ZIPPY at is a pinhead without a gmail.compurpose, but never without a POINT.
Re: [gentoo-user] External hard drive and idle activity
On 1/1/20 5:09 PM, Dale wrote: Howdy, Hi, As some may recall, I have a 8TB external SATA hard drive that I do back ups on. Usually, I back up once a day, more often if needed. Usually I turn the power on, mount it, do the back ups, unmount and turn the power back off. Usually it is powered up for 5 minutes or so. When I unmount it tho, I sometimes notice it is still doing something. I can feel the mechanism for the heads moving. It has a slight vibration to it. Questions are, what is it doing and should I let it finish before powering it off? I'd assume that once it in unmounted, the copy process is done so the files are safe. I guess it is doing some sort of internal checks or something but I'm not sure. There might be some activity for up to 30 seconds after umount finishes and returns to the command prompt. Note: umount will normally block until buffers are flushed to disk. Is it safe to turn it off even tho it is doing whatever it is doing? I wouldn't. Should I wait? I would. Does it matter? Maybe. Is the drive SATA connected or USB connected to the machine? In some ways it doesn't matter. You can tell the kernel to eject the drive. Once that finishes, there is no active remnants of the drive in kernel. 5–15 seconds after that and you should be quite safe to power the drive off. echo 1 > /sys/class/block/$DEVICENAME/device/delete That will cause the kernel to gracefully disconnect the drive. Thanks. :-) -- Grant. . . . unix || die -- Grant. . . . unix || die
Re: [gentoo-user] Frontier ADSL modem and IP address
On 12/30/19 1:04 PM, Dale wrote: Is there a way to find the IP for this thing? Try running a network sniffer as you reboot it. Most pieces of network equipment will send out some sort of broadcast requests that will give some hint as to how they are configured. At least what subnet they are in. -- Grant. . . . unix || die -- Grant. . . . unix || die
[gentoo-user] Re: trying to upgrade some old, never upgraded image for an embedded system …
On 2019-12-18, (Nuno Silva) wrote: > The EAPI problem is in a package that is pulled as a dependency of > portage. > > Unless there's a simple hack to solve this, you will need to use older > ebuilds or split the update in several steps, using older versions of > the portage tree. The following notes show a way of achieving this: > > https://wiki.gentoo.org/wiki/User:NeddySeagoon/HOWTO_Update_Old_Gentoo In my experience of situations like this, it's often a lot less work to just backup /etc and user home directories and re-install from scratch. That's not to say I didn't once battle my way through an upgrade like that just to see if I could do it... -- Grant Edwards grant.b.edwardsYow! I'm continually AMAZED at at th'breathtaking effects gmail.comof WIND EROSION!!
[gentoo-user] Re: Mounting USB sticks automagically.
On 2019-12-17, Dr Rainer Woitok wrote: > Can someone please guide me to rig up my box so it again mounts plugged > in USB sticks automatically to "/run/media/.../"? I do it by manually writing udev rules that watch for specific devices and mount them at particular paths. On most systems, it was probably handled by the "desktop" enviroment — which you don't mention. -- Grant Edwards grant.b.edwardsYow! Are you mentally here at at Pizza Hut?? gmail.com
Re: [gentoo-user] qemu / nbd
On 12/5/19 12:22 PM, n952162 wrote: But, since it's included in the package, and apparently (from the name) will use a NBD device, then I think the dependency is logical I disagree. QEMU itself does not use NBD. Thus QEMU does not need to depend on qemu-nbd. QEMU uses files on mounted file systems. qemu-nbd is a — perhaps questionably named — utility that allows QEMU disk images / files to be accessed as if they were NBDs. Not the other way around. qemu-nbd does not allow QEMU to use NBDs. As I understand it, nothing about /QEMU/ is dependent on any NBD support. -- Grant. . . . unix || die
Re: [gentoo-user] qemu / nbd
On 12/5/19 12:50 PM, Neil Bothwick wrote: No, but since it is provided by the ebuild, the ebuild should check that the target system is capable of supporting it. The qemu ebuild already spits out warnings about missing kernel options, not all of them essential, so why not this one too? I think a warning for missing NBD support is absolutely the correct way to go. I think blocking / failing the ebuild is the wrong thing to do. IMHO warning ≠ failure -- Grant. . . . unix || die -- Grant. . . . unix || die
Re: [gentoo-user] nbd ebuild incomplete? [SOLVED]
On 12/5/19 12:33 AM, n952162 wrote: The emerge should have checked for this and failed. I don't think it should fail. I've routinely seen emerge check for various kernel / network / other parameters and issue warnings about things not being the way that the ebuild wants. But the ebuild does successfully emerge. IMHO emerge / ebuild should not refuse to do what I tell it to do just because it doesn't like my custom kernel. The lack of kernel support is /my/ problem. The emerge / ebuild is capable of compiling perfectly fine without the kernel support. Perhaps I'm compiling on a fast machine that is running a different kernel and then copying the utilities to another system that does have the kernel support. -- Grant. . . . unix || die -- Grant. . . . unix || die
Re: [gentoo-user] qemu / nbd
On 12/4/19 11:03 PM, Walter Dnes wrote: nbd is a "Network Block Device" driver along the lines of NFS, but it doesn't handle concurrency. https://nbd.sourceforge.io/ I think I'd liken NBD to iSCSI more so than NFS. Primarily because both NBD and iSCSI provide local block devices that are backed by something across the network. Conversely, NFS provides access to regular files from across the network. You can put a file system on an NBD / iSCSI block device if you want, but you don't have to. Conversely, NFS is a file system and doesn't require putting a file system on top of it. But it's generic, and can handle any *REGULAR* file system, not just NFS. NFS is not a file system in the /typical/ sense. There is no mkfs.nfs. NFS is a file system in the sense that it is mounted and provides access to files. QCOW2, or raw, or whatever, is a special QEMU format. So it requires QEMU libs (i.e. qemu-nbd) to decode QCOW2/RAW. Why doesn't qemu have a dependency on NFS? It doesn't, nor does it need to. Same answer; they're both remote network block device systems that most linux users don't need, NFS is not a block device. and they're both unrelated to the core functionality of QEMU. QEMU can use image files (qcow(2) or raw) on any mounted file system. NFS qualifies as a mounted file system, but that is completely outside of QEMU. Normal file systems can be put on NBD & iSCSI devices and mounted, but that is also completely outside of QEMU. QEMU proper will not use NBD devices (directly) itself. qemu-nbd is a utility to act as a NBD server to allow the Linux kernel to be an NBD client to access qcow(2) image files. qemu-nbd is not /needed/ for normal QEMU operation. -- Grant. . . . unix || die -- Grant. . . . unix || die
[gentoo-user] Re: To all IPv6-slackers among the Gentoo community
On 2019-11-28, Dale wrote: > One more question Grant, if you know. Do you know about the range of > the wireless on this router? You ever tested to see how far say a cell > phone or something will hold a signal and work? I had to move my > printer to the kitchen, a far bedroom was to far away. It would get a > signal at times but not often enough. It's about 60 feet away and > really only two thin interior walls between the router and printer. My > cell phone does better for some reason. I can go outside and be about > 100 feet away and it still update the weather info fairly quickly. I'm > just curious if you have tested this and can share some experience with > how it works in the real world. The range on the TP-Link seems better than average, but I haven't done any real testing. -- Grant
[gentoo-user] Re: To all IPv6-slackers among the Gentoo community
On 2019-11-27, Dale wrote: > Grant Edwards wrote: >> The TP-Link Archer C7 runs openwrt flawlessly: >> >> >> https://www.bestbuy.com/site/tp-link-archer-ac1750-dual-band-wi-fi-5-router-black/5889900.p?skuId=5889900 >> >> A couple months ago when I was shopping, there was also a newer A7 >> version. That still requires a bleeding edge version of OpenWRT. >> So I opted for the older hardware just to be safe. > I was planning to stick with Linksys but I'm liking the one you > linked too. By the way, TP-Link has a store on ebay and it's cheaper > there. Anyway, it supports IPv6 according to the manual IPv6 support is purely a function of the firmware. OpenWRT supports IPv6 and will do so even if the OEM firmware does not. > and it has LEDs on the front it seems. Am I seeing LEDs or am I > seeing something else? Also, does it have some holes on the bottom > that allows wall mounting? I'm trying to find a picture of the > bottom but so far, no luck. I've found pics of everything else tho. Yes, there are LEDs on the front and wall-mount screw holes on the bottom: https://photos.app.goo.gl/V3KL8ZTDPHBUWB726 The C7 and A7 versions are slightly different, so pay attention to that. The C7 is the older, more expensive version that's supported by the released, stable version of OpenWRT. The A7 is newer and requires the latest "snapshot" version of OpenWRT. I can't vouch for the OEM firmware, since I immediately installed OpenWRT on mine. -- Grant
[gentoo-user] Re: To all IPv6-slackers among the Gentoo community
On 2019-11-27, Dale wrote: > I went to your link for Openwrt. I found Linksys E2500 in the list. > When I go search for one, ebay etc, I then find E2500-NP with N600 also > mentioned. Some even say E2500 and E2500-NP in the same description. I > think the N600 has something to do with the wireless stuff. If I want > to use Openwrt, does the -NP make any difference? The link doesn't > mention the -NP version. The N600 affect anything? I'm trying to get a > dual band version since my current cell phone supports both I think but > if I get a new cell phone, it may want the other band, N I think it is > called. :/ The TP-Link Archer C7 runs openwrt flawlessly: https://www.bestbuy.com/site/tp-link-archer-ac1750-dual-band-wi-fi-5-router-black/5889900.p?skuId=5889900 A couple months ago when I was shopping, there was also a newer A7 version. That still requires a bleeding edge version of OpenWRT. So I opted for the older hardware just to be safe. The Linksys WRT3200ACM claims to be designed to run OpenWRT, but I had constant problems with it and finally gave up. For OpenWRT, the usual advice is to avoid Broadcom hardware: the driver support is close-source and rather marginal.
Re: [gentoo-user] cannot compile sendmail in new gentoo installation
On 11/13/19 9:51 PM, John Covici wrote: Hi. I am trying to create a new installation as a chroot from my previous one since I don't have another box at hand and don't want to take this one down for several days to recompile everything. Now I am stuck trying to emerge sendmail. I cannot emerge 8.15.2 nor 8.14.9. The last time I emerged successfully was under gcc 8.3.0 and so I tried emerging that but sendmail will not compile. I have ACCEPT_KEYWORDS="~x86 ~amd64" . I can't comment on the specific problem you're having. But I can say that sendmail-8.15.2-r2 successfully (re)compiled (emerge -DuNe @world) this past weekend on a current system without any problems. -- Grant. . . . unix || die