Skip to content

Instantly share code, notes, and snippets.

@elijahtsai
Created January 7, 2021 16:17
Show Gist options
  • Save elijahtsai/598876dab0e2bfcd313ec134916d8656 to your computer and use it in GitHub Desktop.
Save elijahtsai/598876dab0e2bfcd313ec134916d8656 to your computer and use it in GitHub Desktop.
freebsd step by step
Welcome
Select Install
Keymap Selection
Test default keymap
If correct then
Select Continue with default keymap
else Select prefer keymap
Set Hostname
$useFor = What is this machine use for?
$serial = Serial Number?
if machineIsReal then
$machineType = keyword for real machine?
else $machineType = keyword for vm machine?
$subDomainName = this machine belong to what sub-domain name?
$domainName = Domain name?
$tld = TLD?
entry {\(usrFor)|\(serial)}.\(machineType).\(subDomainName).\(domainName).\(tld)
Distribution Select
Select lib32 and ports and src and tests
Partitioning
Select Manual
Partition Editor
Select Create and in Partition Scheme window
Select GPT
Select OK
Select Create and in Add Partition window
Type: freebsd-boot
Size: 512KB
Select OK
Select Create and in Add Partition window
Type: freebsd-swap
Size: 2GB
Label: none
Select OK
Select Create and in Add Partition window
Type: freebsd-ufs
Size: {Leave it, by default it will set remaining disk space to it}
Label: /
Select OK
Select Finish and in Confirmation window
Select Commit
Entry Root Password
Network Configuration
Select one of interface and select OK
Configuare IPv4 for this interface?
Select Yes
Configuare DHCP for this interface?
Select Yes
Configuare IPv6 for this interface?
Select Yes
Configuare SLAAC for this interface?
Select Yes
If dnsDetailIsNeed then
Entry the Information
else Select OK
Time Zone Selector
Select region
Select country or region
If infoBoxIsCorrect then
Select OK
else Select Cancel
Time & Date
If choseNeworkTime then
Select Skip
else Select Set Date
If choseNeworkTime then
Select Skip
else Select Set Time
System Configuration
Select local_unbound and sshd and ntpdate and ntpd
System Hardening
Select hide_uids and hide_gids and hide_jail and read_msgbuf and proc_debug and random_pid and clear_tmp and secure_console and disable_ddtrace
Add User Accounts
Select No
Final Configuration
Select Handbook
Select en
Select OK
Select OK
Manual Configuration
Select No
Complete
Select Reboot
Allow ssh service for root
vim /etc/ssh/sshd_config
remove # from line contain PermitRootLogin yes
Change ~/.cshrc
set history = 10000000
set savehist = (10000000 merge)
Change /etc/resolv.conf
nameserver xxx.xxx.xxx.xxx
Update pkg
pkg update
pkg upgrade
Update locate db
/usr/libexec/locate.updatedb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment