Categories Linux

Setup Mail Server for your VPS

Để cài, chạy và khởi động tự động sau boot postfix: Ngoài ra còn có các lệnh gỡ lỗi: sudo systemctl status postfix, sudo tail -f /var/log/mail.logĐể test postfix, thường thì vps sẽ block port 25 nên bạn không gửi được. Nếu không block mà chỉ block bởi…

Read More
Categories Cloud

Vim Note

Để cài Nerd Font thì có thể download ở trang chủ Nerd Fonts – Iconic font aggregator, glyphs/icons collection, & fonts patcher hoặc ở github repository thư mục unpatched-fonts các file *.ttf thủ công (font phổ biến là FiraCode, Hack, JetbrainsMono). Nếu tải ở github thì nên tải…

Read More
Categories Cloud

Create SSH Key in OpenSSH Format

Để tạo ssh key openssh format dùng lệnh sau: -t rsa: chọn loại mã rsa-b 2048: số bits cho mã, phổ biến là 2048 nhưng 4096 cũng hay được dùng-m PEM: định dạng OpenSSH Related posts: Basic Knowledge about Apache Server [AWS Lightsail] – SSH to your instance

Read More
Categories AWS

Basic Knowledge about Apache Server

Để kiểm tra compile variables của apache server (ở đó có apache version, server document root,…): Để kiểm tra các modules được load: Để kiểm tra các virtual hosts: virtual host của wordpress có document root ở /opt/bitnami/wordpress. Có thể sửa source code ở đó hoặc ở trang…

Read More
Categories AWS

Adding Https to Spring Boot-Angular App

1. Build the app. I have articles writing about how to create a spring boot and angular app all in one. 2. Transfer the jar file to the vps: 3. Run the app (at best run in the background): 4. Configure Auto-Starting (i will go into details later):…

Read More
Categories Linux

[Linux] Useful Commands in Shell [Vi]

Root user thường có #, normal user thường có $. Thông tin của user ở /etc/passwd Quit vim không lưu bằng :q!, lưu xong quit :wq Để search file theo một từ khóa: Grep cũng search được directory recursively: Có thể dùng printf để in ra formatted text:…

Read More
Categories Linux

[Linux] Useful Commands in Shell

To make bash script, create a file with extension .sh and add the code: to the file. Example: To run it: Note: Just enter FILE_NAME.sh is wrong. Related posts: [Linux] Useful Commands in Shell [Vi] [Linux] – Copy and paste in Vim

Read More