Skip to content

Latest commit

 

History

63 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS SCRIPT IS OUT OF DATE, PLEASE REFER TO THE OFFICIAL PLAYIT.GG WEBSITE FOR INSTALLATION HELP.

playit-setup-script

A script to set up the playit.gg tunnel host and install it as a service on Linux. But why would you even want that?

  • If playit is running as a systemd service, you don't need to worry about restarting it if your machine ever shuts down, It will start automatically whenever your machine starts up.
  • It's much quicker to restart it when it's a service, because all you need is one command, rather than two or three.
  • Single command installers are nice, particularly when you're dealing with a service.
  • Running anything as a service means that you don't have to have a terminal window open 24/7. It also means that you can access your server via SSH, view or manage the tunnel, and it will remain running after you close your SSH session. (That is actually the primary reason I run it as a service.)

Even if you don't want it as a service, this script automates installation and ensures that playit is executable, all with a single command!

Installation

Script is out of date, please don't use at this time.

Viewing the tunnel host

To view the tunnel host once it is running as a service, use the following command:

screen -r playit.gg

To exit the tunnel host and return to the terminal session, use Ctrl+A D. This will detach you from the screen session and return you to your previous terminal session. If you use Ctrl+C, it will terminate the tunnel host. If this happens, simply restart the tunnel host using systemctl start playit.

Managing the service

To manage any service on Linux under systemd, you use the systemctl command.

  • To stop the playit service, run sudo systemctl stop playit.
  • To start the playit service, run sudo systemctl start playit.
  • To restart the playit service, run sudo systemctl restart playit.
  • To view the status of the playit service, run systemctl status playit.

For more information on the systemctl command, see this article on DigitalOcean, or the man page.

Disclaimer

I am not associated with playit.gg in any way beyond being a user. This script is unoffcial.


Credit for the original idea goes to _-__—__-#5324 on Discord. I saw him mention making an auto-update/installer script, and since I didn't see any mention of one anywhere, I decided to take a crack at it myself.

About

An un-official script to set up the playit.gg tunnel host (https://playit.gg/) and install it as a service on Linux

Resources

Stars

83 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages