Thursday, July 12, 2018

ibmonitor

#gwet http://prdownloads.sourceforge.net/ibmonitor/ibmonitor-1.4.tar.gz
#tar -zvxf ibmonitor-1.4.tar.gz
# chown -R root ibmonitor
# chmod -R 755 ibmonitor
# cp -r ibmonitor /usr/bin/
# /usr/bin/ibmonitor/ibmonitor --bits --bytes --max --avg --data
#/usr/bin/ibmonitor/ibmonitor ibmonitor --max --avg --data



Ref: ibmonitor

Monday, February 26, 2018

แก้ DNS ubuntu 17.10

sudo vim /etc/resolvconf/resolv.conf.d/head
nameserver IP dns internal 1
nameserver IP dns internal 2

Sunday, February 4, 2018

configure samba for centos 7

#yum install samba samba-client samba-common


vim /etc/samb/smb.conf

-------------------------------------------Start-----------------------------------------------------
[global]
        workgroup = ARSSYSTEM
        server string = ARS Data Center System
        security = user
        netbios name = ARSDC08

        browseable = No
;       passdb backend = tdbsam
        passdb backend = smbpasswd

        printing = cups
        printcap name = cups
        load printers = no
        cups options = raw
        disable spoolss = yes
        load printers = no
        printing = bsd
        printcap name = /dev/null
        disable spoolss = yes

        veto files = /*.mp3*/            #Protect file mp3

        log file = /var/log/samba/%m.log
        log level = 3
        debug timestamp = yes
        host msdfs = no
        ntlm auth = yes                   # For user windows xp access

-------------------------------------------//End//---------------------------------------------------

การปรับสิทธิ์ให้ผู้ใช้งาน 2 กลุ่ม เช่น user01 อยู่ในกลุ่ม user, tech สามารถสร้างและให้คนที่อยู่ในกลุ่มอื่นแก้ไขไฟล์ได้พร้อมกัน โดยการบังคับให้เวลาสร้าง Folder, File, อยู่ในกลุ่ม tech แทนกลุ่ม user

[tech]
        comment = Tech department only
        inherit acls = Yes
        path = /mnt/tech
        guest ok = no
        browseable = yes
        write list = @techAdmin   #only the group that has write privileges
        valid users = @tech
        force group = tech            #this is so that all files written to the share will be set to "chgrp tech" if you dont do this only the user that created the file will have access to it.
        create mask = 0775            #this forces all created documents to have 775 perms (WR-WR-WR)
        directory mask = 0775       #same for directories

Saturday, January 27, 2018

การปรับ Resolutoin windows 8 ใน Virtual box full screen (เต็มจอ)

1. เช็คเวอร์ชั่นของ Virtual box ที่ใช้งานอยู่ version ?
2. เข้าไปใน Windows ใน Virtual box แล้ว download Virtualbox Index Resource
http://download.virtualbox.org/virtualbox/
3. เลือกเป็นไฟล์  VBoxGuestAdditions_5.1.22.iso
4. โหลดลงเครื่องแล้วเข้าไปติดตั้ง ให้ตรง windows 64 bit / 32 bit
5. restart 1 ครั้ง สามารถเซท full screen ปรับที่ resolution windows และกด Ctrl(right)+F

Ref: https://www.youtube.com/watch?v=MGQysYizzII

Monday, December 18, 2017

convert phisical machin to vmware

วิธีการ convert server phisicall ไปใช้งานใน Vmware

convert-a-physical-linux-server-to-vmware-vm

Wednesday, December 13, 2017

Key windows 10

Windows 10 Install Key 

  • Windows 10 Home – YTMG3-N6DKC-DKB77-7M9GH-8HVX7
  • Windows 10 Home Single Language – BT79Q-G7N6G-PGBYW-4YWX6-6F4BT
  • Windows 10 Home Country Specific – N2434-X9D7W-8PF6X-8DV9T-8TYMD
  • Windows 10 Education – YNMGQ-8RYV3-4PGQ3-C8XTP-7CFBY
  • Windows 10 Pro – VK7JG-NPHTM-C97JM-9MPGT-3V66T

Windows 10 Product Key

TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
W269N-WFGWX-YVC9B-4J6C9-T83GX
MH37W-N47XK-V7XM9-C7227-GCQG9
DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
WNMTR-4C88C-JK8YV-HQ7T2-76DF9
Windows 10 Home Single Language
7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Windows 10 Home Country Specific (CN)
PVMJN-6DFY6-9CCP6-7BKTT-D3WVR

Windows 10 Professional Product Key

VK7JG-NPHTM-C97JM-9MPGT-3V66T
W269N-WFGWX-YVC9B-4J6C9-T83GX
6P99N-YF42M-TPGBG-9VMJP-YKHCF

Windows 10 Enterprise Product Key

NPPR9-FWDCX-D2C8J-H872K-2YT43
PBHCJ-Q2NYD-2PX34-T2TD6-233PK
CKFK9-QNGF2-D34FM-99QX2-8XC4K

Ref: windows-10-product-key-free-for-you-part-2

Tuesday, November 28, 2017

การเซท LDAP Address book (Thunderbird) iRed Admin

server: CentOS 7 (64bit)

สิ่งที่ต้องทำ
1. ตรวจสอบเครื่อง mail server เปิด Firewall ไว้หรือป่าว
firewall-cmd --list-all
2. Port 389 service slapd เปิดให้บริการอยู่ไหม
netstat -pnat |grep slapd
3. จากข้อที่ 1. หากมีการเปิด Firewall ไว้แล้วไม่มีการแอดพอร์ต 389 ไว้ และในข้อ 2 service จะต้องทำงานอยู่ ให้ทำการ add port: 389 ใน firewall


firewall-cmd --permanent --add-port=389/tcp
firewall-cmd --reload   (save rule)
firewall-cmd --list-all    (check all service/port runing)

จบ สำหรับการตรวจสอบ firewall ต่อไปเป็นการเซท LDAP Address book บน Thunderbird

1. General
* ให้ตรวจสอบ Base DN จากไฟล์ iRedMail.tips #OpenLDAP

Host name:  abc.co.th / IP address
Base DN: domainName=abc.co.th,o=domains,dc=abc,dc=co,dc=th
Bind DN: mail=user@abc.co.th,ou=Users,domainName=abc.co.th,o=domains,dc=abc,dc=co,dc=th



2. Advanced

(&(enabledService=mail)(enabledService=deliver)(enabledService=displayedInGlobalAddressBook)(|(objectClass=mailList)(objectClass=mailAlias)(objectClass=mailUser)))



3. Test login




Ref: Thunderbird use-openldap-as-global-ldap-address-book
        Ms office(2010) use.openldap.as.address.book.in.outlook

Sunday, November 19, 2017

ปรับแต่ง TOP command

top -M  check RAM Mbit
กด z เพิ่มสี
กด c
Shift+W  save configu

Ref: 12-top-command-examples-in-linux