View previous topic :: View next topic |
Author |
Message |
hrobarik n00b
Joined: 12 May 2005 Posts: 8
|
Posted: Thu May 12, 2005 9:20 pm Post subject: how to compile gentoo system on another computer |
|
|
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 |
|
|
Master Shake l33t
Joined: 10 Apr 2005 Posts: 755 Location: Wilmington, Delaware
|
Posted: Thu May 12, 2005 9:22 pm Post subject: |
|
|
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 |
|
|
hrobarik n00b
Joined: 12 May 2005 Posts: 8
|
Posted: Sat May 14, 2005 9:29 am Post subject: |
|
|
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 |
|
|
arma Apprentice
Joined: 07 Nov 2004 Posts: 198 Location: Belgium
|
Posted: Sat May 14, 2005 9:34 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54270 Location: 56N 3W
|
Posted: Sat May 14, 2005 10:12 am Post subject: |
|
|
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 |
|
|
bsdvodsky n00b
Joined: 17 Dec 2004 Posts: 18
|
Posted: Sat May 14, 2005 10:15 am Post subject: |
|
|
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 |
|
|
hrobarik n00b
Joined: 12 May 2005 Posts: 8
|
Posted: Sat May 14, 2005 10:27 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54270 Location: 56N 3W
|
Posted: Sat May 14, 2005 10:39 am Post subject: |
|
|
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 |
|
|
mcfly.587 Tux's lil' helper
Joined: 29 Mar 2005 Posts: 118
|
Posted: Sat May 14, 2005 10:58 am Post subject: |
|
|
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 |
|
|
hrobarik n00b
Joined: 12 May 2005 Posts: 8
|
Posted: Sat May 14, 2005 11:40 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54270 Location: 56N 3W
|
Posted: Sat May 14, 2005 12:07 pm Post subject: |
|
|
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 |
|
|
hrobarik n00b
Joined: 12 May 2005 Posts: 8
|
Posted: Sat May 14, 2005 12:21 pm Post subject: |
|
|
I think that at least windowmaker has to work fast. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54270 Location: 56N 3W
|
Posted: Sat May 14, 2005 12:43 pm Post subject: |
|
|
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 |
|
|
diablo465 Apprentice
Joined: 10 Sep 2013 Posts: 194
|
Posted: Thu Nov 20, 2014 12:20 pm Post subject: |
|
|
sounds good, i will give it a go! |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Thu Nov 20, 2014 4:55 pm Post subject: |
|
|
I've built Gentoo for a Pentium 133, and my advice is don't bother. I had it running for a while as a network test-bed, with no GUI, and it was still very, very slow. Build was straightforward - I just installed Gentoo on a clean partition on a faster machine, and then built the stuff I needed with the appropriate flags. I then exported the partition via Samba and copied it onto the Pentium root partition.
However, I wouldn't do that if I were you.
Will |
|
Back to top |
|
|
diablo465 Apprentice
Joined: 10 Sep 2013 Posts: 194
|
Posted: Thu Nov 20, 2014 11:12 pm Post subject: |
|
|
@cwr, thanks for the comments.
The laptop i am installing gentoo is not too bad, but it does take too long to compile. So I hope as long as the compiling process can be done by powerful machine, other things would be fine. |
|
Back to top |
|
|
|