วันพฤหัสบดีที่ 30 สิงหาคม พ.ศ. 2561

ทำsamba แชร์ไฟล์แบบกำหนดรหัสผ่าน แยกตามหน่วยงาน

 ตอนแรกเพิ่ม User เข้าไปในระบบลีนุกซ์ก่อน
# adduser peak
# passwd peak ระบบจะให้ใส่รหัสผ่าน 2 ครั้ง
***

ต่อไปแก้ไขไฟล์ /etc/samba/smb.conf
- ตรง security = user
- ตรงพาร์ทแชร์ท้ายไฟล์

[data]
path = /home/data
public = no
writable = yes
browseable = yes
valid users = peak
create mask = 0775
directory mask = 0775
force create mode = 0775
force directory mode = 0777

เสร็จแล้วรีสตาร์ท Samba

# /etc/init.d/samba restart

[share]
path = /home/PShare
public = yes
guest ok = yes
browseable = yes
writeable = yes
veto files = /*.mp3/*.avi/*.mpg/*.dat/*.flv/*.3pg/*.mp4/*.exe/*.wmv/*.MOV/


วันพุธที่ 29 สิงหาคม พ.ศ. 2561

ขั้นตอนการติดตั้ง h4u-mBase

***การติดตั้ง H4U สำหรับโปรแกรม mBase
//API//
1. git clone https://github.com/mophos/h4u-api-his.git
cd h4u-api-his
npm i
tsc Or tsc -w
nodemon
กรณีรันไม่ขึ้น ใช้คำสั่ง npm i nodemon -g

//WEB//
2.git clone https://github.com/mophos/h4u-web-his.git
cd h4u-web-his
npm i
npm start

3.แก้ ไฟล์ env. ที่api
4.แก้config ที่ web  ไฟล์ environment

5.link เข้าดูข้อมูลว่าเชื่อมกับDatabaseได้ยัง
http://localhost:3000/services/view/015006/2018-01-19/111111/00000

gmail.com.yoo.pgan

แปะไว้กันลืม กยศ

2563---
mhosp.gan@gmail.com::::U;13pgans2514
yoo.8888@hotmail.com  U13 yyoo2519

วันอังคารที่ 14 สิงหาคม พ.ศ. 2561

การอบรมH4U

สิ่งที่ผู้เข้าอบรมต้องเตรียมสำหรับการอบรม H4U
1. notebook
2. ฐานข้อมูล his ของ หน่วยงานตัวเอง
3. account smart health id
สำหรับผู้ที่ยังไม่มี account
1. ให้ผู้เข้าร่วมอบรม ลงทะเบียนที่ website ict portal https://ictportal.moph.go.th/register และยืนยันตัวตนผ่าน email ที่ทำการลงทะเบียน
10953::::mhosp.gan:::::นาบชาตรี
//git clone https://github.com/mophos/h4u-api-his.git
cd h4u-api-his
npm i
tsc Or tsc -w
nodemon
//git clone https://github.com/mophos/h4u-web-his.git
cd h4u-web-his
npm i
npm start
https://consent.moph.go.th/


2. ดาวน์โหลดหนังสือขอใช้ smart health id ได้ที่ https://smarthealth.moph.go.th/download/RequestDocumentSmartHealthID.docx
3. ทำหนังสือขอใช้ smart health id พร้อมระบุรายละเอียด โดยที่ e-mail ต้องตรงกับ email ที่ใช้ลงทะเบียน ที่ ict portal
4. ส่งหนังสือมาที่ศูนย์เทคโนโลยีสารสนเทศและการสื่อสาร
หมายเหตุ ** เพื่อให้ทันสำหรับการอบรมพรุ่งนี้ (การอนุญาติชั่วคราว)
1. ให้ผู้เข้าร่วมอบรม ลงทะเบียนที่ website ict portal https://ictportal.moph.go.th/register และยืนยันตัวตนผ่าน email ที่ทำการลงทะเบียน
2. สำเนาหน้าบัตรประชาชน พร้อมกรอกแบบฟอร์มแจ้งรายชื่อบุคลากรและหน่วยงาน เพื่อขอสิทธิ์การใช้งาน web service ในระบบ smart health id กระทรวงสาธารณสุข https://smarthealth.moph.go.th/download/RequestDocumentSmartHealthID.docx