318 Inc. CTO Charles Edge and Solutions Architect alumni Zack Smith were back at the MacSysAdmin Conference in Sweden again this year, and the slides and videos are now available! All the 2012 presentations can be found here, and past years are at the bottom of this page.
Posts Tagged ‘Zack Smith’
MacSysAdmin 2012 Slides and Videos are Live!
Thursday, September 20th, 2012Visit our booth at Macworld 2010
Thursday, February 11th, 2010Come visit our booth at Macworld 2010 on the expo floor. We are located in Booth 566C and have a bunch of free schwag to give out.
We also have a number of sessions this year:
Hands-on Snow Leopard Server: Collaboration Services with Charles Edge
2/10 – 1:00PM to 3:00PM
Push: The Next Generation of Collaboration is Snow Leopard Server with Charles Edge
2/11 – 4:30PM to 6:00PM
Advanced Integration with Final Cut Server with Beau Hunter
2/12 – 3:30PM to 5:00PM
iPhone Mass Deployment with Zack Smith
2/13 – 2:30PM to 4:00PM
We hope to see you there!
318 & MacWorld 2010
Thursday, September 24th, 2009318 is proud to announce that we will have 3 speakers doing a total of 4 sessions at the upcoming MacWorld Conference & Expo in San Francisco in February. Speakers will be Beau Hunter, Zack Smith and Charles Edge.
We will also be announcing some events as the conference gets closer. If you are planning to attend then you can sign up here. We hope to see you there!
[ DNS ] Setting hostnames based on PTR
Friday, August 29th, 2008Xsan 2 will use the hostname to connect to a client, normally this is set correctly but due to some caching issues I had to manually set this via ARD the other day. Enjoy the quick code:
scutil --set HostName "$(host $(ifconfig en0 |
awk '/inet /{ print $2;exit}') |
awk '{print $NF;exit}' |
sed 's/.$//g')"
If would you like to contact me with comments or inaccuracies about this article, feel free
Using cmpindex4 to Fix Kerio Status and Index Files
Friday, May 9th, 2008Installation
This is a BASH(shell) script deployed on a few select client systems, it is not installed by default. To use it you must upload the script to the server using any method available such as ARD’s copy command, scp/sftp or as a last resort cut and paste via ARD (if the ARD UDP ports have not been opened on the host).
If you do cut and past to recreate the file, make sure to use a command line editor such as nano or vi ( or just use TextEdit with (Format ->Make Plain text Selected). The scripts creator suggests you place it in the mailstore directory (which could need to be done as root) i.e.
sudo cp ~/Desktop/cmpindex* /usr/local/kerio/mailserver/store/mail/
chmod +x usr/local/kerio/mailserver/store/mail/cmpindex*
Usage
Once installed the general use is fairly simple, the script does a line count on any index.fld (or status.fld ) file passed to it, i.e:
sudo /usr/local/kerio/mailserver/store/mail/cmpindex4 /path/to/mailserver/store/mail/318.com/anna/INBOX/index.fld
Alternatively using the preferred method you can use find command in conjunction with the cmpindex to search for all index.fld files in the mailstore, while this takes longer , it will yield a more complete fix for all index and status files having issues.
sudo -s
cd /usr/local/kerio/mailserver/store/mail/
find . -name index.fld -exec ./cmpindex4 {} \;
The scripts behavior is to compare the line numbers in the index.fld and status files and either correct the mistakes in size by recreating the file ( in the case of the status files ) or to rename the index.fld to index.bad automatically(which is picked up by the built in kerio reindex tool ) . The script will output the names of the files affected.The script uses the BASH shell, and thus will be default only work on *nix and Mac OS X Systems, however you can use it under cygwin on windows with the following commands installed sed,rm,touch,mv,perl,awk,grep. The script was created by a Kerio engineer and could use some rewriting but is generally solid.
Migrating FileVault Images (10.5)
Thursday, January 24th, 200810.5: Boot clean “new” machine, create default admin user(318admin) Login in as 318admin.
Run “id” terminal command on “old” machine to find out the “old” uid is
Run “id” terminal command on “new” machine to find out 318admin uid (prob 501)
Migrate /Library/Keychains/FileVaultMaster.keychain and FileVaultMaster.cer from old to new (same place) . This is for good measure, and migrates the master password (back door ) as well
Create new accnew ount with same shortname and password.(password must match old account for FV image to work ,This will migrate the keychain as well) Check the “Turn on FileVault protection” box when creating the new account
Right click on the new “zack” user in system preferences >accounts and choose “Advanced Options” 10.5+
If old uid is not the same as this current uid change it to that old value , if however that uid conflicts with 318admin(i.e. they are both 501) that you discovered above then just leave it and you will have an extra step below.
We don’t need the fresh FV images so on the NEW machine so we can move it or delete it, and clean it up when done:
“sudo mv /Users/zack/ /Users/fresh.zack”
Copy the old machine’s /Users/zack/zack.sparsebundle to the new machine /Users/zack/zack.sparsebundle (10.5->10.5 only)
Change the ownership on the migrated home directory folder and FV image inside “sudo dscacheutil -flushcache”” “sudo chown -R zack:zack /Users/zack”
Now if earlier you changed the current zack uid to the old one, you are done
however if you had a uid conflict with 318admin above you need to mount the diskimage (with zack password), choose get info and uncheck “ignore permissions on this volume”, then run “chown -R zack:zack /Volumes/zack” to change the uids on within the disk image itself. If you migrated the permissions over from the old machine(i.e cp -Rp) then you won’t be able to just double click on the images to mount it as you don’t have access to the parent folder, so you can run: sudo hdid /Users/zack/zack.sparsebundle to mount it via the c/l (you will be prompted for the password), then run the chown -R zack:zack /Volumes/zack as mentioned above For good measure set the permissions to user=rwx group= other = using: “sudo chmod -R 700 /Users/zack” For good measure you can cleanup the “fresh” home dir “rm -r /Users/fresh.zack” or drag to the trash the UI as “rm -r” can be bad when using /Users/ if you make a mistake.