Skip to content

Mac Os Snow Leopard Server Notes #1

July 2, 2011
Welcome message

Bash login script
		To fix the mac/windows keyboard issues, add to /etc/bashrc
		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
Update locate db
	sudo /usr/libexec/locate.updatedb

	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

From → Uncategorized

Leave a Comment

Leave a Reply

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

You are commenting using your 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 )

Connecting to %s

%d bloggers like this: