[Linux] Hướng dẫn cấu hình OpenVPN trên Ubuntu server

VPN (virtual private network) là công nghệ xây dựng hệ thống mạng riêng ảo nhằm đáp ứng nhu cầu chia sẻ thông tin, truy cập từ xa và tiết kiệm chi phí. Trước đây, để truy cập từ xa vào hệ thống mạng, người ta thường sử dụng phương thức Remote Access...

[Linux] Create and extract zip, tar, tar.gz and tar.bz2 in Linux (Ubuntu, Redhat, CentOS)

Linux has a variety of tools for working with compressed data. This article will describe how to use them, and why. Compression programs look for patterns in the data, and then replace the original file with a file that describes those patterns....

[Linux] Setup bind9 làm DNS server và name server trên Ubuntu server 12.04 toàn tập

BIND hay là named, là phần mềm DNS được sử dụng rộng rãi nhất trên Internet. Ban đầu được viết bởi bốn sinh viên Nhóm nghiên cứu tốt nghiệp tại Đại học California, Berkeley (UCB), tên bắt nguồn như một từ viết tắt từ Berkeley Internet Name Domain,...

[Troubleshooting] apt-get error problem Ubuntu 12.04 and 14.04

How to fix some of the common errors encountered using ubuntu, if you get an error similar yet, please post immediately comment in this article, we will fix to you immediatel...

[Linux] Ubuntu mount to folder shared on Windows

Step 1. Install smbfs sudo apt-get install smbfsStep 2. Create script file with content: sudo mount -t smbfs -o username=user //192.168.2.12/qgs/Ins" "QGS/Documents/BA" "Team/Prototypes /var/www/mockIf you want auto mount smbfs after server restart sudo...

[Linux] Basic Linux command - Continuous update

• hostname: hiển thị tên máy • netconf | hostname: thay đổi tên máy • whoami: hiển thị tên người dùng hiện tại • id: hiển thị id của các nhóm và người dùng • date: hiển thị ngày giờ hệ thống • date -s "2013-04-25 09:30:10AM": thay đổi ngày giờ hệ thống •...

[Linux] Logical Volume Snapshoot on Ubuntu server

1. Khái niệm a. Khái niệm về volume - Physical Volume: Là một cách gọi khác của partition trong kỹ thuật LVM, nó là những thành phần cơ bản được sử dụng bởi LVM. Một Physical Volume không thể mở rộng ra ngoài phạm vi một ổ đĩa. - Logical Volume...

[Linux] Setup NFS shared folder on Ubuntu server

1. On server S1. Setup NFS Kernel server sudo apt-get install nfs-kernel-server S2. Define shared folder sudo nano /etc/exportsAdd these line /data    *(rw,sync,no_root_squash)S3. Restart NFS Kernel server sudo /etc/init.d/nfs-kernel-server...

[Linux] Nén và giải nén file có đuôi .gz

1. Nén và giải nén file có đuôi .gz 1.1 Nén #gzip [tên file]1.2 Giải nén #gunzip [tên file]2. Gom và bung tập tin hoặc thư mục đuôi .tar 2.1 Gom #tar -cvf [tênfile.tar] [file1] [file2] ...2.2 Bung #tar -xvf [file.tar]2.3 Nén và Gom #tar -zcvf [file.tar.gz]...

[Linux] How to use unison for synchronize files

Replication folder /tmp/srv238 (on 192.168.2.238) <-> /tmp/srv239 (on 192.168.2.239) (master-master) with user: super. S1. Setup login ssh without password - Create public key and private key in ssh client: ssh-keygen -t dsa- Copy public key from...