Utilize Google Cloud with PG for free.

jadg

Blitz 3rd Class
Original poster
Staff
11
11
As most of you have a new domain and using google suite you are eligible for $300 in google cloud credits.

https://cloud.google.com

Using this you can create a plexguide server within minutes and have it running (depending on which server you select) for a good few months before trial credits run out. This is a great way of learning plexguide/Linux with minimal investment (your standard gsuite fee).

Step to take:

1. Sign in to your Gsuite account
2. Head to https://console.cloud.google.com
3. Sign up for cloud platform free trial.

4. Agree to terms and conditions of the trial
5. Put in your address information etc.
6. Add debit/credit card information. This WILL NOT be charged unless you upgrade your account and you can't use prepaid cards for this stage. Once these steps have been completed google will create your project, It will ask if you want to take a tour of the console you can skip that for now or take the tour it's up to you.

Setup of a VM Instance:
1.
Head over to the compute engine and allow that to boot and setup, it'll take a few minutes usually.

2. Click create
3. Name your server anything you'd like
4. Zone = Region pretty self-explanatory pick the one closest to you for best performance.
5. Machine Type. this is where you can change the amount of CPU and RAM you'd like in your system, for reference I currently run a 2vCPU instance with PG and have at most 3-4 users at one time on plex which most direct play. If your using this by yourself a 2vCPU system will be enough power.
6. Boot Disk, This is where you create the disk for the server you can either use SSD or normal HDD depending on your preference. Select ubuntu 16.04LTS. For reference, I use a 500GB disk on my PG which seems to be plenty as I'm currently maxing out at about 10% usage with daily TV shows. Obviously, I'd suggest a bigger disk for people who download from torrents to allow seeding etc.
7. Firewall click to allow both HTTP and HTTPS traffic
8. Click create. This will create the server which will take a few minutes, while that is happening we can move on to firewall/IP configuration.



Reserving a static IP & Firewall

Static IP:
1.
On VPC network click External IP Addresses
2. Create a name for your IP
3. IPv4 is what you want to reserve
4. A regional IP will be fine
5. Select the same region you created your server on if you are unsure which one it just start from the top and keep checking "attached to" which will bring up your server.
6. Attach it to your server.
7. Click Reserve.

Firewall:
This is a general idea of what to do, once you know what applications you want I suggest just opening those ports up and closing the rest.
1.
On VPC network click firewall rules
2. Create a firewall rule
3. Name it
4. Keep everything default until target tags
5. Target tag: anything e.g. Plex
6. Source IP Range: 0.0.0.0/0 (this will apply to current and future instances)
7. Second Source filter: None
8. Protocols and ports: Allow All
9. Create.
10. To open up specfic ports e.g. Plex & nzbget you'd put tcp:32400; tcp; udp:6789

Connecting to your instance
In this guide, I haven't used SSH keys so to access our server from our own computer e.g. putty etc we need to configure the instance's SSH protocol.

1. Go back over to your compute engine
2. Click SSH and allow the pop-up
3. This will give us a username with sudo privileges
4. type: sudo nano /etc/ssh/sshd_config
5. Set PubkeyAuthentication to NO
6.
Set PasswordAuthentication to YES
7. Press CTRL+X to exit nano and select yes to overwriting the file.
8. Restart the SSH protocol using: sudo systemctl restart sshd.service
9.
Set a password for your account using: sudo passwd
10.
Using your prefered SSH client SSH in and start the Plexguide install.


I hope this helps some people, I currently use this setup and save money from what I was paying to Hetzner it isn't a perfect setup and you can't download loads of data but I only download current TV shows and have a few family and freinds on my server. By all means try more powerful servers etc and let me know how you get on.
 

jadg

Blitz 3rd Class
Original poster
Staff
11
11
This is pretty cool. Do you know how much egress data google will give you, or how much it costs?
No idea, in regards to egress out of google to Gdrive, i'm pretty sure it's classed and internal but I can't be sure on that. I wouldn't use it to upload torrents or seedbox really. Use of it as a plexserver I haven't had an issue with but they can close accounts down for Coin mining etc so they could close them for plex usage too.
 
  • Like
Reactions: Spoonsy1480

jadg

Blitz 3rd Class
Original poster
Staff
11
11
Yeah.... Also SSH would never load for my instance. It kept saying it's running outdated keys or something and I had to update it. Google's instructions on updating it weren't the easiest to follow.
Had you used the online SSH to configure password login or did you keep to using SSH keys?
 
  • Like
Reactions: clandor

mixedvadude

Blitz 3rd Class
24
4
Had you used the online SSH to configure password login or did you keep to using SSH keys?
Eventually I used gcloud terminal line tool to ssh into it and paste an SSH key I generated from puttygen
into the authorized keys section. So yeah I'm good now...
 

rabbit

Blitz 3rd Class
Donor
19
11
thanks heaps for this post dude!
saving me a good $60 USD every month now - best part is I can deploy this in Sydney and I can watch stuff in HD now!
i'm hoping i'm able to make a new account in two months time and start another trial haha.
 

jadg

Blitz 3rd Class
Original poster
Staff
11
11
thanks heaps for this post dude!
saving me a good $60 USD every month now - best part is I can deploy this in Sydney and I can watch stuff in HD now!
i'm hoping i'm able to make a new account in two months time and start another trial haha.
Glad to help! you can create a new account every time your credits run out ;)
 

tonycfromit

Blitz 1st Class
Staff
99
43
After following your instructions I can ssh using the compute engine console, but once I edit the sshd_config and save up and set my password, I then cannot login with the console, with gcloud console, or putty. The compute engine console stays on the spinning ball, while the gcloud console and putty both ask for my password and won't accept the password I just set. Is there something else I am missing here? gcloud console is telling me Permission Denied (password) and putty is just saying password denied.
 
  • Like
Reactions: dishjuarez

tonycfromit

Blitz 1st Class
Staff
99
43
just to add - make sure that when you are in the original SSH console from the compute engine, after modifying the sshd config, you create a NEW user with sudo powers and give it a password. For whatever reason, using the default ended after hours of slamming my head against a wall trying everything BUT this. This works.
 

dishjuarez

Blitz 1st Class
63
12
thanks heaps for this post dude!
saving me a good $60 USD every month now - best part is I can deploy this in Sydney and I can watch stuff in HD now!
i'm hoping i'm able to make a new account in two months time and start another trial haha.
---- Automatically Merged Double Post ----

Can you helpme? I having problems with login in... Congrats
 
Last edited:

jadg

Blitz 3rd Class
Original poster
Staff
11
11
---- Automatically Merged Double Post ----


Can you helpme? I having problems with login in... Congrats
What part are you having issues login into? message me on discord for a quicker reply, my username is JADG on the plexguide discord.
 

Admin9705

Administrator
Project Manager
5,305
1,805
As most of you have a new domain and using google suite you are eligible for $300 in google cloud credits.

https://cloud.google.com

Using this you can create a plexguide server within minutes and have it running (depending on which server you select) for a good few months before trial credits run out. This is a great way of learning plexguide/Linux with minimal investment (your standard gsuite fee).

Step to take:

1. Sign in to your Gsuite account
2. Head to https://console.cloud.google.com
3. Sign up for cloud platform free trial.

4. Agree to terms and conditions of the trial
5. Put in your address information etc.
6. Add debit/credit card information. This WILL NOT be charged unless you upgrade your account and you can't use prepaid cards for this stage. Once these steps have been completed google will create your project, It will ask if you want to take a tour of the console you can skip that for now or take the tour it's up to you.

Setup of a VM Instance:
1.
Head over to the compute engine and allow that to boot and setup, it'll take a few minutes usually.

2. Click create
3. Name your server anything you'd like
4. Zone = Region pretty self-explanatory pick the one closest to you for best performance.
5. Machine Type. this is where you can change the amount of CPU and RAM you'd like in your system, for reference I currently run a 2vCPU instance with PG and have at most 3-4 users at one time on plex which most direct play. If your using this by yourself a 2vCPU system will be enough power.
6. Boot Disk, This is where you create the disk for the server you can either use SSD or normal HDD depending on your preference. Select ubuntu 16.04LTS. For reference, I use a 500GB disk on my PG which seems to be plenty as I'm currently maxing out at about 10% usage with daily TV shows. Obviously, I'd suggest a bigger disk for people who download from torrents to allow seeding etc.
7. Firewall click to allow both HTTP and HTTPS traffic
8. Click create. This will create the server which will take a few minutes, while that is happening we can move on to firewall/IP configuration.



Reserving a static IP & Firewall

Static IP:
1.
On VPC network click External IP Addresses
2. Create a name for your IP
3. IPv4 is what you want to reserve
4. A regional IP will be fine
5. Select the same region you created your server on if you are unsure which one it just start from the top and keep checking "attached to" which will bring up your server.
6. Attach it to your server.
7. Click Reserve.

Firewall:
This is a general idea of what to do, once you know what applications you want I suggest just opening those ports up and closing the rest.
1.
On VPC network click firewall rules
2. Create a firewall rule
3. Name it
4. Keep everything default until target tags
5. Target tag: anything e.g. Plex
6. Source IP Range: 0.0.0.0/0 (this will apply to current and future instances)
7. Second Source filter: None
8. Protocols and ports: Allow All
9. Create.
10. To open up specfic ports e.g. Plex & nzbget you'd put tcp:32400; tcp; udp:6789

Connecting to your instance
In this guide, I haven't used SSH keys so to access our server from our own computer e.g. putty etc we need to configure the instance's SSH protocol.

1. Go back over to your compute engine
2. Click SSH and allow the pop-up
3. This will give us a username with sudo privileges
4. type: sudo nano /etc/ssh/sshd_config
5. Set PubkeyAuthentication to NO
6.
Set PasswordAuthentication to YES
7. Press CTRL+X to exit nano and select yes to overwriting the file.
8. Restart the SSH protocol using: sudo systemctl restart sshd.service
9.
Set a password for your account using: sudo passwd
10.
Using your prefered SSH client SSH in and start the Plexguide install.


I hope this helps some people, I currently use this setup and save money from what I was paying to Hetzner it isn't a perfect setup and you can't download loads of data but I only download current TV shows and have a few family and freinds on my server. By all means try more powerful servers etc and let me know how you get on.

working to automate this, man :D almost done for the version
 

Whatdafuq

Blitz Sergeant
151
28
I've got everything working except I can't access my plex server outside of the server. I've tried manually setting the port in plex and still is red and none of my devices like my phone can see it. Any ideas?
 

Escondido

Blitz Sergeant
132
26
Machine Type. this is where you can change the amount of CPU and RAM you'd like in your system, for reference I currently run a 2vCPU instance with PG and have at most 3-4 users at one time on plex which most direct play. If your using this by yourself a 2vCPU system will be enough power.
How are you able to Direct Play when most of the films/tv shows are mkv's?
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.


Blitz Developer Donations

 

Trending