Minimal Install of 7.0-Curr with ZFS * Boot with 7.0-Curr Minimal Install Cd

Minimal Install of 7.0-Curr with ZFS * Boot with 7.0-Curr Minimal Install Cd

>>> minimal install of 7.0-curr with ZFS * boot with 7.0-curr minimal install cd * select country * choose custom install * partition with fdisk: one huge chunk * disklabel: 512MB /, some swap, the rest in an unmounted slice A: 512Mb UFS2 / B: swap D: rest of disk * choose minimal distribution * source from ftp passive * after installation, reboot into single user "4" >>> create zfs partitions mount -w / zpool create tank /dev/ad4s1d zfs create tank/usr zfs create tank/var zfs create tank/tmp df -h zfs list find -x / | cpio -pmd /tank rm -rf /tank/boot mkdir /tank/bootdir cd /tank ln -s bootdir/boot boot echo 'zfs_enable="YES"' >> /etc/rc.conf echo 'vm.kmem_size="512M"' >> /boot/loader.conf echo 'vm.kmem_size_max="512M"' >> /boot/loader.conf echo 'zfs_load="YES"' >> /boot/loader.conf echo 'vfs.root.mountfrom="zfs:tank"' >> /boot/loader.conf vi /tank/etc/fstab /dev/ad4s1a /bootdir ufs rw 1 1 zfs set mountpoint=/tmp tank/tmp zfs set mountpoint=/usr tank/usr zfs set mountpoint=/var tank/var zfs set mountpoint=legacy tank reboot >>> rebuild the world pkg_add -r bash; pkg_add -r cvsup-without-gui chsh -s bash; bash cat >> /etc/make.conf << EOF CPUTYPE?=pentium3 CFLAGS=-O2 -fno-strict-aliasing -pipe CXXFLAGS += -fconserve-space EOF cp /usr/share/examples/cvsup/standard-supfile /root cp /usr/share/examples/cvsup/ports-supfile /root * default host=cvsup8.us.FreeBSD.org cvsup -g -L 2 /root/standard-supfile cvsup -g -L 2 /root/ports-supfile cd /usr/src/sys/i386/conf/ cp GENERIC FOOBAR vi FOOBAR # remove unused CPU crap options VESA options SC_PIXEL_MODE options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=5 cd /usr/src/ make buildworld make buildkernel KERNCONF=FOOBAR; make installkernel KERNCONF=FOOBAR reboot (single user #4) fsck -p mount -u / mount -a -t ufs zfs mount -a swapon -a cd /usr/src mergemaster -p make installworld mergemaster reboot >>> configure the system adduser [yourname] echo "proc /proc procfs rw 0 0" >> /etc/fstab cat >> /boot/loader.conf << EOF snd_driver_load="YES" #snd_ich_load="YES" # try cat /dev/sndstat to figure out which module wlan_wep_load="YES" wlan_ccmp_load="YES" wlan_tkip_load="YES" EOF cat >> /etc/rc.conf << EOF hostname="foobar" zfs_enable="YES" ifconfig_em1="DHCP" linux_enable="YES" sshd_enable="YES" usbd_enable="YES" inetd_enable="NO" firewall_enable="YES" firewall_script="/usr/local/etc/ipfw.rules" firewall_logging="YES" # OR firewall_type="client" # and have a look at /etc/rc.firewall allscreens_flags="MODE_280" EOF cat > /usr/local/etc/ipfw.rules << EOF IPF="ipfw -q add" ipfw -q -f flush #loopback $IPF 10 allow all from any to any via lo0 $IPF 20 deny all from any to 127.0.0.0/8 $IPF 30 deny all from 127.0.0.0/8 to any $IPF 40 deny tcp from any to any frag # statefull $IPF 50 check-state $IPF 60 allow tcp from any to any established $IPF 70 allow all from any to any out keep-state $IPF 80 allow icmp from any to any # open port ssh (22) $IPF 130 allow tcp from any to any 22 in $IPF 140 allow tcp from any to any 22 out # deny and log everything $IPF 500 deny log all from any to any EOF >>> install ports cd /usr/ports/ports-mgmt/portaudit; make install clean portaudit -Fda cd /usr/ports/ports-mgmt/portupgrade; make install clean cd /usr/ports/security/sudo; make install clean visudo cd /usr/ports/sysutils/screen; make install clean cd /usr/ports/editors/vim; make install clean cd /usr/ports/devel/subversion; make install clean cd /usr/ports/x11/xorg; make BATCH=yes install clean #cd /usr/ports/x11/nvidia-driver; make install clean cd /usr/ports/security/nmap; make install clean cd /usr/ports/sysutils/gkrellm2; make install clean cd /usr/ports/www/firefox; make install clean cd /usr/ports/net-im/pidgin; make install clean cd /usr/ports/sysutils/cdrtools; make install clean >>> configure wireless vi /etc/rc.conf ifconfig_ath0="WPA DHCP" vi /etc/wpa_supplicant.conf network={ ssid="myssid" psk="mysecretpsk" } /etc/rc.d/netif start >>> install fusefs cd /usr/ports/sysutils/fusefs-kmod; make install clean cd /usr/ports/sysutils/fusefs-sshfs; make install clean echo 'vfs.usermount=1' >> /etc/sysctl.conf echo 'fuse_load="YES"' >> /boot/loader.conf >>> enable truetype vi /etc/X11/xorg.conf Load "freetype" FontPath "/usr/local/lib/X11/fonts/TrueType" cd /usr/ports/x11-fonts/ttmkfdir; make install clean cd /usr/local/lib/X11/fonts/TrueType ttmkfdir -o fonts.dir >>> install qemu cd /usr/ports/emulators/kqemu-kmod; make install clean #cd /usr/ports/emulators/qemu; make install clean echo 'kqemu_load="YES"' >> /boot/loader.conf.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    3 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us