• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Asthea
    3. Posts
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 17
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by Asthea

    • RE: The future of FOG

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

      posted in General
      A
      Asthea
    • RE: Does FOG have a timetick event?

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

      posted in General
      A
      Asthea
    • Does FOG have a timetick event?

      I’m trying to make a plugin that scans a folder periodically to detect any addition/removal of files. The problem is, when I try to implement this functionality with a simple while(true)-loop and sleep(), FOG completely stops working. Does FOG have some sort of TimeTick-Event that I can use for this mechanism?

      Thanks. 🙂

      posted in General
      A
      Asthea
    • RE: Dashboard Widgets

      @ch3i Yes, I meant having widgets on the dashboard.

      @Jbob I see, thanks for the answer. 🙂

      posted in Feature Request
      A
      Asthea
    • RE: PXE Netboot Ubuntu 14.04 LTS Help

      Don’t forget to exportfs -a, I know I’m being captain obvious here, but I just want to make sure jbonilla doesn’t skip any steps.

      Just for comparison, this is how I boot:

      :ubuntu 
      kernel http://${fog-ip}/fog/iso/ubuntu64/desktop/casper/vmlinuz.efi
      initrd http://${fog-ip}/fog/iso/ubuntu64/desktop/casper/initrd.lz
      imgargs vmlinuz.efi root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:/var/www/fog/iso/ubuntu64/desktop/ locale=en_US.UTF-8 keyboard-configuration/layoutcode=us mirror/country=US
      boot || goto MENU
      

      with chmod set to 755 on the folders. Btw, your vmlinuz and initrd should usually be located in the casper folder.

      posted in FOG Problems
      A
      Asthea
    • RE: Dashboard Widgets

      Ups, sry, wasn’t specific enough I guess, I meant GUI widgets. 🙂

      posted in Feature Request
      A
      Asthea
    • RE: How to show inventory of devices on the dashboard page using hooks?

      @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. 😄

      posted in General
      A
      Asthea
    • Dashboard Widgets

      I’d be awesome if FOG had similar drag and drop’able widgets like e.g. Wordpress has. I’m thinking about coding this myself but seeing as I’m a complete newbie to PHP I figure it’d probably be faster to request this feature. 😄

      Any chance this will be implemented in the future?

      posted in Feature Request
      A
      Asthea
    • RE: How to show inventory of devices on the dashboard page using hooks?

      @Tom-Elliott I modified the VNC hook now to represent a minimal (working) example:

      class HostVNCLink extends Hook {
      	var $name = 'HostVNCLink';
      	var $description = 'Adds a "VNC" link to the Host Lists';
      	var $author = 'Blackout';
      	var $active = true;
      
      	function DashboardData($arguments) {
      		if ($_REQUEST['node'] == 'home') {
      			echo 'test';
      		}
      	}
      }
      $HookManager->register('DashboardData', array(new HostVNCLink(), 'DashboardData'));
      

      If I use the exact same code in e.g. AddHostSerial.hook.php (with the classnames changed ofc), the hook doesn’t work. This is what I don’t understand. Do I have to register AddHostSerial somewhere for it to work?

      posted in General
      A
      Asthea
    • RE: How to show inventory of devices on the dashboard page using hooks?

      @Tom-Elliott I’ve tried to copy and paste the VNC hook into e.g. AddHostSerial hook, they both use HOST_DATA so they should be interchangeable. Copying VNC code to AddHostSerial didn’t work but for some reason, copying AddHostSerial code to VNC did work. I don’t understand why though.

      posted in General
      A
      Asthea
    • RE: How to show inventory of devices on the dashboard page using hooks?

      Hmm, am I missing something or why does only the VNC hook work? All other hooks aren’t working when I set $active = true;. Btw, I’m using FOG 4700.

      posted in General
      A
      Asthea
    • RE: How to show inventory of devices on the dashboard page using hooks?

      Ok thanks. I’ll have a look those options then. 🙂

      posted in General
      A
      Asthea
    • How to show inventory of devices on the dashboard page using hooks?

      Not quite sure if this is the correct forum, but I don’t see any more appropriate categories, so I’ll ask my question here (sry if I missed something):

      I’m currently playing around with the (php) code and I was able to pretty much get anything I wanted going. But I seem to have trouble with the following: I want to show the inventory of every device on the dashboard page. I’m not quite sure how to do that though. I have tried several approaches but somehow none of them work (e.g. MySQL query, …). How do I go about when I want to show certain inventory elements of specific devices on the dashboard page, or to be more precise, which classes/functions do I have to call?

      Thanks. 🙂

      Edit: I decided to try to use hooks to solve this problem.

      posted in General
      A
      Asthea
    • RE: Host registration does not work (FOG r4682)

      @Wayne-Workman @Tom-Elliott Solved the problem. Somehow curl had a problem with me being behind a proxy, no idea why though, never had this problem before. As a result, bzimage, bzimage32, init.xz and init_32.xz were not downloaded correctly. I solved this problem by using wget to manually download those files (the download links are in /lib/common/functions.sh).

      Also another problem in /lib/common/functions.sh: I was not able to add the repository for php5-5.6, so I had to comment out those lines. In my case this is not a problem, as I’m now using Ubuntu 15.04, which already has php 5.6 preinstalled (at least if you dist-upgrade and update).

      Thanks again for the very fast help. 🙂

      posted in FOG Problems
      A
      Asthea
    • RE: Host registration does not work (FOG r4682)

      @Wayne-Workman Ok I installed everything on Ubuntu 15.04 now, still exactly the same problem. 😞

      posted in FOG Problems
      A
      Asthea
    • RE: Host registration does not work (FOG r4682)

      Ok I will test it. Thanks for the fast answer. 😄

      posted in FOG Problems
      A
      Asthea
    • Host registration does not work (FOG r4682)

      I am using the newest FOG revision (SVN) and can neither register to host anymore nor can I use services like retrieving system information. Whenever I try to e.g. register to host from the ipxe boot menu the registration process altogether seems to be skipped completely and the normal boot menu appears. When I use FOG 1.2.0 it works without any problems though. If I add the client pc manually via MAC address in FOG, the ipxe boot menu shows the client to be registered but if I schedule a simple task (e.g. get system information) the task is not executed.

      I’m running FOG on Ubuntu 12.04.5 in a VM (Virtualbox) while the client PC is a (real) physical pc. Also when I create an additional VM and use it as client and try to register that client to host I get the error message: FATAL: INT18: Boot failure.

      I have already tried restarting all services, nothing helped. Does anyone have a suggestion on what the problem might be?

      Thanks. 🙂

      posted in FOG Problems
      A
      Asthea
    • 1 / 1