Linux check disk space with df command
- Open the terminal and type the following command to check disk space.
- The basic syntax for df is:
df [options] [devices]
NZBGet is the must have software if you are into the usenet databases, basically this will help you searching the files that you requested in Sonarr, Radarr or any other data management tool that you are using for your server, I ended up using NZBGet because it requires less resources than Sabnzbd for my Raspberry PI.
The interface is clean and has plugins that you can set up, such as renaming (if you need help renaming you can also do it with Sonarr or Radarr), detecting files extensions that you dont need for example “.iso”, they dont have the feature to auto comment like sabzbd but usenet providers dont like that feature anyways.
First SSH into Pi
Now we’ll download the and install the NZBGet to
To do this we’ll need to make a directory
sudo mkdir /opt/nzbget
Download the run script to
wget with the
-P flag to determine the destination directory
With no introduction here is samba install
sudo apt-get install samba samba-common-bin smbclient
Create your shared directory
We’re going to create a dedicated shared directory. You can put it anywhere, but ours will be at the top level of the root file system.
sudo mkdir -m 1777 /share
sudo apt-get install transmission-cli transmission-common transmission-daemon
transmission-daemon will start automatically each time you start your server, with the settings defined in /var/lib/transmission-daemon/info/settings.json
Make sure the Transmission daemon is not running when changing the config file otherwise your changes will be over written.
sudo systemctl stop transmission-daemon
Now we need to change a few settings.
sudo nano /var/lib/transmission-daemon/info/settings.json
You may often have to access remote servers to administer, manage, and troubleshoot and there are several ways to do this. You may use telnet to login to remote servers; FTP allows transferring files between different servers. However, these programs are not secure enough for connecting to critical servers. SSH, a secure shell is a cryptographic network protocol using which you can securely access network services over an unsecured network. SSH allows you to access servers through Terminal and various command line functions. It is helpful if you want to access and administer a server remotely using a secure way.
In this article, I am going to describe how you can remotely manage a Linux server with SSH.
For this article, I am using the following machines:
Prior to establishing a secure remote connection with a Ubuntu server using SSH, you have to meet some basic requirements.
Following are some prerequisites:
To manage a Ubuntu server remotely via SSH, you will need the SSH server software. However, before proceeding for the installation of OpenSSH, first, update and upgrade the list of packages to get the most up-to-date repositories.
Update package database
sudo apt update
Upgrade installed packages
After updating repositories, run this command in Terminal to check for an upgrade for installed packages.
sudo apt upgrade
Once you have updated and upgraded the packages, run the following command in Terminal:
sudo apt install openssh-server
Now you will need to do some basic and necessary configuration of SSH server in ssh_config file. For this, run the following command in Terminal to open ssh_config:
sudo nano /etc/ssh/ssh_config
You can do various configuration settings here. For now, we will do only basic and starting configuration as shown in the below screenshot. Uncomment the below line in ssh_config file:
Under port number, add the line MaxAuthTries. You can enter here any number that will allow a maximum number of login attempts.
Once done with the basic configuration, save the file and exit the Nano editor.
Check SSH service status
To check the status of the SSH server, if it is running or not, you can run the following command in Terminal:
sudo service ssh status
The above command confirms that SSH service is active and running.
Now SSH server is set up to accept remote connections from different computers using a SSH client.
If the SSH service is not running you can run it manually by running the following command in Terminal:
sudo service ssh start
You can also stop SSH service by running the following command in Terminal:
sudo service ssh stop
You can access a Linux server through SSH client in Linux or Windows OS:
If you are using a Linux operating system, you can access SSH server using the Terminal program.
$ ssh [remote server] [Port Number]
Where [remote server] is the remote server name or IP and [Port Number] is the remote port for SSH connections.
Or you can also type the command along with the username of the remote server in the following syntax:
$ ssh [username]@[remote server] [Port Number]
Where [username] is the name of the remote server user.
Type yes when it prompts the message asking if you want to continue connectivity. It will add the user to the list of known hosts. Next time you connect, it will not prompt the message again.
When prompted for the password, type the remote user’s password.
Now you are connected to the remote server. You can run any command and use it the same way as you access a local server.
If you are using a Windows operating system, you can use putty as an SSH client.
Install putty in your Windows OS. To launch Putty, Type putty in the search bar of Windows, and select putty.exe from the best match results.
In the putty configuration window, under session category, type IP address of the remote server in the box labeled as Hostname (or IP address).
From connection type, select SSH radio button. If you are using a port other than default port 22, make sure to change it otherwise leave the default port 22. Then click on Open to allow the connection.
A Terminal will open with a login prompt. Enter the username and password of the remote server user.
After you have successfully logged in to the remote server, you can run any command to manage it.
This is how you can easily connect the Linux servers using SSH. Now you are able to manage and administer the server remotely. SSH is not only a secure method of connecting to a server but also convenient.