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 revision Previous revision
user:nbrimme1:portfolio:unixproject2 [2016/11/03 01:34]
nbrimme1 [Code] Topic Change.
user:nbrimme1:portfolio:unixproject2 [2016/11/03 02:00] (current)
nbrimme1 [Additional Steps] Initial entry entered.
Line 73: Line 73:
     * Save and exit.     * Save and exit.
     * # reboot     * # reboot
-=====Additional Steps=====+===== 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.txt · Last modified: 2016/11/03 02:00 by nbrimme1