Monday, 12 October 2015

Removing unwanted startup applications from OSX with launchd e.g.: Citrix Receiver

After installing Citrix Receiver it would startup without asking on boot / login.  Here is how I removed it:

Locate all launchd items with the following command
launchctl list | grep -v -e 'com.apple'

Output:
PID Status Label
597 0 com.microsoft.Outlook.75860
525 0 com.microsoft.autoupdate2.59672
522 0 com.microsoft.autoupdate.fba.194004
615 0 com.microsoft.alerts.daemon.52004
599 0 com.microsoft.outlook.databasedaemon.69044
520 0 com.microsoft.Word.68476
294 0 com.citrix.ServiceRecords
290 0 com.citrix.ReceiverHelper
- 0 com.citrix.AuthManager_Mac

Remove the unwanted startup items e.g.:
sudo launchctl remove com.citrix.ServiceRecords


Additional Info:
Go to the following directory
/Library/LaunchAgents

Remove the unwanted startup items e.g.:
rm com.citrix.*

Friday, 4 September 2015

Cleaning up .DS_Store and .apdisk and other (._ files) on OSX CIFS and SMB

After stopping OS X from creating .DS_Store and .apdisk files on CIFS and SMB, here are the commands to clean up the files.

To see the hidden .DS_Store .apdisk and other (._files) use the following command:
defaults write com.apple.finder AppleShowAllFiles YES

To clean up the use of .DS_Store and .apdisk files use the following commands:
sudo find /Volumes/CIFSVOLUME -name ".DS_Store" -depth -exec rm {} \;
sudo find /Volumes/CIFSVOLUME -name ".apdisk" -depth -exec rm {} \;

To clean up other (._files) use the following command:
dot_clean --keep=dotbar /Volumes/CIFSVOLUME

Monday, 6 July 2015

FAN noise and no TRIM after modifying iMAC and MacBookPro with SSDs.

Modified my iMAC and MBP with SSD drives on Yosemite 10.10.4:
- MBP with Intel Speed Demon.
- iMAC with Samsung 850 Evo.

Issues:
- MBP had TRIM disabled.
- iMAC had TRIM disabled
- iMAC fan was going fast.

Solution:
- Enable native OSX trim:
sudo trimforce enable

- Download software
SSD Fan Control

No need for custom software with Yosemite 10.10.4 and above.  TRIM can be enabled for non Apple SSD drives.

Sunday, 21 June 2015

Lync Web Plug-in for OSX

After a fresh install of OS X Yosemite I needed to install the Lync Web Plug-in for MAC.  After downloading LWAPluginInstaller.pkg the install came up with the following error:

"You cannot install Microsoft Lync Web App Plug-in in this location.  The Microsoft Lync Web App Plug-in installer does not allow its software to be installed here."



Click on the "Install for me only" selection again and the error goes away.


Thursday, 18 September 2014

WebDAV CIFS SMB NFS and .DS_Store don't mix in a Read/Write secure environment e.g.: Microsoft

Using OSX within a windows environment always has mixed results.  After some quick investigation I had discovered that OSX wants to always create .DS_Store file on both local and remote drives.   .DS_Store is a file that OSX uses to record data about the folder e.g.: view options etc.  Not the most important feature when its locking up / slowing down access. This is caused when you access WebDAV, CIFS, SMB and OSX does not have write access to create the file. 

To fix it open terminal and type the following:
defaults write /Library/Preferences/com.apple.SpotlightServer.plist ExternalVolumesIgnore -bool true

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true

Verify the setting:
defaults read com.apple.desktopservices

defaults read /Library/Preferences/com.apple.SpotlightServer.plist

Microsoft Office 2011 Updates for MAC

Quick links to Microsoft Office 2011 MAC updates for next time I need to find it in a hurry.

Monday, 30 June 2014

Microsoft Lync for MAC 2011 Debugging connection issues

After installing Lync 2011 for MAC I needed to debug why it was not connecting correctly.  Here is how to enable and view debug information.

- Go to Lync Preferences.

- Tick the "Turn on logging for troubleshooting".
- Locate your debug logs in: /Users/myusername/Library/Logs/Microsoft-Lync.log


Saturday, 21 June 2014

Outlook 2011 for MAC Identity control

One way to separate your work from home emails is the use of Outlook 2011 for MAC identities with the use of the Microsoft Database Utility

- Launch Outlook 2011 for MAC while holding [OPTION] key
- The following window will come up


- Rename the "Main Identity" to "Work"
- Create a new identity by clicking on the [+] button and name it "Home"
- Now click on button to make the "Home" identity default.


- Close down Microsoft Database Utility.

The identity is stored in:
/Users/<username>/Documents/Microsoft User Data/Office 2011 Identities

Next time outlook is launched it will use a new database with new setting, contact, calendars and emails.  To swap between identities just launch outlook by holding [OPTION] key and set a new default.


Wireshark XQartz and OSX Mavericks 10.9.X

Clean install of OSX Mavericks and its time for first network utility.  Moving from old version of OSX I discovered Mavericks requires a separate installation of X11.

Software:
- http://xquartz.macosforge.org and download XQuartz a X11 server.
- http://www.wireshark.org and download Wireshark network protocol analyser.

Installation:
- Install both XQuartz and Wireshark in that order.
- Launch Wireshark
- Window will popup asking for X11 installation.
- Select XQuartz

Issue:
- XQuartz and Wireshark OSX app launched, however wireshark X11 window will NOT pop up.

Fix:
- Close down wireshark and XQuartz (in that order)
- Start up XQuartz.
- Start up some inbuilt X11 Applications. e.g.: Terminal, Xman, Xlogo.
- Start up Wiresharek again.After about 5 min wireshark X11 window will POP up. 
- After the initial problem wireshark now works every time.

Sunday, 25 May 2014

Create OSX 10.9.X bootable install USB

After a few versions of OSX its time to upgrade.

- Start by downloading the OSX install from Appstore.
- Go to Apps Made by Apple.
- Locate the OSX install. In my case OS X Mavericks Version 10.9.3
- Hit download and wait.  The download is visible in the updates tap or in your launchpad. (PS its ~6G)
- Once downloaded installer will ask to install automatically.
- Cancel the installation.

- Next install a 8G (min) USB flash drive and make sure its mounted.
- Go to command shell (Terminal >_)
- Execute the following to get root access
$ sudo bash
Password: ********

- Next execute the command to install OSX onto the USB key.  (in my case /Volume/UNTITLED)
# /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/UNTITLED --applicationpath /Applications/Install\ OS\ X\ Mavericks.app

- The installation will start.
Ready to start.
To continue we need to erase the disk at /Volumes/UNTITLED.
If you wish to continue type (Y) then press return: y

- After the USB is erased it will take ~45min (in my case) to build the USB.
Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...
Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.
Done.

- For more info go to:   http://support.apple.com/kb/HT5856

Tuesday, 18 February 2014

Fusion 4 OVA import using OVF Format Tool

If you running into problems importing OVAs into fusion 4 here are some quick steps to follow:

- Download VMware Open Virtualization Format Tool (ovftool) from Vmware developer center.

- Install the DMG.

- Run the following (online):
$ /Applications/VMware\ OVF\ Tool/ovftool /Users/someuser/Downloads/UCSPE2.2/Cisco_UCS_Platform_Emulator_2.2.1bPE1.ova /Users/someuser/Downloads/UCSPE_Fusion/ucspe.vmx

Opening OVA source: /Users/someuser/Downloads/UCSPE2.2/Cisco_UCS_Platform_Emulator_2.2.1bPE1.ova
The manifest validates
Opening VMX target: /Users/someuser/Downloads/UCSPE_Fusion/ucspe.vmx
Writing VMX file: /Users/someuser/Downloads/UCSPE_Fusion/ucspe.vmx
Transfer Completed                    
Completed successfully


Monday, 23 December 2013

Outlook 2011 email search missing

A few weeks back my outlook 2011 search was not returning all the results.  So to fix it I recreated the index file on the local drive.

To list status of the index:
$ sudo mdutil -s -a
/:
Indexing enabled. 
/Volumes/HDD:
Indexing enabled.


To erase and rebuild index:
$ sudo mdutil -E /Volumes/SSD
/:
Indexing enabled. 

The search spotlight icon in the corner of your mac will have a little dot.


After the rebuild outlook will start to return all the results for email searches.


Saturday, 16 November 2013

Capture OSX Screen with screenshot

Almost once a day I take a screenshot of something on my screen.  Here are the commands I use.

Press the following three keys:

[COMMAND]+[SHIFT]+[4]  To capture a screen with crosshair pointer with mouse area selection

[MOUSE CLICK and HOLD] to select the area
[MOUSE CLICK and HOLD] + [SPACE] to position selection
[MOUSE CLICK and HOLD] + [OPTION] to mirror select
[MOUSE CLICK and HOLD] + [SHIFT] to fix one dimension of the selection
[MOUSE CLICK and HOLD] + [ESC] to not capture screen
[MOUSE CLICK and RELEASE] to capture the area

[COMMAND]+[SHIFT]+[3] To capture the whole screen.


The screenshots get dropped into your desktop in PNG format.  So if you don't like it change it like this:

$ defaults write com.apple.screencapture location [enter_path_here]
$ killall SystemUIServer

To change it back:
$ defaults write com.apple.screencapture location ~/Desktop
$ killall SystemUIServer

Monday, 9 September 2013

MS Project replacement for OSX MAC


This is a simple MS Project replacement that runs in OSX.  Opens and creates MPP files.  Add this to your tool kit of apps to move away from VMware.

GanttProject - (Open and Create MS Project MPP files) $0

Friday, 23 August 2013

Remove OSX Mail inline attachment preview

If you like the attachments to stay as attachments you will need to disable OSX Mail inline preview like this:

$ defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes



$ defaults write com.apple.mail DisableInlineAttachmentViewing -bool false

Sunday, 18 August 2013

Outlook for Mac 2011 unread email fix

If your having trouble identifying unread emails this may be a good little fix.  However every time microsoft updates the office for mac 2011 you will have to re apply the mod.

Go to location:
/Applications/Microsoft Office 2011/Microsoft Outlook.app/Contents/Resources

Replace Files:
ol_messageUnread.tiff
meetingInvite_16.tiff

OSX free up memory

In my travels I have discovered the purge command in OSX.  It forces disk cache to be purged (flushed and emptied).

man purge


purge