-
Notifications
You must be signed in to change notification settings - Fork 1
Install Operating System
Gary Cornell edited this page Jul 1, 2017
·
18 revisions
- Ok now the easy part, install your OS. We are installing Ubuntu Server 16.04.2
- In the Hyper-V Manager your newly created virtual container will be in the off position, simply right click and choose start. This will boot up the server into the Ubuntu image file and start the install. In my case its LaravelTest
- On the bottom left of the hyper-V manager there is a small console box, double click on this to open it and interact with the install.
- Configuration:
- Choose language
- Choose install Ubuntu Server
- Choose keyboard settings, if its English/US then just click away for defaults. For the most part all the defaults are fine.
- Network will be configured automatically using the Virtual Switch we created earlier
- Add a hostname. Now this is IMPORTANT! This will be they name you access your site in browser, SSH, and FTP. I am using "testserver" for this example. So I can access my site via http://testserver:8080 and the host for SSH and FTP will be testserver
- Choose sudo username and password
- Encrypt home directory, I selected no cause Im not concerned about access. Your choice but its not important unless you feel your files are in danger of being stolen...lol
- Choose your location
- partitioning. You can use a guided, raid or any of the other options there but I always do my partitioning manually this way I know whats what so to speak. You may want to create multiple partitions for different user roots or whatever your needs are but I am going to do a standard partition for root, swap, boot, and home thats all you need to runa full fledged server. If using the UEFI boot you will need to create and additional partition for this.
- Choose the Free Space of the selected disk
- Create New Partition
- 20GB (Important you must allow for 20GB for the root, going lower can be dangerous once your server begins to get populated by more programs and files. (This is the absolute minimum for a efficient server under Ubuntu) Dont let anyone tell you different I have installed thousands of servers in 12 data centers across 4 continents and I have seen the problems that can happen so make sure there is ample space you don't want to have partition issues and lose data.
- Primary
- At Beginning
- Choose root / for mount point - EXT4 file system - Label sda2 - You can choose other options for mount options but default is fine can always be changed later if need be. So except for the format partition( I am reinstalling the OS for this tutorial) it would look something like this
- Click done wetting up partition
- Select the free space again for the next partition
- Set your SWAP partition. Personally I always match the SWAP with root size, gets the best performance but you can go lower but be careful not to go to low, I would say half is the absolute bottom for an efficient SWAP partition.
- So 20 GB - Primary - Beginning - use as: SWAP
- /boot partition used to be good at 120MB in Ubuntu 12 even 14 but now Grub2 has all these new files and configs so in order not to get errors when installing a new kernel we need to up to 250MB to be confident of no errors such as No disk space available. If you get to this then you will start pulling the hair you have left.
- Choose /boot for mount point - EXT4 file system - Label sda1 - bootable Flag YES!
- And finally the rest for /home or whatever you want to use for your application/user path. I use the standard /home/$USER/public_html structure. But if you want say /var/www then you should partition accordingly.
- Choose /home for mount point - EXT4 file system - Label sda4
- Finish and Write changes to disk...
- System will now install. You will be prompted if you need to setup an HTTP Proxy (leave blank continue) unless you need it.
- No automatic updates
- Install software: all you need is the Open SSH server so you can access via ssh. Keep system utilities checked.
- It seems that this is the only OS..... Yes
- Finish setup
Your Ubunut server is setup and will reboot automatically
We can move on to Login to Server...