-- Leo's gemini proxy

-- Connecting to warp.geminispace.club:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en

Installing FreeBSD 13 with VirtualBox over Windows 10 as Host (Part 2)


> This section is particularly visual, it is warmly recommended a client, like Lagrange, able to show properly images.


Introduction


This second part is mainly dedicated to the VirtualBox setup and the FreeBSD installation, it is principally a visual walk-through based on screenshots.


I am not going to explain very much about VirtualBox, either its installation or how to install the extension-pack, if you don't know anything about it you should read the official documentation through links provided on part 01:


↩ Go back to "Part 01"


> My recommendation is: if you have a Windows computer at home you should first try this guide on your personal computer before.


> To leave lesser trace as possible about my activities I installed VirtualBox without creating any registry association, without creating launchers or anything on the same line. Check the screenshot below:


[screenshot:00]


Otherwise the screenshots are quite self-explanatory.


VirtualBox Setup


After the installation the first step is creating a virtual machine by pressing "NEW" on the blue star on top of the GUI.


Create Virtual Machine


(here starts the walk-through by screenshots)


[screenshot:01]


Choose a name for the virtual machine (from now on VM); Chose the folder where saving it, use a good USB memory stick not the computer disks; select the VM type (BSD) and the right FreeBSD version (64BIT); assign the memory, 4096MB is recommended 2048 are fine; lastly "create a new disk".


[screenshot:02]


Create Virtual Hard Disk


Virtual disk preparation:


Step 1: from my experience 32GB is an adequate size; the default setup are fine, just select "Fixed size" to get better performance.


[screenshot:03]


Step 2: disk creation can take several minutes depending by your CPU power, just be patient.


[screenshot:04]


System


Motherboard tab - if you can dispose of 4GB of ram is highly recommended, otherwise 2GB should be still fine.


[screenshot:05]


Processor tab - 4 CPU's make the daily use better.


[screenshot:06]


Acceleration tab - use "default".


[screenshot:07]


Display


Screen tab - do not enable 3D acceleration.


[screenshot:08]


Storage


Click to the CD icon on the right top corner to select the FreeBSD image.


[screenshot:09]


Audio


I personally don't need it, everything is media or streaming is going to be watched/listened through my mobile.


[screenshot:10]


Network


Leave the network enabled, it is going to be used one time only.


[screenshot:11]


Serial Ports


Never used.


USB


[screenshot:12]


Remember you need the "Extensions-pack"; Activate USB 3.0 (xHCI) for better performance; use the plus icon button on the right to add your mobile (must be previously connected to the PC and properly setup).


> Developers option and USB debugging must be enabled!


https://developer.android.com/studio/debug/dev-options


Shared Folders


[screenshot:13]


You need the "guest additions" installed to enable this feature (part 03); I use an external a Samsung 128GB pen-drive to save stuff from internet, which is also the storage where my virtual machine is located.


> I use a 128GB pen-drive to store my virtual-machine, I also copied the VirtualBox folder from "C:\Program Files\Oracle" into the pen-drive and I run my virtual machine from the pen-drive. If I would run VirtualBox from the PC it would not see my pen-drive VMs


General (view)


[screenshot:14]


A brief recap with the setup completed.


FreeBSD Installation


Now the VM is available on the left of the GUI; you can select it and press start, it will launch the FreeBSD ISO that is already inserted in the virtual CD-ROM:


[screenshot:15]


Do not hesitate and run the VM.


Boot loader


[screenshot:16]


Welcome into the cool ASCII-Artistic FreeBSD loader, click enter to start the installation.


Preparing the disk


It is a good practice to protect your data encrypting the hard disk, even a virtual one, before to start the installation process it is better to write casual data to create noise as an additional layer of protection.


> VirtualBox has an internal function to encrypt virtual disk, I have never used it; I prefer using the tools provided by the OS itself.


[screenshot:17]


[screenshot:18]


This is a kind of pre-setup installation rather than click install we are going to live mode, use "root" as user to go live.


[screenshot:19]


Geom is the utility to check and manage disks on FreeBSD.


geom disk list

[screenshot:20]


writing on the disk, it requires several time:


dd if=/dev/zero of=/dev/ada0 bs=1M status=progress

If you want a better work you may use /dev/urandom but it will take even longer time.


dd if=/dev/urandom of=/dev/ada0 bs=512 status=progress

When it finish you must reboot.


reboot

Install


The VM rebooted and you already pressed enter at the boot screen.


[screenshot:21]


Install.


Keymap Selection


[screenshot:22]


I use the default "US" you must chose the one you need.


Set Hostname


[screenshot:23]


I always recommend to use something that may be confused with the hostname of your company.


Distribution Select


[screenshot:24]


Follow the screenshot, however do not forget that everything is extremely well documented in the "FreeBSD Handbook"


Partitioning


[screenshot:25]


Follow the screenshot.


ZFS Configuration


[screenshot:26]


We are going to encrypt disk and swap, arrange the settings to match the screenshot.


[screenshot:27]


(Follow the screenshot)


[screenshot:28]


(Follow the screenshot)


[screenshot:29]


(Follow the screenshot)


[screenshot:30]

[screenshot:31]


Use a strong and memorable passphrase and store it in a safe place.


[screenshot:32]

[screenshot:33]


(Nothing to do)


Root Password


[screenshot:34]


Add the root password (twice).


Network Configuration


[screenshot:35]


Let the installer set-up the nick even though we are going to deactivate it later.


[screenshot:36]


(Follow the screenshot)


[screenshot:37]


(Follow the screenshot)


[screenshot:38]


(Follow the screenshot)


[screenshot:39]


DNS may vary, just press "OK".


Time Zone


[screenshot:40]


(find your...)


[screenshot:41]

[screenshot:42]


Time & Date


[screenshot:43]


(skip)


[screenshot:44]


(skip)


System Configuration


[screenshot:45]


(Follow the screenshot)


System Hardening


[screenshot:46]


I didn't have any particular requirements, this is up to you, check out the Handbook your want learn more.


Add User Accounts


[screenshot:47]


(yes)


[screenshot:48]


Follow the screenshot, however use your favorite "username" and do not forgot to add these groups as well:


wheel video operator

[screenshot:49]


Add another user? NO!


Final Configuration


[screenshot:50]

[screenshot:51]


Always useful installing the Handbook.


[screenshot:52]


Apply configuration and exit from the installer.


[screenshot:53]


NO.


Complete


[screenshot:55]


Enter in "Live CD" to turn off the VM.


[screenshot:56]


Login: "root" then type:


poweroff

Reboot


Now before to reboot you must remove the ISO from the same place where you mounted it before, you must also deactivate the Network Controller since the point of everything is avoid to use the internet connection provided by your employer.


> you must also deactivate the Network Controller since the point of everything is avoid to use the internet connection provided by your employer.


If you forgot to remove the ISO from the virtual you will run the installer again and you must go again in "Live CD" mode and "poweroff" the system alternatively you can press "RIGHT-CTRL + H".


Wrapping This Up!


The installation was made, congratulations.


We can now move to part 3: tuning!


Tuning is always my favorite part of any Linux/BSD installation!


↪ Go to "Part 03"

↩ Go back to "Part 01"


For comments or suggestion write me at:


freezr AT disroot DOT org



↩ go back

-- Response ended

-- Page fetched on Tue May 21 12:06:37 2024