วันจันทร์ที่ 29 เมษายน พ.ศ. 2567

WakeOnLan แก้ไขให้ windows เครื่อง Client สั่ง shutdown ได้

WakeOnLan แก้ไขให้ windows เครื่อง Client สั่ง shutdown ได้

https://wakeonlanx.com/wakeonlanx

- เปลี่ยน services ด้วยสิทธิ์ adminstartor ให้เป็น Runing Automatic

> Remote Procedure Call (RPC)

> Remote Procedure Call (RPC) Locator    

- เปลี่ยน Windows Firewall 

    > หัวข้อ Firewall & network protection > Allow an app through firewall > Remote Assistance 

> เครื่องหมายถูก เป็น Private และ Public 

วันจันทร์ที่ 22 เมษายน พ.ศ. 2567

การติดตั้ง Install OpenSSH-Server 9.6 on Ubuntu Server 22.04.4

https://youtu.be/1KjRS972MXs?si=xrqjlT4CsNIN_pma


FULL COMMAND LIST (rechecked on 4/9/24 on Ubuntu Server 22.04.4): Check ssh version with: ssh -V sudo apt update sudo apt install build-essential zlib1g-dev libssl-dev libpam0g-dev libselinux1-dev libkrb5-dev sudo mkdir /var/lib/sshd sudo chmod -R 700 /var/lib/sshd/ sudo chown -R root:sys /var/lib/sshd/ wget -c https://cdn.openbsd.org/pub/OpenBSD/O... tar -xzf openssh-9.6p1.tar.gz cd openssh-9.6p1 ./configure --with-kerberos5 --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh make sudo make install cd /usr/sbin sudo mv sshd sshd.bak sudo cp /usr/local/sbin/sshd sshd sudo reboot

วันพฤหัสบดีที่ 18 เมษายน พ.ศ. 2567

การติดตั้ง Cert ในเครื่อง Synology RS1219+

 

http://servver:5000

Certificate

A certificate can be used to secure SSL services of the Synology NAS, such as web (all HTTPS services), mail, or FTP. Having a certificate allows users to validate the identity of a server and the administrator before sending any confidential information.

At Control Panel > Security > Certificate, you can do the following:
- Add certificates. 3 ไฟล์ใหม่
    pharmacy.psu.key
    STAR_pharmacy_psu_ac_th.crt
    STAR_pharmacy_psu_ac_th.ca-bundle

- Delete and edit certificates.

วันพุธที่ 17 เมษายน พ.ศ. 2567

การเปลี่ยน Cert ในเว็บไซต์หน่วยงาน

การคัดลอกไฟล์ Certificate ของหน่วยงานติดตั้งใหม่ 2 ไฟล์

ให้ upload ด้วยการเลือกโหมด ASCII เท่านั้น 

STAR_pharmacy_psu_ac_th.ca-bundle

STAR_pharmacy_psu_ac_th.crt

คัดลอกลงตำแหน่ง /etc/ssl/private

วันจันทร์ที่ 15 เมษายน พ.ศ. 2567

วันพุธที่ 28 กุมภาพันธ์ พ.ศ. 2567

วันจันทร์ที่ 22 มกราคม พ.ศ. 2567

วันอังคารที่ 16 มกราคม พ.ศ. 2567

Ubuntu server เปลี่ยน Time Zone เป็นประเทศไทย


แสดงรายละเอียดระบบปฎิบัติการที่ใช้งาน OS

lsb_release -a


ดูวันที่ปัจจุบัน
$ date

ดูว่าปัจจุบันใช้ Time zone อะไรอยู่
$ timedatectl

เปลี่ยน Time Zone ของเครื่องเป็นประเทศไทย
$ timedatectl set-timezone Asia/Bangkok


ดูว่าปัจจุบันใช้ Time zone อะไรอยู่
$ timedatectl