Tran Nghi's Site  - Make notes and share experience

Easy way to gain ssl/tls certificate from Let’s Encrypt with Certbot-auto

Certbot is an easy-to-use automatic client that fetches and deploys SSL/TLS certificates for your webserver. Certbot was developed by EFF and others as a client for Let’s Encrypt and was previously known as “the official Let’s Encrypt client” or “the Let’s Encrypt Python client.” Certbot will also work with any other CAs that support the…

Hiding samba share from browse list for unauthorized users

To hide the full share, you can use the following option: [ global ] … access based share enum = yes To hide files/folders inside a share to users who do not have read permission on those files/folders, you can use: [ share ] … hide unreadable = yes

Rejecting Unknown Local Recipients with Postfix

By default, the Postfix SMTP server rejects mail for unknown recipients in local domains.. this configuration causes the problem when you try sending an email (ie. from Mozilla Thunderbird) to unknown user in the same domain, it will pop-up a windows like this (it was not happened with Gmail): I found this regarding document (http://www.postfix.org/LOCAL_RECIPIENT_README.html), but this made…

Share bash script to perform backup mysqldump from remote server

 

Hệ thống giám sát cảnh báo sự cố

(Bài viết sưu tầm) – Giới thiệu hệ thống giám sát cảnh báo sự cố A) Nhu cầu: Xu hướng hội nhập, tiến bộ khoa học kỹ thuật được áp dụng rộng rãi trong các doanh nghiệp đặc biệt việc ứng dụng công nghệ thông tin không còn xa lạ với mỗi doanh nghiệp từ…

Reset root password on Ubuntu

By default the first user’s account is an administrative account, so if the UI is prompting you for a password it’s probably that person’s user password. If the user doesn’t remember their password you need to reset it. To do this you need to boot into recovery mode. Boot up the machine, and after the BIOS screen,…

Install phpmyadmin and some issues

Firstly, I followed this tutorial to install myadmin… link to tutorial ~# apt-get -y install phpmyadmin php-mbstring php-gettext step1) select which one you using (this example selects apache2) step2) answer “No” to proceed on this example Change some settings to enable login to phpMyAdmin with root.. see my previous post here Secondly, sometime I really get annoying that I…

#1698 – Access denied for user ‘root’@’localhost’

I was facing the same problem when using mariaDB with phpmyadmin (Ubuntu 16.04LTS). Firstly, try to follow below post for install MariaDB or MySQL: Prerequisites: 1) Install MariaDB sudo apt-get -y install mariadb-server mariadb-client sudo mysql_secure_installation (answer to some interactive questions): Enter current password for root (enter for none): <enter> Set root password: n Remove…

Kiểm tra tốc độc mạng với Iperf

Iperf là một công cụ miễn phí, dùng để đo lường lượng dữ liệu mạng (throughput) tối đa mà một server có thể xử lý. Công cụ này rất hữu ích để truy tìm ra các vấn đề đối với hệ thống mạng bởi Iperf có thể xác định được server nào không xử lý…

To keep ssh connection alive

By default, Amazon AWS usually drops your connection after only 60 seconds of inactivity, so this option will ping the server every 50 seconds and keep you connected indefinitely.. not sure!!! You have 02 options: option #1. you can set a keep alive option in your ~/.ssh/config file on your computer’s home dir; or option…

Message