Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing gentoo linux with no net connection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
gigel
Guru
Guru


Joined: 14 Jan 2003
Posts: 350
Location: .se/.ro

PostPosted: Tue Jul 15, 2003 8:50 am    Post subject: Installing gentoo linux with no net connection Reply with quote

Installing gentoo linux with no net connection

what u need:
1.a livecd(i'm using 1.4.rc2 but i bet u can make it with all 1.4.rc?)
2.a net connection from an Icafe/friend or whatevar
3.distfiles from someone else would be perfect

(i presume u have the partitions allready created)
if u have someone else's distfiles than create a directory called distfiles on another partition
(in this example /dev/hda1 is our boot partition /dev/hda2 is our / partition and /dev/hda3 is /mnt/dist - this is the partiton u should put your distfiles)


now u need to grab the portage tree from the net
download the latest from distro.ibiblio.org/pub/linux/distributions/gentoo/snapshots

it's a 8,5megs tar.bz2 file and in 30 minutes from a dial-up connections is downloaded

put the portage*.tar.bz2 file in /mnt/dist

now insert the live cd and begin installation,and we we'll skip the network configuration cuz
we don't have one :P

Code:

mkdir /mnt/gentoo
mount /dev/hda2 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda1 /mnt/gentoo/boot
cd /mnt/gentoo
#we choose stage one
tar -xvjpf /mnt/cdrom/gentoo/stage1*
mount -o bind /proc /mnt/gentoo/proc

now remember that usefull partition in wich we have the distfiles and the portage tree
Code:

mkdir /mnt/gentoo/mnt/dist
mount /dev/hda3 /mnt/gentoo/mnt/dist


now it's time for chrooting
Code:

chroot /mnt/gentoo /bin/bash
source /etc/profile
cd /usr
rm -fr portage
cp /mnt/dist/portage*.tar.bz2 /usr
tar -jxvf portage*.tar.bz2
cd portage
rmdir distfiles
ln -sf /mnt/dist/distfiles
env-update
export CONFIG_PROTECT="-*"
export USE="-*bootstrap build"
emerge portage
unset USE


if u are sure u have all the packages in /mnt/dist
than u can do easyly
Code:

/usr/portage/scripts/bootstrap.sh


if not u can do
Code:

emerge -f system 2>/dev/null | grep Couldn

to find out exactly what packages do you need in order to download them manualy

it's obvious u should edit /etc/make.conf to suit your needs
especially USE and CFLAGS flags
emerge -pv system now to see what u are about to install
Code:

emerge system


from no on u should look in the official install docs
and if u want to install a whatevarpackage just
Code:

emerge -f whatevarpackage 2>/dev/null | grep Couldn

and see what u need to download

the cool part is that u can always interrupt the installation process (it's not reccomended during a complie cuz u'll lose the compile times)
but rememeber to mount /mnt/gentoo/mnt/dist before chrooting!!

keeping the sistem up do date is easy task
just download the latest snapshot from ibiblio and then whatevar disftiles u need to emerge -u world

hope this helps some ppl with no net connection
_________________
$emerge sux
:D
Back to top
View user's profile Send private message
Donald_Phuck
n00b
n00b


Joined: 23 Aug 2002
Posts: 10

PostPosted: Fri Jul 18, 2003 2:11 pm    Post subject: Reply with quote

hi,

i just wanted to post my version of this with a few corrections.

i have a computer at home with only a modem connection. because of the speed and cost of using this modem, installing/updating gentoo via the internet doesn't come into question, thus i have no net connection available.
i also have a notebook that i take to work where i have installed gentoo via high-speed internet.

the first thing i did was to update portage on my notebook system.
Code:
emerge sync


then i completely updated all my packages including dependencies.
Code:
update -u --deep world

updating with the --deep option is important, because any new emerge will want to use the most current dependencies.

i now had the latest portage as well as all the files needed.

since i had already installed gentoo onto this notebook using a live cd, i didn't need to burn another one.
i then downloaded the latest portage tree and the latest stage1 and burned these onto a second cd.

after that, i took the 2 cds and the notebook home and proceeded to install gentoo at home via the live cd.
at step 8, instead of downloading the latest stage1, i just mounted the second cd (i have 2 drives in the computer) and untarred directly from cd to the hard drive (step 8.2).
continuing on to step 9, i opened a second terminal (ALT-F2) and, instead of emerge sync, i untarred the current portage to the /mnt/gentoo/usr/portage directory:
Code:
cd /mnt/gentoo/usr/portage
tar xjvf /mnt/cdrom1/stage1-x86-1.4_rc4.tar.bz2

now i had the latest portage and continued with the steps until step 11.
i then went back to the second terminal and used scp to copy all the distfiles from my notebook to my computer:
Code:
scp guest@192.168.0.2:/usr/portage/distfiles/* /mnt/gentoo/usr/portage/distfiles

the bootstrap script ran without having to access the internet.

after that i continued on with the installation emerging only those packages that i had emerged during the install of my notebook! this is also important, otherwise i would have had to go back to the office with the notebook and 'emerge -f package' any other package i wanted.

to keep my system up-to-date, i first have to update portage and all packages on my notebook at work. then i download the latest portage tarball onto my notebook or a cd, delete the old portage tree from my home computer and untar the new one from cd or notebook. i think it would also be possible to make my notebook into an rsync server and just point the SYNC variable of my home computer to my notebook (correct me if i'm wrong).
then, i could export the /usr/portage/distfiles directory of my notebook and mount this via nfs from my home computer and just point the variable DISTDIR in make.conf to the nfs-mounted distfiles directory. that way i could save copying these files every time.

hope this helps!
Back to top
View user's profile Send private message
jago25_98
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 180

PostPosted: Tue Jul 22, 2003 11:53 pm    Post subject: staying updated Reply with quote

relevent post ->

"emerge + Sneakernet / update offline via removable media"

https://forums.gentoo.org/viewtopic.php?p=426470#426470
Back to top
View user's profile Send private message
carambola5
Apprentice
Apprentice


Joined: 10 Jul 2002
Posts: 214
Location: Madtown, WI

PostPosted: Wed Jul 23, 2003 2:00 am    Post subject: Reply with quote

or you could just wait until 1.4 final comes out and buy (probably download too) the 2-CD set. It apparently lets you install gentoo without a network connection and contains most programs that people would need (X, KDE, Gnome, as well as some pre-build packages).

Projected release: August 5, 2003
_________________
Get Firefox!

Proper Web Development

I'm done at 999.
Back to top
View user's profile Send private message
tuckson
n00b
n00b


Joined: 24 Jul 2003
Posts: 8
Location: Woudenberg, Netherlands

PostPosted: Tue Jul 29, 2003 7:03 am    Post subject: Re: Installing gentoo linux with no net connection Reply with quote

mortix wrote:
Installing gentoo linux with no net connection

what u need:
1.a livecd(i'm using 1.4.rc2 but i bet u can make it with all 1.4.rc?)
2.a net connection from an Icafe/friend or whatevar
3.distfiles from someone else would be perfect
--- cut the rest ---


Hi,

I do have the live cd and I got a recent file with the portage tree. But what are those distfiles and how (where) do I get 'em?

Kind regards
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum