Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to compile gentoo system on another computer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
hrobarik
n00b
n00b


Joined: 12 May 2005
Posts: 8

PostPosted: Thu May 12, 2005 9:20 pm    Post subject: how to compile gentoo system on another computer Reply with quote

Hi guys,
I would like to get a working gentoo on an old computer (Pentium 133 MHz, 40 MB RAM, 1 MB graphic card, 1,2 GB HDD, CD-ROM without network) for playing mp3, making documents in LaTeX and so on. I think that compiling the whole system can take about few weeks and it is not good idea. But I have heard that it is possible to prepare whole system on another computer and then copy it to an old one. I've searched the web for any helpful information but I haven't found anything. At this moment Red Hat 7 is installed on that old computer but I'm not satisfied. So does anybody know how to make a gentoo system on an faster computer and then copy it to an old one.
Thanks for any helpful informations.
P.S. sorry for my english.
Best regards Tom.
Back to top
View user's profile Send private message
Master Shake
l33t
l33t


Joined: 10 Apr 2005
Posts: 755
Location: Wilmington, Delaware

PostPosted: Thu May 12, 2005 9:22 pm    Post subject: Reply with quote

You can use distcc in portage if you want.
_________________
System Specs:
64-bit gentoo linux
Q6600 @ 3.2Ghz
P35 Chipset
4 Gigs 800mhz 4-4-4-12
Nvidia GeForce 8800 GTX @ 630mhz
Back to top
View user's profile Send private message
hrobarik
n00b
n00b


Joined: 12 May 2005
Posts: 8

PostPosted: Sat May 14, 2005 9:29 am    Post subject: Reply with quote

Master Shake wrote:
You can use distcc in portage if you want.

Yeah but if I understand distcc is designed to compile system on one server and another computers which are connected to the server. And my wish is to compile whole system on a faster computer and then apply this system on a slower machine. So I'm thinking that I chroot some directory on a faster comp and then I'll compile here a whole system for old machine and after that I'll copy it to the old one. If you have a better idea or if it there was an opportunity to make my own install gentoo CD for a specific comp please let me know.
Back to top
View user's profile Send private message
arma
Apprentice
Apprentice


Joined: 07 Nov 2004
Posts: 198
Location: Belgium

PostPosted: Sat May 14, 2005 9:34 am    Post subject: Reply with quote

install stage 3 on old computer
use the grp (precompiled packages)
for the packages that don exist in the grp, you can change your flags in the /etc/make.conf to match the old computer then emerge --buildpkg [package]then copy the binary produced (seee your make.conf to know qhere it copy it to the old computer, then emerge this package ... it like you emerge mozilla-bin instead of emerge mozilla
_________________
l'alcool est un ennemi...
et en quelque sorte,...
fuir l'ennemi, c'est lâche
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31342
Location: 56N 3W

PostPosted: Sat May 14, 2005 10:12 am    Post subject: Reply with quote

hrobarik,

There are two ways to do what you want.
1) Put the HDD fro your P1 into another linux PC. Boot the host PC into linux. make a mount point called /mnt/gentoo and follow the handbook but choose options for CFLAGS and so on, that you would choose for that target PC. Make grun and fstan correct for the host PC. After testing, change grun.conf and /etc/fstab to suit the target and move the drive back.
This works like a charm, I've done it several times.

2) Make some space on the host pc, preferrably partitions. and build and test there, then copy the install over the network.
I've not done this, moving the HDD is so easy.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bsdvodsky
n00b
n00b


Joined: 17 Dec 2004
Posts: 18

PostPosted: Sat May 14, 2005 10:15 am    Post subject: Reply with quote

you can also use nfs/chroot to compile on a faster system. Its much easier than setting up distcc while allowing you to cross-compile.

* On the slow machine, you'll need NFS server support
* On the fast machine, you'll need NFS client support

http://gentoo-wiki.com/HOWTO_NFSv4, I use NFSv3.

Exports on Tortoise
Code:
# /etc/exports
/       Hare(sync,rw,no_root_squash)

Mount on the Hare
Code:
mount -t nfs Tortoise:/ /mnt/gentoo/ -o auto,rw,hard,intr,nolock
mount -t proc none /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile

and emerge away!

Dont forget about ssh! You can preform these remote compile sessions from either machine.
_________________
bsdvodsky
Back to top
View user's profile Send private message
hrobarik
n00b
n00b


Joined: 12 May 2005
Posts: 8

PostPosted: Sat May 14, 2005 10:27 am    Post subject: Reply with quote

NeddySeagoon wrote:

Put the HDD fro your P1 into another linux PC

I would like to do this but I just can't and I don't want to explain why. Just consider the second option.

NeddySeagoon wrote:

Make some space on the host pc, preferrably partitions. and build and test there

That's what I'll problably do. But I don't know how to test there. Do you know?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31342
Location: 56N 3W

PostPosted: Sat May 14, 2005 10:39 am    Post subject: Reply with quote

hrobarik,

If you go down the partition on host PC route, testing is a matter of an entry in the hosts grub.conf to start the target system instead of the normal host system. Code indended for a P1 will run on all later Athlon and Intel processors.
You will not be able to install grub on the host this way, that will have to be done on the target.

If you use a looback mounted file as a fake partition for the install, I don't know how to test, sincethis would need to be mounted as your root filesystem.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mcfly.587
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2005
Posts: 118

PostPosted: Sat May 14, 2005 10:58 am    Post subject: Reply with quote

Distcc works for mee between an PII 350 mhz an my 3200xp,

But normaly it must be the same architecture ... my PII run with an i686 chost but it work great and very fast for compilation :)
Back to top
View user's profile Send private message
hrobarik
n00b
n00b


Joined: 12 May 2005
Posts: 8

PostPosted: Sat May 14, 2005 11:40 am    Post subject: Reply with quote

btw. I don't know which kernel I shall compile and which filesystem (udev or devfs). Also I would like to have a nice X window manager. I was thinking about xfce4 but I'm affraid that it will be too slow for pentium 133 MHz with 40 MB RAM.What do you think?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31342
Location: 56N 3W

PostPosted: Sat May 14, 2005 12:07 pm    Post subject: Reply with quote

hrobarik,

xorg wants about 80Mb of RAM. I wouldn't put X on that box.
You can still use it as a server.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hrobarik
n00b
n00b


Joined: 12 May 2005
Posts: 8

PostPosted: Sat May 14, 2005 12:21 pm    Post subject: Reply with quote

I think that at least windowmaker has to work fast.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31342
Location: 56N 3W

PostPosted: Sat May 14, 2005 12:43 pm    Post subject: Reply with quote

hrobarik,

Its worth trying. You also get twm free with Xorg.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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