This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| computing:freebsd [2016/04/24 04:33] – created oemb1905 | computing:freebsd [2019/01/14 02:18] (current) – oemb1905 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ssds | + | ------------------------------------------- | 
| + | * **freeBSD** | ||
| + | * **Jonathan Haack** | ||
| + | * **Haack' | ||
| + | * **netcmnd@jonathanhaack.com** | ||
| + | |||
| + | ------------------------------------------- | ||
| + | |||
| + | After installation, | ||
| + | |||
| + | / | ||
| + | |||
| + | With no internet, you must build from source (if you even still want it): | ||
| + | |||
| + | cd / | ||
| + | make | ||
| + | make install | ||
| + | make clean | ||
| + | |||
| + | Update ports after you have internet: | ||
| + | |||
| + | portsnap fetch | ||
| + | portsnap extract | ||
| + | |||
| + | As of 10.X > freeBSD will automatically allow the native pkg manager to install ports. | ||
| + | |||
| + | pkg install < | ||
| + | |||
| + | 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. | ||
| + | |||
| + | cd / | ||
| + | make install | ||
| + | make clean | ||
| + | |||
| + | freeBSD has other port managers besides portsnap | ||
| + | |||
| + | pkg install portmaster | ||
| + | pkg install portupgrade | ||
| + | |||
| + | You can set up a DE by installing nano, xorg, & mate-desktop, | ||
| + | |||
| + | pkg install mate mate-desktop [or] | ||
| + | pkg install gnome3 [or] | ||
| + | pkg install xfce [or] | ||
| + | pkg install xorg | ||
| + | pkg install slim | ||
| + | |||
| + | Add the following like below the last device (/dev): | ||
| + | |||
| + | nano / | ||
| + | proc /proc procfs rw 0 0 | ||
| + | |||
| + | Then, edit your rc.conf file: | ||
| + | |||
| + | dbus_enable=" | ||
| + | hald_enable=" | ||
| + | mate_enable=" | ||
| + | xfce_enable=" | ||
| + | gnome3_enable=" | ||
| + | slim_enable=" | ||
| + | |||
| + | Add .xinitrc to ~ and /root, enter the syntax listed below the nano commands. | ||
| + | |||
| + | nano / | ||
| + | exec start gnome3 | ||
| + | nano / | ||
| + | exec start gnome3 | ||
| + | |||
| + | Now, fine tune your user settings for your regular user. Edit /etc/group | ||
| + | |||
| + | su - root | ||
| + | cd /etc | ||
| + | nano group | ||
| + | |||
| + | Once inside the editor nano, please edit the operator and wheel lines as follows: | ||
| + | |||
| + | operator: | ||
| + | wheel: | ||
| + | |||
| + | Or, edit the group file directly from the command line: | ||
| + | |||
| + | pw group mod < | ||
| + | |||
| + | Or, alternately, | ||
| + | |||
| + | pkg install sudo | ||
| + | nano / | ||
| + | |||
| + | In that file that you just opened called sudoers, there is a line that reads "root ALL=(ALL) ALL." | ||
| + | |||
| + | username ALL=(ALL) ALL | ||
| + | |||
| + | Close and save the file and reboot: | ||
| + | |||
| + | reboot | ||
| + | |||
| + | Basic updating: | ||
| + | |||
| + | freebsd-update fetch | ||
| + | freebsd-update install | ||
| + | |||
| + | To upgrade to a new major release: | ||
| + | |||
| + | freebsd-update -r 9.1-RELEASE upgrade | ||
| + | freebsd-update install | ||
| + | |||
| + | After either updating or installing a new release: | ||
| + | |||
| + | shutdown -r now | ||
| + | |||
| + | After restarting, run the update again to remove old shared libraries and objects | ||
| + | |||
| + | freebsd-update install | ||
| + | |||
| + | -- FEMP Stack on BSD -- | ||
| + | |||
| + | |||
| + | |||
| + | -- Dokuwiki on BSD-- | ||
| + | |||
| + | Setting up dokuwiki on freeBSD and securing data directory (required on BSD). (Only making BSD specific permission changes at present.) | ||
| + | |||
| + | su - root | ||
| + | cd / | ||
| + | make install clean | ||
| + | mv / | ||
| + | sudo chmod -R 755 / | ||
| + | sudo chown -R www / | ||
| + | sudo chown www / | ||
| + | sudo chmod -R 775 / | ||
| + | sudo chmod -R 755 / | ||
| + | sudo chown -R www / | ||
| + | |||
| + | Now, go to https:// | ||
| + | |||
| + | mv / | ||
| + | cd / | ||
| + | nano local.php | ||
| + | |||
| + | Ok, inside the .php main configuration file for dokuwiki that you just opened, add the following line below that others that specify other global parameters. | ||
| + | |||
| + | $conf[' | ||
| + | |||
| + | When you moved the data directory it likely lost its permissions from the above changes. | ||
| + | |||
| + | sudo chmod -R 775 / | ||
| + | sudo chown www -R / | ||
| + | |||
| + | Remove the original data directory and restore root as owner of the main configuration directory. | ||
| + | |||
| + | sudo rm -r / | ||
| + | sudo chown -R root / | ||
| + | |||
| + | Reload the primary page, make a test submission. | ||
| + | |||
| + | chmod g+rwx / | ||
| + | chmod -R 775 / | ||
| + | chown -R www / | ||
| + | chmod -R 2775 / | ||
| + | chown -R www / | ||
| + | |||
| + | Probably a good idea to restart php, nginx. | ||
| + | |||
| + | service nginx restart | ||
| + | service php-fpm restart | ||
| + | |||
| + | Dokuwiki details their permission recommendations here:  [[https:// | ||
| + | |||
| + | yourwiki> | ||
| + | yourwiki> | ||
| + | everything below the data directory: | ||
| + | yourwiki/ | ||
| + | yourwiki/ | ||
| + | |||
| + | This tutorial is a designated " | ||
| + | |||
| + | --- // | ||