Install FOG on Arch Linux
-
Here are the result of my labour:
I cloned the svn repository ([url]https://svn.code.sf.net/p/freeghost/code/tags/1.2.0[/url]) and uploaded it to a git repo on bitbucket.org.
I have created the config.sh, functions.sh scripts for Arch Linux. I have also created the systemd service files (i.e. the initscipts).
PLEASE, if you want to run (or to help other run) Fog Project on Arch Linux, clone the git repo below and test on your Arch Linux install.
Project URL:
[url]https://bitbucket.org/david_fear/fog-project[/url]GIT repo:
git clone [url]https://david_fear@bitbucket.org/david_fear/fog-project.git[/url] -
David,
I’m working to include this into SVN so we will, essentially, have support for Redhat/Centos/Mageia/#buntu/Debian etc…
However, the only difference I’m seeing is the addition of the folder arch with config.sh and functions.sh inside. I’ve never installed Arch as I’m more of an LFS fan myself if I’m going to do all that work. Anyway, how are these files called?
-
SVN 2099 now contains the changes.
While I don’t have an Arch install to test on, I’m hoping it will work if you’d be willing to test/try?
-
[quote=“Tom Elliott, post: 33935, member: 7271”]David,
I’m working to include this into SVN so we will, essentially, have support for Redhat/Centos/Mageia/#buntu/Debian etc…
However, the only difference I’m seeing is the addition of the folder arch with config.sh and functions.sh inside. I’ve never installed Arch as I’m more of an LFS fan myself if I’m going to do all that work. Anyway, how are these files called?[/quote]
I’ve added the relevant code for Arch Linux to displayOSChoices() and doOSSpecificIncludes() in lib/common/functions.sh
The relevant commit is #b596753 in my git repo.
-
[quote=“dfear, post: 33955, member: 666”]I’ve added the relevant code for Arch Linux to displayOSChoices() and doOSSpecificIncludes() in lib/common/functions.sh
The relevant commit is #b596753 in my git repo.[/quote]
Is it supposed to be 2 or 3?
-
I already added 3.
Can you also get the output of
[code]cat /etc/release issue;
lsb_release[/code] -
[quote=“Tom Elliott, post: 33940, member: 7271”]SVN 2099 now contains the changes.
While I don’t have an Arch install to test on, I’m hoping it will work if you’d be willing to test/try?[/quote]
When I can find the time this week I will test out an install on arch and report back.
-
[quote=“Tom Elliott, post: 33958, member: 7271”]I already added 3.
Can you also get the output of
[code]cat /etc/release issue;
lsb_release[/code][/quote]Thanks. I have also made the change in my git repo.
Results from: cat /etc/release
[CODE]NAME=“Arch Linux ARM”
ID=archarm
ID_LIKE=arch
PRETTY_NAME=“Arch Linux ARM”
ANSI_COLOR=“0;36”
HOME_URL=“http://archlinuxarm.org/”
SUPPORT_URL=“https://archlinuxarm.org/forum”
BUG_REPORT_URL=“https://github.com/archlinuxarm/PKGBUILDs/issues”
[/CODE]Results from: cat /etc/issue
[CODE]Arch Linux \r (\l)[/CODE]Results from: lsb_release
[CODE]LSB Version: 1.4[/CODE] -
Cool,
I already added that as a “guess” to how it get’s chosen, so hopefully this will mean it will work for us as well on a “default” basis.
-
I have tested the install scripts on an Arch Linux Install in Virtualbox. The install script almost got to the end, but failed at: * Starting FOG Multicast Management Server
I think the problem lies somewhere in the systemd service files I wrote.
The install log file is attached.
[url=“/_imported_xf_attachments/1/1218_foginstall.log.txt?:”]foginstall.log.txt[/url]
-
I have tested the install scripts on a fresh install of Arch Linux in Virtualbox. The install script completes, yeah; but the apache server is not running php files as php scripts; it is displaying them as txt.
The install log file is attached.
-
[quote=“dfear, post: 34185, member: 666”]I have tested the install scripts on a fresh install of Arch Linux in Virtualbox. The install script completes, yeah; but the apache server is not running php files as php scripts; it is displaying them as txt.
The install log file is attached.[/quote]
Couple of small fixes needed. apache now runs php scripts properly (using php-fpm). See: [url]https://bitbucket.org/david_fear/fog-project/commits/1a490d4b7bea45a21360461516bd45acc0c0e7fb[/url]
-
svn 2108 and 2109 have your modified config.sh and functions.sh files in the arch directory. Thanks for reporting and helping.
-
Minor fix needed. Mysqli module now enabled in php.ini file. See: [url]https://bitbucket.org/david_fear/fog-project/commits/bb542601d1e13897e06ffd5e1edf6f4f49a49f9e[/url]
-
Minor regression in: lib/arch/functions.sh:
packages weren’t being installed automatically. Now fixed, see: [url]https://bitbucket.org/david_fear/fog-project/commits/306832a1c248aed0c74706958c68a26b5762bf7e[/url] -
Fixed minor error.
lib/arch/functions.sh
Fix minor error in: configureMySql()
see: [url]https://bitbucket.org/david_fear/fog-project/commits/0765157ddcf38fe566382b570f73404cc6c5e596[/url] -
Minor change to: lib/arch/functions.sh
see: [url]https://bitbucket.org/david_fear/fog-project/commits/1eeff36f7050d2a6deb51e9fb47cffc4af4b8402[/url]
-
Added to svn, thank you.
-
[quote=“Tom Elliott, post: 34577, member: 7271”]Added to svn, thank you.[/quote]
Slightly OT: What tools do you use to include my code from my Bitbucket git repo into the Fog svn repo? I found a program called git-svn, is this what you use?
The reason i’m asking is that it has been a while since I last worked on FOG and I would like to update my local & remote git repos with the latest changes from the FOG project svn repo.
-
I actually hand mash out the code lines based on your repo, or if there were significant changes (too much for me to accurately type out) I copy the files in place using wget. I could use git-svn but I don’t feel comfortable doing commit’s and the like through my git repo.
You shouldn’t have any issue updating though. Just the normal svn or download install method.