Fog customization
-
Not very important but was hoping to get some help on customizing the fog boot menu to adjust background image and color scheme
-
@BrendoJohnso you can set those at
FOG Configuration -> iPXE General Configuration
. The FOG client is also rebrandable through theFOG Configuration
page. -
I found those options but I’m unable to add say a background image to the folder because when moving the png file as it says I don’t have access to the folder with the account I built the computer with
-
@BrendoJohnso have you tried using
sudo
or moving the png file asroot
? Thewww
directory is owned by theapache
user, so your account won’t have permission to modify it by default. -
@joe-schmitt I used mv from the root command line but it still wouldn’t properly work what would be the sudo command for moving it
-
Try adding the user you want to use the mv command with by first using:
sudo gpasswd -a <username> www-data
Where the <username> is replaced with the actual account name you want.
That may give it permissions to move files into folders owned by www-data.Then do your mv command to move the file to the /var/www/fog/service/ipxe/ folder and run:
USE fog; UPDATE globalSettings SET settingValue = ‘<backgroundimgfile.png>’ WHERE (settingKey = ‘FOG_IPXE_BG_FILE’);
in the mysql prompt to update the file that is referenced for that setting.
-
@dahrell While the assistance is appreciated, I don’t think it proper to use mysql to update the field, s it leaves too much potential for mistakes. For example, if you forget the WHERE statement, you suddenly have ALL fog settings elements set to
'<backgroundimgfile.png>'
which would, essentially, break FOG. -
@BrendoJohnso simply run
sudo mv ....
where you replace....
with the correct arguments.sudo
just elevates a command to ensure it has root-level privileges.@Tom-Elliott is correct that the GUI setting I pointed to is the best, and safest, approach for setting the option as the DB schema is subject to change with each FOG release.
-
@brendojohnso When you say you used “mv from the root command line” what do you mean? Did you login as the root user? (From ubuntu this might be something like open terminal, then run
sudo -i
and enter your users password, orsu -
and enter the root users password.) -
@tom-elliott I used the sudo -i command and it requested my accounts password
-
Finally got it to properly move the image thank you all for your help