• Enumerating disks and partitions

    7
    2 Votes
    7 Posts
    3k Views
    S

    Well, let’s hope that fdisk is not doing any unnecessary checks causing us issues then… 😉

    The function itself looks pretty straight forward, I like it this way.

  • Automating Git Updates for FOG

    4
    3 Votes
    4 Posts
    3k Views
    Tom ElliottT

    @Arrowhead-IT the size difference is the folder that stores the data for btsync. For git and svn you’re pulling the whole tree, including past revisions. In the case of btsync the initial pull is of the same size as the svn or git pulls but you’re only getting he changed files rather than a whole new revision.

  • The future of FOG

    10
    1 Votes
    10 Posts
    5k Views
    A

    @Tom-Elliott Will we be able to alpha/beta test FOG 2.0? I’d really be interested. 😄

  • 0 Votes
    11 Posts
    4k Views
    M

    @Tom-Elliott Confirmed, tasks are pulling down the boot files and image data from the correct node consistently, and updating nodes pulls from the newly set node as well. Awesome work, thanks!

  • Change Needed for VM to PXE boot to FOG...

    Solved
    30
    0 Votes
    30 Posts
    32k Views
    K

    @Tom-Elliott

    I have a fresh centos VM install that I can use, i’ll have a look today and install SVN trunk from scratch. There could well have been something in the SQL backup restore that SVN didn’t like. I’ll post in a fresh thread so that this doesn’t get polluted too much.

  • No Web Interface After Upgrade

    Solved
    27
    0 Votes
    27 Posts
    20k Views
    Tom ElliottT

    @Sebastian-Roth I believe I found the issue. It wasn’t, per say, a problem, but it was/is.

    I’ve done some rewriting to hopefully thwart this problem now. Hopefully I’ve made the DB stuff MUCH more stable as I don’t know what/why there were continuous problems. What I did find out is that INSERT/UPDATE/DELETE statements do NOT return rows of data, this (I hope/believe) was the problem of 0 ID’s being entered into the DB, as well as invalid hosts being added.

    I am hoping that things will be better, for all.

  • Warning! One or more CRC's don't match

    11
    0 Votes
    11 Posts
    10k Views
    E

    @Tom-Elliott Dude, your so the man!! thanks so much. Just had the same issue…

  • Does FOG have a timetick event?

    3
    0 Votes
    3 Posts
    1k Views
    A

    @Jbob Yes, spawning a new thread was what I was going to try out next. Thanks for the help. 😄

  • erase of Exports File

    Solved
    21
    0 Votes
    21 Posts
    10k Views
    Wayne WorkmanW

    Oh now I see what @olivierl did here… added those tags to the top and bottom.

    ##FOG-SHARE-START##
    ##FOG-END-SHARE##

    That’s pretty smart.

    But I don’t think the new blexports setting should be undone, but I think that this could be added…
    In fact something similar is not a bad idea for all of the conf files that fog touches…

  • Reset Encryption Data

    Solved
    8
    0 Votes
    8 Posts
    7k Views
    Matthieu JacquartM

    For information, I’ve just deployed 24 computers and 2 of them need to reset encryption data (if not, invalid security token in fog.log)

  • How to show inventory of devices on the dashboard page using hooks?

    8
    0 Votes
    8 Posts
    3k Views
    A

    @Tom-Elliott Ok I figured it out. The problem were the comments in the AddHostSerial.hook.php:

    /** @var $name the name of the hook */ public $name = 'AddHostSerial'; /** @var $description the description of what the hook does */ public $description = 'Adds host serial to the host lists'; /** @var $author the author of the hook */ public $author = 'Junkhacker with edits from Tom Elliott'; /** @var $active whether or not the hook is to be running */ public $active = true;

    Those @var $name Symbols are not very PHP friendly it seems. 🙂

    Thanks for the help, Tom. 😄

  • Reinstall fog server SVN 1.3 - certificate problem ?

    Solved
    8
    0 Votes
    8 Posts
    4k Views
    Matthieu JacquartM

    Thanks !

    Reason is that these 3 passwords were identical

    Web Interface -> Storage Management -> Your storage node -> Management Username & Management Password Web Interface -> FOG Configuration -> FOG Settings -> TFTP Server -> FOG_TFTP_FTP_USERNAME & FOG_TFTP_FTP_PASSWORD /opt/fog/.fogsettings -> storageftpuser & storageftppass

    But not the local ‘fog’ user’s password on the Linux FOG server

    It works like that on previous installation, this time I changed the 3 others passwords to match with local fog user and everything is fine 😉

  • REV 4850 2 storages nodes on the same server.

    5
    0 Votes
    5 Posts
    2k Views
    O

    yes it is

  • DHCP in /opt/fog/.fogsettings

    1
    0 Votes
    1 Posts
    588 Views
    No one has replied
  • Enabling IMAGE_PNG support in iPXE

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    Tom ElliottT

    When I used to try to build with IMAGE_PNG it would seemingly fail quite miserably. It should work now for you.

    I’ve readded the option and the efi binaries are now all updated as of SVN Version 4031, GIT Commit: 56601f2, and FOG Version: 4704.

    Hopefully this is what you all were looking for.

  • [SCRIPTS] Customization of Ubuntu - "Fog Service" for Ubuntu

    20
    2 Votes
    20 Posts
    12k Views
    ch3iC

    Below the version without using mysql :

    #!/bin/bash ######################################################### # Rename services with FoG, need mysql-client installed ######################################################### # ch3i - 09/11/2015 ######################################################### ### BEGIN INIT INFO # Provides: rename_host_fog # Required-Start: $all # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Rename host at boot-shutdown # Description: Rename host using FoG ### END INIT INFO ######################################################### # Functions ######################################################### FUNC_DOTS() { max=65 if [ -n "$1" ]; then n=`expr $max - ${#1}` echo -n " * ${1:0:max}" if [ "$n" -gt 0 ]; then for i in $(seq $n); do printf %s . done fi fi } ######################################################### # Configuration ######################################################### FOG_SERVER="ip_of_server" FOG_WEBROOT="fog" ######################################################### # Check FOG Server Status ######################################################### FUNC_DOTS "Check FOG web service Status" wget "http://$FOG_SERVER/$FOG_WEBROOT/index.php" -t 1 2>/dev/null if [ $? -eq 0 ] then echo "Done" ######################################################### # Get interfaces ######################################################### NETWORK_CARDS=($(ls /sys/class/net | grep eth)) ######################################################### # Get host name and domain from FoG database ######################################################### FUNC_DOTS "Checking hostname/domain configurations" for ETH in ${NETWORK_CARDS[*]} do # read mac address MAC=$(cat /sys/class/net/$ETH/address) # get mac address information from fog web server wget http://$FOG_SERVER/$FOG_WEBROOT/service/hostname.php?mac=$MAC -O /tmp/hostname_check 2>/dev/null HOST_NAME="$(grep 'ok=' /tmp/hostname_check | cut -d "=" -f2)" HOST_DOMAIN_NAME="$(grep 'ADDom' /tmp/hostname_check | cut -d "=" -f2)" if [ "$HOST_NAME" != "" ] then echo "Done ($HOST_NAME.$HOST_DOMAIN_NAME)" sleep 3 # A hostname is found - quit the loop break else echo "Error" FUNC_DOTS "Host not found in FOG database" echo "exiting" sleep 3 exit fi done ######################################################### # Check host configuration ######################################################### ACTUAL_FQDN=$(hostname --fqdn) if [ "$HOST_NAME.$HOST_DOMAIN_NAME" != "$ACTUAL_FQDN" -a "$HOST_NAME" != "" -a "$HOST_DOMAIN_NAME" != "" ] then ######################################################### # Update hostname file ######################################################### FUNC_DOTS "Updating /etc/hostname" echo $HOST_NAME >/etc/hostname echo "Done" ######################################################### # Update hosts file ######################################################### FUNC_DOTS "Updating /etc/hosts" echo "127.0.0.1 localhost" > /etc/hosts echo "127.0.1.1 $HOST_NAME.$HOST_DOMAIN_NAME $HOST_NAME " >> /etc/hosts echo "# The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts" >> /etc/hosts echo "Done" ######################################################### # Update interfaces file ######################################################### FUNC_DOTS "Updating /etc/network/interfaces" echo "# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback" > /etc/network/interfaces for ETH in ${NETWORK_CARDS[*]} do if [ "$ETH" != "lo" ] then echo "# $ETH Interface allow-hotplug $ETH iface $ETH inet dhcp" >> /etc/network/interfaces fi done echo "Done" ######################################################### # Clear persistent network cards ######################################################### FUNC_DOTS "Clearing persistent networks cards" if [ -f /etc/udev/rules.d/70-persistent-net.rules ] then rm /etc/udev/rules.d/70-persistent-net.rules fi echo "Done" ######################################################### # Logs and Reboot machine ######################################################### FUNC_DOTS "Building rename logs" echo "$(date) ::: Update successful with Hostname : $HOST_NAME and Domain : $HOST_DOMAIN_NAME" >> /var/log/rename_host_fog.log echo "Done" grub-reboot 0 /sbin/init 6 exit fi if [ "$HOST_NAME" == "" -a "$HOST_DOMAIN_NAME" == "" ] then echo "$(date) ::: Update failed : Failed to connect to Mysql Server" >> /var/log/rename_host_fog.log fi if [ "$HOST_NAME" != "" -a "$HOST_DOMAIN_NAME" == "" ] then echo "$(date) ::: Update failed : Domain name is missing" >> /var/log/rename_host_fog.log fi else echo "Error" FUNC_DOTS "Failed to connect to server" echo "Exiting" sleep 3 exit fi exit

    More slow because 10 seconds timeout in hostname.php request.

  • r4499 Task Management - Two thumbs up

    1
    2 Votes
    1 Posts
    730 Views
    No one has replied
  • Directory Cleaner

    Solved
    2
    0 Votes
    2 Posts
    2k Views
    Wayne WorkmanW

    @Matthew-Hood

    Yes.

    You may put the high traffic groups in a group, and then through the group, enable the directory cleaner feature.

    The directory cleaner feature is enabled and disabled on a per-host basis.

    Here is a screen shot for the service settings on just ONE host at my house. If I wanted to disable just the directory cleaner, I could. If I wanted to enable it, I could. If I wanted to enable it on a group, I could. Please also take into account that this is for the 1.3.0 Beta (Fog Trunk). So it might look differently in 1.2.0. Anything older than 1.2.0 and you’re on your own totally and I’d recommend you update.

    upload-e610f63d-9a77-494d-89ed-6ab5e8728288

  • SVN 3772 & New Client hostname change issue

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    T

    The update to the client fixed the issue.

    Thanks!

  • Automatic hardware detection & driver installs in FOG

    Solved
    37
    0 Votes
    37 Posts
    30k Views
    G

    @Tom-Elliott as it is in the fog.postdownload script, i think it is the system receiving the image

186

Online

12.3k

Users

17.4k

Topics

155.8k

Posts