Sử dụng iptables trên CentOS

Bài viết này hướng dẫn về cách cài đặt và cấu hình iptables trên CentOS.
Tới thời điểm hiện tại, tuy rằng CentOS 7 sử dụng firewalld làm công cụ thiết lập các chính sách mạng cho server linux, nhưng mình vẫn quen sử dụng iptables hơn.

Read More

15 Docker Commands Beginners Should Know

In this post, basically, I don’t put options. If you think this command is lacking something important, you will need to check Docker Doc (https://docs.docker.com/)

Read More

RSA encryption in Java and JavaScript

Using RSA encryption to:

  1. Encrypt plain text in Java and decrypt cypher text in JavaScript.
  2. Encrypt plain text in JavaScript and decrypt cypher text in Java.

Encryption in JavaScript side

Read More

AES encryption in Java and JavaScript

In this article, I’m going to discuss about both side AES encryption in Java and JavaScript. It means:

  1. Encrypt plain text in Java and decrypt cypher text in JavaScript.
  2. Encrypt plain text in JavaScript and decrypt cypher text in Java.

JavaScript side

I use library CryptoJS for AES encryption.

Read More

Atlassian Confluence troubleshooting

Language Settings

Administrators can define a default language to be applied to all spaces in your Confluence site. Note that individual users can select a language preference for their session.

Setting the default language

To change the default language for the Confluence site:

Read More

Install WordPress plugins and themes without asking FTP credentials

Sau khi cài đặt một bản WordPress mới, bạn sẽ cần cài đặt thêm theme hoặc các plugins hỗ trợ. Những lúc như thế này, đôi khi bạn phát hiện ra rằng WordPress yêu cầu bạn phải upload qua giao thức FTP, với các thông tin xác thực được yêu cầu. WordPress sẽ chỉ yêu […]

Read More

Log Rotation

Linux script rollback log by interval.

log-rotation.sh

Read More

Install Gnome 3 GUI on RHEL, CentOS

Kiểm tra yum package đã có sẵn gói cài đặt giao diện hay chưa bằng lệnh:

sudo yum group list

Cài đặt gói giao diện:

sudo yum -y groupinstall "GNOME Desktop" "Graphical Administration Tools"
sudo ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

Read More