Utilize Google Cloud with PG for free.

jadg

PG Specialist
Tech Lead
Mar 5, 2018
11
14
8
Reactions
14 0 0
#1
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.
 

flicker-rate

Administrator
Project Manager
Feb 14, 2018
76
111
8
Reactions
111 0 0
#3
This is pretty cool. Do you know how much egress data google will give you, or how much it costs?
 

jadg

PG Specialist
Tech Lead
Mar 5, 2018
11
14
8
Reactions
14 0 0
#4
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.
 

mixedvadude

PG Specialist
Feb 9, 2018
13
5
0
Reactions
5 0 0
#5
It wouldn't allow me to do anything more than 100GB on an SSD in US East region.
 

jadg

PG Specialist
Tech Lead
Mar 5, 2018
11
14
8
Reactions
14 0 0
#6
It wouldn't allow me to do anything more than 100GB on an SSD in US East region.
Ahh that sucks, I tend to stick with normal HDD space as it's cheaper.
 

mixedvadude

PG Specialist
Feb 9, 2018
13
5
0
Reactions
5 0 0
#7
Ahh that sucks, I tend to stick with normal HDD space as it's cheaper.
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.
 

jadg

PG Specialist
Tech Lead
Mar 5, 2018
11
14
8
Reactions
14 0 0
#8
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?
 

mixedvadude

PG Specialist
Feb 9, 2018
13
5
0
Reactions
5 0 0
#9
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

PG Specialist
PG Donor
Jan 21, 2018
19
21
8
australia
Reactions
21 0 0
#10
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

PG Specialist
Tech Lead
Mar 5, 2018
11
14
8
Reactions
14 0 0
#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

PG Master Sergeant
Tech Lead
Mar 16, 2018
97
49
18
Reactions
49 0 0
#12
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.
 
Assists Greatly with Development Costs

tonycfromit

PG Master Sergeant
Tech Lead
Mar 16, 2018
97
49
18
Reactions
49 0 0
#13
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

PG Master Sergeant
Apr 24, 2018
61
15
8
Reactions
15 0 0
#14
that does not work. When you close session you can not enter again
 
Last edited:

dishjuarez

PG Master Sergeant
Apr 24, 2018
61
15
8
Reactions
15 0 0
#15
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

PG Specialist
Tech Lead
Mar 5, 2018
11
14
8
Reactions
14 0 0
#16
---- 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.
 

Whatdafuq

PG 2nd Lieutenant
May 6, 2018
130
29
28
Reactions
29 0 0
#17
Do you have to do the part “Connecting to your instance” Will something not work if I just use the google SSH?
 

Admin9705

Administrator
Project Manager
Jan 17, 2018
4,682
1,987
113
Reactions
1,987 0 0
#18
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
 
Assists Greatly with Development Costs

Whatdafuq

PG 2nd Lieutenant
May 6, 2018
130
29
28
Reactions
29 0 0
#19
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

PG 2nd Lieutenant
Feb 16, 2018
131
42
28
America Baby
Reactions
42 0 0
#20
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?
 

PG Developer Donations

 

Forum statistics

Threads
2,959
Messages
18,623
Members
5,921
Latest member
agarb