Announcement

Collapse
No announcement yet.

How to Power On a Synology NAS Remotely from the Linux Command-Line using WOL (Wake-on-LAN)

Collapse
X
Collapse
  •  

  • How to Power On a Synology NAS Remotely from the Linux Command-Line using WOL (Wake-on-LAN)


    WOL – Wake-on-LAN is a feature of the Synology NAS that allows you to turn on your Synology NAS from any computer on the same network as your Synology NAS without needing to press the power button of your Synology NAS.

    If you want to keep your Synology NAS locked in a cabinet, or on top of a shelf that is very hard to reach (due to height), you may not have easy access to the power button of your Synology NAS. In that case, you will be able to use WOL (Wake-On-LAN) to turn on your Synology NAS remotely from other devices.

    You can use the Synology Assistant app to send WOL signal to your Synology NAS to turn it on. You can also use a WOL Client on your computer to send a WOL signal to your Synology NAS to turn it on.

    In this article, I will show you how to send a WOL (Wake-On-LAN) signal to your Synology NAS from the Command-Line of popular Linux distributions (using a Linux WOL client) to power on your Synology NAS remotely.







    Table of Contents

    1. Enabling Wake-On-LAN (WOL) on a Synology NAS
    2. Finding MAC Address of Network Interface of Synology NAS with WOL Enabled
    3. Installing WOL Client on Ubuntu/Debian
    4. Installing WOL Client on Fedora
    5. Installing WOL Client on openSUSE
    6. Installing WOL Client on Arch Linux/Manjaro
    7. Powering On Synology NAS Remotely from the Ubuntu/Debian Command-Line using wakeonlan
    8. Powering On Synology NAS Remotely from Linux Command-Line using wol
    9. Conclusion





    Enabling Wake-On-LAN (WOL) on a Synology NAS

    To enable the Wake-on-LAN (WOL) feature on your Synology NAS, visit the DSM web interface of your Synology NAS from your favorite web browser.

    From the DSM web interface, open the Control Panel app and click on Hardware & Power.



    From the Power Recovery section of the General tab, you can enable Wake-on-LAN (WOL) for one or more network interfaces of your Synology NAS[1].

    I am using only the first network interface (LAN 1) of my Synology NAS. So, I have ticked Enable WOL on LAN 1 to enable Wake-on-LAN for only the first network interface (LAN 1) of my Synology NAS.

    Once you’re done, click on Apply to save the changes[2].









    Finding MAC Address of Network Interface of Synology NAS with WOL Enabled

    To send a Wake-on-LAN (WOL) signal to your Synology NAS remotely, you need to know the MAC address of a WOL enabled network interface of your Synology NAS.

    Read this article if you need any assistance in finding the MAC address of the network interfaces of your Synology NAS.







    Installing WOL Client on Ubuntu/Debian

    On Ubuntu/Debian, you will find the wakeonlan WOL client in the official package repository. So, it’s easy to install.

    First, update the APT package database cache with the following command:

    $ sudo apt update






    To install the wakeonlan WOL client on Ubuntu/Debian, run the following command:

    $ sudo apt install wakeonlan -y




    wakeonlan WOL client should be installed on your Ubuntu/Debian system.





    Read this section for instructions on powering on your Synology NAS remotely from the command line using the wakeonlan WOL client.







    Installing WOL Client on Fedora

    On Fedora Linux, you will find the wol WOL client in the official package repository. So, it’s easy to install.

    First, update the DNF package database cache with the following command:

    $ sudo dnf makecache






    To install the wol WOL client on Fedora Linux, run the following command:

    $ sudo dnf install wol -y




    The wol WOL client should be installed.





    Read this section for instructions on powering on your Synology NAS remotely from the command line using the wol WOL client.







    Installing WOL Client on openSUSE

    On OpenSUSE Linux, you will find the wol WOL client in the official package repository. So, it’s easy to install.

    First, update the Zypper package database cache with the following command:

    $ sudo zypper refresh






    To install the wol WOL client on openSUSE Linux, run the following command:

    $ sudo zypper install wol




    In this case, the wol client tool is installed by default on my openSUSE Leap 15.5 system. If it’s not installed in your case, the zypper package manager will install it for you.



    Read this section for instructions on powering on your Synology NAS remotely from the command line using the wol WOL client.







    Installing WOL Client on Arch Linux/Manjaro

    On Arch Linux, Manjaro, and other Arch-Linux based Linux distributions, you will find the wol WOL client in the official package repository. So, it’s easy to install.

    To install the wol WOL client tool on Arch Linux/Manjaro, run the following command:

    $ sudo pacman -Sy wol




    To confirm the installation, press Y and then press .





    The wol WOL client should be installed.





    Read this section for instructions on powering on your Synology NAS remotely from the command line using the wol WOL client.







    Powering On Synology NAS Remotely from the Ubuntu/Debian Command-Line using wakeonlan

    If you’re using one of the Linux distributions listed below, then you will be using the wakeonlan WOL client to power on your Synology NAS remote.
    • Ubuntu
    • Debian
    • Linux Mint
    • Elementary OS
    • Deepin Linux
    • Other Ubuntu/Debian-based Linux distributions

    If the MAC address of the WOL enabled network interface of your Synology NAS is 00:11:aa:bb:cc:dd, then you can remotely power on your Synology NAS from Ubuntu/Debian using the wakeonlan WOL client as follows:

    $ sudo wakeonlan 00:11:aa:bb:cc:dd






    For more information on the wakeonlan WOL client, read the wakeonlan help page.

    $ wakeonlan --help










    Powering On Synology NAS Remotely from Linux Command-Line using wol

    If you’re using one of the Linux distributions listed below, then you will be using the wakeonlan WOL client to power on your Synology NAS remote.
    • Fedora Linux
    • Arch Linux
    • Manjaro
    • openSUSE
    • Other Linux distributions based on Fedora and Arch Linux.



    If the MAC address of the WOL enabled network interface of your Synology NAS is 00:11:aa:bb:cc:dd, then you can remotely power on your Synology NAS from Ubuntu/Debian using the wol WOL client as follows:

    $ sudo wol 00:11:aa:bb:cc:dd






    For more information on the wol WOL client, read the wol help page.

    $ wol --help










    Conclusion

    In this article, I have shown you how to enable Wake-on-LAN (WOL) for a network interface of your Synology NAS. I have also shown you how to install a WOL client on popular Linux distributions such as Ubuntu/Debian (and Ubuntu/Debian-based Linux distributions like Linux Mint, Elementary OS, Deepin Linux), Fedora Linux, openSUSE, and Arch Linux (and Arch-based Linux distributions like Manjaro Linux). Finally, I have shown you how to send a Wake-on-LAN (WOL) signal to your Synology NAS using the wakeonlan/wol command-line tool from Linux to power on your Synology NAS remotely.







    More...
      Posting comments is disabled.

    Categories

    Collapse

    Article Tags

    Collapse

    There are no tags yet.

    Latest Articles

    Collapse

    • Using MAXQDA for Qualitative Data Analysis on Linux
      by Kasimba



      by George Whittaker


      Introduction

      Qualitative data analysis (QDA) is a cornerstone of research across various fields, from social sciences to marketing. It involves uncovering patterns, themes, and meanings within non-numerical data such as interviews, focus groups, and textual narratives. In this era of digital tools, MAXQDA stands out as a premier software solution for QDA, empowering researchers to organize...
      11-21-2024, 11:31 PM
    • HAProxy on Ubuntu: Load Balancing and Failover for Resilient Infrastructure
      by Kasimba



      by german.suarez


      Introduction

      In today’s fast-paced digital landscape, ensuring the availability and performance of applications is paramount. Modern infrastructures require robust solutions to distribute traffic efficiently and maintain service availability even in the face of server failures. Enter HAProxy, the de facto standard for high-performance load balancing and failover.


      This article...
      11-21-2024, 03:00 PM
    • Providing a license for package sources
      by Kasimba
      Arch Linux hasn't had a license for any package sources (such as PKGBUILD files) in the past, which is potentially problematic. Providing a license will preempt that uncertainty.

      In RFC 40 we agreed to change all package sources to be licensed under the very liberal 0BSD license. This change will not limit what you can do with package sources. Check out the RFC for more on the rationale and prior discussion.

      Before we make this change, we will provide contributors with...
      11-19-2024, 09:21 AM
    • Linux Binary Analysis for Reverse Engineering and Vulnerability Discovery
      by Kasimba



      by George Whittaker


      Introduction

      In the world of cybersecurity and software development, binary analysis holds a unique place. It is the art of examining compiled programs to understand their functionality, identify vulnerabilities, or debug issues—without access to the original source code. For Linux, which dominates servers, embedded systems, and even personal computing, the skill of binary analysis is...
      11-18-2024, 07:10 PM
    • Ubuntu vs Debian: Linux Distributions Compared Deep Dive
      by Kasimba
      Debian and Ubuntu are two popular Linux distributions. In this deep dive we will guide you on the key differences between them from perspective of both corporate enterprise and personal productivity or pleasure usage. After reading this blog post you should be in a better position to decide to select Ubuntu or Debian.
      Stewardship, Licensing, Community and Cost

      Where as Debian is 100% fully committed to free software as defined by the Debian Free Software Guidelines, Ubuntu is created...
      11-17-2024, 08:30 PM
    • Debian Backup and Recovery Solutions: Safeguard Your Data with Confidence
      by Kasimba



      by George Whittaker


      Introduction

      In the digital age, data loss is a critical concern, and effective backup and recovery systems are vital for any Debian system administrator or user. Debian, known for its stability and suitability in enterprise, server, and personal computing environments, offers a multitude of tools for creating robust backup and recovery solutions. This guide will explore these solutions,...
      11-13-2024, 05:30 PM
    Working...
    X