Re: [gentoo-user] Questions on Raspberry Pi cross compiling

2017-07-19 Thread Danny YUE

On 2017-07-20 06:25, R0b0t1  wrote:
> On Thu, Jul 20, 2017 at 1:20 AM, Danny YUE  wrote:
>>
>> On 2017-07-20 05:59, R0b0t1  wrote:
>>> On Thu, Jul 20, 2017 at 12:42 AM, Danny YUE  wrote:
 Hi guys,

 I am setting up cross compiling environment for my newly bought
 Raspberry Pi 3, under the guide of:
 https://wiki.gentoo.org/wiki/Raspberry_Pi
 https://wiki.gentoo.org/wiki/Raspberry_Pi/Quick_Install_Guide

 My original idea was to use crossdev to cross compile packages on my PC
 and install binaries on RPI.
 However I found it really nasty because it kept giving me the error
 message about "libintl: no such file or directory" during compilation of
 packages such as attr, python etc.

 And if some (even very few) packages fail to build on the PC, it is
 hardly possible to keep PC and RPI 'consistent'.
 (Yes, I did setup the 'make.profile' symlink to the right place.)

 So my question is:
 1) If some packages are *doomed* to fail, how do you keep the
 emerge world environment consistency between PC and RPI?
 Or is my understanding of this method incorrect?

>>>
>>> Match compilation and USE flags.
>>>
 2) If it is not really a good idea to use crossdev, which one do you
 recommend between distcc and chroot method?
 (I googled but did not really get one answer about compilation speed.)

>>>
>>> You should be able to mix crossdev compiled packages freely with
>>> device compiled ones. Incompatible packages will be ignored and it
>>> will try to recompile a package with matching flags, so pay attention.
>>> If you need to compile something on device then I suspect you want to
>>> use distcc if at all possible.
>>>
>> Thanks for your reply. :-)
>>
>> Well, yes. But do you know how is distcc compared with chroot referring
>> to compilation speed?
>>
>
> Using qemu-user to emulate the target architecture and hosting the
> system in a chroot is generally slower than compiling on device, if
> that is what you are referring to. I've read of people who tested this
> with the RPi3 and some Hardkernel devices.

Oops, really?
I have read of this point of view, too.
But the Wiki page says that it is faster than native compilation on RPI.

To be honest, I prefer to compile using crossdev...

Ok then, I will try re-setup crossdev on my PC and see if everything
compiles well. If not, I will post the error message here.

Thanks.



Re: [gentoo-user] Questions on Raspberry Pi cross compiling

2017-07-19 Thread R0b0t1
On Thu, Jul 20, 2017 at 1:20 AM, Danny YUE  wrote:
>
> On 2017-07-20 05:59, R0b0t1  wrote:
>> On Thu, Jul 20, 2017 at 12:42 AM, Danny YUE  wrote:
>>> Hi guys,
>>>
>>> I am setting up cross compiling environment for my newly bought
>>> Raspberry Pi 3, under the guide of:
>>> https://wiki.gentoo.org/wiki/Raspberry_Pi
>>> https://wiki.gentoo.org/wiki/Raspberry_Pi/Quick_Install_Guide
>>>
>>> My original idea was to use crossdev to cross compile packages on my PC
>>> and install binaries on RPI.
>>> However I found it really nasty because it kept giving me the error
>>> message about "libintl: no such file or directory" during compilation of
>>> packages such as attr, python etc.
>>>
>>> And if some (even very few) packages fail to build on the PC, it is
>>> hardly possible to keep PC and RPI 'consistent'.
>>> (Yes, I did setup the 'make.profile' symlink to the right place.)
>>>
>>> So my question is:
>>> 1) If some packages are *doomed* to fail, how do you keep the
>>> emerge world environment consistency between PC and RPI?
>>> Or is my understanding of this method incorrect?
>>>
>>
>> Match compilation and USE flags.
>>
>>> 2) If it is not really a good idea to use crossdev, which one do you
>>> recommend between distcc and chroot method?
>>> (I googled but did not really get one answer about compilation speed.)
>>>
>>
>> You should be able to mix crossdev compiled packages freely with
>> device compiled ones. Incompatible packages will be ignored and it
>> will try to recompile a package with matching flags, so pay attention.
>> If you need to compile something on device then I suspect you want to
>> use distcc if at all possible.
>>
> Thanks for your reply. :-)
>
> Well, yes. But do you know how is distcc compared with chroot referring
> to compilation speed?
>

Using qemu-user to emulate the target architecture and hosting the
system in a chroot is generally slower than compiling on device, if
that is what you are referring to. I've read of people who tested this
with the RPi3 and some Hardkernel devices.



Re: [gentoo-user] Questions on Raspberry Pi cross compiling

2017-07-19 Thread Danny YUE

On 2017-07-20 05:59, R0b0t1  wrote:
> On Thu, Jul 20, 2017 at 12:42 AM, Danny YUE  wrote:
>> Hi guys,
>>
>> I am setting up cross compiling environment for my newly bought
>> Raspberry Pi 3, under the guide of:
>> https://wiki.gentoo.org/wiki/Raspberry_Pi
>> https://wiki.gentoo.org/wiki/Raspberry_Pi/Quick_Install_Guide
>>
>> My original idea was to use crossdev to cross compile packages on my PC
>> and install binaries on RPI.
>> However I found it really nasty because it kept giving me the error
>> message about "libintl: no such file or directory" during compilation of
>> packages such as attr, python etc.
>>
>> And if some (even very few) packages fail to build on the PC, it is
>> hardly possible to keep PC and RPI 'consistent'.
>> (Yes, I did setup the 'make.profile' symlink to the right place.)
>>
>> So my question is:
>> 1) If some packages are *doomed* to fail, how do you keep the
>> emerge world environment consistency between PC and RPI?
>> Or is my understanding of this method incorrect?
>>
>
> Match compilation and USE flags.
>
>> 2) If it is not really a good idea to use crossdev, which one do you
>> recommend between distcc and chroot method?
>> (I googled but did not really get one answer about compilation speed.)
>>
>
> You should be able to mix crossdev compiled packages freely with
> device compiled ones. Incompatible packages will be ignored and it
> will try to recompile a package with matching flags, so pay attention.
> If you need to compile something on device then I suspect you want to
> use distcc if at all possible.
>
Thanks for your reply. :-)

Well, yes. But do you know how is distcc compared with chroot referring
to compilation speed?

> Please submit a bug report for packages that don't compile. You
> probably want to do it on the Gentoo tracker. These tend to be
> problems with autoconf, but developers seem to be reluctant to
> learning about the autoconf tests they make use of or providing fixes
> for them even though they're likely the people most capable creating
> fixes. The autoconf developers do not seem to have any idea about how
> to deal with cross compilation failures in a centralized way.
>
>> Thanks in advance for any potential help. ;-)
>>
>> P.S. Does anyone have any idea about the 'libintl' error? I googled a
>> lot but it seems that it should be part of glibc...
>
> Can you post the full output of the error you're receiving?

Sorry, I am not using my PC currently.

I will re-install cross toolchain later on today and post the result
here.

Thanks again.

Danny



Re: [gentoo-user] Questions on Raspberry Pi cross compiling

2017-07-19 Thread R0b0t1
On Thu, Jul 20, 2017 at 12:42 AM, Danny YUE  wrote:
> Hi guys,
>
> I am setting up cross compiling environment for my newly bought
> Raspberry Pi 3, under the guide of:
> https://wiki.gentoo.org/wiki/Raspberry_Pi
> https://wiki.gentoo.org/wiki/Raspberry_Pi/Quick_Install_Guide
>
> My original idea was to use crossdev to cross compile packages on my PC
> and install binaries on RPI.
> However I found it really nasty because it kept giving me the error
> message about "libintl: no such file or directory" during compilation of
> packages such as attr, python etc.
>
> And if some (even very few) packages fail to build on the PC, it is
> hardly possible to keep PC and RPI 'consistent'.
> (Yes, I did setup the 'make.profile' symlink to the right place.)
>
> So my question is:
> 1) If some packages are *doomed* to fail, how do you keep the
> emerge world environment consistency between PC and RPI?
> Or is my understanding of this method incorrect?
>

Match compilation and USE flags.

> 2) If it is not really a good idea to use crossdev, which one do you
> recommend between distcc and chroot method?
> (I googled but did not really get one answer about compilation speed.)
>

You should be able to mix crossdev compiled packages freely with
device compiled ones. Incompatible packages will be ignored and it
will try to recompile a package with matching flags, so pay attention.
If you need to compile something on device then I suspect you want to
use distcc if at all possible.

Please submit a bug report for packages that don't compile. You
probably want to do it on the Gentoo tracker. These tend to be
problems with autoconf, but developers seem to be reluctant to
learning about the autoconf tests they make use of or providing fixes
for them even though they're likely the people most capable creating
fixes. The autoconf developers do not seem to have any idea about how
to deal with cross compilation failures in a centralized way.

> Thanks in advance for any potential help. ;-)
>
> P.S. Does anyone have any idea about the 'libintl' error? I googled a
> lot but it seems that it should be part of glibc...

Can you post the full output of the error you're receiving?



Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Mick
On Thursday 20 Jul 2017 05:16:44 tu...@posteo.de wrote:
> On 07/20 04:51, Nikos Chantziaras wrote:
> > On 19/07/17 19:57, tu...@posteo.de wrote:
> > > Hi,
> > > 
> > > My Buspirate v36a needs a newer firmware.
> > > Unfortunately the flasher software is only
> > > available in 32bit and I run a 64bit modern
> > > Gentoo.
> > 
> > Is this the tool?
> > 
> > https://github.com/DangerousPrototypes/Bus_Pirate/blob/master/package/BPv3
> > -firmware/pirate-loader_lnx
> > 
> > That is a dynamically linked executable. I just ran it on my 64-bit
> > Gentoo:
> > 
> > 
> > $ ./pirate-loader_lnx
> > +++
> > 
> >   Pirate-Loader for BP with Bootloader v4+
> >   Loader version: 1.0.2  OS: Linux
> > 
> > +++
> > 
> > pirate-loader usage:
> >  ./pirate-loader --dev=/path/to/device --hello
> >  ./pirate-loader --dev=/path/to/device --hex=/path/to/hexfile.hex [
> > 
> > --verbose
> > 
> >  ./pirate-loader --simulate --hex=/path/to/hexfile.hex [ --verbose
> 
> For the completeness -- here is a new strace log of that version:
> 
> strace -v ./pirate-loader_lnx
> 
> execve("./pirate-loader_lnx", ["./pirate-loader_lnx"],
> ["CSF_STEPDefaults=/usr/lib64/open"..., "TK_LIBRARY=/usr/lib64/tk8.6",
> "CSF_EXCEPTION_PROMPT=1", "MMGT_CLEAR=1", "HISTSIZE=3",
> "KFORTH_DIR=/usr/share/kForth", "CSF_UnitsDefinition=/usr/lib64/o"...,
> "EDITOR=/usr/bin/vim", "CASROOT=/usr/lib64/opencascade-6"...,
> "PAGER=/usr/bin/less", "SHELL=/bin/zsh", "CG_COMPILER_EXE=/opt/bin/cgc",
> "PILOTPORT=/dev/tts/0", "GNOME_LIBCONFIG_PATH=/usr/lib",
> "CSF_MDTVFontDirectory=/usr/lib64"..., "TCLLIBPATH=/usr/lib64",
> "HOME=/home/mccramer", "DISPLAY=:0.0",
> "VBOX_APP_HOME=/usr/lib64/virtual"..., "VTKHOME=/usr",
> "ANT_HOME=/usr/share/ant", "GSETTINGS_BACKEND=dconf",
> "CSF_MDTVTexturesDirectory=/usr/l"...,
> "LUA_CPATH=/usr/lib64/lua/luarock"...,
> "CONFIG_PROTECT_MASK=/etc/sandbox"...,
> "FLTK_DOCDIR=/usr/share/doc/fltk-"..., "VTK_DIR=/usr/lib64/vtk-6.1",
> "CONFIG_PROTECT=/usr/share/gnupg/"...,
> "XDG_DATA_DIRS=/root/.local/share"..., "TEXDOCVIEW_ps=kghostview %s",
> "GROFF_NO_SGR=1", "PKG_CONFIG_PATH=/usr/lib/pkgconf"...,
> "TCL_LIBRARY=/usr/lib64/tcl8.6", "CSF_PluginDefaults=/usr/lib64/op"...,
> "MAIL=/var/spool/mail/mccramer", "CSF_LANGUAGE=us", "PERLIO=stdio",
> "LESSOPEN=|/usr/bin/lesspipe.sh %"...,
> "CSF_UnitsLexicon=/usr/lib64/open"..., "SHLVL=1",
> "CSF_MIGRATION_TYPES=/usr/lib64/o"...,
> "LUA_PATH=/usr/lib64/lua/luarocks"..., "GCC_SPECS=",
> "CSF_XmlOcafResource=/usr/lib64/o"..., "LADSPA_PATH=/usr/lib64/ladspa",
> "CSF_GraphicShr=/usr/lib64/openca"...,
> "CG_LIB_PATH=/opt/nvidia-cg-toolk"...,
> "VTK_DATA_ROOT=/usr/share/vtk/dat"...,
> "CSF_StandardLiteDefaults=/usr/li"..., "AXIOM=/usr/axiom/mnt/linux",
> "TIX_LIBRARY=/usr/lib64/tix8.4",
> "JAVA_HOME=/home/mccramer/.gentoo"..., "ITCL_LIBRARY=/usr/lib64/itcl4.0",
> "TERM=xterm-256color", "MANPATH=/home/mccramer/.gentoo/j"...,
> "TEXDOCVIEW_pdf=kgh %s", "TCLHOME=/usr/bin", "LANG=en_US.UTF-8",
> "JDK_HOME=/home/mccramer/.gentoo/"..., "OLDPWD=/home/mccramer",
> "OPENGL_PROFILE=nvidia", "PWD=/home/mccramer/data/pools/po"...,
> "SBCL_HOME=/usr/local/lib64/sbcl", "TEXDOCVIEW_dvi=kgh %s",
> "LOGNAME=mccramer", "HELPDIR=/usr/local/lib/zsh/help",
> "CG_INC_PATH=/opt/nvidia-cg-toolk"..., "G_BROKEN_FILENAMES=",
> "MC_COLOR_TABLE=base_color=normal"...,
> "CSF_StandardDefaults=/usr/lib64/"..., "XDG_CONFIG_DIRS=/etc/xdg", "LESS=-R
> -M --shift 5", "EIX_LIMIT=0", "CSF_IGESDefaults=/usr/lib64/open"...,
> "CSF_XSMessage=/usr/lib64/opencas"...,
> "INFOPATH=/usr/share/gcc-data/x86"...,
> "CSF_XCAFDefaults=/usr/lib64/open"..., "TEXDOCVIEW_html=dillo %s",
> "USER=mccramer", "JAVAC=/home/mccramer/.gentoo/jav"...,
> "zshloader=:/home/mccramer/.zshen"...,
> "CSF_SHMessage=/usr/lib64/opencas"..., "ITK_LIBRARY=/usr/lib64/itk4.0",
> "PATH=/usr/local/sbin:/usr/local/"..., "QT_GRAPHICSSYSTEM=opengl",
> "FRACTDIR=/usr/share/xfractint",
> "LS_COLORS=no=00:fi=00:di=00;32:l"..., "OPENCL_PROFILE=nvidia",
> "XAUTHORITY=/home/mccramer/.Xauth"..., "WINDOWID=44040204",
> "COLORFGBG=default;0", "COLORTERM=rxvt", "PS1=%M:%2d>",
> "PKGHOME=/home/mccramer/NetModule"..., "DIFMT=SvFUaPTM",
> "CUDA_VISIBLE_DEVICES=0", "GDAL_DATA=/usr/share/GeoExpressC"...,
> "PROJSO=/usr/share/GeoExpressCLUt"..., "_=/usr/bin/strace"]) = -1 ENOENT (No
> such file or directory) fstat(2, {st_dev=makedev(0, 9), st_ino=55306,
> st_mode=S_IFIFO|0600, st_nlink=1, st_uid=1001, st_gid=100, st_blksize=4096,
> st_blocks=0, st_size=0, st_atime=1500520453 /*
> 2017-07-20T05:14:13.854919641+0200 */, st_atime_nsec=854919641,
> st_mtime=1500520453 /* 2017-07-20T05:14:13.859919641+0200 */,
> st_mtime_nsec=859919641, st_ctime=1500520453 /*
> 2017-07-20T05:14:13.859919641+0200 */, st_ctime_nsec=859919641}) = 0
> write(2, "strace: exec: No such file or di"..., 40strace: exec: No such
> file or directory) = 40 exit_group(1)   = ?  +++
> exited with 1 +++
> 
> [1]13169 exit 1

[gentoo-user] Questions on Raspberry Pi cross compiling

2017-07-19 Thread Danny YUE
Hi guys,

I am setting up cross compiling environment for my newly bought
Raspberry Pi 3, under the guide of:
https://wiki.gentoo.org/wiki/Raspberry_Pi
https://wiki.gentoo.org/wiki/Raspberry_Pi/Quick_Install_Guide

My original idea was to use crossdev to cross compile packages on my PC
and install binaries on RPI.
However I found it really nasty because it kept giving me the error
message about "libintl: no such file or directory" during compilation of
packages such as attr, python etc.

And if some (even very few) packages fail to build on the PC, it is
hardly possible to keep PC and RPI 'consistent'.
(Yes, I did setup the 'make.profile' symlink to the right place.)

So my question is:
1) If some packages are *doomed* to fail, how do you keep the
emerge world environment consistency between PC and RPI?
Or is my understanding of this method incorrect?

2) If it is not really a good idea to use crossdev, which one do you
recommend between distcc and chroot method?
(I googled but did not really get one answer about compilation speed.)

Thanks in advance for any potential help. ;-)

P.S. Does anyone have any idea about the 'libintl' error? I googled a
lot but it seems that it should be part of glibc...

Danny



Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread Dale
Rich Freeman wrote:
> On Wed, Jul 19, 2017 at 5:26 PM, Dale  wrote:
>> I have a question or two on this.  The reason I went with KDE, I use it
>> and it is closest to being windozeish.  On occasion I read where some of
>> those other "lighter" desktops are 'feature rich' like KDE is.  Example,
>> plug in a USB device and it pops up with a menu to select from a lot
>> like KDE does.  Is LXDE or Mate like that?
>>
> To some degree I'd think Mate would offer this kind of experience.
> Lightweight options like lxde or xfce are probably going to fall
> short.  Full Gnome or KDE are are probably as close as you're going to
> get to a Windows-like environment.
>
> Another option I'd toss out there is ChromiumOS, though it isn't
> really intended as a mainstream option on non-Chrome hardware.  For
> $120 a Chromebook is pretty hard to beat, IMO (and a Chromebit or
> similar solution is even cheaper).  That isn't what you're looking
> for, but when relatives ask me about PC recommendations I tend to lean
> Chromebook unless they REALLY need to run thick applications, because
> they're basically zero maintenance and idiot proof.  Oh, and they're
> Gentoo derivatives.  :)
>
> Nobody seems to be mentioning full Ubuntu - assuming it performs well
> it should of course be considered as an option as well.  I'm all for
> Xubuntu but it might not be the best fit depending.
>


I found a slightly better rig.  I'm going to find a distro and see what
Mate looks like and acts like.  Heck, if her phone works, that is likely
all she plugs into USB except for a keyboard and rodent.  I think this
one still has PS/2 connectors for those tho.  Pretty sure it does. 

Thanks for the ideas tho.  I've heard of Mate but never seen it.  Heck,
I may end up switching if I find something I like.  :-D 

Dale

:-)  :-) 



Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread Dale
Dale wrote:
> Howdy,
>
> This isn't a Gentoo question but most everyone here used something
> before Gentoo.  I need a simple to upgrade distro for someone else. 
>
> A friend of mine had windoze XP, which is dead to M$.  She needed
> something and buying a computer or new OS is not a option, even tho she
> needs to upgrade that 10 or 12 year old thing she has.  So, I put Mageia
> on it a couple years ago, used to be Mandrake way back which is what I
> started with.  She has been doing updates every week or so since it is
> GUI based and pretty easy.  Tell it to update or just click the pop-up
> when it tells you one is available and when it is done, reboot.  Yea,
> windowish I know.  lol  Anyway, she did a update and now she can't login
> to KDE.  I drove up, hour away, and tried to figure it out.  It has
> changed so much, I'm pretty clueless.  It is NOT Gentoo by any means.  I
> renamed the user directory in case it was a config that the new update
> was hanging on but nothing.  It just won't let you login.  Also reset
> the password as well.  Thing is, I installed ICEwm during the install
> and it works.  It logs in but the screen doesn't refresh like it
> should.  You close a app, it's closed but it doesn't refresh the screen
> so it looks like it is still there.  The whole thing is weird.  Since I
> couldn't figure out what the problem was, I tried upgrading to Mageia
> 6.  Figured if it was a software bug, maybe that would fix it.  Nope. 
> So, she's using ICEwm for the moment but it is weird. 
>
> What I'm looking for.  Something that I can install fairly quickly from
> a DVD.  Rig is to old to boot from USB stick.  Something with a GUI
> update process that is fairly easy.  Uses either KDE by default or is
> easily installable, hopefully during install by default.  The big one,
> needs to be able to run on older hardware.  Her rig is something like a
> 2GHz single core CPU and around 2GBs of ram.  The drives are SATA but
> that's about the most advanced hardware it has.  The video is a built in
> Intel of some sort.  Nothing fast or even fancy for that matter.  Yes,
> I'm keeping a eye out for a newer rig but it is what it is right now.
>
> I've used Gentoo for so long, I don't know what other distros offer
> nowadays.  I figure that there are several distros that are graphical
> nowadays but also need good support for older hardware and easy update
> process.  Googling around isn't helping me much.  If I find something I
> like, no KDE.  If I find KDE based and a GUI updater, something else
> won't work.  I figure asking those who have personal experience would be
> best.  :-) 
>
> Thoughts?  Suggestions??
>
> Thanks.
>
> Dale
>
> :-)  :-) 
>

A bit of a update.  I went to my storage building and found a lot of
rigs mostly with parts missing but found one gem in the bunch that was
all there.  I suspect someone put it there when I wasn't at home and
knows where I keep them but it could be one I forgot about too.  Anyway,
I got four 1Gb sticks of ram in and am running memtest right now.  So
far, no errors.  It has a small hard drive in it but not sure if it will
be big enough for everyday use.  May have to remove the one from the
current rig she has.  It should be big enough for me to test some
distros out tho.  ;-)

Oh, single core running at 2.8GHz.  It ain't blazing fast but it's
likely faster than what she currently has plus the memory will help a
lot.  It's a older Dell.  It has that flip up front that covers the
CD/DVD drives.  Some may recall all the torn up CD/DVD drives that
caused.  :/ 

Dale

:-)  :-) 



Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread R0b0t1
On Wed, Jul 19, 2017 at 7:26 PM, Dale  wrote:
> R0b0t1 wrote:
>> On Wed, Jul 19, 2017 at 1:46 AM, Dale  wrote:
>>> Howdy,
>>>
>>> This isn't a Gentoo question but most everyone here used something
>>> before Gentoo.  I need a simple to upgrade distro for someone else.
>>>
>>> A friend of mine had windoze XP, which is dead to M$.  She needed
>>> something and buying a computer or new OS is not a option, even tho she
>>> needs to upgrade that 10 or 12 year old thing she has.  So, I put Mageia
>>> on it a couple years ago, used to be Mandrake way back which is what I
>>> started with.  She has been doing updates every week or so since it is
>>> GUI based and pretty easy.  Tell it to update or just click the pop-up
>>> when it tells you one is available and when it is done, reboot.  Yea,
>>> windowish I know.  lol  Anyway, she did a update and now she can't login
>>> to KDE.  I drove up, hour away, and tried to figure it out.  It has
>>> changed so much, I'm pretty clueless.  It is NOT Gentoo by any means.  I
>>> renamed the user directory in case it was a config that the new update
>>> was hanging on but nothing.  It just won't let you login.  Also reset
>>> the password as well.  Thing is, I installed ICEwm during the install
>>> and it works.  It logs in but the screen doesn't refresh like it
>>> should.  You close a app, it's closed but it doesn't refresh the screen
>>> so it looks like it is still there.  The whole thing is weird.  Since I
>>> couldn't figure out what the problem was, I tried upgrading to Mageia
>>> 6.  Figured if it was a software bug, maybe that would fix it.  Nope.
>>> So, she's using ICEwm for the moment but it is weird.
>>>
>>> What I'm looking for.  Something that I can install fairly quickly from
>>> a DVD.  Rig is to old to boot from USB stick.  Something with a GUI
>>> update process that is fairly easy.  Uses either KDE by default or is
>>> easily installable, hopefully during install by default.  The big one,
>>> needs to be able to run on older hardware.  Her rig is something like a
>>> 2GHz single core CPU and around 2GBs of ram.  The drives are SATA but
>>> that's about the most advanced hardware it has.  The video is a built in
>>> Intel of some sort.  Nothing fast or even fancy for that matter.  Yes,
>>> I'm keeping a eye out for a newer rig but it is what it is right now.
>>>
>>> I've used Gentoo for so long, I don't know what other distros offer
>>> nowadays.  I figure that there are several distros that are graphical
>>> nowadays but also need good support for older hardware and easy update
>>> process.  Googling around isn't helping me much.  If I find something I
>>> like, no KDE.  If I find KDE based and a GUI updater, something else
>>> won't work.  I figure asking those who have personal experience would be
>>> best.  :-)
>>>
>>> Thoughts?  Suggestions??
>>>
>> I second the suggestion to try Xubuntu, though you should also look at
>> Lubuntu (which uses LXDE). Sticking to Ubuntu based distributions
>> might be a good idea because there is a large userbase that has easy
>> to search for answers to common problems.
>>
>> Plasma 5 might load her hardware too much. Is MATE unsuitable? You can
>> also look for even lighter weight window managers and install them on
>> top of the default desktop environment, but most of them target power
>> users.
>>
>> https://wiki.archlinux.org/index.php/window_manager#List_of_window_managers
>>
>> R0b0t1.
>>
>>
>
>
> I have a question or two on this.  The reason I went with KDE, I use it
> and it is closest to being windozeish.  On occasion I read where some of
> those other "lighter" desktops are 'feature rich' like KDE is.  Example,
> plug in a USB device and it pops up with a menu to select from a lot
> like KDE does.  Is LXDE or Mate like that?
>

MATE is probably the closest to a stereotypical Windows setup and
looks better; LXDE should be technically sufficient but it's possible
to say it doesn't look very nice. I would actually expect more culture
shock going from Windows to KDE than Windows to MATE. MATE and Gnome 2
are fairly close to Windows XP in design, granted some things are
moved around. Gnome 3 is closer to Windows 8 and 8.1. Plasma 5
implements more of the things that one finds in Windows 10.

(Notably those desktop environments came out *before* the respective
Windows versions that share UI/UX design elements with them.)

When you get to the low end of desktop environments or window mangers,
they tend to clash with default window stylings and don't offer any
window chrome.  They were made by programmers with little or no
background in graphic design.

> The thing about her, she doesn't know a lot about puters but she doesn't
> mind clicking around to find a way to get things to work.  Example, she
> plugged her phone in and figured out how to download pics and stuff.
> Heck, I don't know how to do that myself.  Then again, my phone is so
> old, it may not can do that.  It's a old Motorola Razr flip phone which
> I ma

[gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Nikos Chantziaras

On 20/07/17 06:46, Dale wrote:

First, I'm pretty clueless on what you are doing but notice something
that just may be related.  Do you have zsh installed on your system?  It
says zsh can't be found basically so perhaps it needs to be
installed???
No, that message is just zsh printing the error message. For example, 
when you enter:


  sdfkljsdfklsdfjkl

with bash you get:

  bash: sdfkljsdfklsdfjkl: command not found

With zsh, the prefix would be "zsh: ", not "bash: ".




Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Dale
tu...@posteo.de wrote:
> On 07/20 04:51, Nikos Chantziaras wrote:
>> On 19/07/17 19:57, tu...@posteo.de wrote:
>>> Hi,
>>>
>>> My Buspirate v36a needs a newer firmware.
>>> Unfortunately the flasher software is only
>>> available in 32bit and I run a 64bit modern
>>> Gentoo.
>> Is this the tool?
>>
>> https://github.com/DangerousPrototypes/Bus_Pirate/blob/master/package/BPv3-firmware/pirate-loader_lnx
>>
>> That is a dynamically linked executable. I just ran it on my 64-bit Gentoo:
>>
>>
>> $ ./pirate-loader_lnx
>> +++
>>   Pirate-Loader for BP with Bootloader v4+
>>   Loader version: 1.0.2  OS: Linux
>> +++
>>
>> pirate-loader usage:
>>
>>  ./pirate-loader --dev=/path/to/device --hello
>>  ./pirate-loader --dev=/path/to/device --hex=/path/to/hexfile.hex [
>> --verbose
>>  ./pirate-loader --simulate --hex=/path/to/hexfile.hex [ --verbose
>>
>>
>
> Now it this case changes from "weird" to "mysterious":
>
> I downloaded that file. Here it has the checksum (md5)
>
> 97122ea9062bbabcd04b2ffdee7b1bb8  pirate-loader_lnx
>
> "file pirate-loader_lnx"says:
> pirate-loader_lnx: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
> dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, with 
> debug_info, not stripped
>
> but "ldd" states:
> ldd ./pirate-loader_lnx 
>   not a dynamic executable
>
>
> How can "dynamically linked" and "not a dynamic executable" can be
> true simultanously?
>
> By the way: Executing that version prints
> zsh: no such file or directory: ./pirate-loader_lnx
> [1]13112 exit 127   ./pirate-loader_lnx
>
> (I tried this bash with the same rsult. Seems not to be a shell
> interference here...)
>
> Now it looks like a problem on my system...but everything works fine
> here (beside the already reported problems while compiling
> screen/lynx)
>
>
> Cheers
> Meino
>

First, I'm pretty clueless on what you are doing but notice something
that just may be related.  Do you have zsh installed on your system?  It
says zsh can't be found basically so perhaps it needs to be
installed???  I checked, I don't have it installed here but Nikos may
have it installed on his rig for some reason. 

* app-shells/zsh
 Available versions:  5.0.5 5.2 ~5.2-r1 ~5.3 ~5.3.1 ** {caps
debug doc examples gdbm maildir pcre static unicode}
 Homepage:http://www.zsh.org/
 Description: UNIX Shell similar to the Korn shell

Again, I'm pretty clueless on this but thought maybe it might help.  If
not related, ignore me.  lol  I have no clue what I'm talking about.  ROFL 

Dale

:-)  :-) 



[gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Nikos Chantziaras

On 20/07/17 06:26, Nikos Chantziaras wrote:

What is the output of:

   $ eix -e glibc

Does it list the "multilib" USE flag as enabled? Does /lib32/libc.so.6 
exist?


In addition, what is the output of:

  $ file /lib/ld-linux.so.2

It should be:

  /lib/ld-linux.so.2: symbolic link to ../lib32/ld-linux.so.2





[gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Nikos Chantziaras

On 20/07/17 06:11, tu...@posteo.de wrote:

On 07/20 04:51, Nikos Chantziaras wrote:

On 19/07/17 19:57, tu...@posteo.de wrote:

Hi,

My Buspirate v36a needs a newer firmware.
Unfortunately the flasher software is only
available in 32bit and I run a 64bit modern
Gentoo.


Is this the tool?

https://github.com/DangerousPrototypes/Bus_Pirate/blob/master/package/BPv3-firmware/pirate-loader_lnx

That is a dynamically linked executable. I just ran it on my 64-bit Gentoo:
[...]


Now it this case changes from "weird" to "mysterious":

I downloaded that file. Here it has the checksum (md5)

97122ea9062bbabcd04b2ffdee7b1bb8  pirate-loader_lnx


Same md5sum here. So we have the same binary.


"file pirate-loader_lnx"says:
pirate-loader_lnx: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, with 
debug_info, not stripped


Same here.



but "ldd" states:
ldd ./pirate-loader_lnx
not a dynamic executable


That's where I get a different result. Here, I get:

$ ldd pirate-loader_lnx
linux-gate.so.1 (0xf776a000)
libc.so.6 => /lib32/libc.so.6 (0xf757)
/lib/ld-linux.so.2 (0xf776b000)

(Btw, I assume you did "chmod +x pirate-loader_lnx" on it.)



How can "dynamically linked" and "not a dynamic executable" can be
true simultanously?


That is weird. Can it be that you're not using a multilib configuration? 
What is the output of:


  $ eix -e glibc

Does it list the "multilib" USE flag as enabled? Does /lib32/libc.so.6 
exist?





Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread tuxic
On 07/20 04:51, Nikos Chantziaras wrote:
> On 19/07/17 19:57, tu...@posteo.de wrote:
> > Hi,
> > 
> > My Buspirate v36a needs a newer firmware.
> > Unfortunately the flasher software is only
> > available in 32bit and I run a 64bit modern
> > Gentoo.
> 
> Is this the tool?
> 
> https://github.com/DangerousPrototypes/Bus_Pirate/blob/master/package/BPv3-firmware/pirate-loader_lnx
> 
> That is a dynamically linked executable. I just ran it on my 64-bit Gentoo:
> 
> 
> $ ./pirate-loader_lnx
> +++
>   Pirate-Loader for BP with Bootloader v4+
>   Loader version: 1.0.2  OS: Linux
> +++
> 
> pirate-loader usage:
> 
>  ./pirate-loader --dev=/path/to/device --hello
>  ./pirate-loader --dev=/path/to/device --hex=/path/to/hexfile.hex [
> --verbose
>  ./pirate-loader --simulate --hex=/path/to/hexfile.hex [ --verbose
> 
> 

For the completeness -- here is a new strace log of that version:

strace -v ./pirate-loader_lnx

execve("./pirate-loader_lnx", ["./pirate-loader_lnx"],
["CSF_STEPDefaults=/usr/lib64/open"..., "TK_LIBRARY=/usr/lib64/tk8.6",
"CSF_EXCEPTION_PROMPT=1", "MMGT_CLEAR=1", "HISTSIZE=3",
"KFORTH_DIR=/usr/share/kForth", "CSF_UnitsDefinition=/usr/lib64/o"...,
"EDITOR=/usr/bin/vim", "CASROOT=/usr/lib64/opencascade-6"...,
"PAGER=/usr/bin/less", "SHELL=/bin/zsh", "CG_COMPILER_EXE=/opt/bin/cgc",
"PILOTPORT=/dev/tts/0", "GNOME_LIBCONFIG_PATH=/usr/lib",
"CSF_MDTVFontDirectory=/usr/lib64"..., "TCLLIBPATH=/usr/lib64",
"HOME=/home/mccramer", "DISPLAY=:0.0", "VBOX_APP_HOME=/usr/lib64/virtual"...,
"VTKHOME=/usr", "ANT_HOME=/usr/share/ant", "GSETTINGS_BACKEND=dconf",
"CSF_MDTVTexturesDirectory=/usr/l"..., "LUA_CPATH=/usr/lib64/lua/luarock"...,
"CONFIG_PROTECT_MASK=/etc/sandbox"..., "FLTK_DOCDIR=/usr/share/doc/fltk-"...,
"VTK_DIR=/usr/lib64/vtk-6.1", "CONFIG_PROTECT=/usr/share/gnupg/"...,
"XDG_DATA_DIRS=/root/.local/share"..., "TEXDOCVIEW_ps=kghostview %s",
"GROFF_NO_SGR=1", "PKG_CONFIG_PATH=/usr/lib/pkgconf"...,
"TCL_LIBRARY=/usr/lib64/tcl8.6", "CSF_PluginDefaults=/usr/lib64/op"...,
"MAIL=/var/spool/mail/mccramer", "CSF_LANGUAGE=us", "PERLIO=stdio",
"LESSOPEN=|/usr/bin/lesspipe.sh %"..., "CSF_UnitsLexicon=/usr/lib64/open"...,
"SHLVL=1", "CSF_MIGRATION_TYPES=/usr/lib64/o"...,
"LUA_PATH=/usr/lib64/lua/luarocks"..., "GCC_SPECS=",
"CSF_XmlOcafResource=/usr/lib64/o"..., "LADSPA_PATH=/usr/lib64/ladspa",
"CSF_GraphicShr=/usr/lib64/openca"..., "CG_LIB_PATH=/opt/nvidia-cg-toolk"...,
"VTK_DATA_ROOT=/usr/share/vtk/dat"..., "CSF_StandardLiteDefaults=/usr/li"...,
"AXIOM=/usr/axiom/mnt/linux", "TIX_LIBRARY=/usr/lib64/tix8.4",
"JAVA_HOME=/home/mccramer/.gentoo"..., "ITCL_LIBRARY=/usr/lib64/itcl4.0",
"TERM=xterm-256color", "MANPATH=/home/mccramer/.gentoo/j"...,
"TEXDOCVIEW_pdf=kgh %s", "TCLHOME=/usr/bin", "LANG=en_US.UTF-8",
"JDK_HOME=/home/mccramer/.gentoo/"..., "OLDPWD=/home/mccramer",
"OPENGL_PROFILE=nvidia", "PWD=/home/mccramer/data/pools/po"...,
"SBCL_HOME=/usr/local/lib64/sbcl", "TEXDOCVIEW_dvi=kgh %s", "LOGNAME=mccramer",
"HELPDIR=/usr/local/lib/zsh/help", "CG_INC_PATH=/opt/nvidia-cg-toolk"...,
"G_BROKEN_FILENAMES=", "MC_COLOR_TABLE=base_color=normal"...,
"CSF_StandardDefaults=/usr/lib64/"..., "XDG_CONFIG_DIRS=/etc/xdg", "LESS=-R -M
--shift 5", "EIX_LIMIT=0", "CSF_IGESDefaults=/usr/lib64/open"...,
"CSF_XSMessage=/usr/lib64/opencas"..., "INFOPATH=/usr/share/gcc-data/x86"...,
"CSF_XCAFDefaults=/usr/lib64/open"..., "TEXDOCVIEW_html=dillo %s",
"USER=mccramer", "JAVAC=/home/mccramer/.gentoo/jav"...,
"zshloader=:/home/mccramer/.zshen"..., "CSF_SHMessage=/usr/lib64/opencas"...,
"ITK_LIBRARY=/usr/lib64/itk4.0", "PATH=/usr/local/sbin:/usr/local/"...,
"QT_GRAPHICSSYSTEM=opengl", "FRACTDIR=/usr/share/xfractint",
"LS_COLORS=no=00:fi=00:di=00;32:l"..., "OPENCL_PROFILE=nvidia",
"XAUTHORITY=/home/mccramer/.Xauth"..., "WINDOWID=44040204",
"COLORFGBG=default;0", "COLORTERM=rxvt", "PS1=%M:%2d>",
"PKGHOME=/home/mccramer/NetModule"..., "DIFMT=SvFUaPTM",
"CUDA_VISIBLE_DEVICES=0", "GDAL_DATA=/usr/share/GeoExpressC"...,
"PROJSO=/usr/share/GeoExpressCLUt"..., "_=/usr/bin/strace"]) = -1 ENOENT (No
such file or directory) fstat(2, {st_dev=makedev(0, 9), st_ino=55306,
st_mode=S_IFIFO|0600, st_nlink=1, st_uid=1001, st_gid=100, st_blksize=4096,
st_blocks=0, st_size=0, st_atime=1500520453 /*
2017-07-20T05:14:13.854919641+0200 */, st_atime_nsec=854919641,
st_mtime=1500520453 /* 2017-07-20T05:14:13.859919641+0200 */,
st_mtime_nsec=859919641, st_ctime=1500520453 /*
2017-07-20T05:14:13.859919641+0200 */, st_ctime_nsec=859919641}) = 0 write(2,
"strace: exec: No such file or di"..., 40strace: exec: No such file or
directory) = 40 exit_group(1)   = ?  +++ exited with 1
+++

[1]13169 exit 1 strace -v ./pirate-loader_lnx

At least it looks different as the previous one...but I can't imagine
still, what it wants to tell me...

"Trinitu...HELP!"

Cheers
Meino






Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread tuxic
On 07/20 04:51, Nikos Chantziaras wrote:
> On 19/07/17 19:57, tu...@posteo.de wrote:
> > Hi,
> > 
> > My Buspirate v36a needs a newer firmware.
> > Unfortunately the flasher software is only
> > available in 32bit and I run a 64bit modern
> > Gentoo.
> 
> Is this the tool?
> 
> https://github.com/DangerousPrototypes/Bus_Pirate/blob/master/package/BPv3-firmware/pirate-loader_lnx
> 
> That is a dynamically linked executable. I just ran it on my 64-bit Gentoo:
> 
> 
> $ ./pirate-loader_lnx
> +++
>   Pirate-Loader for BP with Bootloader v4+
>   Loader version: 1.0.2  OS: Linux
> +++
> 
> pirate-loader usage:
> 
>  ./pirate-loader --dev=/path/to/device --hello
>  ./pirate-loader --dev=/path/to/device --hex=/path/to/hexfile.hex [
> --verbose
>  ./pirate-loader --simulate --hex=/path/to/hexfile.hex [ --verbose
> 
> 


Now it this case changes from "weird" to "mysterious":

I downloaded that file. Here it has the checksum (md5)

97122ea9062bbabcd04b2ffdee7b1bb8  pirate-loader_lnx

"file pirate-loader_lnx"says:
pirate-loader_lnx: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, with 
debug_info, not stripped

but "ldd" states:
ldd ./pirate-loader_lnx 
not a dynamic executable


How can "dynamically linked" and "not a dynamic executable" can be
true simultanously?

By the way: Executing that version prints
zsh: no such file or directory: ./pirate-loader_lnx
[1]13112 exit 127   ./pirate-loader_lnx

(I tried this bash with the same rsult. Seems not to be a shell
interference here...)

Now it looks like a problem on my system...but everything works fine
here (beside the already reported problems while compiling
screen/lynx)


Cheers
Meino







Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread tuxic
On 07/19 10:53, Mick wrote:
> On Wednesday 19 Jul 2017 21:05:51 Jorge Almeida wrote:
> > On Wed, Jul 19, 2017 at 8:28 PM,   wrote:
> > > #
> > > # Executable file formats / Emulations
> > > #
> > > CONFIG_BINFMT_ELF=y
> > > CONFIG_COMPAT_BINFMT_ELF=y
> > > CONFIG_ELFCORE=y
> > > CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
> > > CONFIG_BINFMT_SCRIPT=y
> > > # CONFIG_HAVE_AOUT is not set
> > > CONFIG_BINFMT_MISC=y
> > > CONFIG_COREDUMP=y
> > > CONFIG_IA32_EMULATION=y
> > > CONFIG_IA32_AOUT=y
> > > CONFIG_X86_X32=y
> > > CONFIG_COMPAT_32=y
> > > CONFIG_COMPAT=y
> > > CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
> > > CONFIG_SYSVIPC_COMPAT=y
> > > CONFIG_KEYS_COMPAT=y
> > > CONFIG_X86_DEV_DMA_OPS=y
> > > CONFIG_NET=y
> > > CONFIG_COMPAT_NETLINK_MESSAGES=y
> > > CONFIG_NET_INGRESS=y
> > 
> > Looks good. I know for a fact that we can run a static 32 bit binary
> > in a 64 bit gentoo, even without x32 support. I tried with a program I
> > had compiled in a pure 32 bit system, but my program doesn't have any
> > library as run-time dependency. Your pirate-loader_lnx seems to have
> > strange requirements.
> > 
> > I would install a 32 bit linux (e.g. Alpine). But you cannot be sure
> > it provides whatever pirate-loader_lnx wants...
> > 
> > Maybe you could post the output of "strace ./pirate_loader_lnx"? Maybe
> > the authors assumed a path for something that Gentoo puts somewhere
> > else? If so, a small forest of symlinks might do the job, lacking a
> > better solution...
> > 
> > (such assumptions are one of the marks  of crappy sw, as in "everybody
> > uses Windows, so...". Unfortunately, free sw may have the same faults,
> > for example with s/Windows/Ubuntu/g)
> > 
> > 
> > Cheers
> > 
> > Jorge
> 
> The errors posted earlier showed libc.mo is missing ... e.g.
> 
> /usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo
> 
> Can you find the required files in your fs and are they 0644?
> -- 
> Regards,
> Mick

HI Mick,

this is fixed already...the results remain the same...

Cheers
Meino






Re: [gentoo-user] Can't compile media-libs/mesa - do I need gallium?

2017-07-19 Thread Stroller

> On 17 Jul 2017, at 03:14, Walter Dnes  wrote:
> 
> On Mon, Jul 17, 2017 at 01:43:46AM +0100, Stroller wrote
>> This system is headless, but I have x11-wm/xpra installed on it so I can run 
>> X11 apps remotely.
>> 
>> Recent emerges of world have been failing at media-libs/mesa
>> ...
>> 
>> All I can make out is that it's a problem with gallium. The current
>> version of mesa appears to have gallium enabled, though.
>> 
>> I know nothing about mesa, not even really what it's for, so I don't
>> know if I should just try disabling gallium and trying again.
> 
>  I've got 17.0.6 building and running fine, under GCC 6.3.0 (YES !),
> without gallium.  I suggest trying "-gallium" in make.conf.  Here's my
> mesa "pretend build" output...
> 
> [ebuild   R] media-libs/mesa-17.0.6::gentoo  USE="bindist classic dri3 
> egl gbm gles2 nptl -d3d9 -debug -gallium -gles1 -llvm -opencl -openmax 
> -osmesa -pax_kernel -pic (-selinux) -vaapi -valgrind -vdpau -vulkan -wayland 
> -xa -xvmc" VIDEO_CARDS="i915 intel (-freedreno) -i965 -imx -nouveau -r100 
> -r200 -r300 -r600 -radeon -radeonsi (-vc4) (-vivante) -vmware" 0 KiB 

llvm depends on gallium, I think, as emerging with USE="-gallium" throws an 
error of that nature. 

Emerging with USE="-gallium -llvm" works, but I was pleased with the solution 
provided by IceAmber, as it allows me to update mesa with the default flags 
(i.e. with those enabled).

Since I don't use X11 much I feel happier using the default flags wherever 
possible (irrational of me, perhaps), unless they pull in too many dependencies.

I appreciate all the help,

Stroller.





[gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Nikos Chantziaras

On 19/07/17 19:57, tu...@posteo.de wrote:

Hi,

My Buspirate v36a needs a newer firmware.
Unfortunately the flasher software is only
available in 32bit and I run a 64bit modern
Gentoo.


Is this the tool?

https://github.com/DangerousPrototypes/Bus_Pirate/blob/master/package/BPv3-firmware/pirate-loader_lnx

That is a dynamically linked executable. I just ran it on my 64-bit Gentoo:


$ ./pirate-loader_lnx
+++
  Pirate-Loader for BP with Bootloader v4+
  Loader version: 1.0.2  OS: Linux
+++

pirate-loader usage:

 ./pirate-loader --dev=/path/to/device --hello
 ./pirate-loader --dev=/path/to/device --hex=/path/to/hexfile.hex [ 
--verbose

 ./pirate-loader --simulate --hex=/path/to/hexfile.hex [ --verbose




Re: [gentoo-user] Can't compile media-libs/mesa - do I need gallium?

2017-07-19 Thread Stroller

> On 18 Jul 2017, at 02:33, IceAmber  wrote:
> 
> Actually, this is the c++ 11 abi bug, read the news
> And you can solve it by `revdep-rebuild --library 'libstdc++.so.6' -- 
> --exclude gcc`

Many thanks!

That worked perfectly.

Stroller.




Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread Rich Freeman
On Wed, Jul 19, 2017 at 5:26 PM, Dale  wrote:
>
> I have a question or two on this.  The reason I went with KDE, I use it
> and it is closest to being windozeish.  On occasion I read where some of
> those other "lighter" desktops are 'feature rich' like KDE is.  Example,
> plug in a USB device and it pops up with a menu to select from a lot
> like KDE does.  Is LXDE or Mate like that?
>

To some degree I'd think Mate would offer this kind of experience.
Lightweight options like lxde or xfce are probably going to fall
short.  Full Gnome or KDE are are probably as close as you're going to
get to a Windows-like environment.

Another option I'd toss out there is ChromiumOS, though it isn't
really intended as a mainstream option on non-Chrome hardware.  For
$120 a Chromebook is pretty hard to beat, IMO (and a Chromebit or
similar solution is even cheaper).  That isn't what you're looking
for, but when relatives ask me about PC recommendations I tend to lean
Chromebook unless they REALLY need to run thick applications, because
they're basically zero maintenance and idiot proof.  Oh, and they're
Gentoo derivatives.  :)

Nobody seems to be mentioning full Ubuntu - assuming it performs well
it should of course be considered as an option as well.  I'm all for
Xubuntu but it might not be the best fit depending.

-- 
Rich



Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread Dale
Neil Bothwick wrote:
> On Wed, 19 Jul 2017 10:48:58 +0100, Mick wrote:
>
>> Did you look at the logs?  Assuming this is a systemd OS try:
>>
>> journalctl
>>
>> to view the log.  Add -b to only see boot messages, -f to follow
>> current activity (just like 'tail -f' command), and -n 15 to see the
>> last 15 entries.
> A slight correction, -b shows messages since the last boot, not just boot
> messages.
>
>

I vaguely recalled reading about that on this list a good while back but
the command escaped me completely.  I avoid systemd here.  I have no
knowledge of how it does its thing or the commands to use to figure out
what was wrong.  I hadn't even thought about it until I got there and
realized it was a systemd OS. 

If only I knew then.  ;-) 

Thanks to both.

Dale

:-)  :-) 



Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread Dale
R0b0t1 wrote:
> On Wed, Jul 19, 2017 at 1:46 AM, Dale  wrote:
>> Howdy,
>>
>> This isn't a Gentoo question but most everyone here used something
>> before Gentoo.  I need a simple to upgrade distro for someone else.
>>
>> A friend of mine had windoze XP, which is dead to M$.  She needed
>> something and buying a computer or new OS is not a option, even tho she
>> needs to upgrade that 10 or 12 year old thing she has.  So, I put Mageia
>> on it a couple years ago, used to be Mandrake way back which is what I
>> started with.  She has been doing updates every week or so since it is
>> GUI based and pretty easy.  Tell it to update or just click the pop-up
>> when it tells you one is available and when it is done, reboot.  Yea,
>> windowish I know.  lol  Anyway, she did a update and now she can't login
>> to KDE.  I drove up, hour away, and tried to figure it out.  It has
>> changed so much, I'm pretty clueless.  It is NOT Gentoo by any means.  I
>> renamed the user directory in case it was a config that the new update
>> was hanging on but nothing.  It just won't let you login.  Also reset
>> the password as well.  Thing is, I installed ICEwm during the install
>> and it works.  It logs in but the screen doesn't refresh like it
>> should.  You close a app, it's closed but it doesn't refresh the screen
>> so it looks like it is still there.  The whole thing is weird.  Since I
>> couldn't figure out what the problem was, I tried upgrading to Mageia
>> 6.  Figured if it was a software bug, maybe that would fix it.  Nope.
>> So, she's using ICEwm for the moment but it is weird.
>>
>> What I'm looking for.  Something that I can install fairly quickly from
>> a DVD.  Rig is to old to boot from USB stick.  Something with a GUI
>> update process that is fairly easy.  Uses either KDE by default or is
>> easily installable, hopefully during install by default.  The big one,
>> needs to be able to run on older hardware.  Her rig is something like a
>> 2GHz single core CPU and around 2GBs of ram.  The drives are SATA but
>> that's about the most advanced hardware it has.  The video is a built in
>> Intel of some sort.  Nothing fast or even fancy for that matter.  Yes,
>> I'm keeping a eye out for a newer rig but it is what it is right now.
>>
>> I've used Gentoo for so long, I don't know what other distros offer
>> nowadays.  I figure that there are several distros that are graphical
>> nowadays but also need good support for older hardware and easy update
>> process.  Googling around isn't helping me much.  If I find something I
>> like, no KDE.  If I find KDE based and a GUI updater, something else
>> won't work.  I figure asking those who have personal experience would be
>> best.  :-)
>>
>> Thoughts?  Suggestions??
>>
> I second the suggestion to try Xubuntu, though you should also look at
> Lubuntu (which uses LXDE). Sticking to Ubuntu based distributions
> might be a good idea because there is a large userbase that has easy
> to search for answers to common problems.
>
> Plasma 5 might load her hardware too much. Is MATE unsuitable? You can
> also look for even lighter weight window managers and install them on
> top of the default desktop environment, but most of them target power
> users.
>
> https://wiki.archlinux.org/index.php/window_manager#List_of_window_managers
>
> R0b0t1.
>
>


I have a question or two on this.  The reason I went with KDE, I use it
and it is closest to being windozeish.  On occasion I read where some of
those other "lighter" desktops are 'feature rich' like KDE is.  Example,
plug in a USB device and it pops up with a menu to select from a lot
like KDE does.  Is LXDE or Mate like that? 

The thing about her, she doesn't know a lot about puters but she doesn't
mind clicking around to find a way to get things to work.  Example, she
plugged her phone in and figured out how to download pics and stuff. 
Heck, I don't know how to do that myself.  Then again, my phone is so
old, it may not can do that.  It's a old Motorola Razr flip phone which
I maxed out on contacts in my address book a while back.  I want it to
be easy for her but at the same time, she can figure things out.  She
also knows that as long as she is a user, she can't hurt much.  She
stays away from root except when doing updates. 

The biggest thing, her rig is old.  It's older than my older rig and
ancient compared to what I'm typing on now which is several years old
itself but has upgrade room.  lol 

Thinking about installing some of these on my rig and just seeing what
it looks like.  < thinking > 

Thanks.

Dale

:-)  :-) 



Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread Dale
Philip Webb wrote:
> 170719 Dale wrote:
>> This isn't a Gentoo question but most everyone here used something
>> before Gentoo.  I need a simple to upgrade distro for someone else. 
> I have Mint KDE & Mint Xfce installed to test things & show others :
> it's simple, fast & reliable in my limited experience.
> Mageia 6 has just come out, so why not install that ?
> -- Mandrake is what I used before I started using Gentoo in 2003.
>

She was on 5 and when I hit the wall, I went to 6.  We went and ate
supper and let it go for a couple hours and it still wasn't done
upgrading.  Still, same problem after it was done upgrading.  Someone
else mentioned it being a bug for the older hardware and that could be
it.  Could be that old video card isn't well supported or at all. 

I'll keep Mint KDE in mind.  I'm going to try to piece something
together but most of the stuff I have laying around is old or doesn't
work at all.  Not good options really. 

Thanks for the info. 

Dale

:-)  :-) 



Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Mick
On Wednesday 19 Jul 2017 21:05:51 Jorge Almeida wrote:
> On Wed, Jul 19, 2017 at 8:28 PM,   wrote:
> > #
> > # Executable file formats / Emulations
> > #
> > CONFIG_BINFMT_ELF=y
> > CONFIG_COMPAT_BINFMT_ELF=y
> > CONFIG_ELFCORE=y
> > CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
> > CONFIG_BINFMT_SCRIPT=y
> > # CONFIG_HAVE_AOUT is not set
> > CONFIG_BINFMT_MISC=y
> > CONFIG_COREDUMP=y
> > CONFIG_IA32_EMULATION=y
> > CONFIG_IA32_AOUT=y
> > CONFIG_X86_X32=y
> > CONFIG_COMPAT_32=y
> > CONFIG_COMPAT=y
> > CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
> > CONFIG_SYSVIPC_COMPAT=y
> > CONFIG_KEYS_COMPAT=y
> > CONFIG_X86_DEV_DMA_OPS=y
> > CONFIG_NET=y
> > CONFIG_COMPAT_NETLINK_MESSAGES=y
> > CONFIG_NET_INGRESS=y
> 
> Looks good. I know for a fact that we can run a static 32 bit binary
> in a 64 bit gentoo, even without x32 support. I tried with a program I
> had compiled in a pure 32 bit system, but my program doesn't have any
> library as run-time dependency. Your pirate-loader_lnx seems to have
> strange requirements.
> 
> I would install a 32 bit linux (e.g. Alpine). But you cannot be sure
> it provides whatever pirate-loader_lnx wants...
> 
> Maybe you could post the output of "strace ./pirate_loader_lnx"? Maybe
> the authors assumed a path for something that Gentoo puts somewhere
> else? If so, a small forest of symlinks might do the job, lacking a
> better solution...
> 
> (such assumptions are one of the marks  of crappy sw, as in "everybody
> uses Windows, so...". Unfortunately, free sw may have the same faults,
> for example with s/Windows/Ubuntu/g)
> 
> 
> Cheers
> 
> Jorge

The errors posted earlier showed libc.mo is missing ... e.g.

/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo

Can you find the required files in your fs and are they 0644?
-- 
Regards,
Mick

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


Re: [gentoo-user] Hardened again

2017-07-19 Thread Peter Humphrey
On Wednesday 19 Jul 2017 14:17:30 Rasmus Thomsen wrote:

> I'm not quite sure if I understand the second part correctly, but I guess
> you want to compile packages on your workstation for that smaller box?

Yes.

> In that case it doesn't matter which kernel your host uses, just make sure
> to choose the correct -march value. You don't have to run the hardened
> kernel for the hardened profile to work ( although it greatly enhances it

That's what I needed to know - thanks.

-- 
Regards
Peter




Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Marc Joliet
Am Mittwoch, 19. Juli 2017, 22:39:42 CEST schrieb Marc Joliet:
> Am Mittwoch, 19. Juli 2017, 20:25:57 CEST schrieb tu...@posteo.de:
> > execve("./pirate-loader_lnx", ["./pirate-loader_lnx"], 0x7fff1840a250 /*
> > 18
> > vars */) = -1 ENOENT (No such file or directory)
> 
> Umm, perhaps a dumb question, but you didn't mistype the command by any
> chance?  (In another email you call it pirate_loader_lnx, with an underscore
> instead of a dash.)

Ugh, forget it, I looked online and it is indeed written with a dash.

-- 
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.


Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread R0b0t1
On Wed, Jul 19, 2017 at 1:46 AM, Dale  wrote:
> Howdy,
>
> This isn't a Gentoo question but most everyone here used something
> before Gentoo.  I need a simple to upgrade distro for someone else.
>
> A friend of mine had windoze XP, which is dead to M$.  She needed
> something and buying a computer or new OS is not a option, even tho she
> needs to upgrade that 10 or 12 year old thing she has.  So, I put Mageia
> on it a couple years ago, used to be Mandrake way back which is what I
> started with.  She has been doing updates every week or so since it is
> GUI based and pretty easy.  Tell it to update or just click the pop-up
> when it tells you one is available and when it is done, reboot.  Yea,
> windowish I know.  lol  Anyway, she did a update and now she can't login
> to KDE.  I drove up, hour away, and tried to figure it out.  It has
> changed so much, I'm pretty clueless.  It is NOT Gentoo by any means.  I
> renamed the user directory in case it was a config that the new update
> was hanging on but nothing.  It just won't let you login.  Also reset
> the password as well.  Thing is, I installed ICEwm during the install
> and it works.  It logs in but the screen doesn't refresh like it
> should.  You close a app, it's closed but it doesn't refresh the screen
> so it looks like it is still there.  The whole thing is weird.  Since I
> couldn't figure out what the problem was, I tried upgrading to Mageia
> 6.  Figured if it was a software bug, maybe that would fix it.  Nope.
> So, she's using ICEwm for the moment but it is weird.
>
> What I'm looking for.  Something that I can install fairly quickly from
> a DVD.  Rig is to old to boot from USB stick.  Something with a GUI
> update process that is fairly easy.  Uses either KDE by default or is
> easily installable, hopefully during install by default.  The big one,
> needs to be able to run on older hardware.  Her rig is something like a
> 2GHz single core CPU and around 2GBs of ram.  The drives are SATA but
> that's about the most advanced hardware it has.  The video is a built in
> Intel of some sort.  Nothing fast or even fancy for that matter.  Yes,
> I'm keeping a eye out for a newer rig but it is what it is right now.
>
> I've used Gentoo for so long, I don't know what other distros offer
> nowadays.  I figure that there are several distros that are graphical
> nowadays but also need good support for older hardware and easy update
> process.  Googling around isn't helping me much.  If I find something I
> like, no KDE.  If I find KDE based and a GUI updater, something else
> won't work.  I figure asking those who have personal experience would be
> best.  :-)
>
> Thoughts?  Suggestions??
>

I second the suggestion to try Xubuntu, though you should also look at
Lubuntu (which uses LXDE). Sticking to Ubuntu based distributions
might be a good idea because there is a large userbase that has easy
to search for answers to common problems.

Plasma 5 might load her hardware too much. Is MATE unsuitable? You can
also look for even lighter weight window managers and install them on
top of the default desktop environment, but most of them target power
users.

https://wiki.archlinux.org/index.php/window_manager#List_of_window_managers

R0b0t1.



Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Marc Joliet
Am Mittwoch, 19. Juli 2017, 20:25:57 CEST schrieb tu...@posteo.de:
> execve("./pirate-loader_lnx", ["./pirate-loader_lnx"], 0x7fff1840a250 /* 18
> vars */) = -1 ENOENT (No such file or directory)

Umm, perhaps a dumb question, but you didn't mistype the command by any 
chance?  (In another email you call it pirate_loader_lnx, with an underscore 
instead of a dash.)

-- 
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.


[gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Grant Edwards
On 2017-07-19, tu...@posteo.de  wrote:

> My Buspirate v36a needs a newer firmware.
> Unfortunately the flasher software is only
> available in 32bit and I run a 64bit modern
> Gentoo.
>
> The flasher is a commandline tool and needs
> no fancy movie player or fat surround sound.
>
> If there is no way (I fear) to setup a tiny
> quick'n' dirty 32bit environment on my Gentoo
> just to flash the firmware I woyld install
> a tiny quick'n'dirty 32bit Linux for my
> Virtual Box.

Why not just boot up a 32-bit LiveCD?  (Or more likely these days, a
LiveUSB.)

Doesn't systemrescuecd still have a 32-bit boot option?

-- 
Grant Edwards   grant.b.edwardsYow! The entire CHINESE
  at   WOMEN'S VOLLEYBALL TEAM all
  gmail.comshare ONE personality --
   and have since BIRTH!!




Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread Neil Bothwick
On Wed, 19 Jul 2017 10:48:58 +0100, Mick wrote:

> Did you look at the logs?  Assuming this is a systemd OS try:
> 
> journalctl
> 
> to view the log.  Add -b to only see boot messages, -f to follow
> current activity (just like 'tail -f' command), and -n 15 to see the
> last 15 entries.

A slight correction, -b shows messages since the last boot, not just boot
messages.


-- 
Neil Bothwick

Physics is like sex: sure, it may give some practical results, but
  that's not why we do it.Richard Feynman


pgpJsFXlXeb_y.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Jorge Almeida
On Wed, Jul 19, 2017 at 8:28 PM,   wrote:


> #
> # Executable file formats / Emulations
> #
> CONFIG_BINFMT_ELF=y
> CONFIG_COMPAT_BINFMT_ELF=y
> CONFIG_ELFCORE=y
> CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
> CONFIG_BINFMT_SCRIPT=y
> # CONFIG_HAVE_AOUT is not set
> CONFIG_BINFMT_MISC=y
> CONFIG_COREDUMP=y
> CONFIG_IA32_EMULATION=y
> CONFIG_IA32_AOUT=y
> CONFIG_X86_X32=y
> CONFIG_COMPAT_32=y
> CONFIG_COMPAT=y
> CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
> CONFIG_SYSVIPC_COMPAT=y
> CONFIG_KEYS_COMPAT=y
> CONFIG_X86_DEV_DMA_OPS=y
> CONFIG_NET=y
> CONFIG_COMPAT_NETLINK_MESSAGES=y
> CONFIG_NET_INGRESS=y
>

Looks good. I know for a fact that we can run a static 32 bit binary
in a 64 bit gentoo, even without x32 support. I tried with a program I
had compiled in a pure 32 bit system, but my program doesn't have any
library as run-time dependency. Your pirate-loader_lnx seems to have
strange requirements.

I would install a 32 bit linux (e.g. Alpine). But you cannot be sure
it provides whatever pirate-loader_lnx wants...

Maybe you could post the output of "strace ./pirate_loader_lnx"? Maybe
the authors assumed a path for something that Gentoo puts somewhere
else? If so, a small forest of symlinks might do the job, lacking a
better solution...

(such assumptions are one of the marks  of crappy sw, as in "everybody
uses Windows, so...". Unfortunately, free sw may have the same faults,
for example with s/Windows/Ubuntu/g)


Cheers

Jorge



Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread tuxic
On 07/19 07:51, Jorge Almeida wrote:
> On Wed, Jul 19, 2017 at 7:25 PM,   wrote:
> > On 07/19 06:57, Jorge Almeida wrote:
> >> On Wed, Jul 19, 2017 at 6:40 PM,   wrote:
> >>
> >> >
> >> > the tool is statically linked and only the command "file"
> >> > reveals its 32bit nature.
> >> >
> >> If the tool is a static binary, you shouldn't need anything besides a
> >> kernel with support for 32 bit executables (Executable file formats /
> >> Emulations  --->  x32 ABI for 64-bit mode)
> >>
> 
> >
> > Hi,
> >
> > the linux32-trick is neat...but it seems a little more to be done
> > here.
> >
> > I straced the whole thing:
> > sudo strace linux32 ./pirate-loader_lnx
> 
> Did you check that your kernel supports 32 bit executables? If so,
> what happens when you run "./pirate-loader_lnx"? And what about
> "strace ./pirate-loader_lnx"? The output of strace you listed shows
> that something is missing, but is it required by ./pirate-loader_lnx
> or just by linux32 itself?

The kernel config says:

#
# Executable file formats / Emulations
#
CONFIG_BINFMT_ELF=y
CONFIG_COMPAT_BINFMT_ELF=y
CONFIG_ELFCORE=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
# CONFIG_HAVE_AOUT is not set
CONFIG_BINFMT_MISC=y
CONFIG_COREDUMP=y
CONFIG_IA32_EMULATION=y
CONFIG_IA32_AOUT=y
CONFIG_X86_X32=y
CONFIG_COMPAT_32=y
CONFIG_COMPAT=y
CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_KEYS_COMPAT=y
CONFIG_X86_DEV_DMA_OPS=y
CONFIG_NET=y
CONFIG_COMPAT_NETLINK_MESSAGES=y
CONFIG_NET_INGRESS=y

All combinations of sudo / strace in conjunction with
pirate_loader_lnx and the lack the one or the other
state the same:
#>./pirate-loader_lnx 
zsh: no such file or directory: ./pirate-loader_lnx
[1]4125 exit 127   ./pirate-loader_lnx

Since pirate_loader_lnx alone also gives the same error
message, it is pirate_loader_lnx which misses someting.

> 
> >
> > Why does the task of flashing firmware walk hand in hand with mental 
> > illness so
> > near at the abyss of bricked hardware that often ?
> Crappy software made by professionals (alt.: smart-assed sw made by
> the vendor's underpaid, or overpaid, hirelings)
 
Sorry to say, but the Bus pirate, its software and its firmware are
open source/open hardware.
I dare to rebuild the flasher...I dont know what will happen, if
a 32 bit could, which acts on such a low level gets compiled on 64
instead of 32 bit. I dont want to risk my swiss army knisorry...
want to say: ...to risk my Bus Pirate...
Cheers
Meino




> J.A.
> 



Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Jorge Almeida
On Wed, Jul 19, 2017 at 7:25 PM,   wrote:
> On 07/19 06:57, Jorge Almeida wrote:
>> On Wed, Jul 19, 2017 at 6:40 PM,   wrote:
>>
>> >
>> > the tool is statically linked and only the command "file"
>> > reveals its 32bit nature.
>> >
>> If the tool is a static binary, you shouldn't need anything besides a
>> kernel with support for 32 bit executables (Executable file formats /
>> Emulations  --->  x32 ABI for 64-bit mode)
>>

>
> Hi,
>
> the linux32-trick is neat...but it seems a little more to be done
> here.
>
> I straced the whole thing:
> sudo strace linux32 ./pirate-loader_lnx

Did you check that your kernel supports 32 bit executables? If so,
what happens when you run "./pirate-loader_lnx"? And what about
"strace ./pirate-loader_lnx"? The output of strace you listed shows
that something is missing, but is it required by ./pirate-loader_lnx
or just by linux32 itself?




>
> Why does the task of flashing firmware walk hand in hand with mental illness 
> so
> near at the abyss of bricked hardware that often ?
Crappy software made by professionals (alt.: smart-assed sw made by
the vendor's underpaid, or overpaid, hirelings)

J.A.



Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread tuxic
On 07/19 06:57, Jorge Almeida wrote:
> On Wed, Jul 19, 2017 at 6:40 PM,   wrote:
> 
> >
> > the tool is statically linked and only the command "file"
> > reveals its 32bit nature.
> >
> If the tool is a static binary, you shouldn't need anything besides a
> kernel with support for 32 bit executables (Executable file formats /
> Emulations  --->  x32 ABI for 64-bit mode)
> 
> (I hope I'm not saying something utterly silly...)
> 
> Jorge Almeida
> 

Hi,

the linux32-trick is neat...but it seems a little more to be done
here.

I straced the whole thing:
sudo strace linux32 ./pirate-loader_lnx


execve("/usr/bin/linux32", ["linux32", "./pirate-loader_lnx"], 0x7fff34dfea18 
/* 18 vars */) = 0
brk(NULL)   = 0x12ae000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7ff1148e8000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=313119, ...}) = 0
mmap(NULL, 313119, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff11489b000
close(3)= 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\3\2\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1652184, ...}) = 0
mmap(NULL, 3758296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7ff114332000
mprotect(0x7ff1144bf000, 2093056, PROT_NONE) = 0
mmap(0x7ff1146be000, 24576, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18c000) = 0x7ff1146be000
mmap(0x7ff1146c4000, 14552, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff1146c4000
close(3)= 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7ff114899000
arch_prctl(ARCH_SET_FS, 0x7ff114899700) = 0
mprotect(0x7ff1146be000, 16384, PROT_READ) = 0
mprotect(0x602000, 4096, PROT_READ) = 0
mprotect(0x7ff1148ea000, 4096, PROT_READ) = 0
munmap(0x7ff11489b000, 313119)  = 0
brk(NULL)   = 0x12ae000
brk(0x12cf000)  = 0x12cf000
open("/usr/lib64/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4127728, ...}) = 0
mmap(NULL, 4127728, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff113f42000
close(3)= 0
uname({sysname="Linux", nodename="solfire", ...}) = 0
personality(PER_LINUX32)= 0 (PER_LINUX)
uname({sysname="Linux", nodename="solfire", ...}) = 0
execve("./pirate-loader_lnx", ["./pirate-loader_lnx"], 0x7fff1840a250 /* 18 
vars */) = -1 ENOENT (No such file or directory)
write(2, "linux32: ", 9linux32: )= 9
write(2, "./pirate-loader_lnx", 19./pirate-loader_lnx) = 19
write(2, ": ", 2: )   = 2
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2997, ...}) = 0
read(3, "# Locale name alias data base.\n#"..., 4096) = 2997
read(3, "", 4096)   = 0
close(3)= 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1474, ...}) = 0
mmap(NULL, 1474, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff1148e7000
close(3)= 0
write(2, "No such file or directory\n", 26No such file or directory
) = 26
close(1)= 0
close(2)= 0
exit_group(1)   = ?
+++ exited with 1 +++

Same happens, if I feed the whole glory of necessary commandline
switches and the hex-file into this little beast.

"No such file or directory."

Unfortunately I have no clue, what is missing here...
(and it is definetly no script, which #! couldn't
be found.

Why does the task of flashing firmware walk hand in hand with mental illness so
near at the abyss of bricked hardware that often ?
Why can't it that easy as scripting plain TeX?
;)

Cheers
Meino





Re: [gentoo-user] Hardened again

2017-07-19 Thread Rasmus Thomsen
Hello,

I'm pretty certain that switching to the hardened profile won't cause any slot 
conflicts, it pretty much just enables some compiler flags ( PIE ( it's enabled 
in not-hardened profiles since 6.3.0 too iirc ) , stack hardening, fortify 
source, RELRO ) and hardening flags on a few packages ( e.g. glibc ). Please 
try it again, maybe the output of emerge --info and the output of your world 
emerge ( or just the error message , both as pastebin or something ).

I'm not quite sure if I understand the second part correctly, but I guess you 
want to compile packages on your workstation for that smaller box? In that case 
it doesn't matter which kernel your host uses, just make sure to choose the 
correct -march value. You don't have to run the hardened kernel for the 
hardened profile to work ( although it greatly enhances it - but maybe not for 
long since GRSEC stopped publishing their patches ).

Regards,
Rasmus

 Original Message 
On 19 Jul 2017, 17:13, Peter Humphrey wrote:

> Hello list,
>
> The recent discussion of hardening Gentoo prompted me to have a go at
> hardening this workstation. I followed the wiki[1] but when I got to emerge
> -e world I got scores of slot conflicts, maybe hundreds. So I backed off and
> restored the original system.
>
> Now I'm tackling a smaller box, following the same wiki, for which this
> machine is a compile host with a chroot containing the client's NFS-exported
> $PORTDIR. I have a question.
>
> The chroot and everything in it uses the host's kernel, which is not
> hardened. If I emerge -e world in the chroot, can I then use the resulting
> packages to install on the client? I suspect there will be subtle differences
> (or not so subtle) that prevent me from doing this.
>
> That would be a pity, because recompiling everything on the client, a quad-
> core Celeron N3150 at 1.8GHz, is likely to take a day or two.
>
> [1] https://wiki.gentoo.org/wiki/Hardened_Gentoo
>
> --
> Regards
> Peter

Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Jorge Almeida
On Wed, Jul 19, 2017 at 6:40 PM,   wrote:

>
> the tool is statically linked and only the command "file"
> reveals its 32bit nature.
>
If the tool is a static binary, you shouldn't need anything besides a
kernel with support for 32 bit executables (Executable file formats /
Emulations  --->  x32 ABI for 64-bit mode)

(I hope I'm not saying something utterly silly...)

Jorge Almeida



[gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Nikos Chantziaras

On 19/07/17 20:40, tu...@posteo.de wrote:

the tool is statically linked and only the command "file"
reveals its 32bit nature.


Have you tried just running it? And as Mick mentioned, run your tool 
with linux32:


  $ linux32 ./tool

It might just work without you having to do anything else. Since its 
statically linked, you shouldn't need any 32-bit libs.


One thing that might prevent it from working, is that it might need an 
old kernel version or a compatibility kernel option that is disabled by 
default on modern kernel versions.


But in the end, you won't know until you actually try it.




Re: [gentoo-user] [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Mick
On Wednesday 19 Jul 2017 18:57:50 tu...@posteo.de wrote:
> Hi,
> 
> My Buspirate v36a needs a newer firmware.
> Unfortunately the flasher software is only
> available in 32bit and I run a 64bit modern
> Gentoo.

$ uname -m
x86_64

$ which linux32
/usr/bin/linux32

$ linux32 --help

Usage:
 linux32 [options] [ [...]]

Change the reported architecture and set personality flags.

Options:
 -B, --32bit  turns on ADDR_LIMIT_32BIT
 -F, --fdpic-funcptrs makes function pointers point to descriptors
 -I, --short-inodeturns on SHORT_INODE
 -L, --addr-compat-layout changes the way virtual memory is allocated
 -R, --addr-no-randomize  disables randomization of the virtual address space
 -S, --whole-seconds  turns on WHOLE_SECONDS
 -T, --sticky-timeoutsturns on STICKY_TIMEOUTS
 -X, --read-implies-exec  turns on READ_IMPLIES_EXEC
 -Z, --mmap-page-zero turns on MMAP_PAGE_ZERO
 -3, --3gblimits the used address space to a maximum of 3 GB
 --4gbignored (for backward compatibility only)
 --uname-2.6  turns on UNAME26
 -v, --verbosesay what options are being switched on

 -h, --help display this help and exit
 -V, --version  output version information and exit

For more details see setarch(8).


> The flasher is a commandline tool and needs
> no fancy movie player or fat surround sound.
> 
> If there is no way (I fear) to setup a tiny
> quick'n' dirty 32bit environment on my Gentoo
> just to flash the firmware I woyld install
> a tiny quick'n'dirty 32bit Linux for my
> Virtual Box.
> 
> Does one knows of a simple straight-forward
> distro, which knows of /dev/ttyUSB and
> is not a BEAST to download?

Damn Small Linux used to be fairly small.  I don't know if it is still alive.

> Thanks a lot in advance for any help!
> Cheers
> Meino

-- 
Regards,
Mick

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


Re: [gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread tuxic
On 07/19 08:28, Nikos Chantziaras wrote:
> On 19/07/17 19:57, tu...@posteo.de wrote:
> > Hi,
> > 
> > My Buspirate v36a needs a newer firmware.
> > Unfortunately the flasher software is only
> > available in 32bit and I run a 64bit modern
> > Gentoo.
> 
> By default, Gentoo is multilib. Meaning it runs 32-bit software too. What
> libraries does the tool need to run? You probably can build those libraries
> with 32-bit support enabled.
> 
> So what error message do you get when you try to run the tool? We can figure
> out which libraries it needs, and for those libraries you can then enable
> the "abi_x86_32" USE flag in package.use.
> 
> On my system, I have that enabled for all libraries by default. My
> package.use has this in it:
> 
>   */* abi_x86_32
> 
> But you can just set it only for some packages if you don't want every
> package (that supports this flag) to be also built for 32-bit.
> 
> 

Hi Nikos,

the tool is statically linked and only the command "file"
reveals its 32bit nature.

Cheers
Meino





[gentoo-user] Re: [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread Nikos Chantziaras

On 19/07/17 19:57, tu...@posteo.de wrote:

Hi,

My Buspirate v36a needs a newer firmware.
Unfortunately the flasher software is only
available in 32bit and I run a 64bit modern
Gentoo.


By default, Gentoo is multilib. Meaning it runs 32-bit software too. 
What libraries does the tool need to run? You probably can build those 
libraries with 32-bit support enabled.


So what error message do you get when you try to run the tool? We can 
figure out which libraries it needs, and for those libraries you can 
then enable the "abi_x86_32" USE flag in package.use.


On my system, I have that enabled for all libraries by default. My 
package.use has this in it:


  */* abi_x86_32

But you can just set it only for some packages if you don't want every 
package (that supports this flag) to be also built for 32-bit.





[gentoo-user] [OT] Small and dirty 32 bit environment just to flash my Bus Pirate

2017-07-19 Thread tuxic
Hi,

My Buspirate v36a needs a newer firmware.
Unfortunately the flasher software is only
available in 32bit and I run a 64bit modern
Gentoo.

The flasher is a commandline tool and needs
no fancy movie player or fat surround sound.

If there is no way (I fear) to setup a tiny
quick'n' dirty 32bit environment on my Gentoo
just to flash the firmware I woyld install
a tiny quick'n'dirty 32bit Linux for my
Virtual Box.

Does one knows of a simple straight-forward
distro, which knows of /dev/ttyUSB and
is not a BEAST to download?

Thanks a lot in advance for any help!
Cheers
Meino




[gentoo-user] Hardened again

2017-07-19 Thread Peter Humphrey
Hello list,

The recent discussion of hardening Gentoo prompted me to have a go at 
hardening this workstation. I followed the wiki[1] but when I got to emerge 
-e world I got scores of slot conflicts, maybe hundreds. So I backed off and 
restored the original system.

Now I'm tackling a smaller box, following the same wiki, for which this 
machine is a compile host with a chroot containing the client's NFS-exported 
$PORTDIR. I have a question.

The chroot and everything in it uses the host's kernel, which is not 
hardened. If I emerge -e world in the chroot, can I then use the resulting 
packages to install on the client? I suspect there will be subtle differences 
(or not so subtle) that prevent me from doing this.

That would be a pity, because recompiling everything on the client, a quad-
core Celeron N3150 at 1.8GHz, is likely to take a day or two.

[1] https://wiki.gentoo.org/wiki/Hardened_Gentoo

-- 
Regards
Peter




Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread Philip Webb
170719 Dale wrote:
> This isn't a Gentoo question but most everyone here used something
> before Gentoo.  I need a simple to upgrade distro for someone else. 

I have Mint KDE & Mint Xfce installed to test things & show others :
it's simple, fast & reliable in my limited experience.
Mageia 6 has just come out, so why not install that ?
-- Mandrake is what I used before I started using Gentoo in 2003.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] On making customized profile again.

2017-07-19 Thread Andrew Savchenko
On Wed, 19 Jul 2017 16:41:26 +0700 Ста Деюс wrote:
> Hi.
> 
> 
> Trying to remove several packages from the "common" profile, i did copy
> mine to the same directory w/ that difference, that mine is located in
> /usr/local/portage
> 
> instead of "common's"
> /usr/portage
> 
> Then i copied
> /usr/portage/profiles/profiles.desc
> 
> to
> /usr/local/portage/profiles/profiles.desc
> 
> In the "local" file, i copied, in the corresponding section (x86), line
> x86   default/linux/x86/13.0/desktop  stable
> 
> pasted it right after it, and changed just its name:
> x86   default/linux/x86/13.0/customized   stable
> 
> But, when i run
> eselect profile list
> 
> i don't see mine profile enlisted.
> 
> So, where did i make mistake?

Use /etc/portage/profile/ directory for profile customization.

Best regards,
Andrew Savchenko


pgptku9AWkkdL.pgp
Description: PGP signature


Re: [gentoo-user] On making customized profile again.

2017-07-19 Thread R0b0t1
On Wed, Jul 19, 2017 at 4:41 AM, Ста Деюс  wrote:
> Hi.
>
>
> Trying to remove several packages from the "common" profile, i did copy
> mine to the same directory w/ that difference, that mine is located in
> /usr/local/portage
>
> instead of "common's"
> /usr/portage
>
> Then i copied
> /usr/portage/profiles/profiles.desc
>
> to
> /usr/local/portage/profiles/profiles.desc
>
> In the "local" file, i copied, in the corresponding section (x86), line
> x86 default/linux/x86/13.0/desktop  stable
>
> pasted it right after it, and changed just its name:
> x86 default/linux/x86/13.0/customized   stable
>
> But, when i run
> eselect profile list
>
> i don't see mine profile enlisted.
>
> So, where did i make mistake?
>
>
> Thank you for your time,
> Sthu.
>

https://wiki.gentoo.org/wiki/Profile_(Portage)#Combining_profiles

It looks like you may not have covered all of the steps.



Re: [gentoo-user] [OT] Simple to upgrade Linux distro

2017-07-19 Thread Mick
On Wednesday 19 Jul 2017 01:46:36 Dale wrote:
> Howdy,
> 
> This isn't a Gentoo question but most everyone here used something
> before Gentoo.  I need a simple to upgrade distro for someone else.
> 
> A friend of mine had windoze XP, which is dead to M$.  She needed
> something and buying a computer or new OS is not a option, even tho she
> needs to upgrade that 10 or 12 year old thing she has.  So, I put Mageia
> on it a couple years ago, used to be Mandrake way back which is what I
> started with.  She has been doing updates every week or so since it is
> GUI based and pretty easy.  Tell it to update or just click the pop-up
> when it tells you one is available and when it is done, reboot.  Yea,
> windowish I know.  lol  

Most 'user friendly' distros these days use some kind of software/OS updater, 
like Synaptics.  Even MSWindows users can point and click with these and not 
hose their systems.


> Anyway, she did a update and now she can't login
> to KDE.  I drove up, hour away, and tried to figure it out.  It has
> changed so much, I'm pretty clueless.  It is NOT Gentoo by any means.  I
> renamed the user directory in case it was a config that the new update
> was hanging on but nothing.  It just won't let you login.  Also reset
> the password as well.  

Did you look at the logs?  Assuming this is a systemd OS try:

journalctl

to view the log.  Add -b to only see boot messages, -f to follow current 
activity (just like 'tail -f' command), and -n 15 to see the last 15 entries.


> Thing is, I installed ICEwm during the install
> and it works.  It logs in but the screen doesn't refresh like it
> should.  You close a app, it's closed but it doesn't refresh the screen
> so it looks like it is still there.  The whole thing is weird.

This sounds like a video driver/compositor problem.  My guess is some 
xorg/mesa driver was updated and the box is not able to process the latest 
code.  However, to make sure no hardware problem is present, I suggest you 
take a look inside and blow away any cobwebs from video card cooling fan and 
heatsink.  Removing and reseating the video card may also clean the contacts 
from any oxidization, which an old box may have.

Finally, if there is an Xorg.0.log on this box take a look at it to confirm if 
this is a video driver problem.  With systemd you would probably need to run:

journalctl -e /usr/bin/Xorg

(someone more knowledgeable with systemd could chime in here if I got this 
wrong)


> What I'm looking for.  Something that I can install fairly quickly from
> a DVD.  Rig is to old to boot from USB stick.  Something with a GUI
> update process that is fairly easy.  Uses either KDE by default or is
> easily installable, hopefully during install by default.  The big one,
> needs to be able to run on older hardware.  Her rig is something like a
> 2GHz single core CPU and around 2GBs of ram.  The drives are SATA but
> that's about the most advanced hardware it has.  The video is a built in
> Intel of some sort.  Nothing fast or even fancy for that matter.  Yes,
> I'm keeping a eye out for a newer rig but it is what it is right now.

Anything with KDE will be putting a load on older hardware.  I don't know what 
Mageia has changed in their distro to cause these problems, but if 
cleaning/reseating video cards, RAM modules, etc. does not fix the problems 
you observed, then it's time to blame the software.

Have a look at Mint with a KDE desktop:

 http://blog.linuxmint.com/?p=3292

Or Kubuntu:

 http://www.kubuntu.org/

However, I would expect both of the above to require 256MB video card memory 
and capability for hardware video acceleration.  Really old video cards won't 
be able to provide this.  Also 2G RAM is the absolute minimum for running 
Plasma or Gnome.

If she can live without KDE, then I would recommend Lubuntu/Xubuntu:

 http://lubuntu.net/
 https://xubuntu.org/

These can probably run with as little as 512MB RAM.


> I've used Gentoo for so long, I don't know what other distros offer
> nowadays.  I figure that there are several distros that are graphical
> nowadays but also need good support for older hardware and easy update
> process.  Googling around isn't helping me much.  If I find something I
> like, no KDE.  If I find KDE based and a GUI updater, something else
> won't work.  I figure asking those who have personal experience would be
> best.  :-)
> 
> Thoughts?  Suggestions??
> 
> Thanks.
> 
> Dale
> 
> :-)  :-)

I suggest she revisits the need to run Plasma, if her current hardware has 
reached the end of its useful life.  There's a bigger world out there and 
there will be replacements for many of the desktop features she currently 
thinks are irreplaceable.

-- 
Regards,
Mick

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


[gentoo-user] On making customized profile again.

2017-07-19 Thread Ста Деюс
Hi.


Trying to remove several packages from the "common" profile, i did copy
mine to the same directory w/ that difference, that mine is located in
/usr/local/portage

instead of "common's"
/usr/portage

Then i copied
/usr/portage/profiles/profiles.desc

to
/usr/local/portage/profiles/profiles.desc

In the "local" file, i copied, in the corresponding section (x86), line
x86 default/linux/x86/13.0/desktop  stable

pasted it right after it, and changed just its name:
x86 default/linux/x86/13.0/customized   stable

But, when i run
eselect profile list

i don't see mine profile enlisted.

So, where did i make mistake?


Thank you for your time,
Sthu.