Tran Nghi's Site  - Make notes and share experience

vnStat – Light Weight Console-based Network Monitor

vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s). It uses the network interface statistics provided by the kernel as information source. This means that vnStat won’t actually be sniffing any traffic and also ensures light use of system resources. In this tutorial…

How to test upload/download bandwidth of your VPS

After running a VPS for a while, some sysadmin maybe want to determine the upload/download bandwidth of their VPS. Below is somehow I tried to test the upload/download bandwidth of my VPS. A note is that, you might need to make 02 steps to clarify the exact upload/download bandwidth of your VPS(:from your VPS to…

Manage Processes from the Linux Terminal – 10 Commands You Need to Know

The Linux terminal has a number of useful commands that can display running processes, kill them, and change their priority level. This post lists the classic, traditional commands, as well as some more useful, modern ones. Many of the commands here perform a single function and can be combined — that’s the Unix philosophy of…

Easily Setup OpenVPN Server In 5 Minutes on Ubuntu Server

I am a new Ubuntu Linux server user. How do I setup an OpenVPN Server on Ubuntu Linux version 14.04 or 16.04 LTS server to shield my browsing activity from bad guys on public Wi-Fi, and more? OpenVPN is a full-featured SSL VPN (virtual private network). It implements OSI layer 2 or 3 secure network…

Solve the problem with SSH RSA-key login to Synology NAS

Below steps was help to fix for ssh rsa-key login with user admin (in my case it work well even with StrictModes in sshd conf). The reason is that the users home folder ~/ is not allowed to be writable to group and other, so let’s try to “chmod 755 /volume1/homes/user: should do the trick. Step 1….

How To Set Up SSH Keys

About SSH Keys SSH keys provide a more secure way of logging into a virtual private server with SSH than using a password alone. While a password can eventually be cracked with a brute force attack, SSH keys are nearly impossible to decipher by brute force alone. Generating a key pair provides you with two…

Static IP addresses in OpenVPN

Sometimes when working with OpenVPN it is nice to have a way to tell the OpenVPN server that you’d like to get the same IP address each time you connect to it, or in other words you’d like to get a static IP address instead a dynamic one from the IP pool. Having a static…

Enabling SSH / rsync on a Synology DiskStation

Here’s how I enabled SSH on my Synology DiskStation. This allows me to access it remotely and rsync makes it a suitable backup location. Step 1: Enable SSH Via the web interface, go to Control Panel – Terminal & SNMP and check Enable SSH Service Step 2: Add a user Control Panel – User – Create. Step 3: Grant SSH access SSH as root and…

Message