Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo networkless stage3 QUICK INSTALL GUIDE
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
N1ne
n00b
n00b


Joined: 09 Jan 2005
Posts: 7

PostPosted: Sun Jan 09, 2005 6:27 am    Post subject: gentoo networkless stage3 QUICK INSTALL GUIDE Reply with quote

Made little guide for those who know their linux/gentoo systems and
just want to get thru the setup process quickly but cant seem to remeber all the things you must do.
This guide does not include everything, but pretty much all you need, basicly this is just cut'n pasted from the massive gentoo
installation manual but very stripped for those who dont want to read thru the entire manual.

Hope you will find it usefull ;)

Code:


QUICK INSTALL GUIDE FOR GENTOO STAGE3 NETWORKLESS LIVECD INSTALL

F2 @ boot to specify your keyboard layout.

OPTIONAL! START THE SSH DAEMON
# /etc/init.d/sshd start

SET UP NETWORK
MANUAL WAY USE -> # ifconfig eth0 ${IP_ADDR} broadcast ${BROADCAST} netmask ${NETMASK} up
DHCP -> # dhcp eth0
AUTOMATIC WAY USE -> # net-setup OR # adsl-setup


IF YOU GO THRU A PROXY
(If the proxy filters HTTP traffic)
# export http_proxy="http://proxy.gentoo.org:8080"
(If the proxy filters FTP traffic)
# export ftp_proxy="ftp://proxy.gentoo.org:8080"
(If the proxy filters RSYNC traffic)
# export RSYNC_PROXY="proxy.gentoo.org:8080"

USE THIS SYNTAX IF YOU NEED A USERNAME/PASSWORD USING YOUR PROXY
http://username:password@proxy.gentoo.org:8080

IF YOU GO THRU A GATEWAY
# route add default gw ${GATEWAY}

ADDING NAMESERVERS
# nano -w /etc/resolv.conf
IN FILE ADD:
nameserver ${NAMESERVER1}
nameserver ${NAMESERVER2}

HARDDISKS USE CFDISK OF FDISK TO SET UP YOU HDD

PRACTICAL CONFIG:
/dev/hda1   /boot      50M      ext2      (boot flag = 1)
/dev/hda2   (not mounted)   512M      swap
/dev/hda3   /      (rest of disk)   ext3

CREATING FILESYSTEMS
# mke2fs /dev/hda1      (for ext2)
# mke2fs -j /dev/hda3      (for ext3)

CREATE SWAP AND ACTIVATE IT
# mkswap /dev/hda2
# swapon /dev/hda2

MOUNTING PARTITIONS (/PROC WILL BE MOUNTED LATER)
# mount /dev/hda3 /mnt/gentoo
# mkdir /mnt/gentoo/boot
# mount /dev/hda1 /mnt/gentoo/boot

IMPORTANT SETTING THE CORRECT DATE
# date

EXTRACT THE STAGE TARBALL
# cd /mnt/gentoo
# tar -xvjpf /mnt/cdrom/stages/stage3-<subarch>-2004.3.tar.bz2

EXTRACT THE PORTAGE SNAPSHOT
# tar -xvjf /mnt/cdrom/snapshots/portage-20041022.tar.bz2 -C /mnt/gentoo/usr

COPY ALL SOURCE CODE FROM THE LIVE CD
# mkdir /mnt/gentoo/usr/portage/distfiles
# cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/

CONFIGURING COMPILE OPTIONS FOR PERFORMANCE
# nano -w /mnt/gentoo/etc/make.conf

EDIT FOLLOWING:
CFLAGS="-march=athlon-xp -pipe -O2"   # athlon-xp is an example use the correct one for you architecture
               examples are found in the comments of make.conf
CXXFLAGS="${CFLAGS}"                  # Use the same settings for both variables

MOUNT /proc
# mount -t proc none /mnt/gentoo/proc

CHROOTING INTO THE NEW ENVIRONMENT
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile

SETTING TIMEZONE INFORAMATION
# ls /usr/share/zoneinfo
(Suppose you want to use GMT)
# ln -sf /usr/share/zoneinfo/GMT /etc/localtime


INSTALLING THE KERNEL SOURCE

KERNEL         DESCRIPTION
vanilla-sources      2.4 Linux
gentoo-sources       2.4 with performance hacks
gentoo-dev-sources    2.6 with performance hacks
development-sources    2.6 Linux

# emerge {KERNEL}

CHECK KERNEL SOURCE SYMLINK

# ls -l /usr/src/linux
OUTPUT (NOTE "linux-2.4.26-gentoo-r9" IS MERLY AN EXAMPLE):
lrwxrwxrwx    1 root     root           12 Oct 13 11:04 /usr/src/linux -> linux-2.4.26-gentoo-r9

IF THE SYMLINK NOT IS CORRECT:
# rm /usr/src/linux
# cd /usr/src
# ln -s linux-2.4.26-gentoo-r9 linux


TIME TO CONFIGURE THE KERNEL!

SINCE THIS ONLY IS A QUICK GUIDE WITH ALL THE NECESSARY PROCEDURES FOR INSTALLING A GENTOO LINUX SYSTEM
I WILL NOT GO THRU HOW TO CONFIGURE YOUR KERNEL GOOGLE FOR INFO OR GO TO CHAPTER 7.C @
http://www.gentoo.org/doc/en/handbook/2004.3/handbook-x86.xml?part=1&chap=7

TO START THE KERNEL CONFIG EXEC
# cd /usr/src/linux
# make menuconfig

COMPILE THE KERNEL
(For 2.4 kernel)
# make dep && make bzImage modules modules_install

(For 2.6 kernel)
# make && make modules_install

INSTALLING THE KERNEL (example kernel, yours may differ)
# cp arch/i386/boot/bzImage /boot/kernel-2.4.26-gentoo-r9
# cp System.map /boot/System.map-2.4.26-gentoo-r9

INSTALLING EXTRA MODULES
Ebuild          Purpose                         Command

nvidia-kernel       Accelerated NVIDIA graphics for xorg-x11             emerge nvidia-kernel
nforce-audio       On-board audio on NVIDIA NForce(2) motherboards          emerge nforce-audio
e100          Intel  e100 Fast Ethernet Adapters                emerge e100
e1000          Intel e1000 Gigabit Ethernet Adapters                emerge e1000
emu10k1       Creative Sound Blaster Live!/Audigy support (for 2.4 kernels only)    emerge emu10k1
ati-drivers       Accelerated ATI Radeon 8500+/FireGL graphics for xorg-x11       emerge ati-drivers

ADD MODULES YOU WANT TO BE AUTOLOADED
(view available modules)
# find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko'

(Example for 2.4 kernels)
# nano -w /etc/modules.autoload.d/kernel-2.4
(! ADD MODULES OF YOUR CHOICE !)

WHEN FINISHED RUN
# modules-update

CONFIGURE YOUR SYSTEM

ADD YOUR PARTITIONS TO FSTAB
# nano -w /etc/fstab

EXAMPLE:
/dev/hda1         /boot        ext2    defaults,noatime       1 2
/dev/hda2         none         swap    sw                  0 0
/dev/hda3         /            ext3    noatime               0 1

none              /proc        proc    defaults                0 0
none              /dev/shm     tmpfs   nodev,nosuid,noexec     0 0

/dev/cdroms/cdrom0       /mnt/cdrom      auto    noauto,user          0 0

SET HOSTNAME
# echo tux > /etc/hostname

SET DOMAINNAME

# echo homenetwork > /etc/dnsdomainname

ADDING DOMAINNAME TO DEFAULT RUNLEVEL
# rc-update add domainname default

SET UP PERMANET NETWORKING EVIRONMENT
# nano -w /etc/conf.d/net

(For DHCP)
iface_eth0="dhcp"
# Some network admins require that you use the
# hostname and domainname provided by the DHCP server.
# In that case, add the following to let dhcpcd use them.
# That will override your own hostname and domainname definitions.
dhcpcd_eth0="-HD"
# If you intend on using NTP to keep your machine clock synchronized, use
# the -N option to prevent dhcpcd from overwriting your /etc/ntp.conf file
dhcpcd_eth0="-N"

(For static IP)
iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
gateway="eth0/192.168.0.1"

(For rp-pppoe)
iface_eth0="up"

ADDING NETWORKING TO DEFAULT RUNLEVEL
# rc-update add net.eth0 default

EDIT /etc/hosts
# nano -w /etc/hosts
ADD:
127.0.0.1     localhost {NAME OF YOUR COMPUTER}

OPTIONAL! INSTALLING PCMCIA-CS (requires that you enables pcmcia support in the kernel)
# USE="-X" emerge pcmcia-cs
# rc-update add pcmcia default

SETUP SYSTEM-WIDE CONFIGURATION (FOLLOW INSTRUCTIONS IN THE COMMENTS)
# nano -w /etc/rc.conf

INSTALL A SYSTEM LOGGER
# emerge metalog
# rc-update add metalog default

OPTIONAL! INSTALL A CRON DAEMON
# emerge vixie-cron
# rc-update add vixie-cron default

INSTALL FILE INDEXING SERVICE
# emerge slocate

INSTALL DHCP CLIENT
# emerge dhcpcd

INSTALL PPPoE (if you need it...)
# USE="-X" emerge rp-pppoe

(The USE="-X" will prohibit xorg-x11 to be installed as a dependency (rp-pppoe has graphical tools; if you want those enabled,
you can recompile rp-pppoe later on or have xorg-x11 installed now -- which takes a long time to compile).)

INSTALL A BOOTLOADER
# emerge grub
# nano -w /boot/grub/grub.conf

EXAMPLE OF GRUB.CONF

# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 30
# Nice, fat splash-image to spice things up :)
# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.4.26-r9
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r9 root=/dev/hda3

# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
title=Windows XP
rootnoverify (hd0,5)
makeactive
chainloader +1

#Gentoo with framebuffer support (splash screen)
title=Gentoo Linux 2.4.26-r9
  root (hd0,0)
  kernel /kernel-2.4.26-gentoo-r9 root=/dev/hda3 vga=788

UPDATING /ETC/MTAB
# cp /proc/mounts /etc/mtab

INSTALL GRUB INTO MBR
# grub-install --root-directory=/boot /dev/hda

SET ROOT PASSWORD
# passwd

UNMOUNT ALL PARTITIONS AND REBOOT
# exit
cdimage ~# cd
cdimage ~# umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
cdimage ~# reboot




you are welcome to send comments to n1nezor@gmail.com
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Sun Jan 09, 2005 7:33 am    Post subject: Reply with quote

You should probably have this moved to the Documents, Tips, & Tricks forum.
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Sun Jan 09, 2005 7:42 am    Post subject: Reply with quote

/dev/random wrote:
You should probably have this moved to the Documents, Tips, & Tricks forum.
agreed
Back to top
View user's profile Send private message
JC99
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sun Jan 09, 2005 5:13 pm    Post subject: Reply with quote

I tried doing a GRP (networkless) install but I got an error saying there was no symlink with /etc/make.profile and that ARCH was missing. I open the make.profile file with nano and it was blank.

Anyone know what is going on and how I can fix this. Thanks
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