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

    Posts made by anisgh

    • Is there a way to encrypt the hard drive with FOG?

      Hi,
      I’m using FOG to deploy an Ubuntu image to several machines, I’m looking for a way to encrypt the hard drive during the deployment (something like BitLocker on Windows).
      Have anyone ever done this or has an idea, on how to implement something like this? even a post installation encryption of the hard drive would do, but an encryption during the deployment of the image would be awesome! Obviously, the most important thing, is that every hard drive has its own encryption password at the end …

      Thanks

      posted in General
      A
      anisgh
    • Post install script not running

      Hello,

      So I’m using FOG to deploy an Ubuntu image, of course the image I’m deploying is not ‘syspreped’, that means it already has some specific settings (like users etc …) belonging to the machine I captured it from, this is because it is not possible to sysprep an Ubuntu image like in Windows, and also it is harder because FOG Client does not support Ubuntu.
      So to solve this problem, I tried writing a post download script fog.dothings I saved it to /images/postdownloadscripts so it could run after the image is deployed to the new machine and try to get rid of some of these specific settings, the script looks like this:

      #!/bin/bash
      
      apt update
      apt upgrade
      apt install --force-yes whois traceroute ntpdate net-tools sysstat iptables ethtool 
      ufw --force-yes disable
      apt purge --force-yes ufw
      timedatectl set-timezone Europe/Berlin
      cd /etc/systemd/
      rm -f timesyncd.conf
      killall -u FogMaster && deluser --remove-home -f FogMaster
      

      I’m trying to do some simple things like installing some packages, resetting the time zone, and deleting a user called FogMaster from the deployed image and its home directory.
      The script is not working, I’m getting a bunch of command not founds errors when the post download script tries to run.
      Here is how my fog.postdownload looks like:

      #!/bin/bash
      # This file serves as a starting point to call your custom postimaging scripts.
      ## <SCRIPTNAME> should be changed to the script you're planning to use.
      ## Syntax of post download scripts are
      #. ${postdownpath}<SCRIPTNAME>
      . ${postdownpath}/fog.dothings
      
      posted in General
      A
      anisgh
    • RE: Sysprepping an Ubuntu image

      @george1421 Let’s say when I installed Ubuntu, during the installation a user ‘X’ was created with a specific password. Now let’s say I captured that image with FOG and deployed it to another machine then that other machine would have a user ‘X’ on it with the same password, that’s the problem I’m facing. A perfect scenario would be that this image that I captured, when deployed on another machine would ask the user to create a new account, or at least to login with his account present on an active directory (adding the deployed Ubuntu image to the active directory is a problem I’m gonna deal with later)
      I managed to handle the host name change with a post install script, that was easy to do.
      As for the booting from an ISO image using FOG, I followed your tutorial here which was pretty clear, but sadly I’m stuck in this loop after trying to boot from the ISO

      loop.PNG

      after a quick google search, it seems to me this is not possible anymore in the latest version of Ubuntu …

      posted in General Problems
      A
      anisgh
    • RE: Sysprepping an Ubuntu image

      @george1421 Thanks for the reply!
      I’m trying to capture an Ubuntu image and deploy it to other computers using FOG.
      The problem I’m facing is when I install Ubuntu on a machine and then capture it, when deployed on other machines, it is 100% identical to the captured image, which is obviously not good, as every machine should have its own hostname, user names and password should not carry on from the captured image to the deployed image etc …
      I understand this is easily done on Windows using the FOG client (does not work on Linux) or Sysprep (not available for Linux).
      I just thought of a work-around: As an image I can use an raw ISO Ubuntu image (which I can customize with software, configs etc … using Cubic for example) and then deploy this image with PXE using FOG, this would solve 95% of my problems, only if I knew how to configure FOG in such a way to boot from ISO …

      posted in General Problems
      A
      anisgh
    • Sysprepping an Ubuntu image

      Hello,

      Is there a way to make a capture-ready Ubuntu image? something like Sysprep for Windows, where you remove all the user-specific data from the image (like user accounts, passwords, etc …) to make a ‘golden’ universal image ready to be capture by FOG and then deployed on other computers.

      posted in General Problems
      A
      anisgh
    • customizing Ubuntu deployed images

      Hi,
      I’m using FOG to exclusively capture and deploy Ubuntu images (no Windows is involved), everything is working fine but I have 2 customization issues:

      • The computer name (and user name), and passwords are always the same as the captured original image, is there a way (or workaround) to customize this, so that every machine gets at least its own name after deployment?

      • Is there a way to automatically join the deployed machine to an AD? I know this is easily done with FOG in the case of a Windows installation, but is there a workaround to make this happen on Ubuntu?

      For both issues, I thought about writing a BASH script and running it as a Snapin with the deployment, but how could I write such scripts? or does anyone have working scripts that do this?

      Thank you

      posted in General
      A
      anisgh
    • RE: Configuration for capturing and deploying ubuntu images

      @george1421 I found this tutorial on the wiki page, this is what I want to do, but I don’t know if this is up to date and if it’s going to work on my pure Ubuntu capturing/deploying process.

      posted in General
      A
      anisgh
    • RE: Configuration for capturing and deploying ubuntu images

      @george1421 This seems pretty awesome! thank you.
      One last question: Can I configure my Ubuntu golden image to automatically join an Active Directory when deployed on a new machine using FOG? in other words: can FOG automatically add my new hosts to the active directory? if yes, how to configure this?

      posted in General
      A
      anisgh
    • RE: Configuration for capturing and deploying ubuntu images

      @george1421 Thank you for your response!

      What about software? let’s say I have LibreOffice installed on the Ubuntu I’m about to clone, will this be also imaged and deployed to my other clients? or should I reinstall all the software afterwards using snapins?

      posted in General
      A
      anisgh
    • Configuration for capturing and deploying ubuntu images

      Hello,

      I have a working FOG Server (latest version), I want to use it to capture and deploy Ubuntu images. Is there something I should reconfigure in my FOG? or in my Ubuntu installation that I’m going to capture? how do I set up my DHCP server for this? or should I go ahead normally like I’m working with Windows images?

      Thank you

      posted in General
      A
      anisgh
    • RE: Installation stuck on centOS

      @sebastian-roth to respond to your second question, I’m just trying to install FOG for the first time ever, just gonna try it and get familiar with it that’s all, that is why I’m installing it on a virtual machine (which obviously is connected to the internet).

      Now it would be optimal if I could install it on a Debian distribution, as I mentioned in my question above, the installation got stuck when trying to install apache2. I Installed apache manually and now after running the installation this is what I get:

      * Installation Started
      
      * Testing internet connection.................................Done
      * Adjusting repository (can take a long time for cleanup).....OK
      * Preparing Package Manager...................................OK
      * Packages to be installed:
      
             apache2 bc build-essential cpp curl g++ gawk gcc genisoimage git gzip ht                                                                                                             mldoc isc-dhcp-server isolinux lftp libapache2-mod-php libc6 libcurl4 liblzma-de                                                                                                             v m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server ph                                                                                                             p php-bcmath php-cli php-curl php-fpm php-gd php-gettext php-json php-ldap php-m                                                                                                             bstring php-mysql php-mysqlnd sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd w                                                                                                             get xinetd zlib1g
      
      
      * Skipping package:   apache2.................................(Already Installe                                                                                                             d)
      * Skipping package:   bc......................................(Already Installe                                                                                                             d)
      * Skipping package:   build-essential.........................(Already Installe                                                                                                             d)
      * Skipping package:   cpp.....................................(Already Installe                                                                                                             d)
      * Skipping package:   curl....................................(Already Installe                                                                                                             d)
      * Skipping package:   g++.....................................(Already Installe                                                                                                             d)
      * Skipping package:   gawk....................................(Already Installe                                                                                                             d)
      * Skipping package:   gcc.....................................(Already Installe                                                                                                             d)
      * Skipping package:   genisoimage.............................(Already Installe                                                                                                             d)
      * Skipping package:   git.....................................(Already Installe                                                                                                             d)
      * Skipping package:   gzip....................................(Already Installe                                                                                                             d)
      * Skipping package: htmldoc...................................(Does not exist)
      * Skipping package: isc-dhcp-server...........................(Does not exist)
      * Skipping package: isolinux..................................(Does not exist)
      * Skipping package: lftp......................................(Does not exist)
      * Installing package: libapache2-mod-php......................OK
      * Skipping package:   libc6...................................(Already Installe                                                                                                             d)
      * Skipping package:   libcurl4................................(Already Installe                                                                                                             d)
      * Skipping package:   liblzma-dev.............................(Already Installe                                                                                                             d)
      * Skipping package:   m4......................................(Already Installe                                                                                                             d)
      * Installing package: mariadb-client..........................Failed! (Will try                                                                                                              later)
      * Skipping package:   mariadb-server..........................(Already Installe                                                                                                             d)
      * Skipping package:   net-tools...............................(Already Installe                                                                                                             d)
      * Skipping package:   nfs-kernel-server.......................(Already Installe                                                                                                             d)
      * Skipping package:   openssh-server..........................(Already Installe                                                                                                             d)
      * Skipping package:   php.....................................(Already Installe                                                                                                             d)
      * Skipping package: php-bcmath................................(Does not exist)
      * Skipping package:   php-cli.................................(Already Installe                                                                                                             d)
      * Skipping package:   php-curl................................(Already Installe                                                                                                             d)
      * Skipping package: php-fpm...................................(Does not exist)
      * Skipping package:   php-gd..................................(Already Installe                                                                                                             d)
      * Skipping package: php-gettext...............................(Does not exist)
      * Skipping package:   php-common..............................(Already Installe                                                                                                             d)
      * Skipping package: php-ldap..................................(Does not exist)
      * Skipping package:   php-mbstring............................(Already Installe                                                                                                             d)
      * Skipping package:   php-mysql...............................(Already Installe                                                                                                             d)
      * Skipping package:   php-mysql...............................(Already Installe                                                                                                             d)
      * Skipping package: sysv-rc-conf..............................(Does not exist)
      * Skipping package:   tar.....................................(Already Installe                                                                                                             d)
      * Skipping package: tftpd-hpa.................................(Does not exist)
      * Skipping package: tftp-hpa..................................(Does not exist)
      * Skipping package:   unzip...................................(Already Installe                                                                                                             d)
      * Skipping package: vsftpd....................................(Does not exist)
      * Skipping package:   wget....................................(Already Installe                                                                                                             d)
      * Skipping package: xinetd....................................(Does not exist)
      * Skipping package:   zlib1g..................................(Already Installe                                                                                                             d)
      * Updating packages as needed.................................OK
      * Installing now everything is updated........................Failed!
      
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      !! The installer was not able to run all the way to the end as   !!
      !! something has caused it to fail. The following few lines are  !!
      !! from the error log file which might help us figure out what's !!
      !! wrong. Please add this information when reporting an error.   !!
      !! As well you might want to take a look at the full error log   !!
      !! in /root/fogproject-1.5.9/bin/error_logs/fog_error_1.5.9.log !!
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      
      Package mariadb-client is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source
      
      E: Package 'mariadb-client' has no installation candidate
      

      I know for sure the installation wasn’t successful, but I can’t understand why

      posted in Linux Problems
      A
      anisgh
    • Installation stuck on centOS

      Hi,
      I’m trying to do a new FOG installation on CentOS (VM), but the installation gets stuck on Preparing Package Manager.
      I also tried installing it on Debian but it gets stuck on Installing Package: apache2
      Why is the installation not moving forward?

      cap.PNG

      posted in Linux Problems
      A
      anisgh
    • 1 / 1