Using Synergy with Mac and Ubuntu

Ubuntu Linux Hostname from Terminal

This is just a quick guide for those of you who also use both Mac and Ubuntu (or really any flavor of Linux) side by side. If you’re not already familiar with Synergy, it’s a small application that connects your mouse and keyboard to one or more machines for a more continuous experience.

Mac and Linux use a graphical front-end for Synergy known as QuickSynergy. Here’s how to get it configured for use between Mac and Ubuntu…

Hostnames

You can find the hostnames to use simply by opening a Terminal window, or if you’re unsure still, simply type hostname and press enter. ;)

If you used the hostname command in Ubuntu, you probably noticed that the “.local” part is not printed out, but it is necessary when dealing with Mac OS X.

Connecting the Two

After selecting the system you’d like to share, configure the Use or Share tab as necessary similar to the examples below:

After configuring Synergy/QuickSynergy you’re all set to start making your life easier!

How-To: Share your Internet connection between multiple computers (Ad-Hoc)

vista-adhoc-01

If you’ve ever been in a situation similar to mine where you have multiple computers, one Ethernet cable and no wireless router then don’t sweat it. You’re still in luck!

If one of your computers has at least two network cards, for example an Ethernet port and wireless capabilities, then you can connect one computer via the Ethernet connection and broadcast that same connection over that computer’s wireless card so that other computers can connect. I’ll show you how below.

I will be walking through the steps in Windows Vista, but the steps should be the same across all platforms. If you’re using a different platform then just try to find the same dialogs and options on that system and everything should work fine.

  1. Open the Control Panel. To do this, go to Start->Control Panel
    If you’re in Windows Vista and your Control Panel window looks like this:

    You will need to click on the option labeled “Classic View” in the upper left corner of the window. This will change the layout of the Control Panel so that I don’t have to rewrite this How-To in multiple different directions. After changing the layout, your Control Panel should look like this:
  2. In the image above, the icon for “Network and Sharing Center” is selected. Double click on this option. When the window changes you should see a list of tasks in the left column. Click on the item from the list labeled “Manage network connections“. This will open a new window that should show the network cards available on your computer.
  3. Make sure that your Ethernet cable is plugged into your computer and your Internet source and that the Internet connection is working fine on that computer. Now right click on the option labeled “Local Area Connection” and select “Properties” from the menu (User Account Control will most likely ask you if you wish to continue and just agree and click continue if it does).
  4. The Properties window will open on a tab labeled “Networking” with a list of items that the connection uses. Just ignore all of that and switch to the tab labeled “Sharing.” The options on the “Sharing” tab should be selected as follows. Enable the option labeled “Allow other network users to connect through this computer’s Internet connection.” Disable the option labeled “Allow other network users to control or disable the shared Internet connection.” After matching these settings, click “OK” to save the changes.
  5. You can now close the window for “Network Connections” and reopen the window for “Network and Sharing Center.” If you have already closed this window by accident then you can follow steps 1 and 2 again, except this time instead of clicking on the option to “Manage network connections” you want to select the option to “Setup a connection or network.
  6. When the “Setup a connection or network window opens, it will have a list of networks that you can setup. The one that you want to setup is selected in the image above and is labeled “Setup a wireless ad hoc (computer-to-computer) network. Setup a temporary network for sharing files or an Internet connection.
  7. When the “Setup a wireless ad hoc (computer-to-computer) network” window is open, it will explain a little bit about the network. Just click “Next” until you get to a form that is empty and looks like the form below:

    You need to give the network that you are creating a name that you will be able to recognize and it can be anything that you want!

    You also have the option to add security to your network. I highly advise this as you have more control over your network, so just select the option for “WEP” and below it enter some form of a password.

    You can click the option to “Display characters” while you are entering the key/passphrase. This will make it easier to make a new key for your network.

    Don’t forget to also enable the option to “Save this network” if you plan on using it later!

    If you hover the text box for the key/passphrase, you will see a notification tooltip that explains how the passwords work. You should follow those instructions to create your password and make sure it is the correct length as specified in the tooltip.

  8. Click “Next” to complete the setup and close any open windows. Your Ad-Hoc network is now setup and you should now be able to see a wireless signal on your other computers. Connecting to your network will require the users to know the key/passphrase that you entered, but once connected..all of the other computers should be able to browse the web and connect to instant messengers…anything you need!

If you have any questions then please ask them in the comments! Just remember to follow the steps closely before asking. Enjoy!