Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What are the formats of the installation guide ?
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
nYto
n00b
n00b


Joined: 12 May 2004
Posts: 3

PostPosted: Wed May 12, 2004 6:24 am    Post subject: What are the formats of the installation guide ? Reply with quote

Hello all :-)
As you see i'm newbie in gentoo,and after recommends I whould like to install it.
I want to print the installation guide,but i can't print HTML pages
or anything that opens with the browser ,
Where can i found the guide in PDF or another format?


Thanks :D
Back to top
View user's profile Send private message
kezzla
Apprentice
Apprentice


Joined: 21 Aug 2003
Posts: 253
Location: Austin, TX

PostPosted: Wed May 12, 2004 6:47 am    Post subject: Reply with quote

Dunno how to get those "printable" but here is a scaled down doc I wrote some time ago...

Code:
Stage 1 Install
--------------------------

1) Boot from CD.

2) Partition hard drives:
   # fdisk /dev/hda
   /dev/hda1 will be /boot Make it around 100MB.
   /dev/hda2 will be swap  Up to you how big.
   /dev/hda3 will be /     Fill the rest of the drive.

3) Reboot, then continue with step 4

4) OPTIONAL >> modprobe any special drivers you need if not already detected.

5) OPTIONAL >> hdparm settings if not already applied --> # hdparm -i /dev/hdx to check

6) Check network ->
   # ifconfig --> eth0 ?
   # ping -c yahoo ?
   If the above works continue with step 7.

   If not detected, and you previously had to modprobe the driver, do this:
      # dhcpcd eth0 --> for dhcp

   Or static IP assignment example:
   # ifconfig eth0 192.168.0.60 broadcast 192.168.0.255 netmask 255.255.255.0
   # route add -net gw 192.168.0.1 netmask 0.0.0.0 metric 1 eth0
   Now you will need to add /etc/resolv.conf -->
   # nano -w /etc/resolv.conf -->
   domain mydomain.com
   nameserver 192.168.0.1
   nameserver 192.168.0.2

7) OPTIONAL >> Various proxy settings if needed:
   # export http_proxy="http://machine.domain.com:1234"
   # export ftp_proxy="ftp://machine.domain.com"
   # export RSYNC_PROXY="rsync://machine.domain.com"


8) Set the date:
   # date MMDDhhmmCCYY

9) Format partitions:
   # mke2fs -j /dev/hda1
   # mkswap /dev/hda2
   # mke2fs -j /dev/hda3

10) Mount partitions:
   # swapon /dev/hda2
   # mount /dev/hda3 /mnt/gentoo
   # mkdir /mnt/gentoo/boot
   # mount /dev/hda1 /mnt/gentoo/boot

11) CHOOSE TARBALL STAGE:
    a) Use current tarball from online:  (Recommended)
        # cd /mnt/gentoo
        # links http://gentoo.oregonstate.edu/releases/x86/2004.0/
           Use Up and Down arrows keys (or the TAB key) to go to the right directory.
           Highlight the appropriate stage you want to download.
       Press d which will initiate the download.
           Save the file and quit the browser.
        # tar -xvjpf stage1-*.tar.bz2

    b) OR >> Grab stage1 tarball off installation media:
   # cd /mnt/gentoo
   # tar -xvjpf /mnt/cdrom/stages/stage1-*.tar.bz2

12) Enter the chroot:
   # mount -t proc proc /mnt/gentoo/proc
   # cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
   # chroot /mnt/gentoo /bin/bash   
   # env-update
   # source /etc/profile

13) Build portage:
   # emerge sync

14) Edit make.conf for any customer options:
   # nano -w /etc/make.conf

EXAMPLE for athlonxp:
   CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer"
   CHOST="i686-pc-linux-gnu"
   USE="X qt kde nptl"
   CXXFLAGS="${CFLAGS}"
   MAKEOPTS="-j2"
   AUTOCLEAN="yes"

15)   # mkdir /etc/portage
   # nano -w /etc/portage/package.keywords
   sys-libs/zlib ~x86
   sys-kernel/linux-headers -*
   x11-base/xfree ~x86
   sys-libs/glibc ~x86
   sys-devel/gcc ~x86
   sys-devel/binutils ~x86
   sys-devel/automake ~x86

16) Run bootstrap.sh:
   # cd /usr/portage
   # scripts/bootstrap-2.6.sh

17) Build the rest of the system:
   # emerge system

18) Set your timezone:
   # ln -sf /usr/share/zoneinfo/US/Central /etc/localtime

NOTE: You may emerge vim now:
   # emerge vim

19) Modify /etc/fstab (example):
   # vi /etc/fstab:
   /dev/hda1           /boot       ext3      noauto,noatime   1 2
   /dev/hda3           /           ext3      noatime         0 1
   /dev/hda2           none        swap      sw              0 0
   /dev/cdroms/cdrom0  /mnt/cdrom  iso9660      noauto,ro       0 0
   proc                /proc       proc      defaults        0 0

20) Install & compile Kernel:
   # emerge -k sys-kernel/gentoo-dev-sources
   # cd /usr/src/linux
   # make menuconfig --> choose options..save...
    Must get these: File System->>
   /proc, /dev..automatically at boot,
   # make && make modules modules_install
   # cp arch/i386/boot/bzImage /boot/

21) Enable hotplug
   # emerge -k hotplug
   # rc-update add hotplug default

22) Emerge a logger:
   # emerge -k sysklogd
   # rc-update add sysklogd default

23) Emerge cron utility:
   # emerge -k sys-apps/vixie-cron
   # rc-update add vixie-cron default
   
24) Set root passwd:
   # passwd

25) Add non-root user:
   # useradd your_user -m -G users,wheel,audio -s /bin/bash
   # passwd your_user

26) Set hostname and domainname:
   # echo machinename > /etc/hostname
   # echo domain.com > /etc/dnsdomainname

27) Adding domainname to default runlevel:
   # rc-update add domainname default

28) Configure /etc/hosts:
   # vi /etc/hosts -->
   127.0.0.1   localhost
   192.168.0.2   mymachine.domain.com mymachine

29) Configure network to start at boot:
   # vi /etc/conf.d/net --> modify for you config
   # rc-update add net.eth0 default

    Multiple interfaces:
   # cd /etc/init.d
   # cp net.eth0 net.eth1
   # rc-update add net.eth1 default

30) Edit /etc/rc.conf with any options you need.
    EDITOR="/usr/bin/vim"

31) Emerge and configure bootloader for MBR:
   # emerge -k grub
   # grub
   grub> root (hd0,0)
   grub> setup (hd0)
   grub> quit

32) Create /boot/grub/grub.conf:
   default 0
   timeout 12
   splashimage=(hd0,0)/boot/grub/splash.xpm.gz

   title=My example Gentoo Linux
   root (hd0,0)
   kernel (hd0,0)/boot/bzImage root=/dev/hda3    

33) Exit chroot and reboot!
   # etc-update
   # exit
   # cd /
   # umount /mnt/gentoo/boot
   # umount /mnt/gentoo/proc
   # umount /mnt/gentoo
   # reboot

    Remove bootable CD!


Man I hate when people post kernel configs and then I go and do that !
8O
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Wed May 12, 2004 7:10 am    Post subject: Reply with quote

You can find PDF versions of old handbook snapshots at http://dev.gentoo.org/~plasmaroo/handbook-test. You can also find a TXT version on your LiveCD (/handbook/txt iirc).

We don't have 100% up-to-date PDF versions yet because we can't find the necessary resources to regularly build them every time the handbook is updated, but we're working on this (slowly but steadily). And because we can't give 100% up to date versions, the above link is not official.
Back to top
View user's profile Send private message
nYto
n00b
n00b


Joined: 12 May 2004
Posts: 3

PostPosted: Wed May 12, 2004 3:07 pm    Post subject: Reply with quote

Sven Vermeulen wrote:
You can find PDF versions of old handbook snapshots at http://dev.gentoo.org/~plasmaroo/handbook-test. You can also find a TXT version on your LiveCD (/handbook/txt iirc).

We don't have 100% up-to-date PDF versions yet because we can't find the necessary resources to regularly build them every time the handbook is updated, but we're working on this (slowly but steadily). And because we can't give 100% up to date versions, the above link is not official.


Haaaaa ok ,I prefer the offical version, i will find a way to print it .
Thanks anyway :)

kezzla, Stage 1 is not for me I'm totaly new in gentoo,but thanks.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Jun 26, 2004 1:51 pm    Post subject: Reply with quote

What;s the pb with html?

If you can print pdf surely you can print html.

pdf is an aweful format , why would you want doc in that form?


:?
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Jun 26, 2004 5:24 pm    Post subject: Reply with quote

The "all in one page printable version" might be useful: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printable&full=1
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Jun 26, 2004 6:04 pm    Post subject: Reply with quote

now that's a good idea!

so much clearer and readable that the "official" version.

That version should be clearly indicated to all newcomers.

One of the things I found annoying until I had a fully working system was that it was spread over several pages . I was reading the doc from a winbox with a browser but needed the connection to get the files for the gentoo box. Wasted a lot if time I recall.


Nice work. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
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