• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. ch3i
    3. Topics
    • Profile
    • Following 1
    • Followers 4
    • Topics 37
    • Posts 916
    • Groups 1

    Topics

    • ch3iC

      [3516] Blank page Report Management

      Watching Ignoring Scheduled Pinned Locked Moved Solved Bug Reports
      2
      0 Votes
      2 Posts
      864 Views
      Tom ElliottT

      3517 should fix this issue. Thanks for reporting.

    • ch3iC

      Compression tests

      Watching Ignoring Scheduled Pinned Locked Moved Tutorials storage compression bandwith
      5
      1 Votes
      5 Posts
      4k Views
      D

      So I did my own testing and I don’t find there to be much difference for downloading, but compression level does seem to increase uploading time significantly. If interested, my post is titled more compression testing.

    • ch3iC

      [SVN 3377] OS name in inventory view

      Watching Ignoring Scheduled Pinned Locked Moved Solved Bug Reports
      1
      0 Votes
      1 Posts
      719 Views
      No one has replied
    • ch3iC

      Add the status of FOG services in the command "service"

      Watching Ignoring Scheduled Pinned Locked Moved Feature Request
      2
      0 Votes
      2 Posts
      977 Views
      Tom ElliottT

      Added.

    • ch3iC

      [SVN 3237] PXE issue

      Watching Ignoring Scheduled Pinned Locked Moved Solved Bug Reports
      4
      0 Votes
      4 Posts
      2k Views
      ch3iC

      Thank’s !!!

      The update solved it !

      Regards,
      Ch3i.

    • ch3iC

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

      Watching Ignoring Scheduled Pinned Locked Moved General
      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.

    • ch3iC

      Host custom attributes

      Watching Ignoring Scheduled Pinned Locked Moved Feature Request
      6
      0 Votes
      6 Posts
      2k Views
      ch3iC

      It’s seem to be OK, but no mass update with groups 😛

    • ch3iC

      [SCRIPT] Auto rename debian machine

      Watching Ignoring Scheduled Pinned Locked Moved General
      4
      0 Votes
      4 Posts
      3k Views
      ch3iC

      Hi,

      I updated the script :

      no limitation of number of ethernet card update /etc/network/interfaces

      [CODE]#!/bin/bash
      #########################################################

      Rename services with FoG, need mysql-client installed

      #########################################################

      ch3i - 02/05/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 Description: Rename host using FoG END INIT INFO

      #########################################################

      Configuration

      #########################################################
      FOG_SERVER=“xxx.xxx.xxx.xxx”
      FOG_DATABASE_NAME=“fog”
      FOG_USER=“user_with_select_right”
      FOG_PASSWORD=“password”

      #########################################################

      Get interfaces

      #########################################################
      NETWORK_CARDS=($(ls /sys/class/net/))

      #########################################################

      Get host name and domain from FoG database

      #########################################################
      for ETH in ${NETWORK_CARDS[*]}
      do
      if [ “$ETH” != “lo” ]
      then
      MAC=$(cat /sys/class/net/$ETH/address)
      TEMP_HOST_NAME=$(mysql --host=$FOG_SERVER --user=$FOG_USER --password=$FOG_PASSWORD $FOG_DATABASE_NAME -se “SELECT hosts.hostname FROM hosts INNER JOIN hostMAC ON ( hosts.hostID = hostMAC.hmHostID ) WHERE hostMAC.hmMAC = ‘$MAC’”);
      if [ “$TEMP_HOST_NAME” != “” ]
      then
      HOST_NAME=$TEMP_HOST_NAME
      HOST_DOMAIN_NAME=$(mysql --host=$FOG_SERVER --user=$FOG_USER --password=$FOG_PASSWORD $FOG_DATABASE_NAME -se “SELECT hosts.hostADDomain FROM hosts INNER JOIN hostMAC ON ( hosts.hostID = hostMAC.hmHostID ) WHERE hostMAC.hmMAC = ‘$MAC’”);
      fi
      fi
      done

      #########################################################

      Check host configuration

      #########################################################
      ACTUAL_FQDN=$(hostname --fqdn)
      if [ “$HOST_NAME.$HOST_DOMAIN_NAME” != “$ACTUAL_FQDN” ] && [ “$HOST_NAME” != “” ] && [ “$HOST_DOMAIN_NAME” != “” ]
      then
      #########################################################
      # Update hostname file
      #########################################################
      echo $HOST_NAME >/etc/hostname

      ######################################################### # Update hosts file ######################################################### 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

      ######################################################### # Update interfaces file ######################################################### 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

      ######################################################### # Clear persistent network cards ######################################################### if [ -f /etc/udev/rules.d/70-persistent-net.rules ] then rm /etc/udev/rules.d/70-persistent-net.rules fi ######################################################### # Logs and Reboot machine ######################################################### echo "$(date) ::: Update successful with Hostname : $HOST_NAME and Domain : $HOST_DOMAIN_NAME" >> /var/log/rename_host_fog.log /sbin/init 6

      fi
      if [ “$HOST_NAME” == “” ] && [ “$HOST_DOMAIN_NAME” == “” ]
      then
      echo “$(date) ::: Update failed : Failed to connect to Mysql Server” >> /var/log/rename_host_fog.log
      fi
      if [ “$HOST_NAME” != “” ] && [ “$HOST_DOMAIN_NAME” == “” ]
      then
      echo “$(date) ::: Update failed : Domain name is missing” >> /var/log/rename_host_fog.log
      fi
      [/CODE]

      Regards,
      Ch3i.

    • ch3iC

      SVN 2815 : Change hostname

      Watching Ignoring Scheduled Pinned Locked Moved Solved Bug Reports
      15
      0 Votes
      15 Posts
      5k Views
      2

      That wasn’t turned on, but FOG_NEW_CLIENT was. Must have been a test I forgot to change back.

      Thanks, everyone!

    • ch3iC

      SVN 2806 : Task Management

      Watching Ignoring Scheduled Pinned Locked Moved Solved Bug Reports
      14
      0 Votes
      14 Posts
      5k Views
      Wayne WorkmanW

      Same here, although this isn’t critical because things are working.

      Just reporting the bug is still here. FOG r3218

    • ch3iC

      Add iPerf to FoG

      Watching Ignoring Scheduled Pinned Locked Moved Solved Feature Request
      11
      0 Votes
      11 Posts
      5k Views
      Wayne WorkmanW

      @Tom-Elliott is iPerf still in the $PATH variable in the inits, and available?

    • ch3iC

      History in web Interface

      Watching Ignoring Scheduled Pinned Locked Moved Solved Feature Request
      3
      0 Votes
      3 Posts
      2k Views
      ch3iC

      [quote=“Tom Elliott, post: 38874, member: 7271”]There already is that feature, under the host and under reports.[/quote]

      OK… I left my brain in my bed, I think… 😄

    • ch3iC

      SVN 2580 : move files from /dev to /NAMEOFIMAGE

      Watching Ignoring Scheduled Pinned Locked Moved Solved Bug Reports
      20
      0 Votes
      20 Posts
      6k Views
      P

      [quote=“Tom Elliott, post: 39751, member: 7271”]ftp doesn’t in your case.

      have you tried logging via ftp to the system (directly) to see if there’s an error being reported during connection?[/quote]

      I can do some testing if I can have some help what to do, like a small step-by-step guide.

    • ch3iC

      SVN : 2455 restore bug

      Watching Ignoring Scheduled Pinned Locked Moved Solved Bug Reports
      17
      0 Votes
      17 Posts
      6k Views
      ch3iC

      Hi,

      I solve my problem by using another partition table :
      [CODE]/dev/sda1 – windows boot (ntfs)
      /dev/sda2 – windows system (ntfs)
      /dev/sda3 – linux / (ext4)
      /dev/sda4 – extended (-)
      /dev/sda5 – swap (-)
      /dev/sda6 – DATA (ntfs)
      [/CODE]

      Regards,
      Ch3i.

    • ch3iC

      FOG 1.2.0 : Multicast won't work

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      8
      0 Votes
      8 Posts
      4k Views
      ch3iC

      Hi,

      Thank’s for reply. Now it’s ok in the multicast.log, but parclone stay on Starting to restore image (-) to device (/dev/sda1).

      I don’t understand why in multicast the machine contact the storage node.

      In my EMC2 nas, I need to create a fog user with the same uid than the fog server ?

    • ch3iC

      Capone blank option

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      26
      0 Votes
      26 Posts
      12k Views
      J

      I had a go on my failing system today, when I rename run.php to something else I get the problem back, i.e. no options for capone.
      I’ve tried clearing the browser cache, on both Firefox on the server and ie8 on xp, and it makes no difference.
      My home system is fine, I’ll try building a new one and see if I can reproduce the problem.

    • ch3iC

      Lenovo Thinkcenter E31 Kernel

      Watching Ignoring Scheduled Pinned Locked Moved Hardware Compatibility
      1
      0 Votes
      1 Posts
      1k Views
      No one has replied
    • 1
    • 2
    • 2 / 2