ssh เพื่อเข้าไปจัดการข้อมูล NAS200 ขึ้น error สาเหตุเนื่องจาก sshd บน NAS200 มันเป็นรุ่นเก่าโบราณณณณณ
Unable to negotiate with legacyhost: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
แก้โดย
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@legacyhost
or in the ~/.ssh/config file:
Host somehost.example.org KexAlgorithms +diffie-hellman-group1-sha1
หลังจากนั้นก็ยัง error
Unable to negotiate with 192.168.1.4 port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,aes256-cbc,twofish256-cbc,twofish-cbc,twofish128-cbc,blowfish-cbc
แก้โดย
sudo nano /etc/ssh/ssh_config
แล้วเอา # หน้า Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc ออกไปเสีย
บางครั้ง Title ที่แสดงบน VLC หรือโปรแกรมเล่นเพลง/หนังอาจจะไม่ตรงกับชื่อเรื่อง ทางแก้คือเปลี่ยนค่า title ใน metadata โดยใช้โปรแกรม exiftool
บน Mac OSX ให้ติดตั้ง exiftool ก่อนโดย
brew install exiftool
คำสั่งสำหรับตรวจสอบค่า metadata
exiftool "Filename of movie.mp4"
คำสั่งสำหรับเปลี่ยนค่า title ของ metadata
exiftool -Title="Title of movie" -overwrite_original "Filename of movie.mp4"
ที่มา Edit MP4 Metadata with exiftool , Install exiftool on Mac OSX

30 พ.ย. 2017 Realtime user = 530 คน รับ load ได้สบาย
3 ม.ค. 2019 พายุ Papuk เข้า Max realtime ยังเพียงแค่ 160 คน CPU 25% Load 2 ยังห่างไกล
hatyaicityclimate จะต้องอัพโหลดภาพจากกล้อง IP Camera บางตัวด้วยวิธีการ FTP จึงต้องสร้าง user เพิ่ม แต่ไม่อยากสร้างให้อยู่ภายใต้ @domain.com เนื่องจากกล้องบางตัวไม่สามารถใส่เครื่องหมายใน username ได้
จึงต้องสร้าง user ขึ้นมาเองเพื่อให้สามารถ login ผ่าน ProFtp ได้
ขั้นตอนที่ 1 สร้าง user ใหม่ก่อน
useradd user1
ขั้นตอนที่ 2 กำหนดรหัสผ่าน
passwd user1
ขั้นตอนที่ 3 กำหนดให้ใช้งาน FTP
เนื่องจากตอนสร้าง user จะไม่สามารถ login ftp ได้ จึงต้องเพิ่ม user ให้ได้รับสิทธิ์
nano /etc/proftpd.passwd
แล้วเพิ่มบรรทัด
user1:**********:1008:1010:custom:/home/name/folder:/bin/false
ปล. ไม่มั่นใจเหมือนกันว่าการเพิ่ม user ใน ftp ของขั้นตอนที่ 3 จะเป็นวิธีการที่ถูกต้องไหม
เมื่อวาน (จนถึงวันนี้) เกิดความผิดปกติที่โฆษณา Adsense ที่ติดไว้ในเว็บมีคนคลิกเพิ่มขึ้นเยอะมากถึง 1000% ก็ลองตามหารายละเอียดดูว่าเกิดอะไรขึ้น
ข้อมูลชิ้นที่ 1 คือเว็บที่ถูกคลิกมากคือ softganz.com ก็เลยตามต่อ (จาก Google Analytics) ว่าเพจไหนที่คนเข้ามา
ข้อมูลชิ้นที่ 2 พบว่า paper/373 เป็นเพจเดียวที่คนเข้ามาดูด้วยจำนวนเกิน 10 เลยเอาชื่อหัวข้อไปเป็น keyword ค้นหาใน Google
ข้อมูลชิ้นที่ 3 พบว่า keyword ชื่อหัวข้ออยู่ในลำดับที่ 2 และ keyword บางส่วนของหัวข้ออยู่ในลำดับที่ 6 แต่เมื่อ
ข้อมูลชิ้นที่ 4 ลองคลิกไปดูในแต่ละลำดับคำค้น พบว่าไม่สามารถหรือไม่ใช่ปลายทางที่คนต้องการไป แต่ paper/373 ซึ่งมีข้อความอยู่เพียงแค่ 3 บรรทัด มีลิงก์ไปที่ปลายทางได้ แล้วปลายทางคืออะไร?
ข้อมูลชิ้นที่ 5 ระบบบันทึกข้อมูล ซึ่งเป็นลิงก์เก่ามากตั้งแต่ March,01 2013
ข้อมูลชิ้นที่ 6 ก็เลยสงสัยว่าเกิดอะไรขึ้น ทำไมถึงมาฮิตเอาในช่วงนี้ พอตามหาข่าวจึงได้รู้ว่าเป็นช่วงเวลาที่เปิดให้ทำการบันทึกข้อมูลเพื่อจัดการเรื่องขอเบิกงบประมาณของปีถัดๆ ไป
เลยพอจะคลายความสงสัยได้บ้างว่า เจ้าหน้าที่คงไม่ได้เปิดเว็บปลายทางโดยตรง แต่ค้นหาด้วย keyword ผ่าน Google แล้วเว็บปลายทางไม่ติดอันดับ 1 เลยคลิกเข้ามาในเว็บนี้แทน และโชคดีที่สามารถไปต่อถึงปลายทางได้สำเร็จ
ขอบคุณ Google ที่ส่ง Traffic มาให้นะครับ
ติดตั้งใหม่
แก้ไข Sources List
https://wiki.debian.org/SourcesList
ติดตั้ง DirectAdmin
https://www.directadmin.com/installguide.php
กำหนดค่า DirectAdmin หลังติดตั้งเสร็จ
https://www.directadmin.com/newinstall.html
How to enable LetsEncrypt
https://help.directadmin.com/item.php?id=648
Setting up DA with an SSL certificate
https://help.directadmin.com/item.php?id=15
Installing an SSL certificate for your hostname using LetsEncrypt
https://help.directadmin.com/item.php?id=629
ปล. ยังเขียนไม่เสร็จทีนะครับ
เมื่อวาน (1/12/2018) server ของ wintesla2003 เกิดการ reboot เอง โดยไม่ทราบสาเหตุ
ตรวจ log แล้ว ก็ไม่เจออะไรผิดปกติ
จนถึงตอนนี้ก็ยังไม่ทราบว่าเกิดอะไรขึ้น
Update : เมื่อเช้า ประมาณ 6 โมงเช้า (2/12/2018) ก็มีการ reboot อีก
root$last reboot reboot system boot 3.10.0-327.3.1.e Sun Dec 2 06:08 - 11:28 (05:20) reboot system boot 3.10.0-327.3.1.e Sat Dec 1 13:27 - 11:28 (22:01) reboot system boot 3.10.0-327.3.1.e Sat Dec 1 12:44 - 11:28 (22:44) reboot system boot 3.10.0-327.3.1.e Sat Dec 1 09:52 - 11:28 (1+01:36) reboot system boot 3.10.0-327.3.1.e Tue Nov 7 15:25 - 11:28 (389+20:03) reboot system boot 3.10.0-327.3.1.e Tue Nov 7 14:12 - 14:14 (00:01) reboot system boot 3.10.0-327.3.1.e Tue Nov 7 13:36 - 14:14 (00:37) reboot system boot 3.10.0-327.3.1.e Mon Nov 6 13:00 - 14:14 (1+01:13) reboot system boot 3.10.0-327.3.1.e Mon Nov 6 12:53 - 12:56 (00:02) reboot system boot 3.10.0-327.3.1.e Mon Nov 6 12:48 - 12:52 (00:03) reboot system boot 3.10.0-327.3.1.e Mon Jan 16 11:43 - 12:52 (294+01:09) reboot system boot 3.10.0-327.3.1.e Sun Jun 26 17:58 - 12:52 (497+18:53) reboot system boot 3.10.0-327.3.1.e Sun Jun 26 17:55 - 12:52 (497+18:56) reboot system boot 3.10.0-327.3.1.e Sun Jun 26 17:50 - 17:54 (00:03) reboot system boot 3.10.0-327.3.1.e Sun Jun 26 17:45 - 17:49 (00:03) reboot system boot 3.10.0-327.3.1.e Sun Jun 26 17:39 - 17:43 (00:04) reboot system boot 3.10.0-327.3.1.e Sun Jun 26 17:32 - 17:43 (00:11) reboot system boot 3.10.0-327.3.1.e Sun Jun 26 17:21 - 17:23 (00:01) reboot system boot 3.10.0-327.3.1.e Sun Jun 26 17:15 - 17:20 (00:04) reboot system boot 3.10.0-327.3.1.e Sun Jun 26 16:43 - 17:20 (00:37) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 15:09 - 16:19 (182+01:09) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 15:07 - 15:08 (00:00) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 15:02 - 15:06 (00:04) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 14:56 - 15:06 (00:10) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 14:48 - 15:06 (00:18) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 14:44 - 15:06 (00:21) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 14:37 - 14:43 (00:05) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 14:35 - 14:36 (00:01) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 14:21 - 14:33 (00:12) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 13:42 - 14:33 (00:51) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 13:17 - 13:17 (00:00) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 13:15 - 13:15 (00:00) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 13:10 - 13:15 (00:05) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 12:40 - 13:03 (00:23) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 12:14 - 12:21 (00:06) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 11:38 - 12:21 (00:43) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 09:49 - 12:21 (02:32) reboot system boot 3.10.0-327.3.1.e Sun Dec 27 09:45 - 12:21 (02:36) reboot system boot 3.10.0-327.3.1.e Sat Dec 26 19:44 - 19:51 (00:06) reboot system boot 3.10.0-327.3.1.e Sat Dec 26 19:33 - 19:51 (00:17) reboot system boot 3.10.0-327.el7.x Sat Dec 26 18:56 - 19:21 (00:25)
คำสั่งสำหรับ last - Linux Find Out Last System Reboot Time and Date Command
@2018-11-17 9.00 น. แวะเข้าไป CAT เพื่อเปลี่ยน Harddisk สำหรับ Backup ข้อมูล เนื่องจากเสียมาหลายวันแล้ว แต่รองบประมาณและช่วงวันเสาร์-อาทิตย์ เพราะวันธรรมดามีการใช้งานเยอะ ไม่อยากปิดในช่วงเวลานั้น
เตรียมการโดยการ Format ไปจากบ้าน ตั้ง Label ให้ตรงกับของเดิม เมื่อเปลี่ยนเสร็จ เปิดเครื่องก็เลยมองเห็นทันที ไม่ต้องตั้งค่าอะไร
เสร็จเรียบร้อยในเวลาอันรวดเร็ว
@9.30 น. กลับบ้าน
D A/Bm (4 Times) D Hey girls gather round Bm Listen to what I'm puttin' down G A D Dsus4 A Hey baby, I'm you handyman D A Bm I'm not the kind to use a pencil or rule Em F#m Bm I'm handy with love and I'm no fool G A D Dsus4 D I fix broken hearts I know that I truly can G If your broken heart should need repair A D then I am the man to see G I whisper sweet things you tell all your friends E A They'll come runnin' to me.... G A D Here is the main thing that I want to say Bm I'm busy twenty four hours a day G A D Dsus4 A I fix broken hearts, I know that I truly can D A Bm Come a come a come a come a come come D A Bm Yeah..... yeah yeah D A Bm Come a come a come a come a come come E A They'll come runnin' to me..... G A D Here is the main thing that I want to say Bm I'm busy twenty four hours a day G A D Dsus4 A I fix broken hearts baby I'm your handyman D A Bm Come a come a come a come a come come D A Bm Yeah..... yeah yeah 4x
Intro: | A E | F#m E | D E | A | A E F#m E D A E * Would you know my name, if I saw you in heaven? A E F#m E D A E Will it be the same, if I saw you in heaven? F#m C# Em F# I must be strong, and carry on Bm E E7 A Cause I know I don't belong, here in heaven Instru: | A E | F#m E | D E | A | A E F#m E D A E Would you hold my hand, if I saw you in heaven? A E F#m E D A E Would you help me stand, if I saw you in heaven? F#m C# Em F# I'll find my way, through night and day Bm E E7 A Cause I know I just can't stay, here in heaven Instru: | A E | F#m E | D E | A | C G Am D G Time can bring you down, time can bend your knee Instru: | G D | Em D G | C G Am D G D Time can break your heart, have you begging please E Begging please Instru: | A E | F#m E | D A | E | | A E | F#m E | D A | E | F#m C# Em F# Beyond the door, there's peace I'm sure. F# Bm E E7 A And I know there'll be no more, tears in heaven Instru: | A E | F#m E | D E | A | A E F#m E D A E Would you know my name, if I saw you in heaven? A E F#m E D A E Will it be the same, if I saw you in heaven? F#m C# Em F# I must be strong, and carry on Bm E E7 A Cause I know I don't belong, here in heaven Outro: | A E | F#m E | D E | A |