Standalone fog server on a laptop umbutu 18.04
-
Has anyone set up a standalone fog server on a separate network, but it will give out DHCP addresses?
-
@fredlwal This might interest you: https://github.com/FOGProject/fog-community-scripts/tree/master/MakeFogMobile
-
@Wayne-Workman So , just copy this on a jump drive and run the install?
-
@Wayne-Workman When I copied it to a jump drive, the install file didn’t run, it says command not found, I’m doing this from a windows computer and then copy & pasting onto unbutu desktop 18.04.
-
@fredlwal The package assumes an internet connection is available during installation because dnsmasq and other things are required for this to work. If they are not installed, it attempts to install them.
-
@Wayne-Workman so once i’m connected to the internet I can then keep it on a separate network.
-
@Wayne-Workman
https://photos.app.goo.gl/psnhnEwpZHbbVGtM9Here is a screenshot of the issue.
-
@fredlwal Copying the script over is not enough. You need to make the file executable to be able to run it. Just guessing that this is missing here.
sudo -i cd /home/tech chmod +x install.sh MainScript.sh ./install.sh
-
@Sebastian-Roth @Wayne-Workman So do I install the latest fog install and then after that run the install.sh file? I’m getting a Syntax error: newline unexpected.
Thanks
-
@fredlwal I’m guessing the problem is that install.sh has no shebang line, so the system messes up.
Just a guess, though.
sudo bash install.sh
might work?
-
@Quazz et al.
Where is this install.sh file coming from? We have installfog.sh which has the #! code already.
-
-
@Quazz I think when there is not a shebang, the linux terminal interprets it as a bash script. I looked back in the commit history, there has never been a shebang in that script… it’s worked several times. At any rate, I’m going to add it.
-
@Wayne-Workman Theoretically it will use the current shell to try and execute it, yes.
But unexpected newline is typical of a wrong interpretator in my experience.
-
@Quazz @Wayne-Workman @Sebastian-Roth
So I downloaded the updated install.sh and here is what I get.
-
@fredlwal How did you download that script file? See the error means you downloaded a HTML file. Maybe this link will help you: https://github.com/FOGProject/fog-community-scripts/raw/master/MakeFogMobile/install.sh and https://github.com/FOGProject/fog-community-scripts/raw/master/MakeFogMobile/MainScript.sh
-
@Wayne-Workman while most distros tend to default the shell to /bin/bash, Ubuntu and Debian default to /bin/ash which is not the same as bash.
-
@Sebastian-Roth I just right clicked and did a save as link all files with the .sh ext.
-
I put in a shebang. It should work now, please re-download the install file.