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

    Posts made by ch3i

    • RE: Basics installation questions

      @plegrand said:

      @ch3i FOG 1.2

      With your debian version ,you need to use SVN version : https://wiki.fogproject.org/wiki/index.php/SVN

      posted in Linux Problems
      ch3iC
      ch3i
    • RE: Basics installation questions

      With your Debian 8 are you using FOG SVN or FOG 1.2 version ?

      posted in Linux Problems
      ch3iC
      ch3i
    • RE: Basics installation questions

      @plegrand said:

      @ch3i how i start it ?
      service …
      systemctl …
      /etc/init.d …
      i havent /var/log/fog/ directory

      I dont understand how to post under you !! 😉

      service FOGMulticastManager start

      posted in Linux Problems
      ch3iC
      ch3i
    • RE: Apache Fails (trunk4004)

      @mrbrown said:

      apache.jpeg

      Not sure but I think it’s a problem in the check of the installation of this package in the installation.

      posted in FOG Problems
      ch3iC
      ch3i
    • RE: Basics installation questions

      @plegrand said:

      @ch3i Yes

      Could your start the FOGMulticastManager service and post the result of tail -n 50 /var/log/fog/multicast.log ?

      posted in Linux Problems
      ch3iC
      ch3i
    • RE: Basics installation questions

      @plegrand said:

      For the first error i’ve got internet connection
      For the second
      -rwxr-xr-x 1 root root 1882 sept. 15 15:44 /etc/init.d/FOGImageReplicator
      -rwxr-xr-x 1 root root 1948 sept. 15 15:44 /etc/init.d/FOGMulticastManager
      -rwxr-xr-x 1 root root 1794 sept. 15 15:44 /etc/init.d/FOGScheduler

      Thanks for your quick answer !!

      Apache and MySQL are running ?

      posted in Linux Problems
      ch3iC
      ch3i
    • RE: Basics installation questions

      @plegrand said:

      During pxe boot of a client, the console is in qwerty, is there a way to pass it on azerty ?

      Create PXE files with AZERTY layout… I’ve the same problem 😉

      posted in Linux Problems
      ch3iC
      ch3i
    • RE: Basics installation questions

      @plegrand said:

      On the web interface, i’ve got this error :
      Estimated FOG sites: Error contacting server
      Latest Version: Error contacting server

      I’ve these errors on computers which connected to the web Interface and have not Internet connection.

      @plegrand said:

      Failed to start FOGMulticastManager.service: Unit FOGMulticastManager.service failed to load: No such file or directory.

      Could you try and post the result of ls -l /etc/init.d/FOG* ?

      posted in Linux Problems
      ch3iC
      ch3i
    • RE: Fog Install Fails on Apache

      @mrbrown said:

      I have the same problem - Ubuntu 12.04 - tried 1.2.0 and trunk 4004, 4013

      You have not the same problem, it’s on a library installation.

      posted in FOG Problems
      ch3iC
      ch3i
    • RE: Apache Fails (trunk4004)

      @mrbrown said:

      foginstall.log

      Could you try sudo apt-get install libapache2-mod-php5 ?

      posted in FOG Problems
      ch3iC
      ch3i
    • RE: FOG 1.2.0 on Ubuntu 12.04 LTS but now want to add Windows 2012 NFS nodes, can't get it working please help!

      @Kevin-Talbot I’ve deleted your post… security. Please use PM.

      posted in FOG Problems
      ch3iC
      ch3i
    • RE: FOG 1.2.0 on Ubuntu 12.04 LTS but now want to add Windows 2012 NFS nodes, can't get it working please help!

      @Kevin-Talbot said:

      root@fog-server:~# ls -lhart /images
      total 8.5K
      -rwxrwxrwx 1 4294967294 4294967294 0 Mar 2 2015 .mntcheck
      drwxr-xr-x 25 root root 4.0K Sep 11 15:30 …
      drwxrwxrwx 2 4294967294 4294967294 64 Sep 15 10:18 dev
      drwxrwxrwx 2 4294967294 4294967294 4.0K Sep 15 10:19 .
      root@fog-server:~#

      All of your nodes are syncing ? It’s the same storage group ?

      posted in FOG Problems
      ch3iC
      ch3i
    • RE: FOG 1.2.0 on Ubuntu 12.04 LTS but now want to add Windows 2012 NFS nodes, can't get it working please help!

      @Kevin-Talbot said:

      Hi Tom, sorry I’m just panicking now, did you see my last post? its seems I have lost all my images

      Please post the result of :
      ls -lhart /images

      Edit : using a terminal/ssh connection on your FOG server.

      posted in FOG Problems
      ch3iC
      ch3i
    • RE: find: impossibile fare fork: Impossibile allocare memoria php5-common

      @fabritrento Try apt-get autoremove

      posted in FOG Problems
      ch3iC
      ch3i
    • RE: FOG 1.2.0 on Ubuntu 12.04 LTS but now want to add Windows 2012 NFS nodes, can't get it working please help!

      Hi, it seem that’s a problem on your NFS exports configuration, have you tested the NFS connection with a linux client ?

      posted in FOG Problems
      ch3iC
      ch3i
    • RE: after a upgrade to ubuntu 14.04LTS fog don't work anymore

      @fabritrento said:

      after a upgrade to ubuntu 14.04LTS fog don’t work anymore.

      Hi, what doesn’t work ? :

      • Web Interface ?
      • FoG Services ?

      Can you post some logs ? Like apache error.

      posted in FOG Problems
      ch3iC
      ch3i
    • RE: setting tftp timeout

      Hi, if it cannot find the server FOG, FOG can’t tell to the client to boot to hard disk 😉 I think you can define that in your BIOS.

      posted in FOG Problems
      ch3iC
      ch3i
    • RE: [SCRIPTS] Customization of Ubuntu - "Fog Service" for Ubuntu

      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.

      posted in General
      ch3iC
      ch3i
    • RE: [SCRIPTS] Customization of Ubuntu - "Fog Service" for Ubuntu

      @ch3i said:

      Sleep on hostname.php is removed, I’ll try to post a version with hostname.php instead MySQL request.

      @Tom-Elliott It seem to be back

      posted in General
      ch3iC
      ch3i
    • RE: [SCRIPTS] Customization of Ubuntu - "Fog Service" for Ubuntu

      Update host_rename_fog :

      • Add the “dots” function used in FOG scripts like the installer (more sexy lol)
      • Checking Mysql status
      • Update MAC/Hostname checking (a better compatibility with multiple eth cards)

      To use that script please create a user in mysql database with select right only on tables : hosts and hostMAC !

      posted in General
      ch3iC
      ch3i
    • 1
    • 2
    • 13
    • 14
    • 15
    • 16
    • 17
    • 45
    • 46
    • 15 / 46