As introduced here:
https://forums.gentoo.org/viewtopic-p-7 ... ml#7538138
I think this thread should be renamed:
Air-Gapped Gentoo Install, Tentative
simply because that is what all this is about.
WARNING Pls. bear with me. My ideas weren't at all clear when I started this
thread. However, not out of brazenness, and if you skim faster through the
unclear parts in the beginning, you will notice that later on my understanding
of the matters starts to come into shape.
Thank you!
EDIT END
EDIT START Fri Mar 28 18:24:38 UTC 2014
The title was previously wrong:
Offline Install, use emerge-webrsync to check and log?
Pls. see here:
http://forums.gentoo.org/viewtopic-t-98 ... ml#7525726
why that was wrong... Sorry again. Consistently with the wrong title, lots of my
understanding was unclear and plain wrong, when I opened this topic... Clearing out slowly...
EDIT END
Offline Install, how to use emerge-webrsync to check and log every package in
the distfiles?
Well, at least check and log them as they are installed.
(( to some extent, I am continuing on some issues from:
http://forums.gentoo.org/viewtopic-t-984066.html ))
I've already collected a few packages, and I don't want to redownload them.
I'm not an expert to feel like a fish in the water online, and am aware how
little it takes to break into systems, for experts... My main defence is
having a clean backup, reverting to when things were clean. dd dumps are
images to the bit of the device they dumped, and I know how to backup my
systems. I wrote already about it on Gentoo Forums, and will give the links
here, if I get less strapped with time, i.e. succeed in my reinstalling of
Gentoo for one of my boxes, which then I will easily clone onto other of my
systems, as I have a few same MBO, similar hardware boxes...
My idea is to use emerge-webrsync to check packages...
I couldn't easily come to terms with the explanations in the Handbook (we're
talking AMD Handbook here
http://www.gentoo.org/doc/en/handbook/h ... xml?full=1
at the time of writing this post
) on emerge-webrsync, and it took me time and some searching to figure out
some of, but not all of these issues. Namely that if you use emerge-webrsync
then you don't do any more of emerge --sync ... But, to be able to do that,
proper configuration is needed.
I found somewhere that putting into /etc/portage/make.conf:
SYNC=""
that is, an empty string, would disable the rsyncing but am yet to learn if it
will really do so for me. I guess it will.
After deploying the stage3 tar ball, somewhere around here in the Handbook:
( Pulling Validated Portage Tree Snapshots )
http://www.gentoo.org/doc/en/handbook/h ... brsync-gpg
those:
Code: Select all
sync-type = rsync
sync-url
/usr/share/portage/config/repos.conf
so I don't think that needs commenting out, but somebody correct me if I'm
wrong.
Also, it took me a while to figure out these changes should accomodate better
my needs. I mean, I like the emerge-webrsync to keep what it downloads, and
I'd like it to be, oh, so much more talkative...
I'm writing offline... (a preemptive remark: look up this link if anyone
considers that paranoid, attacks on my machines are documented and
undeniable...:
grsec: halting the system due to suspicious kernel crash
http://forums.grsecurity.net/viewtopic.php?f=3&t=3709
)
I'm not writing from LiveCD Box, but from sysresccd running from RAM, but I
can copy my sed lines that I intend to run on /usr/bin/emerge-webrsync before
I use it, by hand:
Code: Select all
sed -i.bak 's/do_verbose=0/do_verbose=1/' | sed 's/keep=false/keep=true/'
has:
do_verbose=1 instead of do_verbose=0
and
keep=true instead of keep=false
and it'll hold those till the next upgrade of itself... (as that is not a conf file)
But it is not sufficient for my needs to just make it verbose by default and
make it keep the portage snapshot by default...
I have already tried and failed in installing, with some strange errors, and I
can't tell whether I did someting wrong or other reasons were for the
failure... I don't keep logs of everything, I just remember that it looked a
little suspicious, and so...
I don't keep logs of everything, esp. when I can't do so... I like when it is
possible to do so, and would like to see how much of the logs I could possibly
get, on the verification of the packages. Such as, I like the logs that I can
get with Grsecurity, they often tell interesting stories, although more to
experts than me. Again, look up the link on Grsecurity Forums I gave above,
where Grsecurity hardened Gentoo shines just fine, defeating intrusion in my
systems, to some extent.
Isn't it useful to users and developers, having such logs to report?
Let me give you my plan and a few ideas, I hope if I get good advice, this
could be useful to others (or am I the only one having hard time with
surveillance?
What I intend to do, as well as what I have already done (rewriting this for
an umptiethe time) is as follows.
Boot with Gentoo official LiveCD.
Set the time to the right hour in the past when the portage that I kept with
Code: Select all
(chroot) livecd # emerge-webrsync -kof that command). I want to do so, lest it don't complain of wrong timing
(that's non-intrinsic, but may prove the right thing to do)...
The portage snapshots are (with the -k given) kept in /usr/portage/distfiles/
such as:
/usr/portage/distfiles/portage-20140323.tar.xz
/usr/portage/distfiles/portage-20140323.tar.xz.gpgsig
/usr/portage/distfiles/portage-20140323.tar.xz.md5sum
What I did is:
followed the Handbook up to unpacking the stage3 tarball, and some way
further, somewhere around connecting to the internet, but instead of
connecting to internet this time around, using this time that which was
downloaded the last time.
First the portage snapshot:
Code: Select all
cd /usr
tar xJvf portage-20140323.tar.xz
tar xJvf /somewhere-where-I-stored-it/portage-20140323.tar.xz
and there, the portage tree is installed, complete, and what is important,
trustful, trustful so far.
But here comes the challenge. How do I do the next step?
It doesn't have to be as tedious as is threatened
https://wiki.gentoo.org/wiki/FAQ#I_have ... _system.3F
Namely HDDs, are not so very expensive if they're not the latest huge ones,...[snip]...
Put the sources into /usr/portage/distfiles/ and then simply run emerge
package. Be warned, however, that this is a tedious process.
and I can easily zero some of my HDD, and apply the same GPT table as
previously, mke2tfs the partitions and such...
But I want to be able to do more than is mentioned in that FAQ.
The packages I have already collected, they were downloaded according to what
use flags I set into make.conf, they would have to be fine if I were to run
the same command as the last time, to emerge those same packages, wouldn't
they?
But I want to be able to check them with emerge-webrsync, and I would like to
log every single package as it is being checked.
This:
Code: Select all
# equery b emerge-webrsyncI see there no special flags on emerge-webrsync if I run:
Code: Select all
# emerge -pvt portageCode: Select all
# emerge-webrsync -hI found no special tutorial on emerge-webrsync on the Wiki or in the Forums...
I want to be certain that what I install from this point on is only that which
is signed with Gentoo signatures.
I don't mind having to do used zeroed HDDs to recreate the existing systems
from backup, I want to get cloneable privacy-viable Gentoo installation for my
machines on my SOHO at any cost. Other then "good good bullsh*t" cost (Pink
Floyd, 1970s I believe, "Money"). That I don't have. The Regime currently in
power in my country ruined my investments and I am poor.
So I want to be certain of all and any packages that I install from this point
on. I know there is no absolute certainty. But currently I have almost no
certainty at all...
I don't want any rogue packages, and since it is so easy for experts to break
into systems, within fractions of a second once you're online, a program ready
for you can play at least a few tricks on your system, can't it, especially
since GNU/Linux has long been disregarding security wholesale... few
exceptions there...
This is not easy what I want, is it?
Any ideas?
I can read bash code (emerge-webrsync is in bash), but I take soo loong to
understand it, so much research...
If I don't get a quicker advice, I'll probably be back but not very soon...
I might also be off for a few hours starting at imprecise time soon from now,
for unrelated other obligations I have. But I will be back, God willing. Pls.
bear that in mind if anyone replies here. Thank you!
Miroslav Rovis
Zagreb, Croatia
www.CroatiaFidelis.hr


