Sunday, September 25, 2011

OS X File Sharing — The Basics - Connecting to Another Computer

Connecting to another computer in OS X is a very simple process, and there are several ways to do it.  I'm going to show you a way that will always work, if you know the address of the computer on your network.  If you don't, that's no big deal, as we can work around that by using an auto-discover feature in OS X.  It's important to note, however, that this auto-discover feature has not been working well in the early versions of OS X Lion (10.7.0 and 10.7.1 specifically).


The procedure goes like this:
•  Make sure you are in the Finder
•  Find the other computer
•  Connect to it


Connecting to another computer is going to be achieved by using a program called the Finder.  The Finder is the filesystem manager for OS X, similar to Window Explorer on a PC.  The Finder will most likely be the first program you will see when you start your Mac.  If there is any doubt as to what program you are currently using, look up in the upper left-hand side of your screen to see what's running.


Once in the Finder, type Command-K, or go to the "Go" Menu at the top of the screen, and select "Connect to Server".


Next, you will see the following screen:

You can add servers you frequently connect to to the Favorite Servers list by entering a valid address into the text field (highlighted above) and clicking the plus sign to the right of the address.
See the highlighted address above?  If you know the address of the server you are trying to connect to, enter the address there and click Connect.  If you don't know the address, but are sure that your computer is connected to the same network you are currently connected to, and that file sharing is enabled on that computer, click the Browse button at the bottom of the above screen.  You should see something similar to this:

"Network" is highlighted, and to the right of that are computers and devices that are on the same network.


If you used the Browse method, double-click on the computer or device you want to connect to.  If you entered an address into the Connect To Server window, click Connect.  Either way, if all is well, you will see the following screen:


Enter your username and password for the computer you want to connect to (which is not necessarily the username and password for the computer you are trying to connect from) and click Connect.  If everything has gone according to plan, you should see the connected device somewhere in your Finder.  This will depend on how you have chosen to see connected devices.

You now know how to connect to just about any computer from the Finder within OS X.  








OS X File Sharing — The Basics - Enabling File Sharing

One of the great things about computers these days is that it's so easy to share things among them.  Text documents, music files, photos... anything that lives on your computer can be moved to another device.  Whereas this used to be a semi-complicated procedure for the novice, it's now as easy as finding a checkbox and clicking it.  Mostly.


The procedure goes like this:
•  Enable File Sharing
•  Tell OS X who can file share with your computer
•  Tell OS X what kind of permissions those people have


The important thing to remember when file sharing with OS X (or any computer really), is that there are two distinct devices: the server and the client.  If you are connecting to a computer to take files off of it, you are the client.  If someone else is connecting to your computer, your computer is acting as a server.  Makes sense.


However, if you connect to a computer through file sharing, you can not only take files from that computer, but you can also put files onto that computer.  As long as you have the proper credentials, you can move files, delete files and copy files from the computer you connect to.


So how do you do it?


Well, let's start by setting your computer up to share files, so that you can gain a better understanding of what's involved in the process.


First, head over to the System Preferences, and click the Sharing preference, as seen here:






Once opened, you will see the following screen:


On the left side of this screen, you will see different "sharing" services that you can turn on and off, simply by checking the box next to it.  In the above picture, File Sharing is highlighted and enabled.  


You will see that over to the right of the screen, there is a list of users.  This panel is where you select the people that are allowed to connect to your computer, and what they are allowed to do.


You can allow anyone to connect to your computer, a group of people or individual users, and assign each of them different permissions.  They will be able to either:


1)  Read Only - not only see things on your computer, but also copy things from it.  Others will not be able to modify files on your computer, however.  This is the safest option if you want to share files with others, but you want to make sure that they don't change things by mistake.  If you are at work, your administrator is probably giving you "read-only access" so that you can't mess anything up.
2)  Write Only - copy things to your computer, AND modify items/files/etc.  Other users can leave files for you, but they won't be able to see anything on your computer.  This is handy if you want to provide a simple folder for others to drop files into.  They won't be able to access any other parts of your system.  A write-only folder is often times called a dropbox.
3)  Read & Write - copy things to and from your computer, as well as see files and modify them.  This should be used only if you completely trust the person on the other end, as they will have full access to whatever it is you are giving them permission to (in this case, your whole computer).


So, as you can see, there are many different options to choose from.  For now, we are only going to concern ourselves with one user (you) and one kind of permission (Read & Write).  The beauty of doing things this way is that you are only trusting yourself with the files on your computer.  If you want to add more people in the future, you can just follow these instructions, substituting other accounts for yours.


Let's enable file sharing for your User Account.  To do so, make sure File Sharing is enabled, and then click the "+" sign underneath the list of users.  You will be presented with a new drop-down menu:


As you can see, my user is greyed-out because my user account is already setup for file sharing.


Click on your user account (probably your name), click the Select button, and your user account will be added to the list of accepted users on the right.


Next, it's time to set what permissions your account can have.  Next to your name (which has now been added to the right side pane), click the black arrows.  You will see the following:


Select "Read & Write", and you're done!


Once you've set this up once, you don't need to do it again.  You can enable and disable File Sharing by clicking the checkbox, and OS X will remember who has access to your system.  If you need to remove a user from File Sharing, simply highlight their name on the right, and click the "-" symbol below it.


You will now be able to see your computer on a network, and you can connect to this computer by using your User Account name and password.  Once connected, you will be able to see all of the files on your computer, as well as copy files to your computer and modify things.





Friday, September 16, 2011

The Heart of it All - System Preferences in OS X





Ok, you're running OS X Lion.  Awesome!  Let's hop over to the System Preferences and get acquainted with your computer.  There are a few different ways to get there, but let's start out with a way that might not be entirely obvious, but is completely ubiquitous - the Apple Menu!


Look up in the upper left-hand corner of your screen, and click on the Apple.  Your Apple might be blue, but we can change that through manipulating — you guessed it — your System Preferences.




When you click on System Preferences, you will be presented with the following screen:




This is the heart of your computer, more or less.  From here, you can do all sorts of things like turn on file sharing, add user accounts to your system and encrypt your hard drive.  Don't worry if your screen doesn't look exactly like this; I've added some things onto my computer to make it more useful, and there's plenty of time to cover that at a later date.  I've also changed the arrangement of the System Preferences to be in alphabetical order (preferences for your preferences... so meta!)  To do this, make sure you are in the System Preferences application (it should say "System Preferences" in the menu bar) and click on "View".  Now, select "Organize Alphabetically" like so:










I find this a much easier way to navigate through the preferences.  I don't have to guess what category someone at Apple saw fit to put Users & Groups in, I just need to remember that U is somewhere near the end of the alphabet.


 We'll cover all of the included Apple preferences in detail, but for now, take a look at General by clicking on the General icon:


You can always find what you are looking for by using the search box in the upper right-hand side of the System Preferences window.  OS X even helps you out by highlighting the icon(s) with a circle, and greying the rest.


The following window will open up:




Experiment with these settings to your heart's content; you're not going to mess anything up.  If you don't like something that you've changed, just go back into the General preference and change it back.  Also, please note that these are preferences.  You don't have to make them just like mine, but in case you're interested, this is how I set up all of my computers.


Two things of interest that you will only find in the General preferences: 


1.  Double-click a window's title bar to minimize

If checked, when you double-click on the title bar of a window, it will "minimize" to your dock.  This helps get windows out of the way temporarily, and they are then instantly recallable from your Dock.  I find this useful from time to time.


2.  Restore windows when quitting and re-opening apps


This is a new feature in Lion.  If enabled, any window that was open when you quit an application will automatically open again when you re-launch that application.  For example, if you are working on a text document in TextEdit and you quit the application while that document is still open (on your screen), the next time you launch TextEdit, that same document will pop up, just like you had never quit the application.  This can be useful, especially if you tend to work on the same documents.  However, if you are wondering why some documents are opening up automatically every time you open certain applications, it's because this option is checked.  If you want to turn this feature off temporarily, hold down the "Option" key on your keyboard, and select Quit from any application's File menu.  You'll notice that instead of "Quit", it now says "Quit and Discard Windows".  The only documents that will open the next time you launch the application are windows that have something savable in them (OS X doesn't want to throw out something that you might need later).


You could also just make sure to close any document you don't want to automatically re-open before you quit the application.  So, if you want three of your five currently open documents to automatically open the next time you use TextEdit (or whatever application), close two of the documents you don't want to open, leave the other three open and quit the program.  The next time you launch the application, you should see those three documents.

Not all applications have been updated to support the "restore windows" feature, so some third-party (read: non-Apple) software might not currently behave as expected.  


Feel free to play around with the General settings, and set up your computer the way you want it!



Let's start out on the right foot...

One of the most frustrating things to deal with is a computer that's not behaving correctly.  Sure, sometimes it's operator error, but other times you can see what's wrong with your computer (ie. when I highlight things with my cursor, why does everything turn RED?), but you don't know how to fix it.

Of course, there are also times when you can't see what's wrong, you don't CARE what's wrong, and you just want it to work!

Fear not gentle readers, as one of the purposes of this blog is for me (a guy with over 20 years of experience using Macintoshes) to help you get things straightened out on your Mac.  Huzzah!

First things first: we need to establish what version of OS X you are using so that we are all on the same page.  If you don't know what version of OS X you are using, it's easy to find out by making a trip to the Apple Menu in the upper left-hand side of your screen.  Click on the Apple, and then select "About This Mac":


The following screen will open up:


Right below the bold letters for Mac OS X, you will find the Operating System version number.  As of this writing (September 16, 2011) the latest version of OS X is 10.7.1.  If you don't have this exact version, that's ok, but for the sake of staying consistent, you'll want to be sure that you're running some version of 10.7 (10.7.0, 10.7.1, etc.) also known as Lion.  If you are running a version previous to that, you will still find this website useful, but things might be in a different place and/or named something different.

If you are running any version of 10.6.6 or later (also known as Snow Leopard) you can buy the upgrade to Lion through the Mac App Store (located in your Applications folder) for $29.  If you are running  OS X 10.6.0 to 10.6.5, you'll need to update your software to 10.6.6 or later (click Software Update in your About This Mac window, as seen above) before you can download Lion.  The reason?  The App Store wasn't a part of OS X until the release of 10.6.6.

If you are running anything earlier than 10.6, you're going to need to either buy a copy of Lion on a USB flash drive from the Apple Retail Store, or upgrade to Snow Leopard, and THEN upgrade to Lion.

Please note: to run Lion, you will positively, absolutely need to be running OS X on an Intel processor; PowerPC processors were no longer supported after 10.5.x.  EVEN THEN, the earliest versions of Macintoshes with Intel processors are not supported.  To run Lion, you MUST HAVE:

     •  An Intel Core 2 Duo, Core i3, Core i5, Core i7 or Xeon processor (NOT a Core Duo, or Core Solo... if there is no 2 between Core and Duo, you're not supported)
     •  2 Gigabytes of RAM

If you bought your Mac after 2006, there's a very good chance that your system is compatible.  If not, it might be time to upgrade anyway.

So, make sure you're running OS X Lion, and we'll move on.