Setting up Support with Putty
Please note that this tutorial is designed for x64 based machines.
To make theses's steps a lot more simpler (just copy and pasting), were going to be using an application called PuTTY. This is a free telnet/ssh client for Windows.
Assuming you have created a droplet with DigitalOcean and have an IP + Username and Password, you will need to download PuTTY using the website below.
http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
You will be presented 'putty.exe'. Open putty.exe. You should be presented with a screen that looks like this.
Under 'Host Name', put the IP address of the droplet (128.0.0.1 - Something along those lines). Keep the port at "22" and make sure the connection type is SSH.
Then under the 'Category' section, expand the tab 'SSH' and click on 'Tunnels'. You should be presented with a screen like this.
Enter the 'Source Port' "7979" and the Destination is the IP of the droplet followed by ":32400" (Example - 128.0.0.1:32400)
Then head back onto the 'Session' tab under the Category section. Under Saved Sessions, give the current configuration a name. In my case I called it 'DigitalOcean'. Once named, click Save on the right.
You should end on a screen looking like this, with the Host Name being the IP of your droplet.
Getting the Droplet Ready
Now we have PuTTY ready, it's time to connect to the server. Click on Open in the PuTTY window.
You will be presented with a login screen. Login with the username and password provided with DigitalOcean. If this is your first time logging in, it will ask you to change your password on the droplet.
Once logged in, you should be presented with a screen like this.
Now we want to make sure the droplet is fully updated before we continue. We can do this by using this command.
sudo apt-get update && time sudo apt-get dist-upgrade
Type or copy and paste that into the console and wait for it to be completed.
Now that our droplet is fully updated, let's start by creating a swap.
This can be accomplished by using the following commands. This will quickly create a swap file using the 'fallocate' program
sudo fallocate -l 2G /swapfile
Now that the swap file has been created. You'll want to make it secure.
sudo chmod 600 /swapfile
Now that the swap file is more secure, you need to tell the droplet to setup the swap file.
sudo mkswap /swapfile
Now it is ready to be used. We can now enabled it using
sudo swapon /swapfile
Now that the swap file is enabled and ready. It's not permanent. To make this permanent, your going to edit a file using a text edit to tell the droplet to automatically enable the file every time it resets.
sudo nano /etc/fstab
At the bottom of the document you are going to want to add
/swapfile none swap sw 0 0
It should look sorta like this.
Your then going to press 'Ctrl+X' followed by a captial 'Y' and lastly pressing 'Enter' on your keyboard.
Now the droplet is ready to install Plex and Bitcasa on.
Installing Bitcasa Client
Before we want to install Plex, you want to setup Bitcasa.
In the terminal, you first want to create a folder for your Bitcasa Drive to mount on.
sudo mkdir /home/bitcasa
Now, add the source for the BitCasa client.
sudo sh -c 'echo "deb http://dist.bitcasa.com/release/apt debian main" > /etc/apt/sources.list.d/bitcasa-release.list'
Then add the key for the source.
wget -O- http://dist.bitcasa.com/release/bitcasa-releases.gpg.key | sudo apt-key add -
Next you want to update your source list.
sudo apt-get update
Now you are ready to install the client
sudo apt-get install bitcasa2
After the install is complete, you'll want to mount your account to the folder you just created.
sudo mount.bitcasa your@email.com /home/bitcasa -o password=ThisIsWhereYourBitcasaPasswordGoes
Change the "your@email.com" part to the email of the bitcasa account, make sure you also change the password to the password of your bitcasa account. You have now successfully mounted your bitcasa account. Now you want to make this permanent. You can do this by editing a file using a text editor and adding a line at the bottom of the file.
sudo nano /etc/fstab
Then adding this line to the bottom of the file replacing 'your@email.com' with the email associated with your bitcasa account and 'passwordhere' with the password associated with your bitcasa account.
your@email.com /home/bitcasa bitcasa _netdev,password=passwordhere 0 0
It should look sorta like this.
Your then going to press 'Ctrl+X' followed by a captial 'Y' and lastly pressing 'Enter' on your keyboard.
Your all now good to go with installing Plex!
Installing Plex
Now that we have everything installed, you are now ready to get plex installed on your droplet.
First you want to download Plex.
wget https://downloads.plex.tv/plex-media-server/0.9.11.7.803-87d0708/plexmediaserver_0.9.11.7.803-87d0708_amd64.deb
Then you want to unpack the download
dpkg -i plexmediaserver_0.9.11.7.803-87d0708_amd64.deb
Now lets install the missing files
apt-get install -f
It will then ask if you want to install it or not. Just type a captial Y then press Enter.
Then add the Plex Source
echo 'deb http://plex.r.worlds...ver/ubuntu-repo lucid main' >> /etc/apt/sources.list.d/plexmediaserver.list
And now restart Plex
service plexmediaserver restart
Plex is now fully installed with Bitcasa Support!
Setting up Plex
Now that plex is fully installed, It's time to accessed the server via a web browser. To access the website, open up your internet browser and access the website http://localhost:7979/web - Make sure you are still connected via PuTTY!
You are now setup and ready to use Plex.
Kudos to mhajarat, Justin Ellingwood (DigitalOcean Community) and ASHWIN (chooru.code)