การแก้ไขเมื่อ mariadb หรือ mysql ไม่ load my.cnf (DirectAdmin)
เปิดไฟล์ /etc/systemd/system/mysqld.service แล้วมองหา E… Read More »
Repository ที่ยังใช้งานได้กับ CentOS 6
CentOS-Base.repo CentOS-SCLo-scl.repo CentOS-SCLo-rh.re… Read More »
บันทึก lab ทำ vpn บน linux ubuntu 18.04
ผลทดสอบ iperf ** TUN คือทดสอบผ่าน vpn ** Direct คือทดสอ… Read More »
วิธีการเข้าถึงข้อมูลในไฟล์ img ของ raspberry pi บน Linux
เรามีไฟล์ img ชื่อ backup.img เป็นไฟล์ที่โฟลดออกมาจาก S… Read More »
วิธีซ่อน cursor บน raspberry pi (kios)
เปิดไฟล์ /etc/lightdm/lightdm.confทำการเพิ่มค่านี้เข้าไ… Read More »
แก้ปัญหา “Raise network interfaces”
ปัญหานี้ผมก็ไม่ทราบสาเหตุแน่ชัดเท่าไรครับ แต่มันทำให้เค… Read More »
iptables nat 1:1 แบบยัง ssh ได้
วิธีการ nat แบบ 1:1 ฝั่ง client ต้องใส่ gateway เป็นเคร… Read More »
ผลทดสอบ iperf ผ่าน openvpn
สรุปจะอยู่ด้านล่างนี้ครับ สเปค server ที่ใช้ทดสอบVMsCPU… Read More »
SSH Put Proxy to Destination Host (ส่ง Proxy ไปให้ปลายทาง)
สมมติเรามี proxy server อยู่คือ http://192.168.1.2:3128… Read More »
ทำ index ให้กับ OpenCart
— Add these to speed up OpenCart ALTER TABLE `oc_… Read More »
SQLite3 แปลง Unix Time Stamp เป็น Date Time
timestamp คือ ชื่อ column เก็บข้อมูล to_date คือชื่อฟิล… Read More »
php script ดัก req 404 wordpress
คำสั่งที่จำเป็นเมื่อใช้ pve
1.การแปลงไฟล์ virtual disk raw to qcow2 qemu-img conver… Read More »
ทำวามเข้าใจ Open vSwitch (OVS)
พอดีได้ลองใช้ proxmox จริงๆ จังๆ สักที เหลือบไปเห็น OVS… Read More »
PHP Script แปลง Convert MySQL Storage Type
วิธีใช้คือ เอา code วางในไฟล์ แล้วสั่ง php -f ตามด้วยชื… Read More »
Config DHCP Server ให้แจก IP ตาม MAC Address
เนื่องจากต้องติดตั้ง VM จำนวนหลายสิบ VM ไหนจะต้อง set e… Read More »
ทำให้ CentOS กด TAP ได้ทุกคำสั่ง(หรือเกือบทุกคำสั่ง) Activate Bash Autocomplete Feature
เปิด console ขึ้นมาแล้วสั่งตามนี้ [cc lang=”cR… Read More »
ตัวอย่าง PHP run shell script แบบ Real time output
[cc lang=”php”] /* https://stackoverflow.co… Read More »
ตัวอย่าง Code PHP Grab Process ID จาก Linux Sever
[cc lang=”php”] function isRunning($dm) { $… Read More »
ติดตั้ง python 2.7 และ python-pip บน CentOS 6.x
สั่ง [cc lang=”python”]yum install gcc cd /… Read More »
New need sysctl.conf Linux
[cc lang=”c”]net.ipv4.tcp_fin_timeout = 10 … Read More »
การทำ Timeout ให้กับโปรแกรมย่อยใน Python
โปรแกรมย่อยเพื่อนำไป track function ทีเราต้องการทำ time… Read More »
IPTABLE Redirect Traffic
[cc lang=”c”] iptables -t nat -A PREROUTING… Read More »
การ dump var ลงไปเก็บไว้ใน file แล้วเอากลับมาใช้ใหม่
code ตัวอย่าง [cc lang=”python”] from pickl… Read More »