Part 6: Installing TOR...

Your droplet shutting down will have killed your SSH connection by now.

The quick way to reconnect is to rt-click on the title of the window and select "Restart Session"

At this point you just log back in as you did in Step 4.

If, however, you'd like to start "from scratch" as you would if you were connecting at a later date with no previous session... just close the existing PuTTY window...

Restart PuTTY as if you hadn't just closed it... select the saved session from earlier and click "Open" ... now, just log in as usual.

Now on to the real stuff:

We should have already installed everything we need here. Just enter the following line and hit enter:

apt-get install tor

enter a "y" as required to complete the install.

TOR is installed! Easy huh?

We need to make a few config changes but we're most of the way there already.

Next we want to make a backup of the tor config file... We need to copy the supplied config to a backup config in case we ever want to revert and start over without having to rebuild the server and reinstall everything. Enter the following line and hit enter.

cp /etc/tor/torrc /etc/tor/torrc.bak

For those of you used to a linux command line you can just use vi or nano to edit the config file (torrc). For this tutorial though (intended for windows users) I want to show you how to use an FTP client and a good text editor to make the changes. This part is also beneficial for those who will be using sftp to upload/edit your website files later. I highly recommend you revisit this later and learn how to use linux command line editors... It really saves a lot of time in the long run.


Part 6.5: Windows tools and "easy" file editing...

As mentioned in the beginning of this step, you can just skip the software installs here if you are comfortable with vi or nano or some other command line editor. This part is really intended for people who will rely on windows gui apps to manage their site.

We're gonna need a decent ftp client and a good text editor. My suggestion would be downloading and installing FileZilla and Sublime Text. Go ahead and click those links to download and install.

Once you have them fully installed we can continue...

First part is using FileZilla to connect to your droplet. I'm going forward assuming you went with the SSH key option for connecting to your server.

Run FileZilla...

Click on the "Site Manager" icon. (not the dropdown)

in the next window you'll need to enter all the info about your droplet...

Click the "New Site" button. A new entry will be created in the left file structure area. I'd suggest naming it whatever you have already been calling your server. Obviously in this case I named mine "zombizu"

Enter you droplets IP address as the "Host"

Change the protocol dropdown to "SFTP"

Change the "Logon Type" to "Normal"

Enter "root" as the "User"

if you decided not to use an SSH key, you can enter your password in the "Password" field and skip ahead. Otherwise, leave the password blank and continue...

We're gonna need to run Pageant from the PuTTY install. This is what will manage your SSH keys for FileZilla. I've had it installed so long that I honestly don't know if it opens direct to the tray by default... In my case though it does... find it in the tray and rt-click the icon. Select "Add Key" from the menu...

You need to browse to the .ppk file you created earlier in this tutorial. Once you've found it, select it and click "Open"

The window should close. Nothing obvious really happens at this point if I remember correctly. To verify that your key is in place though... rt-click the Pageant tray icon again and select "View Keys"

You should see your key listed in the output. If so... just click "Close" and we can continue. Sorry its so censored but you should get the idea

Now, back in FileZilla... Just click the "Connect" button... Filezilla should connect to your server using the key you generated earlier. You should see something like the following image:

The top panel shows the actual commands and responses sent between your pc and the server. The left Column "Local Files" is the file system of your pc... the right column "Remote site" is the file system of the droplet you are connected to.

If you have opted to install SublimeText, we now need to tell FileZilla to use it as the default editor...

In FileZilla, click "Edit" in the menu bar and select "Settings"

Scroll down on the left and click "File Editing" ... select "Use custom editor" and browse to the location of SublimeText or whatever editor you would prefer to use. If you want to manage different editors for different file types you can leave "Use filetype associations if available" selected. For the simplicity of this tutorial though I chose to "Always use the default editor"

Click "OK" and we should be all set.