Skip to content

Mac Os Snow Leopard Server Notes #1

July 2, 2011
Welcome message
	/etc/motd

Bash login script
	/etc/bashrc
	
	Tricks
		To fix the mac/windows keyboard issues, add to /etc/bashrc
			TERM=linux
		
		To make ports universally accessible add to /etc/bashrc
			export PATH=$PATH:/opt/local/bin
			export MANPATH=$MANPATH:/opt/local/share/man
			export INFOPATH=$INFOPATH:/opt/local/share/info

Server configuration files
	/private/etc/hosts
	/private/etc/php.ini
	/private/etc/my.cnf
	/private/etc/apache2/httpd.conf
	/private/var/log/apache2
			
Update locate db
	sudo /usr/libexec/locate.updatedb

Ports
	Show outdated packages
		port outdated
	Update to the latest trees
		sudo port selfupdate

	Search for package
		port search apache2
	See more info on a package
		port info php5-mcrypt
	See variations of a package
		port variants nmap
		port installed
	See dependencies of a package	
		port deps apache2
	Install the default package of a package
		sudo port install nmap
	Install a variation of a package
		sudo port install fetchmail +ssl
	If you screw things up while installing, clean them up
		sudo port clean --all vile
	Uninstall a package
		sudo port uninstall vile
	Upgrade an existing package
		sudo port upgrade gnome
		
Rebooting and shutdown
	halt
	reboot
Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: