Installing and Configuring a TFTP Server in Ubuntu

TFTP (Trivial File Transfer Protocol) It is mainly used for initial loading of diskless workstations. TFTP, unlike FTP, does not contain authentication capabilities (although it is possible to filter on the IP address) and is based on the transport protocol UDP.
atftpd server
atftp client

Install:

sudo apt-get install atftpd atftp

The server uses the port: 69/udp
The default directory is /srv/tftp if it does not exist, create:

sudo mkdir -p /srv/tftp
sudo chown nobody /srv/tftp

To start automatically, you need to comment out (put # at the beginning of the line) the start line in /etc/inetd.conf:

#tftp dgram udp4 wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd –tftpd-timeout 300 –retry-timeout 5 –mcast-port 1758 –mcast-addr 239.239.239.0-255 –mcast-ttl 1 –maxthread 100 –verbose=5 /srv/tftpd

And change the value of the variable USE_INETD in the file /etc/default/atftpd from true to false.
This can be done in any editor, for example using nano:

sudo nano /etc/default/atftpd

(in the editor the key combination Ctrl+O is used to save the changes, and Ctrl+X to exit).

To apply the changes and run atftpd, run the following command:

sudo /etc/init.d/atftpd restart

Done, TFTP server should work, accept and return files from the /srv/tftp directory.

See also my articles:
IPTables rules for TFTP
Starting a TFTP server in Windows
Configuring DHCP + TFTP for DOCSIS
Install and configure tftpd-hpa

Install and configure ntopng

Below I’ll describe the installation of ntopng in Ubuntu.
We select the necessary package on http://packages.ntop.org/apt-stable/ and download it:

wget wget http://apt-stable.ntop.org/16.04/all/apt-ntop-stable.deb
sudo dpkg -i apt-ntop-stable.deb

Further we carry out:

sudo apt-get clean all
sudo apt-get update
sudo apt-get install pfring nprobe ntopng ntopng-data n2disk nbox
sudo touch /etc/ntopng/ntopng.start
sudo /etc/init.d/ntopng restart

If new versions of ntopng are released, then you can update by running the commands:

sudo apt-get update
sudo apt-get upgrade

After installation, the configuration file will be located in the /etc/ntopng/ntopng.conf directory
I will give an example of its content:

-w=3000
-d=/var/tmp/ntopng
-G=/var/run/ntopng.pid
--httpdocs-dir /usr/share/ntopng/httpdocs
--local-networks="192.168.0.0/16,10.0.0.0/8,172.16.0.0/16"

Restart / stop / start ntopng with commands:

sudo /etc/init.d/ntopng restart
sudo /etc/init.d/ntopng stop
sudo /etc/init.d/ntopng start

You can check from the console with the command:

sudo /etc/init.d/ntopng status
sudo netstat -tulpn | grep :3000

Open the web interface by typing in the address bar of the browser:
http://HOST:3000

The standard login and password are admin/admin.

See also:
Install and configure nprobe
The solution to the error “Missing /etc/ntopng/ntopng.start. Quitting”

How to troubleshoot Samba autorun in Linux?

I installed and configured Samba once on the next Ubuntu Server 14.04.5 LTS as described in this article Installing and Configuring Samba in Linux.

And after restarting the system, not everything was started, smbd and nmbd were started, if they can be restarted like this:

sudo restart smbd
sudo restart nmbd

But you can not connect to the disk and you still had to execute the command:

sudo service samba start

For samba to automatically start at system startup, execute the following command:

sudo update-rc.d samba defaults

Done.

Installing and using Conky in Linux

Conky – system monitor.

The installation command in Ubuntu:

sudo apt-get install conky

In CentOS/Fedora:

sudo yum install conky

Start command:

conky

At the first start, I displayed this window:
conky

The configuration files are located in the /etc/conky/.

To read the built-in documentation, you can run the following command:

man conky

Example of launching in a background with an update interval of 2 sec.:

conky -d -u 2

To stop, you can use the command:

pkill conky