Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Help about MediaWiki
FUTO
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Introduction to a Self Managed Life: a 13 hour & 28 minute presentation by FUTO software
(section)
Main Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Step 2: Install Ubuntu Server as a Virtual Machine === '''I will be blazing through this since we did this already once - refer to Installing Ubuntu Server with RAID 1, LVM, and LUKS Encryption above.''' '''Keep in mind the following:''' We are NOT using LUKS encryption here. There is no need since the image is going to be stored on an encrypted partition. We are NOT using RAID – this is a disk image that is being stored on a RAID array, so we are not doing that. We are configuring networking the same as we did before, but we will be using a '''''different''''' IP address! <span id="start-the-installation-process-in-the-virtual-machine-1"></span> ==== 2.1 Start the installation process in the virtual machine ==== Choose your language and select '''“Try or install Ubuntu Server”'''. Follow the installation prompts. <div class="figure"> <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxef6_tmp_ec4e8896.png </gallery> </div> <div class="figure"> <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxef6_tmp_578acc67.png </gallery> </div> <span id="configure-static-ip-address-1"></span> ==== 2.2 Configure Static IP Address ==== * When you reach the Network configuration screen, select the network interface that corresponds to your network interface. * Choose the option '''“Configure network manually”'''. * Enter the following details: ** IP Address: '''192.168.5.5''' ** Subnet: '''192.168.5.0/24''' ** Gateway: '''192.168.5.1''' ** Nameserver: '''192.168.5.1''' * Make sure you enter all the details correctly to provide the virtual machine has the correct static IP configuration. <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxef6_tmp_96b658d9.png File:lu55028jxef6_tmp_db73416d.png File:lu55028jxef6_tmp_395bacbb.png File:lu55028jxef6_tmp_11e6c2bf.png File:lu55028jxef6_tmp_b4d42965.png File:lu55028jxef6_tmp_c3cac3b1.png File:lu55028jxef6_tmp_d358ecfb.png File:lu55028jxef6_tmp_35442bae.png File:lu55028jxef6_tmp_42a93091.png File:lu55028jxef6_tmp_f21e3690.png File:lu55028jxef6_tmp_220bed13.png File:lu55028jxef6_tmp_36760d5c.png File:lu55028jxef6_tmp_eb8a4fe0.png File:lu55028jxef6_tmp_64120bbe.png File:lu55028jxef6_tmp_8281f281.png File:lu55028jxef6_tmp_b6f1ac1f.png File:lu55028jxef6_tmp_89692e7.png </gallery> <span id="partition-the-virtual-drive-1"></span> ==== 2.3 Partition the virtual “drive” ==== * When you reach the Filesystem setup section, select “Use an entire disk” and then choose the disk you want to install Ubuntu Server on. * Choose the option “Set up this disk as an LVM group”. * '''Important:''' At this stage, edit the partition sizes as Ubuntu’s installer usually allocates 2 GB for boot which is ridiculous and even worse it only uses half the available space for your LVM & root. The Ubuntu auto partitioner is horrible. * Reduce the boot partition to 512 MB. * Delete the old LVM & root partition. * Create a new LVM taking up the entire disk. * Create a logical volume for the root filesystem, using all available space. * '''Do not encrypt the volume''' (it’s unnecessary since the host drive is already encrypted, and it is not my intention for you to have these VMs running on other people’s servers). <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxef6_tmp_3d6c5298.png File:lu55028jxef6_tmp_751040c0.png </gallery> <span id="finalize-installation-do-not-install-docker-1"></span> ==== 2.4 Finalize installation & do not install docker ==== * Set up your username and password. * '''Choose to install OpenSSH server.''' <blockquote>'''WARNING:''' DO NOT CHOOSE TO INSTALL DOCKER USING THE PROMPT AFTER THIS! </blockquote> * After configuring the partition sizes, proceed with the installation process as usual, following the prompts to set up any additional software you want to install. * Once the installation is complete, the system will automatically apply your network & partitioning settings. * When prompted, remove the installation media (ISO) disk image from the virtual machine settings. * Restart the virtual machine. <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxef6_tmp_ce86cb27.png File:lu55028jxef6_tmp_b291175e.png File:lu55028jxef6_tmp_b1c36016.png </gallery> <span id="remove-the-cdrom-1"></span> ==== 2.5 Remove the CDROM ==== * Go to '''View —> Details''' in '''Virtual Machine Manager''' * Go to '''“SATA CDROM”''' on the left side. * Confirm that the '''“source path”''' is the ubuntu iso we downloaded for installing Ubuntu server on this virtual machine * Click '''“remove”''' in the lower right corner. * UNCHECK '''“delete associated storage files”''' – we will use this image again later! * Click delete. * You may have to turn off the VM to do this. <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxef6_tmp_fb68028c.png File:lu55028jxef6_tmp_28adba83.png File:lu55028jxef6_tmp_85359533.png File:lu55028jxef6_tmp_74771b5d.png File:lu55028jxef6_tmp_83560fb2.png File:lu55028jxef6_tmp_f5637068.png File:lu55028jxef6_tmp_e789b00f.png </gallery> <span id="set-up-static-ip-mapping-in-pfsense-2"></span> ==== 2.6 Set Up Static IP Mapping in pfSense: ==== * Log into your '''pfSense''' router. * Go to '''Status > Diagnostics > ARP Table'''. * Find the MAC address associated with your server’s IP (in our case this is, '''192.168.5.5'''), copy it. * Go to '''Services > DHCP Server'''. * Scroll to the bottom and click '''“Add Static Mapping”'''. * Enter the MAC address and IP address of your server. * Give it a descriptive name (such as “androidstuff static IP”). * Set the hostname to <code>androidstuff</code>. * Save and apply changes. <blockquote>'''Note:''' This makes sure that this IP address is reserved for this computer to connect to, so that no other device can take it (unless they are spoofing MAC addresses, but if someone does, that’s a different story). </blockquote> <span id="set-up-this-virtual-machine-to-start-at-boot-1"></span> ==== 2.7 Set up this virtual machine to start at boot: ==== Type the following into the terminal at <code>happycloud</code>, which is our main server that we are creating all of these virtual machines on at <code>192.168.5.2</code>: <pre>virsh autostart androidstuff</pre> * Check that this is set up properly by typing <code>virsh dominfo androidstuff</code> and seeing if the autostart line is set to enable. * If you don’t do this, you will realize once it is too late & you’ve left your house after you have rebooted your server (for whatever reason) that none of your services are working. This will suck. * This command makes it so that the virtual machine starts each time we boot the computer. You’ve now successfully set up an '''Ubuntu Server''' virtual machine using Virtual Machine Manager, configured with a static IP address and LVM partitioning. We have a virtual machine that we just created that we can use to set up our second server for android backups, image search using machine learning & face detection with local models that don’t connect to the internet. '''EXCITED'''??? I AM! :D :D :D <span id="step-2-setting-up-syncthing-for-android-backups"></span>
Summary:
Please note that all contributions to FUTO may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
FUTO:Copyrights
for details).
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:
Cancel
Editing help
(opens in new window)