Setup Linux
Here the setup for Linux is described. MySpeed can be installed in several ways.
Installation with Docker
Help
You don't know how to install Docker? Then check out this guide
docker run -d -p 5216:5216 -v myspeed:/myspeed/data --restart=unless-stopped --name MySpeed germannewsmaker/myspeeddocker run -d -p 5216:5216 -v myspeed:/myspeed/data --restart=unless-stopped --name MySpeed germannewsmaker/myspeed:developmentAutomatic installation
bash <(curl -sSL https://install.myspeed.dev)curl -sSL https://raw.githubusercontent.com/gnmyt/myspeed/development/scripts/install.sh | bash -s -- --betaAutomatic uninstall process
Don't want to use MySpeed anymore? You can easily remove MySpeed. Decide here if you want to keep or delete your data.
Execute these commands with caution
Executing the commands will result in deletion / uninstallation of MySpeed. Please be aware of this.
curl -sSL https://raw.githubusercontent.com/gnmyt/myspeed/development/scripts/uninstall.sh | bash -s -- --keep-datacurl -sSL https://raw.githubusercontent.com/gnmyt/myspeed/development/scripts/uninstall.sh | bashManual installation
sudo apt-get install wget curl -y #(1)
mkdir /opt/myspeed && cd /opt/myspeed #(2)
# Detect architecture and download the appropriate binary
ARCH=$(uname -m)
if [ "$ARCH" = "x86_64" ]; then
ARCH="x64"
elif [ "$ARCH" = "aarch64" ]; then
ARCH="arm64"
fi
wget $(curl -s https://api.github.com/repos/gnmyt/myspeed/releases/latest \
| grep "browser_download_url.*linux-${ARCH}" | cut -d '"' -f 4) \
-O myspeed #(3)
chmod +x myspeed #(4)
./myspeed #(5)- Here you install all necessary packages to install the project.
- Now create the folder where you want to install MySpeed. In this case it is the folder
/opt/myspeed. - Download the pre-compiled binary for your architecture (x64 or arm64).
- Make the binary executable.
- Now MySpeed is started. MySpeed is now available on port 5216. If you plan to run MySpeed in the background, see the guide below.
Install MySpeed from the source code
Attention
This process installs the latest development version of MySpeed. Errors may occur.
sudo apt-get install git curl npm -y #(1)
# Install Deno
curl -fsSL https://deno.land/install.sh | sh
export DENO_INSTALL="$HOME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH" #(2)
mkdir /opt/myspeed && cd /opt/myspeed #(3)
git clone https://github.com/gnmyt/myspeed.git . #(4)
deno install #(5)
cd client && npm install && npm run build && cd .. && mv client/build . #(6)
deno run --allow-all server/index.js #(7)- Here you install all necessary packages to install the project.
- This step installs the Deno runtime.
- Now create the folder where you want to install MySpeed. In this case this is the folder
/opt/myspeed. - Clone the MySpeed repository to get access to the code.
- Now install all dependencies of the server.
- Now compile the interface of MySpeed and move it to the folder where MySpeed can read it.
- Now start MySpeed. MySpeed is now accessible on port 5216. If you plan to run MySpeed in the background, see the guide below.
Install MySpeed 24/7
Important
You have used the installation script? Then you don't need to do this step at all.
Installing as a system service is not even that hard. In this case we use systemd, because it is directly integrated in most Linux distributions.
Create a file named
myspeed.serviceunder/etc/systemd/system. Here we usenanoshnano /etc/systemd/system/myspeed.serviceNow paste the content of the file.
ini[Unit] Description=MySpeed After=network.target [Service] Type=simple ExecStart=/opt/myspeed/myspeed Restart=always # \/ It is strongly recommended to create your own user here User=root # \/ Specify your installation location here WorkingDirectory=/opt/myspeed [Install] WantedBy=multi-user.targetSave the file. This varies a bit depending on the editor
shPress `CTRL` + `X`, then press `Y` and press `Enter` to save the file and exit the editor.shPress `ESC`, then type `:wq` and press `Enter` to save the file and exit the editor.Now reload systemd
shsystemctl daemon-reloadIf you want MySpeed to boot at systemd startup, type this command:
shsystemctl enable myspeedDone! Now you can finally start MySpeed.
shsystemctl start myspeedNow check the status of MySpeed
shsystemctl status myspeed
