Tag Info

Hot answers tagged

6

Terminal uses Bash by default and /bin/sh is also Bash, so source should work in most places. source is not defined by POSIX, but it is allowed by Bash in POSIX mode or when it's invoked as /bin/sh. The help messages for source and . are identical: $ help source . source: source filename [arguments] Read and execute commands from FILENAME and return. ...


5

1) Yes, it's included in Lion's client factory default from my 2011 macbook air. I found it accidentally, psql -v will gives you postgresql's latest version, which is version 9 at the moment, entering which psql will give you it's path which resides in /usr/bin/psql. I found postgresql's default user which is _postgres, simply change the password to your ...


4

You can restore the web server to factory settings. Turn off the Web Server service Open Terminal and run sudo serveradmin command web:command=restoreFactorySettings Enter your administrator password Restart Web Server service.


3

On OS X Lion "client", here's what you can find: martin$ find /usr/ -name postgre* /usr//include/postgres_ext.h /usr//include/postgresql /usr//include/postgresql/internal/postgres_fe.h /usr//include/postgresql/server/postgres.h /usr//include/postgresql/server/postgres_ext.h /usr//include/postgresql/server/postgres_fe.h /usr//lib/postgresql ...


2

Assuming you want the domains to be synonymous (e.g. richard@domain.com and richard@domain.co.uk both correspond to the same mailbox), it's pretty easy. The trick is that the relevant configuration option is available in Server Admin.app but not Server.app. To get Server Admin, install the server admin tools (v10.7.4 is here, be sure to get the version ...


2

They seem to have renamed the server to postgres_real on my non-server version of Lion. $ /usr/bin/postgres_real --version postgres (PostgreSQL) 9.0.5 $ /usr/bin/psql --version psql (PostgreSQL) 9.0.5 contains support for command-line editing $ I haven't found initdb or pg_ctl yet so far it seems using it in practice still requires a separate ...


2

Your list of active services mirrors mine on a server with only DNS running per the server app: enabledServices = ( "com.apple.apspd", "com.apple.collabd", "com.apple.DeviceManagement.devicemgrd", "com.apple.DeviceManagement.postgres", "com.apple.DeviceManagement.SCEPHelper", "com.apple.opendirectorybackup", ...


2

OS X Server update 3.0.1 seems to have cleared this up for me. Mac App Store


2

I had the same issue. As suggested here, I tracked the problem down to a bad NS record (typo) for the reverse zone. changeip -checkhostname reported no issues manually checking the forward/reverse all looked good. But when I specifically checked the NS record for the reverse zone, noticed the typo.


1

You do use %20 if you need the space between two words. I had had made a mistake in the spelling which caused me to think it didn't work. Also, in case anyone needs it in the future, if you access the CUPS webinterface and select Manage Printers it will give you the correct lpd address syntax.


1

The default input source is set in ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist (where * is system_profiler | grep 'Hardware UUID'). You could either copy the file to other acccounts: sudo cp ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist ~/Users/username/Library/Preferences/ByHost/. Or add it to the User Template directory so that it ...


1

Yes, a clean install of Lion 10.7.2 includes Postgres. I mean client/desktop edition (I've not used the Server edition). The included documentation suggests Apple bundled version 9.0.4 of Postgres: file:///Library/WebServer/Documents/postgresql/html/index.html FYI, current versions of Postgres today are 9.0.6 and 9.1.2. Besides the list of /usr/ items ...


1

If that didn't do the trick, turn off everything which uses Apache (Wiki, iCal-Server ...) run the following command sudo /System/Library/PrivateFrameworks/ServerFoundation.framework/Resources/xswebconfig restorefactorysettings The answer using serveradmin to reset factory defaults calls the xswebconfig and sometimes you need to force the lower level ...


1

http://opensource.apple.com/source/PostgreSQL/PostgreSQL-23/ It's used as the datastore for the stuff serveradmin(8) works on, Server.App and Server Essentials. But oh yes, you have it on the client, Server.App activates the stuff, does not install it.


1

I'm using bash as my shell on my Mac and I can use "source". For example source .bash_profile



Only top voted, non community-wiki answers of a minimum length are eligible