Fog Tweaks


  • Developer

    As developers run across improvements they often send word to others that there are some tweaks you can do to increase performance of FOG. To help spread it a little better I’m putting this out in the open and if any other GENERAL tweaks can be applied please post them here.

    http://fogproject.org/wiki/index.php/Fog_Tweaks


  • Developer

    MMMMM Updater script ;)


  • Senior Developer

    When doing constant updates (as is the case with most of us devs or beta testers) a quicker means to update (now that the init’s and such are downloaded at install) would be to copy the files you need.

    Step one make a backup of the original:

    For Ubuntu/Debian based setups.

    sudo cp /var/www/fog/lib/fog/Config.class.php ~/Config.class.php #backup  current config file.
    sudo rm -rf /var/www/fog.prev #removes the original previous folder if it exists.
    sudo mv /var/www/fog /var/www/fog.prev #moves the current into fog.prev for backup
    cd /loc/of/svn/folder/trunk; svn up #update the trunk to the latest
    sudo cp /loc/of/svn/folder/trunk/packages/web /var/www/fog #copy the new svn gui to the system.
    sudo chown -R www-data:www-data /var/www/fog; sudo chown -R fog:www-data /var/www/fog/service/ipxe; #change permissions to appropriate values.
    sudo cp ~/Config.class.php /var/www/fog/lib/fog/Config.class.php #copy back config
    

    For Redhat based setups.

    cp /var/www/html/fog/lib/fog/Config.class.php ~/Config.class.php #backup  current config file.
    rm -rf /var/www/html/fog.prev #removes the original previous folder if it exists.
    mv /var/www/html/fog /var/www/html/fog.prev #moves the current into fog.prev for backup
    cd /loc/of/svn/folder/trunk; svn up #update the trunk to the latest
    cp /loc/of/svn/folder/trunk/packages/web /var/www/html/fog #copy the new svn gui to the system.
    chown -R apache:apache /var/www/html/fog; sudo -R fog:apache /var/www/html/fog/service/ipxe; #change permissions to appropriate values.
    cp ~/Config.class.php /var/www/html/fog/lib/fog/Config.class.php #copy back config
    

    Maybe this helps frequent updates?


  • Developer

    this is more of an apache tweak, but since fog uses apache…
    http://fogproject.org/forum/threads/session-cleaner-takes-long-and-slows-host.11839/#post-37904


Log in to reply
 

450
Online

38716
Users

10544
Topics

99831
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.