Archive for category lion
Each of these FTP/SFTP server tricks work in all new versions of OS X, be it Mavericks 10.9, Mountain Lion 10.8, or 10.7 Lion.
Start the FTP Server in OS X
This will start a generic FTP and FTPS server on the Mac, but not an SFTP server:
• Launch the Terminal (/Applications/Utilities) and enter the following command to start the FTP server:
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
• Confirm the FTP server works by typing:
If you see the familiar FTP login:
$ ftp localhost
Connected to localhost.
220 ::1 FTP server (tnftpd 20100324+GSSAPI) ready.
You know the server is running. If you don’t see that, then the server either hasn’t finished starting yet or you didn’t enter the command properly. You can then ftp from other computers to your new server via the same ftp command, or by using the “Connect to Server” option in the Finder.
Disable FTP or SFTP Server in OS X
Here’s how to disable the FTP server:
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist
As the command suggests, this unloads the ftp daemon and shuts down the server. Obviously you can only shut down and disable the FTP server if it was enabled to begin with.
Disabling SFTP is just a matter of unchecking the “Remote Login” box that sits within the Sharing Preference Panel of OS X.
Note: The FTP and SFTP servers are different, and enabling one does not enable the other. SFTP is recommended because of the default encryption layer and secure transferring.
This is interesting one…
There’s a hidden setting for the Dock that will show pop-up notifications of which iTunes track is playing, a little like Growl.
First, quit iTunes if it’s open, then open a Terminal window and type the following:
defaults write com.apple.dock itunes-notifications -bool TRUE;killall Dock
Then start iTunes and try playing a track. Neat, eh? The pop-up fades away after a few seconds. To add the iTunes icon to the pop-up window, type the following into a Terminal window:
defaults write com.apple.dock notification-always-show-image -bool TRUE;killall Dock
To deactivate the pop-up at a later date, quit iTunes again, then open a Terminal window and type the following two lines:
defaults delete com.apple.dock itunes-notifications
defaults delete com.apple.dock notification-always-show-image;killall Dock
My theory is that these pop-ups hint at either a forthcoming notification system (maybe in OS X 10.8), or it’s a legacy of a notification system that Apple decided to abandon. But it’s easily to imagine a similar system working with Mail, showing notifications of incoming mail. In addition to the preference keys mentioned above, I found various other keys relating to the height and length of the pop-up bubble. Whoever designed this clearly intended it to be tweakable.
From Thomas Keir, author of book Mac Kung Fu
The User Library is hidden in Lion.
Since it is a folder hidden by Apple, it is flagged.
Use this Terminal command to make it visible: (enter your own username)
chflags nohidden /Users/username/Library
Another way to access the User Library: Hold the Option (or Alt) key when clicking on the Go menu in Finder.
If manually deleting specific apps saved Resume states is too tedious for you, you can always choose to just disable the Resume and App Restore feature completely in Mac OS X 10.7.
- Launch System Preferences and click on the “General” icon
- At the bottom of the “Number of recent items” list, uncheck the checkbox next to “Restore windows when quitting and re-opening apps”
This is a sweeping change that impacts all applications and the Finder itself, meaning all apps will no longer save their previous state, including when you reboot your Mac.
Use the Terminal and a defaults write command:
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO
You’ll have to relaunch any currently running apps to have the changes take effect.
If you want the new Lion window animation back, that’s easy too:
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool YES