# comment rc.conf for secure_level (disable) # ./cvsup -g -L 2 standard-supfile # shutdown now # fsck -p (error, continue) # mount -u / # mount -a -t ufs # swapon -a # adjkerntz -i # cd /usr/obj # chflags -R noschg * # rm -rf * # cd /usr/src # make -j4 buildworld # cd /usr/src # make buildkernel # make installkernel # cd /usr/src # make installworld # cd /usr/src/release/sysinstall # make all install # fastboot # cd /usr/src/usr.sbin/mergemaster # ./mergemaster.sh -p ### You are now done. Rebuild your kernel ### # cd /usr/src/sys/i386/conf # cp GENERIC X # vi X # cd /usr/src # make buildkernel KERNCONF=X # make installkernel KERNCONF=X # reboot ################################################## http://www.understudy.net/makeworld.html cvsup stable-supfile make.conf cd /usr/src mergemaster -p make buildworld make buildkernel KERNCONF=KERNNAME make install kernel KERNCONF=KERNNAME make installworld mergemaster shutdown -r +3 uname -a df -h cd /usr/src; make clean cd /usr/ports; make clean df -h ########################################### over view The installation of this network management server utilises the Internet installation process to install files. This helps keep the installed files to a minimal base to keep things clean. Unneeded files and services are not installed. Floppy disks are required to be created in order to use the Internet installation process. The server is to host the following applications: 1.SSHD 2.SMTP 3.Apache + PHP (LDAP, FTP and socket enabled) 4.MYSQL 5.NAGIOS 6.MRTG 7.Groupwise Internet Access web interface 8.Tomcat 9.JDK 10.Cricket 11.DNS 12.Webalizer Useful URLS: http://rapidfx.org/data/faq.html http://www.freebsd.org/ports/master-index.html ftp://ftp5.freebsd.org/pub/FreeBSD/tools ftp://ftp5.freebsd.org/pub/FreeBSD/releases/i386/4.9-RC2/floppies http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html ftp://ftp.nz.FreeBSD.org/pub/FreeBSD/ Creating Boot Floppies ftp://ftp5.freebsd.org/pub/FreeBSD/releases/i386/4.9-RC2/floppies Get kern.flp and mfsroot.flp then go here also ftp://ftp5.freebsd.org/pub/FreeBSD/tools and get fdimage.exe fdimage.exe -v kern.flp a: fdimage.exe -v mfsroot.flp a: Installation Instructions (Internet Install) Note: It is possible that the install will fail without reason when retrieving files from the FTP Server - fdisk /mbr as well as remove the part from dos to clear the parts entirely from the HDD before doing the next attempt at installing. When they are both done [making the floppy disks], insert kern.flp into drive and boot [very few people install this way, they don't even know you can, and it saves many MB of bandwidth and is more configurable] you'll end up at "kernel Configuration Menu" screen select full screen visual [2nd choice] now hit x do you have any SCSI devices? [no] use the arrow keys and move down and delete the SCSI devices then hit tab key to move to second field highlight ed0 hit enter [it will become active] hit q then yes [it will continue to boot] [If Error about “Failed to Load Module if_fwe.ko” occurs – ignore] pick 'standard' hit ok lets just let fbsd do it auto style for now, see if you are ok with its partition idea [HDD Partition] so up arrow and d to delete partition d them all it will tell you you cant if you cant just up arrow till it allows until there is only one listed as unused then hit 'a' hit 'q' k [lets do the boot manager] so, select bootmgr hit ok again press A again [check partition sizes – manually make if your not ok with them] hit Q [now we are at another GUI] are you going to run x on this box? or any GUI? [no = server] then use arrow keys and go down to developer hit space now it asks about ports collection select yes scroll up to exit hit enter now we are at install type GUI? cd/dvd ftp and such? [are you behind firewall?] [No… but you can change things around for ftp access from here and return to the main setup config menu by pressing CTRL-C] [ok try ftp first.. we might use passive if this doesn't work] pick your country to get files [Try to use an NZ server if possible!!!] hit enter [now you see NIC] now it asks if you want ipv6 say no ok dhcp say yes [if this fails try with static IP info] now you are at a screen with Host Domain IPv4 Gateway and such? Pressing CTL-C can restart the install. Had to use Passive FTP and DHCP. After it has installed ensure you set root password etc. reboot... take out cable when you get to the prompt. Login as root vi /etc/rc.conf and set these in rc.conf moused_enable="NO" sendmail_enable="NO" sshd_enable="NO" usbd_enable="YES" inetd_enable="YES" cd /usr/ports/net/cvsup-without-gui make && make depend && make install && make clean [as one line? yes ] update kernel run /usr/libexec/locate.updatedb try: locate standard-supfile copy that file to /tmp/ vi it and look for this line *default host=CHANGE_THIS.FreeBSD.org change to *default host=cvsup5.FreeBSD.org next, look for this: *default release=cvs tag=RELENG_4_8 set to *default release=cvs tag=RELENG_4 then find this: src-all and below it add docs-all tag=. ports-all tag=. [make sure you have the . at the end =.] save and exit [:w :q] [run cvsup] cvsup -i -L 2 /tmp/standard-supfile If you've set a 'SecureLevel' then you must set it to 'NO' in /etc/rc.conf before next step. # shutdown now # fsck -p (errors, ok, still thinking about this, continue, no changes) # mount -u / # mount -a -t ufs # swapon -a # adjkerntz -i # cd /usr/obj # chflags -R noschg * # rm -rf * # cd /usr/src # make -j4 buildworld # cd /usr/src # make buildkernel # make installkernel # cd /usr/src # make installworld # cd /usr/src/release/sysinstall # make all install # fastboot (reboots) # login as root (not su) # cd /usr/src/usr.sbin/mergemaster # ./mergemaster.sh -p we really need to build a kernel now reboot & login as root # cd /usr/src/sys/i386/conf # cp GENERIC X # vi X edit file to drop shit you don't need from the kernel configuration save file and run # cd /usr/src # make buildkernel KERNCONF=X # make installkernel KERNCONF=X # reboot login as root uname -a does your X kernel show in the path? root@vaio.anchorageak.net:/usr/obj/usr/src/sys/X i386 like that if so looks like we have a system up edit /etc/rc.conf uncomment sshd or ensure its set to YES add sendmail_enable="NO" reboot if you want to enable sshd