• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Vinay
    V
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 8
    • Best 0
    • Controversial 0
    • Groups 0

    Vinay

    @Vinay

    0
    Reputation
    290
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Vinay Unfollow Follow

    Latest posts made by Vinay

    • RE: Post Install Script does not work while deploying ubuntu 16.04 image using FOG.

      @sebastian-roth
      Would you help me with the procedure to include chroot in my below mentioned script as i messed it up adding multiple things.?

      posted in FOG Problems
      V
      Vinay
    • RE: Post Install Script does not work while deploying ubuntu 16.04 image using FOG.

      @sebastian-roth
      Thanks for the heads up.
      However, i did add the chroot in the script, still it does not work.
      Could you help me with adding this chroot command to my fog.sh script, how i can apply here.

      posted in FOG Problems
      V
      Vinay
    • RE: Post Install Script does not work while deploying ubuntu 16.04 image using FOG.

      @george1421
      Thank you for your reply George.
      It is just not taking systemctl and apt-get install commands.
      My fog.sh file shows as below:

      #!/bin/bash
      
      echo 'Installing required packages'
      apt-get update
      apt-get dist-upgrade
      apt-get -y install samba sssd ntp
      DEBIAN_FRONTEND=noninteractive apt-get -y install krb5-user
      
      # krb5.conf
      echo 'Configuring Kerberos'
      cat << EOF > /etc/krb5.conf
      [libdefaults]
      	default_realm = xx.xxx.COM
      # The following krb5.conf variables are only for MIT Kerberos.
      	krb4_config = /etc/krb.conf
      	krb4_realms = /etc/krb.realms
      	kdc_timesync = 1
      	ccache_type = 4
      	forwardable = true
      	proxiable = true
      # The following libdefaults parameters are only for Heimdal Kerberos.
      	v4_instance_resolve = false
      	v4_name_convert = {
      		host = {
      			rcmd = host
      			ftp = ftp
      		}
      		plain = {
      			something = something-else
      		}
      	}
      	fcc-mit-ticketflags = true
      [realms]
      	xx.xxx.COM = {
      		kdc = xxxxxxx.xx.xxx.COM
      		kdc = xxxxxxx.xx.xxx.COM
      		admin_server = xxxxxxx.xx.xxxx.COM
      	}
      [login]
      	krb4_convert = true
      	krb4_get_tickets = false
      EOF
      
      # ntp.conf
      echo 'Configuring NTP'
      sed -i.orig 's/^server/#server/g' /etc/ntp.conf
      
      cat << EOF >> /etc/ntp.conf
      server xxxxxxx.xx.xxxx.com
      server xxxxxxx.xx.xxxx.com
      EOF
      
      # smb.conf
      echo 'Configuring Samba'
      cp /etc/samba/smb.conf /etc/samba/smb.conf.orig
      cat << EOF > /etc/samba/smb.conf
      [global]
         workgroup = xxxx
         client signing = yes
         client use spnego = yes
         kerberos method = secrets and keytab
         realm = xx.xxxx.COM
         security = ads
         server string = %h server (Samba, Ubuntu)
         dns proxy = no
         log file = /var/log/samba/log.%m
         max log size = 1000
         syslog = 0
         panic action = /usr/share/samba/panic-action %d
         server role = standalone server
         passdb backend = tdbsam
         obey pam restrictions = yes
         unix password sync = yes
         passwd program = /usr/bin/passwd %u
         passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
         pam password change = yes
         map to guest = bad user
         usershare allow guests = yes
      EOF
      
      # sssd.conf
      echo 'Configuring SSSD'
      cat << EOF > /etc/sssd/sssd.conf
      [sssd]
      services = nss, pam, sudo
      config_file_version = 2
      domains = xx.xxxx.COM
      [domain/xx.xxxx.COM]
      id_provider = ad
      access_provider = ad
      cache_credentials = True
      override_homedir = /home/%d/%u
      default_shell = /bin/bash
      EOF
      
      sudo chown root:root /etc/sssd/sssd.conf
      sudo chmod 600 /etc/sssd/sssd.conf
      
      # hosts
      echo 'Configuring Hosts'
      cat << EOF >> /etc/hosts
      #xx.xxx.x.xx xxxxx.xx.xxxx.com xxxxxx
      #xx.xxx.xx.xx xxxxxx.xx.xxxx.com xxxxxxx
      EOF
      
      HOSTNAME=`hostname`
      sed -i.orig "s/${HOSTNAME}/${HOSTNAME}.ad.here.com ${HOSTNAME}/g" /etc/hosts
      
      # pam
      echo 'Configuring PAM'
      sed -i.orig '/session\s*required\s*pam_unix.so/a session required pam_mkhomedir.so skel=/etc/skel/ umask=0077' /etc/pam.d/common-session
      
      # lightdm
      echo 'Configuring LightDM'
      cat << EOF >> /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
      greeter-show-manual-login=true
      greeter-hide-users=true
      EOF
      cat << EOF >> /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
      allow-guest=false
      EOF
      
      # restart services
      echo 'Restarting SMBD'
      systemctl restart smbd.service
      echo 'Restarting NMBD'
      systemctl restart nmbd.service
      echo 'Restarting NTP'
      systemctl restart ntp.service
      
      # join the domain
      echo 'Obtaining Kerberos ticket'
      sudo kinit xxxxxx
      echo 'Getting info about the obtained ticket'
      sudo klist
      echo 'Joining to the domain'
      sudo net ads join -k
      
      echo 'Restarting SSSD'
      systemctl restart sssd.service
      
      . /usr/share/fog/lib/funcs.sh
      

      ERROR:
      0_1515654212046_f636028f-cc93-4ccb-a7fb-863bff33eaf9-image.png

      posted in FOG Problems
      V
      Vinay
    • Post Install Script does not work while deploying ubuntu 16.04 image using FOG.

      Hi Team,

      I am getting “Command not found” error while deploying ubuntu 16.04 OS to a new system.
      i used the Post install script in fog for ubuntu image deployment.
      I followed this link: https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script
      I am trying to install few applications and settings change for my requirement.
      I created fog.sh file and edited with required commands to do the task, added fog.sh file path to fog.postdownload file as per the above article, still the same issue.

      posted in FOG Problems
      V
      Vinay
    • RE: Need help in installing FOG client for Ubuntu images and AD integration

      @Joe-Schmitt @Sebastian-Roth
      Thank you for the info, i will try this and let you know the status.
      Could you guys help me with post install script for adding the system to AD and make the AD user as Sudoer with home directory created when login with AD credential first time, which would help me in adding the script while imaging multiple desktops at once.

      posted in Linux Problems
      V
      Vinay
    • RE: Need help in installing FOG client for Ubuntu images and AD integration

      @Joe-Schmitt

      posted in Linux Problems
      V
      Vinay
    • RE: Need help in installing FOG client for Ubuntu images and AD integration

      @Joe Schmitt, Thank you for your help, i have already installed the client as per the article, however i get the below error on fog.log:

      10/3/2017 4:59 AM Main Overriding exception handling

      10/3/2017 4:59 AM Main Bootstrapping Zazzles

      10/3/2017 4:59 AM Controller Initialize

      10/3/2017 4:59 AM Controller Start

      10/3/2017 4:59 AM Service Starting service

      10/3/2017 4:59 AM Bus Became bus server

      10/3/2017 4:59 AM Bus Emmiting message on channel: Status

      10/3/2017 4:59 AM Service Invoking early JIT compilation on needed binaries


      --------------------------------Authentication--------------------------------


      10/3/2017 4:59 AM Client-Info Version: 0.11.12

      10/3/2017 4:59 AM Client-Info OS: Linux

      10/3/2017 4:59 AM Middleware::Authentication Waiting for authentication timeout to pass

      10/3/2017 4:59 AM Middleware::Communication Download: http://192.168.44.129/fog/management/other/ssl/srvpublic.crt

      10/3/2017 4:59 AM Middleware::Authentication ERROR: Could not authenticate

      10/3/2017 4:59 AM Middleware::Authentication ERROR: Value cannot be null.
      Parameter name: authority


      --------------------------------Authentication--------------------------------


      10/3/2017 4:59 AM Client-Info Version: 0.11.12

      10/3/2017 4:59 AM Client-Info OS: Linux

      10/3/2017 4:59 AM Middleware::Authentication Waiting for authentication timeout to pass

      10/3/2017 5:00 AM Controller Stop

      10/3/2017 5:00 AM Service Stop requested

      10/3/2017 5:00 AM Middleware::Authentication ERROR: Could not authenticate

      10/3/2017 5:00 AM Middleware::Authentication ERROR:

      10/3/2017 5:00 AM Bus Emmiting message on channel: Status

      posted in Linux Problems
      V
      Vinay
    • Need help in installing FOG client for Ubuntu images and AD integration

      Hello Experts, I need help in setting up Ubuntu Desktop imaging using FOG installed on Ubuntu Server 16.04 LTS, We have 100+ users wanted to use Ubuntu Desktops, i have setup the FOG server on Ubuntu Server, i need help in installing FOG client on Ubuntu desktops and integrating AD as well. Could someone help me with complete guide for this?

      posted in Linux Problems
      V
      Vinay