BSD CERTIFICATION GROUP STUDY DVD WINTER / SPRING 2017 First, mount the DVD and create a private repository using the following commands (or use the vi editor to create the configuration files directly): mount_cd9660 /dev/cd0 /mnt # mount the DVD mkdir -p /usr/local/etc/pkg/repos # create repository directory cat > /usr/local/etc/pkg/repos/example.conf <<EOF # create repository file example: { url: file:///mnt/F11.0/packages_bsdcg/freebsd:11:x86:64 } EOF cat > /usr/local/etc/pkg/repos/FreeBSD.conf <<EOF FreeBSD: { enabled: NO } EOF
startx The X Window System should "Just Work". If it does not, there is helpful information in the FreeBSD handbook on configuring X. Refer to Chapter 5 “The X Window System” section of the FreeBSD handbook in the /DOCS directory on the DVD. Some systems may need hald and dbus-daemon enabled to get the mouse working. Put the following in /etc/rc.conf and reboot: hald_enable="YES" dbus_enable="YES" moused_enable=”YES” vboxdrv_enable=”YES”
Virtualization See the file /BSDCG/REE.txt on the DVD for instructions on setting up virtualization with Qemu and VirtualBox. (VirtualBox is also covered in the FreeBSD handbook on the DVD.) Installation Tips
Next, install the pkg environment: pkg install pkg The pkg system is now initialized and you can install packages from the DVD. Once the virtual machines are up you can change your repository configuration file and packages directly from the FreeBSD project website. See pkg(8) for a sample repository file for use with the FreeBSD project. For DragonFly BSD, NetBSD, and OpenBSD, see each project’s handbook or FAQ in the /DOCS directory of the DVD to learn the details of package and/or ports management. To set up the virtual machines, install FreeBSD 11.0 and install all the following packages: Packages for Virtualization xorg, qemu, virtualbox-ose, sudo
BSD CERTIFICATION GROUP STUDY DVD WINTER / SPRING 2017
Available Window Managers lumina, fvwm
For example: pkg install xorg The above packages have a large number of dependencies and may take 5 - 30 minutes or more to install. Some patience may be needed.
The DVD doesn’t work. – Each DVD was tested before shipment. Try the DVD on another machine. (Just booting the DVD will not affect the hard disk.) Also, ensure that your BIOS is configured to boot from a DVD and that the DVD is inserted in a DVD reader, not a CDROM reader. If you’ve tried the DVD on multiple machines, please us for a replacement. Send a note to
[email protected] and we will ship a replacement if needed. Annoying debug text obscures important fields on the install screens – Press Ctl-L to refresh the install screen before entering data. The Lumina window manager does not have resize controls on the windows. – Right click on the root window, select Preferences -> Desktop -> Appearance -> Window Manager and select a different Window Theme (such as BlueNight or Flux). Click “Save” when done. The OpenBSD installation has the following error: “directory does not contain SHA256.sig. Continue without verification? [no]” – This error occurs because the distribution is not signed by the OpenBSD project. It can be safely ignored for this installation. Answer ‘yes’ and continue with the installation.
To use the lumina window manager and the firefox browser, first initialize the file /etc/machine-id with the following command: /bin/uuidgen | tr -d '-' > /etc/machine-id
I get the following error during the FreeBSD install: Install Failed - Unable to find device node for /dev/ad2slb in /dev! The creation of filesystems will be aborted.
Next, put these lines in the .xinitrc file in root's home directory: xterm -geometry 80x24+50+50 & fvwm (or use exec start-lumina-desktop instead of fvwm) and as root, start the X Window system with the command
If a previous installation of FreeBSD used Geom partitioning (with the gpart command) the previous partition is still there and must be deleted. There is one copy of the partition table at the beginning of the disk, and also a copy at the end of the last partition. First, try to use gpart(8) to delete the existing partition entries. If it is not possible to use gpart(8) to remove the existing partitions, boot OpenBSD to the “(S)hell” prompt and use dd(1) to zero out the first 1M bytes and the last 1M bytes on the disk. You will have to calculate the seek value for
2
3
BSD CERTIFICATION GROUP STUDY DVD WINTER / SPRING 2017
BSD CERTIFICATION GROUP STUDY DVD WINTER / SPRING 2017
the end of your disk by hand. Use diskinfo(8) to find the size of the disk in bytes then subtract 1,000,000 from that number. The result will be the seekvalue, used below.
Welcome to the Winter / Spring 2017 Edition of the BSDCG Study DVD Thank you for purchasing this DVD and ing the BSD Certification Group. This booklet contains important information ing the DVD.
# Start with the beginning of the disk chunk: dd if=/dev/zero of=/dev/wd0c bs=1m count=1 #Get the end of the last partition chunk: dd if=/dev/zero of=/dev/wd0c bs=1m count=1 seek=<seekvalue>
Note: This is an INSTALL DVD. Choosing to install an operating system may overwrite existing data on your hard drive. Also, the OS versions on this DVD are all 64bit versions and will not work on 32bit hardware.
If you get the error message “dd: /dev/wd0c (or sd0c): end of device” you have successfully scrubbed the data through the end of the disk. This procedure has cleared the Geom partition entries. Reboot and restart the FreeBSD installation.
General Information This DVD contains the following operating systems:
If the disk partition table needs to be recreated, use the “fdisk” command from the NetBSD or OpenBSD installation (use the installer live shell). See the manual page for fdisk(8). Other Important Notes: FreeBSD 11 introduced a set of system hardening options and some debugging distributions (*-dbg) in the install process. For the initial install, we recommend that you not enable these options. As you work with the DVD you can enable each hardening option and debugging distribution, and gauge its effect on your installation. Older ATI Radeon cards may have problems on the install. ATI drivers under active development. Try another card or use VESA if at all possible. There are many other installation tips on each BSD project website: http://www.dragonflybsd.org http://www.freebsd.org
http://www.netbsd.org http://www.openbsd.org
FreeBSD 11.0* (64bit) in directory /F11.0 OpenBSD 6.0 (64bit) in directory /C6.0 DragonFly BSD 4.6 (64bit) in directory /D4.6 NetBSD 7.0.1 (64bit) in directory /N70.1
Additional Contents BSD Related Documents under /DOCS FreeBSD_Handbook.pdf.gz FreeBSD_FAQ.pdf.gz NetBSD_Guide_en.pdf.gz DragonFlyBSD_Handbook.pdf.gz OpenBSD_Copyright_Policy.pdf.gz OpenBSD_FAQ.pdf.gz OpenBSD_pf_Guide.pdf.gz pkgsrc_Guide.pdf.gz
BSD Certification Documents under /BSDA, /BSDP BSDA_exam_objectives.pdf.gz BSDA_command_reference.pdf.gz BSDA_Study_Guide.pdf.gz BSDA_Task_Survey_Analysis.pdf.gz Psychometrics_Explained.pdf.gz BSD_Usage_Survey.pdf.gz BSDCG_Delivery_Survey.pdf.gz BSDP_exam_objectives.pdf.gz BSDP_JTA_Report.pdf.gz Create_a_Study_Plan.pdf.gz
Note: All above files are zipped with GNU gzip and can be unzipped with the command: gunzip name_of_file.gz See gzip(1) for more information.
See the BSDCG Videos Site at: https://idoc-pub.sitiosdesbloqueados.org/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="600a090d02190720070d01090c4e030f0d">[email protected] Once again, thanks for purchasing this Study DVD! Your generous donation s the BSD Certification Group. © Copyright 2007-2017, BSD Certification Group Inc.
4
Usage Notes The DVD contains the above operating systems as full installations. You can install each operating system separately or you can install them all as separate virtual machines under Qemu or VirtualBox. The Qemu and VirtualBox packages were added to the FreeBSD package repository along with a few additional X Window utilities and two window managers. Adding Additional Packages In FreeBSD 11, all packages are managed with the pkg command. You must initialize the pkg environment before use. See pkg(7) and pkg(8) for details. There are a number of packages on the DVD for setting up the X Window system and virtualization. To install packages, insert the BSDCG DVD in the DVD drive and continue with the instructions below.
*FreeBSD 11.0-RELEASE-p1 (Oct. 10, 2016)
1