A project for COURSENAME by YOUR NAME OR GROUPMEMBER NAMES during the SEMESTER YEAR.
This project was begun on DATE and is anticipated to take X AMOUNT OF TIME. (Upon completion you can correct this with the actual length).
State the purpose of this project. What is the point of this project? What do we hope to accomplish by undertaking it?
In order to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved:
State the idea or purpose of the project. What are you attempting to pursue?
Upon approval, you'll want to fill this section out with more detailed background information. DO NOT JUST PROVIDE A LINK.
Providing any links to original source material, such as from a project page, is a good idea.
You'll want to give a general overview of what is going to be accomplished (for example, if your project is about installing a web server, do a little write-up on web servers. What is it, why do we need one, how does it work, etc.)
Give a general overview of your anticipated implementation of the project. Address any areas where you are making upfront assumptions or curtailing potential detail. State the focus you will be taking in implementation.
State and justify the attributes you'd like to receive upon successful approval and completion of this project.
The actual steps taken to accomplish the project. Include images, code snippets, command-line excerpts; whatever is useful for intuitively communicating important information for accomplishing the project.
Base System:
EDITOR=vim EMAIL=user@example.com HISTFILE=~/.ksh_history HISTSIZE=10000 LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \#LC_CTYPE=en_US.UTF-8 PKG_PATH=ftp://openbsd.mirror.net/pub/OpenBSD/$(uname -r)/packages/$(uname -m)/ ALT_PKG_PATH=http://openbsd.mirror.net/pub/OpenBSD/$(uname -r)/packages/$(uname -m) \# color prompt: [$TIME]{$USER@$HOST}($PWD)$> RST="\e[00m"; RED="\e[1;91m"; GRN="\e[1;92m"; BLU="\e[1;94m"; MAG="\e[1;95m"; CYN="\e[1;96m" if [[ $EUID == 0 ]]; then PS1="[$BLU\A$RST]$RED{$RST$CYN\u@\h$RST$RED}($RST$MAG\w$RST$RED)\\$>$RST " else PS1="[$BLU\A$RST]$GRN{$RST$CYN\u@\h$RST$GRN}($RST$MAG\w$RST$GRN)\\$>$RST " fi unset RST RED GRN BLU MAG CYN export EDITOR EMAIL HISTFILE HISTSIZE LC_ALL LANG PKG_PATH ALT_PKG_PATH PS1 unset MAIL unset MAILCHECK \# reload .kshrc alias reload='. ~/.kshrc' alias cp='cp -i' alias ls='ls -A --color=auto' alias ll='ls -aFhl --color=auto' alias mv='mv -i' alias rm='rm -i'
$ echo "export ENV=${HOME}/.kshrc; export ENV" >> .profile
Kernel:
Initial Steps:
## Edit system hostname $ doas vi /etc/myname ## Configure gateway IP address $ doas vi /etc/mygate ## Configure the DNS IP address $ doas vi /etc/resolv.conf
Wired:
## Configure static IP address and network mask: (em0 used as example) $ doas vi /etc/hostname.em0
Wireless:
## Configure static IP address and network mask: (urtw0 used as example) $ doas vi /etc/hostname.urtw0 ## wpa_supplicant instructions ## Installation $ doas pkg_add -ivvv wpa_supplicant ## Usage: (urtw0 used as example) # Scan for WiFi APs: $ doas ifconfig urtw0 up $ doas ifconfig urtw0 scan # Connect to a WPA Network: $ ifconfig urtw0 nwid AP-SSID wpakey $uPPP3R_$3CURE_p@$$WoRD $ dhclient urtw0 # Connect to a WPA Network with spaces in the BSSID: (Single quotes) $ ifconfig urtw0 nwid 'AP-SSID with Spaces' wpakey $uPPP3R_$3CURE_p@$$WoRD $ dhclient urtw0 # Connect to a WPA Network with symbols in the BSSID: (Double quotes) $ ifconfig urtw0 nwid "AP-SSID_w!th_$ymb01$" wpakey $uPPP3R_$3CURE_p@$$WoRD $ dhclient urtw0 ## Monitor Mode: # Show wireless card information: $ doas dmesg | grep 'urtw0' # Show Media Options: $ ifconfig urtw0 media # ENABLE Monitor Mode: $ doas ifconfig urtw0 mediaopt monitor # DISABLE Monitor Mode: $ doas ifconfig urtw0 -mediaopt monitor
Packages:
$ pkg_info $ pkg_info | grep <package_name>
$ doas pkg_add -imVvvvvv package_name | tee package_name.txt
$ doas pkg_delete -aimVvvvvv <package_name>
$ doas pkg_add -umVvvvvv <package_name>
$ doas pkg_add -umVvvvvv
Ports:
Initial Steps:
$ vi .profile export PKG_PATH=ftp://openbsd.mirror.frontiernet.net/pub/OpenBSD/$(uname -r)/packages/$(uname -m)/ export ALT_PKG_PATH=http://openbsd.mirror.frontiernet.net/pub/OpenBSD/$(uname -r)/packages/$(uname -m)/ $ doas vi /root/.profile export PKG_PATH=ftp://openbsd.mirror.frontiernet.net/pub/OpenBSD/$(uname -r)/packages/$(uname -m)/ export ALT_PKG_PATH=http://openbsd.mirror.frontiernet.net/pub/OpenBSD/$(uname -r)/packages/$(uname -m)/
Upgrading:
$ cd /usr $ cvs -qd anoncvs@anoncvs.example.org:/cvs checkout -rOPENBSD_6_3 -P src
$ cd /usr/src $ cvs -q up -Pd
$ cd /usr $ cvs -qd anoncvs@anoncvs.example.org:/cvs checkout -P src
$ cd /usr/src $ cvs -q up -Pd
Updating:
$ doas fw_update -v
$ cd /tmp $ wget http://mirrors.mit.edu/pub/OpenBSD/6.3/src.tar.gz $ wget http://mirrors.mit.edu/pub/OpenBSD/6.3/sys.tar.gz $ wget http://mirrors.mit.edu/pub/OpenBSD/6.3/ports.tar.gz $ wget http://mirrors.mit.edu/pub/OpenBSD/6.3/xenocara.tar.gz $ cd /usr/src $ tar xvfz /tmp/sys.tar.gz $ tar xvfz /tmp/src.tar.gz $ cd /usr $ tar xvfz /tmp/ports.tar.gz $ tar xvfz /tmp/xenocara.tar.gz $ rm /tmp/*.tar.gz
Services:
Users:
PGP/GPG:
SSH:
SSL:
Mount a USB drive: (sd0 is used as an example)
$ doas mkdir /mnt/usb $ doas sysctl hw.disknames $ doas dmesg | grep sd0 $ doas disklabel sd0
$ doas mount /dev/sd0i /mnt/usb $ cd /mnt/usb $ ls -aFhl
$ doas umount /mnt/usb
Upon completion of the project, if there is an applicable collection of created code, place a copy of your finished code within <code> </code> blocks here.
/* * hello.c - A sample "Hello, World!" program * * written by NAME for COURSE on DATE * * compile with: * gcc -o hello hello.c * * execute with: * ./hello */ #include <stdio.h> int main() { printf("Hello, World!\n"); // Output message to STDOUT return(0); }
Again, if there is associated code with the project, and you haven't already indicated how to run it, provide a sample run of your code:
lab46:~/src/cprog$ ./hello Hello, World! lab46:~/src/cprog$
Comments/thoughts generated through performing the project, observations made, analysis rendered, conclusions wrought. What did you learn from doing this project?
In performing this project, the following resources were referenced: