Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@moartube/moartube-node
Advanced tools
A free, open-source, self-hosted, anonymous, decentralized video/live stream platform. Scalable via Cloudflare, works in the cloud or from home WiFi.
A repository containing the MoarTube Node software, a cross-platform terminal-based Node.js Express application, managed by the MoarTube Client. Share your node's videos with MoarTube or do your own thing and run your node privately. MoarTube makes video and live streaming so easy you'll be amazed beyond belief.
Welcome to the MoarTube Node setup guide! This document will guide you through the different setup methods to get your MoarTube Node up and running. Don't worry! MoarTube is so easy to set up and use, you'll be done in minutes. When ready, head over to MoarTube Client if you haven't yet.
Node.js is the only requirement to run a MoarTube Node, and all major operating systems support it.
MoarTube Node has the smallest resource usage footprint out of any self-hosted video and live streaming solution available today; most of the heavy computational responsibilities and memory-intensive operations are handled by MoarTube Client; MoarTube Node is only responsible for storage and distribution. MoarTube Node is also multi-threaded, utilizing the full potential of the CPU of whatever system it is installed on.
On Digital Ocean, an $8 VPS (1 vCPU, 1 GB RAM) provides a comfortable headroom to handle surprisingly moderate demand. Although this tier is likely adequate for most users, others will need to observe the resource usage monitor and adjust their instance accordingly. Or just simply forget all that and host from your personal computer over home WiFi.
The node software uses about 100MB of RAM while sitting idle with fluctuations depending on visitor (and user) demand. Much of the demand can be alleviated by the Cloudflare integration feature, leveraging the world's largest CDN to distribute your video and live stream data, giving your node capabilities that rival that of major platforms.
To give you an idea of how tiny MoarTube Node really is, the software can run on a Raspberry Pi Zero 2 W on Raspberry Pi OS with approximately 100MB of system RAM remaining out of a total system availability of 512MB; the OS uses about 200MB RAM and reserves an additional 100MB for a swap file.
As you can see, MoarTube Node is quite capable and can run on just about anything, anywhere.
Node.js v20 and later required.
Observe the corresponding prerequisite for your installation method.
If you're using Docker, make sure that it is installed on your machine.
If you're using npm to install the software, make sure that Node.js and npm are installed on your machine.
You can clone the repo, but make sure that Node.js and npm are installed on your machine.
A script to automate your entire setup. Installs Node.js using Snap, clones the git repo using git, installs dependencies using npm, and sets the node to autostart on system boot using systemctl
Choose any of the following installation methods.
MoarTube Node is available on DockerHub and can be easily set up using Docker Desktop or via the command line for a more manual approach.
You can manage MoarTube Node using Docker Desktop by searching for moartube/moartube-node
on DockerHub within the Docker Desktop interface.
To set up MoarTube Node manually using Docker, execute the following command in your terminal. This command pulls the latest MoarTube Node image, creates a container named moartube-node-1
, assigns it port 8181, and configures it to auto-restart unless manually stopped.
docker run --platform linux/amd64 -d --restart unless-stopped -p 8181:80 --name moartube-node-1 moartube/moartube-node:latest
docker run --platform linux/arm64 -d --restart unless-stopped -p 8181:80 --name moartube-node-1 moartube/moartube-node:latest
note: the Docker container uses /data for its volume container path.
You can install MoarTube Node globally:
npm i @moartube/moartube-node -g
And run from the command-line globally:
moartube-node
You can install MoarTube Node locally:
npm i @moartube/moartube-node
And run from the command-line locally:
node node_modules/@moartube/moartube-node/moartube-node.js
git clone https://github.com/MoarTube/MoarTube-Node
Open a terminal in the cloned directory and run:
npm install
node moartube-node.js
bash <(wget -O - https://www.moartube.com/bash/install/node)
The default login credentials for your node are below. Be sure to change these upon logging in.
By default, MoarTube Node listens on port 80.
username: admin
password: admin
At this point, you should probably look into creating a free Cloudflare account so that you can give your node CDN capabilities. With over 300 data centers worlwide, Cloudflare will distribute most of your node's videos and live streams.
If you haven't already, it's time to get the MoarTube Client.
Ubuntu Linux comes pre-installed with the Snap package manager. It's the easiest way to install Node.js.
Run the command:
sudo snap install node --classic --channel=21
This guide will configure your node to autostart on system boot.
Stop the Moartube Node software if it is running
Run the command:
sudo nano /etc/systemd/system/moartube-node.service
Below is an example of a moartube-node systemd service unit file
Make any necessary changes and paste it into the nano text editor
[Unit]
Description=MoarTube Node
After=network.target
[Service]
Type=simple
User=root
ExecStart=/snap/bin/node /home/Moartube-Node/moartube-node.js
Restart=always
[Install]
WantedBy=multi-user.target
Reload all services.
sudo systemctl daemon-reload
Make the moartube-node service autostart on system boot.
sudo systemctl enable moartube-node
Start the moartube-node service.
sudo systemctl start moartube-node
View the status of the moartube-node service
sudo systemctl status moartube-node
Stop the moartube-node service.
sudo systemctl stop moartube-node
Restart the moartube-node service.
sudo systemctl restart moartube-node
FAQs
A free, open-source, self-hosted, anonymous, decentralized video/live stream platform. Scalable via Cloudflare, works in the cloud or from home WiFi.
The npm package @moartube/moartube-node receives a total of 32 weekly downloads. As such, @moartube/moartube-node popularity was classified as not popular.
We found that @moartube/moartube-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.