Windows 10 : Driver Kyocera Mita KM-2050 สำหรับ Windows 10
นำ Driver จาก Web Kyocera มาติดตั้งแล้ว Font ที่เป็น Angsanaupc Print ออกมาเพี้ยนเป็นตัวหนาและเอียง
เป็น Driver Universal ถ้าบังคับหรือเปลี่ยนให้เป็น Driver KM-2050 ให้ตรงรุ่น LibreOffice จะ Print ไม่ได้จะปิดตัวเองเมื่อเลือก Printer
Driver :
https://www.kyoceradocumentsolutions.eu/index/service/dlc.false._.KM2050._.EN.html
วิธีแก้
- ลบ Printer ที่ติดตั้งตาม Driver ข้างบนออก
- ปล่อย IP ของเครื่องให้ออก Net ตรง เพื่อ Update Driver จาก Windows 10
- เข้า หน้า Printer เลือก Add Printer แล้วเลือก The printer that I want isn't listed
- Add Printer เลือก Add TCP/IP เพื่อใส่ IP ใหม่ หรือถ้ามีอยู่แล้วก็เลือก Add a local printer or network ...
- เลือก Device type เป็น TCP/IP Device แล้ว ใส่ Hostname or IP address ที่เราต้องการ
- เลือก Windows Update เพื่อให้ Download Driver จาก Windows 10 (จะใช้เวลาสักพักในการหา Driver ที่ต้องการ)
- เมื่อเจอ Driver ให้เลือก Kyocera และเลือก Printer เป็น Kyocera Mita KM-2050 KZ (KYOCERA Document Solutions) แล้วกด Next กด Finish ตามรูป
- เมื่อเสร็จแล้วจะได้ Printer ตรงรุ่น
สามารถ Print ได้ตามปกติ
วันอังคารที่ 28 กุมภาพันธ์ พ.ศ. 2560
Windows 10 : Driver Kyocera Mita KM-2050 สำหรับ Windows 10
วันศุกร์ที่ 24 กุมภาพันธ์ พ.ศ. 2560
Raspberrypi : Error Lastversion 4.4
Raspberrypi : Error Lastversion 4.4
1. Error cannot download Adafruit_DHT.c
ให้ไปเอาจากนี้ https://code.ga-fl.net/cgz/jacuzzi/raw/913b3e809831b2e6a04f9e31c52bf03ea4176d38/var/jacuzzi/lib/Adafruit-Raspberry-Pi-Python-Code-master/Adafruit_DHT_Driver/Adafruit_DHT.c
ใช้ไฟล์นี้ไว้ที่ /tmp/ แล้วค่อยทำอย่างอื่นต่อ
2. Error Module SPI ให้เปิด SPI
http://piface.github.io/pifacecommon/installation.html#enable-the-spi-module
โดยลง
ถ้า Error
Module i2c-bcm2708 not found
ให้เปิดใน ไฟล์ config.txt
แก้โดยเปิด
แล้ว Reboot 1 ครั้ง
จะสั่งหรือใช้งานได้ต้องนำไปต่อเครื่อง piface ถ้าไม่ต่อจะไม่เจอ device
3. เวลาไม่ตรงต้องไปเลือก Time zone ใหม่
แล้วเลือกดังนี้
4. ssh not auto start when reboot.
แล้วเลือกดังนี้
1. Error cannot download Adafruit_DHT.c
ให้ไปเอาจากนี้ https://code.ga-fl.net/cgz/jacuzzi/raw/913b3e809831b2e6a04f9e31c52bf03ea4176d38/var/jacuzzi/lib/Adafruit-Raspberry-Pi-Python-Code-master/Adafruit_DHT_Driver/Adafruit_DHT.c
ใช้ไฟล์นี้ไว้ที่ /tmp/ แล้วค่อยทำอย่างอื่นต่อ
2. Error Module SPI ให้เปิด SPI
http://piface.github.io/pifacecommon/installation.html#enable-the-spi-module
โดยลง
- sudo modprobe spi-bcm2708
ถ้า Error
Module i2c-bcm2708 not found
ให้เปิดใน ไฟล์ config.txt
- nano /boot/config.txt
แก้โดยเปิด
- dtparam=spi=on
แล้ว Reboot 1 ครั้ง
จะสั่งหรือใช้งานได้ต้องนำไปต่อเครื่อง piface ถ้าไม่ต่อจะไม่เจอ device
3. เวลาไม่ตรงต้องไปเลือก Time zone ใหม่
- sudo raspi-config
4 Internationalisation Options
I2 Change Timezone
Asia
Bangkok
<Finish>
4. ssh not auto start when reboot.
- sudo raspi-config
5 Interfacing Options
P2 SSH
<Yes>
<Ok>
<Finish>
Axapta : Job เรียก User Group ว่ามี User อะไรบ้าง เพื่อนำไปใช้งานต่อ
Axapta : Job เรียก User Group ว่ามี User อะไรบ้าง เพื่อนำไปใช้งานต่อ
- จะได้ User ใส่ ไฟล์ Text แล้วนำไปใส่ Office หรือไปใช้งานต่อ
Example : https://community.dynamics.com/ax/f/33/t/144374
- จะได้ User ใส่ ไฟล์ Text แล้วนำไปใส่ Office หรือไปใช้งานต่อ
- static void ExportUerFromGroup(Args _args)
- {
- UserGroupList groups;
- UserInfo userInfo;
- AsciiIO myFile;
- str strEmpId;
- ;
- myFile=new AsciiIO("D:\\Full.txt","a");
- WHILE
- SELECT * FROM groups
- ORDER BY groupId
- WHERE groups.groupId == 'LG-E1'
- || groups.groupId == 'LG-M'
- || groups.groupId == 'LG-S1'
- || groups.groupId == 'SS-E1'
- || groups.groupId == 'SS-E2'
- || groups.groupId == 'SS-M'
- || groups.groupId == 'SS-S1'
- || groups.groupId == 'SS-S2'
- || groups.groupId == 'IF-E1'
- || groups.groupId == 'IF-E2'
- || groups.groupId == 'IF-M'
- || groups.groupId == 'IF-S1'
- || groups.groupId == 'IF-S2'
- //Mask View.
- /*WHERE groups.groupId == 'DS-E1'
- || groups.groupId == 'DS-E2'
- || groups.groupId == 'IF-N03'
- || groups.groupId == 'PD-E1'
- || groups.groupId == 'PD-E2'
- || groups.groupId == 'PD-N03'
- || groups.groupId == 'QA-E1'
- || groups.groupId == 'S2-E'
- || groups.groupId == 'V_ALL'*/
- {
- //print groups.groupId;
- WHILE
- SELECT * FROM userInfo
- WHERE userInfo.id == groups.userId
- {
- //info(strfmt("%1:%2", userInfo.id, userInfo.name));
- myFile.write(strfmt("%1,%2,%3",userInfo.id, userInfo.name, enum2str(userInfo.enable)));
- //strEmpId = strfmt("%1,%2", strEmpId, userInfo.id);
- }
- }
- //myFile.write(strEmpId);
- myFile = null;
- }
Example : https://community.dynamics.com/ax/f/33/t/144374
วันพฤหัสบดีที่ 16 กุมภาพันธ์ พ.ศ. 2560
Ubuntu : Ubuntu 16.04 Sent Squid Log To Server Syslog-ng
Ubuntu : Ubuntu 16.04 Sent Squid Log To Server Syslog-ng
การส่ง squid log จากเครื่อง squid ไปเก็บที่เครื่อง log server ไม่ผ่านโดยใช้ Squid ส่งไม่ผ่าน Program อื่น ๆ เช่น syslog-ng หรือ rsyslog
- แก้ไฟล์ squid.confi
- เพิ่ม ไว้ใต้ #Default: ของ logformat
- restart squid
แล้ว Log จะถูกส่งจากเครื่อง squid ไปเก็บที่เครื่อง Log server
การส่ง squid log จากเครื่อง squid ไปเก็บที่เครื่อง log server ไม่ผ่านโดยใช้ Squid ส่งไม่ผ่าน Program อื่น ๆ เช่น syslog-ng หรือ rsyslog
- แก้ไฟล์ squid.confi
- nano /etc/squid/squid.conf
- เพิ่ม ไว้ใต้ #Default: ของ logformat
- #SCI_EDIT Sent Log Squid To Log Server
- #Sent To access.log file. for lightsquid read access.log file show on lightsquid web.
- access_log /var/log/squid/access.log squid
- #Sent To Log Server.
- logformat squid %tl %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
- access_log tcp:192.168.2.108:514 squid
- restart squid
- /etc/init.d/squid restart
แล้ว Log จะถูกส่งจากเครื่อง squid ไปเก็บที่เครื่อง Log server
วันจันทร์ที่ 13 กุมภาพันธ์ พ.ศ. 2560
Raspberrypi : มีปัญหา อ่านค่าอุณหภูมิไม่ได้
Raspberrypi : มีปัญหา อ่านค่าอุณหภูมิไม่ได้
Run คำสั่ง
แล้วไม่แสดงอุณหภูมิ ได้ค่าเป็นตัวเลขแทนตามรูป
เกิดจาก Motion กล้อง USB ใช้ CPU มากเกินไป ทำให้อุณหภูมิไม่ได้ และมีผลทำให้เครื่อง Raspberrypi ค้างด้วย หลังจากปิด Motion USB กล้อง Webcam สามารถทำงานได้ตามปกติ
Stop Motion
จะได้อุณหภูมิตามรูป
ข้อมูลจาก
https://www.raspberrypi.org/forums/viewtopic.php?f=37&t=27215&sid=9513fdaf30f01e19bd51a3610343914d
Check CPU ด้วยคำสั่ง
Use CPU
Start Motion
Use CPU
Stop Motion
ถอดโปรแกรม Motion
Run คำสั่ง
- Adafruit_DHT 22 23
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (38): 0x4 0x4 0x3 0x4f 0x18
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (39): 0x2 0x4 0x1 0xa7 0x57
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (37): 0x8 0x8 0x3 0x4f 0xb
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (39): 0x2 0x6 0x1 0xa7 0x58
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (38): 0x2 0x2 0x0 0xaf 0x17
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (38): 0x4 0x6 0x1 0xd3 0x19
แล้วไม่แสดงอุณหภูมิ ได้ค่าเป็นตัวเลขแทนตามรูป
เกิดจาก Motion กล้อง USB ใช้ CPU มากเกินไป ทำให้อุณหภูมิไม่ได้ และมีผลทำให้เครื่อง Raspberrypi ค้างด้วย หลังจากปิด Motion USB กล้อง Webcam สามารถทำงานได้ตามปกติ
Stop Motion
- /etc/init.d/motion stop
- Adafruit_DHT 22 23
จะได้อุณหภูมิตามรูป
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (40): 0x2 0x0 0x0 0xd1 0xd3
Temp = 20.9 *C, Hum = 51.2 %
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (40): 0x2 0x2 0x0 0xd0 0xd4
Temp = 20.8 *C, Hum = 51.4 %
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (40): 0x2 0x2 0x0 0xd0 0xd4
Temp = 20.8 *C, Hum = 51.4 %
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (40): 0x2 0x3 0x0 0xcf 0xd4
Temp = 20.7 *C, Hum = 51.5 %
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (40): 0x2 0x3 0x0 0xcf 0xd4
Temp = 20.7 *C, Hum = 51.5 %
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (40): 0x2 0x3 0x0 0xcf 0xd4
Temp = 20.7 *C, Hum = 51.5 %
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (40): 0x2 0x2 0x0 0xce 0xd2
Temp = 20.6 *C, Hum = 51.4 %
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (40): 0x2 0x2 0x0 0xce 0xd2
Temp = 20.6 *C, Hum = 51.4 %
root@raspberrypi:/home/pi# Adafruit_DHT 22 23
Using pin #23
Data (40): 0x2 0x3 0x0 0xcf 0xd4
Temp = 20.7 *C, Hum = 51.5 %
ข้อมูลจาก
https://www.raspberrypi.org/forums/viewtopic.php?f=37&t=27215&sid=9513fdaf30f01e19bd51a3610343914d
Check CPU ด้วยคำสั่ง
- top
Start Motion
Use CPU
Stop Motion
ถอดโปรแกรม Motion
sudo apt-get remove motion
วันอังคารที่ 31 มกราคม พ.ศ. 2560
Zimbra : Zimbra Delete All Email Contract All User.
Zimbra : Zimbra Delete All Email Contract All User.
Zimbra มีปัญหา จำ Email Contract เดิม ซึ่งแสดงชื่อตำแหน่งไม่ถูกต้อง จะต้องลบ Email Contract ของแต่ละ User ออก และ Reset RankingActionRequest เพื่อให้ Zimbra เรียนรู้ และจำ Contract ใหม่
** ใช้ Code นี้ Contract และ Contract Group ที่สร้างขึ้นเองยังอยู่ **
1. สร้างไฟล์ bash .sh สำหรับ Run คำสั่ง
https://forums.zimbra.org/viewtopic.php?t=28905
2. นำไฟล์ User มาใส่ txt รูปแบบ เอา User มาเรียง เช่น
เอา User ที่เป็น Admin และพวกป้องกัน Virus , Spam ออก ให้เหลือเฉพาะ User ที่จะใช้งานจริง ๆ
https://community.bittitan.com/kb/Pages/How%20do%20I%20export%20a%20user%20list%20from%20Zimbra%20into%20a%20CSV%20file.aspx
https://wiki.zimbra.com/wiki/Reset_contact_Autocomplete_ranking
https://wiki.zimbra.com/wiki/King0770-Notes-Removal_of_Bad_Contact_Address
Zimbra มีปัญหา จำ Email Contract เดิม ซึ่งแสดงชื่อตำแหน่งไม่ถูกต้อง จะต้องลบ Email Contract ของแต่ละ User ออก และ Reset RankingActionRequest เพื่อให้ Zimbra เรียนรู้ และจำ Contract ใหม่
** ใช้ Code นี้ Contract และ Contract Group ที่สร้างขึ้นเองยังอยู่ **
1. สร้างไฟล์ bash .sh สำหรับ Run คำสั่ง
https://forums.zimbra.org/viewtopic.php?t=28905
- #!/bin/bash
- #for foo in `cat /usr/local/scripts/users.txt`
- #File User We Do It.
- for foo in `cat /home/sa/users.txt`
- do
- echo $foo
- echo "Verifting contacts from user $foo" >> /tmp/purge_emailed_contacts_log.txt
- /opt/zimbra/bin/zmmailbox -z -m $foo gact -f "/Emailed Contacts" | grep Id: | cut -d" " -f2 > /tmp/verContactos.txt
- for contacto in `cat /tmp/verContactos.txt`
- do
- /opt/zimbra/bin/zmmailbox -z -m $foo gct $contacto | grep email > /tmp/contacto_a_examinar.txt
- RESP=`grep sci.com /tmp/contacto_a_examinar.txt`
- if [ ${#RESP} -gt 1 ]
- then
- echo "Local Contact"
- echo "Deleting contact $RESP"
- /opt/zimbra/bin/zmmailbox -z -m $foo dct $contacto
- echo "Contact $RESP with ID $contacto has been deletec from account $foo" >> /tmp/purge_emailed_contacts_log.txt
- echo ""
- fi
- done
- /opt/zimbra/bin/zmsoap -z -m $foo RankingActionRequest/action @op=reset
- /opt/zimbra/bin/zmprov fc account $foo
- done
2. นำไฟล์ User มาใส่ txt รูปแบบ เอา User มาเรียง เช่น
เอา User ที่เป็น Admin และพวกป้องกัน Virus , Spam ออก ให้เหลือเฉพาะ User ที่จะใช้งานจริง ๆ
https://community.bittitan.com/kb/Pages/How%20do%20I%20export%20a%20user%20list%20from%20Zimbra%20into%20a%20CSV%20file.aspx
https://wiki.zimbra.com/wiki/Reset_contact_Autocomplete_ranking
https://wiki.zimbra.com/wiki/King0770-Notes-Removal_of_Bad_Contact_Address
วันอังคารที่ 24 มกราคม พ.ศ. 2560
Ubuntu : Ubuntu 16.04 cacher-ng for update upgrade
Ubuntu : Ubuntu 16.04 cacher-ng for update upgrade
- ติดตั้ง
- snap เครื่องเดิม เพื่อเอา disk cache ไปใส่เครื่องใหม่
- download file vmdk
จะได้ไฟล์ 2 ไฟล์ .vmdk และ flat.vmdk
- upload ขึ้น folder ที่ต้องการ
- add disk ใส่ VMware
- ดู disk ว่าได้ dev อะไร
- สร้าง folder สำหรับ mount disk ใส่
- mount disk ใส่ /cache-ng
- auto mount
เพิ่ม Code
-แก้ไฟลื acng.conf เพื่อให้ไปใช้งาน disk cache-ng
แก้
- restart service
ทดลองแก้ เครื่องอื่น
ใส่ ip ใหม่
แล้วทดลอง update upgrade ดู
- ติดตั้ง
- sudo apt-get install apt-cacher-ng
- snap เครื่องเดิม เพื่อเอา disk cache ไปใส่เครื่องใหม่
- download file vmdk
จะได้ไฟล์ 2 ไฟล์ .vmdk และ flat.vmdk
- upload ขึ้น folder ที่ต้องการ
- add disk ใส่ VMware
- ดู disk ว่าได้ dev อะไร
- fdisk -l
- สร้าง folder สำหรับ mount disk ใส่
- mkdir /cache-ng
- mount disk ใส่ /cache-ng
- mount /dev/sdc1/ /cache-ng
- auto mount
- nano /etc/fstab
เพิ่ม Code
- /dev/sdc1 /cache-ng ext4 defaults 0 0
-แก้ไฟลื acng.conf เพื่อให้ไปใช้งาน disk cache-ng
- nano /etc/apt-cacher-ng/acng.conf
แก้
- CacheDir: /cache-ng/apt-cacher-ng
- Port:9999
- restart service
- /etc/init.d/apt-cacher-ng restart
ทดลองแก้ เครื่องอื่น
- nano /etc/apt/apt.conf
ใส่ ip ใหม่
- Acquire::http { Proxy "http://192.168.2.116:9999"; };
แล้วทดลอง update upgrade ดู
สมัครสมาชิก:
บทความ (Atom)