FreeBSD Base Tools
From XOMBO Documentation
You must be running as the super-user when performing these tasks (you'll be able to similarly accomplish them with the sudo command, after it's installed). This will install several packages that you will find useful during the remainder of the installation. Keep in mind that this process downloads the source and then compiles the application into a binary, therefore it may take quite some time to complete. It's recommended that you install them in the order, here:
Contents |
screen
cd /usr/ports/sysutils/screen make install clean
Accept the default configuration provided by the menu. Since this is the first ports package you've installed, you need to exit the "su" command and then start the super-user session again so that /usr/local/bin is added to your PATHS.
exit su
Enter the super-user password again. Subsequent builds, below, should then be ran within the screen command to ensure that SSH session termination does not interrupt the build process. Start screen with the following command:
screen
A short message appears. Press any key to dismiss it. You can then run the following installations just as you would from a native terminal window without fear of losing your progress if the connection fails or the window is closed accidentally.
In the event that you lose your SSH session, you can login again, escalate your permissions with "su" and then launch screen with the following command flag to resume the most recent session:
screen -R
nano
From screen, as the super-user:
cd /usr/ports/editors/nano make install clean ln -s /usr/local/bin/nano /usr/local/bin/pico
Use the default configuration provided by the menu.
sudo
From screen, as the super-user:
cd /usr/ports/security/sudo make install clean
Use the default configuration provided by the menu. Add your user account to the sudoers list:
cd /usr/local/etc nano sudoers
Uncomment the following line by removing the # symbol which proceeds it:
%wheel ALL=(ALL) NOPASSWD: ALL
You can now escalate your privileges from your user account for running a particular task by prepending it with sudo. You'll see an example of such use when you compile Subversion, below.
If you have trouble using sudo, first try logging out and then back in. If you continue to have problems, check to ensure that your account was added to the wheel group at install time by issuing the following command from your user account:
groups
subversion
From screen:
cd /usr/ports/devel/subversion-freebsd sudo make install clean
Since you prepended the command with sudo you can accomplish this from your user account, without first using su to escalate to the super-user.
Make sure only DB9 and NEON support are checked in the first menu. Accept the defaults on the second and third menu that appear shortly into the compile. Accept the defaults for the Perl & Python dependency installations. Accept the defaults on the subsequent menu after Perl and Python are installed.


