• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Daëavelwyn
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 11
    • Best 0
    • Controversial 0
    • Groups 0

    Daëavelwyn

    @Daëavelwyn

    1
    Reputation
    970
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Daëavelwyn Unfollow Follow

    Latest posts made by Daëavelwyn

    • RE: Manage duplicates option

      Thanks for the reply chad-bisd, i’ve already writtent a script that parse my nmap scan to get unique MAC address, so, will use the csv import option (i have a 1600 computers park, so register by hand seems quite unrealistic…)

      posted in General
      D
      Daëavelwyn
    • Manage duplicates option

      Hello,
      is there any mechanism permiting to avoid duplicates MAC host in FOG ?

      posted in General
      D
      Daëavelwyn
    • RE: LSASS erros afer Imaging

      hmmm, i will give a try to your proposition as soon as possible. Thanks for the trick christopher 🙂

      posted in Windows Problems
      D
      Daëavelwyn
    • RE: LSASS erros afer Imaging

      arf, i’ve done the same as you (new kernel 3.8.6) but still have the lsass.exe error 😞

      posted in Windows Problems
      D
      Daëavelwyn
    • RE: Snow screen with HP Elitebook 8460p

      another trick, if it can helps : [url]http://forums.gentoo.org/viewtopic-p-6743962.html[/url]

      posted in FOG Problems
      D
      Daëavelwyn
    • RE: LSASS erros afer Imaging

      Hi,
      I’ve exactly the same issue, have you found any fix or workaround for this ?

      posted in Windows Problems
      D
      Daëavelwyn
    • RE: Having a next user level besides mobile user

      Dude man, you just save me so much time ! Really thanks for the code and for your comments about, it really, really helps me 🙂

      posted in Feature Request
      D
      Daëavelwyn
    • RE: Having a next user level besides mobile user

      @Fernando Gietz
      Hi, i’m using fog 0.32 and want to use such a feature, could you please post your modified files to do this ?

      posted in Feature Request
      D
      Daëavelwyn
    • RE: WOL not working in FOG

      I’m back !
      Ok, so, here are the modifiations i’ve done to correctly use WoL with FOG 0.32

      So, first of all, I will not use native FOG mechanism (fog/lib/WakeOnLan.class.php), because it doesn’t seem to work and I don’t know why ! I use etherwake instead.

      First of all,install etherwake

      [CODE]sudo aptitude install etherwake[/CODE]

      After installing, to use etherwake with a non root user, you have (on ubuntu) to change www-data user right.
      Become root :
      [CODE]sudo su[/CODE]
      then use the native editor for sudo to change right :
      [CODE]visudo[/CODE]
      In the file launched, add this :

      [CODE]User_Alias APACHE = www-data
      Cmnd_Alias FOG = /usr/sbin/etherwake, /usr/bin/nmap

      APACHE ALL = (ALL) NOPASSWD: FOG[/CODE]

      Then go to edit your /etc/group file to add www-data to sudo group :

      [CODE]sudo vim /etc/group[/CODE]

      and add www-data to the sudo group

      [CODE]sudo❌27:www-data[/CODE]

      Now you just have to modify your wol.php file.
      Be safe and make a backup of the original file:
      [CODE]
      sudo cp wol.php wol.php.origin
      [/CODE]

      Here is the whole code of my wol.php :

      [PHP]<?php
      @error_reporting(0);
      function __autoload($class_name)
      {
      require( “…/lib/fog/” . $class_name . ‘.class.php’);
      }
      $mac = new MACAddress($_GET[“wakeonlan”]);
      if ( $mac != null && $mac->isValid( ) )
      {
      #$wol = new WakeOnLan($mac->getMACWithColon());
      #$wol->send();

      echo "MAC Address : ".$mac."<br/>";
      system("sudo /usr/sbin/etherwake ".$mac);
      

      }
      ?>[/PHP]

      As you can notice, i’ve kept the function __autoload but not use the called class. Then I’ve just commented class call and add etherwake call.

      I’ve already read argument about the fact I let non root user having privileges and I know this workaround could be better coded (with a real error return code for example) but this is just an example which can avoid somewho to lost as many time as i’ve done !

      I hope wol function will be improved in the FOG futur release !

      EDIT : I’ve also tested with grouped computer and it works like a charm 😉

      posted in FOG Problems
      D
      Daëavelwyn
    • RE: WOL not working in FOG

      Hi gilou and ahachenberg, thanks for your reply, i will try this as soon as possible (probably next tuesday) and let you know if it works for me !

      posted in FOG Problems
      D
      Daëavelwyn