This shows you the differences between two versions of the page.
freebsd [2016/04/21 05:04] – created oemb1905 | freebsd [2016/04/24 04:37] (current) – removed oemb1905 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | #freeBSD Basics | ||
- | #Jonathan Haack | ||
- | # | ||
- | # | ||
- | |||
- | ------------------------------------------- | ||
- | |||
- | #When installing, make sure to include " | ||
- | #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, obtain the ports and migrate by disc to host, then: | ||
- | |||
- | cd / | ||
- | make | ||
- | make install | ||
- | make clean | ||
- | |||
- | |||
- | |||
- | #If you have internet, but are running beneath 10.X and cannot bootstrap (above), then: | ||
- | |||
- | portsnap fetch | ||
- | |||
- | #Extract them into /usr/ports/ with the following | ||
- | |||
- | 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, | ||
- | |||
- | pkg install < | ||
- | |||
- | #You may still, however, compile the package from source | ||
- | #Just like the non-internet step installation of pkg requires above: | ||
- | |||
- | cd / | ||
- | make install | ||
- | make clean | ||
- | |||
- | #freeBSD has port managers, mostly that predate 10.X > freeBSD, but still help, such as: | ||
- | |||
- | pkg install portmaster | ||
- | |||
- | #And, notably, portupgrade listed below relies on Ruby, similar to Homebrew: | ||
- | |||
- | pkg install portupgrade | ||
- | |||
- | ------------------------------------------- | ||
- | |||
- | #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 are installed, set-up a " | ||
- | #KDE, Gnome, MATE, etc. Tap F1 at the log-in screen to toggle between | ||
- | |||
- | pkg install mate mate-desktop | ||
- | |||
- | #Desktops require " | ||
- | #Fluxbox, WindowMaker, | ||
- | |||
- | pkg install xorg | ||
- | |||
- | #You will need a way to switch between desktops, and one convenient package is: | ||
- | |||
- | pkg install slim | ||
- | |||
- | ------------------------------------------- | ||
- | |||
- | # | ||
- | |||
- | #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 /etc/fstab | ||
- | #Add the following like below the last device (/dev): | ||
- | |||
- | proc /proc procfs rw 0 0 | ||
- | |||
- | #Then, edit your rc.conf file: | ||
- | |||
- | dbus_enable=" | ||
- | hald_enable=" | ||
- | mate_enable=" | ||
- | slim_enable=" | ||
- | |||
- | #Or, add other desktops, ifconfigs, etc., such as: | ||
- | |||
- | kdm4_enable=" | ||
- | |||
- | ------------------------------------------- | ||
- | |||
- | #Next up, changing wireless settings, adding keys, etc., etc. | ||
- | |||
- | ------------------------------------------- | ||
- | |||
- | #Add to wheel and operator groups | ||
- | |||
- | #edit / | ||
- | |||
- | login 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 < | ||
- | |||
- | ------------------------------------------- | ||
- | |||
- | #To update freeBSD from the command line: | ||
- | |||
- | freebsd-update fetch | ||
- | freebsd-update install | ||
- | |||
- | #To upgrade to a specific distribution, | ||
- | |||
- | 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 | ||
- | |||
- | ------------------------------------------- | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||