Fog custom installation options.
-
Server
- FOG Version: Tue Dec 27, 2016 21:36 pm
Running Version 1.3.0-RC-26
SVN Revision: 6021 - OS: Ubuntu 14.04
Description
Is there anyway you can add the following flags to disable apache and mysql during installation or upgrade
/opt/fogproject_git/bin# ./installfog.sh- No Apache ( we want to install and configure our own apache )
- No mysql ( we want to install and configure our own mysql )
Also
Can I have CLI notes for- Creating a task for host installation or imaging.
Thank you
Chakri - FOG Version: Tue Dec 27, 2016 21:36 pm
-
There aren’t any “customization” beyond customizing packages, but I do kind of need to ensure all things are well from the installer’s point of view.
That said, the basic’s FOG needs to operate can be fully manual, just I haven’t taken the time to run through them.
There aren’t any CLI notes for “creating a task for host installation or imaging” because FOG (in the state it currently resides) was not meant to be CLI operated. It’s intent was purely to be web based. While you can do some url calls to acheive the same effects, 1.3.0 kind of improved on the security models a bit better to close these potential pitfalls.
-
I can help some but it’ll be later tonight when I’m home. I’ll come back to this later.
-
Ok, to skip the Apache and MySQL automatic configuration, you must go the hard route.
You’d clone FOG 1.3.0 as typical from here:
https://github.com/FOGProject/fogproject/tree/1.3.0Then after that’s cloned, go into
fogproject/packages/web
and copy all of that to a web directory on your server (typically/var/www/html/fog
).Then you can start installing all the packages and configuring them yourself. Here’s a list of the ones Ubuntu 16 needs:
apache2 bc build-essential cpp curl g++ gawk gcc gzip htmldoc lftp libapache2-mod-php7.1 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g
You’ll need the
ondrej
repository installed to get most of those, you can install that with these two commands:
add-apt-repository ppa:ondrej/php;apt-get update
It’s going to be really hard to configure all of that on your own. If you were thinking that Apache and MySQL are the only things the FOG installer is configuring, well that would be a misunderstanding. There is TFTP, NFS, VSFTP, the image & snapin replicator, the task scheduler, the host pinger, the multicast manager, the new snapin hash thingy.
Not to mention that Ubuntu is the most difficult distribution to set this stuff up on - many times have I heard so many people here express their difficulties with it, including the developers. But, more power to you.
I’d really recommend using the pre-made installer, it’ll do all the things correctly. Then you can go back afterwards and customize whatever you want.
-
@Tom-Elliott
Thank you for details.Chakri