User Tools

Site Tools


computing:freebsd

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
computing:freebsd [2019/01/06 19:06] oemb1905computing:freebsd [2019/01/14 02:18] (current) oemb1905
Line 11: Line 11:
   /usr/sbin/pkg   /usr/sbin/pkg
  
-With no internet, obtain the ports and migrate by disc to host, then:+With no internet, you must build from source (if you even still want it):
  
   cd /usr/ports/ports-mgmt/pkg   cd /usr/ports/ports-mgmt/pkg
Line 18: Line 18:
   make clean   make clean
  
-Update ports after you have internet+Update ports after you have internet:
  
   portsnap fetch   portsnap fetch
   portsnap extract   portsnap extract
  
-As of 10.X > freeBSD will automatically allow the native pkg manager to install ports.  This allows the user to avoid compiling from source and navigating to directories, e.g.:+As of 10.X > freeBSD will automatically allow the native pkg manager to install ports.  This allows the user to avoid compiling from source and navigating to directories.  Thereforethere is now a reason to build pkg from source - it will do this work for you more effectively (So what?  You can now search ports and geek out, and then use those names with pkg and sit back while it does the work!)
  
   pkg install <pkgname>   pkg install <pkgname>
  
-You may still, however, compile the packaer from source//.  Just like the non-internet step installation of pkg requires above:+And of course installing pkg from source is but one example of the whole ports system, which is a set of binaries ready to compile.  They are sorted by intuitive names in the directory below, and it is wise to look around and then switch back to pkg, or if you know what you are doing, build from source as follows:
  
   cd /usr/ports/<pkgname>   cd /usr/ports/<pkgname>
Line 114: Line 114:
      
 -- FEMP Stack on BSD -- -- FEMP Stack on BSD --
 +
  
      
Line 156: Line 157:
   chmod -R 775 /usr/local/www/data   chmod -R 775 /usr/local/www/data
   chown -R www /usr/local/www/data   chown -R www /usr/local/www/data
-  chmod 2775 /usr/local/www/data/attic /usr/local/www/data/cache /usr/local/www/data/index /usr/local/www/data/locks /usr/local/www/data/media /usr/local/www/data/meta /usr/local/www/data/pages /usr/local/www/data/tmp +  chmod -R 2775 /usr/local/www/data/attic /usr/local/www/data/cache /usr/local/www/data/index /usr/local/www/data/locks /usr/local/www/data/media /usr/local/www/data/meta /usr/local/www/data/pages /usr/local/www/data/tmp 
-  chown www /usr/local/www/data/attic /usr/local/www/data/cache /usr/local/www/data/index /usr/local/www/data/locks /usr/local/www/data/media /usr/local/www/data/meta /usr/local/www/data/pages /usr/local/www/data/tmp+  chown -R www /usr/local/www/data/attic /usr/local/www/data/cache /usr/local/www/data/index /usr/local/www/data/locks /usr/local/www/data/media /usr/local/www/data/meta /usr/local/www/data/pages /usr/local/www/data/tmp
      
 Probably a good idea to restart php, nginx. Probably a good idea to restart php, nginx.
Line 163: Line 164:
   service nginx restart   service nginx restart
   service php-fpm restart   service php-fpm restart
-    + 
-   +Dokuwiki details their permission recommendations here:  [[https://www.dokuwiki.org/install:permissions|Install Permissions]].  The page is a bit complicated so the above is a simpler (but longer in syntax) version of the whole page, including the partial synopsis they put at the end, which I reprint below. 
- --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2017/05/16 04:06//+ 
 +  yourwiki> chmod -R 775 data/ 
 +  yourwiki> chown -R www-data:foo data/ 
 +  everything below the data directory: 
 +  yourwiki/data> chmod 2775 {attic,cache,index,locks,media,meta,pages,tmp} 
 +  yourwiki/data> chown www-data:foo {attic,cache,index,locks,media,meta,pages,tmp} 
 + 
 +This tutorial is a designated "Invariant Section" of the "Technotronic" section of Haack's Wiki as described on the [[https://jonathanhaack.com/dokuwiki/doku.php?id=start|Start Page]]. 
 + 
 + --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2019/01/06 20:00//
computing/freebsd.1546801578.txt.gz · Last modified: 2019/01/06 19:06 by oemb1905