FOG install on Raspbian
- FOG Version: 1.3.2
- OS: Raspian
- Hardware: Raspberry Pi 2
I know it’s not technically supported, but I was trying to install FOG on raspbian to see if I could get a portable FOG solution built with hardware I had laying around. I can’t get past the initial setup script execution.
First thing was that it was missing add-apt-repository and that was solved by installing python-software-properties and software-properties-common and was able to continue further. It now fails at the same point, but the message is now
Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 167, in <module> sp = SoftwareProperties(options=options) File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 105, in __init__ self.reload_sourceslist() File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 595, in reload_sourceslist self.distro.get_sources(self.sourceslist) File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources (self.id, self.codename)) aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/jessie
Probably not anything that can be done about this as it isn’t officially supported, but I figured I would ask for help if there is any to be had.
Hey everyone, sorry about not getting back till now. been a hectic few days. I will be glad to help test this as I am always glad to help this project. It’s been good to me over the years. Always useful, helpful, and just simply powerful. Will report back my success/failures.
@Wayne-Workman No not compiling 2.76 only updating dnsmasq config file with current IP address of FOG server when the script is run. Then of course rebooting the dnsmasq service to take advantage of the updated settings. That is all that needs to be done.
Wayne Workman last edited by
@george1421 I can probably write some logic to detect if dnsmasq is greater than or equal to 2.76, and base the config it writes on that. That should be easy.
I don’t really want to script compiling 2.76 because I know it’ll be a lot of work lol.
@Wayne-Workman Actually the OP may need/want to compile dnsmasq 2.76 [ https://forums.fogproject.org/topic/8725/compiling-dnsmasq-2-76-if-you-need-uefi-support ] on the FOG-Pi server so that he will have a dnsmasq server (dhcpProxy) server running on his mobile deployment server. That way no one will need to mess with the remote location’s dhcp server setting (options 66 and 67) when the mobile fog server comes to visit.
Point being, the OP could probably benefit from the dnsmasq fixup code once the script has been updated.
Wayne Workman last edited by
@george1421 FYI about that, I’m going to do major work on it once the needed dnsmasq version is mainstream in Ubuntu & Debian & Fedora & CentOS. Should be less than a year.
@george1421 For portability you will need Wayne’s script to update the fog settings based on the IP address of your FOG-Pi server. https://github.com/FOGProject/fog-community-scripts
@BedCruncher i just did it again on my fog-pi. it worked as outlined
Thanks for that link. Looking over it seems it should be still applicable with 1.3.2. I will try to get it working this evening or tomorrow. Hopefully it still works, but if not, then I will try to play with it as an intellectual exercise.
I have a tutorial on how to do this (understand its not supported).
There was only 2 changes that need to be made. I haven’t updated the line numbers for 1.3.2 just yet. But they should be pretty close to the 1.3.0 references.