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

Allow Address Book to display City from Open Directory OS X Server
I found that when using Apple's Address Book to access their Open Directory that it wouldn't show the city. The LDAP standard for the city is the "l" attribute or "localityName". You have to add the "l" attribute via LDAP as when you try to add the city attribute in the Workgroup Manager, it will give you an error when saving. I noticed article on Apple's support site regarding a similar error in Workgroup Manager, and they mention remapping the Open Directory attributes.

If you change the LDAP Directory Mappings from Open Directory to Custom and edit them, you will find that the User -> City attribute is mapped to 'locality,' which is not a valid LDAP attribute. Changing the value to 'l' allowed my Address Book to see the City.

This didn't have any effect on Workgroup Manager, however, but changing the value on the server itself might.
  Post a comment  •  Comments (0)  
  • Currently 1.38 / 5
  You rated: 3 / 5 (8 votes cast)
 
[7,440 views] Email Article To a Friend View Printable Version
Installing DBD::mysql on Panther Server OS X Server
I have seen on Mac OS X Hints, and various other places, a lot of trouble getting DBD::mysql installed. Here is how to install it on Mac OS X Server v10.3.3.
  1. A previous hint explained how to update the config.pm file. Follow the steps in that hint.

  2. Download and compile DBI-1.42.tar

  3. Downloaded DBD-mysql-2.9003

  4. Extract it and change into the created directory.

  5. Run perl Makefile.PL

  6. Using BBEdit, edit out the -arch i386 entries in Makefile

  7. Then run make and make install
[robg adds: I haven't tested this one...]
  Post a comment  •  Comments (14)  
  • Currently 1.38 / 5
  You rated: 1 / 5 (8 votes cast)
 
[15,913 views] Email Article To a Friend View Printable Version
Prevent 'garbled text' file downloads via server settings OS X Server
I've been trying for quite some time to fix this problem one software vendor at a time, but then thought the Mac OS X Hints would probably be a good way to get the attention of many software developers all at once.

The problem: When I download a .dmg file from someone's web site, about 25% of the time my browser loads the binary file as text to a window instead of saving the file to disk. The reason this happens is that their web server is not configured properly. The problem has persisted for a long time because the two biggest Mac browser (Safari and IE) disregard the server settings and download the file anyway. You may have experienced a similar problem (even with Safari or IE) when downloading .gz or .sitx files.

So, if you manage a web site, please add the following to your site's .htaccess or httpd.conf file:

AddType  application/octet-stream      .dmg
AddType  application/x-gzip            .gz
AddType  application/x-stuffit         .sit
AddType  application/x-stuffit         .sitx
AddType  application/zip               .zip
The other way to fix it is to change your server's default type, which would mean all unknown file types would be downloaded (and wouldn't that make a whole lot of sense?).

DefaultType        application/octet-stream
Applying one of these fixes avoids the annoying occurrence of having your users' browsers get hung for 5 minutes while they try to render 20MB of binary data as text (and would thus help to improve the overall Mac experience)!

[robg adds: I've put this in the OS X Server category, but it obviously applies to anyone running a server on any platform...]
  Post a comment  •  Comments (11)  
  • Currently 1.67 / 5
  You rated: 3 / 5 (9 votes cast)
 
[31,326 views] Email Article To a Friend View Printable Version
Check software update status at Terminal launch OS X Server
This tip can be nice for those that doesen't have remote GUI control over their computer. Add this line to your .profile file, in your home directory:
softwareupdate --list
When you log in, you'll see:
Welcome to Darwin!
Software Update Tool
Copyright 2002-2003 Apple Computer, Inc.

Your software is up to date.
www:~
To install an update if softwareupdate finds out-of-date packages, type softwareupdate -install packagename

The only drawback is that it will run each time you open the terminal, locally or remotely. Alternatively you can just run the command in the shell if it gets too annoying. Works on both 10.3 server and client. For further description of this tool, type man softwareupdate.

[robg adds: We covered the basic softwareupdate command in an earlier hint ... this hint works just fine on non-server, too. i ]
  Post a comment  •  Comments (6)  
  • Currently 1.75 / 5
  You rated: 2 / 5 (8 votes cast)
 
[10,556 views] Email Article To a Friend View Printable Version
Empty network trashes on Server via the Terminal OS X Server
Since the days of ASIP, the option to empty the trashes made by users on the server is gone. So here is the terminal command to do it:
 % find /Volumes/ -name "Trash Can #*" -print0 | xargs -0 rm -Rf
Use it with cron to automate the task...
  Post a comment  •  Comments (5)  
  • Currently 2.00 / 5
  You rated: 2 / 5 (8 votes cast)
 
[6,995 views] Email Article To a Friend View Printable Version
Install iLife 04 on Mac OS X Server OS X Server
I run Mac OS X Server on my desktop, and wanted to install iLife 04. Well, the installer checks to see what version of OS X you are running, and if it finds OS X Server, it refuses to install. After digging in the install package, I found that renaming /System -> Library -> CoreServices -> ServerVersion.plist will allow the installer to run successfully.

Type the following in a Terminal window to rename the file -- don't forget to change it back after installation, or Software Update may break (among other things)!
 % sudo mv /System/Library/CoreServices/ServerVersion.plist \
 /System/Library/CoreServices/ServerVersion.plist.bak
Type your password when prompted, then start the installer. When the install completes, hop back into Terminal and do:
 % sudo mv /System/Library/CoreServices/ServerVersion.plist.bak \
 /System/Library/CoreServices/ServerVersion.plist
to revert the file back to its original name. Enjoy iLife 04!!!
  Post a comment  •  Comments (9)  
  • Currently 2.00 / 5
  You rated: 4 / 5 (8 votes cast)
 
[38,861 views] Email Article To a Friend View Printable Version
10.3 Server: Disable 'Mobile Accounts' in Panther Server OS X Server
Panther Server has a new feature entitled "Mobile Accounts" whereby a user's account information is copied to the hard drive for access when they aren't wired into the network. While it sounds promising, I was a little disappointed with the results. By Apple's own admission this feature does not sync any files or preferences for the user; it merely caches some login data. Worse, once I had set it up, it refused to revert to the former (Network) Home folder.

For anyone else out there wanting to disable a "Mobile Account," you need to open NetInfo Utility, authenticate (if necessary) and delete the "user" record for the user in question. You should then be able to log out and back in and be back to a Network Home folder.

Surprisingly enough, the NetInfo record DOES need to be removed ... simply turning off NetInfo in the Directory Access Utility didn't fix the problem on our G4 PowerBook.
  Post a comment  •  Comments (2)  
  • Currently 1.38 / 5
  You rated: 2 / 5 (8 votes cast)
 
[14,185 views] Email Article To a Friend View Printable Version
10.3 Server: Repair a broken FTP server after upgrade OS X Server
I noticed that after upgrading my server to 10.3 I lost FTP services. Apparently I am not alone in this problem. It seems that Jacin Ferreira on the Apple Discussion boards found a solution that I am reprinting here to aid others:
Please look in /Library/FTPServer/Configuration/Messages/ and look for a file named shutdown.txt inside that directory. If it is there, trash it and restart your FTP server.
It worked great for me!
  Post a comment  •  Comments (10)  
  • Currently 1.56 / 5
  You rated: 2 / 5 (9 votes cast)
 
[8,398 views] Email Article To a Friend View Printable Version
NetInfo binding by DHCP OS X Server
Just a quickie. All the Apple documents on NetInfo explain how to set up OS X Server to provide NetInfo information as part of the DHCP response/service. But if you already have a DHCP service on your network, the DHCP options to set are 112 (NetInfo IP address) and 113 (NetInfo tag). See www.iana.org for more info...
  Post a comment  •  Comments (0)  
  • Currently 2.25 / 5
  You rated: 4 / 5 (8 votes cast)
 
[5,144 views] Email Article To a Friend View Printable Version
Working with Apache config files on 10.3 Server OS X Server
I found several hints that mentioned how to modify apache using /etc/httpd/httpd.conf or /etc/httpd/users/user_name.conf, but no mention of how to make changes to Mac OS X Server.

System wide changes can be made in Server Admin or in the httpd.conf file (Apple has even added extra comments relevant to Panther Server telling you what you should and shouldn't touch). However, I quickly found that the information for my site couldn't be found in httpd.conf.

It turns out 10.3 Server has a "sites" folder in /etc/httpd, much like the "users" folder on 10.3 Client, and that every site on your server (even if you only have one) is set up as a virtual host. Within the sites folder will be at least one (probably two or more) .conf files: virtual_host_global.conf, plus a conf file for each site you have set up (named using a serial number plus the port and host name of your site).
read more (284 words)   Post a comment  •  Comments (1)  
  • Currently 2.38 / 5
  You rated: 5 / 5 (8 votes cast)
 
[15,259 views] Email Article To a Friend View Printable Version