June 26, 2012Tech Find the Executing user in Bash $EUID is a new variable that show you the executing user ID
June 14, 2012June 14, 2012Tech Change Location of MYSQL Database Files Change the setting of “datadir” in /etc/mysql/my.cnf to point to the new location Or Symlink
June 11, 2012June 11, 2012Tech Self Service 8.52 with 10.7.4 update – name and password field blacked out Here’s a quick fix On your JSS Server go to Library/JSS/Tomcat/webapps/ROOT/theme/selfservice2. Copy the SelfService.css file to your desktop Open the file in […]
June 1, 2012June 11, 2012Tech Remove and Remake 10.7 Recovery HD When updating to 10.7.2, there’s a Lion Recovery Update that goes along with it. This is meant to update your Recover HD recovery partition […]
May 31, 2012May 31, 2012Tech Re-Enable Java in 10.7 via Login Hook #!/bin/bash # Only for Mac OS 10.7 if [ `sw_vers -productVersion | awk -F. ‘{ print $2 }’` -eq 7 ]; then […]
May 31, 2012May 31, 2012Tech Mac OS X 10.7.4 Change the Login window background Those of you who have been editing your login background since 10.7 through to 10.7.3 would have noticed that upgrading to 10.7.4 […]
May 30, 2012Tech How to format date for display or to use in a shell script Q. How do I format date to display on screen on for my scripts as per my requirements? A. You need to […]
May 29, 2012May 29, 2012Tech Using SED to extract text between 2 markers sed -n ‘/FOO/,/BAR/p’ test.txt This will extract all text between place holders FOO and BAR from the text file test.txt
May 26, 2012May 13, 2014Tech Simple SSH connect without password Setting up passwordless SSH logins is a great way to speed up connections to regularly accessedremote Macs and unix boxes. Because OS […]
May 24, 2012May 24, 2012Tech Show an Apps Shortcuts http://www.cheatsheetapp.com/CheatSheet/ CheatSheet_1.0
May 23, 2012Tech GeekTool Cal script echo `cal` | sed -E ‘1,$’"s/ ($(date +%e))( |$)/ $(echo ‘\033[1;31m’)\1$(echo ‘\033[0m’)\2/" | sed s’/Su Mo Tu We Th Fr Sa//g’ | […]
May 23, 2012Tech NetBoot Error – Startup Disk is Almost Full The following error appears when booting to a NetBoot image: “Startup Disk is Almost Full” Explanation This error occurs when the minimal […]
May 23, 2012May 23, 2012Tech Remove Netboot Client History Netboot is a great invention, allowing you to remotely boot a mac from a server. The problem is the Netboot keeps a […]
May 22, 2012May 22, 2012Tech Compair Version Numbers in Bash [david@Galileo ~]# function version { echo "$@" | awk -F. ‘{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }’; } [david@Galileo ~]# ver1=10.1.2.9 [david@Galileo ~]# ver2=10.01.02.008 [david@Galileo […]
May 21, 2012April 19, 2013Tech XSNMP 1.1 Lithium5 was a great product. I used it in my last job and paid for Gold support as I wanted updates. 3 […]
May 18, 2012Tech MySQL 5.5 and CNF file MySQL that you download and install from Oracle expect to find its config file in /etc/my.cnf However this file si not there […]
May 17, 2012May 17, 2012Tech Enable AirDrop in 10.7 on unsupported Interfaces and Ethernet Cards defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1 then kill finder or reboot