Re: [gentoo-user] Scanning double sided documents and printing them the same.

2020-12-10 Thread Neil Bothwick
On Thu, 10 Dec 2020 09:20:22 +, Michael wrote:

> > Gscan2pdf has lots of nice features, I used to use it with an ADF and
> > it would scan all the sheets, then I'd turn the stack over and feed
> > it back in and it would scan the other sides and then put all the
> > pages in the correct order.
> > 
> > I have a duplex scanner now, but that was a real time saver.  
> 
> Alternatively, on the CLI you could use imagemagick to convert your
> png, tiff, jpg, etc., to pdf:
> 
> convert scan1.png scan1.pdf
> convert scan2.png scan2.pdf
> 
> Then join the two pdf documents into one with two pages, using
> poppler's pdfunite:
> 
> pdfunite scan1.pdf scan2.pdf scanned.pdf
> 
> Then print them.
> 
> A simple script could batch up the conversion for you, e.g.:
> 
> for file in $(ls -t *.png | head -8); do
>convert $file $file.pdf
> done
> 
> The above will convert 8 png files to pdf, which you can then pdfunite
> into a single multipage pdf document before you print it.

That's pretty much what I used to do. The nice thing about gscan2pdf's
way of doing it is that it copes with the second sides being scanned in
reverse order if you use an ADF. You could script that, but when someone
has already done it, laziness... I mean efficiency, wins.


-- 
Neil Bothwick

Anything is possible if you don't know what
you are talking about.


pgpO9dT_PJw1X.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Scanning double sided documents and printing them the same.

2020-12-10 Thread Michael
On Thursday, 10 December 2020 08:27:33 GMT Neil Bothwick wrote:
> On Wed, 9 Dec 2020 18:09:29 -0600, Dale wrote:
> > I have a flatbed scanner.  It's a old HP 4570.  I been using Skanlite to
> > scan pictures etc and it does a great job.  On occasion tho I have a
> > double sided document.  I know how to scan them, scan one side, flip
> > over and scan the back.  That's easy enough.  How do I print them the
> > same way tho?  Sometimes I use it like a copying machine basically. 
> > Scan in, then print.  I'm not quite sure how to print the double sided
> > stuff in one go tho. 
> > 
> > If someone does the same as me, can you share how you print them two
> > sided?  My printer is duplex so I just need to import both sides and
> > tell it to print.  I'm just not sure what software does that and makes
> > it easy.
> 
> I use gscan2pdf, although it sans to many more file formats. Scan to  2
> page PDF and your printer can print in duplex.
> 
> Gscan2pdf has lots of nice features, I used to use it with an ADF and it
> would scan all the sheets, then I'd turn the stack over and feed it back
> in and it would scan the other sides and then put all the pages in the
> correct order.
> 
> I have a duplex scanner now, but that was a real time saver.

Alternatively, on the CLI you could use imagemagick to convert your png, tiff, 
jpg, etc., to pdf:

convert scan1.png scan1.pdf
convert scan2.png scan2.pdf

Then join the two pdf documents into one with two pages, using poppler's 
pdfunite:

pdfunite scan1.pdf scan2.pdf scanned.pdf

Then print them.

A simple script could batch up the conversion for you, e.g.:

for file in $(ls -t *.png | head -8); do
   convert $file $file.pdf
done

The above will convert 8 png files to pdf, which you can then pdfunite into a 
single multipage pdf document before you print it.


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


Re: [gentoo-user] Scanning double sided documents and printing them the same.

2020-12-10 Thread J. Roeleveld
On Thursday, December 10, 2020 1:09:29 AM CET Dale wrote:
> Howdy,
> 
> I have a flatbed scanner.  It's a old HP 4570.  I been using Skanlite to
> scan pictures etc and it does a great job.  On occasion tho I have a
> double sided document.  I know how to scan them, scan one side, flip
> over and scan the back.  That's easy enough.  How do I print them the
> same way tho?  Sometimes I use it like a copying machine basically. 
> Scan in, then print.  I'm not quite sure how to print the double sided
> stuff in one go tho. 
> 
> If someone does the same as me, can you share how you print them two
> sided?  My printer is duplex so I just need to import both sides and
> tell it to print.  I'm just not sure what software does that and makes
> it easy.
> 
> Thoughts??
> 
> Dale
> 
> :_)  :-) 

My old printer/scanner can scan directly to PDF using the sheetfeeder.
For double-sided, I always ended up with 1 PDF with odd-pages and 1 with even.

There used to be tools available (python-old) that could shuffle these 
together and merge them into a single PDF, which would allow for easy reading/
printing.

Currently, I would have to manually convert these to single-pages and then 
merge them, again, manually.

This is the downside of single-sided sheetfeeders.

If you do the scans manually (eg. no sheetfeeders) you should be able to get 
them all in the correct order in a PDF. The PDF can then be printed double-
sided and you get them the same way. (Just scan them "dummy-mode" and add 
white-pages when the back of the sheet is white)

--
Joost






Re: [gentoo-user] Scanning double sided documents and printing them the same.

2020-12-10 Thread Neil Bothwick
On Wed, 9 Dec 2020 18:09:29 -0600, Dale wrote:

> I have a flatbed scanner.  It's a old HP 4570.  I been using Skanlite to
> scan pictures etc and it does a great job.  On occasion tho I have a
> double sided document.  I know how to scan them, scan one side, flip
> over and scan the back.  That's easy enough.  How do I print them the
> same way tho?  Sometimes I use it like a copying machine basically. 
> Scan in, then print.  I'm not quite sure how to print the double sided
> stuff in one go tho. 
> 
> If someone does the same as me, can you share how you print them two
> sided?  My printer is duplex so I just need to import both sides and
> tell it to print.  I'm just not sure what software does that and makes
> it easy.

I use gscan2pdf, although it sans to many more file formats. Scan to  2
page PDF and your printer can print in duplex.

Gscan2pdf has lots of nice features, I used to use it with an ADF and it
would scan all the sheets, then I'd turn the stack over and feed it back
in and it would scan the other sides and then put all the pages in the
correct order.

I have a duplex scanner now, but that was a real time saver.


-- 
Neil Bothwick

Evolution stops when stupidity is no longer fatal!


pgpZscMjPlg21.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Scanning double sided documents and printing them the same.

2020-12-10 Thread J. Roeleveld
Please do not include me in list-replies. I am subscribed.


On Thursday, December 10, 2020 11:49:06 AM CET Dr Rainer Woitok wrote:
> Joost,
> 
> On Thursday, 2020-12-10 10:28:05 +0100, you wrote:
> > ...
> > My old printer/scanner can scan directly to PDF using the sheetfeeder.
> > For double-sided, I always ended up with 1 PDF with odd-pages and 1 with
> > even.
> > 
> > There used to be tools available (python-old) that could shuffle these
> > together and merge them into a single PDF, which would allow for easy
> > reading/ printing.
> 
>$ pdftk odd.pdf even.pdf shuffle output all.pdf
> 
> Command "pdftk" comes with package "app-text/pdftk".
> 
> Sincerely,
>   Rainer

That's a java-port of the original pdftk.
I actually solved the issue by getting a double-sided ADF scanner.

--
Joost





[gentoo-user] Re: Scanning double sided documents and printing them the same.

2020-12-10 Thread Grant Edwards
On 2020-12-10, Michael  wrote:
> On Thursday, 10 December 2020 08:27:33 GMT Neil Bothwick wrote:
[...]
>> I use gscan2pdf, although it sans to many more file formats. Scan to  2
>> page PDF and your printer can print in duplex.
>> 
>> Gscan2pdf has lots of nice features, I used to use it with an ADF and it
>> would scan all the sheets, then I'd turn the stack over and feed it back
>> in and it would scan the other sides and then put all the pages in the
>> correct order.
>> 
>> I have a duplex scanner now, but that was a real time saver.
>
> Alternatively, on the CLI you could use imagemagick to convert your png, 
> tiff, 
> jpg, etc., to pdf:
>
> convert scan1.png scan1.pdf
> convert scan2.png scan2.pdf
>
> Then join the two pdf documents into one with two pages, using poppler's 
> pdfunite:
>
> pdfunite scan1.pdf scan2.pdf scanned.pdf

There's no need for the two-step process:

$ convert scan1.png scan2.png scanned.pdf

--
Grant





Re: [gentoo-user] cannot emerge chromium 89.0.4343.0

2020-12-10 Thread John Covici
On Wed, 09 Dec 2020 13:58:01 -0500,
David Haller wrote:
> 
> Hello,
> 
> On Wed, 09 Dec 2020, John Covici wrote:
> >On Wed, 09 Dec 2020 11:20:06 -0500, Mark Knecht wrote:
> [..]
> >FAILED: obj/v8/v8_base_without_compiler/intl-objects.o 
> [..] -O2 -pipe -c ../../v8/src/objects/intl-objects.cc -o 
> obj/v8/v8_base_without_compiler/intl-objects.o
> >../../v8/src/objects/intl-objects.cc:52:28: error: static assertion failed: 
> >v8 is required to build with ICU 68 and up
> >   52 | V8_MINIMUM_ICU_VERSION <= U_ICU_VERSION_MAJOR_NUM,
> 
> The wording though is, ahm, backwards. You need dev-libs/icu >= 68.0,
> which is still unstable. Or set '-system-icu' as useflag.
> 
> HTH,
> -dnh
> 
> -- 
> printk(KERN_DEBUG "adintr: Why?\n");
>   linux-2.6.19/sound/oss/ad1848.c
> 
> 

Just to let people know, setting the use flag solved the problem --
Thanks to all who responded.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com



[gentoo-user] new install for a new mainboard?

2020-12-10 Thread n952162

I need a new mainboard.  What will happen if I boot my existing system
on it?

If it would come up, what would need to be (re)emerged, as a minimum?

TIA




Re: [gentoo-user] Scanning double sided documents and printing them the same.

2020-12-10 Thread Dr Rainer Woitok
Joost,

On Thursday, 2020-12-10 10:28:05 +0100, you wrote:

> ...
> My old printer/scanner can scan directly to PDF using the sheetfeeder.
> For double-sided, I always ended up with 1 PDF with odd-pages and 1 with even.
> 
> There used to be tools available (python-old) that could shuffle these 
> together and merge them into a single PDF, which would allow for easy reading/
> printing.

   $ pdftk odd.pdf even.pdf shuffle output all.pdf

Command "pdftk" comes with package "app-text/pdftk".

Sincerely,
  Rainer



Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread Jack

On 2020.12.10 13:11, the...@sys-concept.com wrote:

When I try to select /var/spool/mail I get an error:

The Local Directory path "/var/spool/mail" is invalid. Please pick a
different directory.

drwxrwsr-t  2 root  mail 4096 Dec 10 10:56 mail

Why Thunderbird can not read that directory?
Are you running TBird as root?  Are you sure you don't want one lower  
level directory, such as /var/spool/mail/root or something like that?




[gentoo-user] emerge world, Python, 3.7, 3.8, 3.9

2020-12-10 Thread Andrew Lowe

Hi all,
	Quick question - an "emerge world" produces heaps of work due to Python 
3.7 -> 3.8. Is 3.8 around for a while or are we kicking over to 3.9 in 
the next week or so? In other words, is it worth doing the 3.8 upgrade 
or waiting for 3.9?


Thoughts greatly appreciated,

Andrew



[gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread thelma
When I try to select /var/spool/mail I get an error:

The Local Directory path "/var/spool/mail" is invalid. Please pick a
different directory.

drwxrwsr-t  2 root  mail 4096 Dec 10 10:56 mail

Why Thunderbird can not read that directory?




Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread J. Roeleveld
On 10 December 2020 19:48:41 CET, the...@sys-concept.com wrote:
>On 12/10/2020 11:21 AM, Jack wrote:
>> On 2020.12.10 13:11, the...@sys-concept.com wrote:
>>> When I try to select /var/spool/mail I get an error:
>>>
>>> The Local Directory path "/var/spool/mail" is invalid. Please pick a
>>> different directory.
>>>
>>> drwxrwsr-t  2 root  mail 4096 Dec 10 10:56 mail
>>>
>>> Why Thunderbird can not read that directory?
>> Are you running TBird as root?  Are you sure you don't want one lower
>> level directory, such as /var/spool/mail/root or something like that?
>
>No, I run TBird as user.
>On my other system the running TBird, as user, I can access
>/var/spool/mail dir.
>But on my main system I get an error:
>
>The Local Directory path "/var/spool/mail" is invalid. Please pick a
>different directory.
>
>I check directory permission and they look OK.

Are you in the "mail" group?

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



[gentoo-user] Thunderbird - localmail

2020-12-10 Thread thelma
When I try to read localmail with Thunderbird I get an error:
"The Local Directory path "/var/spool/mail" is invalid. Please pick a
different directory."

I have both directories:
/var/spool/mail/
/var/mail/

It seems like they are the same, same file sizes same files.
I imported all Thunderbird mail from another box. Do I need to delete
local mail account and setup a new one?



Re: [gentoo-user] Scanning double sided documents and printing them the same.

2020-12-10 Thread J. Roeleveld
On 10 December 2020 16:37:31 CET, Rich Freeman  wrote:
>On Wed, Dec 9, 2020 at 7:09 PM Dale  wrote:
>>
>> How do I print them the
>> same way tho?
>
>I didn't see much discussion on the printing side of this - how to
>print two-sided on a one-sided printer.
>
>Step 1 (optional): I created a CUPS queue for such jobs that just
>outputs everything into PDF in a directory.  This lets you easily
>print stuff that isn't already PDF from various computers/OSes and
>accumulate a bunch as printing this way is easier in bulk since it
>involves a bit of manual manipulation.
>
>Step 2 (optional): I have a script that takes each PDF and adds a
>blank page if needed to result in an even number of pages, then
>concatenates all the PDFs into a single file.  I probably stole this
>from somewhere:
>
>#!/bin/bash
>for file in *.pdf
>do
>  #get the number of pages
>  numberofpages=`pdftk "$file" dump_data | sed -e
>'/NumberOfPages/!d;s/NumberOfPages: //'`
>  echo -n "$file" 'has' $numberofpages 'pages, '
>
>  uneven=$(($numberofpages % 2))
>  if [ $uneven == 1 ]
>  then
>echo 'which is uneven - added 1 more'
>tempfile=`mktemp`
>pdftk A="$file" B=/usr/local/share/blank.pdf cat A B1 output
>"$tempfile"
>mv $tempfile $file
>  else
>echo 'which is even'
>  fi
>done
>
>pdftk *.pdf cat output out.pdf
>
>Step 3: To print a single PDF double-sided follow this guide:
>http://duramecho.com/ComputerInformation/HowToDoTwoSidedPrinting/index.html
>
>So the idea is that I accumulate a bunch of documents to print this
>way, combine them such that they can be printed all at once, and then
>do the page flip technique in that guide.  No need to worry about
>individual pages as long as you ID which type of printer you have and
>follow the appropriate process.  However, to print multiple documents
>at once this way they all have to have an even number of pages, which
>is why I have the script.  Concatenating the files with blank pages
>added means that you can just print the whole thing once, flip, then
>print it again, and it all works.

I used to do that manually.
Printing from PDF is supported by my printer directly from USB stick, so never 
did have to play around with scripts like that.

They may come in handy in future though.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] emerge world, Python, 3.7, 3.8, 3.9

2020-12-10 Thread Jack

On 2020.12.10 12:30, Andrew Lowe wrote:

Hi all,
	Quick question - an "emerge world" produces heaps of work due  
to Python 3.7 -> 3.8. Is 3.8 around for a while or are we kicking  
over to 3.9 in the next week or so? In other words, is it worth doing  
the 3.8 upgrade or waiting for 3.9?


Thoughts greatly appreciated,

Andrew
I'm going on the assumption that waiting might save some compile time,  
but the headaches, including remembering what and what not to update  
yet, are not worth the effort.  You might get a better feel by reading  
the relevant posts in the dev mailing list, but my sense is there is no  
reason to expect the next switch to move any more quickly than this one.


Jack



Re: [gentoo-user] new install for a new mainboard?

2020-12-10 Thread Rich Freeman
On Thu, Dec 10, 2020 at 10:23 AM n952162  wrote:
>
> I need a new mainboard.  What will happen if I boot my existing system
> on it?

Is the CPU going to be the same?  The responses already cover the
mainboard itself well.  If the CPU could change then you need to check
your -march in CFLAGS for compatibility (if you set it) and
potentially rebuild anything you don't want to break.

-- 
Rich



Re: [gentoo-user] Re: Scanning double sided documents and printing them the same.

2020-12-10 Thread Michael
On Thursday, 10 December 2020 15:21:05 GMT Grant Edwards wrote:
> On 2020-12-10, Michael  wrote:
> > On Thursday, 10 December 2020 08:27:33 GMT Neil Bothwick wrote:
> [...]
> 
> >> I use gscan2pdf, although it sans to many more file formats. Scan to  2
> >> page PDF and your printer can print in duplex.
> >> 
> >> Gscan2pdf has lots of nice features, I used to use it with an ADF and it
> >> would scan all the sheets, then I'd turn the stack over and feed it back
> >> in and it would scan the other sides and then put all the pages in the
> >> correct order.
> >> 
> >> I have a duplex scanner now, but that was a real time saver.
> > 
> > Alternatively, on the CLI you could use imagemagick to convert your png,
> > tiff, jpg, etc., to pdf:
> > 
> > convert scan1.png scan1.pdf
> > convert scan2.png scan2.pdf
> > 
> > Then join the two pdf documents into one with two pages, using poppler's
> > pdfunite:
> > 
> > pdfunite scan1.pdf scan2.pdf scanned.pdf
> 
> There's no need for the two-step process:
> 
> $ convert scan1.png scan2.png scanned.pdf
> 
> --
> Grant

There was some vulnerability in ghostscript[1] which disabled the above 
conversion - but I can't find the BGO number.  I thought it had been patched 
since then, but my system appears to not have been fixed:

$ convert scan1.jpg scan2.jpg scan.pdf
convert: attempt to perform an operation not allowed by the security policy 
`PDF' @ error/constitute.c/IsCoderAuthorized/422.

[1] https://www.kb.cert.org/vuls/id/332928/

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


RE: [gentoo-user] new install for a new mainboard?

2020-12-10 Thread Raffaele BELARDI
> -Original Message-
> From: n952162 
> Sent: Thursday, December 10, 2020 16:23
> To: gentoo-user@lists.gentoo.org
> Subject: [gentoo-user] new install for a new mainboard?
> 
> I need a new mainboard.  What will happen if I boot my existing system on it?
> 
> If it would come up, what would need to be (re)emerged, as a minimum?

Before switching to the new board I'd check the USB controller and possibly the 
video controller of the new board and if required build a kernel with those 
modules ready for the swap. Other than that you might want to check that both 
mainboards are configured for the same boot system (UEFI vs MBR).

You might get a kernel panic if you don't arrange the SATA cables as they were 
on the old board - unless you were already using UUID or similar in the 
bootloader.


Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread thelma
On 12/10/2020 11:21 AM, Jack wrote:
> On 2020.12.10 13:11, the...@sys-concept.com wrote:
>> When I try to select /var/spool/mail I get an error:
>>
>> The Local Directory path "/var/spool/mail" is invalid. Please pick a
>> different directory.
>>
>> drwxrwsr-t  2 root  mail 4096 Dec 10 10:56 mail
>>
>> Why Thunderbird can not read that directory?
> Are you running TBird as root?  Are you sure you don't want one lower
> level directory, such as /var/spool/mail/root or something like that?

No, I run TBird as user.
On my other system the running TBird, as user, I can access
/var/spool/mail dir.
But on my main system I get an error:

The Local Directory path "/var/spool/mail" is invalid. Please pick a
different directory.

I check directory permission and they look OK.



Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread thelma
On 12/10/2020 11:58 AM, J. Roeleveld wrote:
> On 10 December 2020 19:48:41 CET, the...@sys-concept.com wrote:
>> On 12/10/2020 11:21 AM, Jack wrote:
>>> On 2020.12.10 13:11, the...@sys-concept.com wrote:
 When I try to select /var/spool/mail I get an error:

 The Local Directory path "/var/spool/mail" is invalid. Please pick a
 different directory.

 drwxrwsr-t  2 root  mail 4096 Dec 10 10:56 mail

 Why Thunderbird can not read that directory?
>>> Are you running TBird as root?  Are you sure you don't want one lower
>>> level directory, such as /var/spool/mail/root or something like that?
>>
>> No, I run TBird as user.
>> On my other system the running TBird, as user, I can access
>> /var/spool/mail dir.
>> But on my main system I get an error:
>>
>> The Local Directory path "/var/spool/mail" is invalid. Please pick a
>> different directory.
>>
>> I check directory permission and they look OK.
> 
> Are you in the "mail" group?
> 
> --
> Joost

That was it. Now I can access the /var/spool/mail from TBird
I'm running Posfix and in main.cf I left as default:
home_mailbox = .maildir/

So all the local mail (from emerge would go to this folder), I tired as
root send myself and email: "mailto root" the mail went to my home
folder .maildir
but TBird can not read it.  It complains:

"Unable to locate mail spool file"






Re: [gentoo-user] new install for a new mainboard?

2020-12-10 Thread Rich Freeman
On Thu, Dec 10, 2020 at 4:18 PM n952162  wrote:
>
> On 12/10/20 7:18 PM, Rich Freeman wrote:
> > On Thu, Dec 10, 2020 at 10:23 AM n952162  wrote:
> >> I need a new mainboard.  What will happen if I boot my existing system
> >> on it?
> > Is the CPU going to be the same?  The responses already cover the
> > mainboard itself well.  If the CPU could change then you need to check
> > your -march in CFLAGS for compatibility (if you set it) and
> > potentially rebuild anything you don't want to break.
> >
>
> How would I do that?  Would I have to set up a cross-compiler toolchain?

Nope, just remove -march from your CFLAGS (maybe change it to -mtune)
and emerge -e @world (or @system if you don't care if non-system
packages are broken on the new system).

It is only necessary if you're switching CPUs.  If you're using -march
then your binaries are not guaranteed to run on ANY CPU other than the
one specified, and you'd be surprised how non-backwards-compatible
CPUs can be.  With gcc the -march option tells the compiler that it
can use any instruction it can to optimize things, including ones that
are very uncommon on other CPU models.  -mtune makes optimizations but
the code will run on any CPU for that architecture.

You can try to find a least-common-denominator CPU but it usually
isn't worth the hassle.

-- 
Rich



Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread thelma
On 12/10/2020 02:33 PM, Rich Freeman wrote:
> On Thu, Dec 10, 2020 at 3:29 PM  wrote:
>>
>> On 12/10/2020 11:58 AM, J. Roeleveld wrote:
>>> Are you in the "mail" group?
>>>
>>
>> That was it. Now I can access the /var/spool/mail from TBird
>> I'm running Posfix and in main.cf I left as default:
>> home_mailbox = .maildir/
>>
>> So all the local mail (from emerge would go to this folder), I tired as
>> root send myself and email: "mailto root" the mail went to my home
>> folder .maildir
>> but TBird can not read it.  It complains:
>>
>> "Unable to locate mail spool file"
>>
> 
> So, two things:
> 
> 1.  Normal users should NOT be in the mail group.  This can read/write
> mail to all users and should be used by your mail delivery daemon.
> 2.  If you're using maildir for email, why are you configuring
> Thunderbird for mbox?
> 
> Background: there are two conventions for delivering mail on unix-like
> systems.  mbox uses one file per user in /var/spool/mail/$username.
> maildir uses one file per message in a directory in ~user/.maildir/new
> (for new messages).
> 
> Generally you need to pick which format you're using in the MUA (the
> thing you use to read your mail) and then the path is set
> automatically 99% of the time.
> 
You are correct. I'm suing mbox with TBird.
I'm trying to do it correctly.  Normally I use TBird on one system and
do backup of the whole folder: .thunderbird/ from one system to another,
except the local mail that is stored in /var/smpool/mail

By default TBird is storing local mail in .thunderbird/ it means I would
be copying local mail from one box to another.
By default postifix default directory for local folder is
home_mailbox = .maildir/
If I comment out that line the mail will be stored in /var/smpool/mail
If I removde the "/" from .maildir it will be mbox type. (this is
according to my notes, am I correct)

So I tried with  setting:
home_mailbox = .maildir
(no forward "/", so it should be mbox type).
I've tired sending test email to root, the mail went out but I couldn't
find it in .maildir
 TBird was configured to look in home .maildir  (this would be ideal
solution, but it doesn't work) I'm doing something wrong.

When I set it for /var/spool/mail everything works.



[gentoo-user] Re: new install for a new mainboard?

2020-12-10 Thread Grant Edwards
On 2020-12-10, n952162  wrote:
> I need a new mainboard.  What will happen if I boot my existing system
> on it?

It depends on how "alike" your new and old mainboard are.

Everything might work 100%, or it might crash in the very early stages
of the kernel starting, or anything in-between.


> If it would come up, what would need to be (re)emerged, as a
> minimum?

The minimum would be "nothing".

--
Grant






Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread Rich Freeman
On Thu, Dec 10, 2020 at 5:48 PM  wrote:
>
> I'll stick with "mbox" type.

Ok, we'll go with a traditional mbox mailbox in /var/spool/mail/$user

>
> > Step 2 - We'll confirm postfix is configured appropriately for that
> > choice and that it is delivering mail to the right place using shell
> > commands (cat/etc) and not touch thunderbird.
> >
> I was under impression that dir name shouldn't be a problem as long as
> it is the correct type "mbox"
> Since postifx main.cf had already
> home_mailbox = .maildir
> so I use it, instead of defining my own.

If you want a traditional mbox format then you should unset
home_mailbox, and set:
mail_spool_directory = /var/spool/mail

Then restart postfix.  If you send mail to your user you should see a
file created if it doesn't exist called /var/spool/mail/username,
readable by that user, and if you run cat on it you should see that it
contains your email.

-- 
Rich



Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-10 Thread J. Roeleveld
On 11 December 2020 05:20:55 CET, the...@sys-concept.com wrote:
>How to prevent PC from shutdown when running when power button is
>pressed?
>Is it a function in a BIOS or OS?

When booted, OS.
But the 5s press is BIOS.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



[gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-10 Thread thelma
My system will not boot.

I installed sys-power/acpid  and wanted to double check the kernel 
configuration.
I run: genkernel --menuconfig all
The ACPI option was enabled so I exit the menu but it started to compile the 
kernel so I press CTRL-C (to stop it).

Upon rebooting the X will not start no root login, just a screen with login:
"joseph (none)" 

I bootstrap the PC and run:  genkernel --menuconfig all 
and finish compiling, and I get a message:
-
* Kernel compiled successfully!
* 
* --no-bootloader set; Skipping bootloader update ...
* 
* Required kernel parameter:
* 
*   root=/dev/$ROOT
* 
* Where $ROOT is the device node for your root partition as the
* one specified in /etc/fstab
---

What went wrong?

Here is my fstab:
LABEL=boot  /boot   vfatnoauto,noatime  1 2
UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b   /   ext4noatime 0 1
LABEL=swap  noneswapsw  0 0




Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-10 Thread Grant Taylor

On 12/10/20 9:20 PM, the...@sys-concept.com wrote:

How to prevent PC from shutdown when running when power button is pressed?
Is it a function in a BIOS or OS?


Press and release, in less than four seconds, is the OS.  Four seconds 
or longer is the BIOS.


Try stopping acpid and seeing if that gets you the desired results.



--
Grant. . . .
unix || die



Re: [gentoo-user] new install for a new mainboard?

2020-12-10 Thread n952162

Thank you (all).

On 12/10/20 10:53 PM, Rich Freeman wrote:

On Thu, Dec 10, 2020 at 4:18 PM n952162  wrote:

On 12/10/20 7:18 PM, Rich Freeman wrote:

On Thu, Dec 10, 2020 at 10:23 AM n952162  wrote:

I need a new mainboard.  What will happen if I boot my existing system
on it?

Is the CPU going to be the same?  The responses already cover the
mainboard itself well.  If the CPU could change then you need to check
your -march in CFLAGS for compatibility (if you set it) and
potentially rebuild anything you don't want to break.


How would I do that?  Would I have to set up a cross-compiler toolchain?

Nope, just remove -march from your CFLAGS (maybe change it to -mtune)
and emerge -e @world (or @system if you don't care if non-system
packages are broken on the new system).

It is only necessary if you're switching CPUs.  If you're using -march
then your binaries are not guaranteed to run on ANY CPU other than the
one specified, and you'd be surprised how non-backwards-compatible
CPUs can be.  With gcc the -march option tells the compiler that it
can use any instruction it can to optimize things, including ones that
are very uncommon on other CPU models.  -mtune makes optimizations but
the code will run on any CPU for that architecture.

You can try to find a least-common-denominator CPU but it usually
isn't worth the hassle.





Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-10 Thread J. Roeleveld
On 11 December 2020 07:56:20 CET, Grant Taylor 
 wrote:
>On 12/10/20 9:20 PM, the...@sys-concept.com wrote:
>> How to prevent PC from shutdown when running when power button is
>pressed?
>> Is it a function in a BIOS or OS?
>
>Press and release, in less than four seconds, is the OS.  Four seconds 
>or longer is the BIOS.
>
>Try stopping acpid and seeing if that gets you the desired results.

If you want to be able to disable the whole switch, you could try adding a 
"killswitch".

See: https://youtu.be/yBj02EBj_dQ

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread Rich Freeman
On Thu, Dec 10, 2020 at 3:29 PM  wrote:
>
> On 12/10/2020 11:58 AM, J. Roeleveld wrote:
> > Are you in the "mail" group?
> >
>
> That was it. Now I can access the /var/spool/mail from TBird
> I'm running Posfix and in main.cf I left as default:
> home_mailbox = .maildir/
>
> So all the local mail (from emerge would go to this folder), I tired as
> root send myself and email: "mailto root" the mail went to my home
> folder .maildir
> but TBird can not read it.  It complains:
>
> "Unable to locate mail spool file"
>

So, two things:

1.  Normal users should NOT be in the mail group.  This can read/write
mail to all users and should be used by your mail delivery daemon.
2.  If you're using maildir for email, why are you configuring
Thunderbird for mbox?

Background: there are two conventions for delivering mail on unix-like
systems.  mbox uses one file per user in /var/spool/mail/$username.
maildir uses one file per message in a directory in ~user/.maildir/new
(for new messages).

Generally you need to pick which format you're using in the MUA (the
thing you use to read your mail) and then the path is set
automatically 99% of the time.

-- 
Rich



Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread Rich Freeman
On Thu, Dec 10, 2020 at 5:08 PM  wrote:
>
> So I tried with  setting:
> home_mailbox = .maildir
> (no forward "/", so it should be mbox type).

Ok, your email is a bit confusing so I'm not quite sure what you're
trying to accomplish.  I'm not sure why you'd want to stick an mbox
mailbox in a maildir path.

Let's take this one step at a time and confirm everything is working
properly before going to the next step.

Step 1 - Which mailbox standard do you want to use - mbox or maildir?
The answer to this question should be just one word, but feel free to
google pros/cons of each.

Step 2 - We'll confirm postfix is configured appropriately for that
choice and that it is delivering mail to the right place using shell
commands (cat/etc) and not touch thunderbird.

Step 3 - We'll configure thunderbird to use the appropriate location.

So, step 1 - which of the two formats do you WANT to use?  mbox or
maildir?  I don't care how the old host worked.  I don't care how the
new host is working now.  Which way do you WANT it to work?

-- 
Rich



[gentoo-user] Re: new install for a new mainboard?

2020-12-10 Thread Grant Edwards
On 2020-12-10, J. Roeleveld  wrote:
> On Thursday, December 10, 2020 4:23:09 PM CET n952162 wrote:
>> I need a new mainboard.  What will happen if I boot my existing system
>> on it?
>> 
>> If it would come up, what would need to be (re)emerged, as a minimum?
>> 
>> TIA
>
> Unless you really reduced the drivers available on your system or
> you're going to a lesser system (64 -> 32bit, or something like
> that), I would expect the system to simply boot.

Many of us do "reduce the drivers availabing" to match just the
hardware in our system.

> If not, you only need a live-cd/usb/... and rebuild the kernel and
> any drivers your new system needs.

> It's not MS Windows that might try to load incompatible drivers and
> ends up with a blue-screen.

Well, the screen doesn't turn blue, but it's possible the kernel won't
even boot.

--
Grant





Re: [gentoo-user] Re: Scanning double sided documents and printing them the same.

2020-12-10 Thread Dale
Dale wrote:
> Grant Edwards wrote:
>> On 2020-12-10, Michael  wrote:
 There's no need for the two-step process:

 $ convert scan1.png scan2.png scanned.pdf
>>> There was some vulnerability in ghostscript[1] which disabled the above 
>>> conversion - but I can't find the BGO number.  I thought it had been 
>>> patched 
>>> since then, but my system appears to not have been fixed:
>>>
>>> $ convert scan1.jpg scan2.jpg scan.pdf
>>> convert: attempt to perform an operation not allowed by the security policy 
>>> `PDF' @ error/constitute.c/IsCoderAuthorized/422.
>>>
>>> [1] https://www.kb.cert.org/vuls/id/332928/
>> You're right. You have to adjust the ImageMagick config files to allow
>> converting to pdf. AFAICT, it's safe as long as you trust the input
>> you're converting. I figure photos I've taken are OK.
>>
>> --
>> Grant
>>
>
> I tried this in XSane but couldn't figure out how to get it to scan two
> pages with me clicking something when the second page is ready.  It
> scanned first page, then scanned the second without giving me a chance
> to flip it over.  So, XSane didn't work this time.  Maybe I'm doing
> something wrong. 
>
> So, convert was my next test.  I scanned in both sides, cd'd to the
> directory where the files were and issued the command Grant provided. 
> At first, I got the security error.  I dug around a bit and figured out
> how to tell it to ignore that and tried again.  YEPPIE!!!  It worked.  I
> opened it in a pdf viewer and it was two pages.  I don't need to print
> this one but I can send it to a friend since it is her mail, sort of. 
> If I needed to print it, it should print duplex just fine. 
>
> It's command line but it works.  It's awesome.  Still open to
> suggestions but for now, I got something working.  It's easier than
> using LOo for sure. 
>
> Dale
>
> :-)  :-) 
>


Oh, forgot this.  File to change:  /etc/ImageMagick-7/policy.xml and
change this line to look like this:


  


I'm not sure how important the spaces in front are so I'm including
them.  I'd make sure it matches the other lines above and below that one. 

I'm not sure how to put comments in this file either. 

Dale

:-)  :-) 



[gentoo-user] Re: Scanning double sided documents and printing them the same.

2020-12-10 Thread Grant Edwards
On 2020-12-10, Michael  wrote:
>
>> There's no need for the two-step process:
>> 
>> $ convert scan1.png scan2.png scanned.pdf
>
> There was some vulnerability in ghostscript[1] which disabled the above 
> conversion - but I can't find the BGO number.  I thought it had been patched 
> since then, but my system appears to not have been fixed:
>
> $ convert scan1.jpg scan2.jpg scan.pdf
> convert: attempt to perform an operation not allowed by the security policy 
> `PDF' @ error/constitute.c/IsCoderAuthorized/422.
>
> [1] https://www.kb.cert.org/vuls/id/332928/

You're right. You have to adjust the ImageMagick config files to allow
converting to pdf. AFAICT, it's safe as long as you trust the input
you're converting. I figure photos I've taken are OK.

--
Grant








Re: [gentoo-user] new install for a new mainboard?

2020-12-10 Thread n952162



On 12/10/20 7:18 PM, Rich Freeman wrote:

On Thu, Dec 10, 2020 at 10:23 AM n952162  wrote:

I need a new mainboard.  What will happen if I boot my existing system
on it?

Is the CPU going to be the same?  The responses already cover the
mainboard itself well.  If the CPU could change then you need to check
your -march in CFLAGS for compatibility (if you set it) and
potentially rebuild anything you don't want to break.



How would I do that?  Would I have to set up a cross-compiler toolchain?




Re: [gentoo-user] new install for a new mainboard?

2020-12-10 Thread Miles Malone
On Fri, 11 Dec 2020 at 01:49, J. Roeleveld  wrote:
>
>
> Personally, however, I tend to use a new system as an excuse to clean up my
> install and start from scratch. Especially as I always tend to pass my old
> system on to a family member or friend.
>

It's also an excellent opportunity to do a once in five year git
commit of all your dotfiles :)



[gentoo-user] preventing PC sutdown by power button when running

2020-12-10 Thread thelma
How to prevent PC from shutdown when running when power button is pressed?
Is it a function in a BIOS or OS?




Re: [gentoo-user] The Local Directory path "/var/spool/mail" is invalid.

2020-12-10 Thread thelma
On 12/10/2020 03:23 PM, Rich Freeman wrote:
> On Thu, Dec 10, 2020 at 5:08 PM  wrote:
>>
>> So I tried with  setting:
>> home_mailbox = .maildir
>> (no forward "/", so it should be mbox type).
> 
> Ok, your email is a bit confusing so I'm not quite sure what you're
> trying to accomplish.  I'm not sure why you'd want to stick an mbox
> mailbox in a maildir path.
> 
> Let's take this one step at a time and confirm everything is working
> properly before going to the next step.
> 
> Step 1 - Which mailbox standard do you want to use - mbox or maildir?
> The answer to this question should be just one word, but feel free to
> google pros/cons of each.

I'll stick with "mbox" type.

> Step 2 - We'll confirm postfix is configured appropriately for that
> choice and that it is delivering mail to the right place using shell
> commands (cat/etc) and not touch thunderbird.
>
> Step 3 - We'll configure thunderbird to use the appropriate location.
> 
> So, step 1 - which of the two formats do you WANT to use?  mbox or
> maildir?  I don't care how the old host worked.  I don't care how the
> new host is working now.  Which way do you WANT it to work?

I was under impression that dir name shouldn't be a problem as long as
it is the correct type "mbox"
Since postifx main.cf had already
home_mailbox = .maildir
so I use it, instead of defining my own.



Re: [gentoo-user] Re: Scanning double sided documents and printing them the same.

2020-12-10 Thread Dale
Grant Edwards wrote:
> On 2020-12-10, Michael  wrote:
>>> There's no need for the two-step process:
>>>
>>> $ convert scan1.png scan2.png scanned.pdf
>> There was some vulnerability in ghostscript[1] which disabled the above 
>> conversion - but I can't find the BGO number.  I thought it had been patched 
>> since then, but my system appears to not have been fixed:
>>
>> $ convert scan1.jpg scan2.jpg scan.pdf
>> convert: attempt to perform an operation not allowed by the security policy 
>> `PDF' @ error/constitute.c/IsCoderAuthorized/422.
>>
>> [1] https://www.kb.cert.org/vuls/id/332928/
> You're right. You have to adjust the ImageMagick config files to allow
> converting to pdf. AFAICT, it's safe as long as you trust the input
> you're converting. I figure photos I've taken are OK.
>
> --
> Grant
>


I tried this in XSane but couldn't figure out how to get it to scan two
pages with me clicking something when the second page is ready.  It
scanned first page, then scanned the second without giving me a chance
to flip it over.  So, XSane didn't work this time.  Maybe I'm doing
something wrong. 

So, convert was my next test.  I scanned in both sides, cd'd to the
directory where the files were and issued the command Grant provided. 
At first, I got the security error.  I dug around a bit and figured out
how to tell it to ignore that and tried again.  YEPPIE!!!  It worked.  I
opened it in a pdf viewer and it was two pages.  I don't need to print
this one but I can send it to a friend since it is her mail, sort of. 
If I needed to print it, it should print duplex just fine. 

It's command line but it works.  It's awesome.  Still open to
suggestions but for now, I got something working.  It's easier than
using LOo for sure. 

Dale

:-)  :-) 



Re: [gentoo-user] Scanning double sided documents and printing them the same.

2020-12-10 Thread Rich Freeman
On Wed, Dec 9, 2020 at 7:09 PM Dale  wrote:
>
> How do I print them the
> same way tho?

I didn't see much discussion on the printing side of this - how to
print two-sided on a one-sided printer.

Step 1 (optional): I created a CUPS queue for such jobs that just
outputs everything into PDF in a directory.  This lets you easily
print stuff that isn't already PDF from various computers/OSes and
accumulate a bunch as printing this way is easier in bulk since it
involves a bit of manual manipulation.

Step 2 (optional): I have a script that takes each PDF and adds a
blank page if needed to result in an even number of pages, then
concatenates all the PDFs into a single file.  I probably stole this
from somewhere:

#!/bin/bash
for file in *.pdf
do
  #get the number of pages
  numberofpages=`pdftk "$file" dump_data | sed -e
'/NumberOfPages/!d;s/NumberOfPages: //'`
  echo -n "$file" 'has' $numberofpages 'pages, '

  uneven=$(($numberofpages % 2))
  if [ $uneven == 1 ]
  then
echo 'which is uneven - added 1 more'
tempfile=`mktemp`
pdftk A="$file" B=/usr/local/share/blank.pdf cat A B1 output "$tempfile"
mv $tempfile $file
  else
echo 'which is even'
  fi
done

pdftk *.pdf cat output out.pdf

Step 3: To print a single PDF double-sided follow this guide:
http://duramecho.com/ComputerInformation/HowToDoTwoSidedPrinting/index.html

So the idea is that I accumulate a bunch of documents to print this
way, combine them such that they can be printed all at once, and then
do the page flip technique in that guide.  No need to worry about
individual pages as long as you ID which type of printer you have and
follow the appropriate process.  However, to print multiple documents
at once this way they all have to have an even number of pages, which
is why I have the script.  Concatenating the files with blank pages
added means that you can just print the whole thing once, flip, then
print it again, and it all works.

-- 
Rich



Re: [gentoo-user] new install for a new mainboard?

2020-12-10 Thread Matt Connell (Gmail)
On Thu, 2020-12-10 at 16:23 +0100, n952162 wrote:
> What will happen if I boot my existing system on it?

Best case, it boots and has some minor issues to work through.

Worst case, it doesn't boot at all.

> If it would come up, what would need to be (re)emerged, as a minimum?

If you're building a kernel yourself from gentoo-sources, you'll most
likely need to review that kernel configuration and add support for new
hardware, optionally disabling support for old hardware.




Re: [gentoo-user] new install for a new mainboard?

2020-12-10 Thread J. Roeleveld
On Thursday, December 10, 2020 4:23:09 PM CET n952162 wrote:
> I need a new mainboard.  What will happen if I boot my existing system
> on it?
> 
> If it would come up, what would need to be (re)emerged, as a minimum?
> 
> TIA

Unless you really reduced the drivers available on your system or you're going 
to a lesser system (64 -> 32bit, or something like that), I would expect the 
system to simply boot.
If not, you only need a live-cd/usb/... and rebuild the kernel and any drivers 
your new system needs.

It's not MS Windows that might try to load incompatible drivers and ends up 
with a blue-screen.

Personally, however, I tend to use a new system as an excuse to clean up my 
install and start from scratch. Especially as I always tend to pass my old 
system on to a family member or friend.







Re: [gentoo-user] new install for a new mainboard?

2020-12-10 Thread Matt Connell (Gmail)
On Thu, 2020-12-10 at 16:49 +0100, J. Roeleveld wrote:
> I tend to use a new system as an excuse to clean up my install and start from 
> scratch.

Same here.  Especially because I only upgrade workstations every 6-8
years.

I'll keep my world file and cherry-pick stuff from /etc/portage but
laregely just rebuild anew.