Occasionally you get empty directories and need to clear them out, these scripts below will help with that, just be careful what directory you choose. The scripts below are set to ~/ (current user home directory) but can easily be changed to any directory on your system. Similarly if you…
Category: Mac OSX
Posts in this category are specific to Mac OS and may not work on other UNIX based systems.
Mac OSX Terminal – Turn off system sleep
If you use a Mac whether true server or a Mac Mini for a server this script below is very helpful to prevent the Mac from falling asleep and preventing the machine from being a server. If all of this still does not do it you can try to caffeinate…
Mac OSX Terminal – Get System Details
If you only have SSH access to a Mac OSX server and need some details on the machine you can use these commands to help. System_Profiler can get you a lot of the information you are likely looking for but it pulls a lot of information so initially you may…
Mac OS X – Show Desktop Image Path
Ever wonder where the image displayed on your desktop is located? Open Terminal and then run the first command to show the image path, then to hide the path again run the second command. Reference: http://osxdaily.com/2011/11/20/show-the-location-path-of-current-wallpaper-in-mac-os-x/
Mac OS X – Remove Users In Terminal/SSH
Recently I had to remove users from a Mac that was on a network only with SSH available. In this document I use the user name “administrator” as the account that I do the work in and would like to keep, your user name may be different. First we need…
TeamCity – Mac Agent Install
This is a work in progress at the moment. Start by opening Terminal If your network has a problem with SSL certificates you can try this command to download without checking the SSL certification. This is typically not suggested. Move the tar file to /tmp and Extract