User Tools

Site Tools


vps_-_freebsd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vps_-_freebsd [2023/09/12 04:51] – created hc9vps_-_freebsd [2024/04/10 03:55] (current) – [Package Management] {AB hc9
Line 60: Line 60:
  
 FreeBSD uses ''pkg'' as a package manager. It can be initialized by running ''pkg bootstrap -f''. FreeBSD uses ''pkg'' as a package manager. It can be initialized by running ''pkg bootstrap -f''.
 +
 +''pkg'' will use the “quarterly” repository by default. If you would like to use the “latest” repository do the following:
 +
 +<code>
 +
 +  $ cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf
 +
 +  # In /usr/local/etc/pkg/repos/FreeBSD.conf change the source of 
 +  # the repository
 +
 +  FreeBSD: {
 +  ...
 +    url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
 +  ...
 +  }
 +
 +  # Update all
 +
 +  $ pkg update -f
 +
 +</code>
  
 ===== System Time ===== ===== System Time =====
Line 76: Line 97:
  
   $ pkg install ca_root_nss           # Make sure certs are up to date.   $ pkg install ca_root_nss           # Make sure certs are up to date.
-  $ service ntpd fetch                # Update the leapseconds file. 
-  $ ntpd -gq                          # Force an update of the system time. 
   $ sysrc ntpd_enable="YES"           # Enable the ntpd service.   $ sysrc ntpd_enable="YES"           # Enable the ntpd service.
   $ sysrc ntpd_sync_on_start="YES"    # Set ntpd to sync during boot.   $ sysrc ntpd_sync_on_start="YES"    # Set ntpd to sync during boot.
 +  $ service ntpd fetch                # Update the leapseconds file.
 +  $ ntpd -gq                          # Force an update of the system time.
   $ service ntpd start                # Start the service.   $ service ntpd start                # Start the service.
  
 </file> </file>
 +
 +If ''ntpd'' fails to start with a warning about unknown users or groups run ''/usr/sbin/pwd_mkdb -p /etc/master.passwd'' and then retry the previous command.
  
 ===== System Update ===== ===== System Update =====
  
-The initial FreeBSD image is version 12.1 which is reaching EOL. To upgrade to a newer version run:+The initial FreeBSD image is version 14.0. To upgrade to a newer version run:
  
 <code> <code>
  
-  $ freebsd-update -r 13.2-RELEASE upgrade+  $ freebsd-update -r RELEASE_NAME upgrade
  
   # This process will take a while, be patient. Answer "yes" to any prompts.   # This process will take a while, be patient. Answer "yes" to any prompts.
Line 151: Line 174:
 ==== SSH Public Key Authentication ==== ==== SSH Public Key Authentication ====
  
-Follow [[:using_ssh_for_connections_transfer_to_from_sdf|these instructions]] to create and add a public SSH key((The basic concepts of [[:ssh_public_key_authentication|SSH Public Key Authentication]].)) to your FreeBSD install. Once done and confirmed working you may disable password based SSH-login by setting ''UsePasswordAuthentication no'' in ''/etc/ssh/sshd_config''.+Follow [[using_ssh_for_connections_transfer_to_from_sdf|these instructions]] to create and add a public SSH key((The basic concepts of [[ssh_public_key_authentication|SSH Public Key Authentication]].)) to your FreeBSD install. Once done and confirmed working you may disable password based SSH-login by setting ''UsePasswordAuthentication no'' in ''/etc/ssh/sshd_config''.
  
 ---- ----
vps_-_freebsd.1694494277.txt.gz · Last modified: 2023/09/12 04:51 by hc9