Site Tools


install_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

install_notes [2011/03/04 00:55] – external edit 127.0.0.1install_notes [2012/05/16 12:35] (current) – [add a user] paulsmith
Line 1: Line 1:
 +====== Install Notes ======
 +
 +
 +===== mount portage =====
 +<code>
 +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
 +</code>
 +
 +===== chroot =====
 +<code>
 +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
 +</code>
 +
 +===== grub =====
 +<code>
 +grub
 +root (hd0,0)
 +setup (hd0)
 +quit
 +</code>
 +
 +===== packages pre =====
 +<code>
 +nfs-utils
 +portmap
 +ssmtp
 +mailx
 +gentoolkit
 +screen
 +logrotate
 +bind-tools
 +mtr
 +tcpdump
 +vim-core
 +
 +</code>
 +
 +===== umount =====
 +<code>
 +umount /mnt/gentoo/proc /mnt/gentoo/boot /mnt/gentoo/usr/portage /mnt/gentoo/usr/local/distfiles /mnt/gentoo/dev /mnt/gentoo
 +</code>
 +
 +===== add a user =====
 +<code>
 +useradd -g users -G lp,wheel,audio,cdrom,portage,cron -m john
 +</code>
 +
 +===== format a dos hard disk =====
 +<code>
 +mkfs.vfat -F 32 -s 64 /dev/sdc1
 +</code>
 +
 +
 +===== touch all files in a directory and subdirectories =====
 +<code>
 +find ./ -type f -exec touch "{}" \;
 +</code>
 +
 +===== tools =====
 +<code>
 +emerge-update
 +env-update && source /etc/profile && etc-update
 +
 +cv
 +grep -v "^#" $1 | grep "^\w"
 +
 +l
 +ls -la --color "$@"
 +</code>
 +
 +===== ssh =====
 +<code>
 +Port 20202
 +Protocol 2
 +PasswordAuthentication no
 +ChallengeResponseAuthentication no
 +UsePAM no
 +Subsystem       sftp    /usr/lib/misc/sftp-server
 +</code>
 +
 +===== vi =====
 +<code>
 +rm  /usr/bin/vi
 +ln -s /usr/bin/vim  /usr/bin/vi
 +</code>
 +
 +
 +===== http-replicator =====
 +<code>
 +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 
 +</code>