คำสั่ง tar แบบยกเว้นบางโฟลเดอร์ รับลิงก์ Facebook X Pinterest อีเมล แอปอื่นๆ พฤศจิกายน 03, 2559 หากมี folder ไหนที่ไม่ต้องการ ให้ใช้ option เข้าไปในคำสั่ง --exclude=folder ตัวอย่าง : tar -zcvf output.tar.gz /var --exclude "/var/dir1" --exclude "/var/dir2" รับลิงก์ Facebook X Pinterest อีเมล แอปอื่นๆ ความคิดเห็น
ติดตั้ง Radius Server แบบใช้ฐานข้อมูล MySql พฤศจิกายน 12, 2559 - ทดสอบบน Ubuntu 14.04 LTS - freeradius 2.x, MySQL-Server, Apache2, PHP5, phpMyAdmin 1. ติดตั้งด้วยคำสั่ง sudo apt-get install freeradius freeradius-utils freeradius-mysql 2. ทดสอบการทำงานของ radius สามารถทำงานได้หรือไม่ โดยแก้ไขไฟล์ /etc/freeradius/users และเพิ่มท้ายไฟล์ดังนี้ "testradius" Cleartext-Password := "hello" Reply-Message = "Hello, %{User-Name}" 3. สั่งให้ freeradius ทำงานใหม่ด้วยคำสั่ง service freeradius restart 4. ทดสอบการทำงานด้วยคำสั่ง radtest testradius hello 127.0.0.1 0 testing123 จะได้ข้อความประมาณนี้ Sending Access-Request of id 31 to 127.0.0.1 port 1812 User-Name = "testradius" User-Password = "hello" NAS-IP-Address = 192.168.0.... อ่านเพิ่มเติม
Docker : Install docker compose on ubuntu 16.04 LTS พฤศจิกายน 08, 2559 ติดตั้ง Docker Compose บน Ubuntu 16.04 LTS 1. ใช้คำสั่ง curl ดึง compose จาก GitHub curl -L "https://github.com/docker/compose/releases/download/1.8.1/docker-compose- $(uname -s) - $(uname -m) " > /usr/ local /bin/docker-compose 2. เปลี่ยน permissions chmod + x /usr/ local /bin/docker-compose 3. ทดสอบคำสั่ง docker-compose --version อ่านเพิ่มเติม
Install FTP Server vsftpd on Debian 8 and passive mode ธันวาคม 28, 2559 ทดสอบบน debian 8 1. ติดตั้ง package vsftpd server apt-get install vsftpd 2. ปรับแต่งไฟล์ /etc/vsftpd.conf เบื้องต้น anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 chroot_local_user=YES allow_writeable_chroot=YES ssl_enable=NO utf8_filesystem=YES 3. ปรับแต่งเพิ่มเติมให้ทำงานแบบ passive mode ที่ไฟล์ /etc/vsftpd.conf โดยกำหนดค่าช่วงของ min port และ max port pasv_enable=YES pasv_min_port=13000 pasv_max_port=13100 อ่านเพิ่มเติม
ความคิดเห็น