Code Monkey home page Code Monkey logo

wakeonlan's Introduction

This guide is for Raspberry Pi 2, ARM32

Install

sudo apt install git

dotnet, download https://dotnet.microsoft.com/en-us/download/dotnet/8.0

wget https://download.visualstudio.microsoft.com/download/pr/7ec1a911-afeb-47fa-a1d0-fa22cd980b32/157c20841cbf1811dd2a7a51bf4aaf88/dotnet-sdk-8.0.100-linux-arm.tar.gz

sudo rm -rf /opt/dotnet

sudo mkdir -p /opt/dotnet

sudo tar -xf dotnet-sdk-8.0.100-linux-arm.tar.gz -C /opt/dotnet

sudo ln -s /opt/dotnet/dotnet /usr/bin

dotnet --version

Build

useradd --system --no-create-home wol

sudo mkdir -p /opt/wol

sudo chown -R wol:wol /opt/wol/

sudo dotnet publish --runtime linux-arm --self-contained -o /opt/wol

Register service

sudo cp wol.service /etc/systemd/system/wol.service

sudo chown root:root /etc/systemd/system/wol.service

sudo systemctl enable wol.service

sudo systemctl start wol.service

sudo systemctl status wol.service

Update

git pull

sudo systemctl stop wol.service

sudo dotnet publish --runtime linux-arm --self-contained -o /opt/wol

sudo chown -R wol:wol /opt/wol/

sudo systemctl restart wol.service

sudo systemctl status wol.service

wakeonlan's People

Watchers

Clément Mesureux avatar  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.