Windows updates event can be triggered with:
wuauclt.exe /detectnow
Windows updates event can be triggered with:
wuauclt.exe /detectnow
The reason I created the make_fog_portable script is because we have about 70 sites serviced by VirtualBox servers.
The Oracle VirtualBox VM has a fixed MAC address.
Each of these sites is on its own IP subnet with its own scope properties.
That particular MAC address has an IP reservation, bootfile configuration and a DNS entry at every one of those sites/subnets. This allows any OVB VM to work at any site.
The same goes with the physical servers. If we change the subnet for that site, the script would automatically reconfigure the server at next reboot.
This has the added benefit of my being able to create a FOG server in my DEV environment, on my private scope and not have to worry about configuring the server with the IP of a foreign subnet; I just configure the name.
If you see something that I’ve done as blatantly wrong, not contrary to what you do but dead wrong, or you can expand upon what I’m doing, please do toss it up here.
touch /images/{,dev/}.mntcheck
sed -i.bak "s|ro,sync|rw,sync|g" /etc/exports
sed -i "s|rw,async|rw,sync|g" /etc/exports
sed -i.bak "s|;date.timezone =|date.timezone = Canada/Eastern|g" /etc/php.ini
sed -i.bak "s|DirectoryIndex index.html|DirectoryIndex /fog/index.php index.html|g" /etc/httpd/conf/httpd.conf
sed -i.bak "s|/management|/fog/management|g" /var/www/html/fog/index.php
sed -i.bak "s|\".*\..*\..*\..*\"|\$_SERVER['SERVER_ADDR']|" /var/www/html/fog/lib/fog/config.class.php
cp -f /etc/rc.local /etc/rc.local.bak
echo ' ' >> /etc/rc.local
echo 'make_fog_portable' >> /etc/rc.local
echo ' ' >> /etc/rc.local
chmod 755 /etc/rc.local
mysql_secure_installation
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Responses
- Enter current password for root:
<enter>
- Set root password?
Y
- New password:
<The_Password>
- Remove anonymous users?
Y
- Disallow root login remotely?
Y
- Remove test database and access to it?
Y
- Reload privilege tables now?
Y
sed -i.bak "s|snmysqlpass=''|snmysqlpass='ThePassword'|g" /opt/fog/.fogsettings
sed -i.bak "s|DATABASE_PASSWORD', \"\"|DATABASE_PASSWORD', \"ThePassword\"|g" /var/www/html/fog/lib/fog/config.class.php
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php70
php -v
yum clean all
yum makecache
yum update -y
history -c
reboot
… and that is my FOG Server.
This document assumes the following:
A. My CentOS 7.2.1511 recipe (for solely running a FOG Server) ( https://forums.fogproject.org/topic/8231/my-centos-7-2-1511-recipe-for-solely-running-a-fog-server )
B. How I Create a Ready-to-Deploy FOG Server git1.3.0-RC-10_svn5955 on CentOS 7. ( https://forums.fogproject.org/topic/8706/how-i-create-a-ready-to-deploy-fog-server-git1-3-0-rc-10_svn5955-on-centos-7-x-vm )
C. I deploy to VM or Physical systems containing 2 HDD. One for the Server, the other for the images.
D. I format HDD2 as NTFS from a Windows machine. We’re a Windows house and this allows me to easily disconnect and push/pull images when I cannot saturate a local network with large file transfers.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
01> Prepare DHCP & DNS for FOG Server(s)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Create IP Reservation in DHCP Scope
- Set DHCP options 66/67 for ipxe "undionly.kpxe"
- Create DNS
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
02a> Prepare Physical FOG Server Box
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
i. Flash and Program BIOS
ii. Set PXE Boot first
iii. Attach 80+ GB HDD to Controller Port 0
iv. Attach 1 TB HDD to Controller Port 2 Pre-formatted From Windows as NTFS
v. Quick Image "CentOS7_FOG...RTD"
vi. Shutdown when complete
vii. Program BIOS / set Boot Order to HDD ONLY
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
02b> Prepare Windows Host for Portable Oracle VirtualBox Machine FOG Server
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
i. Disk Management Create a 0.5 TB .VHD, NTFS, name: "xyzfogimages.vhd"
ii. Copy Standard Images to .VHD
iii. Detach .VHD
i. Copy "xyzfogimages.vhd" to "C:\VirtualBox\"
ii. Install "VirtualBox 5.0.18-106667"
i. Create a New Machine: xyzfog, Linux, Red Hat (64-bit), 2048 MB Memory, Create a virtual hard disk now, CREATE
ii. Create Virtual Hard Disk: "xyzfog", 0.5 TB, VHD, Dynamically allocated, CREATE
iii. Settings: System > Boot Order > Network ONLY
iv. Settings: Audio > Disable
v. Settings: Network > Attached to Bridged, Ethernet NIC, MAC Address: 01:23:45:67:89:AB (A Global MAC), OK
vi. PXE Boot and QuickImage "CentOS7_FOG...RTD"
vii. Shutdown when complete
viii. Settings: System > Boot Order > Hard Disk ONLY
ix. Settings: Storage > Controller SATA > Add Hard Disk "C:\VirtualBox\xyzfogimages.vhd"
x. Settings: Storage > Controller IDE > Add Optical Drive "VBoxGuestAdditions_5.0.18.iso" to Controller IDE
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
03> Configure Oracle VirtualBox FOG Server
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
sudo su
yum -y install dkms
yum -y groupinstall "Development Tools"
mkdir /media/cdrom
mount /dev/cdrom /media/cdrom
sh /media/cdrom/VBoxLinuxAdditions.run
umount /media/cdrom
reboot
- VBox: Remove optical disk from virtual drive
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
04> Initial Configuration of Any Server
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
sudo su
ntpdate ocsb.local
cfdisk /dev/sda
ip addr
vim /etc/sysconfig/network-scripts/ifcfg-eth0
Replace line: UUID="blahblahblah"
With: HWADDR="00:21:86:ed:37:c5"
echo xyzfog > /proc/sys/kernel/hostname
sed -i.bak 's|127.0.1.1.*|127.0.1.1\t'"xyzfog"'|g' /etc/hosts
echo xyzfog > /etc/hostname
sysctl kernel.hostname=xyzfog
cat /etc/fstab
sleep 3
cp -f /etc/fstab /etc/fstab.bak
if [ -b /dev/sdb1 ]; then
mount /dev/sdb1 /mnt/temp
echo -e "/dev/sdb1\t/images\tntfs\tdefaults\t0\t0" >> /etc/fstab
ls -la /mnt/temp
sleep 3
umount /mnt/temp
fi
cat /etc/fstab
sleep 3
reboot
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
03> Install FOG here
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
sudo su
chmod -R 777 /images
grep FOG_VERSION /opt/trunkgit/fogproject/packages/web/lib/fog/system.class.php | sed "s/^[ \t]*define(.FOG_VERSION., .\([0-9\.]*\).);/FOG Version in GIT: \1/"
grep FOG_VERSION /opt/trunksvn/fogproject/packages/web/lib/fog/system.class.php | sed "s/^[ \t]*define(.FOG_VERSION., .\([0-9\.]*\).);/FOG Version in SVN: \1/"
cd /opt/trunkgit/fogproject/bin
./installfog.sh
cd /opt/trunksvn/fogproject/bin
./installfog.sh
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Installer Responses for a FOG-Only Installation
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
@ What version of Linux would you like to run the installation for?
(1) Redhat Based Linux (Redhat, CentOS)
@ What type of installation would you like to do?
(N)ormal Server
@ Would you like DHCP to handle DNS?
N
@ Would you like to use the FOG server for DHCP service?
N
@ ... Would you like to install the additional language packs?
N
@ Would you like to donate computer resources to the FOG Project?
N
@ Are you sure you wish to continue?
Y
@ Is the MySQL password blank?
Y
@ Press [Enter} key when database is updated/installed
Browser visit http://x.x.x.x/fog/management
Install/Upgrade Now
@ Install / Update Successful!
<enter - in terminal session>
@ Setup complete!
... the initial Installation is complete
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
04> Post-Install Configurations
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
sudo su
echo '#!/bin/bash' > /bin/make_fog_portable
echo '#' >> /bin/make_fog_portable
echo '# make_fog_portable &' >> /bin/make_fog_portable
echo '#' >> /bin/make_fog_portable
echo '# This script is expected to be run as a job from /etc/rc.local' >> /bin/make_fog_portable
echo '# It will wait until an IP address is found, then use that IP' >> /bin/make_fog_portable
echo '# address to configure the FOG Server for that site.' >> /bin/make_fog_portable
echo '#' >> /bin/make_fog_portable
echo ' ' >> /bin/make_fog_portable
chmod 755 /bin/make_fog_portable
vim /bin/make_fog_portable
# Wait for IPv4 address
IP=`ip addr list eth0 | grep "inet " |cut -d" " -f6|cut -d/ -f1`
while [ -z $IP ]
do
echo "Waiting :05 for an IP Address" > /dev/kmsg
sleep 5
IP=`ip addr list eth0 | grep "inet " |cut -d" " -f6|cut -d/ -f1`
done
# Update FOG-relevant MySQL entries with current IP address
sleep 6
echo "Updating IP address for FOG_TFTP_HOST to be $IP [`date`]" > /dev/kmsg
mysql --user=root --password=ThePassword -e "UPDATE \`globalSettings\` SET \`settingValue\` = '$IP' WHERE \`settingKey\` ='FOG_TFTP_HOST';" fog
echo "Updating IP address for FOG_WEB_HOST to be $IP [`date`]" > /dev/kmsg
mysql --user=root --password=ThePassword -e "UPDATE \`globalSettings\` SET \`settingValue\` = '$IP' WHERE \`settingKey\` ='FOG_WEB_HOST';" fog
echo "Updating IP address for FOG_WOL_HOST to be $IP [`date`]" > /dev/kmsg
mysql --user=root --password=ThePassword -e "UPDATE \`globalSettings\` SET \`settingValue\` = '$IP' WHERE \`settingKey\` ='FOG_WOL_HOST';" fog
echo "Updating IP address for Storage Node DefaultMember to be $IP [`date`]" > /dev/kmsg
mysql --user=root --password=ThePassword -e "UPDATE \`nfsGroupMembers\` SET \`ngmHostname\` = '$IP' WHERE \`ngmMemberName\` ='DefaultMember';" fog
# - Update FOG Host Configuration file generated at Install
echo "Updating IP address in file .fogsettings to be $IP [`date`]" > /dev/kmsg
sed -i.bak "s|ipaddress='.*\'|ipaddress='$IP'|g" /opt/fog/.fogsettings
# - Update default.ipxe with current IP address
echo "Updating IP address in file default.ipxe to be $IP [`date`]" > /dev/kmsg
sed -i.bak "s|http://\([^/]\+\)/|http://$IP/|" /tftpboot/default.ipxe
# CentOS 7+
# echo "Restarting Critical FOG Services [`date`]" > /dev/kmsg
# systemctl restart FOGImageReplicator FOGMulticastManager FOGPingHosts FOGScheduler FOGSnapinReplicator mariadb vsftpd httpd
echo "Sleeping 10 seconds before releasing script [`date`]" > /dev/kmsg
sleep 10
This document assumes having followed:
A. My CentOS 7.2.1511 recipe (for solely running a FOG Server) ( https://forums.fogproject.org/topic/8231/my-centos-7-2-1511-recipe-for-solely-running-a-fog-server )
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
01> CHECKPOINT: Basic OS and pre-Configuration for FOG here
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
sudo su
echo xyzfog > /proc/sys/kernel/hostname
sed -i 's|127.0.1.1.*|127.0.1.1\t'"xyzfog"'|g' /etc/hosts
echo xyzfog > /etc/hostname
sysctl kernel.hostname=xyzfog
if [ ! -d /mnt/temp ]; then
mkdir /mnt/temp
fi
yum install -y epel-release
yum install -y clamav
yum install -y cifs-utils
yum install -y ntfs-3g
yum install -y rsync
yum install -y vim
yum install -y subversion
yum install -y git
yum install -y ntp ntpdate ntp-doc
systemctl enable ntpd.service
systemctl start ntpd
firewall-cmd --reload
firewall-cmd --permanent --add-service=ntp
ntpdate <server or domain of your choice>
systemctl status ntpd
ntpq -p
date -R
sleep 3
for SERVICE in http https tftp ftp mysql nfs mountd ntp rpc-bind proxy-dhcp samba; do
firewall-cmd --permanent --zone=public --add-service=$SERVICE
done
firewall-cmd --permanent --add-port=9000-9001/udp
firewall-cmd --permanent --add-port=49152-65532/udp
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p igmp -j ACCEPT
systemctl restart firewalld.service
sed -i "s|=enforcing|=permissive|g" /etc/selinux/config
yum clean all
yum makecache
yum update -y
sleep 3
reboot
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
02> CHECKPOINT: Prepare FOG Repositories here
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
sudo su
if [ ! -d /images ]; then
mkdir /images
fi
chmod -R 777 /images
if [ -d /opt/trunkgit ]; then
rm -rf /opt/trunkgit
fi
if [ -d /opt/trunksvn ]; then
rm -rf /opt/trunksvn
fi
if [ ! -d /opt/trunkgit ]; then
mkdir /opt/trunkgit
fi
if [ ! -d /opt/trunkgit/fogproject ]; then
cd /opt/trunkgit
git clone https://github.com/FOGProject/fogproject.git
else
cd /opt/trunkgit/fogproject
git pull
fi
if [ ! -d /opt/trunksvn ]; then
mkdir /opt/trunksvn
fi
if [ ! -d /opt/trunksvn/fogproject ]; then
mkdir /opt/trunksvn/fogproject
fi
svn co -r 5955 https://svn.code.sf.net/p/freeghost/code/trunk /opt/trunksvn/fogproject
grep FOG_VERSION /opt/trunkgit/fogproject/packages/web/lib/fog/system.class.php | sed "s/^[ \t]*define(.FOG_VERSION., .\([0-9\.]*\).);/FOG Version in GIT: \1/"
grep FOG_VERSION /opt/trunksvn/fogproject/packages/web/lib/fog/system.class.php | sed "s/^[ \t]*define(.FOG_VERSION., .\([0-9\.]*\).);/FOG Version in SVN: \1/"
sleep 3
history -c
shutdown now
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
03> CHECKPOINT: End of RTD FOG
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
04> CHECKPOINT: Export and Capture from here
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Continue to:
How I Deploy an RTD FOG Server git1.3.0-RC-10_svn5955 ( https://forums.fogproject.org/topic/8707/how-i-deploy-an-rtd-fog-server-git1-3-0-rc-10_svn5955 )
Updated with some new formatting .
@Tom-Elliott But that’s two steps; I’m aiming for a single step, direct solution.
And I have it now
sed -i.bak "s|DATABASE_PASSWORD', \"<oldpassword>\"|DATABASE_PASSWORD', \"<newpassword>\"|g" /var/www/html/fog/lib/fog/config.class.php
Changing the MySQL root password is contained in the command:
mysql_secure_installation
I’m still trying to figure out how to escape the replacement strings, since it contains both single quotes ( ’ ) and double quotes ( " ).
DATABASE_PASSWORD', "<oldnewpassword>"
sed -i.bak 's|DATABASE_PASSWORD', "<oldpassword>"|DATABASE_PASSWORD', "<newpassword>")|g' /var/www/html/fog/lib/fog/config.class.php
I want to explicitly document changing the password for root for MySQL without needing to re-run the installer as the Wiki suggests.
mysql_secure_installation
Enter current password for root: <enter>
Set root password? y
New password: <new password>
Remove anonymous users? y
Disallow root login remotely? y
Remove test database and access to it? y
Reload privilege tables now? y
Then we need to change everywhere FOG references the old password without rerunning the installer.
sed -i.bak "s|snmysqlpass='<oldpassword>'|snmysqlpass='<newpassword>'|g" /opt/fog/.fogsettings
sed -i.bak "s|DATABASE_PASSWORD', \"<oldpassword>\"|DATABASE_PASSWORD', \"<newpassword>\"|g" /var/www/html/fog/lib/fog/config.class.php
reboot
I’m working on that second sed command’s escape sequence just now. EDIT - completed
Is there anywhere else that needs to be changed? The purpose of this is to avoid re-running the installer just for the sake of a changed MySQL password.
Built on: Hyper-V 2012 R2.u1 VM
Captured with: Fog 1.3.0 RC10 (kernel 4.7.3, ipxe 827dd)
Captured as: Windows 10 Single Disk, Resizable, compression 3
Deployed: OK!
I can relate to working with heavy images. I’ve captured some as large as 482GiB
Looking at your picture, it appears that you created your image on a physical machine. Did you zero the HDD and verify it error free before you installed your OS?
I finally got my hands on a Lenovo ThinkPad OneLink+ to RJ45 Adapter ( model SC10J34224 ).
Using FOG RC10, kernel 4.7.3, it connects and fogs quite happily in UEFI mode using ipxe.efi and Legacy mode using undionly.kpxe.
Tested on a Lenovo ThinkPad Yoga 260 and a Lenovo ThinkPad 13.
Oh I realize moving the new client is preferred. I’m wondering to what extent does the new FOG support the legacy client. How hamstrung or not is the relationship?
Does the modern FOG, (eg: RC-8) fully support/work with the Legacy Client?
We have a weiner!
Using boot file “ipxe7156.efi” is the answer.
Hey ho, having fun with a batch of Lenovo ThinkPad 13 using the same USB Ethernet as what I used here.
Running RC8 with kernel 4.7.1 on CentOS 7.2.1511 . The server is fine, the image is fine.
I can PXE boot with UEFI fine, get into deploy image, select the image then it goes on its merry way, except that immediately after ok loading bzimage and init.xz, I’m stuck on a blank, black screen that gndn.
So far I’ve tried kernels back to 4.2.0, but no luck.
Booting in Legacy mode using undionly.kpxe is even less productive with it stalling at iPXE initialising devices…
I’ve tried with UEFI-BIOS 1.12 and 1.14, snp.efi, ipxe.efi, onboard Ethernet enabled/disabled (it would use the One Link which I’m not using) and Secure Boot is disabled.
I get the same results when trying to register.
Nothing show stopping, just an oddity.
cd /opt/trunkgit/fogproject
git pull
grep FOG_VERSION /opt/trunkgit/fogproject/packages/web/lib/fog/system.class.php | sed "s/^[ \t]*define(.FOG_VERSION., .\([0-9\.]*\).);/FOG Version in GIT: \1/"
Reports ‘1.3.0-RC-8’
svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/trunksvn/fogproject
Reports ‘Checked out revision 5950’
https://svn.code.sf.net/p/freeghost/code/trunk/ also reports p/freeghost/code - Revision 5950: /trunk
grep FOG_VERSION /opt/trunksvn/fogproject/packages/web/lib/fog/system.class.php | sed "s/^[ \t]*define(.FOG_VERSION., .\([0-9\.]*\).);/FOG Version in SVN: \1/"
Reports ‘1.3.0-RC-8’
Installing by:
cd /opt/trunksvn/fogproject/bin
./installfog.sh
But then… the web interface reports:
Tue Aug 23, 2016 14:36 pm
Running Version 1.3.0-RC-8
SVN Revision: 5949
I would strongly vote against renaming and joining the domain in a single reboot. This can lead to Active Directory issues. Namely you end up with two objects on the AD, one with the original name and another with the new name, or it may retain the old name anyways.
My vote is to mandatory restart after renaming, then mandatory restart after joining the domain. This is the MS method as well.
Attempting to do both in a single restart is doubly troublesome for us. We have automated scripts that sort the computers into new OUs and Security Groups depending on the naming structure of the computer. If it isn’t named properly before joining the domain, before the DC scripts automatically fire, then the machine isn’t sorted correctly and never will be until the object is manually removed from the domain and rejoined.
Thank you for the great info!
Excellent. Thank you! It’s good to know that a netdom pull is no longer required.