User Tools

Site Tools


user:nbrimme1:portfolio:unixproject2

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user:nbrimme1:portfolio:unixproject2 [2016/11/03 05:31] – [Procedure] First version entered. nbrimme1user:nbrimme1:portfolio:unixproject2 [2016/11/03 06:00] (current) – [Additional Steps] Initial entry entered. nbrimme1
Line 15: Line 15:
  
 =====Attributes===== =====Attributes=====
 +  * **Create a //ppp// directory**: //ppp// stands for //Patches//, //Ports//, and //Packages//. Whenever a patch, port, or package is installed, I find it useful to pipe the output to **tee** and place it in this directory. If something went wrong when installing a package, I can check the text file for any warnings or errors. Also, If I am not sure if a particular patch is installed, I can just look in this directory.
  
 =====Procedure===== =====Procedure=====
 After installation, there are some things that need to be configured before it can be used. Items prefixed with a **$** can be executed as the **user** and items prefixed with a **#** must be executed as **root**. Some configuration options must be done for **both** the normal user and the root user: After installation, there are some things that need to be configured before it can be used. Items prefixed with a **$** can be executed as the **user** and items prefixed with a **#** must be executed as **root**. Some configuration options must be done for **both** the normal user and the root user:
-  * **Create a //ppp// directory**: //ppp// stands for //Patches//, //Ports//, and //Packages//. Whenever a patch, port, or package is installed, I find it useful to pipe the output to **tee** and place it in this directory. If something went wrong when installing a package, I can check the text file for any warnings or errors. Also, If I am not sure if a particular patch is installed, I can just look in this directory. 
   * **Update the firmware**:   * **Update the firmware**:
     * # fw_update | tee ~/ppp/fw_update.txt     * # fw_update | tee ~/ppp/fw_update.txt
Line 74: Line 73:
     * Save and exit.     * Save and exit.
     * # reboot     * # reboot
-=====Code=====+===== Additional Steps ===== 
 +==== Install and set bash as the login shell: ==== 
 +  * # CHANGE TO DOAS 
 +  * # pkg_add -ivvv bash | tee /home/user/ppp/bash.txt 
 +  * # chsh -s /usr/local/bin/bash         (for the //root// user.) 
 +  * # chsh -s /usr/local/bin/bash user    (for the //user// user.) 
 +  * # exit 
 + 
 +==== Patching: ==== 
 +  * # cd /tmp 
 +  * # wget .../src.tar.gz 
 +  * # wget .../sys.tar.gz 
 +  * # cd /usr/src 
 +  * # tar xvfz /tmp/src.tar.gz 
 +  * # tar xvfz /tmp/sys.tar.gz 
 +  * # cd /tmp 
 +  * # rm src.tar.gz && sys.tar.gz 
 +  * # wget .../*.patch.sig 
 +  * # signify -Vep /etc/signify/openbsd-##-*.pub -x ###.patch.sig \<enter> 
 +  * > -m - | (cd /usr/src && patch -p0) 
 +  * **To recompile the patched software:** 
 +    * # cd <dir> 
 +    * # make obj 
 +    * # make depend 
 +    * # make 
 +    * # make install 
 +  * **To recompile a patched kernel:** 
 +    * # cd /usr/src/sys/arch/`machine`/conf 
 +    * # KK=`sysctl -n kern.osversion | cut -d# -f1` 
 +    * # config $KK 
 +    * # cd ../compile/$KK 
 +    * # make 
 +    * # make install 
 + 
 +==== Installing Packages: ==== 
 +  * # CHANGE TO DOAS 
 +  * # pkg_add -ivvv <package_name> | tee package_name.txt 
 + 
 +==== List installed Packages: ==== 
 +  * # pkg_info 
 +  * # pkg_info | grep "package_name"
  
 +==== Update installed Packages: ====
 +  * # pkg_add
 +  * # pkg_add -u
 +  * # pkg_add -u <package_name>
  
 +==== Useful Packages: ====
 +  * **clamav**
 +  * **dnscrypt-proxy**
 +  * **gnupg**
 +  * **gnupg2**
 +  * **opendnssec**
 +  * **tree**
 =====Execution===== =====Execution=====
  
user/nbrimme1/portfolio/unixproject2.1478151097.txt.gz · Last modified: 2016/11/03 05:31 by nbrimme1