This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:freebsd [2019/01/06 14:35] – oemb1905 | computing:freebsd [2019/01/14 02:18] (current) – 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 |
- | + | ||
- | #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 | + | |
- | #KDE, Gnome, MATE, etc. | + | |
- | + | ||
- | pkg install mate mate-desktop | + | |
- | + | ||
- | #Desktops require " | + | |
- | #Fluxbox, WindowMaker, | + | |
+ | 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 | ||
- | ------------------------------------------- | + | Add the following like below the last device (/dev): |
- | + | ||
- | # | + | |
- | + | ||
- | #Consider adjusting build release date for pkg | + | |
- | + | ||
- | nano / | + | |
- | + | ||
- | %Replace /latest with /release/0/ or whatever | + | |
- | + | ||
- | #If you do that, then run these to update the package manager to that version: | + | |
- | pkg upgrade | + | |
- | pkg update | + | |
- | + | ||
- | #nano / | + | |
- | #Add the following like below the last device (/dev): | + | |
+ | nano /etc/fstab | ||
proc /proc procfs rw 0 0 | proc /proc procfs rw 0 0 | ||
- | #Then, edit your rc.conf file: | + | Then, edit your rc.conf file: |
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 | ||
+ | nano / | ||
+ | exec start gnome3 | ||
- | ------------------------------------------- | + | Now, fine tune your user settings for your regular user. Edit / |
- | #Next up, changing wireless settings, adding keys, etc., etc. | + | su - root |
+ | cd /etc | ||
+ | nano group | ||
- | ------------------------------------------- | + | Once inside the editor nano, please edit the operator and wheel lines as follows: |
- | #Add to wheel and operator | + | |
+ | wheel: | ||
- | #edit /etc/group | + | Or, edit the group file directly from the command line: |
- | | + | |
- | | + | |
- | nano group | + | Or, alternately, |
- | #Once inside the editor | + | pkg install sudo |
+ | | ||
- | operator: | + | In that file that you just opened called sudoers, there is a line that reads "root ALL=(ALL) ALL." |
- | wheel:*: | + | |
- | #Or, edit the group file directly from the command line: | + | username ALL=(ALL) ALL |
+ | |||
+ | Close and save the file and reboot: | ||
- | | + | |
- | ------------------------------------------- | + | Basic updating: |
- | + | ||
- | #To update freeBSD from the command line: | + | |
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 | ||
freebsd-update install | freebsd-update install | ||
- | #After either updating or installing a new release: | + | After either updating or installing a new release: |
shutdown -r now | shutdown -r now | ||
- | #After restarting, run the update again to remove old shared libraries and objects | + | After restarting, run the update again to remove old shared libraries and objects |
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 164: | Line 125: | ||
make install clean | make install clean | ||
mv / | mv / | ||
+ | sudo chmod -R 755 / | ||
sudo chown -R www / | sudo chown -R www / | ||
sudo chown www / | sudo chown www / | ||
sudo chmod -R 775 / | sudo chmod -R 775 / | ||
sudo chmod -R 755 / | sudo chmod -R 755 / | ||
- | sudo chmod -R 755 / | + | sudo chown -R www / |
- | + | ||
Now, go to https:// | Now, go to https:// | ||
Line 190: | Line 152: | ||
sudo chown -R root / | sudo chown -R root / | ||
- | Reload the primary page, make a test submission. | + | Reload the primary page, make a test submission. |
- | chmod g+rwx / | + | chmod g+rwx / |
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. | ||
- | + | | |
- | + | | |
- | + | ||
- | --- // | + | Dokuwiki details their permission recommendations here: [[https:// |
+ | |||
+ | yourwiki> | ||
+ | yourwiki> | ||
+ | everything below the data directory: | ||
+ | yourwiki/ | ||
+ | yourwiki/ | ||
+ | |||
+ | This tutorial is a designated " | ||
+ | |||
+ | --- // |