Re: [gentoo-user] Re: CPU upgrade and LVM questions.

2018-12-08 Thread Peter Humphrey
Hello David,

On Saturday, 8 December 2018 05:38:17 GMT David Haller wrote:
> Hello,
> 
> On Sat, 08 Dec 2018, David Haller wrote:
> >On Fri, 07 Dec 2018, Dale wrote:
> >>Peter Humphrey wrote:
> >>> Have you tried gkrellm? It's very neat. Sits in a vertical strip at
> >>> the side of your screen and shows a whole load of things all at
> >>> once. I've been using it for donkeys' years.
> >>
> >>That's what I generally use.  I don't see a place for it to show the CPU
> >>frequency tho.  Did I miss it? 
> >
> >Nope. Try your local x11-plugins/gkrellm-gkfreq, see attachment ;)
> 
> Made a little patch (drawn from the gkfreq-2.0 source) to make updates
> not quite that often (I barely could read them)...
> 
> Patch + updated ebuild attached. Have fun.

I tried this but got an error "/usr/local/portage/x11-plugins/gkrellm-
gkfreq-2.4.ebuild: does not seem to have a valid PORTDIR structure"

I have another local overlay in /usr/local/portage/app-admin/localepurge which 
operates as expected, so what am I missing?

-- 
Regards,
Peter.






Re: [gentoo-user] Re: CPU upgrade and LVM questions.

2018-12-08 Thread Peter Humphrey
On Saturday, 8 December 2018 09:40:20 GMT Peter Humphrey wrote:
> Hello David,
> 
> On Saturday, 8 December 2018 05:38:17 GMT David Haller wrote:
> > Hello,
> > 
> > On Sat, 08 Dec 2018, David Haller wrote:
> > >On Fri, 07 Dec 2018, Dale wrote:
> > >>Peter Humphrey wrote:
> > >>> Have you tried gkrellm? It's very neat. Sits in a vertical strip at
> > >>> the side of your screen and shows a whole load of things all at
> > >>> once. I've been using it for donkeys' years.
> > >>
> > >>That's what I generally use.  I don't see a place for it to show the CPU
> > >>frequency tho.  Did I miss it?
> > >
> > >Nope. Try your local x11-plugins/gkrellm-gkfreq, see attachment ;)
> > 
> > Made a little patch (drawn from the gkfreq-2.0 source) to make updates
> > not quite that often (I barely could read them)...
> > 
> > Patch + updated ebuild attached. Have fun.
> 
> I tried this but got an error "/usr/local/portage/x11-plugins/gkrellm-
> gkfreq-2.4.ebuild: does not seem to have a valid PORTDIR structure"
> 
> I have another local overlay in /usr/local/portage/app-admin/localepurge
> which operates as expected, so what am I missing?

Sorry - I had an error in my local tree. Please ignore this.

-- 
Regards,
Peter.






Re: [gentoo-user] I want a low-end usb laser printer with minimal config hassle

2018-12-08 Thread Peter Humphrey
On Friday, 7 December 2018 22:47:06 GMT Peter Humphrey wrote:
> On Friday, 7 December 2018 18:46:54 GMT Manuel McLure wrote:
> > I'd highly recommend getting a networked printer that supports Port 9100
> > instead of a USB one - this allows you to use the same printer for all of
> > your systems.
> 
> Nonsense. You just don't need a network interface if you don't have one.
> This is Linux, not WinBloze.

That came out a bit sharper than I intended. No offence meant.

-- 
Regards,
Peter.






Re: [gentoo-user] I want a low-end usb laser printer with minimal config hassle

2018-12-08 Thread Mick
On Saturday, 8 December 2018 10:36:07 GMT Peter Humphrey wrote:
> On Friday, 7 December 2018 22:47:06 GMT Peter Humphrey wrote:
> > On Friday, 7 December 2018 18:46:54 GMT Manuel McLure wrote:
> > > I'd highly recommend getting a networked printer that supports Port 9100
> > > instead of a USB one - this allows you to use the same printer for all
> > > of
> > > your systems.
> > 
> > Nonsense. You just don't need a network interface if you don't have one.
> > This is Linux, not WinBloze.
> 
> That came out a bit sharper than I intended. No offence meant.

It's a true statement, ethernet is not necessary, if you keep the PC with the 
USB printer running when you need to print.

I've used both Linux & MSWindows as print servers.  If memory serves WinXP was 
able to offer 'Print Services for Unix', their name for LPD, to allow any USB 
printer connected to the WinXP PC to be accessed by Linux clients using CUPS.  
I didn't even have to install Samba on the Linux PCs, vanilla CUPS worked 
fine.  Of course the reverse is also true as Peter mentioned.

-- 
Regards,
Mick

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


[gentoo-user] ...I not allowed to make pdfs from images??????

2018-12-08 Thread tuxic
Hi,

from some images I want to create a pdf.
I found this commandline to do so (imagemagick):
convert 1.png 2.ong 3.png result.pdf

If I do so I got this message:
convert: attempt to perform an operation not allowed by the security policy 
`PDF' @ error/constitute.c/IsCoderAuthorized/408.

What the heck...

How can I allow myself to work on my compyter ? ;)

Cheers!
Meino






Re: [gentoo-user] ...I not allowed to make pdfs from images??????

2018-12-08 Thread Franz Fellner
Check your /etc/ImageMagick-7/policy.xml
But be aware of the riscs, see the comment in the very same policy.xml file

Am Sa., 8. Dez. 2018 um 15:22 Uhr schrieb :

> Hi,
>
> from some images I want to create a pdf.
> I found this commandline to do so (imagemagick):
> convert 1.png 2.ong 3.png result.pdf
>
> If I do so I got this message:
> convert: attempt to perform an operation not allowed by the security
> policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.
>
> What the heck...
>
> How can I allow myself to work on my compyter ? ;)
>
> Cheers!
> Meino
>
>
>
>
>


Re: [gentoo-user] ...I not allowed to make pdfs from images??????

2018-12-08 Thread Mick
On Saturday, 8 December 2018 13:36:04 GMT Franz Fellner wrote:
> Check your /etc/ImageMagick-7/policy.xml
> But be aware of the riscs, see the comment in the very same policy.xml file

As Franz mentioned there are ghostscript vulnerabilities you should be aware 
of, which are mitigated by the /etc/ImageMagick-7/policy.xml file.  
Temporarily you could change line 60 in this file from "none" to "read|write":

 

Don't forget to revert it to "none" when you're done.

-- 
Regards,
Mick

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


Re: [gentoo-user] CPU upgrade and LVM questions.

2018-12-08 Thread Alexander Puchmayr
Am Donnerstag, 6. Dezember 2018, 10:27:31 CET schrieb Dale:
> Howdy,
> 
> I mentioned in other threads that I'm doing some upgrades to my system. 
> My first question is about a CPU upgrade.  I currently have this for my
> CPU, from cpuinfo:
> 
> AMD Phenom(tm) II X4 955 Processor
> 
> I've bought but not yet installed a FX-8350 CPU.  I have this in my
> make.conf file:
> 
> CFLAGS="-march=native -O2 -pipe"

Compiling the whole system with -march=native might lead to troubles, 
especially when doing a CPU change. This option means that gcc is determining 
the type of CPU automatically and adjusts the instruction set used to exactly 
this CPU. Although, in your case, it is highly likely that your new CPU 
understands all commands from the old, but I wouldn't bet on it. Its possible 
that your existing software encounters problems like "illegal instruction" or 
the like. Very bad if your compiler crashes after CPU replacement, then you 
cannot emerge anything. I highly recommend using CFLAGS="-O2 -pipe" and 
nothing more, the performance difference is, if measurable at all, negligible. 

> USE_CPU="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
> pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
> pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc
> extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic
> cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
> nodeid_msr hw_pstate npt lbrv svm_lock nrip_save"
> 
As someone else in this thread already mentioned, USE_CPU is not used. What 
you're looking for is CPU_FLAGS_X86=..., which defines what cpu-specific 
options 
will be enabled for packages supporting it and where it makes sense. See 
package cpuid2cpuflags for details.

Regards
Alex






Re: [gentoo-user] CPU upgrade and LVM questions.

2018-12-08 Thread Dale
Alexander Puchmayr wrote:
> Am Donnerstag, 6. Dezember 2018, 10:27:31 CET schrieb Dale:
>> Howdy,
>>
>> I mentioned in other threads that I'm doing some upgrades to my system. 
>> My first question is about a CPU upgrade.  I currently have this for my
>> CPU, from cpuinfo:
>>
>> AMD Phenom(tm) II X4 955 Processor
>>
>> I've bought but not yet installed a FX-8350 CPU.  I have this in my
>> make.conf file:
>>
>> CFLAGS="-march=native -O2 -pipe"
> Compiling the whole system with -march=native might lead to troubles, 
> especially when doing a CPU change. This option means that gcc is determining 
> the type of CPU automatically and adjusts the instruction set used to exactly 
> this CPU. Although, in your case, it is highly likely that your new CPU 
> understands all commands from the old, but I wouldn't bet on it. Its possible 
> that your existing software encounters problems like "illegal instruction" or 
> the like. Very bad if your compiler crashes after CPU replacement, then you 
> cannot emerge anything. I highly recommend using CFLAGS="-O2 -pipe" and 
> nothing more, the performance difference is, if measurable at all, 
> negligible. 
>
>> USE_CPU="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
>> pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
>> pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc
>> extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic
>> cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
>> nodeid_msr hw_pstate npt lbrv svm_lock nrip_save"
>>
> As someone else in this thread already mentioned, USE_CPU is not used. What 
> you're looking for is CPU_FLAGS_X86=..., which defines what cpu-specific 
> options 
> will be enabled for packages supporting it and where it makes sense. See 
> package cpuid2cpuflags for details.
>
> Regards
>   Alex
>

It seems the holiday shopping is slowing down delivery.  My fan was
supposed to be here today but didn't arrive.  Since I got time, I'll
change the CFLAGS for at least the @system stuff, that should get me
booted for sure.  While the native setting makes things easier for
normal use, I can see the point of not using it when changing CPUs. 
That is one reason for this thread.  The CPUs are different and may
require some changes during the swap. 

Is there a easy way to see what if any changes will be made?  I did a
emerge -UDNa @system but it's not showing any change.  Does it require a
emerge -e @system to force the change?  Or is it not changing anything?

Thanks much.  Better safe than sorry.  ;-)

Dale

:-)  :-) 



Re: [gentoo-user] kstars and indilib

2018-12-08 Thread Alexander Puchmayr
Am Samstag, 8. Dezember 2018, 05:50:59 CET schrieb David Haller:
> Hello,
> 
> Just updated the one in the tree in my local overlay, see attached
> indilib-1.7.5.ebuild.
> 
Thanks a lot, works fine!

But there's still the problem that the stable version of kstars does not check 
the correct version of indi and compiles a version not supporting it although 
the use flag has been set. 
Do you create a bug report for kstars or shall I do it?

Alex






Re: [gentoo-user] CPU upgrade and LVM questions.

2018-12-08 Thread J. Roeleveld
On December 8, 2018 6:23:04 PM UTC, Dale  wrote:
>Alexander Puchmayr wrote:
>> Am Donnerstag, 6. Dezember 2018, 10:27:31 CET schrieb Dale:
>>> Howdy,
>>>
>>> I mentioned in other threads that I'm doing some upgrades to my
>system. 
>>> My first question is about a CPU upgrade.  I currently have this for
>my
>>> CPU, from cpuinfo:
>>>
>>> AMD Phenom(tm) II X4 955 Processor
>>>
>>> I've bought but not yet installed a FX-8350 CPU.  I have this in my
>>> make.conf file:
>>>
>>> CFLAGS="-march=native -O2 -pipe"
>> Compiling the whole system with -march=native might lead to troubles,
>
>> especially when doing a CPU change. This option means that gcc is
>determining 
>> the type of CPU automatically and adjusts the instruction set used to
>exactly 
>> this CPU. Although, in your case, it is highly likely that your new
>CPU 
>> understands all commands from the old, but I wouldn't bet on it. Its
>possible 
>> that your existing software encounters problems like "illegal
>instruction" or 
>> the like. Very bad if your compiler crashes after CPU replacement,
>then you 
>> cannot emerge anything. I highly recommend using CFLAGS="-O2 -pipe"
>and 
>> nothing more, the performance difference is, if measurable at all,
>negligible. 
>>
>>> USE_CPU="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
>cmov
>>> pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
>>> pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl
>nonstop_tsc
>>> extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic
>>> cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
>>> nodeid_msr hw_pstate npt lbrv svm_lock nrip_save"
>>>
>> As someone else in this thread already mentioned, USE_CPU is not
>used. What 
>> you're looking for is CPU_FLAGS_X86=..., which defines what
>cpu-specific options 
>> will be enabled for packages supporting it and where it makes sense.
>See 
>> package cpuid2cpuflags for details.
>>
>> Regards
>>  Alex
>>
>
>It seems the holiday shopping is slowing down delivery.  My fan was
>supposed to be here today but didn't arrive.  Since I got time, I'll
>change the CFLAGS for at least the @system stuff, that should get me
>booted for sure.  While the native setting makes things easier for
>normal use, I can see the point of not using it when changing CPUs. 
>That is one reason for this thread.  The CPUs are different and may
>require some changes during the swap. 
>
>Is there a easy way to see what if any changes will be made?  I did a
>emerge -UDNa @system but it's not showing any change.  Does it require
>a
>emerge -e @system to force the change?  Or is it not changing anything?
>
>Thanks much.  Better safe than sorry.  ;-)
>
>Dale
>
>:-)  :-) 

A CFLAGS change requires a rebuild of all packages done with gcc. I am not 
aware of a simple way of only doing those, so a "emerge --empty @world" will be 
needed.

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

Re: [gentoo-user] ...I not allowed to make pdfs from images??????

2018-12-08 Thread Francesco Turco
On Sat, Dec 8, 2018, at 14:23, tu...@posteo.de wrote:
> from some images I want to create a pdf.

I successfully use img2pdf: https://gitlab.mister-muffin.de/josch/img2pdf
It's also in the main Gentoo repository.

-- 
https://fturco.gitlab.io/



Re: [gentoo-user] CPU upgrade and LVM questions.

2018-12-08 Thread Dale
J. Roeleveld wrote:
> On December 8, 2018 6:23:04 PM UTC, Dale  wrote:
>
> Alexander Puchmayr wrote:
>
> Am Donnerstag, 6. Dezember 2018, 10:27:31 CET schrieb Dale:
>
> Howdy, I mentioned in other threads that I'm doing some
> upgrades to my system. My first question is about a CPU
> upgrade. I currently have this for my CPU, from cpuinfo:
> AMD Phenom(tm) II X4 955 Processor I've bought but not yet
> installed a FX-8350 CPU. I have this in my make.conf file:
> CFLAGS="-march=native -O2 -pipe" 
>
> Compiling the whole system with -march=native might lead to
> troubles, especially when doing a CPU change. This option
> means that gcc is determining the type of CPU automatically
> and adjusts the instruction set used to exactly this CPU.
> Although, in your case, it is highly likely that your new CPU
> understands all commands from the old, but I wouldn't bet on
> it. Its possible that your existing software encounters
> problems like "illegal instruction" or the like. Very bad if
> your compiler crashes after CPU replacement, then you cannot
> emerge anything. I highly recommend using CFLAGS="-O2 -pipe"
> and nothing more, the performance difference is, if measurable
> at all, negligible.
>
> USE_CPU="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
> pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht
> syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext
> 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid
> pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic
> cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs
> skinit wdt nodeid_msr hw_pstate npt lbrv svm_lock nrip_save" 
>
> As someone else in this thread already mentioned, USE_CPU is
> not used. What you're looking for is CPU_FLAGS_X86=..., which
> defines what cpu-specific options will be enabled for packages
> supporting it and where it makes sense. See package
> cpuid2cpuflags for details. Regards Alex 
>
>
> It seems the holiday shopping is slowing down delivery.  My fan was
> supposed to be here today but didn't arrive.  Since I got time, I'll
> change the CFLAGS for at least the @system stuff, that should get me
> booted for sure.  While the native setting makes things easier for
> normal use, I can see the point of not using it when changing CPUs. 
> That is one reason for this thread.  The CPUs are different and may
> require some changes during the swap. 
>
> Is there a easy way to see what if any changes will be made?  I did a
> emerge -UDNa @system but it's not showing any change.  Does it require a
> emerge -e @system to force the change?  Or is it not changing anything?
>
> Thanks much.  Better safe than sorry.  ;-)
>
> Dale
>
> :-)  :-) 
>
>
> A CFLAGS change requires a rebuild of all packages done with gcc. I am
> not aware of a simple way of only doing those, so a "emerge --empty
> @world" will be needed.
>
> --
> Joost
> -- 
> Sent from my Android device with K-9 Mail. Please excuse my brevity. 


Based on the output, that's what I was thinking. Emerge picks up on
other USE changes but it seems it only grabs the CFLAGS during the
compile/configure phase for each package. Would this change the kernel
image as well or would it remain the same?  I may build a new kernel
just to be sure.

One good thing about this, I can compare the times with current CPU and
new CPU later and get a rough idea of speed increases.  ;-) 

Pardon me while I generate some heat.  o_O

Dale

:-)  :-) 


Re: [gentoo-user] ...I not allowed to make pdfs from images??????

2018-12-08 Thread Marc Joliet
Am Samstag, 8. Dezember 2018, 14:36:04 CET schrieb Franz Fellner:
> Check your /etc/ImageMagick-7/policy.xml
> But be aware of the riscs, see the comment in the very same policy.xml file
> 
> Am Sa., 8. Dez. 2018 um 15:22 Uhr schrieb :
> > Hi,
> > 
> > from some images I want to create a pdf.
> > I found this commandline to do so (imagemagick):
> > convert 1.png 2.ong 3.png result.pdf
> > 
> > If I do so I got this message:
> > convert: attempt to perform an operation not allowed by the security
> > policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.
> > 
> > What the heck...
> > 
> > How can I allow myself to work on my compyter ? ;)
> > 
> > Cheers!
> > Meino

FTR, this is mentioned in the emerge output when installing imagemagick.  From 
the 7.0.8.14 ebuild:

elog "For security reasons, a policy.xml file was installed in 
/etc/
ImageMagick-7"
elog "which will prevent the usage of the following coders by 
default:"
elog ""
elog "  - PS"
elog "  - PS2"
elog "  - PS3"
elog "  - EPS"
elog "  - PDF"
elog "  - XPS"

Did it not show for you?

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup


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