Install Notes

mount portage

mount -t nfs 192.168.99.1:/usr/portage /mnt/gentoo/usr/portage
mount -t nfs 192.168.99.1:/usr/local/distfiles /mnt/gentoo/usr/local/distfiles

chroot

cd /
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc proc /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
cp -L /etc/resolv.conf /mnt/gentoo/etc/
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile

grub

grub
root (hd0,0)
setup (hd0)
quit

packages pre

nfs-utils
portmap
ssmtp
mailx
gentoolkit
screen
logrotate
bind-tools
mtr
tcpdump
vim-core

umount

umount /mnt/gentoo/proc /mnt/gentoo/boot /mnt/gentoo/usr/portage /mnt/gentoo/usr/local/distfiles /mnt/gentoo/dev /mnt/gentoo

add a user

useradd -g users -G lp,wheel,audio,cdrom,portage,cron -m john

format a dos hard disk

mkfs.vfat -F 32 -s 64 /dev/sdc1

touch all files in a directory and subdirectories

find ./ -type f -exec touch "{}" \;

tools

emerge-update
env-update && source /etc/profile && etc-update

cv
grep -v "^#" $1 | grep "^\w"

l
ls -la --color "$@"

ssh

Port 20202
Protocol 2
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no
Subsystem       sftp    /usr/lib/misc/sftp-server

vi

rm  /usr/bin/vi
ln -s /usr/bin/vim  /usr/bin/vi

http-replicator

If it fails to start then try this:

Edit /etc/init.d/http-replicator and add "--oknodo" to the start stanza

start-stop-daemon --help 
install_notes.txt · Last modified: 2012/05/16 12:35 by paulsmith
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki