Difference between revisions of "Ubuntu 16.04 Server"

From FOG Project
Jump to: navigation, search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
Article under construction. Written for FOG Trunk, which will be the future 1.3.0 release.
+
Article under construction, Written for FOG 1.3.0
  
 +
See also: [[Ubuntu 16.04]]
  
Notes:
+
= Settings =
  
set a hostname, recommeded name is <font color="red">fog-server</font>, however you can set this as anything you want.
+
set a hostname, recommeded name is <font color="red">fogserver</font>, however you can set this as anything you want.
  
set a username, recommended name is YOUR first name, or "tech". '''Do not use "fog"!'''
+
set a username, recommended name is YOUR first name, or "admin". '''Do not use "fog"'''!
  
 
Set a password for this account.
 
Set a password for this account.
Line 12: Line 13:
 
verify password.
 
verify password.
  
Encryption - optional, but not recommended.
+
Encryption - optional, but strongly '''not''' recommended.
  
 
Set a timezone because FOG Scheduled Tasks are dependent on the system time being correct.
 
Set a timezone because FOG Scheduled Tasks are dependent on the system time being correct.
  
 
= Partitioning =
 
= Partitioning =
 +
 +
 +
External Video Link:
 +
 +
[https://youtu.be/1i41-5FuSmI Ubuntu 16 04 Server - Optimal FOG Partitioning]
 +
 +
Video:
 +
 +
<embedvideo service="youtube">https://youtu.be/1i41-5FuSmI</embedvideo>
 +
 +
= Other Settings =
 +
  
 
no automatic updates (optional).
 
no automatic updates (optional).
Line 24: Line 37:
 
set "OpenSSH server" to be installed (optional but required for remote management. Can be installed later).
 
set "OpenSSH server" to be installed (optional but required for remote management. Can be installed later).
  
= Extra steps for Ubuntu 16 =
+
= Installing FOG =
  
Two bumps in the road, of which the forums and wiki covered. I’ll try to unify some instructions in the Ubuntu Server article.
+
* Access the terminal
 +
* Become root with <font color="red">sudo -i</font>
  
Basics are exactly what has already been posted in the forums and wiki.
+
* Issue the below commands.
* When you are ready, run the installer with
+
<pre>  
<pre>php_ver='7.0' php_verAdds='-7.0' ./installfog.sh</pre>
+
apt-get -y update
* When the installer asks you to update the database, there’s 1 extra step. (in another SSH session) Go to mysql and modify the password setting with:
+
apt-get -y dist-upgrade
<pre>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';</pre>
+
apt-get -y autoclean
Then you go to the web interface and update the DB as normal, come back to the installer and complete it as usual.
+
apt-get -y autoremove
 +
apt-get -y install git
 +
git clone https://github.com/FOGProject/fogproject.git /root/fogproject
 +
cd /root/fogproject/bin
 +
./installfog.sh
 +
</pre>

Latest revision as of 15:55, 4 September 2017

Article under construction, Written for FOG 1.3.0

See also: Ubuntu 16.04

Settings

set a hostname, recommeded name is fogserver, however you can set this as anything you want.

set a username, recommended name is YOUR first name, or "admin". Do not use "fog"!

Set a password for this account.

verify password.

Encryption - optional, but strongly not recommended.

Set a timezone because FOG Scheduled Tasks are dependent on the system time being correct.

Partitioning

External Video Link:

Ubuntu 16 04 Server - Optimal FOG Partitioning

Video:

Other Settings

no automatic updates (optional).

set "standard system utilities" to not be installed (optional, but this tutorial is aimed to be as minimal as possible).

set "OpenSSH server" to be installed (optional but required for remote management. Can be installed later).

Installing FOG

  • Access the terminal
  • Become root with sudo -i
  • Issue the below commands.
    
apt-get -y update
apt-get -y dist-upgrade
apt-get -y autoclean
apt-get -y autoremove
apt-get -y install git
git clone https://github.com/FOGProject/fogproject.git /root/fogproject
cd /root/fogproject/bin
./installfog.sh