Re: [gentoo-user] Re: Compiling first and then installing using -K

2020-02-18 Thread Dale
Nikos Chantziaras wrote:
> On 17/02/2020 20:01, Dale wrote:
>> Nikos Chantziaras wrote:
>>> On 17/02/2020 10:26, Dale wrote:
 I ran into a issue with qt upgrades and it got interesting.  Since it
 was part way through, some applications that I needed wouldn't open
 due
 to a mismatch in versions. [...]

 !!! --buildpkgonly requires all dependencies to be merged.
 !!! Cannot merge requested packages. Merge deps and try again.

 So, I have to emerge packages in order to emerge others.  I get that
 packages depend on each other but is there a way around that?
>>> You'd need to maintain two gentoo installs (A and B) with the same
>>> exact configuration with B serving as the build machine. Then you'd
>>> emerge the packages in B, make binary packages out of every package,
>>> and then emerge those in A.
>>
>>
>> Would a chroot work for that?  I'm pretty sure it would but want to be
>> certain before I set all that up.  I'm pretty sure I can dig around and
>> find a hard drive somewhere.
>
> Sure. Although it might be easier to use a container instead (like LXD
> or Docker.)
>
> Grub has nothing to do with it. You wouldn't actually run grub in the
> container or chroot. You'd only install the grub package.
>
> A VM like Mark suggested would probably be even easier to set up.
> Although getting to the packages would be more complicated and it
> would also be slower (and with the recent meltdown/spectre mitigation
> stuff, probably much slower.) A chroot or container on the other hand
> is extremely lightweight. There's no virtualization involved (or very
> little of it), so it should be pretty much as fast as a native system.
>
>
>

Well, I downloaded the starge3 tarball.  I then copied over my /etc,
world, all the portage stuff such as distfiles, binaries and the tree as
well.  I also copied over any local overlays I had as well.  Since I
want to end up with a system as close to what I have, so that the
binaries will be a perfect match, I figured copy over all the variables
and settings with it.  I can't even get through a simple emerge -e
system.  It's either circular deps, slot conflicts or some other error. 
The last one was something about a corrupted /dev.  I'm not sure what to
make of that yet.  After I got that, it refused to do anything at all. 
It acted like it was out of drive space/memory or something but it
isn't.  It's on a 750GB drive with a lot of space left yet.  I have
32GBs of memory here with 3/4s currently available. 

So, I'm doing a rm on that and starting over from scratch.  I guess I'll
just have to move the contents of world over a few at a time and hope
copying make.conf and the USE line over won't break anything. 

I'm sure it was my method.  I likely overwhelmed emerge but I'd hate to
know I had to reinstall from scratch and get back to a identical install. 

Some things that I vaguely recall; freetype, harfbuzz, zlib and issues
they created.  I got around a couple others easy enough but it basically
suicided itself after that.

Off to try this again. 

Dale

:-)  :-) 

P. S. Starting to wonder if I should copy my current install over and
start there.  I'd assume skipping /home, /proc and /sys would get me
started.  Still, gonna try the stage3 again.  Just for giggles.  Do all
this while I cook some BBQ chicken for supper tomorrow night. 



Re: [gentoo-user] Gentoo on a cell?

2020-02-18 Thread rudi
On Feb 18, 2020 22:33, james  wrote:On 2/18/20 9:29 PM, William Kenworthy wrote:

> 

> On 19/2/20 4:16 am, james wrote:

>> So,

>>

>> After contacting several US carriers, the cover story is you can get a

>> cell phone, root it with linux, and it 'should work'. Supposedly, you

>> are encourage, but they

>> will not offer any help. So rather than spending months,

>> I'd like to 'cheat' and find a gentoo hack(er) that has

>> rooted and put some form of gentoo, or embedded_gentoo

>> on a cell phone.

>>

>> Please respond to the list, but, for whatever reason, private

>> responses are OK too.

>>

>>

>> I'm just tire of my Android cell phone downloading update *every

>> night*. I want/need control of the stacks

>> running on the phone. I have heard this is quite popular in Europe and

>> the Rf circuits have their own firmware, so it's really next to

>> impossible to hack the Rf side

>> of communications.?

>>

>>

>> Any and all responses, public or private, are most welcome. Links only

>> are fine too!

>>

>>

>> James

> 

> 

> For gentoo, I would say "not easy at all" - the problem is custom

> hardware, propriety drivers and lack of information, even in well

> supported models.

> 

> There was an app where you could install gentoo into something like a

> container - worked well but the android kernel I was using at the time

> didn't have some functioned enabled that fed into limiting some

> operations in the container.

> 

> Easier and more practical would be to install LibreOS. You can build ii

> yourself and build/include your own software as needed - I did it many

> times with its Cyanogenmod predecessor (I presume you still can).� There

> are some other stacks suitable for phones such as sailfish and even

> android can be built yourself (and you can defang/customise it while

> doing it - google not needed and if you dont install GAPPS it still

> works fine)

> 

> To be honest, if what you mentioned is your main gripe, build android

> and use a third party app store like F-Droid to control that side of the

> equation.

> 

> Make sure you look into rooting, flashing a new OS and the implications

> of doing so - that can be another whole level of pain depending on the

> brand of your hardware, and how recent it is (less chance with new stuff

> as the really smart people have not had time to trailblaze :)

> 

> BillK



Good info (thanks!)

Here's what I've found so far. The purpose of this posting is to share 

info, so we have a gentoo on a cell phone. I am currently researching 

'unlocked' samsung phones that support 5G and CDMA, so most sim cards 

should work. If others are interested, or know of viable github (etc) 

places to upload codes to, gentoo centric, I'd be all for that. I just 

done with carriers running my cell phones. Sure they can control the RF 

(hardware), but not the software running on the phone. here are a few 

links::





https://fossbytes.com/how-to-install-a-linux-on-android-phone-without-rooting/





https://en.wikipedia.org/wiki/List_of_United_States_mobile_virtual_network_operators



Here is an unlocked 5G and CDMA? I'm looking at to root with gentoo::



Galaxy S20 5G 128GB (Unlocked)

https://www.samsung.com/us/mobile/phones/galaxy-s/galaxy-s20-5g-128gb-unlocked-sm-g981uzaaxaa/



Chating with samsung right now. Explaining *why* there needs to be a 

samsung dev phone, supporting and working with Gentoo   we'll see 

how this goes...



More comments? encouragement, folks interested?



James




I am very interested, although my testing capabilities would be restricted to a non-samsung Pixel 3. My understanding is also that the Pixel and Nexus devices publish their "vendor blobs" or hardware binaries online which may help? I've experimented with Ubuntu Touch a bit on the Nexus 5, however the device is quite slow at this point. My use case wouldn't be so much for control over updates, but more for things like Convergence (Ubuntu), Dex (Samsung) or Android Desktop. Where you dock your phone and have a linux/Android desktop with floating windows etc. I'd like to be kept in the loop on this, and if possible I would also like to help contribute software however I'm not really skilled with hardware. I configure my kernel and that's about it. 

Re: [gentoo-user] Gentoo on a cell?

2020-02-18 Thread james

On 2/18/20 9:29 PM, William Kenworthy wrote:


On 19/2/20 4:16 am, james wrote:

So,

After contacting several US carriers, the cover story is you can get a
cell phone, root it with linux, and it 'should work'. Supposedly, you
are encourage, but they
will not offer any help. So rather than spending months,
I'd like to 'cheat' and find a gentoo hack(er) that has
rooted and put some form of gentoo, or embedded_gentoo
on a cell phone.

Please respond to the list, but, for whatever reason, private
responses are OK too.


I'm just tire of my Android cell phone downloading update *every
night*. I want/need control of the stacks
running on the phone. I have heard this is quite popular in Europe and
the Rf circuits have their own firmware, so it's really next to
impossible to hack the Rf side
of communications.?


Any and all responses, public or private, are most welcome. Links only
are fine too!


James



For gentoo, I would say "not easy at all" - the problem is custom
hardware, propriety drivers and lack of information, even in well
supported models.

There was an app where you could install gentoo into something like a
container - worked well but the android kernel I was using at the time
didn't have some functioned enabled that fed into limiting some
operations in the container.

Easier and more practical would be to install LibreOS. You can build ii
yourself and build/include your own software as needed - I did it many
times with its Cyanogenmod predecessor (I presume you still can).� There
are some other stacks suitable for phones such as sailfish and even
android can be built yourself (and you can defang/customise it while
doing it - google not needed and if you dont install GAPPS it still
works fine)

To be honest, if what you mentioned is your main gripe, build android
and use a third party app store like F-Droid to control that side of the
equation.

Make sure you look into rooting, flashing a new OS and the implications
of doing so - that can be another whole level of pain depending on the
brand of your hardware, and how recent it is (less chance with new stuff
as the really smart people have not had time to trailblaze :)

BillK


Good info (thanks!)
Here's what I've found so far. The purpose of this posting is to share 
info, so we have a gentoo on a cell phone. I am currently researching 
'unlocked' samsung phones that support 5G and CDMA, so most sim cards 
should work. If others are interested, or know of viable github (etc) 
places to upload codes to, gentoo centric, I'd be all for that. I just 
done with carriers running my cell phones. Sure they can control the RF 
(hardware), but not the software running on the phone. here are a few 
links::



https://fossbytes.com/how-to-install-a-linux-on-android-phone-without-rooting/


https://en.wikipedia.org/wiki/List_of_United_States_mobile_virtual_network_operators

Here is an unlocked 5G and CDMA? I'm looking at to root with gentoo::

Galaxy S20 5G 128GB (Unlocked)
https://www.samsung.com/us/mobile/phones/galaxy-s/galaxy-s20-5g-128gb-unlocked-sm-g981uzaaxaa/

Chating with samsung right now. Explaining *why* there needs to be a 
samsung dev phone, supporting and working with Gentoo   we'll see 
how this goes...


More comments? encouragement, folks interested?

James



Re: [gentoo-user] Gentoo on a cell?

2020-02-18 Thread William Kenworthy


On 19/2/20 4:16 am, james wrote:
> So,
>
> After contacting several US carriers, the cover story is you can get a
> cell phone, root it with linux, and it 'should work'. Supposedly, you
> are encourage, but they
> will not offer any help. So rather than spending months,
> I'd like to 'cheat' and find a gentoo hack(er) that has
> rooted and put some form of gentoo, or embedded_gentoo
> on a cell phone.
>
> Please respond to the list, but, for whatever reason, private
> responses are OK too.
>
>
> I'm just tire of my Android cell phone downloading update *every
> night*. I want/need control of the stacks
> running on the phone. I have heard this is quite popular in Europe and
> the Rf circuits have their own firmware, so it's really next to
> impossible to hack the Rf side
> of communications.?
>
>
> Any and all responses, public or private, are most welcome. Links only
> are fine too!
>
>
> James


For gentoo, I would say "not easy at all" - the problem is custom
hardware, propriety drivers and lack of information, even in well
supported models.

There was an app where you could install gentoo into something like a
container - worked well but the android kernel I was using at the time
didn't have some functioned enabled that fed into limiting some
operations in the container.

Easier and more practical would be to install LibreOS. You can build ii
yourself and build/include your own software as needed - I did it many
times with its Cyanogenmod predecessor (I presume you still can).  There
are some other stacks suitable for phones such as sailfish and even
android can be built yourself (and you can defang/customise it while
doing it - google not needed and if you dont install GAPPS it still
works fine)

To be honest, if what you mentioned is your main gripe, build android
and use a third party app store like F-Droid to control that side of the
equation.

Make sure you look into rooting, flashing a new OS and the implications
of doing so - that can be another whole level of pain depending on the
brand of your hardware, and how recent it is (less chance with new stuff
as the really smart people have not had time to trailblaze :)

BillK






Re: [gentoo-user] Re: Compiling first and then installing using -K

2020-02-18 Thread Rich Freeman
On Tue, Feb 18, 2020 at 4:32 PM Nikos Chantziaras  wrote:
>
> On 18/02/2020 21:22, Rich Freeman wrote:
> > On Tue, Feb 18, 2020 at 2:06 PM Nikos Chantziaras  wrote:
> >>
> >> It gets worse. The container reconfigured the keyboard shortcuts on the
> >> host! After booting a container, alt+Fn or alt+left/right on the host
> >> started switching to the linux text-mode console. I pressed alt+f2 to
> >> bring up the plasma search, I ended up on TTY2... ha ha.
> >>
> >> Remember how I said I'll use nspawn from now on? I take that back. Let's
> >> just say this thing is not even remotely production ready.
> >
> > Never had any issues with it, but I've never tried to use my host root
> > as the input filesystem.
>
> I didn't do that either. Unless you mean the throw-away VM experiment,
> which is not where this happened.

Strange.  I use it all the time and have never seen anything like that
happen.  That said, I can't remember the last time I fired up an X
server on the host.

-- 
Rich



Re: [gentoo-user] Loading Issue

2020-02-18 Thread Jack

On 2020.02.18 15:51, Roger J. H. Welsh wrote:

Hi Jack,

I just looked at the comments in my /etc/rc.conf.
`less /etc/rc.conf`

Jack  writes:
I'm not the OP, but I recently had a similar situation - total  
freeze early during the boot process.  What I wanted was a way to  
get that rc_interactive="YES" behavior - but by doing something at  
boot time.


rc_interactive means I can press "I" or "i" during boot and INTERRUPT  
the boot process; *otherwise* it will boot as per normal.


Is that not the behaviour you are seeking? OR is that not the  
behaviour you get?
I'm not sure if you got my point.  Most of the time, I don't need that  
option.  When I do need it, I discover that fact because the system  
won't boot into a usable state.  I can boot into a live CD, edit  
rc.conf, then reboot again.  My desire is to be able to get that  
interactive boot by doing something at boot time, so I don't have to  
reboot twice.  However, on reading that explanation again, and more  
slowly, and more carefully, and actually absorbing it, I finally see  
that setting rc_interactive="YES" won't really have any effect on  
normal boot, but only if I press i or I at boot time - so I will have  
to try that.  Thanks for poking me in the right direction.


Also to note:

rc_parallel="yes" may cause the boot process to lock up.
(I wonder if that has been causing some of these boot freezes.)
I hadn't considered that, and it might well be relevant, but in all my  
own cases, I was able to find a single service which was causing the  
problem.


rc_interactive="yes" is DISABLED (automatically), if rc_parallel is  
set to "yes".


--
Best of luck
Roger

Thanks,
Jack


[gentoo-user] Re: Compiling first and then installing using -K

2020-02-18 Thread Nikos Chantziaras

On 18/02/2020 21:22, Rich Freeman wrote:

On Tue, Feb 18, 2020 at 2:06 PM Nikos Chantziaras  wrote:


It gets worse. The container reconfigured the keyboard shortcuts on the
host! After booting a container, alt+Fn or alt+left/right on the host
started switching to the linux text-mode console. I pressed alt+f2 to
bring up the plasma search, I ended up on TTY2... ha ha.

Remember how I said I'll use nspawn from now on? I take that back. Let's
just say this thing is not even remotely production ready.


Never had any issues with it, but I've never tried to use my host root
as the input filesystem.


I didn't do that either. Unless you mean the throw-away VM experiment, 
which is not where this happened.





Re: [gentoo-user] Loading Issue

2020-02-18 Thread Roger J. H. Welsh
MIME-Version: 1.0
Content-Type: text/plain; format=flowed

Hi Jack,

I just looked at the comments in my /etc/rc.conf.
`less /etc/rc.conf`

Jack  writes:

> I'm not the OP, but I recently had a similar situation - total 
> freeze
> early during the boot process.  What I wanted was a way to get 
> that
> rc_interactive="YES" behavior - but by doing something at boot 
> time.

rc_interactive means I can press "I" or "i" during boot and 
INTERRUPT
the boot process; *otherwise* it will boot as per normal.

Is that not the behaviour you are seeking?
OR is that not the behaviour you get?

Also to note:

rc_parallel="yes" may cause the boot process to lock up.
(I wonder if that has been causing some of these boot freezes.)

rc_interactive="yes" is DISABLED (automatically), if rc_parallel 
is set
to "yes".

--
Best of luck
Roger



Re: [gentoo-user] Re: Compiling first and then installing using -K

2020-02-18 Thread Michael Jones
On Tue, Feb 18, 2020 at 1:22 PM Rich Freeman  wrote:

> On Tue, Feb 18, 2020 at 2:06 PM Nikos Chantziaras 
> wrote:
> >
> > It gets worse. The container reconfigured the keyboard shortcuts on the
> > host! After booting a container, alt+Fn or alt+left/right on the host
> > started switching to the linux text-mode console. I pressed alt+f2 to
> > bring up the plasma search, I ended up on TTY2... ha ha.
> >
> > Remember how I said I'll use nspawn from now on? I take that back. Let's
> > just say this thing is not even remotely production ready.
>
> Never had any issues with it, but I've never tried to use my host root
> as the input filesystem.  I suspect the issue is that this is giving
> the container access to the host /dev, /sys and so on, and thus the
> container isn't ending up being contained.  Normally you don't go
> mounting a host /dev inside a container image before launching it...
>
> --
> Rich
>
>

@Nikos Chantziaras

In case it helps you at all, here's an example nspawn configuration file
that I've been using for quite a while.

I have a skeleton filesystem tree in /var/lib/machines/multimedia-state
that bind-mount read-writable stuff.
Everything else is read-only bind-mounted from my root FS. I store things
like samba configuration, and local state, there. For example, the
container is a member of my samba4 domain controller.

I use systemd-machined to launch this container at boot.

mimir /etc/systemd/nspawn # cat multimedia.nspawn
[Exec]
PrivateUsers=false
MachineID=131472ae68624b99b5ce0bf18194cda1

[Files]
BindReadOnly=/bin/
BindReadOnly=/usr/
BindReadOnly=/var/
BindReadOnly=/lib/
BindReadOnly=/etc/
BindReadOnly=/sbin/
BindReadOnly=/lib64/

BindReadOnly=/var/lib/machines/multimedia-state/etc/fstab:/etc/fstab
BindReadOnly=/var/lib/machines/multimedia-state/etc/hostname:/etc/hostname

Bind=/var/lib/machines/multimedia-state/var/log/:/var/log/
Bind=/var/lib/machines/multimedia-state/var/lib/samba/:/var/lib/samba/
Bind=/var/lib/machines/multimedia-state/var/cache/samba/:/var/cache/samba/
Bind=/var/lib/machines/multimedia-state/etc/systemd/system/:/etc/systemd/system/

TemporaryFileSystem=/home/
TemporaryFileSystem=/var/tmp/
TemporaryFileSystem=/var/lib/machines/

Bind=/media/raid/multimedia/

[Network]
MACVLAN=general


[gentoo-user] Gentoo on a cell?

2020-02-18 Thread james

So,

After contacting several US carriers, the cover story is you can get a 
cell phone, root it with linux, and it 'should work'. Supposedly, you 
are encourage, but they

will not offer any help. So rather than spending months,
I'd like to 'cheat' and find a gentoo hack(er) that has
rooted and put some form of gentoo, or embedded_gentoo
on a cell phone.

Please respond to the list, but, for whatever reason, private responses 
are OK too.



I'm just tire of my Android cell phone downloading update *every night*. 
I want/need control of the stacks
running on the phone. I have heard this is quite popular in Europe and 
the Rf circuits have their own firmware, so it's really next to 
impossible to hack the Rf side

of communications.?


Any and all responses, public or private, are most welcome. Links only 
are fine too!



James



Re: [gentoo-user] Loading Issue

2020-02-18 Thread Jack

On 2020.02.15 14:16, Peter Humphrey wrote:

On Friday, 14 February 2020 20:03:00 GMT Colleen Beamer wrote:

I have an older computer with Gentoo on it.  I haven't updated it in  
quite a while because it necessitates a full reinstall and up until  
recently, I haven't had the time to devote to this.  It is mostly  
backuped up on an external hard drive so, it what I'm asking can't  
be done, that's okay.

>
There seems to be a problem with loading MySQL.  During the boot  
process when it comes to the loading of MySQL it hangs.  Is there a  
way to bypass the loading of MySQL so the computer will complete  
booting and I can make sure I've gotten everything that I want off  
of it before I wipe it?


Have you tried setting rc_interactive="YES" in /etc/rc.conf? Then you  
can interrupt the boot process, and learn of several scripts that you  
didn't know were run.


I'm assuming an openrc system, of course.


I'm not the OP, but I recently had a similar situation - total freeze  
early during the boot process.  What I wanted was a way to get that  
rc_interactive="YES" behavior - but by doing something at boot time.   
Otherwise, I needed to boot a live CD/DVD/thumb, edit rc.conf, and  
reboot.  I was able to boot adding init=/bin/bash to the kernel command  
line, but then even though I could do "openrc sysinit" then "openrc  
boot" and then start "default" services individually, it took longer,  
since I had to try to figure out in what order services would have been  
started.


I wonder if booting with init=/bin/bash, editing rc.conf, and then  
doing "exec /sbin/init" would then put  the system in a state (with  
proc 1 being init) as if it had booted normally, but with an  
interactive startup?


Jack


Re: [gentoo-user] Re: Compiling first and then installing using -K

2020-02-18 Thread Rich Freeman
On Tue, Feb 18, 2020 at 2:06 PM Nikos Chantziaras  wrote:
>
> It gets worse. The container reconfigured the keyboard shortcuts on the
> host! After booting a container, alt+Fn or alt+left/right on the host
> started switching to the linux text-mode console. I pressed alt+f2 to
> bring up the plasma search, I ended up on TTY2... ha ha.
>
> Remember how I said I'll use nspawn from now on? I take that back. Let's
> just say this thing is not even remotely production ready.

Never had any issues with it, but I've never tried to use my host root
as the input filesystem.  I suspect the issue is that this is giving
the container access to the host /dev, /sys and so on, and thus the
container isn't ending up being contained.  Normally you don't go
mounting a host /dev inside a container image before launching it...

-- 
Rich



[gentoo-user] Re: Compiling first and then installing using -K

2020-02-18 Thread Nikos Chantziaras

On 18/02/2020 02:01, Mark Knecht wrote:


On Mon, Feb 17, 2020 at 4:32 PM Nikos Chantziaras  > I just tested it in a throw-away Ubuntu VM running on ext4. It crashed

 > and burned due to disk space. It tried to duplicate the whole "/" with
 > zero error checks. So free space reached 0 but it still didn't abort. I
 > had to abort with ctrl+c. Free space was then 200MB (out of 20GB). I did
 > "du -sh /*" to find where all the GBs went, but it doesn't find it.
 >
 > So... yeah. Not very convincing implementation. Don't try it at home,
 > kids :-P

Ouch!


It gets worse. The container reconfigured the keyboard shortcuts on the 
host! After booting a container, alt+Fn or alt+left/right on the host 
started switching to the linux text-mode console. I pressed alt+f2 to 
bring up the plasma search, I ended up on TTY2... ha ha.


Remember how I said I'll use nspawn from now on? I take that back. Let's 
just say this thing is not even remotely production ready.