Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

FreeBSD13.2 ; Initial setting (Update binaries, Packages and Ports Collection)

After installing FreeBSD, we will start building the server, but it is difficult to work on the console screen, so we will change the SSH connection settings for now in order to operate the server from Windows using TeraTerm or other software.
Enter the following command on the FreeBSD console screen
# vi /etc/ssh/sshd_config
Line 61.
#PasswordAuthentication no → PasswordAuthentication yes Make the changes and reflect the settings with the following command
# service sshd restart
Now you can connect via SSH from TeraTerm on Windows (see the default settings for other operating systems for settings in TeraTerm).

1. Binary Update

Display of kernel and other version information

Get all available binary updates (security updates)

Install updates or upgrades

Restart the server to boot with the installed image

Check for updated version

2. Update Packages and Ports Collection

2.1 Package system (pkgng) first run configuration

①Initial run configuration

➁confirmation
OK when the list of installed packages appears.

2.2 Update Packages

PACKAGES can use the pkg command to install applications without requiring compilation. However, packages alone cannot install all applications. Dependencies can get in the way and cause necessary applications to be removed.

2.3 Ports Collection Install

Download and update the ports collection using portsnap included with FreeBSD.

①download and deploy the ports collection

➁Port Collection Installation
If you did not install ports during the OS installation, proceed as is.
If you have installed ports, please remove the Ports Collection already installed before proceeding if you intend to use git in the future.

➂When installing pkg with Ports Collection
If make stopped --- make deinstall →make reinstall

2.4 Ports Collection Update

①How to use portsnap

➁Port upgrade using portmaster
Find a portmaster

Installing portmaster

Search for updates

Bulk update using portmaster
portmaster creates a backup package before deleting an existing port.
If the new version is successfully installed, Portmaster will delete the backup.

Examples of typical options
-b : Portmaster will not automatically delete backups
-i : Start Portmaster in interactive mode and ask for confirmation before upgrading each port

If an error occurs during the upgrade, add -f to upgrade and rebuild all ports

➁Port upgrade using Portupgrade

Install portupgrade

Scan the list of installed ports and correct any inconsistencies

Upgrade all old ports installed in the system

When upgrading while asking for confirmation of individual upgrades

タイトルとURLをコピーしました