Coder Social home page Coder Social logo

plep-m / playit-setup-script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aboreddev/playit-setup-script

0.0 0.0 0.0 53 KB

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

License: MIT License

Shell 100.00%

playit-setup-script's Introduction

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!

Usage

Debian/Ubuntu, Raspberry Pi (Raspbian)

The script doesn't need to be run as root, it will elevate permissions when it needs to.

bash <(curl -sS https://raw.githubusercontent.com/aBoredDev/playit-setup-script/main/playit-setup.sh)

And that's it!

If you just want to install the tunnel host without setting up a service, use the following command:

bash <(curl -sS https://raw.githubusercontent.com/aBoredDev/playit-setup-script/main/playit-setup.sh) --no-service

And if you only want to set up a systemd service for playit, you can use

bash <(curl -sS https://raw.githubusercontent.com/aBoredDev/playit-setup-script/main/playit-setup.sh) --service-only

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.

playit-setup-script's People

Contributors

aboreddev avatar ryuo1 avatar plep-m avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.