@related: OpenSource Distro

Gentoo is a Source based GNU/Linux OS

ToDo

reference

  • genkernel
  • emerge
  • ebuild

CoLinux

grep -i proxy /etc/profiles
env-update
emerge --sync
rc-update

Install on [[AmiloA]] [[Laptop]] by Jakob

Remaning bug : M5451

Stopped working on it. Will try with 2005.0 ASAP

date
Sun Mar 27 13:49:21 CET 2005

Installing Gentoo 2004.3 stage 3 with a genkernel and Kernel 2.6.9 (emerge development-sources)

  • boot from CD% * boot without any additional options (just press enter)%
  • Press F2 when splash screen comes% * Select your keyboard (I use 10)%
net-setup eth0
  • setup net

make partitions and so on

fdisk
mke2fs -L boot /dev/hda2
mkreiserfs -l root /dev/hda4
mkswap /dev/hda3
swapon /dev/hda3
mount /dev/hda4 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda2 /mnt/gentoo/boot
cd /mnt/gentoo
tar -xjvpf /mnt/cdrom/stages/stage3-athlon-xp-2004.3.tar.bz2
tar -xjvf /mnt/cdrom/snapshots/portage-20041022.tar.bz2 -C /mnt/gentoo/usr
mkdir /mnt/gentoo/usr/portage/distfiles
cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles
nano /mnt/gentoo/etc/make.conf
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
emerge development-sources
emerge genkernel
genkernel all

Check the files

ls /boot
emerge hotplug
nano /etc/fstab
echo jakob > hostname
echo sack > dnsdomainname
rc-update add domainname default
nano /etc/conf.d/net
rc-update add net.eth0 default
nano /etc/hosts
USE="-X" emerge pcmcia-cs
rc-update add pcmcia default
passwd
nano /etc/rc.conf
emerge metalog
rc-update add metalog default
emerge reiserfsprogs
emerge grub
nano /boot/grub/grub.conf
cp proc/mounts /etc/mtab
grub-install --root-directory=/boot /dev/hda
exit
umount /mnt/gentoo/boot
umount /mnt/gentoo/proc
umount /mnt/gentoo
reboot
  • Computer restarts and you should hope that it works.

Files and additional information

fdisk prints
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2742    22025083+   7  HPFS/NTFS
/dev/hda2            2743        2749       56227+  83  Linux
/dev/hda3            2750        2875     1012095   82  Linux swap
/dev/hda4            2876        4864    15976642+  83  Linux
/etc/make.conf aka /mnt/gentoo/etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"

cat /etc/fstab

# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs>          	<mountpoint>    <type>  	<opts>      		<dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda2		/boot		ext2		noauto			1 2
/dev/hda4		/		reiserfs	defaults		0 1
/dev/hda3		none		swap		sw			0 0
/dev/cdroms/cdrom0	/mnt/cdrom	auto		noauto,ro		0 0
none			/proc/bus/usb	usbfs		defaults		0 0
# NOTE: The next line is critical for boot======
none			/proc		proc		defaults		0 0
none			/dev/shm	tmpfs		nodev,nosuid,noexec	0 0

cat /etc/conf.d/net

# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.6 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."
# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
# For setting the default gateway
#
gateway="eth0/192.168.0.1"

cat /etc/hosts

# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#
127.0.0.1	localhost
192.168.0.6	jakob.sack jakob

__/etc/rc.conf

# /etc/rc.conf: Global startup script configuration settings
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/rc.conf,v 1.22 2003/10/21 06:09:42 vapier Exp $
# Use KEYMAP to specify the default console keymap.  There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.  This setting is used by the
# /etc/init.d/keymaps script.
KEYMAP="de"
# Should we first load the 'windowkeys' console keymap?  Most x86 users will
# say "yes" here.  Note that non-x86 users should leave it as "no".
SET_WINDOWKEYS="no"
# The maps to load for extended keyboards.  Most users will leave this as is.
EXTENDED_KEYMAPS=
#EXTENDED_KEYMAPS="backspace keypad"
# CONSOLEFONT specifies the default font that you'd like Linux to use on the
# console.  You can find a good selection of fonts in /usr/share/consolefonts;
# you shouldn't specify the trailing ".psf.gz", just the font name below.
# To use the default console font, comment out the CONSOLEFONT setting below.
# This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
# not want to use it, run "rc-update del consolefont" as root).
CONSOLEFONT="default8x16"
# CONSOLETRANSALTION is the charset map file to use.  Leave commented to use
# the default one.  Have a look in /usr/share/consoletrans for a selection of
# map files you can use.
#CONSOLETRANSLATION="8859-1_to_uni"
# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time).  If your clock is set to the local time, then set CLOCK
# to "local".  This setting is used by the /etc/init.d/clock script.
CLOCK="UTC"
# Set EDITOR to your preferred editor.
EDITOR="/bin/nano"
#EDITOR="/usr/bin/vim"
#EDITOR="/usr/bin/emacs"
# Set PROTOCOLS to the protocols that you plan to use.  Gentoo Linux will only
# enable module auto-loading for these protocols, eliminating annoying module
# not found errors.
#
# NOTE: Do NOT uncomment the next lines, but add them to 'PROTOCOLS=...' line========
#
# Num   Protocol
# 1:    Unix
# 2:    IPv4
# 3:    Amateur Radio AX.25
# 4:    IPX
# 5:    DDP / appletalk
# 6:    Amateur Radio NET/ROM
# 9:    X.25
# 10:   IPv6
# 11:   ROSE / Amateur Radio X.25 PLP
# 19:   Acorn Econet
# Most users want this:
PROTOCOLS="1 2"
#For IPv6 support:
#PROTOCOLS="1 2 10"
# What display manager do you use ?  [[ xdm | gdm | kdm | entrance ]]
#DISPLAYMANAGER="xdm"
# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit.  The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to.  The support scripts is smart enouth to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enligtenment" can also work.  This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE:  1) this behaviour is overridden when a ~/.xinitrc exists, and startx
#           is called.
#        2) even if a ~/.xsession exist, if XSESSION can be resolved, it will
#           be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (ex: kde-3.0.2)
# Xsession - will start a terminal and a few other nice apps
#XSESSION="Gnome"

cat /boot/grub/grub.conf

default 0
timeout 30
splashimage=(hd0,1)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.9
root (hd0,1)
kernel /kernel-2.6.9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda4 vga=792
initrd /initrd-2.6.9
title=Windows eXPerimental
root (hd0,0)
makeactive
chainloader +1
title=Gentoo Linux 2.6.9 fb
root (hd0,1)
kernel /kernel-2.6.9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda4 vga=791
initrd /initrd-2.6.9

MISC

MORE

gentoo.txt · Last modified: 2022/04/16 12:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki