Mac OS Notes

Update error: "You do not have the appropriate access privileges."
Solution:
go to /Library/Updates/
show the folders information (RMB -> Get Info / Command + i )
check the folders permissions, should be:

system Read/Write
admin Read/Write
everyone Read

If they are not, change them (you may have to identify yourself (lock at the right bottom) before you can make changes)

then click on the gear at the bottom and choose "Apply to enclosed items".

Run software update again, should work.

How to set up multiple domains on Mac OS[1]
1. Modify the virtual hosts configuration
Use terminal to find and modify your virtual hosts configuration file.

vi /private/etc/apache2/extra/httpd-vhosts.conf

Append to this bottom of this file an entry for your virtual domain:

<VirtualHost *:80>
ServerAdmin webmaster@learnhowtojuggle.dev
DocumentRoot "/Users/neil/Sites/learnhowtojuggle"
ServerName learnhowtojuggle.dev
ServerAlias learnhowtojuggle.dev
ErrorLog "/private/var/log/apache2/learnhowtojuggle.dev-error_log"
</VirtualHost>

Make sure the DocumentRoot you enter actually exists. For convenience, I've placed mine in my Site folder. You can now save and close this file.
2. Check Apache knows about virtual hosts
Next we will need to modify the Apache configuration file to make sure it includes the virtual hosts file.

vi /private/etc/apache2/httpd.conf

Locate the following line and remove the # sign (also known as an "octothorpe" ) from in front of it.

Include /private/etc/apache2/extra/httpd-vhosts.conf

Save and close this file as well.
3. Restart Apache
For any changes to take effect on the Apache server, you will need to restart it.

sudo httpd -k restart

4. Update hosts file
Finally, the easiest way to let our browser know to use our local server when it get a request for our virtual host is to modify the hosts file.

vi /private/etc/hosts

Add the following entry:

127.0.0.1 learnhowtojuggle.dev

After you save and close this file, navigate to http://learnhowtojuggle.dev in your browser to see the newly created virtual host on your local machine.

How to download through the Terminal on Mac?[2]
Unfortunately, there is no wget on Terminal unless you download it. Here is an alternate way to do it:

curl -0 `pbpaste` > [file name]
page_revision: 5, last_edited: 1235596242|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License