Tag Archives: Synology DiskStation RackStation

Synology Inc. is a Taiwanese corporation that specializes in network-attached storage (NAS) appliances. Synology’s line of NAS is known as the DiskStation for desktop models, and RackStation for rack-mount models. Synology’s products are distributed worldwide and localized in several languages.

Synology DSM with SSH Terminal by GateOne

How to deploy GateOne Terminal emulator SSH client on Synology DSM, GateOne you can find at SynoCommunity packages.

GateOne is a web-based HTML5 driven open-source terminal emulator with a powerful SSH client that can be used to run any terminal application from the browser and provide virtual terminal connections. GateOne can be used as a supplement to web-based management interfaces. This post shows how to deploy and use GateOne with Synology DSM.

GateOne for each browser they supports WebSocket, a browser plugin is not required

Synology DSM with SSH Terminal by GateOne

Synology DSM does not provide a way for diagnostic tasks such as ping or traceroute, with an embedded SSH client these functions comes available. The GateOne SSH client offers other useful applications, such as bypassing a proxy, or if there is no VPN to the NAS and the firewall only allows port 443 (HTTPS) for the browser.

GateOne is not provided or managed by Synology itself, but can be retrieved from the SynoCommunity repository. The SynoCommunity offers free packages for Synology NAS devices.

Note. GateOne version 0.9.3 for DSM 5/6, support for DSM 7 is currently not available (23.8.2021).

Add the SynoCommunity packages repository from which get GateOne SSH

From DSM you open the main menu with the icon at the top left, there you will find the package center.

Click on the Icon Package Center to open it, then on button Settings.

Synology Package Center
Synology Packet Center Settings

In the General pane that opens, under Trust level, select Synology Inc. and Trusted Publishers.

Synology DSM with SSH Terminal by GateOne

Then go to the Package Sources section.

Synology DSM with SSH Terminal by GateOne

Click the Add button and insert the package source, enter SynoCommunity as the name and paste the URL https://packages.synocommunity.com/ for location and click OK.

Synology Packet Center Add synocommunity packages

Now packages can be installed from SynoCommunity, here you enter gateone in the search field at the top of the magnifying glass.

GateOne

After GateOne appears from the community package source, the app is provided by clicking install.

There are now many possible applications with GateOne.

Note. In order to be able to access the NAS itself via SSH, the SSH service must be activated in the DSM control panel, how to do it can find here. The most commands require sudo permission, i.e. sudo ping.

What is Websocket ?

The WebSocket protocol is a TCP-based network protocol that was designed to establish a bidirectional connection between a web application and a WebSocket server or a web server that also supports WebSockets

How to Install Midnight Commander on Synology NAS

Install Midnight Commander in Synology DSM Terminal Shell

This post shows how to deploy Midnight Commander on a Synology NAS, the file manager for the file system in the Synology Shell via SSH. Midnight Commander, short mc is one of the most well-known console programs on Linux. Fortunately, you can easily add additional software repositories to the Synology NAS to install additional tools.

The Midnight Commander is not provided or managed by Synology itself, but can be retrieved from the SynoCommunity repository. The SynoCommunity offers free packages for Synology NAS devices.

How to add the SynoCommunity repository

Synology DSM Main Menu

From DSM you open the main menu with the icon at the top left, there you will find the Package Center.

By clicking on the icon Package Center to open this, then click the Settings button.

Synology Icon Package Center
Synology Package Center

In the now opened General window under Trust Level, enable the Synology Inc. and trusted publishers option.

Synology Trust Level

Then go to the Package Sources section.

Synology Package Sources

Click the Add button and insert the package source, enter SynoCommunity as the name, and insert the URL https://packages.synocommunity.com/ at location and click OK.

Synology Add Package Source

Packages can now be installed. The SynoCli File Tools package provides the following command-line utilities: less, tree, ncdu, jdupes, rhash, mc (midnight-commander), nano, file, detox, rmlint, rnm, pcre2, zstd. Nano used to be a separate package, but is now only available through the SynoCli File Tools package.

SynoCli File Tools

Now you can connect with a terminal like PuTTY to diskstation and run mc in the shell.

NAS7:/$ sudo mc

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password:

Midnight Commander

Use sudo to run mc, after the admin password is entering the Midnight Commander is opened.

Midnight Commander on the Synology Shell

In the menu bar below, the functions of mc can be used via the F-keys or also with the mouse, such as Edit or Copy, with the cursor keys or the mouse you navigate in the window, press tab to switch to the other window, press F10 to leave Midnight Commander.

  Remember, changes to system files require knowledge of the function and its effects.

Enable Synology DSM SSH service

In order for the terminal to be accessible via SSH, the SSH service must be activated in the DSM Control Panel, under Terminal & SNMP, in order to make the Icon Terminal & SNMP visible, Advanced Mode is selected at the top right.

Synology Control Panel

In the Terminal window, enable the SSH service option.

Synology Enable SSH service

Next post on the same topic might be helpful, see in How to Install Nano on Synology NAS