nuy

FreeBSD14.1_en

FreeBSD14.1 ; Initial setup (Vim , SSH , firewall, NTP server)

1. Vim InstallInstall Vim, which you are familiar with as an editor, as follows# pkg install -y vimEdit the ".shrc" to make Vim available as the standard editor, and log in again to reflect the change.FreeBSD14 has sh as default shell.You can check the current SHELL with the following command
FreeBSD14.1_en

FreeBSD14.1 ; FTP Server , Samba Fileserver

1. FTP Server(Vsftpd)1.1 advance preparation①Private Key Cre...
FreeBSD14_en

FreeBSD14 ; Mail Server(Postfix,Dovecot) , SSL/TLS

1. Obtaining a certificate for the mail serverObtain a certificate for the mail server to convert the mail server to SSL/TLS.Use the certbot that was used when the web server was converted to SSL.Stop the web server and execute the following command
FreeBSD14_en

FreeBSD14 ; WEB Server(Apache2) , MySQL8

1. Apache21.1 Install# cd /usr/ports/www/apache24# make configThere are many options, but we will proceed wit1. Apache21.1 Install# cd /usr/ports/www/apache24# make configThere are many options, but we will proceed wit
FreeBSD14_en

FreeBSD14 ; FTP Server , Samba Fileserver

1. FTP Server(Vsftpd)1.1 advance preparation①Private Key Creation# cd /etc/ssl# openssl genrsa -des3 -out server.key 2048Generating RSA private key, 2048 bit long modulus (2 primes).........................................................................................................................................+++++.................................................+++++e is 65537 (0x010001)Enter pass phrase for server.key:Verifying - Enter pass phrase for server.key:Enter PEM pass phrase:Verifying - Enter PEM pass phrase:
FreeBSD14_en

FreeBSD14 ; Initial setup (Vim , SSH , firewall, NTP server)

1. Vim InstallInstall Vim, which you are familiar with as an editor, as follows# pkg install -y vimEdit the ".shrc" to make Vim available as the standard editor, and log in again to reflect the change.FreeBSD14 has sh as default shell.You can check the current SHELL with the following command
FreeBSD14_en

FreeBSD14 ; Initial setting (Update binaries, Packages and Ports Collection)

First do the followingAfter 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_configLine 61.#PasswordAuthentication no → PasswordAuthentication yes Make the changes and reflect the settings with the following command# service sshd restartNow you can connect via SSH from TeraTerm on Windows (see the default settings for other operating systems for settings in TeraTerm).
FreeBSD14_en

FreeBSD14.0 ; OS INSTALL

FreeBSDFreeBSD is UNIX-like open source OS software. In particular, its performance as a network operating system exceeds that of Linux-based systems, and it maintains stable performance even under high loads.FreeBSD is designed to be robust and sturdy with an emphasis on practicality, making it suitable for operating FTP, WWW, and e-mail servers for major companies and services.In this project, we will install FreeBSD 14.0, released on Nov 14, 2023, and build the server.FeaturesHigh-speed, high-performance multi-platform capable of withstanding high workloadsAdopted by many major companiesNetwork security measures can be applied by restricting accessCapable of operating small to large serversMore than 33,000 dedicated software applications from commercial to personal use
OracleLinux9.3_en

OracleLinux9.3 ; OS Install

OracleLinux9.3Oracle Linux provides a 100% application binary compatible alternative to Red Hat Enterprise Linux and  CentOS Linux for both hybrid and multi-cloud environments.Since 2006, Oracle Linux has been completely free to download and use. Source code, binaries and updates are provided free of charge. It is freely redistributable. Free for use in production environments.This time, we will proceed with the latest Oracle Linux 9.3.(November 15, 2023 Release)1.Oracle Linux9.3 DownloadOracle Linux 9.3 installation image (OracleLinux-R9-U3-x86_64-dvd.iso ) can be downloaded from the following sitehttps://www.oracle.com/linux/
Archlinux_en

ArchLinux ; Clamav ( Anti-virus software ) , Mail server

1. Install clamav ( anti-virus software )1.1 Clam AntiVirus Installation# pacman -S clamav1.2 Virus definition file update settings# vim /etc/clamav/freshclam.confLine 76Insert "#" at the beginning of the line "DatabaseMirror database.clamav.net",Add "DatabaseMirror db.jp.clamav.net#DatabaseMirror database.clamav.netDatabaseMirror db.jp.clamav.net2. Mail Server (Postfix)2.1 Installing PostfixInstall Postfix and build an SMTP server# pacman -S postfix3. Mail Server(Dovecot)3.1 Dovecot Installation# pacman -S dovecot3.2 Edit dovecot.conf fileMail Server : Postfix + Clamav + clamav-milter+SpamAssassin1. Real-time scanning of email➁clamav-milter configuration
Archlinux_en

ArchLinux ; WEB Server(Apache2)

1. Apache2 installation and virtual host configuration1.1 Apache2 Installation①Install httpd# pacman -S apacheVersion Check# httpd -vServer version: Apache/2.4.58 (Unix)Server built: Oct 25 2023 18:28:291.2 Apache Configuration①Edit httpd.conf file2. Confirmation of CGI Script Usage①CGI availability check3. PHP installation and configuration3.1 PHP8 installation①Install# pacman -S php php-apache php-fpm②Version Check
Archlinux_en

ArchLinux ; FTP Server , File Server (SAMBA)

1.FTP Server1. 1 vsftpd installation# pacman -S vsftpd1.2 vsftpd configuration①Editing Configuration Files2. vsftpd SSL/TLSConfigure Vsftpd to use SSL/TLS2.1 Create self-signed certificatesThis step is not necessary if you are using a trusted, legitimate certificate such as Let's Encrypt.The information you enter is meaningless and will only be used for encryption.
Archlinux_en

ArchLinux ; SSH , Firewall (ufw)

1. SSH Service Security SettingsChange the configuration file for the SSH service, which is "/etc/ssh/sshd_config".In this case, we will change the default SSH port 22 to 2244.Change /etc/ssh/sshd_config as follows2. Firewall (ufw)2.1 Install# pacman -S ufw# systemctl status ufw○ ufw.service - CLI Netfilter Manager Loaded: loaded (/usr/lib/systemd/system/ufw.service; disabled; preset: dis> Active: inactive (dead)You can confirm that the ufw service is stopped by displaying "Active: inactive (dead)"
Archlinux_en

ArchLinux ; Initial settings after OS installation

1. User Account CreationAdd user (huong) to wheel group and create home directory# useradd -m -G wheel huongUser (huong) password setting# passwd huongNew password:Retype new password:passwd: password updated successfullyGrant sudo privileges to the added huong user2 . Configuration of the text editor vimVim was already installed during the Arch Linux installation, so this is just a configuration file.If you are installing vim3. Network Connections■ If using systemd-resolved, create /etc/resolv.conf as a link file# ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf■ If systemd-resolved is not used
Archlinux_en

ArchLinux ; Installation #4 How to install with btrfs file system

For installation with ext4 file system, please refer to the following pagehttps://korodes.com/arch_en_02/https://korodes.com/arch_en_03/1.Creating partitions1.1 Confirmation of installation deviceCheck the target device with the lsblk command