This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
computing:freebsd [2018/11/25 01:32] – external edit 127.0.0.1 | computing:freebsd [2019/01/08 14:55] – oemb1905 | ||
---|---|---|---|
Line 7: | Line 7: | ||
------------------------------------------- | ------------------------------------------- | ||
- | #When installing, make sure to include " | + | After installation, run: |
- | #After succesful install, run these commands first to get the ports installed | + | |
- | + | ||
- | #If you did not do this, then for 10.X > freeBSD, bootstrap the entire system: | + | |
/ | / | ||
- | #With no internet, | + | With no internet, |
cd / | cd / | ||
Line 21: | Line 18: | ||
make clean | make clean | ||
- | + | Update ports after you have internet: | |
- | + | ||
- | #If you have internet, but are running beneath 10.X and cannot bootstrap (above), then: | + | |
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. |
- | #This allows the user to avoid compiling from source and navigating to directories, | + | |
pkg install < | pkg install < | ||
- | #You may still, however, compile the package | + | And of course installing pkg from source |
- | #Just like the non-internet step installation | + | |
cd / | cd / | ||
Line 43: | 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 nano, xorg, & mate-desktop, xfce, gnome3, kde, etc., and an appropriate window manager and window server. |
- | #Ok, this is a good time to: | + | pkg install mate mate-desktop [or] |
+ | pkg install gnome3 [or] | ||
+ | pkg install xfce [or] | ||
+ | pkg install xorg | ||
+ | pkg install slim | ||
- | reboot | + | Add the following like below the last device (/dev): |
- | #Then, probably get all your common packages: | + | nano / |
+ | proc /proc procfs rw 0 0 | ||
- | pkg install cmus | + | Then, edit your rc.conf file: |
- | 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 are installed, set-up a "desktop" | + | dbus_enable="YES" |
- | #KDE, Gnome, MATE, etc. Tap F1 at the log-in screen to toggle between | + | |
+ | mate_enable=" | ||
+ | xfce_enable=" | ||
+ | gnome3_enable=" | ||
+ | slim_enable=" | ||
- | pkg install mate mate-desktop | + | Add .xinitrc to ~ and /root, enter the syntax listed below the nano commands. |
- | #Desktops require " | + | nano / |
- | #Fluxbox, WindowMaker, | + | exec start gnome3 |
+ | nano / | ||
+ | exec start gnome3 | ||
- | pkg install xorg | + | Now, fine tune your user settings for your regular user. Edit / |
- | #You will need a way to switch between desktops, and one convenient package is: | + | su - root |
+ | cd /etc | ||
+ | nano group | ||
- | pkg install slim | + | 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: |
- | #Consider adjusting build release date for pkg | + | pw group mod < |
+ | |||
+ | Or, alternately, | ||
- | nano /etc/pkg/FreeBSD.conf | + | |
+ | | ||
- | %Replace /latest with /release/0/ or whatever | + | In that file that you just opened called sudoers, there is a line that reads "root ALL=(ALL) ALL." |
- | #If you do that, then run these to update the package manager to that version: | + | username ALL=(ALL) ALL |
- | | + | |
- | pkg update | + | Close and save the file and reboot: |
- | #nano / | + | reboot |
- | #Add the following like below the last device (/dev): | + | |
- | proc /proc procfs rw 0 0 | + | Basic updating: |
- | #Then, edit your rc.conf file: | + | freebsd-update fetch |
+ | freebsd-update install | ||
- | dbus_enable=" | + | To upgrade to a new major release: |
- | hald_enable=" | + | |
- | mate_enable=" | + | |
- | slim_enable=" | + | |
- | #Or, add other desktops, ifconfigs, etc., such as: | + | freebsd-update -r 9.1-RELEASE upgrade |
+ | freebsd-update install | ||
- | kdm4_enable=" | + | After either updating or installing a new release: |
- | ------------------------------------------- | + | shutdown |
- | #Next up, changing wireless settings, adding keys, etc., etc. | + | After restarting, run the update again to remove old shared libraries and objects |
- | ------------------------------------------- | + | freebsd-update install |
+ | |||
+ | -- FEMP Stack on BSD -- | ||
- | #Add to wheel and operator groups | ||
- | #edit / | + | |
+ | -- Dokuwiki on BSD-- | ||
+ | |||
+ | Setting up dokuwiki on freeBSD and securing data directory (required on BSD). (Only making BSD specific permission changes at present.) | ||
- | | + | |
- | cd /etc | + | cd /usr/ |
- | | + | |
+ | 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:// | ||
- | #Once inside the editor | + | mv / |
+ | cd / | ||
+ | | ||
- | operator: | + | 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. |
- | wheel: | + | |
- | #Or, edit the group file directly | + | $conf[' |
+ | |||
+ | When you moved the data directory it likely lost its permissions | ||
- | | + | |
+ | 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 / | ||
- | #To update freeBSD | + | Reload the primary page, make a test submission. |
- | | + | |
- | | + | chmod -R 775 / |
+ | | ||
+ | chmod -R 2775 / | ||
+ | chown -R www / | ||
+ | |||
+ | Probably a good idea to restart php, nginx. | ||
- | #To upgrade to a specific distribution, | + | service nginx restart |
+ | service php-fpm restart | ||
- | freebsd-update -r 9.1-RELEASE upgrade | + | Dokuwiki details their permission recommendations here: [[https:// |
- | freebsd-update | + | |
- | #After either updating or installing a new release: | + | yourwiki> |
+ | yourwiki> | ||
+ | everything below the data directory: | ||
+ | yourwiki/ | ||
+ | yourwiki/ | ||
- | shutdown -r now | ||
- | #After restarting, run the update again to remove old shared libraries and objects | + | --- // |
- | + | ||
- | freebsd-update install | + | |
- | + | ||
- | --- // | + |