This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:freebsd [2019/01/06 15:11] – oemb1905 | computing:freebsd [2019/01/14 02:18] (current) – oemb1905 | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ------------------------------------------- | ------------------------------------------- | ||
| - | When installing, make sure to include " | + | After installation, run: |
| / | / | ||
| - | With no internet, | + | With no internet, |
| cd / | cd / | ||
| Line 18: | Line 18: | ||
| make clean | make clean | ||
| - | If you have internet, but are running beneath 10.X and cannot bootstrap (above), then: | + | Update ports after you have internet: |
| portsnap fetch | portsnap fetch | ||
| - | |||
| - | Extract them into /usr/ports/ with the following | ||
| - | |||
| portsnap extract | portsnap extract | ||
| - | As of 10.X > freeBSD will automatically allow the native pkg manager to install ports. | + | As of 10.X > freeBSD will automatically allow the native pkg manager to install ports. |
| pkg install < | pkg install < | ||
| - | You may still, however, compile the package | + | And of course installing pkg from source |
| cd / | cd / | ||
| Line 36: | Line 33: | ||
| make clean | make clean | ||
| - | freeBSD has port managers, mostly that predate 10.X > freeBSD, but still help, such as: | + | freeBSD has other port managers |
| pkg install portmaster | pkg install portmaster | ||
| - | |||
| - | And, notably, portupgrade listed below relies on Ruby, similar to Homebrew: | ||
| - | |||
| pkg install portupgrade | pkg install portupgrade | ||
| - | ------------------------------------------- | + | You can set up a DE by installing |
| - | + | ||
| - | Ok, this is a good time to: | + | |
| - | + | ||
| - | reboot | + | |
| - | + | ||
| - | Then, probably get all your common packages: | + | |
| - | + | ||
| - | pkg install cmus | + | |
| - | pkg install irssi | + | |
| - | pkg install lynx | + | |
| - | pkg install nano | + | |
| - | pkg install libreoffice | + | |
| - | pkg install gimp | + | |
| - | pkg install firefox | + | |
| - | pkg install chromium | + | |
| - | pkg install alpine | + | |
| - | pkg install mutt | + | |
| - | pkg install < | + | |
| - | + | ||
| - | Once nano, xorg, & mate-desktop | + | |
| - | + | ||
| - | pkg install mate mate-desktop | + | |
| - | + | ||
| - | Desktops require " | + | |
| + | pkg install mate mate-desktop [or] | ||
| + | pkg install gnome3 [or] | ||
| + | pkg install xfce [or] | ||
| pkg install xorg | pkg install xorg | ||
| - | |||
| - | You will need a way to switch between desktops, and one convenient package is: | ||
| - | |||
| pkg install slim | pkg install slim | ||
| - | |||
| - | ------------------------------------------- | ||
| - | |||
| - | Technically, | ||
| - | |||
| - | nano / | ||
| - | |||
| - | Replace /latest with /release/0/ or whatever. | ||
| - | |||
| - | pkg upgrade | ||
| - | pkg update | ||
| Add the following like below the last device (/dev): | Add the following like below the last device (/dev): | ||
| Line 96: | Line 55: | ||
| dbus_enable=" | dbus_enable=" | ||
| hald_enable=" | hald_enable=" | ||
| - | mate_enable=" | + | mate_enable=" |
| + | xfce_enable=" | ||
| + | gnome3_enable=" | ||
| slim_enable=" | slim_enable=" | ||
| - | Or, add other desktops, ifconfigs, etc., such as: | + | Add .xinitrc to ~ and /root, enter the syntax listed below the nano commands. |
| - | | + | |
| - | + | exec start gnome3 | |
| - | Add .xinitrc | + | nano / |
| - | + | ||
| - | nano ~/.xinitrc | + | |
| exec start gnome3 | exec start gnome3 | ||
| - | | ||
| - | ------------------------------------------- | ||
| - | Next up, changing wireless | + | Now, fine tune your user settings |
| - | ------------------------------------------- | + | su - root |
| - | + | ||
| - | Add to wheel and operator groups | + | |
| - | + | ||
| - | Edit /etc/group | + | |
| - | + | ||
| - | login root | + | |
| cd /etc | cd /etc | ||
| nano group | nano group | ||
| Line 124: | Line 75: | ||
| Once inside the editor nano, please edit the operator and wheel lines as follows: | Once inside the editor nano, please edit the operator and wheel lines as follows: | ||
| - | operator: | + | operator: |
| - | wheel: | + | wheel: |
| Or, edit the group file directly from the command line: | Or, edit the group file directly from the command line: | ||
| pw group mod < | pw group mod < | ||
| + | | ||
| + | Or, alternately, | ||
| - | ------------------------------------------- | + | pkg install sudo |
| + | nano / | ||
| - | To update freeBSD from the command | + | 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 fetch | ||
| freebsd-update install | freebsd-update install | ||
| - | To upgrade to a specific distribution, | + | To upgrade to a new major release: |
| freebsd-update -r 9.1-RELEASE upgrade | freebsd-update -r 9.1-RELEASE upgrade | ||
| Line 150: | Line 112: | ||
| freebsd-update install | 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.) | Setting up dokuwiki on freeBSD and securing data directory (required on BSD). (Only making BSD specific permission changes at present.) | ||
| Line 189: | Line 157: | ||
| chmod -R 775 / | chmod -R 775 / | ||
| chown -R www / | chown -R www / | ||
| - | chmod 2775 / | + | chmod -R 2775 / |
| - | chown www / | + | chown -R www / |
| | | ||
| Probably a good idea to restart php, nginx. | Probably a good idea to restart php, nginx. | ||
| Line 196: | Line 164: | ||
| service nginx restart | service nginx restart | ||
| service php-fpm 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 " | ||
| + | |||
| + | --- // | ||