Difference between revisions of "Upgrade to trunk"

From FOG Project
Jump to: navigation, search
m (Methods)
 
(56 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=Methods=
+
Related Article: [[Getting_FOG]]
*There are a few methods to update to the most resent revision.
 
*Remember these are mostly betas so there are bound to be bugs, but with bugs also comes fixes of the issues found in the "Stable Release"
 
*If you have nodes they will also need to be upgraded! (Excluding [[Windows_Storage_Node | Windows Nodes]])
 
  
 +
<noinclude>= Methods =</noinclude>
 +
* To get the very latest version of FOG you need to follow the below instructions.
  
==SVN==
+
* Remember these are mostly betas so there are bound to be bugs, but with bugs also comes fixes of the issues found in the "Stable Release"
*Install as seen in '''[[SVN]]'''
+
* If you have nodes they will also need to be upgraded! (Excluding Beta [[Windows_Storage_Node | Windows Nodes]])
<pre>svn co https://svn.code.sf.net/p/freeghost/code/trunk /some/local/folder</pre>
 
  
*Then navigate to the folder you specified and run:
+
= Git =
 +
* Update and then Install git (or 'yum' instead of 'apt-get' if you are running a RedHat based OS)
  
<pre>sudo /some/local/folder/bin/./installfog.sh</pre>
+
<pre>
 +
sudo apt-get update && apt-get install git
 +
</pre>
  
====Update from prior downloaded SVN====
+
* Initial checkout and installation
<pre>cd  /some/local/folder/
+
<pre>
svn up
+
sudo -i
 +
git clone https://github.com/FOGProject/fogproject.git /root/fogproject
 +
cd /root/fogproject
 +
git checkout dev-branch
 
cd bin
 
cd bin
./installfog.sh</pre>
+
./installfog.sh
 +
</pre>
  
 +
== Update to latest ==
 +
As the development tree of FOG changes quiet often (pretty much daily!) you might want to update to the very latest version from time to time. To do this use the following commands:
 +
<pre>
 +
cd /root/fogproject
 +
git checkout dev-branch
 +
git pull
 +
cd bin
 +
./installfog.sh
 +
</pre>
 +
 +
== Check your git version ==
 +
 +
<pre>
 +
cd /root/fogproject
 +
git log -1<noinclude>
 +
</pre>
  
  
----
 
  
==BTSync==
+
= Congratulations =
If you want the latest, get on the BTsync :) You could have changes within 20-30 seconds of them being made.
+
* Congrats! You have now upgraded to the "bleeding edge" of FOG deployment. It is your responsibility to keep upgraded until the next "Stable Release". Until then you will see in the ''cloud'' of your ''Web Gui'' '''rXXXX'''. This indicates the revision you are now on.
 +
* You can check for updates to the revisions under [[File:1.3.0 fog configuration.png]] '''Fog Configuration'''. This will state the version you are on and what the lastest revision is.
  
<pre>
+
= Additional information on SVN and git & FOG Trunk =
Fog Read only Secret: BAU3NUY3XTKVMHHEZO6C7OH55AN2PCGJV
+
 
Kernels Read only Secret: B7AGQ6JVIP4MF5LCRL3XURQBYC53UIS25
+
FOG developmental versions are called "revisions." Revisions are normally stable for the PRIMARY functions of FOG: '''IMAGE > NAME > JOIN TO DOMAIN using UNICAST and MULTICAST'''
</pre>
+
 
 +
Other features in FOG revisions (not directly related to the imaging process) '''are sometimes broken'''. The developers are pretty good about fixing issues when someone finds and reports it. These other features usually do not impact imaging. Additionally, if you encounter an issue, let us know about it in the [https://forums.fogproject.org/ forums] and someone is likely to help and/or fix it quickly, making a new "revision" that you can download and install very quickly using the above methods.
 +
 
 +
However, with the current revisions, you'll benefit from a '''plethora of bug fixes''', a much '''wider range of supported host hardware''', and '''new features'''!
  
*Create the location that you want to have synced.
+
Updating FOG from one revision to a newer one usually takes less than a minute or two. Fog uses your settings from previous installations so you don't have to answer questions about the installation or set additional configurations. '''FOG supports upgrading, but not downgrading'''. If you would like to roll-back to a previous version, generally, this can only be done by reverting to a previous snap-shot taken from a virtualized machine that FOG is installed on.
  
<pre>
+
It's advised to backup your database and export your hosts (and label the files) prior to upgrading. You can do that like this on 1.2.0 and higher:
sudo mkdir /fog
 
sudo mkdir /kernels
 
sudo chrmod 777 /fog
 
sudo chrmod 777 /kernels
 
</pre>
 
  
*Install BTsync:
+
* FOG Configuration -> Configuration Save -> Export
 +
* Host Management -> Export Hosts -> Export
  
<pre>
+
You may install FOG Trunk on a server that does not have FOG installed already.
sudo add-apt-repository ppa:tuxpoldo/btsync
 
sudo apt-get update
 
sudo apt-get install btsync
 
cd Downloads
 
tar xzpf btsync_i386.tar.gz (I have downloaded 32 bit. So check your version)
 
./btsync
 
</pre>
 
  
*Open a webpage: <IP Address>:8888
+
= Check what version you're running =
  
<pre>
+
On your FOG's web GUI login page, you can quickly check what revision you're running:
Add Folder:
 
Secret: BAU3NUY3XTKVMHHEZO6C7OH55AN2PCGJV
 
Path: /fog
 
  
Add Folder:
+
[[File:FOG Revision in cloud.png]]
Secret: B7AGQ6JVIP4MF5LCRL3XURQBYC53UIS25
+
= Video Tutorials =
Path: /kernels
+
</noinclude>
</pre>
+
<includeonly>==== Video Tutorials ====</includeonly>
  
*Then Any time you see an update. Open up your terminal:
+
<font color="red">Note:</font> Video plays in Chrome or Firefox with html5 plugin
  
<pre>
+
External video link: [https://youtu.be/4XtY70nCg_A FOG upgrade to trunk - Git method ]
cd /fog/bin/
 
sudo ./installfog.sh
 
</pre>
 
And you are updated quite quickly!
 
  
 +
<embedvideo service="youtube">https://youtu.be/4XtY70nCg_A</embedvideo>
  
~Sources: [http://askubuntu.com/questions/284683/how-to-run-bittorrent-sync,[AskUbuntu]]
+
External video link: [https://youtu.be/nlYWhjkjPR8 FOG upgrade existing Git repo ]
----
 
  
==wget==
+
<embedvideo service="youtube">https://youtu.be/nlYWhjkjPR8</embedvideo>
<pre>
 
wget --no-check-certificate http://mastacontrola.com/fog_trunk.tar.bz2
 
</pre>
 
*Once downloaded you'll need to unpack the bz2 file using the command:
 
<pre>
 
tar -xjf fog_trunk.tar.bz2
 
</pre>
 
*Then go into the unextracted file.  Follow these steps:
 
<pre>
 
  cd fog_trunk/bin
 
  ./installfog.sh
 
</pre>
 

Latest revision as of 14:25, 16 December 2017

Related Article: Getting_FOG

Methods

  • To get the very latest version of FOG you need to follow the below instructions.
  • Remember these are mostly betas so there are bound to be bugs, but with bugs also comes fixes of the issues found in the "Stable Release"
  • If you have nodes they will also need to be upgraded! (Excluding Beta Windows Nodes)

Git

  • Update and then Install git (or 'yum' instead of 'apt-get' if you are running a RedHat based OS)
sudo apt-get update && apt-get install git
  • Initial checkout and installation
sudo -i
git clone https://github.com/FOGProject/fogproject.git /root/fogproject
cd /root/fogproject
git checkout dev-branch
cd bin
./installfog.sh

Update to latest

As the development tree of FOG changes quiet often (pretty much daily!) you might want to update to the very latest version from time to time. To do this use the following commands:

cd /root/fogproject
git checkout dev-branch
git pull
cd bin
./installfog.sh

Check your git version

cd /root/fogproject
git log -1<noinclude>


Congratulations

  • Congrats! You have now upgraded to the "bleeding edge" of FOG deployment. It is your responsibility to keep upgraded until the next "Stable Release". Until then you will see in the cloud of your Web Gui rXXXX. This indicates the revision you are now on.
  • You can check for updates to the revisions under 1.3.0 fog configuration.png Fog Configuration. This will state the version you are on and what the lastest revision is.

Additional information on SVN and git & FOG Trunk

FOG developmental versions are called "revisions." Revisions are normally stable for the PRIMARY functions of FOG: IMAGE > NAME > JOIN TO DOMAIN using UNICAST and MULTICAST

Other features in FOG revisions (not directly related to the imaging process) are sometimes broken. The developers are pretty good about fixing issues when someone finds and reports it. These other features usually do not impact imaging. Additionally, if you encounter an issue, let us know about it in the forums and someone is likely to help and/or fix it quickly, making a new "revision" that you can download and install very quickly using the above methods.

However, with the current revisions, you'll benefit from a plethora of bug fixes, a much wider range of supported host hardware, and new features!

Updating FOG from one revision to a newer one usually takes less than a minute or two. Fog uses your settings from previous installations so you don't have to answer questions about the installation or set additional configurations. FOG supports upgrading, but not downgrading. If you would like to roll-back to a previous version, generally, this can only be done by reverting to a previous snap-shot taken from a virtualized machine that FOG is installed on.

It's advised to backup your database and export your hosts (and label the files) prior to upgrading. You can do that like this on 1.2.0 and higher:

  • FOG Configuration -> Configuration Save -> Export
  • Host Management -> Export Hosts -> Export

You may install FOG Trunk on a server that does not have FOG installed already.

Check what version you're running

On your FOG's web GUI login page, you can quickly check what revision you're running:

FOG Revision in cloud.png

Video Tutorials

Note: Video plays in Chrome or Firefox with html5 plugin

External video link: FOG upgrade to trunk - Git method

External video link: FOG upgrade existing Git repo