Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use AppleScript and Remote Desktop to set a non-default NetBoot startup disk OS X Server
The following AppleScript will use Remote Desktop to set a non-default NetBoot image as the startup disk. Make sure to insert your server's IP Address and the image name...

tell application "Remote Desktop"
	set theServer to "192.168.1.8"
	set theImage to "10.8.5 NetBoot"
	set theComputers to the selection
	set theTask to make new set network startup disk task with properties {from server:theServer, mount volume:theImage, restarting:true}
	execute theTask on theComputers
end tell
  Post a comment  •  Comments (4)  
  • Currently 1.89 / 5
  You rated: 1 / 5 (9 votes cast)
 
[5,518 views] Email Article To a Friend View Printable Version
Configure OS X Server's caching server OS X Server
A new feature in the latest update to OS X Server is a caching server. This is designed to cache files in setups with multiple users so files only need to be downloaded once from the internet (or from the Mac App Store, iTunes Store, etc.). Files are cached locally, so users can save time getting downloads.

Apple has published a technical note explaining how to configure the caching server. You can set a limit to the amount of disk space used for the cache, you can choose a location for the cache, set the number of concurrent clients accessing it and much more.

This looks like a valuable feature for any organization running OS X Server.
  Post a comment  •  Comments (7)  
  • Currently 2.04 / 5
  You rated: 5 / 5 (23 votes cast)
 
[13,118 views] Email Article To a Friend View Printable Version
Set message size limits for OS X Server mail server OS X Server
Apple has published a technical document explaining how to set message size limits for the mail server in OS X Server. By default, messages are limited to 10 MB, but you can change this from the command line using the serveradmin command:
sudo serveradmin settings mail:postfix:message_size_limit = number
See Apple's technical document for more information, and how to specify the number in the command above.
  Post a comment  •  Comments (1)  
  • Currently 1.87 / 5
  You rated: 2 / 5 (23 votes cast)
 
[10,248 views] Email Article To a Friend View Printable Version
Enable AFP Server Activity log on OS X Server OS X Server
Apple has published a technical note explaining how to enable the AFP Server Activity log on OS X Server; this log is not enabled by default.

Run the following command to enable this log:
sudo serveradmin settings afp:activityLog=yes
To disable the log, run this command:
sudo serveradmin settings afp:activityLog=no
  Post a comment  •  Comments (0)  
  • Currently 2.48 / 5
  You rated: 1 / 5 (23 votes cast)
 
[5,291 views] Email Article To a Friend View Printable Version
Enable the adaptive firewall in OS X Server OS X Server
Apple recently published a technical note explaining how to enable the adaptive firewall in OS X Server. This is a type of firewall that automatically creates temporary rules according to certain events. For example, a number of failed login attempts will cause the adaptive firewall to create a temporary rule to block the IP address attempting to log in.

To do this, run the following commands as an administrative user:
sudo pfctl -f /etc/pf.conf
sudo /Applications/Server.app/Contents/ServerRoot/usr/sbin/serverctl enable service=com.apple.afctl
sudo /Applications/Server.app/Contents/ServerRoot/usr/libexec/afctl -f
Then, edit /System/Library/LaunchDaemons/com.apple.pfctl.plist using the following commands:
sudo defaults write /System/Library/LaunchDaemons/com.apple.pfctl ProgramArguments '(pfctl, -f, /etc/pf.conf, -e)'
sudo chmod 644 /System/Library/LaunchDaemons/com.apple.pfctl.plist
sudo plutil -convert xml1 /System/Library/LaunchDaemons/com.apple.pfctl.plist
Another technical note explains how to resolve an issue where packet rules do not load.

For more information, see man afctl and this post on the techorganic blog.
  Post a comment  •  Comments (4)  
  • Currently 2.33 / 5
  You rated: 5 / 5 (27 votes cast)
 
[9,533 views] Email Article To a Friend View Printable Version
How to repair an Xsan file system OS X Server
Apple has published a technical note explaining how to repair an Xsan file system. They explain that one uses the following commands to do this:

sudo cvfsck -j VolumeName
sudo cvfsck -nv VolumeName


Note that this is different from the standard fsck command used with a regular file system. See the Apple document for more information on using this command.
  Post a comment  •  Comments (2)  
  • Currently 2.10 / 5
  You rated: 1 / 5 (29 votes cast)
 
[3,514 views] Email Article To a Friend View Printable Version
Allow custom URL protocols in Lion Server wiki pages OS X Server
If you use Lion Server, and its wiki server, you may find it useful to use custom URL protocols for internal documents and links. Apple has published a technical note explaining how to do this. This document explains how to create the necessary configuration file - /etc/collabd/filter_whitelist.plist - for any custom URL protocol you wish to use.
  Post a comment  •  Comments (0)  
  • Currently 2.48 / 5
  You rated: 5 / 5 (27 votes cast)
 
[4,447 views] Email Article To a Friend View Printable Version
Replace SMB Server with open source version in Mac OS X Lion Server OS X Server
I have had nothing but trouble with SMB (Windows Sharing) services in Mac OS X Server 10.7. These problems were supposedly solved in 10.7.3, but my particular issues seem to still be there in several cases (Windows XP name browsing not working, Guest access not working, performance issues, dropped connections), and may be related to the Windows XP (versus Windows Vista/7) clients I'm dealing with. All of these were working fine with Mac OS X Server 10.5.8 when a string of hardware failures required replacement with the current version, which is working well for the Mac OS X clients.

I have found that replacing the Apple supplied services with the open source Samba version (dropped by Apple in Mac OS X Lion for apparent licensing issues) has solved these problems, and provided faster performance. Unfortunately setup isn't well documented, takes a while, and has no GUI tool (SharePoints I miss you!).

In hopes that I can give someone a head start for doing this if they need to, I've cobbled together a recipe from various sources. There are likely some flaws, and it is probably missing some details and options. Please feel free to add or update in the comments.

read more (380 words)   Post a comment  •  Comments (10)  
  • Currently 2.40 / 5
  You rated: 3 / 5 (30 votes cast)
 
[32,695 views] Email Article To a Friend View Printable Version
Redirect mail button on Wiki pages OS X Server
I have seen on the Apple discussion forum that there is no solution for the mentioned redirection. Today I have found a solution which was plain simple as all things Apple.

Every time you click on the mail link in Wiki Server it will take you to SquirrelMail login screen. This screen is the login.php file.

So in order to redirect Wiki Mail to any URL of your choice you just need to edit or substitute the login.php file which is located in /usr/share/squirrelmail/ like this:
<?php
/* Redirect browser */
header("Location: http://your_preffered_url/");
exit;
?>

[crarko adds: I haven't tested this one, but it seems pretty straightforward. As always when editing system-related files, have a known good backup.]
  Post a comment  •  Comments (1)  
  • Currently 1.72 / 5
  You rated: 3 / 5 (36 votes cast)
 
[3,554 views] Email Article To a Friend View Printable Version
10.7: Updating Lion Server if using CalDAV and CardDAV OS X Server
If you plan to update your OS X Server to 10.7.2 be sure to restart your machine and stop all server services, especially iCal Server and Address book server before applying the update.

It happened to me yesterday that I applied the OS X 10.7.2 update to my Mac mini server without closing any apps. I just ran it. After the update it turned out, this was a big mistake. All calendar entries of the past three weeks and many contacts were lost.

I was not able to recover anything from time machine. Lion server keeps the CalDAV and CardDAV data in a PostgreSQL database which is apparently not backed up by TimeMachine. Also, the PostgreSQL uses transactions which need to be 'closed' before they end up being permanently written into the DB tables.

What I found from reviewing the postgres log file (/Library/Logs/PostgreSQL.log) is that the 10.7.2 server update will apply a whole bunch of database structure updates to PostgreSQL but without committing the latest transaction. Given that CalDAV entries a quite small, the transaction log may contain a lot of data which is then lost.

So, be aware to make sure you have your transaction log committed before you run the update. I assume a proper server shutdown (or reboot) and stopping of the server processes will do just this. Afterwards it should be safe to update.

Alternatively (and this is my weekend-fun-duty) have a client with all up to date calendars off-line and aside which servers as a backup.

[crarko adds: I haven't tested this one. In fact, I haven't had the chance to try Lion Server at all yet. I'd be interested to hear if others have experienced issues like the one described here.]
  Post a comment  •  Comments (5)  
  • Currently 1.39 / 5
  You rated: 1 / 5 (114 votes cast)
 
[6,683 views] Email Article To a Friend View Printable Version