tag:blogger.com,1999:blog-31003621825887094532024-03-06T07:34:51.281+07:00RASPBERRY PIความรู้หากไม่มีการเผยแพร่และบันทึกไว้ สุดท้ายความรู้เหล่านั้นก็หายไปณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.comBlogger32125tag:blogger.com,1999:blog-3100362182588709453.post-82365202376239001202016-07-31T23:09:00.000+07:002016-07-31T23:09:07.917+07:00Router WRT54GL Firmware Tomato 1.28 + SD Card SDHC + NAS<br />
<br />
<br />
<h2>
Router WRT54GL Firmware Tomato 1.28 + SD Card Type SDHC + NAS</h2>
<div>
<br /></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhihYFi21lMeycKVFfhcOCPAcfkH7Nw8lnN8YL5E8CpeRxs3K_J0-Au6ErkgaIqx5Yu-IdYJ6CbAEWOByigzLxObaSdPOPajSlx5GdUeXHTijAhnV2S8xDfAUQtDXtHEyoKvZvnD0YAbgk/s1600/2016-07-30+15.00.49.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhihYFi21lMeycKVFfhcOCPAcfkH7Nw8lnN8YL5E8CpeRxs3K_J0-Au6ErkgaIqx5Yu-IdYJ6CbAEWOByigzLxObaSdPOPajSlx5GdUeXHTijAhnV2S8xDfAUQtDXtHEyoKvZvnD0YAbgk/s640/2016-07-30+15.00.49.jpg" width="640" /></a></div>
<div>
<br /></div>
<h3>
การติดตั้ง SD CARD กับ Router WRT54GL </h3>
<div>
<a href="http://beta.ivc.no/wiki/index.php/Adding_SD_card_to_WRT54GL">http://beta.ivc.no/wiki/index.php/Adding_SD_card_to_WRT54GL</a></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://beta.ivc.no/wiki/images/b/be/Wrt54gl_sdcard_pcb_gpio.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://beta.ivc.no/wiki/images/b/be/Wrt54gl_sdcard_pcb_gpio.jpg" height="480" width="640" /></a></div>
<div>
<br /></div>
<h3>
Download :Tomato firmware with SDHC mod </h3>
<div>
<a href="http://gemini.net.pl/~slodki/tomato-sdhc.html">http://gemini.net.pl/~slodki/tomato-sdhc.html</a></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhihYFi21lMeycKVFfhcOCPAcfkH7Nw8lnN8YL5E8CpeRxs3K_J0-Au6ErkgaIqx5Yu-IdYJ6CbAEWOByigzLxObaSdPOPajSlx5GdUeXHTijAhnV2S8xDfAUQtDXtHEyoKvZvnD0YAbgk/s1600/2016-07-30+15.00.49.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhihYFi21lMeycKVFfhcOCPAcfkH7Nw8lnN8YL5E8CpeRxs3K_J0-Au6ErkgaIqx5Yu-IdYJ6CbAEWOByigzLxObaSdPOPajSlx5GdUeXHTijAhnV2S8xDfAUQtDXtHEyoKvZvnD0YAbgk/s640/2016-07-30+15.00.49.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
วิธีการอัพเฟริมแวร์ Tomato</h3>
<a href="https://www.gotoknow.org/posts/487589">https://www.gotoknow.org/posts/487589</a><br />
<br />
จากนั้นเข้าโปรแกรม Web Browser พิมพ์ 192.168.1.1 เพื่อ Login<br />
User : root<br />
Password : admin<br />
<br />
<br />
จากนั้นเข้ามาคอนฟิกเมนู SDHC โดยการ Enable แล้วกำหนดขา GPIO ให้ตรงกับที่เราเชื่อมต่อกับ SD Card ในที่นี้ CS=7 CLK=3 DI=2 DO=4 แล้วกำหนด FileSystem = vfat ดังรูป แล้วทำการ Save<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV_V4oJXs2CGdDJqYfrbrEQpCK0zAzRfLGMd7nsKQvUFVc4d-FIG2eg3ALm0GNalE_9l0VV7aWHiixqovSJC9coBHXE-GqXdSyZeED7viAmc4XgmcaRi4gsf6qNRLMDy7z25fejlpvjpI/s1600/002.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="491" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV_V4oJXs2CGdDJqYfrbrEQpCK0zAzRfLGMd7nsKQvUFVc4d-FIG2eg3ALm0GNalE_9l0VV7aWHiixqovSJC9coBHXE-GqXdSyZeED7viAmc4XgmcaRi4gsf6qNRLMDy7z25fejlpvjpI/s640/002.JPG" width="640" /></a></div>
<br />
เข้าโปรแกรม Putty พิมพ์ Host : 192.168.1.1 เลือก Telnet หรือ SSH เพื่อ Login Terminal<br />
User : root<br />
Password : admin<br />
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<ul>
<li>df</li>
</ul>
<br />
จะเห็นได้ว่าระบบเห็น SD Card แล้วตรง /mmc<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ95TRsfh3K2ZgInVnOzaNPFk5u0cAObahzLX7uM1FNYUcvil7vHCXoBayacKk5wmPVab9zTKKPHnk69ho_iQI7TxotoSGoNbMzcEUwkicq2L-CmCKiPUzXlJv7_RUbLHw1aEw7lttoBU/s1600/001.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="288" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ95TRsfh3K2ZgInVnOzaNPFk5u0cAObahzLX7uM1FNYUcvil7vHCXoBayacKk5wmPVab9zTKKPHnk69ho_iQI7TxotoSGoNbMzcEUwkicq2L-CmCKiPUzXlJv7_RUbLHw1aEw7lttoBU/s640/001.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul>
<li>df -h</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi9cvXiHKQpBf-rGB1sAvdTfzAn3E20YPpx-8IvM0kxgi3ry7K8MDF2SUX4H2RW3ICbCCtB0GdEEQQENYU6-VNq_lBFxox06HvfpjqphUq4PLnLBXvnEqyDa4ceiIaDcv6c48h5H_kBxc/s1600/003.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="102" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi9cvXiHKQpBf-rGB1sAvdTfzAn3E20YPpx-8IvM0kxgi3ry7K8MDF2SUX4H2RW3ICbCCtB0GdEEQQENYU6-VNq_lBFxox06HvfpjqphUq4PLnLBXvnEqyDa4ceiIaDcv6c48h5H_kBxc/s640/003.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
ทดสอบ : WRT54GL v1.1 ด้วย SD mod</h3>
<h4>
Testing method:</h4>
<br />
<ul>
<li>mount -t ext3 /dev/mmc/disc0/part1 /mmc</li>
<li>sync; date; dd if=/dev/zero of=/mmc/test.bin bs=1024 count=102400; sync; date</li>
<li>sync; date; dd if=/mmc/test.bin of=/dev/null bs=1024 count=102400; sync; date</li>
</ul>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpcueXwX40MOj11TK2Vsh8-ZbIfeaqQg1wHpYjOux1Ujs0jfTRBxyWlPgXuYruPV4tYxeDUyU6QT56rHJ-Pe5uIGJS3Xhk8wFsJFcsNwYl9QergJX4wgZSYEJaqGaOovLlp02CNDZJ8NM/s1600/006.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="444" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpcueXwX40MOj11TK2Vsh8-ZbIfeaqQg1wHpYjOux1Ujs0jfTRBxyWlPgXuYruPV4tYxeDUyU6QT56rHJ-Pe5uIGJS3Xhk8wFsJFcsNwYl9QergJX4wgZSYEJaqGaOovLlp02CNDZJ8NM/s640/006.JPG" width="640" /></a></div>
<br />
<h3>
ทดสอบ : WRT54GL v1.1 SD mod ด้วยโปรแกรม WINSCP</h3>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJtnF_s6Tmf3Nf4LAnpJouPp6_0TAK-2mgZFvRt0bJy8Plv41_S9if-vLoCk1ClE4uBKW7FHa4gHRMcAKtKW6zUteruJ6YjR_3S1kLr2sZYSVyGl6qe-OhOTVV8T3-KChYoboSu42k3Mc/s1600/2016-07-30+15.09.04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJtnF_s6Tmf3Nf4LAnpJouPp6_0TAK-2mgZFvRt0bJy8Plv41_S9if-vLoCk1ClE4uBKW7FHa4gHRMcAKtKW6zUteruJ6YjR_3S1kLr2sZYSVyGl6qe-OhOTVV8T3-KChYoboSu42k3Mc/s640/2016-07-30+15.09.04.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
เปิดการใช้งานฟังชั่น NAS ด้วย Samba</h3>
<div>
โดยการเพิ่ม ชื่อไฟล์ ตำแหน่งไฟล์ การเข้าถึง </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNQQaREfhRuZt5-WtcZylhzmbG3TZYARF36G2CWpHHN3UVn9wS5rWUhZ7PkyhmcdFjF8W6aiAgQYxVldjGtn0_M2We-h9iLno6hJ9qMKSZ8B-tRH2y2corikngTf68eetFJ1hLHj9D9O0/s1600/005.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="422" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNQQaREfhRuZt5-WtcZylhzmbG3TZYARF36G2CWpHHN3UVn9wS5rWUhZ7PkyhmcdFjF8W6aiAgQYxVldjGtn0_M2We-h9iLno6hJ9qMKSZ8B-tRH2y2corikngTf68eetFJ1hLHj9D9O0/s640/005.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ทดสอบการคัลลอกไฟล์จาก NAS กับ Client</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul>
<li>พิมพ์ \\[ip_router]</li>
<li>พิมพ์ \\10.0.0.1</li>
</ul>
<br />
จากนั้นเห็น Folder Nas ที่ได้ Share ไว้แล้วทำการทดสอบโยนไฟล์<br />
สังเกตุได้ว่าไฟล์ของขา GPIO ที่เราต่อได้ติด แสดงการทำงานของขา GPIO<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDwTi2lO13llqpta_YZR0KiLKArtTPGQ_OppVbxN__kiT6D9sY20xCy2ROVBreCPMeRmSf9A-V9ohFKUIf_Zxo82UmBVg8hxAjhfGrL00qyGtZIy8k8NxPApvNk8Bkfgbx-uzff75NQfE/s1600/004.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="452" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDwTi2lO13llqpta_YZR0KiLKArtTPGQ_OppVbxN__kiT6D9sY20xCy2ROVBreCPMeRmSf9A-V9ohFKUIf_Zxo82UmBVg8hxAjhfGrL00qyGtZIy8k8NxPApvNk8Bkfgbx-uzff75NQfE/s640/004.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: center;">
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Video</div>
</h3>
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/ybd6n2sJBGo/0.jpg" src="https://www.youtube.com/embed/ybd6n2sJBGo?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h3 style="clear: both; text-align: left;">
RF : </h3>
<div class="separator" style="clear: both; text-align: left;">
WRT54GL Tomato1.28 + SDHC + NAS </div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://beta.ivc.no/wiki/index.php/Adding_SD_card_to_WRT54GL">http://beta.ivc.no/wiki/index.php/Adding_SD_card_to_WRT54GL</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://gemini.net.pl/~slodki/tomato-sdhc.html">http://gemini.net.pl/~slodki/tomato-sdhc.html</a></div>
<div class="separator" style="clear: both; text-align: left;">
Firmware : <a href="http://www.polarcloud.com/tomato/">http://www.polarcloud.com/tomato/</a></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<a href="http://raspberry-pi-thai.blogspot.com/">http://raspberry-pi-thai.blogspot.com/</a></div>
<div class="separator" style="clear: both;">
<a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a></div>
<div class="separator" style="clear: both;">
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div>
<br /></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-53864068761321500822015-08-23T11:57:00.001+07:002015-08-23T12:59:31.093+07:00Raspberry Pi Wifi Hotspot + CoovaChilli + Freeradius + Captive portal<br />
<br />
<h2 style="text-align: center;">
Raspberry Pi Wifi Hotspot + CoovaChilli + Freeradius + Captive portal</h2>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0fici_S51q1SEISNfQ4SwZcIiKJaY1gRnOpkSMpLTWelW2y9SHTmwJT9YOTR3I5SIjHuDMRbG5VQJY45X0bVwrX32oTrds6sP0ijFayWtTWRtkc43JkrtJBq5EJ3bzk4ndFRzPTFCgi4/s1600/2015-08-22+14.35.36.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0fici_S51q1SEISNfQ4SwZcIiKJaY1gRnOpkSMpLTWelW2y9SHTmwJT9YOTR3I5SIjHuDMRbG5VQJY45X0bVwrX32oTrds6sP0ijFayWtTWRtkc43JkrtJBq5EJ3bzk4ndFRzPTFCgi4/s400/2015-08-22+14.35.36.jpg" width="400" /></a></div>
<br />
โปเจคนี้เป็นการนำเอา Raspberry Pi และ ตัวรับ USB WIFI ที่สนับสนุนกับ Raspberry Pi เพื่อนำมาประยุกต์ใช้งานในการทำระบบ WIFI Hotspot โดยรับ Internet มาจากพอร์ตแลนของ Raspberry Pi ให้เป็นขา WAN ส่วน Wireless USB ให้เป็นขา LAN Hotspot หากนำอุปกรณ์ไปเชื่อมต่อสัญญาณ Access Point ที่ปล่อยออกมาจาก USB Wireless จะได้รับ IP ในวงของ Hotspot และเมื่อเปิดโปรแกรมพวกเว็บบราวเซอร์ ระบบ Hotspot ก็จะวิ่งไปหน้า Login เพื่อจะให้ผู้ใช้งานนำ User และ Password มาใส่เพื่อเข้าใช้งานระบบ โดย User นั้นจะต้องมีอยู่ใน Database ของระบบถึงจะเข้าใช้งานได้ และยังมีหน้าจัดการระบบของผู้ดูแลระบบในการจัดการ User ใช้งานและข้อมูลระบบอื่นๆ<br />
<br />
<h3>
สรุป</h3>
## <a href="http://elinux.org/RPi_USB_Wi-Fi_Adapters">Wiresless USB ต้องสนับสนุนกับ Raspberry Pi</a> และต้องมี Driver ด้วยเพื่อให้ Raspberry Pi มองเห็น<br />
## <a href="http://www.coova.org/CoovaChilli">CoovaChilli</a> Coova Chilli เป็น DHCP Server ทำหน้าที่ในการจัดการเรื่องของ IP และแจก IP ให้กับเครื่อง Client ที่เชื่อมต่อกับ WIFI<br />
## RADIUS (Common Remote Authentication Dial In User Server) ระบบจัดการและตรวจสอบการพิสูจน์สิทธิ์การใช้งานระบบ แพคเกจโปรแกรมที่ต้องติดตั้งคือ freeradius<br />
##daloRADIUS เป็นเว็บแอพพลิเคชันในการบริหารจัดการะบบ hotspots, การจัดการผู้ใช้, การรายงานกราฟฟิก, การจัดทำบัญชี และ billing engine ด้วย daloRADIUS พัฒนาด้วยภาษา PHP และ JavaScript พร้อมทั้งสนับสนุนการใช้งานร่วมกับฐานข้อมูลต่างๆ เช่น MySQL และ PostgreSQl<br />
##Captive Portal คือ การบังคับเปลี่ยนทิศทางให้ผู้ใช้งาน HTTP เข้าใช้งานหน้าเวปไซต์เพื่อบังคับให้ผู้ใช้ต้องพิสูจน์ตัวตนของผู้ใช้งานก่อนเข้าใช้ทรัพยากรในระบบ<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
ปิด turbo mode<br />
<blockquote class="tr_bq">
bash -c "echo options smsc95xx turbo_mode=N > /etc/modprobe.d/smscnonturbo.conf"</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6sMZCnSL8197UfQ2CC3Rt5kLAx0DD1FCXHUzq2fnyAslbquMEaS_QLIUKCYNMbRtQxabt4lkadrzYlGN9-1FTjNPbagb8wXINck6wfyVq-D1Eg0Pm5_KjYSAhVf9lrMiiV8qek13yXXo/s1600/01.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="25" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6sMZCnSL8197UfQ2CC3Rt5kLAx0DD1FCXHUzq2fnyAslbquMEaS_QLIUKCYNMbRtQxabt4lkadrzYlGN9-1FTjNPbagb8wXINck6wfyVq-D1Eg0Pm5_KjYSAhVf9lrMiiV8qek13yXXo/s400/01.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
ตั้งค่า interface ของคุณใน /etc/network/interfaces และแก้ไขดังนี้<br />
<blockquote class="tr_bq">
sudo nano /etc/network/interfaces</blockquote>
เพิ่มไปยังไฟล์ดังนี้<br />
<blockquote class="tr_bq">
auto wlan0<br />
allow-hotplug wlan0<br />
iface wlan0 inet static<br />
address 192.168.10.1<br />
netmask 255.255.255.0<br />
network 192.168.10.0<br />
post-up echo 1 > /proc/sys/net/ipv4/ip_forward</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6yfK9mi5pJiC_KMuTvhA8ExoSbRsr-DANjcLo3X0QMGU1FuilXf0FqrlAnMhw0CPVbGe274YKbwZqwPkxu9QIRGY9I-UvlAPtv6gZn0in93875YubFWGAyEOu7v1W6FvPpB7x3U7k5rY/s1600/04.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="261" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6yfK9mi5pJiC_KMuTvhA8ExoSbRsr-DANjcLo3X0QMGU1FuilXf0FqrlAnMhw0CPVbGe274YKbwZqwPkxu9QIRGY9I-UvlAPtv6gZn0in93875YubFWGAyEOu7v1W6FvPpB7x3U7k5rY/s400/04.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เปิดการ Forwarding interface ในบรรทัดที่ 29 ไฟล์ /etc/sysctl.conf ลบ # ข้างหน้าออก</div>
<blockquote class="tr_bq" style="clear: both;">
sudo nano /etc/sysctl.conf </blockquote>
<div class="separator" style="clear: both;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzcmttSsxepZq5EWt9XJx0akqBPswEFrO1fXoD817zQ6khSTmDTFQQ2f0mSKx1KSvgN_f5SkD4bRZE_ZreP9kHdgbdeBoCfgUGrfEfQ9KTRLQa5-rXDAYh8yBc9YoK_Bw47zdAFf53Q_c/s1600/05.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="258" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzcmttSsxepZq5EWt9XJx0akqBPswEFrO1fXoD817zQ6khSTmDTFQQ2f0mSKx1KSvgN_f5SkD4bRZE_ZreP9kHdgbdeBoCfgUGrfEfQ9KTRLQa5-rXDAYh8yBc9YoK_Bw47zdAFf53Q_c/s400/05.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both;">
รีสตาร์ network</div>
<blockquote class="tr_bq" style="clear: both;">
/etc/init.d/networking restart</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h2 style="background-color: white; border: 0px; color: #444444; font-family: Titillium, Arial, sans-serif; font-size: 28px; font-stretch: inherit; font-weight: 400; letter-spacing: -0.5px; line-height: 1.3em; margin: 0px 0px 14px; padding: 0px; text-align: justify; vertical-align: baseline; word-wrap: break-word;">
Freeradius</h2>
ติดตั้ง mysql และ กำหนดค่าให้กับ databases<br />
<blockquote class="tr_bq">
apt-get install -y debconf-utils</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvySNk-YhnlEj1SUhl-Rib1QcjYBw_LaoKtCIS2BmIKRa5J6JFL2Sr7VMKPBL9tkCQ-7d4Wp-pZ4xqoRfkTj7YCq-DjI4VZtl_hfwF92p8lGGv07xGZQaw3Va5P3EO8bzRFMLE8MBMKFY/s1600/06.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="76" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvySNk-YhnlEj1SUhl-Rib1QcjYBw_LaoKtCIS2BmIKRa5J6JFL2Sr7VMKPBL9tkCQ-7d4Wp-pZ4xqoRfkTj7YCq-DjI4VZtl_hfwF92p8lGGv07xGZQaw3Va5P3EO8bzRFMLE8MBMKFY/s400/06.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
กำหนดค่าดังนี้เข้าไป<br />
<br />
<blockquote class="tr_bq">
debconf-set-selections <<< 'mysql-server mysql-server/root_password password raspbian'<br />
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password raspbian'<br />
apt-get install -y debhelper libssl-dev libcurl4-gnutls-dev mysql-server freeradius freeradius-mysql gcc make libnl1 libnl-dev pkg-config iptables</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGoqHvRVX4eQfFTq3eSA87Jx4oILTsKDF3LeixT4-wX06WkWrohrHMdeQ1Qw93Pt5U6vz7Y6E5jx8vX7KDvND9cWTSFa_x9OftNablxGu9qj0_amdP3L5MHxmngc1EzWNdwSAM-ClioRU/s1600/07.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="67" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGoqHvRVX4eQfFTq3eSA87Jx4oILTsKDF3LeixT4-wX06WkWrohrHMdeQ1Qw93Pt5U6vz7Y6E5jx8vX7KDvND9cWTSFa_x9OftNablxGu9qj0_amdP3L5MHxmngc1EzWNdwSAM-ClioRU/s400/07.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGYaewmWsyzwplw-21b9aHJudnXm4OB4CukURu6WccOQmxDWz6DSv7mUF5mehAVPIkuAzEureenLBlKpvqb7xZp9CSIj8BOITo0rbO-oiaORIvjSiNhrGA8cutEwYlEzT-amMLL3Edpm4/s1600/08.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="22" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGYaewmWsyzwplw-21b9aHJudnXm4OB4CukURu6WccOQmxDWz6DSv7mUF5mehAVPIkuAzEureenLBlKpvqb7xZp9CSIj8BOITo0rbO-oiaORIvjSiNhrGA8cutEwYlEzT-amMLL3Edpm4/s400/08.JPG" width="400" /></a></div>
<br />
สร้าง database ใน MySQL ไปยัง FreeRadius<br />
<blockquote class="tr_bq">
echo "create database radius;" | mysql -u root -praspbian</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPbFFmOUe03snLptz7m8mB6aWNBNVv9BdmDS1fzTHx8JLfzeObK_YquA-ig7mmY9XDFwxEN7sM9yRSai3Y3NMa1YoXrbfg70C4Lwm8ot-0qp_PH87GkMPIoAGesMQLUk6tXnEXPYxbXhI/s1600/09.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="13" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPbFFmOUe03snLptz7m8mB6aWNBNVv9BdmDS1fzTHx8JLfzeObK_YquA-ig7mmY9XDFwxEN7sM9yRSai3Y3NMa1YoXrbfg70C4Lwm8ot-0qp_PH87GkMPIoAGesMQLUk6tXnEXPYxbXhI/s400/09.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both;">
ติดตั้ง database schema radius และ directors และติดตั้ง tables สำหรับ NAS</div>
<blockquote class="tr_bq" style="clear: both;">
mysql -u root -praspbian radius < /etc/freeradius/sql/mysql/schema.sql<br />
mysql -u root -praspbian radius < /etc/freeradius/sql/mysql/admin.sql<br />
mysql -u root -praspbian radius < /etc/freeradius/sql/mysql/nas.sql</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjpgWbiQwtSs3BTi3SOpAhPaDRradZzqHXsLyDpqVFVHa8bYuoNTtUHJbLxU49UxBXMKlARwDg99vCGl41pvtVwG_xWry0pCzdYsXPGeeiEzwwGvxjJ3ceUml9KlJwuxl4gQ87CmisGwg/s1600/10.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="85" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjpgWbiQwtSs3BTi3SOpAhPaDRradZzqHXsLyDpqVFVHa8bYuoNTtUHJbLxU49UxBXMKlARwDg99vCGl41pvtVwG_xWry0pCzdYsXPGeeiEzwwGvxjJ3ceUml9KlJwuxl4gQ87CmisGwg/s400/10.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
แก้ไขไฟล์ /etc/freeradius/radiusd.conf โดยลบ # ออกในบรรทัดที่ 700 </div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
sudo nano /etc/freeradius/radiusd.conf</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAkig6xCwOO6QKypNgSm55cfKsKTOhJCl39mU4SACwNctosKILhgN4gHluaXzgcC4DVXAdDrETlmKc9Y8sJelh2PmcDqBOQLofaHGuQdi7SK52t0x3MsLS4MSNu9SwT3m_39hGe21f24g/s1600/11.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="12" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAkig6xCwOO6QKypNgSm55cfKsKTOhJCl39mU4SACwNctosKILhgN4gHluaXzgcC4DVXAdDrETlmKc9Y8sJelh2PmcDqBOQLofaHGuQdi7SK52t0x3MsLS4MSNu9SwT3m_39hGe21f24g/s400/11.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidJkPkPVA8YN9deYZs5f-nk1Wsq6fmBua4hc0dksXRFhvVV2JEqYXPJbexDgQC5YTJUhP-UAX-8ItvQjMcA7mDwUEUwiA_Vsttnkb4nRPulAxC5U1pNtfZ4YeIyl1s8m-SqhravOLyV8E/s1600/12.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="258" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidJkPkPVA8YN9deYZs5f-nk1Wsq6fmBua4hc0dksXRFhvVV2JEqYXPJbexDgQC5YTJUhP-UAX-8ItvQjMcA7mDwUEUwiA_Vsttnkb4nRPulAxC5U1pNtfZ4YeIyl1s8m-SqhravOLyV8E/s400/12.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both;">
เปิด authentication MySQL Database ในไฟล์ /etc/freeradius/sites-enabled/default โดยการลบ # ออกในบรรทัดเหล่านี้ 177, 406, 454 </div>
<blockquote class="tr_bq" style="clear: both;">
sudo nano /etc/freeradius/sites-enabled/default</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2J4mWXKLeSBmYCRGENjP1GfXG6YZhDVqzsb30LIBwed3D-2RIfRA5M2KCdh3O1veFgjdTS3F10cP9zNfCsIn44OabjaIZF-2niaT2v3psvawcSzm3kW7tYMissq36nNbidldIJA_EKJY/s1600/13.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="17" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2J4mWXKLeSBmYCRGENjP1GfXG6YZhDVqzsb30LIBwed3D-2RIfRA5M2KCdh3O1veFgjdTS3F10cP9zNfCsIn44OabjaIZF-2niaT2v3psvawcSzm3kW7tYMissq36nNbidldIJA_EKJY/s400/13.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia_P-op4SkfCEIuav4ELHy8C9vG6ANrqYec6DlelbZJa2bqSvrNi7n95vDiewAPdE6zmJy1o0qXG49kc1SpGkSfYaWMA8nURcwvVmI9PBa4Z6hD1a1S4ghndDtseE4r52CkA-aFxnoEj4/s1600/14.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="122" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia_P-op4SkfCEIuav4ELHy8C9vG6ANrqYec6DlelbZJa2bqSvrNi7n95vDiewAPdE6zmJy1o0qXG49kc1SpGkSfYaWMA8nURcwvVmI9PBa4Z6hD1a1S4ghndDtseE4r52CkA-aFxnoEj4/s400/14.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihPtHzcLX9qcApZqLeS6ScGE75wlyzBbOkq0RQnObsyhBLUaUQUzMSlryyheLGOrku95blMdW5Qy0hiCzrjZDIT-2-bsUC00KjUVwRlCH3L5EpJ1_Kh_3HrDQm9EzM_Mh6jGpKJG4ylic/s1600/15.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="122" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihPtHzcLX9qcApZqLeS6ScGE75wlyzBbOkq0RQnObsyhBLUaUQUzMSlryyheLGOrku95blMdW5Qy0hiCzrjZDIT-2-bsUC00KjUVwRlCH3L5EpJ1_Kh_3HrDQm9EzM_Mh6jGpKJG4ylic/s400/15.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHo35T0RqRSSiqkTodUcTFF6yOVERoS-sQ9w4CRrx6AkUP2R2_Z7zzzIGpUklFSmx-z_UgpGAemDjnYS18YOKl-lycV73-XyGv_0HCrQ0r1NbhZDBWchDrMwTtQfVSdG7txD_TCjdR4b4/s1600/16.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="106" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHo35T0RqRSSiqkTodUcTFF6yOVERoS-sQ9w4CRrx6AkUP2R2_Z7zzzIGpUklFSmx-z_UgpGAemDjnYS18YOKl-lycV73-XyGv_0HCrQ0r1NbhZDBWchDrMwTtQfVSdG7txD_TCjdR4b4/s400/16.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
หยุด service freeradius และทดสอบ freeradius</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
service freeradius stop<br />
freeradius -X</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6IE7ydlYexhCQ6ggg_KlYETrG47bVJPpxI6RjY1h6MgGE9_rHlYpS4XFw5-ICEQDW9XJRFHGLreJGsGeKrsZ8H6jKtAcXkeQxDLUosNb9U-XioFbTkNlfRQDnjuQOara2aOhaqjT4PBw/s1600/17.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="17" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6IE7ydlYexhCQ6ggg_KlYETrG47bVJPpxI6RjY1h6MgGE9_rHlYpS4XFw5-ICEQDW9XJRFHGLreJGsGeKrsZ8H6jKtAcXkeQxDLUosNb9U-XioFbTkNlfRQDnjuQOara2aOhaqjT4PBw/s400/17.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVzzp3Z8CoSY7jucrkTy3Qq7Q_oBM10tI4t8uFSekdnwYV5p9rwgxl6LHwg_9VllkxygDZqYM9h9mpttPcgpmuapQfiKEQ7haCDOz3DcuhmgxKokV-8rOPMEWrifvlZCNZfcH-nSEqmeY/s1600/18.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="16" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVzzp3Z8CoSY7jucrkTy3Qq7Q_oBM10tI4t8uFSekdnwYV5p9rwgxl6LHwg_9VllkxygDZqYM9h9mpttPcgpmuapQfiKEQ7haCDOz3DcuhmgxKokV-8rOPMEWrifvlZCNZfcH-nSEqmeY/s400/18.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both;">
ทดสอบสร้าง ชื่อผู้ใช้งาน usertest และรหัส passwd เพื่อใช้ในการทดสอบการเชื่อมต่อ</div>
<blockquote class="tr_bq" style="clear: both;">
echo "insert into radcheck (username, attribute, op, value) values ('usertest', 'Cleartext-Password', ':=', 'passwd');" | mysql -u root -praspbian radius</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk_LmrHRSBUcrmMoyWF8XdG1wLg2n4-91udI0OHtUYZuRcjdceb24BZY4qc1S3yqUFz0XjCR7PTpTXOyKCYEiHhft5TppaTU4wo4rLbEmFK2_N4vl7xlamy2v9dmZMNRnUazjngG9kon8/s1600/19.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="67" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk_LmrHRSBUcrmMoyWF8XdG1wLg2n4-91udI0OHtUYZuRcjdceb24BZY4qc1S3yqUFz0XjCR7PTpTXOyKCYEiHhft5TppaTU4wo4rLbEmFK2_N4vl7xlamy2v9dmZMNRnUazjngG9kon8/s400/19.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
ทดสอบค่าที่ได้คอนฟิกไว้ในไฟล์ /etc/freeradius/clients.conf ที่ใช้เชื่อมต่อระหว่า FreeRadiusและ NAS<br />
<blockquote class="tr_bq">
radtest usertest passwd localhost 0 testing123 </blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnvilShuL0YV13J8GHka7y0McBdf5lTyc6dfvCxHJXvw6tpbBWIlB-PPWAthSzqRoIBlwmFj1l4nSQlc8JZsjxQqHBkxFgwb-Qg7AUcqSu_Kh8bqBFj0R0yRPNod_U1reasnRz4DwGz-Q/s1600/20.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="127" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnvilShuL0YV13J8GHka7y0McBdf5lTyc6dfvCxHJXvw6tpbBWIlB-PPWAthSzqRoIBlwmFj1l4nSQlc8JZsjxQqHBkxFgwb-Qg7AUcqSu_Kh8bqBFj0R0yRPNod_U1reasnRz4DwGz-Q/s400/20.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="background-color: white; border: 0px; color: #444444; font-family: Titillium, Arial, sans-serif; font-size: 28px; font-stretch: inherit; font-weight: 400; letter-spacing: -0.5px; line-height: 1.3em; margin: 0px 0px 14px; padding: 0px; text-align: justify; vertical-align: baseline; word-wrap: break-word;">
CoovaChilli</h3>
<div>
<span style="background-color: white; color: #666666; font-family: Titillium, Arial, sans-serif; font-size: 18px; line-height: 28.7999992370605px; text-align: justify;">Compilation and installation of CoovaChilli</span></div>
<br />
ดาวน์โหลดและติดตั้ง CoovaChilli<br />
<blockquote class="tr_bq">
cd /usr/src<br />
wget http://ap.coova.org/chilli/coova-chilli-1.3.0.tar.gz<br />
tar zxvf coova-chilli-1.3.0.tar.gz<br />
cd coova-chilli-1.3.0</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh43CtmoNcMdxFS4XGGKdLW860ep4uLBFTuQCYc8VAUgLvthgcat6Jx78Fj52kNokpHDF3Q6S7Ws4hhQjE1n9-j_QePUPP9ur6pOlH2oXfNILDbXd1FJOLh3aVmaXCiD79zch69_y_jVKY/s1600/21.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="256" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh43CtmoNcMdxFS4XGGKdLW860ep4uLBFTuQCYc8VAUgLvthgcat6Jx78Fj52kNokpHDF3Q6S7Ws4hhQjE1n9-j_QePUPP9ur6pOlH2oXfNILDbXd1FJOLh3aVmaXCiD79zch69_y_jVKY/s400/21.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เริ่มการตั้งค่า CoovaChilli</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
./configure --prefix=/usr --mandir=$${prefix}/share/man \<br />
--infodir = \ $${prefix}/share/info \<br />
--sysconfdir=/etc --localstatedir=/var --enable-largelimits \<br />
--enable-binstatusfile --enable-statusfile --enable-chilliproxy \<br />
--enable-chilliradsec --enable-chilliredir --with-openssl --with-curl \<br />
--with-poll --enable-dhcpopt --enable-sessgarden --enable-dnslog \<br />
--enable-ipwhitelist --enable-redirdnsreq --enable-miniconfig \<br />
--enable-libjson --enable-layer3 --enable-proxyvsa --enable-miniportal \<br />
--enable-chilliscript --enable-eapol --enable-uamdomainfile \<br />
--enable-modules --enable-multiroute</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBnKgbWleDfvY-PuWwph8cN5khLkZur-mgTE94npMNa_-N8eZcS2Rc6qHbOrKtcGLgyERnK2ammJxIs-oGIBlZXVe7EEj4sLaqt0GpxkMxZDXHVsUkghLO_6Eo_mUPKZfPPfU60f7A94c/s1600/22.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="160" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBnKgbWleDfvY-PuWwph8cN5khLkZur-mgTE94npMNa_-N8eZcS2Rc6qHbOrKtcGLgyERnK2ammJxIs-oGIBlZXVe7EEj4sLaqt0GpxkMxZDXHVsUkghLO_6Eo_mUPKZfPPfU60f7A94c/s400/22.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
echo 9 > debian/compat</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOT6_CHGysXXW5p1Un_PKQGO_0m_1qj6w75BSzeBbNU7VIQDlkBN5F1sxPT3iDSUE_odNQqcL9DNpCTjnMbMT4MVuo3vjkmQcWBiMJBHXI_DWN3ulCJIrEszLx3B_W0eLSi_jGXzBMymk/s1600/23.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="23" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOT6_CHGysXXW5p1Un_PKQGO_0m_1qj6w75BSzeBbNU7VIQDlkBN5F1sxPT3iDSUE_odNQqcL9DNpCTjnMbMT4MVuo3vjkmQcWBiMJBHXI_DWN3ulCJIrEszLx3B_W0eLSi_jGXzBMymk/s400/23.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เปลี่ยน directory ในไฟล์ /usr/src/coova-chilli-1.3.0/debian/rules บรรทัดที่ 54 ให้เป็น </div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
sudo nano /usr/src/coova-chilli-1.3.0/debian/rules</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrVOur3ilT1BfbjEEXC12qlqX9RLoKXaK_YivS2PDyixIOyetS_nXgoEuiScuDIZxUPeNqCmHXfoQiDAV2sBorfRTmNZGgVS47WyniCTZPuwA7X2fWkYvurhJYPPd-KUxf-3-KxKnJVYM/s1600/24.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="26" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrVOur3ilT1BfbjEEXC12qlqX9RLoKXaK_YivS2PDyixIOyetS_nXgoEuiScuDIZxUPeNqCmHXfoQiDAV2sBorfRTmNZGgVS47WyniCTZPuwA7X2fWkYvurhJYPPd-KUxf-3-KxKnJVYM/s400/24.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
$(MAKE) DESTDIR=/ install</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_fu2T9K-LEnqg-UUqe5VG9ozoLAN3L7yEkSbjERllETsFuiwDPDBklVIuYn9-XQ2sGy2JRfSKwvVhH2RJzu-oDCrmjo9pdV6xR1MC-j_y3WYhZ03tIE4JRdFI6R8vxiAp0WEoVF8sK10/s1600/25.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="125" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_fu2T9K-LEnqg-UUqe5VG9ozoLAN3L7yEkSbjERllETsFuiwDPDBklVIuYn9-XQ2sGy2JRfSKwvVhH2RJzu-oDCrmjo9pdV6xR1MC-j_y3WYhZ03tIE4JRdFI6R8vxiAp0WEoVF8sK10/s400/25.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เริ่มการ compilation ใช้เวลาประมาณ 20 นาที </div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
dpkg-buildpackage -us -uc</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlVoYNdkWDF34ht-NRJKZUMiVx0AjKDkVqdOvgsVEvxnWQhNb8PQsw6Z_4dL_wMg2HOERvSTXnviPFVjzG891OODdGZu15NvJGzAkdDUHLuFrfzEVcMsHAbWmSCrfLwGKuUr10W0bGxrc/s1600/26.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="20" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlVoYNdkWDF34ht-NRJKZUMiVx0AjKDkVqdOvgsVEvxnWQhNb8PQsw6Z_4dL_wMg2HOERvSTXnviPFVjzG891OODdGZu15NvJGzAkdDUHLuFrfzEVcMsHAbWmSCrfLwGKuUr10W0bGxrc/s400/26.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ติดตั้ง package และเลือก N </div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
cd ..<br />
dpkg -i coova-chilli_1.3.0_armhf.deb</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAMCK8kPGIbWnjLxkxCxGytTmeqTUcEJ5iaIb4TMI6Ybc8LW7uJ732aXdkt1TCcGPpIv_zVguNjoBqkFs1WwQoSBaxaj_Ol-D4VWuCu68iJjm01bXGRcJqSpexagz_C-rwc_Q2DfQiteM/s1600/27.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAMCK8kPGIbWnjLxkxCxGytTmeqTUcEJ5iaIb4TMI6Ybc8LW7uJ732aXdkt1TCcGPpIv_zVguNjoBqkFs1WwQoSBaxaj_Ol-D4VWuCu68iJjm01bXGRcJqSpexagz_C-rwc_Q2DfQiteM/s400/27.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #666666; font-family: Titillium, Arial, sans-serif; font-size: 18px; line-height: 28.7999992370605px; text-align: justify;">Compilation and installation of Haserl</span></div>
<br />
<br />
ดาวน์โหลด คอมไฟลและติดตั้ง Haserl สำหรับ UNIX scripts หรือ LUA scripts และ จะ generate CGI<br />
<blockquote class="tr_bq">
cd /usr/src<br />
wget http://downloads.sourceforge.net/project/haserl/haserl-devel/haserl-0.9.35.tar.gz<br />
tar zxvf haserl-0.9.35.tar.gz<br />
cd haserl-0.9.35<br />
./configure && make && make install</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxnb00jkWXl-uSQuIuFLAzJOMRp9FUvGR_cei4Hsuc91BKGaJE1kBl-AG5_VEFoZ6JmCb2Sodx2OkYHc46tjvO2H9PA1f_nNQOlcJbDN9NqzhxMuT_QAiFj5-mi6bAB0qpbRizOE4j664/s1600/28.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="246" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxnb00jkWXl-uSQuIuFLAzJOMRp9FUvGR_cei4Hsuc91BKGaJE1kBl-AG5_VEFoZ6JmCb2Sodx2OkYHc46tjvO2H9PA1f_nNQOlcJbDN9NqzhxMuT_QAiFj5-mi6bAB0qpbRizOE4j664/s400/28.JPG" width="400" /></a></div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
./configure && make && make install</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcKaTnSOQr1fSKSAeuctLoqh3hacN6Vu3eBfvNlpiVl4aIziuIa8FA4D9IJu2VBUOcVNcaPmGlvJw-37sieKDwPDR5BWVixq5RJZ4wnUEdMs8un2KbC64n7BTmPC6t4BP-stKDoU_j00g/s1600/29.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="85" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcKaTnSOQr1fSKSAeuctLoqh3hacN6Vu3eBfvNlpiVl4aIziuIa8FA4D9IJu2VBUOcVNcaPmGlvJw-37sieKDwPDR5BWVixq5RJZ4wnUEdMs8un2KbC64n7BTmPC6t4BP-stKDoU_j00g/s400/29.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ตั้งค่า CoovaChilli ในไฟล์ /etc/chilli/up.sh</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
sudo nano /etc/chilli/up.sh </blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio8h4UmeHzPj7xvAikz5bKkulyKBxHMwyM00c36qenaa5KbQ-hP2wxBddQnTxAUfwu6ZB2KhUo84m04rABgpuH-fDp4PEzlLmfQVGEOLjkEQinIrhvGWk4H33DkIn89DjEThd6gk50K9c/s1600/30.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="12" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio8h4UmeHzPj7xvAikz5bKkulyKBxHMwyM00c36qenaa5KbQ-hP2wxBddQnTxAUfwu6ZB2KhUo84m04rABgpuH-fDp4PEzlLmfQVGEOLjkEQinIrhvGWk4H33DkIn89DjEThd6gk50K9c/s400/30.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #666666; font-family: Titillium, Arial, sans-serif; font-size: 18px; line-height: 28.7999992370605px; text-align: justify;">Configure CoovaChilli</span></div>
<br />
เพิ่มข้อความด้านล่างไว้ล่างสุด<br />
<blockquote class="tr_bq">
iptables -I POSTROUTING -t nat -o $HS_WANIF -j MASQUERADE</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2RW7raEQvCljgCUqlzQZCcbIe4GDhvmNUMWorlhURVgfu4sHnKqyCIE03pcsIYNkpMMhmKL2imhRrq7p2JIU5FDwHxoVclrOpwVoE2z027K3N7Bf1ncuC3Q0Jl7WSJCWcXIAMYeKiRx0/s1600/31.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="183" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2RW7raEQvCljgCUqlzQZCcbIe4GDhvmNUMWorlhURVgfu4sHnKqyCIE03pcsIYNkpMMhmKL2imhRrq7p2JIU5FDwHxoVclrOpwVoE2z027K3N7Bf1ncuC3Q0Jl7WSJCWcXIAMYeKiRx0/s400/31.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
แก้ไขไฟล์ /etc/default/chilli โดยเปลียนค่าจาก 0 เป็น 1 แทน</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
sudo nano /etc/default/chilli</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5FF4m4Su4aTcek_lNtEckm_NjkhEd2P-ns8zFd59RYpu7odP2PuMOpMJQIpQR0hl3236eHWUeXrzgglhfrPp-qaX7SCQDRnIAY_traNld3WbmopMm2p3MKcAOfkr_A7SwihH9QeYGYrM/s1600/32.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="15" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5FF4m4Su4aTcek_lNtEckm_NjkhEd2P-ns8zFd59RYpu7odP2PuMOpMJQIpQR0hl3236eHWUeXrzgglhfrPp-qaX7SCQDRnIAY_traNld3WbmopMm2p3MKcAOfkr_A7SwihH9QeYGYrM/s400/32.JPG" width="400" /></a></div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
START_CHILLI=0 แก้เป็น START_CHILLI=1</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNOilkkSxfeAF8sPtEhFf5ZmvUyHyyThCXRvYS0wGcLuAF5esv8-8z3p90mVGrkZyY5lWM_I5nLD8LEQwfdb3Dd7l4M8O2xwScl_-EWSUQrk0yAMKlttZCMMmQnVudHgXmnnNaQlA1aoA/s1600/33.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="61" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNOilkkSxfeAF8sPtEhFf5ZmvUyHyyThCXRvYS0wGcLuAF5esv8-8z3p90mVGrkZyY5lWM_I5nLD8LEQwfdb3Dd7l4M8O2xwScl_-EWSUQrk0yAMKlttZCMMmQnVudHgXmnnNaQlA1aoA/s400/33.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
แก้ไขข้อมูลไฟล์ /etc/chilli/wwwsh ของบรรทัดที่ 9 เป็น haserl=/usr/local/bin/haserl</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
sudo nano /etc/chilli/wwwsh</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi3i5mq77bBQkudN1uldKPRw__xl2FNq3fBLdKGO0Cm4B_I99pycmK_pwyfKwYNXhIIcklhrimv8W1FT9UPSv7pL2YvPea1b9WaDZIq-WHEm9vvWImfjItgr930RtlBB_Vs5q0tnjJFO0/s1600/34.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="12" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi3i5mq77bBQkudN1uldKPRw__xl2FNq3fBLdKGO0Cm4B_I99pycmK_pwyfKwYNXhIIcklhrimv8W1FT9UPSv7pL2YvPea1b9WaDZIq-WHEm9vvWImfjItgr930RtlBB_Vs5q0tnjJFO0/s400/34.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
แก้เป็น haserl=/usr/local/bin/haserl</blockquote>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWnIIHFWPVZ_6Rs9ch3bLxSzpn3pmD3rMe1mRAs6R1oxu-hXVEzPVMHWNFlXBhgjYw7RWpaGgYfQM40h3QYpg2jeZY-WOUDU0NA79jbMXfdkN4QZGWFQQeYONM8ZOpnnhbI7e3qjZOqhY/s1600/35.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="130" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWnIIHFWPVZ_6Rs9ch3bLxSzpn3pmD3rMe1mRAs6R1oxu-hXVEzPVMHWNFlXBhgjYw7RWpaGgYfQM40h3QYpg2jeZY-WOUDU0NA79jbMXfdkN4QZGWFQQeYONM8ZOpnnhbI7e3qjZOqhY/s400/35.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
แก้ไขไฟล์ sudo nano /etc/chilli/defaults โดยการกำหนดค่า interfaces used passwd network, etc. ดังค่าต่อไปนี้ โดยลบ # ออกด้วยหลังแก้ไขบบรทันนั้นแล้ว</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
sudo nano /etc/chilli/defaults</blockquote>
แก้ไขให้เป็นดังนี้<br />
<blockquote class="tr_bq">
HS_WANIF=eth0<br />
HS_LANIF=wlan0<br />
HS_NETWORK=192.168.10.0<br />
HS_UAMLISTEN=192.168.10.1<br />
HS_UAMALLOW=192.168.10.0/24<br />
HS_SSID=PiHomeServerAP</blockquote>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3yQH5qK8zz4mhgiPXmu3uRspqHyKLUNqzUdnRy4uVQMRsRqGdh67FnJqhwY2aRiR_fqvbANA_htP0UAP7sll9CGl60-2-tWfAKLY0y_xIIATCLJpOConSPV_lbsIqnoDarplj7SGfY-I/s1600/36.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="132" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3yQH5qK8zz4mhgiPXmu3uRspqHyKLUNqzUdnRy4uVQMRsRqGdh67FnJqhwY2aRiR_fqvbANA_htP0UAP7sll9CGl60-2-tWfAKLY0y_xIIATCLJpOConSPV_lbsIqnoDarplj7SGfY-I/s400/36.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
อัพเดทค่า chilli และ เริ่มเปิดการใช้งาน chilli</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
update-rc.d chilli start 99 2 3 4 5 . stop 20 0 1 6 .<br />
service chilli start</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsmONoeoE98qQiHCww1iwG_5SQ9kZJdLcveDQ91wn6egc_usvfInlU320Oxr8shsOrBhi6zHZSPRX-3VKAJuGer15noovq6B-Qq70qHNcAEdbPet0x-O0dSeAmZZlfmDnQ_sJjN7WeHI4/s1600/37.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="115" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsmONoeoE98qQiHCww1iwG_5SQ9kZJdLcveDQ91wn6egc_usvfInlU320Oxr8shsOrBhi6zHZSPRX-3VKAJuGer15noovq6B-Qq70qHNcAEdbPet0x-O0dSeAmZZlfmDnQ_sJjN7WeHI4/s400/37.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ตรวจสอบ interface tun0 ที่ใช้สำหรับ chilli ด้วยคำสั่ง</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
ifconfig </blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYZNUA6VbnuG9UcvKDNuMSSe27pRVqpsLD1oxKpI-qBzleIaxQa-pBnYqZLZvIaLnlhijqguBkBnPO_0ZeddT-8teRJMiTgO2lvLrXL-rWlLKdXYNfLtdqmpzcFbdfl_d8w0uoSIhQXZs/s1600/38.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="310" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYZNUA6VbnuG9UcvKDNuMSSe27pRVqpsLD1oxKpI-qBzleIaxQa-pBnYqZLZvIaLnlhijqguBkBnPO_0ZeddT-8teRJMiTgO2lvLrXL-rWlLKdXYNfLtdqmpzcFbdfl_d8w0uoSIhQXZs/s400/38.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="background-color: white; border: 0px; color: #444444; font-family: Titillium, Arial, sans-serif; font-size: 28px; font-stretch: inherit; font-weight: 400; letter-spacing: -0.5px; line-height: 1.3em; margin: 0px 0px 14px; padding: 0px; text-align: justify; vertical-align: baseline; word-wrap: break-word;">
Hostapd</h3>
ติดตั้ง hostapd เพื่อให้มองเห็นสัญญาณ WIFI<br />
<blockquote class="tr_bq">
sudo apt-get install -y hostapd</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbQPvH08KJgY9br05K7G0SHmkeH5GM_oE0OoNkZ_RqH6haNiJA0Gxm1p0i9gpN5f76uY1FsSQAKCLAyWcnCiXEjeCsfSrKbjFvQKCSbnuBJJDuXRRycUOxB75j28QiPv7LjN4RpomWkT8/s1600/39.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="97" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbQPvH08KJgY9br05K7G0SHmkeH5GM_oE0OoNkZ_RqH6haNiJA0Gxm1p0i9gpN5f76uY1FsSQAKCLAyWcnCiXEjeCsfSrKbjFvQKCSbnuBJJDuXRRycUOxB75j28QiPv7LjN4RpomWkT8/s400/39.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
แก้ไขไฟล์ /etc/default/hostapd โดยเพิ่มไปยังท้ายบรรทัด </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixGM4QhcLFNKY0MEFZC9F6uBzeq6pR5uGMJsTub4ZT1YzSHC1_8ox0Ba2VjRRgD98kDv8wYwUpdyuywGykjwD7m6BeAP-1WZiUGRYGF7sJnH89NAXoweB8MXpSSr3CRG8-5Os_C27BWcU/s1600/40.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="15" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixGM4QhcLFNKY0MEFZC9F6uBzeq6pR5uGMJsTub4ZT1YzSHC1_8ox0Ba2VjRRgD98kDv8wYwUpdyuywGykjwD7m6BeAP-1WZiUGRYGF7sJnH89NAXoweB8MXpSSr3CRG8-5Os_C27BWcU/s400/40.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
DAEMON_CONF="/etc/hostapd/hostapd.conf"</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcuzRuNB3aP207ixNS59_unFYPSQOOQB0UXTiF5r3eEQNaRg_RPgOyqZHpsk_rGGNra66amFYxzCRXl3xfUFtfz-oeK5rSyuASyTVfzd_nzxjH_8bukg7va2SUCTfoFVSBErnNGFWDBgc/s1600/41.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="227" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcuzRuNB3aP207ixNS59_unFYPSQOOQB0UXTiF5r3eEQNaRg_RPgOyqZHpsk_rGGNra66amFYxzCRXl3xfUFtfz-oeK5rSyuASyTVfzd_nzxjH_8bukg7va2SUCTfoFVSBErnNGFWDBgc/s400/41.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
สร้างไฟล์ /etc/hostapd/hostapd.conf </div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
sudo nano /etc/hostapd/hostapd.conf</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-30_XfKLZA84tQKBl0K-9OxwjTH7GkycGlPthVHMTYGptIZOvOqESDumymOcgoGEQekAmZ2H-pFBu_Z4yUpa_q3r1g05Orf4ajX8X1LbRMKmUYuZvdvRnfE69lWp-_Us7AmaCKX4d6Pk/s1600/42.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="15" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-30_XfKLZA84tQKBl0K-9OxwjTH7GkycGlPthVHMTYGptIZOvOqESDumymOcgoGEQekAmZ2H-pFBu_Z4yUpa_q3r1g05Orf4ajX8X1LbRMKmUYuZvdvRnfE69lWp-_Us7AmaCKX4d6Pk/s400/42.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
และเพิ่มไปยังไฟล์ดังนี้</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
# interface wlan Wi-Fi<br />
interface=wlan0<br />
# nl80211 avec tous les drivers Linux mac80211<br />
driver=nl80211<br />
# Nom du spot Wi-Fi<br />
ssid=PiHomeServerAP<br />
# mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.1g)<br />
hw_mode=g<br />
# canal de fréquence Wi-Fi (1-14)<br />
channel=6<br />
# Wi-Fi ouvert, pas d'authentification !<br />
auth_algs=1<br />
# Beacon interval in kus (1.024 ms)<br />
beacon_int=100<br />
# DTIM (delivery traffic information message)<br />
dtim_period=2<br />
# Maximum number of stations allowed in station table max_num_sta=255<br />
# RTS/CTS threshold; 2347 = disabled (default)<br />
rts_threshold=2347<br />
# Fragmentation threshold; 2346 = disabled (default)<br />
fragm_threshold=2346</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyTiEMzxegxFiKM2D2vrkuqL_LrfCoZjCH4O57UG0Pk_8yH1LNZjc3CTXDNn8qXdmZT7dKPHDgP5mXtZQ0DMz3bbXqSBT-kq4YFl1uuCAEpSL5hJXj5vPovVTJeS-gVEcjlOK_LWLsqRY/s1600/43.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="221" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyTiEMzxegxFiKM2D2vrkuqL_LrfCoZjCH4O57UG0Pk_8yH1LNZjc3CTXDNn8qXdmZT7dKPHDgP5mXtZQ0DMz3bbXqSBT-kq4YFl1uuCAEpSL5hJXj5vPovVTJeS-gVEcjlOK_LWLsqRY/s400/43.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เริ่มการใช้งาน service</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
service hostapd start</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9AuZdEIrySjolZVaRy7A9XsHRzQHe1IcST8SuBs-9vfcl38uHipjgIqf6-Q3Ndbp1LzyE-3c5SngQc2cz7BvW5lZ_WfdQOXeEKJFpbqFqKfiEyFm2WkZ9_THCb1zLK80wrqQnEX_0zjs/s1600/44.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9AuZdEIrySjolZVaRy7A9XsHRzQHe1IcST8SuBs-9vfcl38uHipjgIqf6-Q3Ndbp1LzyE-3c5SngQc2cz7BvW5lZ_WfdQOXeEKJFpbqFqKfiEyFm2WkZ9_THCb1zLK80wrqQnEX_0zjs/s400/44.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="background-color: white; border: 0px; color: #444444; font-family: Titillium, Arial, sans-serif; font-size: 28px; font-stretch: inherit; font-weight: 400; letter-spacing: -0.5px; line-height: 1.3em; margin: 0px 0px 14px; padding: 0px; text-align: justify; vertical-align: baseline; word-wrap: break-word;">
Test Connection WiFi</h3>
ทดสอบการเชื่อมต่อ wifi จาก raspberry pi โดยใช้คอมพิวเตอร์ 9ล9 เมื่อเปิด web browser ระบบจะวิ่งไปหน้า Login<br />
ให้ login ด้วย<br />
<blockquote class="tr_bq">
user = usertest <br />
password = passwd</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRqFpgCPUT9qqqzopaKUN-SplefMtGl9xIT5B_J9xiBcBXfAWyMUCAP88heJa8b1wDbANC1rXCVA2Ejpu099IU3vL0gInmHzBeHq9A2JcGDGEGXImjTI4D3sV8TFGb6unnQCVP8S5hCmI/s1600/45.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRqFpgCPUT9qqqzopaKUN-SplefMtGl9xIT5B_J9xiBcBXfAWyMUCAP88heJa8b1wDbANC1rXCVA2Ejpu099IU3vL0gInmHzBeHq9A2JcGDGEGXImjTI4D3sV8TFGb6unnQCVP8S5hCmI/s400/45.jpg" width="278" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTiC1VvUZMDsasWLZpqFPMezS8_Gk93EFaC9lBx7mUQgzEle5UA1ESz8fpsMsCpWhlrwS9HRSkhgv6I5rcAqAKjVz4IlTEPjX5tr_vyDKw5isBN-D_7qiQsSwLO91Ev96KucVReSknS_k/s1600/46.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="348" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTiC1VvUZMDsasWLZpqFPMezS8_Gk93EFaC9lBx7mUQgzEle5UA1ESz8fpsMsCpWhlrwS9HRSkhgv6I5rcAqAKjVz4IlTEPjX5tr_vyDKw5isBN-D_7qiQsSwLO91Ev96KucVReSknS_k/s400/46.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4kJ77rF1kuIFbpgPWo7XbCpNMa8rzZ2gSZYXwLCL9OtGwKZ9yTjrZqNWppxndx9Q5-uYcpmlrcFqzD3owKh4R1k2go86hysmZc21C_sMzBmC0Oew8QcnJiJbcT_rFMEYAGR-j2mJhbmU/s1600/47.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4kJ77rF1kuIFbpgPWo7XbCpNMa8rzZ2gSZYXwLCL9OtGwKZ9yTjrZqNWppxndx9Q5-uYcpmlrcFqzD3owKh4R1k2go86hysmZc21C_sMzBmC0Oew8QcnJiJbcT_rFMEYAGR-j2mJhbmU/s400/47.JPG" width="333" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
ถ้ารหัสถูกต้องสามารถเชื่อมต่อ internet ได้</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKqe70ntE49VnIOyHK48etvK9_jBAYtd4QZDSME6BY44OEpMz1gLE7L-HVMNRs4GkM75BaYGhQRFachRbl0BZ2BZILP2n-R_0h2ptjYCFPPjEC49VmrmaKZraX6nR8gg9LIVJra1-snwk/s1600/48.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="255" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKqe70ntE49VnIOyHK48etvK9_jBAYtd4QZDSME6BY44OEpMz1gLE7L-HVMNRs4GkM75BaYGhQRFachRbl0BZ2BZILP2n-R_0h2ptjYCFPPjEC49VmrmaKZraX6nR8gg9LIVJra1-snwk/s400/48.JPG" width="400" /></a></div>
<h3 style="background-color: white; border: 0px; color: #444444; font-family: Titillium, Arial, sans-serif; font-size: 28px; font-stretch: inherit; font-weight: 400; letter-spacing: -0.5px; line-height: 1.3em; margin: 0px 0px 14px; padding: 0px; text-align: justify; vertical-align: baseline; word-wrap: break-word;">
daloRADIUS</h3>
ติดตั้ง web server และ Nginx.<br />
<blockquote class="tr_bq">
apt-get install -y php5-mysql php-pear php5-gd php-db php5-fpm libgd2-xpm libpcrecpp0 libxpm4 nginx php5-xcache<br />
apt-get remove -y apache2.2-bin apache2-utils apache2.2-common</blockquote>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgncw6F1smNx0eVrEsX1pv2RFWvIBczn82qZLe7wh6nIr23Q89n5nIHmUrel7jwc2YW1-l6gPlVLKMMG3pUea_Pcbx_o6fJdPUne4FjYjd39of7eQt0T5_o4p0DNzuiMH3-laleStLVGu0/s1600/49.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgncw6F1smNx0eVrEsX1pv2RFWvIBczn82qZLe7wh6nIr23Q89n5nIHmUrel7jwc2YW1-l6gPlVLKMMG3pUea_Pcbx_o6fJdPUne4FjYjd39of7eQt0T5_o4p0DNzuiMH3-laleStLVGu0/s400/49.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ดาวน์โหลด daloRadius</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
cd /usr/src<br />
wget http://downloads.sourceforge.net/project/daloradius/daloradius/daloradius0.9-9/daloradius-0.9-9.tar.gz<br />
tar zxvf daloradius-0.9-9.tar.gz -C /usr/share/nginx/www/</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiEFBHebccdizNkHtYsht1eFDSLo4qJagX9hepiw4B0YZyf8v_5Hmnb-T51dAot4fzKG1asSRn5PCBjsPxQtu42vOAQrJ1dk95u4Fg4vu5MSDxIap5Q_I5i7cSYPkAflQ1rKMQUREqVYY/s1600/50.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="248" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiEFBHebccdizNkHtYsht1eFDSLo4qJagX9hepiw4B0YZyf8v_5Hmnb-T51dAot4fzKG1asSRn5PCBjsPxQtu42vOAQrJ1dk95u4Fg4vu5MSDxIap5Q_I5i7cSYPkAflQ1rKMQUREqVYY/s400/50.JPG" width="400" /></a></div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
<br />
mv /usr/share/nginx/www/daloradius-0.9-9 /usr/share/nginx/www/daloradius<br />
cd /usr/share/nginx/www/daloradius</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimOgTOl_ATopP2SBC9j-qIAQsPy9jXS-EJj0hLlwGunViAb-L6owlA_tnNuqrTIXbu9dAJmFZpRf7fk9ZQKl0UMgTE4R8uQNN14StrUh0X-R8aumLBeSoLp0MejzYQYV_G2sjIGpBAgZI/s1600/51.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="43" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimOgTOl_ATopP2SBC9j-qIAQsPy9jXS-EJj0hLlwGunViAb-L6owlA_tnNuqrTIXbu9dAJmFZpRf7fk9ZQKl0UMgTE4R8uQNN14StrUh0X-R8aumLBeSoLp0MejzYQYV_G2sjIGpBAgZI/s400/51.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เพิ่มข้อมูลที่ใช้ daloRadius ใน FreeRadius database</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
mysql -u root -praspbian radius < /usr/share/nginx/www/daloradius/contrib/db/fr2-mysql-daloradius-and-freeradius.sql<br />
mysql -u root -praspbian<br />
GRANT ALL ON radius.* to 'radius'@'localhost';<br />
GRANT ALL ON radius.* to 'radius'@'127.0.01';<br />
exit;</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-YZyG7RqLOViHgMJis00_4acBoAhP2kqy8OZmUGwUUSRoITLvKCSOey9wMtSBTepIognykHprqJqDCDVy8K8_Zc0TSGUdqL0Db7Sah7ZB9M5Ud-p-6zyIzRYPugxBwDNdprgx6gI4lyQ/s1600/52.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-YZyG7RqLOViHgMJis00_4acBoAhP2kqy8OZmUGwUUSRoITLvKCSOey9wMtSBTepIognykHprqJqDCDVy8K8_Zc0TSGUdqL0Db7Sah7ZB9M5Ud-p-6zyIzRYPugxBwDNdprgx6gI4lyQ/s400/52.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ในไฟล์ /usr/share/nginx/www/daloradius/library/daloradius.conf.php กำหนดค่า database ให้ถูกต้องดังนี้</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
sudo nano /usr/share/nginx/www/daloradius/library/daloradius.conf.php</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy7qV8IrJE0tXmiPfZa6YFf8eBDieCPXib9AYo1Ksy-ytAayeOWuIaIGDDtJOm4MMvg1iOUz1WriNL17oeFZ4TzktDfLeMBG5drGCt6tsvLcDfsxJfQNIxrfwEpI5AKTEjNr0nQ-i_rPk/s1600/53.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="22" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy7qV8IrJE0tXmiPfZa6YFf8eBDieCPXib9AYo1Ksy-ytAayeOWuIaIGDDtJOm4MMvg1iOUz1WriNL17oeFZ4TzktDfLeMBG5drGCt6tsvLcDfsxJfQNIxrfwEpI5AKTEjNr0nQ-i_rPk/s400/53.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
$configValues['CONFIG_DB_USER'] = 'radius';<br />
$configValues['CONFIG_DB_PASS'] = 'radpass';<br />
$configValues['CONFIG_DB_NAME'] = 'radius';</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjSrN40jmqvi31jsECZCJOPd6zkMb2Zim7G_edkAHMiOEO9D6l0V5hmwW_RV8UGN6Hts_Zn6Gv4IOSJufZV8MaZvSOFQDLuvaE_VJEZVYIId5GnaTsUBrY6rDfwHSrx24EOQVlc7sCU1s/s1600/54.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="91" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjSrN40jmqvi31jsECZCJOPd6zkMb2Zim7G_edkAHMiOEO9D6l0V5hmwW_RV8UGN6Hts_Zn6Gv4IOSJufZV8MaZvSOFQDLuvaE_VJEZVYIId5GnaTsUBrY6rDfwHSrx24EOQVlc7sCU1s/s400/54.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
แก้ไขไฟล์ /etc/nginx/sites-enabled/default </div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
sudo nano /etc/nginx/sites-enabled/default </blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPr046e3c7k0A_ew_O_AVbArQOapY5WtAKbF6h2ShGpnDLn5K7wUimD_a75MhL78ML_AFBY-tb1_afLzylKwnDzIvCcjZIwEqPa407TXmSMLJwm0fRUKBLuSK99h5jDaPYymtxV6dEkTU/s1600/55.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="25" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPr046e3c7k0A_ew_O_AVbArQOapY5WtAKbF6h2ShGpnDLn5K7wUimD_a75MhL78ML_AFBY-tb1_afLzylKwnDzIvCcjZIwEqPa407TXmSMLJwm0fRUKBLuSK99h5jDaPYymtxV6dEkTU/s400/55.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เพิ่มคำสั่งข้างล่างไปในไฟล์ตั้งแต่บรรทัดที่ 25</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
index index.php index.html index.htm;</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijtvgfRsb71Yi98OTsmi_BhihQfi1STOR5t3Moh3ncZYAoiFmHddiaCaevPCVrpU2ahgb85ddZJdYWOZt7KGBT5Nw2b4MxZr6iUJp3CvTlv7d3wjz3wCD-eKPpT0OvHS4QfE5PaHDGIww/s1600/56.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="105" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijtvgfRsb71Yi98OTsmi_BhihQfi1STOR5t3Moh3ncZYAoiFmHddiaCaevPCVrpU2ahgb85ddZJdYWOZt7KGBT5Nw2b4MxZr6iUJp3CvTlv7d3wjz3wCD-eKPpT0OvHS4QfE5PaHDGIww/s400/56.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
จากนั้นลบ # ออกจากไฟล์ /etc/nginx/sites-enabled/default </div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
location ~ .php$ {<br />
fastcgi_split_path_info ^(.+\.php)(/.+)$;<br />
fastcgi_pass unix:/var/run/PHP5-fpm.sock;<br />
fastcgi_index index.php;<br />
include fastcgi_params;<br />
}</blockquote>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2RiAkssnsLD4j3HFo4JJtfGCNYEGDN0YRQgxpSDm04-ctAdXRK34EOaPs1wrWUdQ0CmC1ACAmAr9vpWPJQlfdrmKsLthkUqHDe9EPkQOjzsg7Il-b4AETHiuBVEpu-7rThjkDsoFNMdc/s1600/57.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="120" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2RiAkssnsLD4j3HFo4JJtfGCNYEGDN0YRQgxpSDm04-ctAdXRK34EOaPs1wrWUdQ0CmC1ACAmAr9vpWPJQlfdrmKsLthkUqHDe9EPkQOjzsg7Il-b4AETHiuBVEpu-7rThjkDsoFNMdc/s400/57.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
รีสตาร์ service nginx</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
service nginx restart</blockquote>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #666666; font-family: Titillium, Arial, sans-serif; font-size: 18px; line-height: 28.7999992370605px; text-align: justify;">how to create a user</span></div>
ทดสอบเข้าไปหน้าจัดการ daloRADIUS โดยเปิด webbrowser http://<ip de votre raspberry>/daloradius<br />
<br />
Login : administrator / Password : radius<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjbJWS0Heau2D6g3teaPoLhAPIY8CAb51PqtY4yNE90q6nalbTwKigta20BIOFCr_Pp9VCNdiJfKXVDiAkQzo6eotAH9GiE-naLMSnmc7iBN7DMh0gVuFAqvMeN9D63F_jyFIck-SUCzg/s1600/58.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjbJWS0Heau2D6g3teaPoLhAPIY8CAb51PqtY4yNE90q6nalbTwKigta20BIOFCr_Pp9VCNdiJfKXVDiAkQzo6eotAH9GiE-naLMSnmc7iBN7DMh0gVuFAqvMeN9D63F_jyFIck-SUCzg/s400/58.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwTTSxsBJn3aHCOkEexCVCmgHHh5Gyg8YsWZQbSr9Yki-563ofzYvPOc7GbDVWec1T2bqr-TVviloQttGXA2gzT6-9Fm-lpGh4PP5q7pt_H_cp1QmbUgAMaPPgOKNZOT-DIOD1QZxLSj0/s1600/59.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwTTSxsBJn3aHCOkEexCVCmgHHh5Gyg8YsWZQbSr9Yki-563ofzYvPOc7GbDVWec1T2bqr-TVviloQttGXA2gzT6-9Fm-lpGh4PP5q7pt_H_cp1QmbUgAMaPPgOKNZOT-DIOD1QZxLSj0/s400/59.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
สร้าง user ในการใช้งาน </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_odUb3lp3qkR4C7a4SrqPgu2ojZL6_OTVUbjdo7YIYBqKsBDMLioFWvAxWbpErb4vIo5W3wFRD1Bxng-_d3swwb3KlfxuUAlO0m2VZYApp2tcp4BLfI943uKtmxsXwXyYp_3gqRskvfI/s1600/60.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="131" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_odUb3lp3qkR4C7a4SrqPgu2ojZL6_OTVUbjdo7YIYBqKsBDMLioFWvAxWbpErb4vIo5W3wFRD1Bxng-_d3swwb3KlfxuUAlO0m2VZYApp2tcp4BLfI943uKtmxsXwXyYp_3gqRskvfI/s400/60.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
List User </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxjn4yGKdy_fKN1yBl9_EGyCP2QI4rHknmzvstxP0wZNY7hRL-o6oif95aw8OJwJ74nQSCo1-6rkelnq7SroT6dK4i8P7baLzsKEDgrSAhy7WH3eqOaILOsNSmOCzVKjaDtt6JUnBEsF4/s1600/61.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxjn4yGKdy_fKN1yBl9_EGyCP2QI4rHknmzvstxP0wZNY7hRL-o6oif95aw8OJwJ74nQSCo1-6rkelnq7SroT6dK4i8P7baLzsKEDgrSAhy7WH3eqOaILOsNSmOCzVKjaDtt6JUnBEsF4/s400/61.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
user online</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitALJEHO0t3NwFzPDpSEHEAWhCeJ0QgHsj3QAReEfkJzdftNDyj3WB_CW2UlF0xIDTfrSqkxuM6IQslKPiVbEiv0b27-HUROCyWa1XvLFWfHW0oRlBBzsO4yM-0f5VUvQutcdIGqDxYOE/s1600/62.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitALJEHO0t3NwFzPDpSEHEAWhCeJ0QgHsj3QAReEfkJzdftNDyj3WB_CW2UlF0xIDTfrSqkxuM6IQslKPiVbEiv0b27-HUROCyWa1XvLFWfHW0oRlBBzsO4yM-0f5VUvQutcdIGqDxYOE/s400/62.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Status System</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTn1fGeHjCtRXLfepMs_O5qgQ3m-wV9awgvFf8lS157WRvNzWCIUuC1cM6gIJ2GP_f2q_t9Gbj_F3KVMvt9evx_wV_AAcj-n8lB0rKvRO0W7HZyqyNhx1URlHrcWFn_IXjh9AJJvZFWJk/s1600/63.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="198" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTn1fGeHjCtRXLfepMs_O5qgQ3m-wV9awgvFf8lS157WRvNzWCIUuC1cM6gIJ2GP_f2q_t9Gbj_F3KVMvt9evx_wV_AAcj-n8lB0rKvRO0W7HZyqyNhx1URlHrcWFn_IXjh9AJJvZFWJk/s400/63.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
VIDEO</h3>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/qpbUFymw44g/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/qpbUFymw44g?feature=player_embedded" width="320"></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/P9Mmkw8LDQQ/0.jpg" src="https://www.youtube.com/embed/P9Mmkw8LDQQ?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
RF : http://www.pihomeserver.fr/en/2015/08/05/raspberry-pi-coovachilli-et-freeradius-pour-un-hotspot-wifi-avec-portail-captif/</div>
<div class="separator" style="clear: both;">
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a></div>
<div class="separator" style="clear: both;">
<a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a></div>
<div class="separator" style="clear: both;">
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com3tag:blogger.com,1999:blog-3100362182588709453.post-85667836572379178762015-05-30T11:23:00.004+07:002015-05-30T11:23:37.851+07:00Web Control LED with Raspberry Pi<br />
<br />
<br />
<h2 style="text-align: center;">
Web Control LED with Raspberry Pi</h2>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8KxlnA-dDE47oaM53KFkoEvW9bZ0sdJZMUcIZ0BRtOSaHIaUyKQfuZ58E8sr9eofF_P4EZigzyq9WKcLRcJt8Qk1mlsS4kGGdUh_xTTNP1d6jzHVqbmYRv5yfWo935ceiLDxRD9E7lfk/s1600/2015-05-30+10.18.44.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="336" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8KxlnA-dDE47oaM53KFkoEvW9bZ0sdJZMUcIZ0BRtOSaHIaUyKQfuZ58E8sr9eofF_P4EZigzyq9WKcLRcJt8Qk1mlsS4kGGdUh_xTTNP1d6jzHVqbmYRv5yfWo935ceiLDxRD9E7lfk/s400/2015-05-30+10.18.44.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
โปรเจคนี้เป็นการเชื่อมต่อขา GPIO ของ Raspberry pi โดยสามารถเขียนโปรแกรมควบคุมได้ด้วย จำเป็นต้องมี wiringPi library,apache2, php5 ก่อนจากนั้นเขียน Code หน้าเว็บควบคุม LED ด้วยโปรแกรม PHP โดยภายในโค๊ดจะฝั่งคำสั่งของ GPIO เพื่อใช้ในการสั่งเปิดปิด LED </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ที่มา : <a href="http://www.instructables.com/id/Simple-and-intuitive-web-interface-for-your-Raspbe/?ALLSTEPS">http://www.instructables.com/id/Simple-and-intuitive-web-interface-for-your-Raspbe/?ALLSTEPS</a></div>
<br />
<h3>
#Connect GPIO</h3>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7zmYSGyrcyvmuC5d6toSVa27_CDZ_tx5F2hpBPLoJ0fZbbrx2gY1hgp93FwLvGhA9G30vjT6LgWINyD3Sc023Ddq1UefU_U-2CJnwA9Ljo8sBvZqTNYB1XPKRZHCyRymVALSUP3cOGak/s1600/F35L2SNHN82KGOY.MEDIUM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="296" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7zmYSGyrcyvmuC5d6toSVa27_CDZ_tx5F2hpBPLoJ0fZbbrx2gY1hgp93FwLvGhA9G30vjT6LgWINyD3Sc023Ddq1UefU_U-2CJnwA9Ljo8sBvZqTNYB1XPKRZHCyRymVALSUP3cOGak/s400/F35L2SNHN82KGOY.MEDIUM.jpg" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7aswsRUjvjHIbFJktqxdyUvOK53Izua4aatUMyhmzVUulRCxyDF_pdjgbhBUUc0aWIu8MUtTenXp7f5KcVovYnYAHJHidegDURIOWAoivxQNwdnmXF5RXY8Tkv7UhKrn0v5X1mXzNnuM/s1600/raspberry-pi-rev2-gpio-pinout.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="278" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7aswsRUjvjHIbFJktqxdyUvOK53Izua4aatUMyhmzVUulRCxyDF_pdjgbhBUUc0aWIu8MUtTenXp7f5KcVovYnYAHJHidegDURIOWAoivxQNwdnmXF5RXY8Tkv7UhKrn0v5X1mXzNnuM/s400/raspberry-pi-rev2-gpio-pinout.jpg" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoZJBfJv8rauizq52oDe4m_3NdKlzDOlxbpwHESqPRu_MF0ndeoMGtgu55MF3OYetS6s5famydkS5YINPNzT8SmtQMnj6L0oD22qQeOmYeZTRZWEt1rEUku8o4UC8WWb3OXvYalN62kzo/s1600/2015-05-30+10.13.10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoZJBfJv8rauizq52oDe4m_3NdKlzDOlxbpwHESqPRu_MF0ndeoMGtgu55MF3OYetS6s5famydkS5YINPNzT8SmtQMnj6L0oD22qQeOmYeZTRZWEt1rEUku8o4UC8WWb3OXvYalN62kzo/s400/2015-05-30+10.13.10.jpg" width="400" /></a></div>
<br />
<br />
<h3>
#Install Wiring Pi library</h3>
sudo apt-get install git-core<br />
sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo git clone git://git.drogon.net/wiringPi<br />
cd wiringPi<br />
sudo ./build<br />
<br />
ทดสอบ wiringPi<br />
<br />
sudo nano led.sh<br />
คัลลอกไฟล์ข้างล่างไปใส่แล้วเซฟ<br />
<br />
<blockquote class="tr_bq">
<blockquote class="tr_bq">
#!/bin/bash</blockquote>
<blockquote class="tr_bq">
<br /></blockquote>
<blockquote class="tr_bq">
#set mode to output</blockquote>
<blockquote class="tr_bq">
for i in 0 1 2 3 4 5 6 7;</blockquote>
<blockquote class="tr_bq">
do gpio mode $i out;</blockquote>
<blockquote class="tr_bq">
done;</blockquote>
<blockquote class="tr_bq">
<br /></blockquote>
<blockquote class="tr_bq">
#turn on LEDs 0 to 7</blockquote>
<blockquote class="tr_bq">
for i in 0 1 2 3 4 5 6 7;</blockquote>
<blockquote class="tr_bq">
do gpio write $i 1;</blockquote>
<blockquote class="tr_bq">
done;</blockquote>
<blockquote class="tr_bq">
<br /></blockquote>
<blockquote class="tr_bq">
#wait 2 seconds</blockquote>
<blockquote class="tr_bq">
sleep 2;</blockquote>
<blockquote class="tr_bq">
<br /></blockquote>
<blockquote class="tr_bq">
#turn LEDs off</blockquote>
<blockquote class="tr_bq">
for i in 0 1 2 3 4 5 6 7;</blockquote>
<blockquote class="tr_bq">
do gpio write $i 0;</blockquote>
<blockquote class="tr_bq">
done;</blockquote>
</blockquote>
ทดสอบไฟล์ led.sh ด้วยคำสั่ง<br />
<br />
sudo chmod 777 led.sh<br />
./led.sh<br />
<br />
ไฟ led จะติดทุกดวงประมาณ 2 วิ แล้วดับ<br />
<br />
<h3>
#Install Apache2+PHP5</h3>
sudo apt-get update<br />
sudo apt-get install apache2 php5 libapache2-mod-php5<br />
cd /var/www/<br />
sudo rm index.html<br />
sudo chown -R pi /var/www<br />
sudo chown -R www-data /var/www<br />
sudo chmod 777 /var/www/<br />
<br />
อันนี้ให้ดาวโหลดไฟล์ตัวอย่างจากเว็บไปลอง<br />
Download <a href="http://www.instructables.com/files/orig/FZA/XXFV/HXLMF54M/FZAXXFVHXLMF54M.zip">http://www.instructables.com/files/orig/FZA/XXFV/HXLMF54M/FZAXXFVHXLMF54M.zip</a><br />
แตก zip ไฟล์แล้วคัลลอกไฟล์ทั้งหมดในโฟล์เดอร์ web ไว้ใน /var/www/<br />
<br />
<h3>
#Testing</h3>
<div>
เปิด web browser จากอุปกรณ์ใดก็ได้ที่ต่ออยู่ในวง network เดียวกันหลักการทำงานตานนี้ครับ</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg40CGEeb2Q6jNAW4z4IO_yBxigCKTlA1aaEQo4hc7KXP2MUdI_33hHzjzvDj_SSmRR2udYtC8hUocETvepEvvKwTkViX1DLAsQARoRBztnGufyEr2tUVQG5BMEWFGIuMvoDNlHdL_q_mg/s1600/F4RSXOFHNE3ULKW.LARGE.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="328" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg40CGEeb2Q6jNAW4z4IO_yBxigCKTlA1aaEQo4hc7KXP2MUdI_33hHzjzvDj_SSmRR2udYtC8hUocETvepEvvKwTkViX1DLAsQARoRBztnGufyEr2tUVQG5BMEWFGIuMvoDNlHdL_q_mg/s400/F4RSXOFHNE3ULKW.LARGE.jpg" width="400" /></a></div>
<div>
<br /></div>
<div>
พิมพ์ เช่น http://192.168.1.136/index.php</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDsfn_LEysx7prGUGn18U3BPdmLLqQYvdYsdkG7l8Jr3mz2be5_ojdRNbpuOTAWNgxxNb6jo1ixrMvYVa-LCoCoY4UDcx2mT77YPgRzKnUZ9MRzFt7AndEnUiIhL8HAt4WFRFW9Zdkzlw/s1600/Screenshot_2015-05-30-10-23-31.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDsfn_LEysx7prGUGn18U3BPdmLLqQYvdYsdkG7l8Jr3mz2be5_ojdRNbpuOTAWNgxxNb6jo1ixrMvYVa-LCoCoY4UDcx2mT77YPgRzKnUZ9MRzFt7AndEnUiIhL8HAt4WFRFW9Zdkzlw/s400/Screenshot_2015-05-30-10-23-31.jpg" width="225" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-CpfTGH-oFIWfE9xHs37MNtGOc6pC6Ebuod3fRThyphenhyphenFXdqdMHMLECuMgVqkWeJyrrINn1Fqy68WyAho7gGgjJOGNCqy1yYAyZ2WG9zbbV881KEG3dZEckjebDAtQ9VvI_LerA2ROkDhaM/s1600/Capture.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-CpfTGH-oFIWfE9xHs37MNtGOc6pC6Ebuod3fRThyphenhyphenFXdqdMHMLECuMgVqkWeJyrrINn1Fqy68WyAho7gGgjJOGNCqy1yYAyZ2WG9zbbV881KEG3dZEckjebDAtQ9VvI_LerA2ROkDhaM/s400/Capture.JPG" width="400" /></a></div>
<br />
<br />
ทดลองกดปุ่มเพื่อเปิดปิด LED ได้<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0gDhtvkiAnpDIaex9TS4k8oJEG6MvoavoqG_xMQ_O_vWa4qqrvTUPp-uxr7TyYZijCU4Mz0otm-7qKnYktoSYPFMWQbcpYt_wN1q-YcpwNspGAWS-f5eHsYIJIlsyyswiRtG64na9c84/s1600/Screenshot_2015-05-30-10-23-43.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0gDhtvkiAnpDIaex9TS4k8oJEG6MvoavoqG_xMQ_O_vWa4qqrvTUPp-uxr7TyYZijCU4Mz0otm-7qKnYktoSYPFMWQbcpYt_wN1q-YcpwNspGAWS-f5eHsYIJIlsyyswiRtG64na9c84/s400/Screenshot_2015-05-30-10-23-43.jpg" width="225" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
#Video</h3>
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/_Dw65AJy4AY/0.jpg" src="https://www.youtube.com/embed/_Dw65AJy4AY?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<br />
<br />
url : <a href="http://www.instructables.com/id/Simple-and-intuitive-web-interface-for-your-Raspbe/?ALLSTEPS">http://www.instructables.com/id/Simple-and-intuitive-web-interface-for-your-Raspbe/?ALLSTEPS</a><br />
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a><br />
<a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a><br />
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a><br />
<div>
<br /></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-38472965319976548342015-05-10T14:51:00.000+07:002015-05-10T14:51:14.656+07:00How to install Emgucv on Raspberry pi <br />
<h2 style="text-align: center;">
How to install Emgucv on Raspberry pi </h2>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicuUQMY3Muybp83HfpBG2NRLn8HtM8SoIwv9-fHBFdxou4dRyjw497TxYZjM0b6uFA6nyoR9fBq9JHbXClBowWSLjri8ktJyYDFhk8ecYAYd7okmWRc3QBLdFzt6h-lGbX2eWzfzpCVks/s1600/camera2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="173" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicuUQMY3Muybp83HfpBG2NRLn8HtM8SoIwv9-fHBFdxou4dRyjw497TxYZjM0b6uFA6nyoR9fBq9JHbXClBowWSLjri8ktJyYDFhk8ecYAYd7okmWRc3QBLdFzt6h-lGbX2eWzfzpCVks/s320/camera2.PNG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Mono เป็นโปรแกรมที่ใช้เขียนภาษา C# ซึ่งลักษณะการเขียนก็เหมือนกับ Microsoft Visual Studio ที่ใช้เขียนเฉพาะ Platfroms ของ Windows แต่ตัว Mono ออกแบบมาเพื่อใช้กับ Platfroms ของ Linux</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
OpenCV เป็น Library ของ Function โปรแกรมประมวลผลภาพหรือเรียกว่า Image Processing ซึ้งสามารถประมวลผลภาพในแบบที่ต้องการได้ด้วยการได้ขึ้นอยู่กับการโปรแกรมควบคุมภาพ</div>
<br />
<br />
<h3>
How to install mono (C#)</h3>
<div>
<div>
ขั้นตอนการติดตั้งโปรแกรม Mono</div>
<div>
#sudo apt-get update</div>
<div>
#sudo apt-get upgrade</div>
<div>
#sudo apt-get install emacs</div>
<div>
#sudo apt-get install mono-complete</div>
</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBisMXt9GkgY3WolFtkdhchi3LRh2pZ2dIMHNUR3gv9ZCe5-WQtgkLHHIjiqAdQuG08iI8RmS52NwYm7jWLkJAiyWTfLPPFcyCSmqTv25WfLJERFSd7k_Tvfu5fl8RlmfrfMWoYb86ivc/s1600/55.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBisMXt9GkgY3WolFtkdhchi3LRh2pZ2dIMHNUR3gv9ZCe5-WQtgkLHHIjiqAdQuG08iI8RmS52NwYm7jWLkJAiyWTfLPPFcyCSmqTv25WfLJERFSd7k_Tvfu5fl8RlmfrfMWoYb86ivc/s400/55.JPG" width="396" /></a></div>
<div>
<br /></div>
<h3>
How to install emgucv</h3>
<br />
ตั้ดตั้ง git แล้วโหลด Source<br />
#sudo apt-get install git<br />
#git clone git://git.code.sf.net/p/emgucv/code emgucv<br />
#cd emgucv<br />
<br />
ทำการอัพเดท submodule<br />
#git submodule update --init --recursive<br />
<br />
ทำการติดตั้ง dependency คอนฟิก cmake<br />
#cd platforms/raspbian<br />
#./apt_install_dependency<br />
#./cmake_configure<br />
#cd ../../..<br />
<br />
Compile ไฟล์ open CV ถ้าได้ 100% ไม่มี Error แสดงว่าผ่าน<br />
#sudo make<br />
<br />
ถ้า error จะแสดงประมาณนี้<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDtoOH73_Y0XvzEYNFEeD-c14GzthfgvgwM9n6jAlTKTTJKvb-HE6XyaBvZ_Fy-heulJcyK3KX9dWhN_iLnoG156S6Ti6EmeYu47_rXz-cAX9eYUNNDb5HuIvqQIanehZ4hvHbObTJRxs/s1600/make.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="258" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDtoOH73_Y0XvzEYNFEeD-c14GzthfgvgwM9n6jAlTKTTJKvb-HE6XyaBvZ_Fy-heulJcyK3KX9dWhN_iLnoG156S6Ti6EmeYu47_rXz-cAX9eYUNNDb5HuIvqQIanehZ4hvHbObTJRxs/s400/make.PNG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
วิธีแก้หาก Error เหมือนกับตัวอย่างดังต่อไปนี้แก้ตามได้เลย</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://blog.turbine51.net/2014/08/28/emgucv-on-the-raspberry-pi-with-mono/">http://blog.turbine51.net/2014/08/28/emgucv-on-the-raspberry-pi-with-mono/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://blog.turbine51.net/2015/01/22/emgucv-on-the-raspberry-pi-with-mono-2/">http://blog.turbine51.net/2015/01/22/emgucv-on-the-raspberry-pi-with-mono-2/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://blog.turbine51.net/2015/04/21/emgucv-on-the-raspberry-pi-with-mono-3/">http://blog.turbine51.net/2015/04/21/emgucv-on-the-raspberry-pi-with-mono-3/</a></div>
<br />
<br />
ถ้า Compile ผ่านจะได้ดังนี้<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwpL-ShhGzFBcKruAy3_OL79bkGaWeSscWs09QE-iMaGIXqSo3i75I6Ehw7yZIbG2aPpeeNwqLPIo4_yE4HVvOI9tgUn09Ew238Msh9l3CL-uH248lNqejcosDAaN8cgHohmg8iyO85YQ/s1600/make100%25.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="205" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwpL-ShhGzFBcKruAy3_OL79bkGaWeSscWs09QE-iMaGIXqSo3i75I6Ehw7yZIbG2aPpeeNwqLPIo4_yE4HVvOI9tgUn09Ew238Msh9l3CL-uH248lNqejcosDAaN8cgHohmg8iyO85YQ/s320/make100%25.PNG" width="320" /></a></div>
<br />
ทดสอบโปรแกรมตัวอย่างที่ได้จากการคอมไพล<br />
#cd bin<br />
#export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH<br />
#mono Example.PlanarSubdivision.monoexe<br />
#mono Example.PlanarSubdivision.monoexe<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicuUQMY3Muybp83HfpBG2NRLn8HtM8SoIwv9-fHBFdxou4dRyjw497TxYZjM0b6uFA6nyoR9fBq9JHbXClBowWSLjri8ktJyYDFhk8ecYAYd7okmWRc3QBLdFzt6h-lGbX2eWzfzpCVks/s1600/camera2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicuUQMY3Muybp83HfpBG2NRLn8HtM8SoIwv9-fHBFdxou4dRyjw497TxYZjM0b6uFA6nyoR9fBq9JHbXClBowWSLjri8ktJyYDFhk8ecYAYd7okmWRc3QBLdFzt6h-lGbX2eWzfzpCVks/s400/camera2.PNG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUvBrZK0HUbYnPGb0iSU4N2JoqpK7PWLzfs8x_kE0_5VMZUsBx3sDttuW3XXUAhlG8r5FN3hOXYLB67dRZ0Q8VuoEPTJWNjkWtcjDItkzzHMaeuZdAZPGf_cB2ckWma0nrENApJJmVOUo/s1600/camera.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUvBrZK0HUbYnPGb0iSU4N2JoqpK7PWLzfs8x_kE0_5VMZUsBx3sDttuW3XXUAhlG8r5FN3hOXYLB67dRZ0Q8VuoEPTJWNjkWtcjDItkzzHMaeuZdAZPGf_cB2ckWma0nrENApJJmVOUo/s400/camera.PNG" width="400" /></a></div>
<br />
<h3>
Video</h3>
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/IZ5JXW65_80/0.jpg" src="https://www.youtube.com/embed/IZ5JXW65_80?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<br />
<br />
<br />
RF : http://www.emgu.com/wiki/index.php/Download_And_Installation#Raspbian_.28Raspberry_Pi_2.29<br />
http://logicalgenetics.com/raspberry-pi-and-mono-hello-world/<br />
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a><br />
<a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a><br />
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a>ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-19916828747620404722015-02-18T23:04:00.003+07:002015-02-18T23:04:49.213+07:00How to Install Nas(External Harddisk) on Raspberry pi<br />
<br />
<br />
<h2 style="text-align: center;">
How to Install Nas(External Harddisk) on Raspberry pi</h2>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO9LXeGd0up9GK1WyCBAaEY7ZLbI1Va-Kae70J7BLRoU2XQNCgpn01FFwDI31sbwxw8wAags8uxIX8p1zJ0i8EwNmOVB0OGMPu0umFeDavAtlnvLF4GPu5NW7PZX0yuItJr1OTl8jB_kY/s1600/2015-02-18+21.32.55.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO9LXeGd0up9GK1WyCBAaEY7ZLbI1Va-Kae70J7BLRoU2XQNCgpn01FFwDI31sbwxw8wAags8uxIX8p1zJ0i8EwNmOVB0OGMPu0umFeDavAtlnvLF4GPu5NW7PZX0yuItJr1OTl8jB_kY/s1600/2015-02-18+21.32.55.jpg" height="306" width="320" /></a></div>
<br />
<span style="background-color: #d7d2bc; color: #212121; font-family: Verdana, sans-serif; font-size: 14px; line-height: 26px;">การติดตั้ง Samba ให้ติดต่อกับเครื่อง Windows ได้ด้วย Protocol <span style="background-color: white; color: #333333; font-size: 16px;">Common Internet File System (CIFS) บนระบบปฎิบัติการ Linux โดยใช้บอร์ด Raspberry Pi ทำหน้าที่เป็น File Server ในการ Share File จาก Server ไปยังระบบปฎิบัติการ Windows และอื่นๆ ซึ่งไฟล์และโฟล์เดอร์เหล่านั้นสามารถ Coppy Read Write และ Edit ได้ในตัวอย่างนี้เป็นการใช้พื้นที่ S</span><span style="background-color: white; color: #333333; font-size: 13px; line-height: 22px;">torage</span><span style="background-color: white; color: #333333; font-size: 16px;"> คือ </span></span><span style="color: #333333; font-family: Verdana, sans-serif;"><span style="line-height: 26px;">External Harddisk </span></span><span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 16px; line-height: 26px;">เป็น </span><span style="color: #333333; font-family: Verdana, sans-serif;"><span style="line-height: 26px;">storage</span></span><span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 16px; line-height: 26px;"> โดยให้ Raspberry Pi เป็นระบบจัดการ ระบบเครือข่าย ไฟล์ สิทธ์การเข้าใช้งาน และ อื่นๆ</span><br />
<span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 16px; line-height: 26px;">บทความนี้ต่อเนื่องมาจาก </span><span style="color: #333333; font-family: Verdana, sans-serif;"><span style="line-height: 26px;"><a href="http://raspberry-pi-thai.blogspot.com/2014/02/sharing-file-server-raspberry-pi-samba.html">http://raspberry-pi-thai.blogspot.com/2014/02/sharing-file-server-raspberry-pi-samba.html</a></span></span><br />
<span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 16px; line-height: 26px;"><br /></span>
<span style="background-color: #d7d2bc; color: #212121; font-family: Verdana, sans-serif; font-size: 14px; line-height: 26px;"><a href="http://sukhothaitc.ac.th/sutee/Artical/linux/samba/Samba_02.html" style="color: #498bbf; text-decoration: none;">Samba คือ </a></span><br style="background-color: #d7d2bc; color: #212121; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 14px; line-height: 26px;" /><span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 16px; line-height: 26px;"><a href="http://www.widebase.net/knowledge/itterm/it_term_desc.php?term_id=CIFS" style="color: #498bbf; text-decoration: none;">Common Internet File System คือ</a></span><br />
<br />
<h3 style="background-color: white; color: #333333; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 26px; font-weight: normal; line-height: 26px; margin: 0px; padding: 0px 0px 10px; position: relative;">
<strong><span style="font-family: Verdana, sans-serif;">รายการอุปกรณ์</span></strong></h3>
<div style="background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 15px; line-height: 20.7900009155273px;">
<strong><span style="font-family: Verdana, sans-serif;"><br /></span></strong></div>
<div style="background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- ชุด Raspberry pi </span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- SD Card 4G Class4 ขั้นต่ำ-OS Raspbian "<a href="http://downloads.raspberrypi.org/raspbian_latest" style="color: #6e0000; font-size: 13px; line-height: 19.5px; outline: 0px; text-decoration: none;">2014-01-07-wheezy-raspbian.zip</a>" <a href="http://www.raspberrypi.org/downloads" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://www.raspberrypi.org/downloads</a></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Computer OS : Windows</span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Mount+Keyboard</span></div>
<div style="background-color: white;">
<span style="color: #333333; font-family: Verdana, sans-serif; font-size: 16px; line-height: 20px;">- </span><span style="background-color: transparent; line-height: 20px;"><span style="color: #333333; font-family: Verdana, sans-serif;">External Harddisk</span></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
<div style="background-color: white;">
<h3 style="font-size: 16px; margin: 0px; padding: 0px 0px 10px; position: relative;">
<span style="color: #444444; font-family: Lato, sans-serif;"><span style="-webkit-text-stroke-width: 0.200000002980232px; line-height: 24px;">Checking System</span></span></h3>
<div>
<span style="color: #444444; font-family: Lato, sans-serif;"><span style="-webkit-text-stroke-width: 0.200000002980232px; line-height: 24px;">ตรวจสอบ พาร์ทิชั่น</span></span></div>
<div style="color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMyEzMen36IPWMIvzHLaYgTXJ5csSBMYvDHqWsUvKxDOmIfD74LNT8i8FacPO-jq5-wIDT__Teqd_wwCV7M4lL5Z1BwHQxNrHcTufpA2Ye6_zhrLeVPpq6eu5VAoi66cOVNky35zvCIMY/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMyEzMen36IPWMIvzHLaYgTXJ5csSBMYvDHqWsUvKxDOmIfD74LNT8i8FacPO-jq5-wIDT__Teqd_wwCV7M4lL5Z1BwHQxNrHcTufpA2Ye6_zhrLeVPpq6eu5VAoi66cOVNky35zvCIMY/s1600/1.JPG" height="132" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เข้าเป็นสิทธิ์ Root และตรวจสอบ รายละเอียดของ disk คือ External Harddisk ที่เพิ่มเข้ามา</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglN5AL_oCWArPOeSHFMGU2I6OP5UhqSMq4YGAjjzDSHBYQGESpQaf1FmSmf79mWTqC_YTOv_rzUrT1oGsIAANV3J99Bb9TtXiEyQfM2_LKeDPVJza4RsN3JXBVs7k1H_x4JDH-axvX29E/s1600/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglN5AL_oCWArPOeSHFMGU2I6OP5UhqSMq4YGAjjzDSHBYQGESpQaf1FmSmf79mWTqC_YTOv_rzUrT1oGsIAANV3J99Bb9TtXiEyQfM2_LKeDPVJza4RsN3JXBVs7k1H_x4JDH-axvX29E/s1600/2.JPG" height="241" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="color: #212121; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 16px; line-height: 20px; margin: 0px; padding: 0px 0px 10px; position: relative;">
<span style="-webkit-text-stroke-width: 0.200000002980232px; color: #444444; font-family: Lato, sans-serif; line-height: 24px;">Install </span><strong style="-webkit-text-stroke-width: 0.200000002980232px; color: #444444; font-family: Lato, sans-serif; line-height: 24px;">ntfs-3g</strong></h3>
<h3 style="color: #212121; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 16px; line-height: 20px; margin: 0px; padding: 0px 0px 10px; position: relative;">
<span style="font-weight: normal;"><span style="-webkit-text-stroke-width: 0.200000002980232px; color: #444444; font-family: Lato, sans-serif; line-height: 24px;">ติดตั้ง ntfs-3g</span><span style="-webkit-text-stroke-width: 0.200000002980232px; color: #444444; font-family: Lato, sans-serif; line-height: 24px;"> ให้สามมารถเข้าถึงไฟล์แบบรูปแบบ NTFS บนระบบ Windows</span></span></h3>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfwkEbPIJ6NhAjAXdArT0AOO0UesvC07NwHnyAQIlBH8paPt8ZOwud_6GhfAe3y4DTpkIYibTQMDsAOU7J9TGSG_2QfWAZnTUKvhLEQsDBQ29wHxJeccaXgkiBddU4TtfshQd7HtXMRH8/s1600/3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfwkEbPIJ6NhAjAXdArT0AOO0UesvC07NwHnyAQIlBH8paPt8ZOwud_6GhfAe3y4DTpkIYibTQMDsAOU7J9TGSG_2QfWAZnTUKvhLEQsDBQ29wHxJeccaXgkiBddU4TtfshQd7HtXMRH8/s1600/3.JPG" height="122" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
สร้างตำแหน่งของไฟล์ และทำการ mount ไฟล์ดังกล่าวไปตำแหน่งที่ต้องการ</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij07PkF2n7VjswkboJfI5weqOWIoiX2hpG-PqNon99W5c-X9HnKJhzyoXTKN5QGriLlHjhXQeqIO6SPC150Y9QbguNryIqk9Ldd-iubqxG6nP9EyI9KwOTDVPiiYOULmYukPMrvPfuMDU/s1600/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij07PkF2n7VjswkboJfI5weqOWIoiX2hpG-PqNon99W5c-X9HnKJhzyoXTKN5QGriLlHjhXQeqIO6SPC150Y9QbguNryIqk9Ldd-iubqxG6nP9EyI9KwOTDVPiiYOULmYukPMrvPfuMDU/s1600/4.JPG" height="71" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="color: #212121; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 16px; line-height: 20px; margin: 0px; padding: 0px 0px 10px; position: relative;">
Install Samba</h3>
<div style="color: #212121; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 16px; line-height: 20px; margin: 0px; padding: 0px 0px 10px; position: relative;">
<span style="color: #333333; font-family: Verdana, sans-serif;">ติดตั้ง Samba</span></div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA-sgBn0XGrH8S6IwBLRXrUQVTuyBbc4UydOh8IwgyCeqp618w6PoGDLJ4xo13wdqu-5rxHaSRQ50xkrfJ4V3HtOffpky4XH7AQNjwfNQy5uGMWLBpqq0mTBijgePezCz09rvresc2bMI/s1600/5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA-sgBn0XGrH8S6IwBLRXrUQVTuyBbc4UydOh8IwgyCeqp618w6PoGDLJ4xo13wdqu-5rxHaSRQ50xkrfJ4V3HtOffpky4XH7AQNjwfNQy5uGMWLBpqq0mTBijgePezCz09rvresc2bMI/s1600/5.JPG" height="161" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
คัลลอกไฟล์คอนฟิกของ Samba เพื่อ Backup และแก้ไขไฟล์คอนฟิก</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv0swBxhPI2f2MTRziXqlIJiJ3VsOM_Zqo5wD8d4mKfgFsrhyzhyF1uESYLZ87FelJF_tZR1-ZljnXXaWqzg8Vi14tGGt4B7ojUldwooZ1id1P1uftgtpeIVocqcR8uXoVNDWX1sRGLAg/s1600/6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv0swBxhPI2f2MTRziXqlIJiJ3VsOM_Zqo5wD8d4mKfgFsrhyzhyF1uESYLZ87FelJF_tZR1-ZljnXXaWqzg8Vi14tGGt4B7ojUldwooZ1id1P1uftgtpeIVocqcR8uXoVNDWX1sRGLAg/s1600/6.JPG" height="22" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
แก้ไข โดยการลบคอมเม้นหน้า security = user</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWDgrugsG2oAOoApj7BD_PkKGkBO4EmUOJhninu0-ncagKordyOdfWH6s-gkRa9GuwLm-Hzkw89k8_RPn_NyEZQtyLPK_iXGj4jH_ZRVPdgbF-nPrk6kE4Bkj9q86pGl9FZqRgO1Y_OPY/s1600/7.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWDgrugsG2oAOoApj7BD_PkKGkBO4EmUOJhninu0-ncagKordyOdfWH6s-gkRa9GuwLm-Hzkw89k8_RPn_NyEZQtyLPK_iXGj4jH_ZRVPdgbF-nPrk6kE4Bkj9q86pGl9FZqRgO1Y_OPY/s1600/7.JPG" height="78" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เพิ่มบรรทัดดังกล่าวไว้ล่างสุดของไฟล์คอนฟิก เพื่อให้ใช้งานเข้ากับระบบของเราได้</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrNQMQkyfnFvG9Q2ITFMDKTQkXm98NhjKYvCOnzrbr4GhUKtCe6UKGTrtkuV9G_9XAGZVYm9QtpBma9Y7Q2zdY-ilwBTMcCCvTgKCGHsPpsY4CUJTu-yghEW_SNtrXZeFN3LYARZ-oim8/s1600/8.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrNQMQkyfnFvG9Q2ITFMDKTQkXm98NhjKYvCOnzrbr4GhUKtCe6UKGTrtkuV9G_9XAGZVYm9QtpBma9Y7Q2zdY-ilwBTMcCCvTgKCGHsPpsY4CUJTu-yghEW_SNtrXZeFN3LYARZ-oim8/s1600/8.JPG" height="137" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
รีสตาร์ Samba </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyWFv5OZ2K668-29AVrFNWfBVpDgQ12TVxq6lUEBxUg6Lti50trJ_RUVM1aAr0_ENvJXZz7HD2Lpl7135JIZWCTKumjQq4cpWDZjfWE0z0t1MSnkVsEyO9TFe227vvBuC2-QGONhPWMvc/s1600/9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyWFv5OZ2K668-29AVrFNWfBVpDgQ12TVxq6lUEBxUg6Lti50trJ_RUVM1aAr0_ENvJXZz7HD2Lpl7135JIZWCTKumjQq4cpWDZjfWE0z0t1MSnkVsEyO9TFe227vvBuC2-QGONhPWMvc/s1600/9.JPG" height="43" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
สร้าง Password ให้กับ user pi ที่มีอยุ่แล้ว หรือจะเพิ่มก็ทำได้</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWo_sOsj-EwRNYNk8Yuvr6SGVTG-BxbaSlRc7fS_xsBWmIbdXTUswFM1WJ1N1CHsniq6ehuA4QQmobOCnxNlVO4tydsoGNB5dlGTjzxp6r9QlNpgbzpp5rQSJeuF6Ys4T8IH0Gkd-J7lg/s1600/10.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWo_sOsj-EwRNYNk8Yuvr6SGVTG-BxbaSlRc7fS_xsBWmIbdXTUswFM1WJ1N1CHsniq6ehuA4QQmobOCnxNlVO4tydsoGNB5dlGTjzxp6r9QlNpgbzpp5rQSJeuF6Ys4T8IH0Gkd-J7lg/s1600/10.JPG" height="50" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
กำหนดสิทธิ์ให้ทุกคนเข้าถึงไฟล์ได้ อ่าน เขียน ลบ ได้</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgojZIX3YsvrfHsAZm5wpUjFHyQFX0-Pc6guwTHrk5yPDMMjWXp3bCdfBH2rE_dcxxyOIF4Wwnxqw4CD3dARW-2iy89cnv_ZyS4geb-oC0n78Zu0oHyuLfO2YfdDNuU6fbhSZQ75YPi_7g/s1600/10.1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgojZIX3YsvrfHsAZm5wpUjFHyQFX0-Pc6guwTHrk5yPDMMjWXp3bCdfBH2rE_dcxxyOIF4Wwnxqw4CD3dARW-2iy89cnv_ZyS4geb-oC0n78Zu0oHyuLfO2YfdDNuU6fbhSZQ75YPi_7g/s1600/10.1.JPG" height="23" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เปิด Network ในระบบ Windows จะเห็น Host ของ Raspberry </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbgJUsbT7hnJ97IfvlCnJNofxTTFx0tLg9qMUXY4dt1rkPTDSJdY1g0P-AiDwnXiyujfwaHQqabEj-lM0d7qK7JrBERcxEhDytq-IYN2MCvLg47fjB8zlIwYJmPNAZR2_9v74PYEyXvhE/s1600/11.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbgJUsbT7hnJ97IfvlCnJNofxTTFx0tLg9qMUXY4dt1rkPTDSJdY1g0P-AiDwnXiyujfwaHQqabEj-lM0d7qK7JrBERcxEhDytq-IYN2MCvLg47fjB8zlIwYJmPNAZR2_9v74PYEyXvhE/s1600/11.JPG" height="247" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ใส่ User และ Password เข้าใช้งาน</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_T7xz_OStMc9CPT9cpHWHE-REWfqUe0Fkcp5Vk7AWtC-g7w7KiQPkekL_HpQKDJlZsaxcdJ887P3OREROissifM-fKVFqbfafYi471VrO09bwY1oCqjuQls69O71WDfQK9mUSbuMNh00/s1600/12.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_T7xz_OStMc9CPT9cpHWHE-REWfqUe0Fkcp5Vk7AWtC-g7w7KiQPkekL_HpQKDJlZsaxcdJ887P3OREROissifM-fKVFqbfafYi471VrO09bwY1oCqjuQls69O71WDfQK9mUSbuMNh00/s1600/12.JPG" height="305" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ทดสอบ คัลลอกไฟล์</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-BI3LgbAJgYQzwb8_lswIJLaxODvL8MrvYrPXAH846TykQXqxED2LcwGt9nnfiEt_6VNqRsvBl0_naNsck7WgNojck8y5U6vFRcAU8fJtuu9VA3BBss_RyxrgWjRIBxmLqTub5t2Q_wg/s1600/13.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-BI3LgbAJgYQzwb8_lswIJLaxODvL8MrvYrPXAH846TykQXqxED2LcwGt9nnfiEt_6VNqRsvBl0_naNsck7WgNojck8y5U6vFRcAU8fJtuu9VA3BBss_RyxrgWjRIBxmLqTub5t2Q_wg/s1600/13.JPG" height="247" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Map Drive ให้สามารถเข้าใช้งานได้สะดวก</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFW5YlWQSnfSSHoMVJBEHyxl-KPF59pMQSVOtMp-3UmSLEPLMSxYCEbl4u66eJpbtGVNmMR8PqPkOKtrzzZ3j5TupIV_BoJY0EwkvT3huO89_56KtVxm8ARVb228vzM-p48RxlgW4IPfc/s1600/14.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFW5YlWQSnfSSHoMVJBEHyxl-KPF59pMQSVOtMp-3UmSLEPLMSxYCEbl4u66eJpbtGVNmMR8PqPkOKtrzzZ3j5TupIV_BoJY0EwkvT3huO89_56KtVxm8ARVb228vzM-p48RxlgW4IPfc/s1600/14.JPG" height="297" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Map Drive เรียบร้อยแล้ว คลิก เข้าไปได้เลย</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnC2hJkBRug98JFoBqEdU2G4isKXwMlXWoYfSYFg5gJQo7btdrlw2kToYG4O_X6pTXuXnHMXEyxN0gtsov3jUa2yAc151LThwBRYkhv5930-vKxy0r2mnUzhwZUznDF_I_Uk0UJR5asnA/s1600/15.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnC2hJkBRug98JFoBqEdU2G4isKXwMlXWoYfSYFg5gJQo7btdrlw2kToYG4O_X6pTXuXnHMXEyxN0gtsov3jUa2yAc151LThwBRYkhv5930-vKxy0r2mnUzhwZUznDF_I_Uk0UJR5asnA/s1600/15.JPG" height="66" width="400" /></a></div>
<div style="color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
<div style="color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
<div style="color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
<h3 style="color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 20px;">
<span style="background-color: #d7d2bc; color: #212121; font-family: Verdana, sans-serif; font-size: 14px; line-height: 26px;">ที่มา :</span></h3>
<div>
<span style="color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif;"><span style="line-height: 20px;"><a href="http://www.makeuseof.com/tag/turn-your-raspberry-pi-into-a-nas-box/">http://www.makeuseof.com/tag/turn-your-raspberry-pi-into-a-nas-box/</a></span></span></div>
<div>
<span style="background-color: #d7d2bc; color: #212121; font-family: Verdana, sans-serif; font-size: 14px; line-height: 26px;"><a href="http://micro2440.blogspot.com/" style="color: #498bbf; text-decoration: none;">http://micro2440.blogspot.com/</a></span><br style="background-color: #d7d2bc; color: #212121; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 14px; line-height: 26px;" /><span style="background-color: #d7d2bc; color: #212121; font-family: Verdana, sans-serif; font-size: 14px; line-height: 26px;"><a href="https://www.facebook.com/BooindyIt?ref=hl" style="color: #498bbf;">https://www.facebook.com/BooindyIt?ref=hl</a></span><br style="background-color: #d7d2bc; color: #212121; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 14px; line-height: 26px;" /><a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1" style="background-color: #d7d2bc; color: #498bbf; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 14px; line-height: 26px; text-decoration: none;">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a></div>
</div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-83431453645398036672014-12-21T15:42:00.002+07:002014-12-21T15:42:22.671+07:00WebCam USB on Raspberry pi with Motion<h2 style="text-align: center;">
<br /></h2>
<h2 style="text-align: center;">
WebCam USB on Raspberry pi with Motion</h2>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvijmDa9Y2wSgCRfR4l7nfTNR-SKs1g10EtNRIwJK2ECK7OQNHHk23kkIRBIgMesj3ay4bFntNvUAoNtg5Kt1fAJ9FYSVP6M0LjCf8w8ejexiwds4xiSH3QuuNu1cR1uWoE1Ss6tYvni0/s1600/6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvijmDa9Y2wSgCRfR4l7nfTNR-SKs1g10EtNRIwJK2ECK7OQNHHk23kkIRBIgMesj3ay4bFntNvUAoNtg5Kt1fAJ9FYSVP6M0LjCf8w8ejexiwds4xiSH3QuuNu1cR1uWoE1Ss6tYvni0/s1600/6.jpg" height="225" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
บทความนี้เป็นการนำ Raspberry Pi กับ กล้อง Webcam USB มาการใช้ต่อเข้ากับ RaspberryPi ทำการติดตั้งโปรแกรม Motion เพื่อใช้ในการรับค่าจากกล้องและนำมาแสดงผลหน้า Web Browser หรือ โปรแกรม <span style="color: #444444; font-family: Tahoma; line-height: 19.2000007629395px; orphans: 2; widows: 2;">VLC media player โดยใช้ Raspber Pi เป็นตัวประมวลผลและจัดการต่างๆ</span><br />
<br />
<h3>
Install Motion</h3>
1 ทำการ <span style="background-color: white; background-repeat: no-repeat; font-family: Tahoma; line-height: 19.2000007629395px; orphans: 2; widows: 2;">Update Software กันก่อนครับ</span><br />
<strong style="background-color: white; background-repeat: no-repeat; font-family: Tahoma; line-height: 19.2000007629395px; orphans: 2; widows: 2;"><br /></strong>
<div style="background-color: #fdfdfd; background-repeat: no-repeat; font-family: Tahoma; line-height: 15px; orphans: 2; text-align: -webkit-auto; widows: 2;">
<span style="background-color: transparent; background-repeat: no-repeat; font-family: inherit; font-size: inherit; line-height: 16px; white-space: pre;"><span style="background-repeat: no-repeat; font-family: inherit; font-size: inherit;">#sudo apt-get</span> </span><span style="background-color: transparent; background-repeat: no-repeat; font-family: inherit; font-size: inherit; line-height: 16px; white-space: pre;">install rpi-update</span></div>
<div style="background-color: #fdfdfd; background-repeat: no-repeat; font-family: Tahoma; line-height: 15px; orphans: 2; text-align: -webkit-auto; widows: 2;">
<span style="background-color: transparent; background-repeat: no-repeat; font-family: inherit; font-size: inherit; line-height: 16px; white-space: pre;"><span style="background-repeat: no-repeat; font-family: inherit; font-size: inherit;">#sudo</span> rpi-update</span></div>
<div style="background-color: #fdfdfd; background-repeat: no-repeat; font-family: Tahoma; line-height: 15px; orphans: 2; text-align: -webkit-auto; widows: 2;">
<span style="background-color: transparent; background-repeat: no-repeat; font-family: inherit; font-size: inherit; line-height: 16px; white-space: pre;"><span style="background-repeat: no-repeat; font-family: inherit; font-size: inherit;">#sudo apt-get</span> update</span></div>
<div style="background-color: #fdfdfd; background-repeat: no-repeat; font-family: Tahoma; line-height: 15px; orphans: 2; text-align: -webkit-auto; widows: 2;">
<span style="background-color: transparent; background-repeat: no-repeat; font-family: inherit; font-size: inherit; line-height: 16px; white-space: pre;"><span style="background-repeat: no-repeat; font-family: inherit; font-size: inherit;">#sudo apt-get</span> upgrade</span></div>
<br />
<br />
2 ติดตั้ง motion<br />
<br />
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-repeat: no-repeat; font-family: inherit; font-size: inherit;">#sudo apt-get</span> </span><span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;">install motion -y</span><br />
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><br /></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><br /></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><br /></span>
<div style="orphans: 2; widows: 2;">
<span style="font-family: Tahoma;"><span style="line-height: 16px; white-space: pre;">3 ตรวจสอบการรองรับของกล้อง webcam ถ้ารองรับจะมองเห็น</span></span></div>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><br /></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd;">#lsusb</span></span><br />
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd;"><br /></span></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi236aWt6m8OS9VVQ30OsNlus7Ad6ovL0UXQXCwmy7wdpNhin25TbXR2k73gL3zj_wEVhhEuxMMjMP1GmnQCj2QZpg9pRdU4oPo4cplIIDlkPiVR1DVoeVQiungUkZCXa1S2edMDA0nQqA/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi236aWt6m8OS9VVQ30OsNlus7Ad6ovL0UXQXCwmy7wdpNhin25TbXR2k73gL3zj_wEVhhEuxMMjMP1GmnQCj2QZpg9pRdU4oPo4cplIIDlkPiVR1DVoeVQiungUkZCXa1S2edMDA0nQqA/s1600/1.JPG" height="78" width="400" /></a></div>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd;"><br /></span></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd;"><br /></span></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd;">4 แก้ไขไฟล์ motion.conf</span></span><br />
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd;"><br /></span></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd;">#sudo nano </span><span style="background-color: #fdfdfd; background-repeat: no-repeat;">/etc/motion/motion.conf</span></span><br />
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><br /></span></span>
<span style="background-repeat: no-repeat; orphans: 2; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat; line-height: 16px; white-space: pre;"><span style="font-family: Tahoma;">แก้ไขให้เป็นดังนี้ โดยการค้นหาบรรทัดดังกล่าว
daemon = ON (เพื่อให้รัน motion เป็น daemon service เมื่อใดที่มีการ รัน user pi )
webcam_localhost = OFF (สามารถให้เครื่องทุกเครื่องเข้าถึง webcam ได้)
webcam_port = 8081 (default Port 8081 สำหรับเป็น video stream)</span></span></span><br />
<span style="background-repeat: no-repeat; orphans: 2; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat; line-height: 16px; white-space: pre;"><span style="font-family: Tahoma;"><br /></span></span></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><br /></span></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;">5 แก้ไขไฟล์ </span></span><span style="background-color: #fdfdfd; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;">motion เพื่อเปิดการทำงานของ motion ให้เหมือนดังภาพ โดยการนำ # ออกข้าหน้าบรรทัดที่ 2</span><br />
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><br /></span></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;">#sudo nano <span style="background-repeat: no-repeat;">/etc/default/motion</span></span></span><br />
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><br /></span></span></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDHnXwd6vIWOFRlA8yYhEBHkoC5qRt3u5oXd8z2D2J0KxCd_0al8Bt15Fs0FUiHV60QZd7w1GtwpjvpxBa_fSKyXyOQyxiS6RJD_PNRxyR0PI3AWvhSkDNYZfrNVlfz6mQAux7neQpcLE/s1600/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDHnXwd6vIWOFRlA8yYhEBHkoC5qRt3u5oXd8z2D2J0KxCd_0al8Bt15Fs0FUiHV60QZd7w1GtwpjvpxBa_fSKyXyOQyxiS6RJD_PNRxyR0PI3AWvhSkDNYZfrNVlfz6mQAux7neQpcLE/s1600/2.JPG" height="56" width="400" /></a></div>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><br /></span></span></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><br /></span></span></span>
<div style="orphans: 2; widows: 2;">
<span style="font-family: Tahoma;"><span style="background-color: #fdfdfd; line-height: 16px; white-space: pre;">6 รีสตาร์ต service motion</span></span></div>
<div style="orphans: 2; widows: 2;">
<span style="font-family: Tahoma;"><span style="background-color: #fdfdfd; line-height: 16px; white-space: pre;"><br /></span></span></div>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;">#sudo service <span style="background-repeat: no-repeat;">motion start</span></span></span></span><br />
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><br /></span></span></span></span>
<br />
<h3>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><span style="background-repeat: no-repeat;">Testing 1 <span style="background-color: white; color: #444444; font-size: small; font-weight: normal; line-height: 19.2000007629395px; white-space: normal;">Web Browser</span></span></span></span></span></h3>
<div>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><span style="background-color: white; color: #444444; font-size: small; font-weight: normal; line-height: 19.2000007629395px; white-space: normal;"><br /></span></span></span></span></span></div>
<div style="orphans: 2; widows: 2;">
<span style="font-family: Tahoma;"><span style="background-color: #fdfdfd; line-height: 16px; white-space: pre;">โดยเรียกใช้จาก IP และ Port รูปแบบการเรียกใช้งาน </span></span><span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19.2000007629395px;">http://[IP]:8081 </span><span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19.2000007629395px;">เช่น </span></div>
<div style="orphans: 2; widows: 2;">
<span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19.2000007629395px;"><a href="http://192.168.137.88:8081/">http://192.168.137.88:8081</a> โดยใช้โปรแกรม Web Browser</span></div>
<div style="orphans: 2; widows: 2;">
<span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19.2000007629395px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgil5s13tgwt38uXPI360FjFY9b_xCRxHvIlR5pEg2T8Od9dwvQhf6UKdHlReNDb_bpHX9z4arH8zXzdVXMKSFEDpMXkEdBHNfz4xoPuktVxcaFIBJNRoG3lQ_ZKAEsP1r7BGUnQLisFtM/s1600/3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgil5s13tgwt38uXPI360FjFY9b_xCRxHvIlR5pEg2T8Od9dwvQhf6UKdHlReNDb_bpHX9z4arH8zXzdVXMKSFEDpMXkEdBHNfz4xoPuktVxcaFIBJNRoG3lQ_ZKAEsP1r7BGUnQLisFtM/s1600/3.JPG" height="252" width="400" /></a></div>
<div style="orphans: 2; widows: 2;">
<span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19.2000007629395px;"><br /></span></div>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><br /></span></span></span></span>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><br /></span></span></span></span>
<h3>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><span style="background-repeat: no-repeat;">Testing 2 </span></span></span></span><span style="color: #444444; font-family: Tahoma; line-height: 19.2000007629395px; orphans: 2; widows: 2;">VLC media player</span></h3>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><br /></span></span></span></span>
<div style="orphans: 2; widows: 2;">
<span style="font-family: Tahoma;"><span style="background-color: #fdfdfd; line-height: 16px; white-space: pre;">โดยเรียกใช้จาก IP และ Port รูปแบบการเรียกใช้งาน </span></span><span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19.2000007629395px;">http://[IP]:8081 </span><span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19.2000007629395px;">เช่น </span></div>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-repeat: no-repeat;"></span></span><br />
<div style="orphans: 2; widows: 2;">
<span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19.2000007629395px;"><a href="http://192.168.137.88:8081/">http://192.168.137.88:8081</a> โดยใช้โปรแกรม </span><span style="color: #444444; font-family: Tahoma;"><span style="line-height: 19.2000007629395px;">VLC media player</span></span></div>
<div style="orphans: 2; widows: 2;">
<span style="color: #444444; font-family: Tahoma;"><span style="line-height: 19.2000007629395px;"><br /></span></span></div>
<div style="orphans: 2; widows: 2;">
<span style="color: #444444; font-family: Tahoma;"><span style="line-height: 19.2000007629395px;">เปิดโปรแกรม VLC media player เข้า สื่อ > เปิดกระแสเครือข่าย > เลือกเท็ป เครือข่าย ใส่ <a href="http://192.168.137.88:8081/">http://192.168.137.88:8081/</a> กด เล่น จากนั้นจะแสดงภาพที่โปรแกรม</span></span></div>
<div style="orphans: 2; widows: 2;">
<span style="color: #444444; font-family: Tahoma;"><span style="line-height: 19.2000007629395px;"><br /></span></span></div>
<div style="orphans: 2; widows: 2;">
<span style="color: #444444; font-family: Tahoma;"><span style="line-height: 19.2000007629395px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFyi0YkwBCc_ufNE1LoFDoC7TsYJhLZzciRuxAKc29itu7DVaa8i47V1mYprGz8R61qsCdgElvzpYKUrjnuc83Qj_Q0XtpVv8JjFJZ72dmKpVXJa3pSd5yJZ-7ts04YweBrC6D3IwcmYY/s1600/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFyi0YkwBCc_ufNE1LoFDoC7TsYJhLZzciRuxAKc29itu7DVaa8i47V1mYprGz8R61qsCdgElvzpYKUrjnuc83Qj_Q0XtpVv8JjFJZ72dmKpVXJa3pSd5yJZ-7ts04YweBrC6D3IwcmYY/s1600/4.JPG" height="237" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzqwoSGtKUu50aG3mD9oxuw3teDS7vvw3dUz6b57gjnY-wNIJwCUuOWP6cXbBmHInTkBkMoJDghjDN7OjYZXN5vv9256UN_F3i1g6vigA4zewX7TyZ8YpFqztzeR2T7DXCt359ByWXGhU/s1600/5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzqwoSGtKUu50aG3mD9oxuw3teDS7vvw3dUz6b57gjnY-wNIJwCUuOWP6cXbBmHInTkBkMoJDghjDN7OjYZXN5vv9256UN_F3i1g6vigA4zewX7TyZ8YpFqztzeR2T7DXCt359ByWXGhU/s1600/5.JPG" height="286" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
VIDEO </h3>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/ag4YpI8sNuc?feature=player_embedded' frameborder='0'></iframe></div>
<div>
<br /></div>
<div style="orphans: 2; widows: 2;">
<span style="color: #444444; font-family: Tahoma;"><span style="line-height: 19.2000007629395px;"><br /></span></span></div>
<span style="background-repeat: no-repeat; font-family: Tahoma; line-height: 16px; orphans: 2; white-space: pre; widows: 2;"><span style="background-color: #fdfdfd; background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><span style="background-repeat: no-repeat;"><br /></span></span></span></span>
<div style="orphans: 2; widows: 2;">
<span style="font-family: Tahoma;"><span style="background-color: #fdfdfd; line-height: 16px; white-space: pre;">RF : </span><span style="line-height: 16px; white-space: pre;">http://raspberrysource.lnwshop.com/article/webcam-on-raspberry-pi-with-motion</span></span></div>
<div class="separator" style="clear: both; color: #212121; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 14px; line-height: 26px;">
<a href="https://www.facebook.com/BooindyIt?ref=hl" style="background-color: white; color: #498bbf; text-decoration: none;">https://www.facebook.com/BooindyIt?ref=hl</a></div>
<div style="orphans: 2; widows: 2;">
<span style="background-color: white;"><a href="http://micro2440.blogspot.com/" style="color: #498bbf; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 14px; line-height: 26px; orphans: auto; text-decoration: none; widows: auto;">http://micro2440.blogspot.com/</a><br style="color: #212121; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 14px; line-height: 26px; orphans: auto; widows: auto;" /><a href="https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark" style="color: #498bbf; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 14px; line-height: 26px; orphans: auto; text-decoration: none; widows: auto;">https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark</a><br style="color: #212121; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 14px; line-height: 26px; orphans: auto; widows: auto;" /><a href="http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos" style="color: #498bbf; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 14px; line-height: 26px; orphans: auto; widows: auto;">http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos</a></span></div>
<div style="orphans: 2; widows: 2;">
<span style="font-family: Tahoma;"><span style="line-height: 16px; white-space: pre;"><br /></span></span></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com1tag:blogger.com,1999:blog-3100362182588709453.post-26101383823845293272014-11-03T12:43:00.003+07:002014-11-03T13:54:07.031+07:00การติดตั้ง Cacti Network Monitoring Tool on Raspberry Pi<br />
<h2 style="text-align: center;">
การติดตั้ง Cacti Network Monitoring Tool on Raspberry Pi</h2>
<br />
<div>
การติดตั้ง Cacti ที่อุปกรณ์ Raspberry Pi เพื่อที่จะตรวจสอบ Traffic และ Log ของข้อมูลการใช้งานสำหรับ Mikrotik เพื่อใช้ในการวิเคราะห์ในการใช้งานอินเตอร์เน็ตซึ่งสามารถสรุป เป็น วัน สัปดาห์ เดือน ปี โดยจะแสดงผลเป็นกราฟ แต่ละ Interface ซึ่งง่ายต่อการวิเคราะห์ยังยังสามารถกำหนดช่วงเวลาที่ต้องการวิเคราะห์ได้ตัวนี้ค่อนข้างพิเศษกว่า MRTG เพราะมีฟังก์ชั่นที่มากกว่า<br />
<br /></div>
<div>
<a href="http://www.msit.mut.ac.th/newweb/phpfile/show.php?Qid=7189">CACTI คือ</a><br />
<span style="font-family: inherit;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg92ip6ZNdFH7q0iwInwiucnIUcQ2utiaAMoQMROGyIckxr6AziygVFlZl-Hce7JgQ-kyuo8p1D7Kh6BDz6qoablCyvG9-4Fh0WdM5f7dJfB8csX9wx1FtPqKIBQtkhpqbuiwL_bM8qFPU/s1600/13.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg92ip6ZNdFH7q0iwInwiucnIUcQ2utiaAMoQMROGyIckxr6AziygVFlZl-Hce7JgQ-kyuo8p1D7Kh6BDz6qoablCyvG9-4Fh0WdM5f7dJfB8csX9wx1FtPqKIBQtkhpqbuiwL_bM8qFPU/s1600/13.JPG" height="268" width="640" /></a></div>
<span style="font-family: inherit;"><br /></span></div>
<h3>
INSTALL PACKAGE ON Rapberry Pi</h3>
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">อัพเดทระบบกันก่อน</span><br />
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo apt-get update</span><br />
<span style="background-color: #e9e9e9; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxfdFnco-vsCiPvvi5n-zEX0lXahOXg9JAVU_j8xrdOyrV0V01T7izvUkVIFiQd3_39-rJjplL1UEh1IJiIfhlxbbpMr7vdkGhiPQ5BhvQ46RQpdzCj35FUATNhrFoHAEp5-XOeXt0xso/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxfdFnco-vsCiPvvi5n-zEX0lXahOXg9JAVU_j8xrdOyrV0V01T7izvUkVIFiQd3_39-rJjplL1UEh1IJiIfhlxbbpMr7vdkGhiPQ5BhvQ46RQpdzCj35FUATNhrFoHAEp5-XOeXt0xso/s1600/1.JPG" height="212" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">ติดตั้ง Lighttpd ด้วยคำสั่ง</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo apt-get install lighttpd</span></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI_b1c81jyfiYVlCj_PmPSOnGeGNVuSGCusD4hxyfnv91QivgeV-Njesx_ALig5O5S8WaVWc2D-0XPI6pa02QEu1nbez3UaBnJdywrZERye8mwPucjBi1jTmAlxvwN5wrsWqDCvloR2iE/s1600/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI_b1c81jyfiYVlCj_PmPSOnGeGNVuSGCusD4hxyfnv91QivgeV-Njesx_ALig5O5S8WaVWc2D-0XPI6pa02QEu1nbez3UaBnJdywrZERye8mwPucjBi1jTmAlxvwN5wrsWqDCvloR2iE/s1600/2.JPG" height="257" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ทดสอบการใช้งาน <span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">lighttpd โดยเรียกใช้งานจากพวก Web Browser พิมพ์ Ip ของอุปกรณ์ที่เราติดตั้งไว้</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="background-color: white; font-size: 11.8181819915771px; line-height: 17.4720001220703px;">เช่น 192.168.1.78</span></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNvPoJEmb4YJ6TG9lHHZo2bfYi2VBvoaL37NR75bJmwPsrkSpKaPm-JDP7QrJqKuLsSWyfGhJK2PRcvchQPhFf5ZrYWVVAQBWO1Yg8EtsYzfeVfsdjnH0EwL3vcmOJbzWHGtDWxqq22Is/s1600/3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNvPoJEmb4YJ6TG9lHHZo2bfYi2VBvoaL37NR75bJmwPsrkSpKaPm-JDP7QrJqKuLsSWyfGhJK2PRcvchQPhFf5ZrYWVVAQBWO1Yg8EtsYzfeVfsdjnH0EwL3vcmOJbzWHGtDWxqq22Is/s1600/3.JPG" height="210" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">ติดตั้ง php5 สำหรับสนับสนุนการทำงาน php</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo apt-get install php5-cgi php5-common php5</span></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5oMMl_GxcgW7lfgihJAmE3vJklw83Rhe6rH-nch6TLX3ZNzMj0YZvkUculJSDmHdiPVjTd0u5ABtBXzVKiXJ3UMHagtSIFk4_Ci5IlTVFWLnLaxODd3lGuQ0tGE2EZDCk7H0RBHYF-R8/s1600/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5oMMl_GxcgW7lfgihJAmE3vJklw83Rhe6rH-nch6TLX3ZNzMj0YZvkUculJSDmHdiPVjTd0u5ABtBXzVKiXJ3UMHagtSIFk4_Ci5IlTVFWLnLaxODd3lGuQ0tGE2EZDCk7H0RBHYF-R8/s1600/4.JPG" height="260" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">เปิดการทำงานของ fastcgi-php</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo lighty-enable-mod fastcgi-php</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo service lighttpd force-reload</span></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVixLMxw-JCEil34D8xBYHSFgOvZTLBSrTETRobKctkAL9q2UWu9PeEaXzE9tmK_h8NtDtGpLNQjkbiOA5MRlXtRtXs_x8UmDGbUm8xT4N5dFWIIc2oBzls0u7Bw1fY2Wx533hyphenhyphennvTNtA/s1600/5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVixLMxw-JCEil34D8xBYHSFgOvZTLBSrTETRobKctkAL9q2UWu9PeEaXzE9tmK_h8NtDtGpLNQjkbiOA5MRlXtRtXs_x8UmDGbUm8xT4N5dFWIIc2oBzls0u7Bw1fY2Wx533hyphenhyphennvTNtA/s1600/5.JPG" height="88" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">สร้างไฟล์ทดสอบ php</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo nano /var/www/index.php</span></span></div>
ใส่ส่วนข้างล่างนี้ไว้ในไฟล์ <span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11.8181819915771px; line-height: 17.4720001220703px;">/var/www/index.php</span><br />
<?php phpinfo();?><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCkwJ4bOulj0n9H9UCphSrYOunC0ufwL97H_N3DZUR99Rbo1mpS9eqmo1eHQmttd4J1s3p20xloRFDIp4_uUSWujOSawcIOY3gzv6l25I3MzB37qK7VcK5umyQCzY8HUpAvUgOBGXHBnk/s1600/6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCkwJ4bOulj0n9H9UCphSrYOunC0ufwL97H_N3DZUR99Rbo1mpS9eqmo1eHQmttd4J1s3p20xloRFDIp4_uUSWujOSawcIOY3gzv6l25I3MzB37qK7VcK5umyQCzY8HUpAvUgOBGXHBnk/s1600/6.JPG" height="261" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">ทดสอบการทำงานของ php </span><span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">โดยเรียกใช้งานจากพวก Web Browser พิมพ์ Ip ของอุปกรณ์ที่เราติดตั้งไว้</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="background-color: white; font-size: 11.8181819915771px; line-height: 17.4720001220703px;">เช่น 192.168.1.78</span></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiytVobKWSAkdCU4rWIB811RTK7Id4ij-5O-WhaLzZWymah8qWuVWhSJ85DdozVv0iR8ytPnWBLQkT6W_CtM9SL5lBuCtf1Ms3UbkNvCBQpG1YLdNMSFlGfBxdXHaq_g7QZFtZHKlE99uw/s1600/7.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiytVobKWSAkdCU4rWIB811RTK7Id4ij-5O-WhaLzZWymah8qWuVWhSJ85DdozVv0iR8ytPnWBLQkT6W_CtM9SL5lBuCtf1Ms3UbkNvCBQpG1YLdNMSFlGfBxdXHaq_g7QZFtZHKlE99uw/s1600/7.JPG" height="273" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">ติดตั้ง mysql-server ด้วยคำสั่ง</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo apt-get install mysql-server mysql-client</span></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibR9tFA3CPYzk2K6Hc34pQMO7fL3AiIBqmO5FpPIaj9MGl8IS82Ahk0SaIfU3sNHBZRirqKZ5bBpK0Jni0ra-6zecdgb1SWs6U0_iCph5wDcqRECsjWFSnlRK2PXMRJjPG0I5dOF04Qm4/s1600/8.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibR9tFA3CPYzk2K6Hc34pQMO7fL3AiIBqmO5FpPIaj9MGl8IS82Ahk0SaIfU3sNHBZRirqKZ5bBpK0Jni0ra-6zecdgb1SWs6U0_iCph5wDcqRECsjWFSnlRK2PXMRJjPG0I5dOF04Qm4/s1600/8.JPG" height="257" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">กำหนด password ของ root ให้กับ mysql</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmS0TCtZvxfJ1n6J6RpT7nuzDi7fW4haa1XSVxoUiSbaBFpzEabIk4nyctBg9vIa_tnma3tvsxeMwup04l-N_h0J-nhMD-SQrCGhBtbSH4k9-WdUs_UCVLvbWemfnbj3mWE25fnaZ7U24/s1600/9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmS0TCtZvxfJ1n6J6RpT7nuzDi7fW4haa1XSVxoUiSbaBFpzEabIk4nyctBg9vIa_tnma3tvsxeMwup04l-N_h0J-nhMD-SQrCGhBtbSH4k9-WdUs_UCVLvbWemfnbj3mWE25fnaZ7U24/s1600/9.JPG" height="172" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">ติดตั้ง phpmyadmin ด้วยคำสั่ง</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo apt-get install phpmyadmin</span></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCthsubCuL-5ek4VDwrNnp1q8fKjckji5U17H92b4bIInVrTXUkwis0bbUdGAZcvWoRvh6WdxY7nhwFITujpD4kaWhSa-5sslijfmXKgtTZDKx6GjtMyZmZrZZtYdFEknfAYV0cEfwWBs/s1600/10.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCthsubCuL-5ek4VDwrNnp1q8fKjckji5U17H92b4bIInVrTXUkwis0bbUdGAZcvWoRvh6WdxY7nhwFITujpD4kaWhSa-5sslijfmXKgtTZDKx6GjtMyZmZrZZtYdFEknfAYV0cEfwWBs/s1600/10.JPG" height="168" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">เลือกการทำงานด้วย lighttpd ดังภาพ</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6c3T_wBHxhiN_UoqKuLV7xhWluzJX7YQtQJ9tvl611_MqPHGJPglslHqUxn_tR7fE1JejViwO9FcVfuPkvrdpsJ4Vker82NQaDlfhjiIRFs0sA9HgoEw4afqkYIqFmqPx63t7GFSvXk4/s1600/11.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6c3T_wBHxhiN_UoqKuLV7xhWluzJX7YQtQJ9tvl611_MqPHGJPglslHqUxn_tR7fE1JejViwO9FcVfuPkvrdpsJ4Vker82NQaDlfhjiIRFs0sA9HgoEw4afqkYIqFmqPx63t7GFSvXk4/s1600/11.JPG" height="200" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">เลือกการตั้งค่าฐานข้อมูลดังนี้</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcEUz1wFlUc3UZHC29B4-Xnq-5I-xvqccrH8HCcl1qqcdSDF7k6LdGyvMHCuBwAUkBLvm99k6WTPMx71RpoFTVRDjwncwVCGhF0IluRg9BLRj2myaiaEjWYpwpW3AI6wUDi0sXXtw2zEs/s1600/12.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcEUz1wFlUc3UZHC29B4-Xnq-5I-xvqccrH8HCcl1qqcdSDF7k6LdGyvMHCuBwAUkBLvm99k6WTPMx71RpoFTVRDjwncwVCGhF0IluRg9BLRj2myaiaEjWYpwpW3AI6wUDi0sXXtw2zEs/s1600/12.JPG" height="230" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">ใส่รหัสผ่านให้ตรงกับฐานข้อมูล (แนะนำให้เหมือนกันทั้งหมด 3 ครั้งที่ระบบถาม)</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUW75oxDZOZh8cCu-Y2W3yTfEmL4quSfPEI5Dk8LxiN4ax6XQ23ilK22trwmJygr1AVAgx-OALyPZvP7T3FxHYQDgcv_z1UnyxDrEa8tdfnGLnvWwKvqGytcS2Iqp8jkLMabPVXAWL-fA/s1600/13.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUW75oxDZOZh8cCu-Y2W3yTfEmL4quSfPEI5Dk8LxiN4ax6XQ23ilK22trwmJygr1AVAgx-OALyPZvP7T3FxHYQDgcv_z1UnyxDrEa8tdfnGLnvWwKvqGytcS2Iqp8jkLMabPVXAWL-fA/s1600/13.JPG" height="188" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">สั่งให้ lighttpd ทำงานใหม่ด้วยคำสั่ง</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo /etc/init.d/lighttpd restart</span></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBfLXy_T2IdfNTPhd5GSnXIZOB_CItUGEDQDCicnyJYQCu4viUsYqX9XwbImffjCYqxq0qqaLL0XcFLXuxv9D_RoOnomqcwu_jRq6LeQJ9HV-r7itCZILZ0jdekO1RL6VTdvzJDGjTYEA/s1600/14.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBfLXy_T2IdfNTPhd5GSnXIZOB_CItUGEDQDCicnyJYQCu4viUsYqX9XwbImffjCYqxq0qqaLL0XcFLXuxv9D_RoOnomqcwu_jRq6LeQJ9HV-r7itCZILZ0jdekO1RL6VTdvzJDGjTYEA/s1600/14.JPG" height="42" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">ทดสอบการเข้าใช้งาน phpmyadmin </span><span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">โดยเรียกใช้งานจากพวก Web Browser พิมพ์ Ip ของอุปกรณ์ที่เราติดตั้งไว้</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="background-color: white; font-size: 11.8181819915771px; line-height: 17.4720001220703px;">เช่น </span></span>192.168.1.78/phpmyadmin</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcowCIn-txXzOfi6MR-q5S4c0MdWlpcFaxPitLnc2rL2dqPdCIo7IXeszoSBNQhPXmHvpQRIpKFbhnzW8kfhWfAuWWIRo5iMqm1gh21XJ2SLN4JYbEfRlmrZub_WOuz5C_XbJlSzs9GX0/s1600/15.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcowCIn-txXzOfi6MR-q5S4c0MdWlpcFaxPitLnc2rL2dqPdCIo7IXeszoSBNQhPXmHvpQRIpKFbhnzW8kfhWfAuWWIRo5iMqm1gh21XJ2SLN4JYbEfRlmrZub_WOuz5C_XbJlSzs9GX0/s1600/15.JPG" height="277" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgINeB9h9P9JPkzDQTmciYo6251lvyz7_yfAqhyphenhyphenbozu5LGoNE1aym5yWPgDVraO04RQzqzRGFit1prI34QCeVJeDu9xM0yZwa4XbtTNgGA18a_1xJKRUzVwpHrd-qMzeaAcOVwAeQNHyb0/s1600/16.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgINeB9h9P9JPkzDQTmciYo6251lvyz7_yfAqhyphenhyphenbozu5LGoNE1aym5yWPgDVraO04RQzqzRGFit1prI34QCeVJeDu9xM0yZwa4XbtTNgGA18a_1xJKRUzVwpHrd-qMzeaAcOVwAeQNHyb0/s1600/16.JPG" height="257" width="400" /></a></div>
<br />
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">ติดตั้ง cacti ด้วยคำสั่ง</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo apt-get install cacti</span></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS-9CCDcTejNXNOVxxVKyKd-6cu2X-KmDsGQCgYiNk7I2aLP0hMEzzIodHf7w5aBjZJmsS-j0IO7pyEDN7PgJM7X4XUbbp6K1qGn8LuQYuqCrEFbyiFqx-A1V_wW9wCoNYIlV0kzfTp7w/s1600/17.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS-9CCDcTejNXNOVxxVKyKd-6cu2X-KmDsGQCgYiNk7I2aLP0hMEzzIodHf7w5aBjZJmsS-j0IO7pyEDN7PgJM7X4XUbbp6K1qGn8LuQYuqCrEFbyiFqx-A1V_wW9wCoNYIlV0kzfTp7w/s1600/17.JPG" height="212" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">กด ok</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimuyifKvQzJAp8pJthUlIebKg6dpJwqZmwzk7bYzlVboMYx7a_qLi1g8r219zCE6JlM9SIdmS-OmxRGsSfsXhS7qNLN7b7vX-mWmBWks3izM-GqyY92WEdp6Oy_zz1u2sCmP5mN7YznpA/s1600/18.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimuyifKvQzJAp8pJthUlIebKg6dpJwqZmwzk7bYzlVboMYx7a_qLi1g8r219zCE6JlM9SIdmS-OmxRGsSfsXhS7qNLN7b7vX-mWmBWks3izM-GqyY92WEdp6Oy_zz1u2sCmP5mN7YznpA/s1600/18.JPG" height="208" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">กด ok เพื่อ config database เลือก yes และ</span><span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">ใส่รหัสผ่านของ root mysql</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdNm3AbbI6Yi_DayW0DRTYHpMtkwpfgykSfwcBjCPuphZtTCFXHUvjXIzfZJqEfUl1hXJu3d7Gzup-CrUG8EiNiWmGN-okwLqwX8CdJEJRSJdqKdz9ZFVVDpSlSSNCQAvFAnrYBt_uf4g/s1600/19.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdNm3AbbI6Yi_DayW0DRTYHpMtkwpfgykSfwcBjCPuphZtTCFXHUvjXIzfZJqEfUl1hXJu3d7Gzup-CrUG8EiNiWmGN-okwLqwX8CdJEJRSJdqKdz9ZFVVDpSlSSNCQAvFAnrYBt_uf4g/s1600/19.JPG" height="192" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">กำหนดให้ cacti ใช้งานกับ lighttpd</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCykAcpEmWrsdbldewQCt6ZBCOKD5_UoMJpwHOu3cEyEaBXX60ZeMYQEwzdZhSDwYmZA0YGBdYxbUhViy9CRMaDsOv32Z2uQMZvWGtISnf1prvCynMXPl-RuoBdYwkocuwti8cwRc_y-Q/s1600/20.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCykAcpEmWrsdbldewQCt6ZBCOKD5_UoMJpwHOu3cEyEaBXX60ZeMYQEwzdZhSDwYmZA0YGBdYxbUhViy9CRMaDsOv32Z2uQMZvWGtISnf1prvCynMXPl-RuoBdYwkocuwti8cwRc_y-Q/s1600/20.JPG" height="222" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">สร้าง alias สำหรับการเข้าใช้งาน cacti</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">สรา้งไฟล์ /etc/lighttpd/conf-available/50-cacti.conf โดยมีข้อความดังนี้</span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo nano </span></span><span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11.8181819915771px; line-height: 17.4720001220703px;">/etc/lighttpd/conf-available/50-cacti.conf</span></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3zRe0cIyaIXucX1JzS0ufYvuJWGmpCCGc67xjtQY6OSDFm47KkEvxUTdx7UhoNgsS0aw1wxdDUFAVWfqRWNQZbqNNUkg_CIqMZd0fA4A49EEaqJ1VpmjqibYC49-Nq3rs1RM891ncGyI/s1600/21.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3zRe0cIyaIXucX1JzS0ufYvuJWGmpCCGc67xjtQY6OSDFm47KkEvxUTdx7UhoNgsS0aw1wxdDUFAVWfqRWNQZbqNNUkg_CIqMZd0fA4A49EEaqJ1VpmjqibYC49-Nq3rs1RM891ncGyI/s1600/21.JPG" height="9" width="320" /></a></div>
<br />
<span style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="background-color: white; font-size: 11.8181819915771px; line-height: 17.4720001220703px;">ใส่ข้อความข้างล่างนี้เข้าไปในไฟล์ </span></span><span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11.8181819915771px; line-height: 17.4720001220703px;">/etc/lighttpd/conf-available/50-cacti.conf</span><br />
<span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">alias.url += (</span><br />
<span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;"> "/cacti" => "/usr/share/cacti/site/",</span><br />
<span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">)</span><br />
<span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzn-wPvNqptPiCWcD4eruRfuALSmHBE9ZJrBP8e5P3OUES0szkRsiF_N7buvQ9-F-8AkK9IfpE2hgPrL7i05mIU1vPxzQitE5yxkslxBJdBxEdOrzAIB-kW_qkyENLk_e2LckStcwNVNs/s1600/22.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzn-wPvNqptPiCWcD4eruRfuALSmHBE9ZJrBP8e5P3OUES0szkRsiF_N7buvQ9-F-8AkK9IfpE2hgPrL7i05mIU1vPxzQitE5yxkslxBJdBxEdOrzAIB-kW_qkyENLk_e2LckStcwNVNs/s1600/22.JPG" height="258" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">สั่งให้ conf ทำงานด้วยคำสั่ง</span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo ln -s /etc/lighttpd/conf-available/50-cacti.conf /etc/lighttpd/conf-enabled/50-cacti.conf</span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">สั่งให้ lighttpd ทำงานใหม่ด้วยคำสั่ง </span><br style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;" /><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo /etc/init.d/lighttpd restart</span></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGA9QiRNh42bdffN1suuqAdmYEsW7_cQTMsN-ikTmm8XwQ5yZO-ASRiq2eYvco8UPGnYSA5UD-dC3kizbqY3cR6_bUIdSJiO5L6hAOwaFk1YlgvzIlSa3ZkKjUAGRyu7X7EwXNSoLIXmE/s1600/23.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGA9QiRNh42bdffN1suuqAdmYEsW7_cQTMsN-ikTmm8XwQ5yZO-ASRiq2eYvco8UPGnYSA5UD-dC3kizbqY3cR6_bUIdSJiO5L6hAOwaFk1YlgvzIlSa3ZkKjUAGRyu7X7EwXNSoLIXmE/s1600/23.JPG" height="65" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both;">
SETTING CACTI ON WEB GUI</h3>
<div>
<br /></div>
ส่วนนี้ไม่ขอลงรายละเอียดนะครับมันค่อนข้างอธิบายยาก<br />
1. ต้องสร้างอุปกรณ์ Create devices ที่ต้องการจะสร้างกราฟด้วย cacti<br />
2. ต้องสร้างกราฟ Create graphs ให้กับอุปกรณ์<br />
3. ดูว่ากราฟแสดงได้ไหม<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi77ZEZ3LgZET-5urC1JdTB2kx2Xw60F-K4TcMDULbA7MspMUSECL1397f__sio7p0mQoGAwu3w9nYgNlQ5ZRDsBuqPkhTsmRi_93sYDv54BGtyUicDO-lIX4L3b7h72sWeUOz23eC5rUs/s1600/24.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi77ZEZ3LgZET-5urC1JdTB2kx2Xw60F-K4TcMDULbA7MspMUSECL1397f__sio7p0mQoGAwu3w9nYgNlQ5ZRDsBuqPkhTsmRi_93sYDv54BGtyUicDO-lIX4L3b7h72sWeUOz23eC5rUs/s1600/24.JPG" height="277" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOpEXcUcZEOgZNT9epCk6vCzoCFR6cOAScXKGRg4zQ8LXRFa4PgXeoy4Exe4lM6vzvUKa7dyNbDSxUPxk9Xq0sPRs0ZcqDFLU6Z2_EZUSjevpl1PfnBlb4-QKfsjbQUwY52I1R7guGuO4/s1600/25.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOpEXcUcZEOgZNT9epCk6vCzoCFR6cOAScXKGRg4zQ8LXRFa4PgXeoy4Exe4lM6vzvUKa7dyNbDSxUPxk9Xq0sPRs0ZcqDFLU6Z2_EZUSjevpl1PfnBlb4-QKfsjbQUwY52I1R7guGuO4/s1600/25.JPG" height="217" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9jmXepj1b6lgy-TYjTpUYtPrpuv8r_fS374KfSEfhNOTJccHG_SB148giXEZ6uCcmFIDrvhSkEi_0izW0U8JN673mLD_G003cj9S7eRfKndsWQX3vi0ttCSwIHehYYpNKne-OtsSx-TU/s1600/26.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9jmXepj1b6lgy-TYjTpUYtPrpuv8r_fS374KfSEfhNOTJccHG_SB148giXEZ6uCcmFIDrvhSkEi_0izW0U8JN673mLD_G003cj9S7eRfKndsWQX3vi0ttCSwIHehYYpNKne-OtsSx-TU/s1600/26.JPG" height="400" width="278" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_rcMKpc6IK76ihPd-OZQQ1FMmANsMMjYz8uwelm81wkUrdleX2AY9E1801eAexD4ItOftE2eeGfE6j8jz82IKAE-H8sEXf_zk8EyI2rb5M_rEqmdlgVEKRELOhWrSOYFY2argsV-v18A/s1600/27.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_rcMKpc6IK76ihPd-OZQQ1FMmANsMMjYz8uwelm81wkUrdleX2AY9E1801eAexD4ItOftE2eeGfE6j8jz82IKAE-H8sEXf_zk8EyI2rb5M_rEqmdlgVEKRELOhWrSOYFY2argsV-v18A/s1600/27.JPG" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1-tOxMU9xUZor3HQw8-gXeDb0m704onydJ2qga6G0-O9qdIJeqC8O7r5zjpwm9b8IZdSrbbH7uAIQMjAdZApCbKfDQnTZ-BCAt1-mTdOv3oLuH67qEbUkrvDG_mnRG_AlOTozh1UAq9w/s1600/30.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1-tOxMU9xUZor3HQw8-gXeDb0m704onydJ2qga6G0-O9qdIJeqC8O7r5zjpwm9b8IZdSrbbH7uAIQMjAdZApCbKfDQnTZ-BCAt1-mTdOv3oLuH67qEbUkrvDG_mnRG_AlOTozh1UAq9w/s1600/30.JPG" height="192" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgVaPpuiR7cCzkAR0vtVKcZhdXeh_hTyDxQty9CV9QS2lQ-OyG9bl7ieXwrRTGf1acOUInwpTvY7xhQVd56Soo0sGMI-qpLePrpR6rhk9vmH__nGqA6xV5UOfRCASNNVqppW6EkIAWqV4/s1600/31.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgVaPpuiR7cCzkAR0vtVKcZhdXeh_hTyDxQty9CV9QS2lQ-OyG9bl7ieXwrRTGf1acOUInwpTvY7xhQVd56Soo0sGMI-qpLePrpR6rhk9vmH__nGqA6xV5UOfRCASNNVqppW6EkIAWqV4/s1600/31.JPG" height="165" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqgZoZk8ZDWL7g9byxk2XQwiMqC1oNsovPmRtfns3zYQOvKKhLIUpMK2pJVMJ8DrpTy4LfQ6QCYF3iypFaeB2esOPNfEQXPZeoHEyB05PplD5YUqkW7GHnvXrahCu4O9I2np8V7c7P8Ak/s1600/32.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqgZoZk8ZDWL7g9byxk2XQwiMqC1oNsovPmRtfns3zYQOvKKhLIUpMK2pJVMJ8DrpTy4LfQ6QCYF3iypFaeB2esOPNfEQXPZeoHEyB05PplD5YUqkW7GHnvXrahCu4O9I2np8V7c7P8Ak/s1600/32.JPG" height="162" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRniHwhIwhAKGsOex61UrG65WRUfOPwT6OQckPdUYiKaNCjZIJ27LGexQNnrHdZfppY_kEnQ7rLu1BHM5Vf73wPHuvfpfyzEM8t2yyS50165t8Qo82a6eppgQods7luG3GzOyNjH3NosU/s1600/33.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRniHwhIwhAKGsOex61UrG65WRUfOPwT6OQckPdUYiKaNCjZIJ27LGexQNnrHdZfppY_kEnQ7rLu1BHM5Vf73wPHuvfpfyzEM8t2yyS50165t8Qo82a6eppgQods7luG3GzOyNjH3NosU/s1600/33.JPG" height="170" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSJ2DVb_KU72Ss8WnOFCbtvXGKGK2D4NNYmPCoyZwUnF-cSTugRIEVQATCMSMUGitWgqfMQmAsP6iK22b37iAYmKVn8IQbiXGS5LLjKH8MSvQnNT_iFPtSGvyvfPVMJBfnfliPNc6rto8/s1600/34.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSJ2DVb_KU72Ss8WnOFCbtvXGKGK2D4NNYmPCoyZwUnF-cSTugRIEVQATCMSMUGitWgqfMQmAsP6iK22b37iAYmKVn8IQbiXGS5LLjKH8MSvQnNT_iFPtSGvyvfPVMJBfnfliPNc6rto8/s1600/34.JPG" height="165" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOzEwi1g4Nfg8pgp0szym00_H3zR53K36YdjlAQCClJ52_18XCQQJNOmGleuXkn_Pl1_Rj1URyyiQNDlKx1bstRdpldyRXl2HLU2zOog75cE5xUUjrIqWRmz-QiXXV74OVFrPOosZpOk0/s1600/35.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOzEwi1g4Nfg8pgp0szym00_H3zR53K36YdjlAQCClJ52_18XCQQJNOmGleuXkn_Pl1_Rj1URyyiQNDlKx1bstRdpldyRXl2HLU2zOog75cE5xUUjrIqWRmz-QiXXV74OVFrPOosZpOk0/s1600/35.JPG" height="168" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFhtgOhsqIZmM5jD5mqMogXJNent0sdwy_Wy-4UfnS_sahByaE02v27GSP_f3sDiHf_ZcF-2Vk5yBETCigZnYDWjx5oZTDB-qB8bPSIjX_BG0lNlDEAJchEhJQ-MZ3xgV8IGZO1nJ9gsc/s1600/36.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFhtgOhsqIZmM5jD5mqMogXJNent0sdwy_Wy-4UfnS_sahByaE02v27GSP_f3sDiHf_ZcF-2Vk5yBETCigZnYDWjx5oZTDB-qB8bPSIjX_BG0lNlDEAJchEhJQ-MZ3xgV8IGZO1nJ9gsc/s1600/36.JPG" height="162" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgis2xEOtldn5SvlkNioTtaWuVJqtnQMgFSwZinNHfRimwUaJrZv_8FZPHeTbfRc6pcqElgdC6LG-BOCPoZU0drWJ0MjmNh1SG0RFmoO5h3T_Kjvnhbj4kfzto_lmEQWUhK3fpd5RG1R5k/s1600/37.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgis2xEOtldn5SvlkNioTtaWuVJqtnQMgFSwZinNHfRimwUaJrZv_8FZPHeTbfRc6pcqElgdC6LG-BOCPoZU0drWJ0MjmNh1SG0RFmoO5h3T_Kjvnhbj4kfzto_lmEQWUhK3fpd5RG1R5k/s1600/37.JPG" height="176" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWhN3csZolPub_tDF1QpAmhuVl8cOXTEviiV18T8N_8M0Lc9N7ZyD4h2h36TXTGy_zwRQejPozamgU1tkTNZU4GW7080gc5eRikG6Qcgk1GwfyB1tBEdke-MD3P0EYS-pJZqe9guN3Yug/s1600/38.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWhN3csZolPub_tDF1QpAmhuVl8cOXTEviiV18T8N_8M0Lc9N7ZyD4h2h36TXTGy_zwRQejPozamgU1tkTNZU4GW7080gc5eRikG6Qcgk1GwfyB1tBEdke-MD3P0EYS-pJZqe9guN3Yug/s1600/38.JPG" height="175" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigBLXh2n4pfXZzGxnToijc1O7qsrGOSA8tjbvCa-aDyI6s63LWxSsfi7Zw34Y2R83Jn0ynzrr0LRpyczd-VrqwikPMqcYJ9gQ-8jdzYenxZiqcn3-9-rvjqXXSn_4m5lnYrF8Bm88koA8/s1600/39.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigBLXh2n4pfXZzGxnToijc1O7qsrGOSA8tjbvCa-aDyI6s63LWxSsfi7Zw34Y2R83Jn0ynzrr0LRpyczd-VrqwikPMqcYJ9gQ-8jdzYenxZiqcn3-9-rvjqXXSn_4m5lnYrF8Bm88koA8/s1600/39.JPG" height="176" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmAB8s-EtM7q3nUb5pcDN_S-_Wxm0KYqEK22rl4WJYSMn9Zp3N4_kys0NPA_hNJQpk183mTCjr7ktz1Y6SBqkksqN5XuOEPzfMdBEXi1afWcXIxV4gQoxPULvmKZwkNRoDd6SMlLvHrN8/s1600/40.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmAB8s-EtM7q3nUb5pcDN_S-_Wxm0KYqEK22rl4WJYSMn9Zp3N4_kys0NPA_hNJQpk183mTCjr7ktz1Y6SBqkksqN5XuOEPzfMdBEXi1afWcXIxV4gQoxPULvmKZwkNRoDd6SMlLvHrN8/s1600/40.JPG" height="176" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR01bfPdrB20jNuMFTvRPT0-EELi4OAR-VT6EhFTkLJ-VhQzzpgEYNo6U0MsG9TzJgKV56zG8zO25BAn3RwgW7hAi27CReZPCrGzeQzPJn0anvgEeN2wvYum3ngyWxjFIXpnbKcDScr84/s1600/41.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR01bfPdrB20jNuMFTvRPT0-EELi4OAR-VT6EhFTkLJ-VhQzzpgEYNo6U0MsG9TzJgKV56zG8zO25BAn3RwgW7hAi27CReZPCrGzeQzPJn0anvgEeN2wvYum3ngyWxjFIXpnbKcDScr84/s1600/41.JPG" height="173" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwO_5ZC5IC_hFqFg_o9s76mqQR2JwiJotmgmIV-8Go4NB-f2kHjA5DlfIma3o8W3HjgILpGX0bbyOr4hBMVscFYjuTm6S81Mh5JoJgLdNS2AhyKxR6OZj6_j1AiCM-EypmKKjz4Y9z2W0/s1600/42.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwO_5ZC5IC_hFqFg_o9s76mqQR2JwiJotmgmIV-8Go4NB-f2kHjA5DlfIma3o8W3HjgILpGX0bbyOr4hBMVscFYjuTm6S81Mh5JoJgLdNS2AhyKxR6OZj6_j1AiCM-EypmKKjz4Y9z2W0/s1600/42.JPG" height="161" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
Change Port Lighttpd</h3>
<div>
หากต้องการเปลี่ยน Port ด้วยคำสั่ง</div>
<div>
sudo nano /etclighttpd/lighttpd.config</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsd4C20qbCoVmGn7R550WGex5JzJ3y9ZPm_Lvs_7X0ih8UyO4vleUqr_AlLn8IPmdmM9CRmwfAdoleAPu4qSM8u4Jmxv-Tf6lhlcCwDkYCeH4tCs2ha81ka9M2m_mjHL1QFywq4ZV9m5c/s1600/port.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsd4C20qbCoVmGn7R550WGex5JzJ3y9ZPm_Lvs_7X0ih8UyO4vleUqr_AlLn8IPmdmM9CRmwfAdoleAPu4qSM8u4Jmxv-Tf6lhlcCwDkYCeH4tCs2ha81ka9M2m_mjHL1QFywq4ZV9m5c/s1600/port.JPG" height="9" width="320" /></a></div>
<br />
หาบรรทัดที่ เขียนว่า<br />
server.port = 80<br />
แก้เป็นหมายเลข Port อะไรก็ได้<br />
server.port = 8800<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNGR1RbzD7sCqet-6LYnqaJPbpD6R_jxUoRW_zwQDrtD-EDAdUGxNuVC0RcwNnoh1HDboUNF7UKsgXw1BOnHwqCjBA2b6l3hBlmLu_6UOAsSBp93djp3-lkeFN4fPR8WBumrc4QTWOaRs/s1600/port1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNGR1RbzD7sCqet-6LYnqaJPbpD6R_jxUoRW_zwQDrtD-EDAdUGxNuVC0RcwNnoh1HDboUNF7UKsgXw1BOnHwqCjBA2b6l3hBlmLu_6UOAsSBp93djp3-lkeFN4fPR8WBumrc4QTWOaRs/s1600/port1.JPG" height="208" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">สั่งให้ lighttpd ทำงานใหม่ด้วยคำสั่ง </span></div>
<span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17.4720001220703px;">sudo /etc/init.d/lighttpd restart</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpx2AeeKi_E9sfRrNb0MtWx_sjau7zYVdfO3L5sALbvTeCMxI4Uzt07sC9O8Sa7MaKJfBabG_4s22Ms3r6mTq6j2p8sAgejKvahjvq-H7MJUxjkP2EeVzh6URjYbdunVfBgGTxaZncPj8/s1600/port2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpx2AeeKi_E9sfRrNb0MtWx_sjau7zYVdfO3L5sALbvTeCMxI4Uzt07sC9O8Sa7MaKJfBabG_4s22Ms3r6mTq6j2p8sAgejKvahjvq-H7MJUxjkP2EeVzh6URjYbdunVfBgGTxaZncPj8/s1600/port2.JPG" height="37" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
TESTING</h3>
ทดสอบเข้าดูกราฟของบุคคลนอก โดยการเพิ่ม User Guest เข้าไปดูกราฟได้อย่างเดียวไม่สามารถ config อะไรด้วย เพราะไม่ใช่ User Admin<br />
<br />
ลิ้งเข้าดูออนไลน์ <a href="http://booindy3bb.zapto.org:8800/cacti/">http://booindy3bb.zapto.org:8800/cacti/</a><br />
User : guest<br />
passwd : 1234<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjolaZ62ETKqpRFzzFHzu-yhVkv8mS6FwEkJqwjT_HUSrqnGT74OGNmOAe6bAhBABUt_eOoMEIUKRIvSKiq0MrNuajsyDGZ-Rnm3qHfJtEECPFQiIvMIljl5BMnxgr_gZ8mUdYD0-TaWGs/s1600/45.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjolaZ62ETKqpRFzzFHzu-yhVkv8mS6FwEkJqwjT_HUSrqnGT74OGNmOAe6bAhBABUt_eOoMEIUKRIvSKiq0MrNuajsyDGZ-Rnm3qHfJtEECPFQiIvMIljl5BMnxgr_gZ8mUdYD0-TaWGs/s1600/45.JPG" height="251" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTabHH4qaUZntfyJ3j22wHi78DE81MISdZm-kLCVy65IV9cQZjyK5v3I5NZeFLqiGGqwLliLA0qgdyaNYV4giAc-0K0pXJiL4fdQlXuW_Jx6YiIJXDg2hKQ-h0dSyWlevpd3RElwf48aE/s1600/46.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTabHH4qaUZntfyJ3j22wHi78DE81MISdZm-kLCVy65IV9cQZjyK5v3I5NZeFLqiGGqwLliLA0qgdyaNYV4giAc-0K0pXJiL4fdQlXuW_Jx6YiIJXDg2hKQ-h0dSyWlevpd3RElwf48aE/s1600/46.JPG" height="190" width="400" /></a></div>
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIZFlk772aOAllS6fwKkqAUcWq_3Ai9daWEt-TFPVTbIttQ4cDeCP2mkYdIbKtABw57SnblKt5IW2VEEQ8upGPm5CS9ucYTUrEEFGq_vQGwpcb5ZPUc2ohhKy9d2zeUeDVWZCXF1EfB6o/s1600/43.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIZFlk772aOAllS6fwKkqAUcWq_3Ai9daWEt-TFPVTbIttQ4cDeCP2mkYdIbKtABw57SnblKt5IW2VEEQ8upGPm5CS9ucYTUrEEFGq_vQGwpcb5ZPUc2ohhKy9d2zeUeDVWZCXF1EfB6o/s1600/43.JPG" height="188" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs6Ap51TrS6UWSCEYgheqRO_v5_UzG2X3mvcrFDHn-qaJgA7JUSRXCnzOhaIwbBp0daCiKMtw5yimp836hCH6-RD6hMEU1p6yONcKwK7ijKx9vvs14kDU_xRURooZhoSw-09Q39C99TkM/s1600/44.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs6Ap51TrS6UWSCEYgheqRO_v5_UzG2X3mvcrFDHn-qaJgA7JUSRXCnzOhaIwbBp0daCiKMtw5yimp836hCH6-RD6hMEU1p6yONcKwK7ijKx9vvs14kDU_xRURooZhoSw-09Q39C99TkM/s1600/44.JPG" height="193" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
VIDEO</h3>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div style="text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/6cDeN01QDOo?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
RF : http://www.phuketadmin.org/index.php?topic=7258.0</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a></div>
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a><br />
<a href="https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark">https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark</a><br />
<a href="http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos">http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos</a><br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-42714549678330275442014-10-29T20:59:00.000+07:002014-11-15T18:51:31.462+07:00การติดตั้ง MRTG สำหรับ Monitor Mikrotik บน Raspberry Pi<span style="font-family: inherit;"><br /></span>
<br />
<h2>
<span style="font-family: inherit;">การติดตั้ง MRTG สำหรับ Monitor Mikrotik บน Raspberry Pi</span></h2>
<div>
<span style="font-family: inherit;"><br /></span>
การติดตั้ง MRTG ที่อุปกรณ์ Raspberry Pi เพื่อที่จะตรวจสอบ Traffic และ Log ของข้อมูลการใช้งานสำหรับ Mikrotik เพื่อใช้ในการวิเคราะห์ในการใช้งานอินเตอร์เน็ตซึ่งสามารถสรุป เป็น วัน สัปดาห์ เดือน ปี โดยจะแสดงผลเป็นกราฟ แต่ละ Interface ซึ่งง่ายต่อการวิเคราะห์<br />
<br /></div>
<div>
<span style="font-family: inherit;"><a href="http://oss.oetiker.ch/mrtg/doc/mrtg.en.html">MRTG คือ</a> </span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1TtoryJeFv29AqpNTGIZV3kYG-osFb44skN4EV7zc_bDtAelBl0R6CJ9GZvjojagY0ymXeB_rA678IUr-7oTxpiY4PQPVDCSUycqSC5hGldPgeqxgEtyDFuKlnUXeKkV-G6Vft-X-ytw/s1600/13.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1TtoryJeFv29AqpNTGIZV3kYG-osFb44skN4EV7zc_bDtAelBl0R6CJ9GZvjojagY0ymXeB_rA678IUr-7oTxpiY4PQPVDCSUycqSC5hGldPgeqxgEtyDFuKlnUXeKkV-G6Vft-X-ytw/s1600/13.JPG" height="167" width="400" /></a></div>
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;"><br /></span></div>
<div>
ติดตั้ง Apache2</div>
<div>
<span style="font-family: inherit;">sudo apt-get install apache2</span><br />
<pre style="background: url(http://1rtdn21e2k8w27koup1eiasxspe.wpengine.netdna-cdn.com/wp-content/themes/intenseschool/images/pre_bg.gif) repeat rgb(255, 255, 255); border: 1px solid rgb(211, 211, 211); box-sizing: border-box; clear: both; color: #555555; font-size: 11px; font-stretch: normal; line-height: 19px; margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; padding: 18px 20px 15px; vertical-align: baseline;"><span style="font-family: inherit;">
</span></pre>
</div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit; margin-left: 1em; margin-right: 1em;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxRUM_1LBfDZEKyf0aIhDWfZgxSAgVNnmJRag4Xnpi4iya8qtQ9BQ2eBeL0skF1aSqDOiqqi5bQA7EiXmc7mVxS6sjZQtQduM7vu5nFFQlOyG_oL6VmcbkabsYNsAj2-NsEGtIYthx374/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxRUM_1LBfDZEKyf0aIhDWfZgxSAgVNnmJRag4Xnpi4iya8qtQ9BQ2eBeL0skF1aSqDOiqqi5bQA7EiXmc7mVxS6sjZQtQduM7vu5nFFQlOyG_oL6VmcbkabsYNsAj2-NsEGtIYthx374/s1600/1.JPG" height="173" width="400" /></a></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ทดสอบ Web Server ด้วย Apache ด้วย 192.168.1.78</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit; margin-left: 1em; margin-right: 1em;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJBqL2MGVKDZmz1z_K37F-_iz3g7j_nFifjJ3LEUK0aeuSuV7Unahy3IhiMr8M8CHDA-vbbjUYTKy_5v-bc4LWRVFc562I7dJRakVZIm4kTQSa2y1JDaMHtQomT9GEKVI8B8h5isF8_qY/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJBqL2MGVKDZmz1z_K37F-_iz3g7j_nFifjJ3LEUK0aeuSuV7Unahy3IhiMr8M8CHDA-vbbjUYTKy_5v-bc4LWRVFc562I7dJRakVZIm4kTQSa2y1JDaMHtQomT9GEKVI8B8h5isF8_qY/s1600/2.jpg" height="282" width="400" /></a></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ตั้งค่า Mikrotik</div>
<div class="separator" style="clear: both; text-align: left;">
ต้อง bypass ให้กับ Raspberry Pi ด้วย เดียวติด Authen (อันนี้ขอไม่ลงรายละเอียด) </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjnTi6Fe0DMv6PjCrU-rH4fR4LDFvOyjuZWiQKxNyul762lqUuVaHyKw5oYDFM0qKLQqDYw3dfkTeNZY63KoWOx3EfwKJuN0QNX52S-shgFP9Cog4kVXnuUv62GbX1PfjkTNc_UJq9wE0/s1600/12.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjnTi6Fe0DMv6PjCrU-rH4fR4LDFvOyjuZWiQKxNyul762lqUuVaHyKw5oYDFM0qKLQqDYw3dfkTeNZY63KoWOx3EfwKJuN0QNX52S-shgFP9Cog4kVXnuUv62GbX1PfjkTNc_UJq9wE0/s1600/12.JPG" height="215" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ip > SNMP </div>
<div class="separator" style="clear: both; text-align: left;">
enable snmp กด Communities</div>
<div class="separator" style="clear: both; text-align: left;">
กด [+] เพิ่ม</div>
<div class="separator" style="clear: both; text-align: left;">
ใส่ IP Address ของ Raspberry Pi กด OK เสร็จ</div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLQSykc8L0N1pcint21qW4Oq1X9cN-CVMxRgSXlP4YUU_qsRClRuVYngNUh211zSqlBkHCUC8qh4NkBLuQTM7f7LNZtDCx700mi4U4Cp5nffHbB3IO4eqzsRIYHIzh2tTG_TIyMySR98s/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLQSykc8L0N1pcint21qW4Oq1X9cN-CVMxRgSXlP4YUU_qsRClRuVYngNUh211zSqlBkHCUC8qh4NkBLuQTM7f7LNZtDCx700mi4U4Cp5nffHbB3IO4eqzsRIYHIzh2tTG_TIyMySR98s/s1600/11.jpg" height="237" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
ติดตั้ง MRTG<br />
<br />
<pre style="background: url(http://1rtdn21e2k8w27koup1eiasxspe.wpengine.netdna-cdn.com/wp-content/themes/intenseschool/images/pre_bg.gif) repeat rgb(255, 255, 255); border: 1px solid rgb(211, 211, 211); box-sizing: border-box; clear: both; color: #555555; font-family: Consolas, 'Andale Mono', Courier, 'Courier New', monospace; font-size: 11px; font-stretch: normal; line-height: 19px; margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; padding: 18px 20px 15px; vertical-align: baseline;">sudo apt-get install mrtg</pre>
<br />
<span style="font-family: inherit; font-weight: normal;"><span style="background-color: white; font-size: 8pt; line-height: 12pt;">กำหนดค่าให้กับ /etc/mrtg.cfg</span></span><br />
<span style="font-family: inherit; font-weight: normal;"><span style="background-color: white; font-size: 8pt; line-height: 12pt;">sudo cfgmaker </span><a href="mailto:public@192.168" style="border: 0px; color: #4b4b4b; font-size: 8pt; font-style: inherit; line-height: 12pt; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">public@192.168</a><span style="background-color: white; font-size: 8pt; line-height: 12pt;">.1.1 >> /etc/mrtg.cfg</span></span><br />
<span style="background-color: white; font-size: 8pt; line-height: 12pt;"><span style="font-family: inherit;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1OTEJMcHAs-PgYSe7PNVXziyN1Z_Uc0dBQFy4Wan-HG1gUjkMymbpoAiPj2uLmcAF0oo_LOtZAiteI9TfY-Kzg5h_oc6FaNr3Vou_e2J6321HFrJSbdSojKqLkAzJKdskyyaPHX3eiw/s1600/3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1OTEJMcHAs-PgYSe7PNVXziyN1Z_Uc0dBQFy4Wan-HG1gUjkMymbpoAiPj2uLmcAF0oo_LOtZAiteI9TfY-Kzg5h_oc6FaNr3Vou_e2J6321HFrJSbdSojKqLkAzJKdskyyaPHX3eiw/s1600/3.JPG" height="11" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;">กำหนดค่าให้กับ index.html</pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">sudo su</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">sudo indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;">แก้ไขไฟล์ mrtg.cfg</pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">sudo nano /etc/mrtg.cfg</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWNZ6qEtHwgRT7J72XzBeuvBzeaGT6Nirzp4nzIdSgCBpbsYc4-twyiia3uyeQZPE1NJmnj0UcaW4KyxyqNKq2UIuqRPS6HO-ddsU8XQoWqhkRlJqriK_vuPRFa2aEEAE9qdwV5dJvDNg/s1600/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWNZ6qEtHwgRT7J72XzBeuvBzeaGT6Nirzp4nzIdSgCBpbsYc4-twyiia3uyeQZPE1NJmnj0UcaW4KyxyqNKq2UIuqRPS6HO-ddsU8XQoWqhkRlJqriK_vuPRFa2aEEAE9qdwV5dJvDNg/s1600/4.JPG" height="28" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">เพิ่ม <span style="background-color: white;"><span style="color: #333333; font-size: 12px; line-height: 20.3999996185303px;">RunAsDaemon: YES</span><span style="color: #333333; font-size: 12px; line-height: 20.3999996185303px;"> ไว้ล่าง </span></span><span style="background-color: white; font-size: 8pt; line-height: 12pt;">WriteExpires: Yes</span></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK1ITfY1PL__WhjPfgJwtjtMIYA6xf1n6-h5TE33dtIgxnKJLy_XjHRQXK9y7IdWRZQrg42bOlJdCRG0uOOfMEsx-Ohe5kpNmWyxG5oZdjqkkIaiwWCwzRmOgDJe8jxIi17Jt4X9l0mvg/s1600/5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK1ITfY1PL__WhjPfgJwtjtMIYA6xf1n6-h5TE33dtIgxnKJLy_XjHRQXK9y7IdWRZQrg42bOlJdCRG0uOOfMEsx-Ohe5kpNmWyxG5oZdjqkkIaiwWCwzRmOgDJe8jxIi17Jt4X9l0mvg/s1600/5.JPG" height="251" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">เพิ่ม Code ไว้ใน /etc/init.d/mrtg</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">sudo nano /etc/init.d/mrtg</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<pre style="background: url(http://1rtdn21e2k8w27koup1eiasxspe.wpengine.netdna-cdn.com/wp-content/themes/intenseschool/images/pre_bg.gif) repeat rgb(255, 255, 255); border: 1px solid rgb(211, 211, 211); box-sizing: border-box; clear: both; color: #555555; font-size: 11px; font-stretch: normal; line-height: 19px; margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; padding: 18px 20px 15px; vertical-align: baseline;"><span style="font-family: inherit;">#! /bin/sh
### BEGIN INIT INFO
# Provides: mrtg
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: MRTG initscript
# Description: This script is used to manage mrtg service
### END INIT INFO
# Author: Muhammad Furqan <muhammad.furqan@gmail.com>
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Multi Router Traffic Grapher (MRTG)"
NAME="mrtg"
DAEMON=/usr/bin/$NAME
DAEMON_ARGS="/etc/mrtg.cfg –user root --logging /var/log/mrtg.log"
case "$1" in
start)
echo "Starting $DESC..."
env LANG=C $DAEMON $DAEMON_ARGS
echo "$NAME started."
;;
stop)
echo "Stopping $DESC..."
pkill $NAME &> /dev/null
echo "$NAME stopped."
;;
*)
FULL_NAME=/etc/init.d/$NAME
echo "Usage: $FULL_NAME {start|stop}." >&2
;;
esac
exit</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMpKgQAIuoTqZkBJ1i5R97jgmJskvPzyiFQvxb7H2l5mVB09zP0jVTtkMxiUfwa10txnN2TQBdiIbu0LgcBJPrn-pSE5Bto_LgBlwc0EAsY4W15T9UVWb1e79VvTiSJ_bv7-2D3x_Bia8/s1600/6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMpKgQAIuoTqZkBJ1i5R97jgmJskvPzyiFQvxb7H2l5mVB09zP0jVTtkMxiUfwa10txnN2TQBdiIbu0LgcBJPrn-pSE5Bto_LgBlwc0EAsY4W15T9UVWb1e79VvTiSJ_bv7-2D3x_Bia8/s1600/6.JPG" height="257" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;">ตั้ง <span style="background-color: #f1f1f1; color: #333333; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20.3999996185303px;">startup</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">sudo update-rc.d mrtg defaults</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">
</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">ตรวจสอบ</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><pre style="border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">sudo ps -aux | grep mrtg</span></pre>
<pre style="border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">sudo ps -aux | grep mrtg</span></pre>
</pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGmTb3DJ6_HuIDnDdr5gVabMYN8DWGCpDQBudEZq1tiyiwaYpJMfDJf8Ab0xsKuWJwLjfBcGWu3MntqAuwnhmlXCVmhq8m7JUCsxqf6-vOFA5ryoySIc7i7UlRqCQv7xmij-oTAGpxG5o/s1600/7.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGmTb3DJ6_HuIDnDdr5gVabMYN8DWGCpDQBudEZq1tiyiwaYpJMfDJf8Ab0xsKuWJwLjfBcGWu3MntqAuwnhmlXCVmhq8m7JUCsxqf6-vOFA5ryoySIc7i7UlRqCQv7xmij-oTAGpxG5o/s1600/7.JPG" height="173" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;">รีสตาร์ต MRTG</pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">sudo /etc/init.d/mrtg restart</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">
</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">
</span></pre>
<h2 style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;">
<b><br /></b></h2>
<h3>
<b>TESTTING</b></h3>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">
</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;">ลิ้งดูกราฟของ Admin : <a href="booindy3bb.zapto.org:8008/mrtg/">booindy3bb.zapto.org:8008/mrtg/</a> (ดูได้จนกว่าจะมีการเปลียนแปลง)</pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">
</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">
</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">ทดสอบเปิด Web browser พิมพ์ 192.168.1.78/mrtg ก็จะได้ดังภาพ หากไม่ผิดพลาดขั้นตอนใด</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">
</span></pre>
<pre style="background-color: white; border: 0px none; direction: ltr; font-size: 8pt; line-height: 12pt; margin: 0em; outline: 0px; overflow: visible; padding: 0px; vertical-align: baseline; width: 665.921875px;"><span style="font-family: inherit;">แสดง Interface ทั้งหมดที่มีในตัว Mikrotik : ether1,ether2,ether3,ether4,ether5,pppoe-out1 กราฟจะมีการอัพเดททุก 5 นาที</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIlb-lgFFxDH24BaAaVOirWPc1Ed19Uy9D_Mf28wzwNPxkqclbJUoMgqCKSvA5O2xejEQEX0tJjpeIR2Zu7KohD3z36pxtwYRWzRovmivOxUXbsSBru7XPAO7ARR8urElpWI5ZltxUIMs/s1600/8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIlb-lgFFxDH24BaAaVOirWPc1Ed19Uy9D_Mf28wzwNPxkqclbJUoMgqCKSvA5O2xejEQEX0tJjpeIR2Zu7KohD3z36pxtwYRWzRovmivOxUXbsSBru7XPAO7ARR8urElpWI5ZltxUIMs/s1600/8.jpg" height="250" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">เมื่อคลิกที่ภาพก็จะแสดงรายละเอียดของ Interface นั้น</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicrBgS9oJyTg1xq2mRHo57NMhQ56cPynCfDGXRl15SVUjieFVqTC8xPAb9-o0ZuCOjoHUwjea2i9iUwD_OCVR2PaaSPkuBB_9bro-BE7eBQU4E50JQ6QPwJELWSRRm0SN2d4iMBrSK3ds/s1600/9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicrBgS9oJyTg1xq2mRHo57NMhQ56cPynCfDGXRl15SVUjieFVqTC8xPAb9-o0ZuCOjoHUwjea2i9iUwD_OCVR2PaaSPkuBB_9bro-BE7eBQU4E50JQ6QPwJELWSRRm0SN2d4iMBrSK3ds/s1600/9.JPG" height="400" width="157" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">ทดสอบแสดงใน SSH โดยพิมพ์ </span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">sudo tail -f /var/log/mrtg.log</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;"><br /></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg9K7XmBTCrrEnT-nHt9Hjiy_NfxKmvukBeAE1pzjuVVkmz3YDjzKky0NiZ4e1JXYMtLQkuvc32WACycvqqeEUb_IvAQ2PExLPRlQd5otjCHQiPh3k1ypOPdaNIo4dYI053DJBpZnPSnk/s1600/10.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg9K7XmBTCrrEnT-nHt9Hjiy_NfxKmvukBeAE1pzjuVVkmz3YDjzKky0NiZ4e1JXYMtLQkuvc32WACycvqqeEUb_IvAQ2PExLPRlQd5otjCHQiPh3k1ypOPdaNIo4dYI053DJBpZnPSnk/s1600/10.JPG" height="258" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilS5YTPrGe-36mVjZRY0JAKtCH4lF57JRKjZmJwOzA5ecmUXJemZpTQKUf9f00awUwuM44EjFb-pAxNOxYpH_rrju1dv8kuoRgsbJWrji6iR-f2uDkrotIrWdXY3aHUzPTlMoyqggbd3c/s1600/Screenshot_2014-10-29-19-42-35.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilS5YTPrGe-36mVjZRY0JAKtCH4lF57JRKjZmJwOzA5ecmUXJemZpTQKUf9f00awUwuM44EjFb-pAxNOxYpH_rrju1dv8kuoRgsbJWrji6iR-f2uDkrotIrWdXY3aHUzPTlMoyqggbd3c/s1600/Screenshot_2014-10-29-19-42-35.jpg" height="400" width="225" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhawjO60r4lHLyba6BK_TF6JD4dwUSeJopMGrkuFs1GESQDY16-N7H61gf1nCUWK_imNKv-wnapZZx4umrdp3Zgx0EGPllsBHvAuPrpZqB5Zfefi5cDGQ_1LGifX4MApuUHsELQ91_2jh4/s1600/Screenshot_2014-10-29-19-42-02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhawjO60r4lHLyba6BK_TF6JD4dwUSeJopMGrkuFs1GESQDY16-N7H61gf1nCUWK_imNKv-wnapZZx4umrdp3Zgx0EGPllsBHvAuPrpZqB5Zfefi5cDGQ_1LGifX4MApuUHsELQ91_2jh4/s1600/Screenshot_2014-10-29-19-42-02.jpg" height="400" width="225" /></a></div>
<h3 style="clear: both; text-align: left;">
VIDEO</h3>
<div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/9j9ZVlQlk2s?feature=player_embedded' frameborder='0'></iframe></div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><br /></span></div>
<div>
<span style="font-family: inherit;">RF : http://resources.intenseschool.com/network-monitoring-with-mrtg-on-raspberry-pi/</span></div>
<div>
<span style="font-family: inherit;">http://www.supagusti.tk/computer/raspberrypi/160-installing-mrtg-on-your-pi</span></div>
<div>
<span style="font-family: inherit;"><a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a><br style="background-color: #d7d2bc; color: #212121; font-size: 14px; line-height: 26px;" /><a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a><br style="background-color: #d7d2bc; color: #212121; font-size: 14px; line-height: 26px;" /><a href="https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark">https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark</a><br style="background-color: #d7d2bc; color: #212121; font-size: 14px; line-height: 26px;" /><a href="http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos">http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos</a></span></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-5530748034860864592014-09-30T21:00:00.000+07:002014-10-02T00:45:56.702+07:00วิธีการติดตั้ง Syslog-ng เก็บไฟล์ Log ให้ Mikrotik บนบอร์ด Raspberry Pi<br />
<h2 style="text-align: center;">
วิธีการติดตั้ง Syslog-ng เก็บไฟล์ Log ให้ Mikrotik บนบอร์ด Raspberry Pi</h2>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWgR9nJwvAWa8GA6g-KGxTHHOd8yEPsbE36TjIhMXN-6eKut4nXddkBV9xpY145hUmsB0DrWKVLijd9zdYyN5qX47S3Aw-z-qn8BIcLOZcx4mm8cRq3p-amM8YcAZCnmLn3804x52OY3w/s1600/flow.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWgR9nJwvAWa8GA6g-KGxTHHOd8yEPsbE36TjIhMXN-6eKut4nXddkBV9xpY145hUmsB0DrWKVLijd9zdYyN5qX47S3Aw-z-qn8BIcLOZcx4mm8cRq3p-amM8YcAZCnmLn3804x52OY3w/s1600/flow.JPG" height="304" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
บทความนี้เป็นการเชื่อมต่อ LAN ระหว่าง Mikrotik ใช้ทำระบบ Hotspot กับบอร์ด Raspberry Pi ที่เป็นระบบ Linuxใช้ในการเก็บ Log ที่ส่งมาจาก Mikrotik โดยการติดตั้ง Syslog-ng เข้าไปบนบอร์ด Raspberry Pi เพื่อใช้เป็นโปรแกรมจัดการ Log ที่มาจาก Mikrotik และในส่วนของ Mikrotik ก็จำเป็นจะต้องเซ็ตค่าบางอย่างให้โปรแกรม Syslog-ng<br />
จากนั้นเมื่อมีการเข้าใช้งานระบบ Hotspot แล้ว Mikrotik ก็จะทำการส่งข้อมูลของ Log ไปเก็บไว้ที่โปรแกรม Syslog-ng ที่ติดตั้งบน Raspberry Pi และสามารถเข้าไปดูหรือเก็บไฟล์นำไปใช้งานได้ การเก็บข้อมูลต้องขึ้นอยู่กับพื้นที่จัดเก็บด้วย เราสามารถที่จะใช้อุปกรณ์อื่นที่มีขนาดพื้นที่มากกว่ามาต่อเข้า USB เช่น Flash Drive, Harddisk External แล้วเข้าไปแก้ Config ในส่วนของ Path<br />
<br />
<h4>
ข้อดี </h4>
- กินไฟน้อยกว่าเก็บ Log พวก PC, NAS <br />
- ราคาถูกกว่าสามารถติดตั้ง Package เพิ่มได้เพราะ เป็น OS Linux<br />
- สะดวกและง่ายในการติดตั้งใช้งานและพกพา<br />
<br />
<a href="http://www.syslog-ng.org/">Syslog-ng คือ</a><br />
<br />
<br />
เชื่อมต่ออุปกรณ์ดังรูปทำการ Bypass<br />
IP >> Hotspot >>แท๊ป Host คลิ๊กขวา IP ของ Raspberrypi กดปุ่ม Make Binding >> ตรง Type เลือกเป็น bypass ให้กับ Raspberry Pi ด้วย<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHzcdJgJoa5mJkJFiApFYUW1hnjqqnV8Py-TnclOzB_YgpSDYUr2yfmkqw2qNnPJ4CPy8DEASqggBWsDsIedJmofG6dUolb2MWqyR7vx31je1shWLaHwQL4-KFv39B461_qPFvczmp9k0/s1600/bypass1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHzcdJgJoa5mJkJFiApFYUW1hnjqqnV8Py-TnclOzB_YgpSDYUr2yfmkqw2qNnPJ4CPy8DEASqggBWsDsIedJmofG6dUolb2MWqyR7vx31je1shWLaHwQL4-KFv39B461_qPFvczmp9k0/s1600/bypass1.JPG" height="325" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikrrO3XxGw5OVz1GR7szQ44SurC6JWnDMTkcPx8-PU1oWvQ_LBI24Ubt3KlK2oMbaCimMLH6pHgdbXhwpYGtH_5G-Xl1VyQi6QuzLoar93KNzqmapuwL_8exyZJI5qnMm-e5av_GeOrN8/s1600/bypass2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikrrO3XxGw5OVz1GR7szQ44SurC6JWnDMTkcPx8-PU1oWvQ_LBI24Ubt3KlK2oMbaCimMLH6pHgdbXhwpYGtH_5G-Xl1VyQi6QuzLoar93KNzqmapuwL_8exyZJI5qnMm-e5av_GeOrN8/s1600/bypass2.JPG" height="44" width="640" /></a></div>
<br />
<br />
<h3>
###Raspberry Pi Config###</h3>
ดาวน์โหลดและติดตั้ง (ในส่วนนี้ไม่ขอลงลึก)<br />
RASPBIAN Debian Wheezy : <a href="http://www.raspberrypi.org/downloads/">http://www.raspberrypi.org/downloads/</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
อัพเดทระบบ<br />
sudo apt-get update<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWuXgNwH0n_zRpACvStbouAlzVmgkNudihkNffF3-P-jvge9YI3s65aNZEoRY6bwl9grqC3DPW_7Flauu8An4Csxx7fY0Y5yx6GsQCbKEPU1g5gyH85A8fWhP3MoqW7zPoaQztLknM7Pw/s1600/0.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWuXgNwH0n_zRpACvStbouAlzVmgkNudihkNffF3-P-jvge9YI3s65aNZEoRY6bwl9grqC3DPW_7Flauu8An4Csxx7fY0Y5yx6GsQCbKEPU1g5gyH85A8fWhP3MoqW7zPoaQztLknM7Pw/s1600/0.jpg" height="335" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
ติดตั้ง Syslog-ng<br />
sudo apt-get install syslog-ng กด y enter<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjjMW0eDQ6iAm5Ii2YL-ZZRuIuEE6-ldgJmNByZPbLW_GkG9fLvDTpMPjkTY7AiNMest_OBRZadu862wy5OrfzfC7eh1lcm-XfuB8JkTC1MAkaeVhiU0NiGxd7N2AFDNDgt_SI68e7yvw/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjjMW0eDQ6iAm5Ii2YL-ZZRuIuEE6-ldgJmNByZPbLW_GkG9fLvDTpMPjkTY7AiNMest_OBRZadu862wy5OrfzfC7eh1lcm-XfuB8JkTC1MAkaeVhiU0NiGxd7N2AFDNDgt_SI68e7yvw/s1600/1.jpg" height="335" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เข้าไปแก้ไข config โปรแกรม syslog-ng</div>
<div class="separator" style="clear: both; text-align: left;">
cd /etc/syslog-ng</div>
<div class="separator" style="clear: both; text-align: left;">
sudo nano syslog-ng.conf</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR80COCVimZB0c8CsGbUGT4H1RlKUoJ9ggn8gDDYVbLjIwsMXMfTiOY4Mgg5g2BsxQ-eKs_UoFwHR825UEpuQjyP_Y55gxWBW4myESTnPFdvMR8I41OCkXvIRu-bxaaGVUCnsDVoHxCt0/s1600/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR80COCVimZB0c8CsGbUGT4H1RlKUoJ9ggn8gDDYVbLjIwsMXMfTiOY4Mgg5g2BsxQ-eKs_UoFwHR825UEpuQjyP_Y55gxWBW4myESTnPFdvMR8I41OCkXvIRu-bxaaGVUCnsDVoHxCt0/s1600/2.JPG" height="47" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
เพิ่มโค๊ดเข้าไปในไฟล์ syslog-ng.conf<br />
<br />
source s_net { udp(ip(0.0.0.0) port(514)); };<br />
destination d_router { file("/var/log/router.log"); };<br />
log { source(s_net); destination(d_router); };<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha8sPRYWOLyxgqU_4vuQXNs8uVs00_axLSK3oLNm3RTJAtd7x6i0m23FW-pLdgGEI_ugOfU_yX3qYd-ge66FKQMnc-UCacR3kLysMsgGgL-0mH5N3Ynqn2Ai_eAl80y6xctJ1-z0Jp_W8/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha8sPRYWOLyxgqU_4vuQXNs8uVs00_axLSK3oLNm3RTJAtd7x6i0m23FW-pLdgGEI_ugOfU_yX3qYd-ge66FKQMnc-UCacR3kLysMsgGgL-0mH5N3Ynqn2Ai_eAl80y6xctJ1-z0Jp_W8/s1600/3.jpg" height="335" width="400" /></a></div>
<br />
ทำการ restart โปรแกรม syslog-ng หลังจากแก้ config<br />
sudo service syslog-ng restart<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmgMzZsChw6q_r5uqoaRyXxrfnfKnKDsVv0ly7WuqI7ZMm4uNK7aNzkh9HYjnJQkrtGw_WWwjMELOGipNOk1UOnk5trnEHWRj3FZKAcjOzKB8HVYeiNd4mGsyjMziDtiWA-wk8oybT5o8/s1600/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmgMzZsChw6q_r5uqoaRyXxrfnfKnKDsVv0ly7WuqI7ZMm4uNK7aNzkh9HYjnJQkrtGw_WWwjMELOGipNOk1UOnk5trnEHWRj3FZKAcjOzKB8HVYeiNd4mGsyjMziDtiWA-wk8oybT5o8/s1600/4.JPG" height="46" width="400" /></a></div>
<br />
สร้างไฟล์ชื่อ route.log ไว้ที่ /var/log และตรวจสอบด้วย ls<br />
sudo touch /var/log/router.log<br />
ls /var/log/router*<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS5rri5DhGDQY_aRh6VGP9x17S7hqhWsLFR_xmJV9x3Yq0kO1iO7qY8sRZNfOnu9RnjigHP8F7qXYsm2UgNGimRAWzVbTwuPZYsTB7hcH7eyNYnXRHxAj7bcm8w8Emi8oZ8ajjqoR6ywg/s1600/5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS5rri5DhGDQY_aRh6VGP9x17S7hqhWsLFR_xmJV9x3Yq0kO1iO7qY8sRZNfOnu9RnjigHP8F7qXYsm2UgNGimRAWzVbTwuPZYsTB7hcH7eyNYnXRHxAj7bcm8w8Emi8oZ8ajjqoR6ywg/s1600/5.JPG" height="45" width="400" /></a></div>
<br />
<br />
<h3>
###Mikrotik Config###</h3>
เปิด Winbox ขึ้นมา<br />
System >> logging >>เลือกแท๊ป Actions<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiCoMEKfNFoFCwcnNm1-euZr0o48K603qn6hdW4cl6-5l2oG-bsh3ls8IPrVPDPjUkKaZgrLt21sZ5zPzsAADx2iRFzE8xfpcq0vsEdb83_RWX66LgHdn5hCPkyyuZ6Itzsb9Sh6v1Zd4/s1600/7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiCoMEKfNFoFCwcnNm1-euZr0o48K603qn6hdW4cl6-5l2oG-bsh3ls8IPrVPDPjUkKaZgrLt21sZ5zPzsAADx2iRFzE8xfpcq0vsEdb83_RWX66LgHdn5hCPkyyuZ6Itzsb9Sh6v1Zd4/s1600/7.jpg" height="256" width="400" /></a></div>
<br />
สร้าง Action ในการ Remote ยัง Raspberry Pi เพื่อเก็บ Log<br />
เพิ่ม + >> Actions<br />
Name = syslog<br />
Typr = remote<br />
Remote Address = ipของRaspberryPi<br />
Remote Port = 514<br />
<br />
กด Apply >> Ok<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9khkYDj5epcn-rt6RXfVBODNApXq9PnBLU1CqEXp5WTfT6fuw5gFqlTjwt3gqyNF3jpvH3a3kxFbLkH75O5uKYEwT5s4e5_k5_ztPzY-pBR74owNjuaMbg_T2wVot8FNYu0nsL167-6A/s1600/6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9khkYDj5epcn-rt6RXfVBODNApXq9PnBLU1CqEXp5WTfT6fuw5gFqlTjwt3gqyNF3jpvH3a3kxFbLkH75O5uKYEwT5s4e5_k5_ztPzY-pBR74owNjuaMbg_T2wVot8FNYu0nsL167-6A/s1600/6.JPG" height="325" width="400" /></a></div>
<br />
สร้าง Rule เช่น Account, DHCP, Firewall, Hotspot<br />
เลือกแทป Rule<br />
เพิ่ม + >> Rule Account<br />
Topics = account<br />
Action = syslog<br />
กด Apply >> Ok<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEFlft-7mDvVmdGyrWtlVBnb_WnMcXOrhGaK_qOO0-DRzTy3OdUj6idSXV7jD-_ip5DwwwPSweyT2UF3Y3nVR7fVe33SU_9GnIyhqHVn5MaUNEWLYZR_PazTNT5S4_IJRe2GSjBJZDXII/s1600/ru1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEFlft-7mDvVmdGyrWtlVBnb_WnMcXOrhGaK_qOO0-DRzTy3OdUj6idSXV7jD-_ip5DwwwPSweyT2UF3Y3nVR7fVe33SU_9GnIyhqHVn5MaUNEWLYZR_PazTNT5S4_IJRe2GSjBJZDXII/s1600/ru1.JPG" height="362" width="400" /></a></div>
<br />
<br />
เพิ่ม + >> Rule DHCP<br />
Topics = dhcp<br />
Action = syslog<br />
กด Apply >> Ok<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgevMvYgyTM0a03B0sa2Ugd7efLGbj9Y70HtDraUwERNZdFhGhlJcOC2QxAjiEVC11r8xZ_vRa5SAWxbuu-JXKJiNOWnNytT080OZvJrwL7VI1G_VRkwcVOfidmr9c1nFN3Bp3xNaQT8PI/s1600/ru2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgevMvYgyTM0a03B0sa2Ugd7efLGbj9Y70HtDraUwERNZdFhGhlJcOC2QxAjiEVC11r8xZ_vRa5SAWxbuu-JXKJiNOWnNytT080OZvJrwL7VI1G_VRkwcVOfidmr9c1nFN3Bp3xNaQT8PI/s1600/ru2.JPG" height="353" width="400" /></a></div>
<br />
<br />
เพิ่ม + >> Rule Firewall<br />
Topics = firewall<br />
Action = syslog<br />
กด Apply >> Ok<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCCDhAbJ-lAkrVYCFsmO0lK_abuYx2VJ1y6Vkc3qST68IdJ6qmxwTd93pk1czWq_vCq_Dpcrd0qBwTQxdH4iw4mFYMZW36BaNPs_4z3ONBSs2Oid-T23Jo0StzCaadS-j7KXkXZBMOPBk/s1600/ru3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCCDhAbJ-lAkrVYCFsmO0lK_abuYx2VJ1y6Vkc3qST68IdJ6qmxwTd93pk1czWq_vCq_Dpcrd0qBwTQxdH4iw4mFYMZW36BaNPs_4z3ONBSs2Oid-T23Jo0StzCaadS-j7KXkXZBMOPBk/s1600/ru3.JPG" height="358" width="400" /></a></div>
<br />
<br />
เพิ่ม + >> Rule Hotspot<br />
Topics = hotspot<br />
Action = syslog<br />
กด Apply >> Ok<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgXo1DTiqxPo2H90Qu3y_mYr6jvuWY8RWisYzCiim_vYGqF6Qe-r4dDc4zC-Y5HKb-1bRyY6bCclrPykOl3t6LyLoHFCdUVATVJlvfnhisViTXEJF4CCJNLaXPMnKhj5KsiGXC0hO7fv8/s1600/ru4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgXo1DTiqxPo2H90Qu3y_mYr6jvuWY8RWisYzCiim_vYGqF6Qe-r4dDc4zC-Y5HKb-1bRyY6bCclrPykOl3t6LyLoHFCdUVATVJlvfnhisViTXEJF4CCJNLaXPMnKhj5KsiGXC0hO7fv8/s1600/ru4.JPG" height="362" width="400" /></a></div>
<br />
<br />
หากใครยากมีเพิ่มอีกก็แล้วแต่ความจำเป็นของแต่ละบุคคลในการเพิ่ม Rule<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNJ0_z20pRvJkJMUBbtQ72eROVtladlJ5XFEvBvfCl9l7zmshOf64v_ldP65P3PfaDSTics87EMqqD_OxndHXrEjK-weoLOP8fpGArS6YlvfRaIT62TBbHjpvIoYFHhIVyIoF8KG44plQ/s1600/ru5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNJ0_z20pRvJkJMUBbtQ72eROVtladlJ5XFEvBvfCl9l7zmshOf64v_ldP65P3PfaDSTics87EMqqD_OxndHXrEjK-weoLOP8fpGArS6YlvfRaIT62TBbHjpvIoYFHhIVyIoF8KG44plQ/s1600/ru5.jpg" height="256" width="400" /></a></div>
<br />
<br />
<h3>
###Testing Log on raspberry pi###</h3>
ใช้คำสั่งในการแสดงเวลาเก็บ log<br />
tail -f /var/log/router.log<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiruHmfwhORYWDSxJZMS66hgRSREvsoFaxfKySjjfygm_kICBieZlB5b_8orGVYaRgHsP3DemMDayeH7u8fWyq8YF6snbBlGhOkWsWvdmUKK25cekCXRJK2AjPNgkHX8MrDr9UwT6HWSJ8/s1600/test.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiruHmfwhORYWDSxJZMS66hgRSREvsoFaxfKySjjfygm_kICBieZlB5b_8orGVYaRgHsP3DemMDayeH7u8fWyq8YF6snbBlGhOkWsWvdmUKK25cekCXRJK2AjPNgkHX8MrDr9UwT6HWSJ8/s1600/test.jpg" height="251" width="400" /></a></div>
<br />
<h2>
VIDEO Test</h2>
<div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/RcGHEdOCFTQ?feature=player_embedded' frameborder='0'></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/TRXZNirN5sE?feature=player_embedded' frameborder='0'></iframe></div>
<br /></div>
<div>
<br /></div>
<br />
RF : <a href="http://resources.intenseschool.com/raspberry-pi-as-a-syslog-server/">http://resources.intenseschool.com/raspberry-pi-as-a-syslog-server/</a><br />
<a href="http://www.ronnutter.com/raspberry-pi-installing-a-syslog-server-using-syslog-ng/">http://www.ronnutter.com/raspberry-pi-installing-a-syslog-server-using-syslog-ng/</a><br />
<a href="http://mikrotikshop.blogspot.com/2013/08/mikrotik-rb750-rb751u-rb450g-log.html">http://mikrotikshop.blogspot.com/2013/08/mikrotik-rb750-rb751u-rb450g-log.html</a><br />
<a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a><br />
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a><br />
<a href="https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark">https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark</a><br />
<a href="http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos">http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos</a><br />
<div>
<br /></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com2tag:blogger.com,1999:blog-3100362182588709453.post-58343527714822493482014-08-03T20:58:00.005+07:002014-08-03T20:58:46.390+07:00Remote Desktop VNC for Raspberry Pi<br />
<h2 style="text-align: center;">
Remote Desktop VNC for Raspberry Pi</h2>
Remote Desktop เป็นการเข้าไปจัดการหน้าจอของ Raspberry pi โดยผู้ใช้ไม่จำเป็นต้องอยู่หน้าเครื่องเราสามารถจัดการหน้าจอ โดยการรีโหมดหน้าจอให้มาอยู่หน้าจอของคอมพิวเตอร์ของเราในที่นี้ใช้เครื่องมือรีโหมด VNC ซึ่งสามารถติดกับ raspberry Pi ของเราได้แล้ว ก่อนอื่นต้องมีการเชื่อมต่ออินเตอร์เน็ตซะก่อนเพื่อติดตั้งแพ็กเก็ตต่าง<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtvFd83MVhcXgo4ogruoPKWbPRVa54svxHeOHUon2lxC_vnfgfYFYUxXIKacP5mYa1tpnS2I7kpm7gVlfRXjrY5tHy-MrzYAqHXOLR0uVNdudAXoeLMyTzfGFFzpYE2KCPJ0i-YzTQ9D8/s1600/14.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtvFd83MVhcXgo4ogruoPKWbPRVa54svxHeOHUon2lxC_vnfgfYFYUxXIKacP5mYa1tpnS2I7kpm7gVlfRXjrY5tHy-MrzYAqHXOLR0uVNdudAXoeLMyTzfGFFzpYE2KCPJ0i-YzTQ9D8/s1600/14.JPG" height="298" width="400" /></a></div>
<br />
<h3>
รายการอุปกรณ์และแหล่ง Download</h3>
<br />
- ชุด Raspberry pi<br />
- SD Card 4G Class4<br />
- OS Raspbian<br />
- VNC Windows : <a href="http://www.uvnc.com/downloads/ultravnc/107-download-ultravnc-1201.html">http://www.uvnc.com/downloads/ultravnc/107-download-ultravnc-1201.html</a><br />
- App VNC : <a href="https://chrome.google.com/webstore/search/vnc%20via%20web?utm_source=chrome-ntp-icon">https://chrome.google.com/webstore/search/vnc%20via%20web?utm_source=chrome-ntp-icon</a><br />
- Mount+Keyboard<br />
- Internet<br />
<br />
<h3>
การติดตั้ง VNC บน Raspberry Pi</h3>
<div>
ติดตั้ง VNC บน Raspberry Pi พร้อมกำหนดรหัสผ่าน<br />
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA5x_so2AvaecUGs5pJ6YItFRbMLj-oksdyxyds5a_5mCrIeTg2qnDi9lTx-xrQL4q0AJ2gtKm83dw16RWvRFsSCAXQQiZSOXEzkUa5vIFEnSoPmhIhijUu15RddCDkewKJhplNio5QAI/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA5x_so2AvaecUGs5pJ6YItFRbMLj-oksdyxyds5a_5mCrIeTg2qnDi9lTx-xrQL4q0AJ2gtKm83dw16RWvRFsSCAXQQiZSOXEzkUa5vIFEnSoPmhIhijUu15RddCDkewKJhplNio5QAI/s1600/1.JPG" height="17" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBFl5a68reotbmNFmKAG4QqozvvAWMAW2cCvwbza6nY3iQ4UVXM5-HlT332ntXVpE21dZOvhFZ2BuNwbslKR3yxXu0hseOKYMDAhmyjmAbin_06IxHjnaZiLSbpvIL7Ps_fn9ImH8BGQ8/s1600/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBFl5a68reotbmNFmKAG4QqozvvAWMAW2cCvwbza6nY3iQ4UVXM5-HlT332ntXVpE21dZOvhFZ2BuNwbslKR3yxXu0hseOKYMDAhmyjmAbin_06IxHjnaZiLSbpvIL7Ps_fn9ImH8BGQ8/s1600/2.JPG" height="26" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh50pIghZwirpc3F-FXf57UI2cc5nSm6rTZjUeElrYDDeehEwieZxEC1fz5F9opwbRQFddVDTlVJNY4J7FdcmPAoofFxtPZ6IUUlg4uHMUIibF9yB_36t545lMdjPCXRZDhjCuj_2WUbWg/s1600/3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh50pIghZwirpc3F-FXf57UI2cc5nSm6rTZjUeElrYDDeehEwieZxEC1fz5F9opwbRQFddVDTlVJNY4J7FdcmPAoofFxtPZ6IUUlg4uHMUIibF9yB_36t545lMdjPCXRZDhjCuj_2WUbWg/s1600/3.JPG" height="101" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
ติดตตั้ง Ultra VNC บน Computer PC </h3>
<div class="separator" style="clear: both; text-align: left;">
เข้า Edit Setting และตั้งค่า Port ในการ Remote</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXDgrw1g9_1qDL8i_CmsuAjzI821N3HJikoHYkv8Jpv6AiGOtp7q3pzSrXCg9VnqgiJ73tIuuAb4oPDri-YLh-l3dZOdo5FlTghjJiI5qRf8P4SmbV4pzldq5GTBgFSKBny-y63VRQqmY/s1600/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXDgrw1g9_1qDL8i_CmsuAjzI821N3HJikoHYkv8Jpv6AiGOtp7q3pzSrXCg9VnqgiJ73tIuuAb4oPDri-YLh-l3dZOdo5FlTghjJiI5qRf8P4SmbV4pzldq5GTBgFSKBny-y63VRQqmY/s1600/4.JPG" height="381" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ทำการ Forword Port ให้ภายนอกเข้ามาได้ หากมี DDNS อยู่แล้วสามารถใช้ร่วมกันได้</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirdR3pnLp0F0XSNz_nLLUgIagBN85f9mO9xzuJeO4a-5PEIdcbiLO911Z4_Zhqf73U7Ig_qnGPnrUwUg_qM1Terwyyg3wBa9kfLql9Ia1IaQU5DZQkQo8GhXcuBUwQQAyu9i5mGyGzcWw/s1600/5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirdR3pnLp0F0XSNz_nLLUgIagBN85f9mO9xzuJeO4a-5PEIdcbiLO911Z4_Zhqf73U7Ig_qnGPnrUwUg_qM1Terwyyg3wBa9kfLql9Ia1IaQU5DZQkQo8GhXcuBUwQQAyu9i5mGyGzcWw/s1600/5.JPG" height="105" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ถ้ามี DNS : booindy.zapto.org::5901</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii1f2GJFKPD0reM6PVqVrbyWkFZsBJllEC-depe13IHg9SO6bGplUUVJW-hW0RweHX9Z7bTW9C7MjDKgChFSxIdn3EJb_GWiRyPd8CKxXCiC115OecvjO7t1lBi__tZSbNszJjDs8FYLI/s1600/6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii1f2GJFKPD0reM6PVqVrbyWkFZsBJllEC-depe13IHg9SO6bGplUUVJW-hW0RweHX9Z7bTW9C7MjDKgChFSxIdn3EJb_GWiRyPd8CKxXCiC115OecvjO7t1lBi__tZSbNszJjDs8FYLI/s1600/6.JPG" height="400" width="371" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
สามารถเชื่อมต่อได้และต้องใส่รหัสผ่านที่ได้กำหนดไว้ตอนติดตั้ง VNC บน Raspberry PI</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb3pUrnIY3HG6JRbXbdrLPi4IEW2WdmWgb-SiIW2dqFGyC29paw6rW0q-42ZVl9FkMpjkBvlOOQLriK8Zbclp9kKQL5LYnpV9vWcq6f1nKovAum6MWBKH26e_oHxNRZPNkiMRJjuy3kHA/s1600/7.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb3pUrnIY3HG6JRbXbdrLPi4IEW2WdmWgb-SiIW2dqFGyC29paw6rW0q-42ZVl9FkMpjkBvlOOQLriK8Zbclp9kKQL5LYnpV9vWcq6f1nKovAum6MWBKH26e_oHxNRZPNkiMRJjuy3kHA/s1600/7.JPG" height="400" width="337" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1oX8CKqWIwolR55P2BaT2TcUYeiTeYLlI42cTERwUHEOVVNN_B2JK2yjYXy18_Bgi7FRUSgzbHrqS618hDeJkg8t1FcKvNREwd0jae03B7C7liHfiB8qjarR6HigpBD98OVLKYkOBEXs/s1600/8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1oX8CKqWIwolR55P2BaT2TcUYeiTeYLlI42cTERwUHEOVVNN_B2JK2yjYXy18_Bgi7FRUSgzbHrqS618hDeJkg8t1FcKvNREwd0jae03B7C7liHfiB8qjarR6HigpBD98OVLKYkOBEXs/s1600/8.jpg" height="223" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
การติดตั้ง Remote Desktop ด้วยหน้า Web browser Chrome </h3>
โดยการติดตั้ง App เสริมเข้าไปและเรียกใช้งาน<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYXJ9z7DLU9tDvP-9U73mlYXDoNLU9C8HUzxB_tUVlMLzMfYXqzc2MQVzMrONx0WLtbBJwzRjH_kwqE4lSKUDwxexcJX68Zyim2g9AAQy7oIF_TRYZWTo8lGdPmcdvsOh45rXEdbtciPE/s1600/10.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYXJ9z7DLU9tDvP-9U73mlYXDoNLU9C8HUzxB_tUVlMLzMfYXqzc2MQVzMrONx0WLtbBJwzRjH_kwqE4lSKUDwxexcJX68Zyim2g9AAQy7oIF_TRYZWTo8lGdPmcdvsOh45rXEdbtciPE/s1600/10.JPG" height="67" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDwiDUEQwu5jOf-y4nQarmJOWVpvLoomXhMFw54F2A6G9erSkRcQySVkWnXyIxig7pY9W517pEaYRDZbTmUehL8fDB74nhoi7-qLblrcc5xJiJjhywNdzg3gAu8rqdfEB-WzD_XBQSTkU/s1600/11.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDwiDUEQwu5jOf-y4nQarmJOWVpvLoomXhMFw54F2A6G9erSkRcQySVkWnXyIxig7pY9W517pEaYRDZbTmUehL8fDB74nhoi7-qLblrcc5xJiJjhywNdzg3gAu8rqdfEB-WzD_XBQSTkU/s1600/11.JPG" height="311" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX6XP9kK1-msYbf5NhSd5iyt2ScY6erJpQj3eemk-Cu35zexHYE2Azfzf_falyZZB3J_HfFtof-RoUCCjdMKIazZNuoUfbEbTgrp13ea9JHUC6avwzBnsz1v7j4w_5ah5x3s4P3C6wAK4/s1600/12.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX6XP9kK1-msYbf5NhSd5iyt2ScY6erJpQj3eemk-Cu35zexHYE2Azfzf_falyZZB3J_HfFtof-RoUCCjdMKIazZNuoUfbEbTgrp13ea9JHUC6avwzBnsz1v7j4w_5ah5x3s4P3C6wAK4/s1600/12.JPG" height="312" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEPAGaI-7_QhEm6BUZHEyZ04G_TFN4_i4Q5iFmS8En4jhMzm2i8gJ1e04uSn-72PP2ErkoqjQhZ27tyXyuIB1uvynVVABsnHDWTjwCtY1gxRqvRz-zItnCFDuVGJwGIcV5OVmzKABde1c/s1600/13.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEPAGaI-7_QhEm6BUZHEyZ04G_TFN4_i4Q5iFmS8En4jhMzm2i8gJ1e04uSn-72PP2ErkoqjQhZ27tyXyuIB1uvynVVABsnHDWTjwCtY1gxRqvRz-zItnCFDuVGJwGIcV5OVmzKABde1c/s1600/13.JPG" height="217" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyFQSRuEfVfMu52Bb761XXY2O8dsTfAFTt_TI03VuWCzenTdzTaVK9Zp2eSuUMc9qLJZjBB5vwAASD5pEjdqDDzxPjt1LCmjXG1RV2b8xrFn7a_izNFi4T_ZsNLkj4bIYdLgVNL_zC57Q/s1600/14.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyFQSRuEfVfMu52Bb761XXY2O8dsTfAFTt_TI03VuWCzenTdzTaVK9Zp2eSuUMc9qLJZjBB5vwAASD5pEjdqDDzxPjt1LCmjXG1RV2b8xrFn7a_izNFi4T_ZsNLkj4bIYdLgVNL_zC57Q/s1600/14.JPG" height="298" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxnW3KnM2d0b-1-zuxy1Br5NApPpD86pcrCpC4AYD9NP_5kcLs0UAfLsR4zsm9_ar0rK_ECXb1kI9sqxeDQJYqUeVmbJqM8dQQuJMeLHxw7TE8BpZJNnbJR5iovdHjmRVNpYS1wdpYZUk/s1600/15.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxnW3KnM2d0b-1-zuxy1Br5NApPpD86pcrCpC4AYD9NP_5kcLs0UAfLsR4zsm9_ar0rK_ECXb1kI9sqxeDQJYqUeVmbJqM8dQQuJMeLHxw7TE8BpZJNnbJR5iovdHjmRVNpYS1wdpYZUk/s1600/15.JPG" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h3 style="clear: both; text-align: left;">
การติดตั้ง Remote Desktop ด้วยหน้า App Mobile </h3>
<div class="separator" style="clear: both; text-align: left;">
โดยการติดตั้ง App เสริมเข้าไปและเรียกใช้งาน</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxavDktLuzMvgDMw2uNd7YEnLhhQh60Ijz_-IuC6M6CdoXRTWV-duLIlpHmXt2OIsCz5_7K5dPEbaXi1hSS7pijxNdlXT09V6Y78klJyvr-kyR0dn6U4ntW9ryl22jJyX0NA4NFYnPuN8/s1600/2014-08-01+22.57.27.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxavDktLuzMvgDMw2uNd7YEnLhhQh60Ijz_-IuC6M6CdoXRTWV-duLIlpHmXt2OIsCz5_7K5dPEbaXi1hSS7pijxNdlXT09V6Y78klJyvr-kyR0dn6U4ntW9ryl22jJyX0NA4NFYnPuN8/s1600/2014-08-01+22.57.27.png" height="400" width="266" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1pvfy4zmB5ETDmpIinO09fSLR5ZOzwbCeI3ZMjYOOK0K4cLLXcoYyHZFWx-sv_g0gIUlMcjrN2sQvYJKbDSBzYT_DwTEDNOM9O9S6u85EIp4rCg9mu-VOPW4XTEgCV2VXcwmLegknHlg/s1600/2014-08-01+23.02.54.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1pvfy4zmB5ETDmpIinO09fSLR5ZOzwbCeI3ZMjYOOK0K4cLLXcoYyHZFWx-sv_g0gIUlMcjrN2sQvYJKbDSBzYT_DwTEDNOM9O9S6u85EIp4rCg9mu-VOPW4XTEgCV2VXcwmLegknHlg/s1600/2014-08-01+23.02.54.png" height="400" width="266" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBcOdXjLzf9odacyuYMIs-yq68oYPLuiS7FTW3V2dVPHK3xN2YX8UaXylVKQRZeMp2YoHxzOsUy2puwnkdk_qxWWNcGoAgVLXNCCd820u2R3y2aRN6Votxu3qED2JQBDWVVZOruurNJrE/s1600/2014-08-01+23.03.19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBcOdXjLzf9odacyuYMIs-yq68oYPLuiS7FTW3V2dVPHK3xN2YX8UaXylVKQRZeMp2YoHxzOsUy2puwnkdk_qxWWNcGoAgVLXNCCd820u2R3y2aRN6Votxu3qED2JQBDWVVZOruurNJrE/s1600/2014-08-01+23.03.19.png" height="400" width="266" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Bz-UUUmehyphenhyphenx-VEI03afvqbFnkG9mwurFXP6Gl8WllKHLSW7erD6KfodrSMhGk_OKgZGu6o9ZElEJiOMOW2PILLILcUn7reZszmADYhYPSB1Uo6B9QSLYaLAmcnuFfqVWSUW91kDODX0/s1600/2014-08-01+23.03.27.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Bz-UUUmehyphenhyphenx-VEI03afvqbFnkG9mwurFXP6Gl8WllKHLSW7erD6KfodrSMhGk_OKgZGu6o9ZElEJiOMOW2PILLILcUn7reZszmADYhYPSB1Uo6B9QSLYaLAmcnuFfqVWSUW91kDODX0/s1600/2014-08-01+23.03.27.png" height="400" width="266" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBb44WBIbmdmgyGDZ2w-pn1O6Vi-W3cQw7TJXViV1rE1323JTKQXnxQUWQi-gV9RzvtKRW7jadXeIhmi1Uu1p7tX2VFT_5bEs34FEFnf0uDxPupaMd4Zw4l9w-3N3Ez333Pmoe1JEKJ-4/s1600/2014-08-01+23.04.35.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBb44WBIbmdmgyGDZ2w-pn1O6Vi-W3cQw7TJXViV1rE1323JTKQXnxQUWQi-gV9RzvtKRW7jadXeIhmi1Uu1p7tX2VFT_5bEs34FEFnf0uDxPupaMd4Zw4l9w-3N3Ez333Pmoe1JEKJ-4/s1600/2014-08-01+23.04.35.png" height="400" width="266" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
ที่มา : <a href="http://www.awesomeweirdness.com/projects-diy/setting-vnc-raspberry-pi/">http://www.awesomeweirdness.com/projects-diy/setting-vnc-raspberry-pi/</a><br />
<a href="https://www.blogger.com/goog_1482902253">https://www.facebook.com/BooindyIt?ref=hl</a><br />
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a><br />
<a href="https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark">https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark</a><br />
<u><a href="http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos">http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos</a></u><br />
<br />ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-69325025829975743052014-06-29T00:31:00.002+07:002014-06-29T19:52:39.241+07:00How To Install NO IP + DDNS + Web Server + SSH On Raspberyy Pi<br />
<br />
<h2 style="text-align: center;">
การติดตั้ง NO IP + DDNS + Web Server + SSH + </h2>
<h2 style="text-align: center;">
เปลี่ยน port service บน Raspberry Pi</h2>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7wVVc2aDyMUtTXerWPBw9krbEilmk8abZ18DrqLjhk-5wacUZQhLu9tT1_OB8ouqYQOF9-_mN3vFFqntK1lNh6Z2WVJdNS6PQzlmld9F6_OzZO44YIlKpLTkpQincJX0vdWhUdfy-2JI/s1600/ssshDD-WRT.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7wVVc2aDyMUtTXerWPBw9krbEilmk8abZ18DrqLjhk-5wacUZQhLu9tT1_OB8ouqYQOF9-_mN3vFFqntK1lNh6Z2WVJdNS6PQzlmld9F6_OzZO44YIlKpLTkpQincJX0vdWhUdfy-2JI/s1600/ssshDD-WRT.JPG" height="335" width="400" /></a></div>
<div style="text-align: center;">
<br /></div>
<div>
<br />
NO IP เป็น Dynamic Domain Name System คือการแปลงหมายเลขไอพีให้เป็นชื่อโดเมน หรือแปลงชื่อโดเมนให้เป็นหมายเลขไอพี โดยการตั้งค่าที่ได้มาจากการมัคร <a href="http://www.noip.com/">http://www.noip.com/</a><br />
เมื่อสามารถเข้าถึง Network ในวงของเราแล้วทำการ Forword Port ให้สามารถเข้าถึง Service ที่ต้องการได้ รูแบบการใช้ Web Service : hostname:port ส่วน SSH Host : hostname<br />
/ port : 22<br />
<br />
<a href="http://www.peoplefu.com/index.php?option=com_content&view=article&id=35%3Aploy&catid=9&Itemid=21">DDNS คืออะไร</a><br />
<a href="http://micro2440.blogspot.com/2014/06/modem-bride-mode-wrt54gl-dd-wrt-wds.html">บทความที่ต้องอ่าน DDNS</a><br />
<br />
<h3>
การติดตั้ง NO IP</h3>
<br />
<span style="color: blue;">sudo wget http://www.noip.com/client/linux/noip-duc-linux.tar.gz</span><br />
<span style="color: blue;">sudo tar xzvpf noip-duc-linux.tar.gz</span><br />
<br />
<br />
<br /></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjY_BwKqhkSwtTyZgP-vCTlBx8h3L4E6o-y_arn-728YhJPj19JSTfaQCIZCj4k0M8-NkJNZDqohI8OdarxGdvzpdS6P_DnyKc17cHME4PFMTtzpVW-ULsEXXzyk88Y6vyJRpuj6n1zjQ/s1600/noip+1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjY_BwKqhkSwtTyZgP-vCTlBx8h3L4E6o-y_arn-728YhJPj19JSTfaQCIZCj4k0M8-NkJNZDqohI8OdarxGdvzpdS6P_DnyKc17cHME4PFMTtzpVW-ULsEXXzyk88Y6vyJRpuj6n1zjQ/s1600/noip+1.JPG" height="400" width="380" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<span style="color: blue;">cd noip*</span><br />
<span style="color: blue;">sudo make</span><br />
<span style="color: blue;">sudo make install</span><br />
<span style="color: blue;">sudo vim /etc/init.d/noip2</span><br />
<span style="color: blue;"><br /></span>
<span style="color: blue;">ต่อมาให้ใส่ดังนี้</span><br />
<span style="color: blue;"><br /></span>
<span style="color: blue;">E-maiที่ใช้สมัคร : xxxxxx@xxxxxx</span><br />
<span style="color: blue;">Password : xxxxxxxxxx</span><br />
<span style="color: blue;"><br /></span>
<span style="color: blue;">ใช่ = y / ไม่ใช = n</span><br />
<span style="color: blue;"><br /></span>
<span style="color: blue;">All update : n</span><br />
<span style="color: blue;">Host1 : y</span><br />
<span style="color: blue;">Host2 : n</span><br />
<span style="color: blue;">intervel : 30 </span><br />
<span style="color: blue;">successful update : y</span><br />
<span style="color: blue;">Name script : noip</span><br />
<span style="color: blue;"><br /></span>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_OZl1E1-KWz3XDjsfByHScn2I3mVBMgVLq4Ls2UMENubXvDY3Vqgiu17gxsUV6VS4x1cY-_2V3F7hqWXRumr6FM4p26ZSv-Sr_yu94HetXptzPXKnzzrX3sk0gTe9w3nJL2qWcvXlTv8/s1600/noip+2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_OZl1E1-KWz3XDjsfByHScn2I3mVBMgVLq4Ls2UMENubXvDY3Vqgiu17gxsUV6VS4x1cY-_2V3F7hqWXRumr6FM4p26ZSv-Sr_yu94HetXptzPXKnzzrX3sk0gTe9w3nJL2qWcvXlTv8/s1600/noip+2.JPG" height="400" width="377" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: blue;">sudo nano /etc/init.d/noip2</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7lzOBYuqnZATcmucGUG23PR6H_4ldh5CGxisEd5LEcsIXcPc7xL1r0YMapc63SIRK_XF3_BZeEKB224FOY6I58CrCtbcmORz1DNOZ3UTrQ4z8jBNltMVLXXRw5PBIB8Odslw71LoAmwY/s1600/noip+3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7lzOBYuqnZATcmucGUG23PR6H_4ldh5CGxisEd5LEcsIXcPc7xL1r0YMapc63SIRK_XF3_BZeEKB224FOY6I58CrCtbcmORz1DNOZ3UTrQ4z8jBNltMVLXXRw5PBIB8Odslw71LoAmwY/s1600/noip+3.JPG" height="17" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
คัลลอกด้านล่างไปใส่ในไฟล์ noip2</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq">
<blockquote class="tr_bq">
<span style="color: blue;">#! /bin/sh</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;">### BEGIN INIT INFO</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"># Provides: testnoip</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"># Required-Start:</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"># Should-Start:</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"># Required-Stop:</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"># Should-Stop:</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"># Default-Start: 2 3 4 5</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"># Default-Stop: 0 1 6</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"># Short-Description: Test daemon process</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"># Description: Runs up the test daemon process</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;">### END INIT INFO</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"><br /></span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"># . /etc/rc.d/init.d/functions<span class="Apple-tab-span" style="white-space: pre;"> </span># uncomment/modify for your killproc</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;">case "$1" in</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"> start)</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"><span class="Apple-tab-span" style="white-space: pre;"> </span>echo "Starting noip2."</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"><span class="Apple-tab-span" style="white-space: pre;"> </span>/usr/local/bin/noip2</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"> ;;</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"> stop)</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"><span class="Apple-tab-span" style="white-space: pre;"> </span>echo -n "Shutting down noip2."</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"><span class="Apple-tab-span" style="white-space: pre;"> </span>killproc -TERM /usr/local/bin/noip2</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"> ;;</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"> *)</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"><span class="Apple-tab-span" style="white-space: pre;"> </span>echo "Usage: $0 {start|stop}"</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;"><span class="Apple-tab-span" style="white-space: pre;"> </span>exit 1</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;">esac</span></blockquote>
<blockquote class="tr_bq">
<span style="color: blue;">exit 0</span></blockquote>
</blockquote>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuwt2JWekLWZwdT5CD9cOx4G1_Fq5OS3dhLGObBOEwyzWWE2CtsK0FyE4YVSXGGSEmWIYWc5gdbp0nZp5nRvdU5ZRIJD6tEaL3IbTASc8ZHzUZMyW1szk0pCAbQvov8aH5XyeRPJ9Wxao/s1600/noip+4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuwt2JWekLWZwdT5CD9cOx4G1_Fq5OS3dhLGObBOEwyzWWE2CtsK0FyE4YVSXGGSEmWIYWc5gdbp0nZp5nRvdU5ZRIJD6tEaL3IbTASc8ZHzUZMyW1szk0pCAbQvov8aH5XyeRPJ9Wxao/s1600/noip+4.JPG" height="223" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both;">
<span style="color: blue;">sudo chmod 755 /etc/init.d/noip2</span></div>
<div class="separator" style="clear: both;">
<span style="color: blue;">sudo update-rc.d noip2 defaults</span></div>
<div class="separator" style="clear: both;">
<span style="color: blue;">sudo reboot</span></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP7Ypg1epFmMEHPVRKOx_QgjJO7zvBZzJbFbFcOaL1lQ3L025t7KqXDzXsRu1GGG5ialtdCtgVizRVYIynvUl2qWEKFuXP54XNzr3V2l7p3OSAf6GsgbE-FhAe-_7FPAwmAf7CqaUUbrI/s1600/noip+5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP7Ypg1epFmMEHPVRKOx_QgjJO7zvBZzJbFbFcOaL1lQ3L025t7KqXDzXsRu1GGG5ialtdCtgVizRVYIynvUl2qWEKFuXP54XNzr3V2l7p3OSAf6GsgbE-FhAe-_7FPAwmAf7CqaUUbrI/s1600/noip+5.JPG" height="61" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Forword Port Service ที่ต้องการจะใช้งาน</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZcKGO4yWFALEOiggcsz_8I6qEKg6YE7_5bkDuiIgEYWeIJ4m959JDth_kRY16scYr1pyp_9kAZDdKkRFrwm-Dto5XvWlmvKanriWhS_YhyyjrdJUsX05J4aNAAOWYM1LgFClMft18rY/s1600/noip+6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZcKGO4yWFALEOiggcsz_8I6qEKg6YE7_5bkDuiIgEYWeIJ4m959JDth_kRY16scYr1pyp_9kAZDdKkRFrwm-Dto5XvWlmvKanriWhS_YhyyjrdJUsX05J4aNAAOWYM1LgFClMft18rY/s1600/noip+6.JPG" height="173" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
หากต้องการจะแก้ไข Port Web Service 80 เป็น Port = 8080</h3>
<div>
<br /></div>
<div>
<span style="color: blue;">sudo nano /etc/apache2/ports.conf</span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja4WmtOPvWjx19gqlLaYYaSe7GHpiDelFG2YLvuyIltSUMdG5fFjcH9ST_f-WUh8rAODqNsLF-cwFcjU5xLlB7c9B_-FMIdl71BnlmtazlOznEAWgHnY6jLkqy8atO4GxZsuL0O93e-tI/s1600/noip+9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja4WmtOPvWjx19gqlLaYYaSe7GHpiDelFG2YLvuyIltSUMdG5fFjcH9ST_f-WUh8rAODqNsLF-cwFcjU5xLlB7c9B_-FMIdl71BnlmtazlOznEAWgHnY6jLkqy8atO4GxZsuL0O93e-tI/s1600/noip+9.JPG" height="22" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เปลี่ยน Listen = 80 ให้เป็น Listen = 8080</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEaDZWVFJC_BrY0pNIx4B_cY-hOL6DWh_YKwLG9o_0Z6k-y8CA_ziiBcQNNjV2B69KRSI-BVYim2Le4Kp_TpCzLmmVB8Ns2NF-D6gwrz7xZruFMZRx_n0gJWdRedw39rw1fLdwx2bV6o8/s1600/noip+10.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEaDZWVFJC_BrY0pNIx4B_cY-hOL6DWh_YKwLG9o_0Z6k-y8CA_ziiBcQNNjV2B69KRSI-BVYim2Le4Kp_TpCzLmmVB8Ns2NF-D6gwrz7xZruFMZRx_n0gJWdRedw39rw1fLdwx2bV6o8/s1600/noip+10.JPG" height="258" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Restart Web Service Apache2 ใหม่</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYGOgynLORsIZo5OFfFIyIq26YTCMMkGQILvLzj30DYt0ZVeGM3OxN_NDEJDPeA2n-h6iqx6kaF7l6efOfodkJZMJhR-QbgYzqq7Hx1-0LT-uA50Ax5-olDVRDlTglHjRWXpsA0SYICxA/s1600/noip+11.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYGOgynLORsIZo5OFfFIyIq26YTCMMkGQILvLzj30DYt0ZVeGM3OxN_NDEJDPeA2n-h6iqx6kaF7l6efOfodkJZMJhR-QbgYzqq7Hx1-0LT-uA50Ax5-olDVRDlTglHjRWXpsA0SYICxA/s1600/noip+11.JPG" height="23" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เข้ามาตรวจสอบที่ไฟล์ phpinfo() Service Port เป็น Port 8080 แล้วครับ</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://booindy.zapto.org:8080/testphp.php">http://booindy.zapto.org:8080/testphp.php</a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2Lm226TyvG07JDS_2Zd2pr2HGR9XhfIECVGiY2wjAHDHCvBSnMxxDNOH68zeyPFMF9nDZnUV5g8YyiQBFV_krgyRuq1KnJP5WQoExNSlRJ2-eOvUOIGofBOOe5K-MzoN7zTZ8zlAxHe0/s1600/noip+12.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2Lm226TyvG07JDS_2Zd2pr2HGR9XhfIECVGiY2wjAHDHCvBSnMxxDNOH68zeyPFMF9nDZnUV5g8YyiQBFV_krgyRuq1KnJP5WQoExNSlRJ2-eOvUOIGofBOOe5K-MzoN7zTZ8zlAxHe0/s1600/noip+12.JPG" height="386" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<h3>
สามารถเข้าไปยัง Server ของเราได้ โดยผ่านอินเตอร์เน็ต</h3>
<h3>
เข้า Web server ผ่านทาง Computer ด้วย Internet</h3>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://booindy.zapto.org:8080/testphp.php">http://booindy.zapto.org:8080/testphp.php</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQyeOG5n7HV3i62GqEGi9Mk-oWazzntAuFUOjLMmRMY0Q9hYLhYsbG5jA0vBaYbcR8vKk07t3xWyTLJacjK9c3g_PpdnuTYsHGMLM1-p2QRZ5iuxiVLlk-5f0fauyENDtNlmQ3DZ_2UH0/s1600/noip+7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQyeOG5n7HV3i62GqEGi9Mk-oWazzntAuFUOjLMmRMY0Q9hYLhYsbG5jA0vBaYbcR8vKk07t3xWyTLJacjK9c3g_PpdnuTYsHGMLM1-p2QRZ5iuxiVLlk-5f0fauyENDtNlmQ3DZ_2UH0/s1600/noip+7.jpg" height="223" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://booindy.zapto.org:8000/">http://booindy.zapto.org:8000/</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrx7eosOf4CJ63YpTJW_OgjCiqy4qpLT7JQR6revYDE69k-jev7lVIja9YRjqmxR2SFUqOfeN9p48b9mkN-KWj6hswDjltxdJwlYOkDcC9wqFfrttqUB8knw0-729TiawVhvY_RwWL9vo/s1600/noip+8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrx7eosOf4CJ63YpTJW_OgjCiqy4qpLT7JQR6revYDE69k-jev7lVIja9YRjqmxR2SFUqOfeN9p48b9mkN-KWj6hswDjltxdJwlYOkDcC9wqFfrttqUB8knw0-729TiawVhvY_RwWL9vo/s1600/noip+8.jpg" height="223" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://booindy.zapto.org:8080/temp.html">http://booindy.zapto.org:8080/temp.html</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBfYtDYC0e1VBRPS6m_-2VxLvrlhUONsKSExPt4kuNbMfQcxA-nG7AIvCrIzZzFF_w42MU8KkFsklt47eH8PyhScsahAzvM8S-RA9MfwcSIGVgXnE2aJTrk_GZ1IiqHxvdOxrcLvionjM/s1600/temperature+web.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBfYtDYC0e1VBRPS6m_-2VxLvrlhUONsKSExPt4kuNbMfQcxA-nG7AIvCrIzZzFF_w42MU8KkFsklt47eH8PyhScsahAzvM8S-RA9MfwcSIGVgXnE2aJTrk_GZ1IiqHxvdOxrcLvionjM/s1600/temperature+web.JPG" height="216" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
เข้า Web server ผ่านทาง โทรศัพท์ด้วย 3G </h3>
<div>
<a href="http://booindy.zapto.org:8000/">http://booindy.zapto.org:8000/</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3KRKMJR6qtAjFc4Ej_lrVdBVgZS7d5Aw0tS61n1f_kuuLtaraanYirl0tjetR6S1aZRd9HHA-fS-rkskeP_1F95GYWqBiQHPOBzOim1zLWKHuafIIF8uYGirEgMKiG7ev4adjOyjregg/s1600/2014-06-23+08.35.23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3KRKMJR6qtAjFc4Ej_lrVdBVgZS7d5Aw0tS61n1f_kuuLtaraanYirl0tjetR6S1aZRd9HHA-fS-rkskeP_1F95GYWqBiQHPOBzOim1zLWKHuafIIF8uYGirEgMKiG7ev4adjOyjregg/s1600/2014-06-23+08.35.23.png" height="400" width="266" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicihGN2s0BH89j567QlH9z_wpy_1SaSxnk8TFDT26cb71MBJJADjjZfOG6AWbAEnMaWVO_9Du8i0xgiF_MlaTeeTHyrHGq9iojaMlvjY8KTxiLyryq2fcgaIwqNC8O1-ezz6SqCYLoP4Q/s1600/2014-06-23+08.35.31.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicihGN2s0BH89j567QlH9z_wpy_1SaSxnk8TFDT26cb71MBJJADjjZfOG6AWbAEnMaWVO_9Du8i0xgiF_MlaTeeTHyrHGq9iojaMlvjY8KTxiLyryq2fcgaIwqNC8O1-ezz6SqCYLoP4Q/s1600/2014-06-23+08.35.31.png" height="400" width="266" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggg0cQLEUqwJKJBwhJM1GwAm4zAi_OQYhuw8m8KYfOfwHghntApdpJLRb5ak7HtFojWMid6UorZO_sCG8c1s6o6hbOiZwvyKBFz0YUG8XPw_H4ZnC3JNMorlsjaTvo7H1FmmZHgJuTP08/s1600/2014-06-23+08.35.41.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggg0cQLEUqwJKJBwhJM1GwAm4zAi_OQYhuw8m8KYfOfwHghntApdpJLRb5ak7HtFojWMid6UorZO_sCG8c1s6o6hbOiZwvyKBFz0YUG8XPw_H4ZnC3JNMorlsjaTvo7H1FmmZHgJuTP08/s1600/2014-06-23+08.35.41.png" height="400" width="266" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
Remote เข้าไปผ่านทาง โทรศัพท์ด้วย 3G</h3>
<h4>
App vSSH Lite on Phone IOS</h4>
<div>
Host : booindy.zapto.org</div>
Port : 22<br />
Username : xxxxxxxxx<br />
passwd : xxxxxxxxx<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDuSqXI4lvB6vpNWoXgCggDGhTPEkiU-w_rRCSjsxxqAJTA6D1roWTHoM3LPxVSDT-6BRWgXlH5Qsy-GU7WdDtXDfUISjznjywjWXdmm9qqrhdlPWfc9Hmxzo0N7-6fb-r1RvFFs6G02g/s1600/2014-06-23+08.38.24.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDuSqXI4lvB6vpNWoXgCggDGhTPEkiU-w_rRCSjsxxqAJTA6D1roWTHoM3LPxVSDT-6BRWgXlH5Qsy-GU7WdDtXDfUISjznjywjWXdmm9qqrhdlPWfc9Hmxzo0N7-6fb-r1RvFFs6G02g/s1600/2014-06-23+08.38.24.png" height="400" width="266" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3wvUZQamVHMq2waFtTkKjMVk-9_k_msfCTxJrybvM-qY39ZunEmQKJG3uY50zS0IyjYpjqsK-IQGpekLgzjbIkoXXY4nVlt8hMKn90ICUrct1Q3doZg_jfYWFOk3IspJeYjGr_1RU3eQ/s1600/2014-06-23+08.44.06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3wvUZQamVHMq2waFtTkKjMVk-9_k_msfCTxJrybvM-qY39ZunEmQKJG3uY50zS0IyjYpjqsK-IQGpekLgzjbIkoXXY4nVlt8hMKn90ICUrct1Q3doZg_jfYWFOk3IspJeYjGr_1RU3eQ/s1600/2014-06-23+08.44.06.png" height="400" width="266" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyAhVP-Ik8qqKUlm9X6DqENXbX4IdQan7Bkkl2lLr-fqVS7_iRuqNwXzDab7pZzSl2rYCPWvBV1KXJwKn6AMR41vnzzEjfXpX8nDXzJQUOUA5QQvVWM7xhxhW8b102o2lqVokkXOVfo6I/s1600/2014-06-23+08.40.55.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyAhVP-Ik8qqKUlm9X6DqENXbX4IdQan7Bkkl2lLr-fqVS7_iRuqNwXzDab7pZzSl2rYCPWvBV1KXJwKn6AMR41vnzzEjfXpX8nDXzJQUOUA5QQvVWM7xhxhW8b102o2lqVokkXOVfo6I/s1600/2014-06-23+08.40.55.png" height="400" width="266" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1FwQf_hcHXHFyesKaGvZAMDRiFFQ8VvS67y0KzWWKMjfGnXRQYIrkuR2BGnd0ORg9P0WKuzXgJ9u94OBsyl0J-8WnfRMMYgsN9HposEs4zMB5UMfnboS1oaicIzjiDLL6BaEUxpBnBCM/s1600/2014-06-23+08.42.15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1FwQf_hcHXHFyesKaGvZAMDRiFFQ8VvS67y0KzWWKMjfGnXRQYIrkuR2BGnd0ORg9P0WKuzXgJ9u94OBsyl0J-8WnfRMMYgsN9HposEs4zMB5UMfnboS1oaicIzjiDLL6BaEUxpBnBCM/s1600/2014-06-23+08.42.15.png" height="400" width="266" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h4>
Remote SSH form Raspberry Pi to Router DD-WRT v24</h4>
<div>
โปรแกรมบน Computer : SSH Secure Shell</div>
<div>
<br /></div>
<div>
<div>
Host : booindy.zapto.org</div>
<div>
Port : 22</div>
<div>
Username : xxxxxxxxx</div>
<div>
passwd : xxxxxxxxx</div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJhDb5O9lR6ktQvJhsW_6-KD0WL43hv1nN0xUGt13E08TeLNXeJ37hPsGcCweyduWNvF4-Q3v0WEQiQl4NgkdXLBViOgQusWJWJoLGOmOxPPLwGJPiHMeNR6PDwMG7cSOvKkejkK0fZ4g/s1600/ssshDD-WRT.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJhDb5O9lR6ktQvJhsW_6-KD0WL43hv1nN0xUGt13E08TeLNXeJ37hPsGcCweyduWNvF4-Q3v0WEQiQl4NgkdXLBViOgQusWJWJoLGOmOxPPLwGJPiHMeNR6PDwMG7cSOvKkejkK0fZ4g/s1600/ssshDD-WRT.JPG" height="335" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both;">
ที่มา http://importgeek.wordpress.com/2013/04/30/configuring-in-no-ip-in-raspberry-pi/</div>
<div class="separator" style="clear: both;">
<a href="https://www.blogger.com/goog_1928639404">http://micro2440.blogspot.com/</a></div>
<div class="separator" style="clear: both;">
<a href="https://www.blogger.com/goog_1928639404">https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark</a></div>
<div class="separator" style="clear: both;">
<a href="http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos">http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos</a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
<br /></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-59433878095126580122014-06-22T12:43:00.003+07:002014-06-24T23:50:45.453+07:00STROKE AND GESTURE RECOGNITION ON RASPBERRY PI<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<h2 style="text-align: center;">
</h2>
<h2 style="text-align: center;">
STROKE AND GESTURE RECOGNITION ON RASPBERRY PI</h2>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
สำหรับบทความนี้จะเป็นการนำเอา Touch Screen TFT 2.8 จากบทความก่อนหน้ามาประยุกต์ใช้งานต่อจากเดิมโดยการนำเอาข้อดีของการสัมผัสหน้าจอมาโดยการเขียนบนหน้าจอตามรูปแบบที่โปรแกรมกำหนดไว้แล้วโปรแกรมจะแปลงเป็นตัวอักษรเองโดยอัตโนมัติเอง แต่หากสัมผัสหน้าจอแล้วไม่ตรงตามรูปแบบที่โปรแกรมกำหนดไว้จะไม่พิมพ์อะไร เราสามารถใช้เป็นคำสั่ง Command ได้หรือใช้ในการโน๊ตต่างๆโดยไม่ต้องใช้แป้นพิมพ์<br />
<br />
สำหรับวิธีต่อจอและตั้งค่าต่างๆ <a href="http://raspberry-pi-thai.blogspot.com/2014/06/how-to-install-tft-28-touch-screen-on.html">TFT 2.8 Touch Screen</a><br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH9qXH41d0l52JSUBEbcjqN-U60toXmBeBKLMoJtgb0mw6xSmlLWC1Fgo3nojFfL8TorXpTaHsxIydBCwl_5muwBNgCfz1dfDMQ3BmehknMiKI2IUu_iv_3pcGnzcAt18oXWbWtYi37Co/s1600/2014-06-21+22.40.18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH9qXH41d0l52JSUBEbcjqN-U60toXmBeBKLMoJtgb0mw6xSmlLWC1Fgo3nojFfL8TorXpTaHsxIydBCwl_5muwBNgCfz1dfDMQ3BmehknMiKI2IUu_iv_3pcGnzcAt18oXWbWtYi37Co/s1600/2014-06-21+22.40.18.jpg" height="240" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<br />
<h3>
รายการอุปกรณ์</h3>
<br />
<br />
- ชุด Raspberry pi<br />
- SD Card 4G Class4<br />
- 2.8" Touch Screen TFT LCD with all interface<br />
- Jumper Wire<br />
- OS Raspbian Download : <a href="http://tronnes.org/downloads/2014-01-07-wheezy-raspbian-2014-03-12-fbtft-hy28a.zip">http://tronnes.org/downloads/2014-01-07-wheezy-raspbian-2014-03-12-fbtft-hy28a.zip</a><br />
- โปรแกรม Putty Download : <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a><br />
- Mount+Keyboard<br />
- Internet<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
<h3>
การติดตั้ง XStroke</h3>
<div>
<br /></div>
<div>
<div>
<span style="color: blue;">sudo apt-get -y install libxft-dev libxpm-dev libxtst-dev</span></div>
<div>
</div>
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdTOT-enZF1W_9uUzHeGMoQslabTsv-d08lwnZ5Vv2eqlQmBOsW__NxLPvDok0CcR_Zxtmc7QcMY_H-KHqiYR6l2YT5dmjXvvYTmNHCh4VYD3B6FAe7ry0g0WDZp9FyHoYqxWa5ThAj2A/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdTOT-enZF1W_9uUzHeGMoQslabTsv-d08lwnZ5Vv2eqlQmBOsW__NxLPvDok0CcR_Zxtmc7QcMY_H-KHqiYR6l2YT5dmjXvvYTmNHCh4VYD3B6FAe7ry0g0WDZp9FyHoYqxWa5ThAj2A/s1600/1.JPG" height="16" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div>
<span style="color: blue;">wget http://mirror.egtvedt.no/avr32linux.org/twiki/pub/Main/XStroke/xstroke-0.6.tar.gz</span></div>
<div>
</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO73MvINQ3hGnve1iSk22ykghoD-ztz1D400QBeBxOkzTyonG6NjCeb-kSE0RSKaA6YJwahEuRXCwQNUcSH2-wVy62QI6HILBnFDSTBi6X7uO-zXtXyKuXWuFNcoS_sTeeOsyxAUeZMDs/s1600/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO73MvINQ3hGnve1iSk22ykghoD-ztz1D400QBeBxOkzTyonG6NjCeb-kSE0RSKaA6YJwahEuRXCwQNUcSH2-wVy62QI6HILBnFDSTBi6X7uO-zXtXyKuXWuFNcoS_sTeeOsyxAUeZMDs/s1600/2.JPG" height="185" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div>
<span style="color: blue;">tar xfv xstroke-0.6.tar.gz</span></div>
<div>
<br /></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid1kcwM2grSy2DR_p7tk5ZdEoNJ8fH3Llv6BT3IzHWoe53y2T9EMvi5m_HhSWVjPB8sZps2qlvKtWkCiF6fjyvoeS_ZxhVUsry9LMrRXIJeRzhMZXVNX3GHGhFWi62sdaeJNOIURVq8io/s1600/3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid1kcwM2grSy2DR_p7tk5ZdEoNJ8fH3Llv6BT3IzHWoe53y2T9EMvi5m_HhSWVjPB8sZps2qlvKtWkCiF6fjyvoeS_ZxhVUsry9LMrRXIJeRzhMZXVNX3GHGhFWi62sdaeJNOIURVq8io/s1600/3.JPG" height="25" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: blue;">cd xstroke-0.6/</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLD4kAwN01ZEv24kAqXRDYXoLV7Gl5MA1MY1gNW6DCk4_N6jjm2xAoJOwg1oLOnCbsq9Zmy_2vnPFfehBzlEIgL0GPxrvz5l2tlC_ZWW0nCfN9naXjM6_Z4EWJxtHmgVq2Dweakv-R6FU/s1600/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLD4kAwN01ZEv24kAqXRDYXoLV7Gl5MA1MY1gNW6DCk4_N6jjm2xAoJOwg1oLOnCbsq9Zmy_2vnPFfehBzlEIgL0GPxrvz5l2tlC_ZWW0nCfN9naXjM6_Z4EWJxtHmgVq2Dweakv-R6FU/s1600/4.JPG" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div>
<span style="color: blue;">./confgure</span></div>
<div>
</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitITI8aYmTjrUYdjNBgUX_hl_wxHdjGj_ILmxInc3Vf0Aeqc2fATXzExC-Kklik9hJkjLdQi7mMVbc1XBjEFVQzvMH59lFjLTHSPyoE9ibfOpYhZtMJxETQzb_NWaZm2_SO_VSra9m0nQ/s1600/5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitITI8aYmTjrUYdjNBgUX_hl_wxHdjGj_ILmxInc3Vf0Aeqc2fATXzExC-Kklik9hJkjLdQi7mMVbc1XBjEFVQzvMH59lFjLTHSPyoE9ibfOpYhZtMJxETQzb_NWaZm2_SO_VSra9m0nQ/s1600/5.JPG" height="22" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div>
<span style="color: blue;">make</span></div>
<div>
</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglnsfcbiVBcONPBaYhUNsqpi3Q13ZbS_GUwCBancVF6X2JUTIrh8-21qRpCqhsWkIRuOfnzids3bXsSLfJ7t8aGmZTgFthyw6wQzH8RpOCIwnbX5UbTp6IuStXNpeCwCBjios_7IYJhcg/s1600/6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglnsfcbiVBcONPBaYhUNsqpi3Q13ZbS_GUwCBancVF6X2JUTIrh8-21qRpCqhsWkIRuOfnzids3bXsSLfJ7t8aGmZTgFthyw6wQzH8RpOCIwnbX5UbTp6IuStXNpeCwCBjios_7IYJhcg/s1600/6.JPG" height="28" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: blue;">sudo make install</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCW8SDulBP7DO_98TkY47UrfSa1_ZWwbmc7rfcqp8mi6dwuf3vaqDSZpR0zw1b4semOx_tv21LFHrdbj3j_hypRr5QKNFG7eLH9NKrmu8u5m9eL76OTUdQNUjfAPHRFVQIIZRt0L0P1Is/s1600/7.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCW8SDulBP7DO_98TkY47UrfSa1_ZWwbmc7rfcqp8mi6dwuf3vaqDSZpR0zw1b4semOx_tv21LFHrdbj3j_hypRr5QKNFG7eLH9NKrmu8u5m9eL76OTUdQNUjfAPHRFVQIIZRt0L0P1Is/s1600/7.JPG" height="138" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
การกำหนด Icon ให้อยู่บนหน้า X-Windows</h3>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both;">
<span style="color: blue;">wget http://www.ozzmaker.com/piscreen/xstrokekill.desktop</span></div>
<div class="separator" style="clear: both;">
<span style="color: blue;">wget http://www.ozzmaker.com/piscreen/xstroke.desktop</span></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2-cRs5FcXw18ArTOkmTbI06ohoItIs1-TUNJDWXzFU7UJ-G5mTFHDRMH-KE3NI8JZR37bLzffmZpTorLc8XQIghm0dqbxTz07hIE1JKArzzA8bCzYpZCBmNFdZGWpVe4A8sA7PfQDwhI/s1600/8.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2-cRs5FcXw18ArTOkmTbI06ohoItIs1-TUNJDWXzFU7UJ-G5mTFHDRMH-KE3NI8JZR37bLzffmZpTorLc8XQIghm0dqbxTz07hIE1JKArzzA8bCzYpZCBmNFdZGWpVe4A8sA7PfQDwhI/s1600/8.JPG" height="290" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: blue;">sudo cp xstrokekill.desktop xstroke.desktop /usr/share/applications/</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZI6WNOhGw6g1UwMpsCnT23A3ryXbeixYlbeNdHtBnEEgDJkPYYFVRSF48zvWFNlKOoEXOLfwPqrcWNqRfmhVBirqzon08oILFJheHwn_qgAiqEXXgaJdepGCr4UHIcAtIHOTz_-g2Lgw/s1600/9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZI6WNOhGw6g1UwMpsCnT23A3ryXbeixYlbeNdHtBnEEgDJkPYYFVRSF48zvWFNlKOoEXOLfwPqrcWNqRfmhVBirqzon08oILFJheHwn_qgAiqEXXgaJdepGCr4UHIcAtIHOTz_-g2Lgw/s1600/9.JPG" height="33" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
การเข้าหน้า X-Windows เข้า XStroke</h3>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH9qXH41d0l52JSUBEbcjqN-U60toXmBeBKLMoJtgb0mw6xSmlLWC1Fgo3nojFfL8TorXpTaHsxIydBCwl_5muwBNgCfz1dfDMQ3BmehknMiKI2IUu_iv_3pcGnzcAt18oXWbWtYi37Co/s1600/2014-06-21+22.40.18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH9qXH41d0l52JSUBEbcjqN-U60toXmBeBKLMoJtgb0mw6xSmlLWC1Fgo3nojFfL8TorXpTaHsxIydBCwl_5muwBNgCfz1dfDMQ3BmehknMiKI2IUu_iv_3pcGnzcAt18oXWbWtYi37Co/s1600/2014-06-21+22.40.18.jpg" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOZjDoOkCdAiwo7HY7ecnZWNzoroKTNoL_IZNfA3WQITxxHBHEqYWGwnlrC69_5eS1Qkq7RwPgeX3WGkZikWZyWB_uIYJ_8Gb_WsxLhsVK6tjt0AIjxfR-oFVWmTbEErzm3pah7R1iCiU/s1600/2014-06-21+22.59.47.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOZjDoOkCdAiwo7HY7ecnZWNzoroKTNoL_IZNfA3WQITxxHBHEqYWGwnlrC69_5eS1Qkq7RwPgeX3WGkZikWZyWB_uIYJ_8Gb_WsxLhsVK6tjt0AIjxfR-oFVWmTbEErzm3pah7R1iCiU/s1600/2014-06-21+22.59.47.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เมื่อเข้าโปรแกรมแล้วจะมี Icon แถบด้านล่างข้างนาฬิกาจะเปิดหรือปิดการทำงานของ XStroke ก็คลิกที่ Icon</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmCD_m57r03vJPC9bn-hPiQVSN6N-2PFTR0jslBitB8mOVWix1s1i8qgidEFKBuCC9H-dPcigfZtwE-OSG7Ep8pL69MbREkym5o51kgv_CNCcxtlC7DuZQSyNuEfrrtGMR68cWieAxFx0/s1600/2014-06-21+23.01.02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmCD_m57r03vJPC9bn-hPiQVSN6N-2PFTR0jslBitB8mOVWix1s1i8qgidEFKBuCC9H-dPcigfZtwE-OSG7Ep8pL69MbREkym5o51kgv_CNCcxtlC7DuZQSyNuEfrrtGMR68cWieAxFx0/s1600/2014-06-21+23.01.02.jpg" height="236" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
รูปบบการใช้งาน จะต้อง Touch Screen ให้เป็นดังตัวอย่างนี้</h3>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
Global Gestures</h3>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh36XSpuIxa0C014sc6M8HO85pF9gCj71_BZcPWozOBqKzQURJDHXiZNTTeOZfwtvdOafCAoaoTQg67xWoYy284gct6fvZjzOCPCvZGe4FOHjCQF3YUEZ_8Q0gFZjiUw78wAROFslQ99-A/s1600/xstroke-global-gestures.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh36XSpuIxa0C014sc6M8HO85pF9gCj71_BZcPWozOBqKzQURJDHXiZNTTeOZfwtvdOafCAoaoTQg67xWoYy284gct6fvZjzOCPCvZGe4FOHjCQF3YUEZ_8Q0gFZjiUw78wAROFslQ99-A/s1600/xstroke-global-gestures.png" height="234" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
Punctuation</h3>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIXiBJKWiTb43Jwt9SvxYQqccthD8j7pYJ5xS3uW56M-yXOF9dKHSe95CzrMMINRFxmGxLEw2TiuNBPQMln_gCUbfehhrxT1PJRIPLNwbUbEsZnZBIRE-ognbQ7cCDjnoIIHLcHR1xZm4/s1600/xstroke-letters-and-numbers.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIXiBJKWiTb43Jwt9SvxYQqccthD8j7pYJ5xS3uW56M-yXOF9dKHSe95CzrMMINRFxmGxLEw2TiuNBPQMln_gCUbfehhrxT1PJRIPLNwbUbEsZnZBIRE-ognbQ7cCDjnoIIHLcHR1xZm4/s1600/xstroke-letters-and-numbers.png" height="112" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
Letter and Numbers</h3>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXUDxP9569GblY7_UzLxAEpnUivQz1aCspK4MalSDaKjHze7OABu97iNp1lrSO5Xaa8kxOAwmmeYhcxFwIJ32H_r-MKzcu2NvmSFCjxiPsm5JT2yEE0F4hsWS80tFFfXVzDlxw7Usw_uY/s1600/xstroke-punctuation.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXUDxP9569GblY7_UzLxAEpnUivQz1aCspK4MalSDaKjHze7OABu97iNp1lrSO5Xaa8kxOAwmmeYhcxFwIJ32H_r-MKzcu2NvmSFCjxiPsm5JT2yEE0F4hsWS80tFFfXVzDlxw7Usw_uY/s1600/xstroke-punctuation.png" height="120" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
VIDEO</h3>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/XCNFl6QfZjA?feature=player_embedded' frameborder='0'></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/sXU1qJPhTHk?feature=player_embedded' frameborder='0'></iframe><br />
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ที่มา <a href="http://ozzmaker.com/2014/06/17/raspberry-pi-with-stroke-and-gesture-recognition/">http://ozzmaker.com/2014/06/17/raspberry-pi-with-stroke-and-gesture-recognition/</a></div>
<br />
<a href="https://www.blogger.com/goog_253154235">https://www.facebook.com/BooindyIt?ref=hl</a><br />
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a><br />
<a href="https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark">https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark</a><br />
<u><a href="http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos">http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos</a></u>ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-8945435424768148302014-06-08T18:29:00.000+07:002014-06-24T23:50:35.893+07:00Remote Desk Top with SmartPhone to Raspberry Pi<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h2 style="text-align: center;">
Remote DeskTop with SmartPhone to Raspberry Pi</h2>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIhOaOukxPcj1KYu1lE6IQ9njomo3zZOPqogFwR2r0zAl3Fmxpm8GmshyS_RmEQaFvp404yAw-cIn63P_fE0Z9Q5ikJ3eMMU-wFXRCwppZKEyWqIRZGEdouQ7EzhcEpxNPNrtskp4cLvw/s1600/2014-06-07+23.25.46.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIhOaOukxPcj1KYu1lE6IQ9njomo3zZOPqogFwR2r0zAl3Fmxpm8GmshyS_RmEQaFvp404yAw-cIn63P_fE0Z9Q5ikJ3eMMU-wFXRCwppZKEyWqIRZGEdouQ7EzhcEpxNPNrtskp4cLvw/s1600/2014-06-07+23.25.46.png" height="213" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both;">
<a href="http://raspberry-pi-thai.blogspot.com/2014/01/remote-desktop-from-windows-machine-to.html">Remote Desktop</a> เป็นการเข้าไปจัดการหน้าจอของ Raspberry pi โดยผู้ใช้ไม่จำเป็นต้องอยู่หน้าเครื่องเราสามารรถจัดการหน้าจอ โดยการรีโหมดหน้าจอให้มาอยู่หน้าจอของคอมพิวเตอร์ของเราในที่นี้ใช้เครื่องมือรีโหมดที่มีให้โหลดฟรีทั้ง IOS และ Android คือ App "RD Client" ก่อนอื่นต้องมีการเชื่อมต่ออินเตอร์เน็ตซะก่อนเพื่อติดตั้งแพ็กเก็ตต่าง</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<br /></div>
<h3>
รายการอุปกรณ์</h3>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
- ชุด Raspberry pi</div>
<div class="separator" style="clear: both;">
- SD Card 4G Class4 ขั้นต่ำ-OS Raspbian "2014-01-07-wheezy-raspbian.zip" http://www.raspberrypi.org/downloads</div>
<div class="separator" style="clear: both;">
- Smart Phone Android/IOS </div>
<div class="separator" style="clear: both;">
- App"RD Client" <a href="https://play.google.com/store/apps/details?id=com.microsoft.rdc.android">https://play.google.com/store/apps/details?id=com.microsoft.rdc.android</a> / </div>
<div class="separator" style="clear: both;">
- Mount+Keyboard</div>
<div class="separator" style="clear: both;">
- Internet</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<br /></div>
<h3>
ขั้นตอนการติดตั้ง</h3>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
ที่ตัว Raspberry pi มาติดตั้งโปรแกรมที่ใช้ในการรีโหมดเข้าไปด้วย XRDP</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
#sudo apt-get install xrdp</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
ตรวจสอบ IP ของ Raspberry pi แล้วจดจำไว้เพื่อที่จะเอาไปใช้ในการรีโหมดเข้ามาใน Raspberry pi แล้วรีสตาร์ตเครื่องใหม่เพื่อให้โปรแกรม XRDP เปิดใช้งานอัตโนมัติ ด้วยคำสั่ง</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
#ifconfig </div>
<div class="separator" style="clear: both;">
#sudo reboot</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
จะเห็นว่ามีการเปิดใช้งาน Remote Desktop Protocol Server : xrdp</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4GgCP6mdy6VDRo31-Fx7KXRZsFoyi0kMcIMxiC1IxcOcquQkV3BcyQnnlQihyphenhyphenpZCg_4JESHa1HqMpyzFU_4Rh3ZiI5d38SADHPLDwiNZuIVSysC4RnSVRGXHr9Cg6gjcoxKbxqm2qNOwK/s640/IPAddress.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4GgCP6mdy6VDRo31-Fx7KXRZsFoyi0kMcIMxiC1IxcOcquQkV3BcyQnnlQihyphenhyphenpZCg_4JESHa1HqMpyzFU_4Rh3ZiI5d38SADHPLDwiNZuIVSysC4RnSVRGXHr9Cg6gjcoxKbxqm2qNOwK/s640/IPAddress.jpg" height="31" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
มาที่ Smart Phone เมื่อดาวน์โหลดและติดตั้งแล้วก็เปิด App RD Client</div>
<div class="separator" style="clear: both;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_g2muQuaxjwD3FmT5bJ6eoqpShbHTRJr6VXfL_ijnJvAOFpIAG3CycT4a8VNMYG2-EY9xlrppIXI2U3vj1mlaqM0o4ILVOnPIvf1O14szDkq1xACrodp4Gda0W-YmYVk893Sow02qmhQ/s1600/2014-06-07+23.32.55.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_g2muQuaxjwD3FmT5bJ6eoqpShbHTRJr6VXfL_ijnJvAOFpIAG3CycT4a8VNMYG2-EY9xlrppIXI2U3vj1mlaqM0o4ILVOnPIvf1O14szDkq1xACrodp4Gda0W-YmYVk893Sow02qmhQ/s1600/2014-06-07+23.32.55.png" height="320" width="213" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เลือก Remote Desktop กำหนดค่าให้ตรงกับระบบของเรา</div>
<div class="separator" style="clear: both; text-align: left;">
- Connection name : ตั้งอะไรก็ได้</div>
<div class="separator" style="clear: both; text-align: left;">
- PC name : IP/HOSTNAME ใส่เป็น IP_Raspberrypi หรือ HostName ที่ตั้งไว้</div>
<div class="separator" style="clear: both; text-align: left;">
- User : pi </div>
- Password : raspberry<br />
<br />
ทำการ save แล้วเลือกรีโหมดที่เราได้ตั้งค่าไว้<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI2GYGr0EC_wLx-_zE4T686HzAYqZczsRyTZZgqNXnAvXQ5G0HZTnHKyFHrIpOIcU-j9BLgpFifaOY6dHge7MeaT-PdxeDG7fsWvQ_hHYJIQxTrRF5pM9oJK6ndwits6pGuW0C-iNxLtU/s1600/2014-06-07+23.26.42.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI2GYGr0EC_wLx-_zE4T686HzAYqZczsRyTZZgqNXnAvXQ5G0HZTnHKyFHrIpOIcU-j9BLgpFifaOY6dHge7MeaT-PdxeDG7fsWvQ_hHYJIQxTrRF5pM9oJK6ndwits6pGuW0C-iNxLtU/s1600/2014-06-07+23.26.42.png" height="320" width="213" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
โปรแกรมจะรีโหมดเข้าไปยังหน้าจอของ Raspberry Pi</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR3noKYyCCtFHYKW_7KirrfqwQOJ16LLnGnsKD15VqMs0KT7ZIK8V48eoLjBFbvYU-H17BOSRZNXMHMVQPgaE_9tZn4B4lQtjO8gN0HhpJjpA0uksGlb8BrGsX7VgMWSdFzd4kP9fekkQ/s1600/2014-06-07+23.45.58.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR3noKYyCCtFHYKW_7KirrfqwQOJ16LLnGnsKD15VqMs0KT7ZIK8V48eoLjBFbvYU-H17BOSRZNXMHMVQPgaE_9tZn4B4lQtjO8gN0HhpJjpA0uksGlb8BrGsX7VgMWSdFzd4kP9fekkQ/s1600/2014-06-07+23.45.58.png" height="213" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaBfLRsdFsNV37I3dPzXDdFr_mppVYd1-qzHkHj0GDWe7X8UhfdFuXOMswSbVGhAgVVYw8iz1sHclqxhFO3i0x0yC1qrxOn9DsFIuyTMIqIdMkiukXiG_V_hfzLeQYbRlEMSgqOvdTveE/s1600/2014-06-07+23.46.00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaBfLRsdFsNV37I3dPzXDdFr_mppVYd1-qzHkHj0GDWe7X8UhfdFuXOMswSbVGhAgVVYw8iz1sHclqxhFO3i0x0yC1qrxOn9DsFIuyTMIqIdMkiukXiG_V_hfzLeQYbRlEMSgqOvdTveE/s1600/2014-06-07+23.46.00.png" height="213" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
หน้าแรกของ Desk Top<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik3ep3M8E3kJCaeage-Ga35wjSaCXoHaGAb8HRtjA77pEMI3C8RELESZD3yxDPxds5E8N2iI1rXw_6jHUhjc1ZZG44d8Q5zf028SmnOreihqAAW5a7MYIKmIV0bniHBRk0aloJlUnpuvk/s1600/2014-06-07+23.21.47.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik3ep3M8E3kJCaeage-Ga35wjSaCXoHaGAb8HRtjA77pEMI3C8RELESZD3yxDPxds5E8N2iI1rXw_6jHUhjc1ZZG44d8Q5zf028SmnOreihqAAW5a7MYIKmIV0bniHBRk0aloJlUnpuvk/s1600/2014-06-07+23.21.47.png" height="213" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เลือกเทปข้างบนที่เป็นรูป Keyboard จะแสดงดังรูป</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdfKl7aOtvBMR250tA7f_V7Vd4ztWbPV_YzdBGlR7n94_ZKLYvIPoOnKw9ZLQ_CD0w7CnjtYARvUTA_eK9a7iRZgokTvEKAfB6Fl17ksaYD37pbUuiDu0JOno31hpv36p3BoSjaLFup5A/s1600/2014-06-07+23.21.54.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdfKl7aOtvBMR250tA7f_V7Vd4ztWbPV_YzdBGlR7n94_ZKLYvIPoOnKw9ZLQ_CD0w7CnjtYARvUTA_eK9a7iRZgokTvEKAfB6Fl17ksaYD37pbUuiDu0JOno31hpv36p3BoSjaLFup5A/s1600/2014-06-07+23.21.54.png" height="213" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เลือก ".:." ตรงริมขวาบนจะเปลียนเป็นดังรูป</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUS3o2rGgUXxG1cBpfeKiqemCyxcjDnewGrT9EdvCwjik437GjS8oXZarHs3VXezzSWeTcSC2RbD3Mxn9o0TNQdzfqtNwC01DCNIxIb7wz0x8otYtG7gP9Ich2644ulNDyusSDKKuIZdc/s1600/2014-06-07+23.25.46.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUS3o2rGgUXxG1cBpfeKiqemCyxcjDnewGrT9EdvCwjik437GjS8oXZarHs3VXezzSWeTcSC2RbD3Mxn9o0TNQdzfqtNwC01DCNIxIb7wz0x8otYtG7gP9Ich2644ulNDyusSDKKuIZdc/s1600/2014-06-07+23.25.46.png" height="213" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เลือก Num ตรงริมขวาบนจะเปลียนเป็นดังรูป</div>
<div class="separator" style="clear: both; text-align: left;">
เลือกแตะส่วนใดของหน้าจอแล้ว เลือกปุ่ม "สี่ทิศอันบน" มันจะซูมหน้าจอให้ใหญ่ขึ้นและ สามารถแตะพร้อมสไล ตรงปุ่ม "สี่ทิศอันล่าง" เพื่อเลื่อนหน้าจอได้</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj45FYw8wczoVXf7zK97po_i2wtic95-CPrBI2S785eyCRms6T4nCmTHeABveVXeDelIAoYpy8htvV-ylrsxIgNZ1e6LCPPZRF1MbppCHT9SaOAxxTYPvLovqzPvyWBDNV9zvkdk_D0fXg/s1600/2014-06-07+23.25.53.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj45FYw8wczoVXf7zK97po_i2wtic95-CPrBI2S785eyCRms6T4nCmTHeABveVXeDelIAoYpy8htvV-ylrsxIgNZ1e6LCPPZRF1MbppCHT9SaOAxxTYPvLovqzPvyWBDNV9zvkdk_D0fXg/s1600/2014-06-07+23.25.53.png" height="213" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
สำหรับเทปบนจะมีสองไอคอนคือ</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ทางซ้ายมือ คือ ใช้ให้แสดงเมาส์และสามารถสไลหน้าจอเพื่อให้เมาส์เลื่อน และ แตะสองครั้งเพื่อคลิก</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ทางขวามือ คือ ใช้ในการออกจากหน้าจอรีโหมด</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy0T7RIOxj4BLU7yLKAXdlJiUS_O065ClJj7B_jj-uWX_YMz3kQ_3djckHSWhm95ljVFjgBTfXIWVnIOH4NIbCOKLdsyslJdmZbYVJlUIV6N0ZD0U_avVxRX2-PoePYqyy50lfunuVZns/s1600/2014-06-07+23.44.51.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy0T7RIOxj4BLU7yLKAXdlJiUS_O065ClJj7B_jj-uWX_YMz3kQ_3djckHSWhm95ljVFjgBTfXIWVnIOH4NIbCOKLdsyslJdmZbYVJlUIV6N0ZD0U_avVxRX2-PoePYqyy50lfunuVZns/s1600/2014-06-07+23.44.51.png" height="213" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
การใช้เมาส์</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo732dYB7dT2HUwrwbz723lBtoy0KoRVkDh7SJZPHGsCIEEWfXhejSfYJNLsragN0h5xwbGRTFA3_lPWaux2iLNt63U4SbpT8FEL6RF3OtmH4Y9I5GeuK2PSAF52scn4hwnbT79bRiZ9A/s1600/2014-06-07+23.41.41.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo732dYB7dT2HUwrwbz723lBtoy0KoRVkDh7SJZPHGsCIEEWfXhejSfYJNLsragN0h5xwbGRTFA3_lPWaux2iLNt63U4SbpT8FEL6RF3OtmH4Y9I5GeuK2PSAF52scn4hwnbT79bRiZ9A/s1600/2014-06-07+23.41.41.png" height="213" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<br />
ที่มา :<a href="https://www.facebook.com/BooindyIt?ref=hl"> https://www.facebook.com/BooindyIt?ref=hl</a><br />
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a><br />
<a href="https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark">https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark</a><br />
<u><a href="http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos">http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos</a></u><br />
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a><br />
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a>ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-2605962759974931052014-06-01T23:08:00.001+07:002014-06-24T23:50:23.793+07:00How to install TFT 2.8 Touch Screen on Raspberry Pi<br />
<h2 style="text-align: center;">
<span style="font-weight: normal;">วิธีการติตตั้งจอ 2.8 แบบหน้าจอสัมผัสบน Raspberry Pi</span></h2>
<div>
<br /></div>
<div>
<br /></div>
<div>
สำหรับการใช้งานจอ TFT 2.8 Touch Screen กับ Raspberry Pi นั้นเราสามารถใช้ร่วมกันได้ โดยการต่อขาสัญญาณให้กับอุปกรณ์ทั้งสองจากนั้นติตตั้ง Image File (.img) เปิดเครื่องก็สามารถใช้งานได้แล้วเพราะ img ตัวนี้เป็นตัวสำเร็จรูป นอกจากการแสดงผลออกมาแล้วเราสามารถใช้หน้าจอสัมผัสในการควบคุบต่างๆได้ วิธีนี้เป็นวิธีที่ง่ายมาก เหมาะสำหรับมือใหม่จริงๆแล้วต้อง Config เอง</div>
<div>
<br /></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4X_VmXVZgT4qJnJ2pBrKtwH8ZnRsKcHuJMEIf5JDfW_obqHUKPfoyOKhq4rmZkqNExgUSsOVj54yr3VFOeTVQ1kPLh1YEFjL0_rFUoanJl4HX_eVEcBA-VisRhD4gJ0OHmD1ipBtlSds/s1600/2014-06-01+15.46.05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4X_VmXVZgT4qJnJ2pBrKtwH8ZnRsKcHuJMEIf5JDfW_obqHUKPfoyOKhq4rmZkqNExgUSsOVj54yr3VFOeTVQ1kPLh1YEFjL0_rFUoanJl4HX_eVEcBA-VisRhD4gJ0OHmD1ipBtlSds/s1600/2014-06-01+15.46.05.jpg" height="240" width="320" /></a></div>
<div>
</div>
<br />
<h3>
รายการอุปกรณ์และแหล่ง Download</h3>
<br />
- ชุด Raspberry pi<br />
- SD Card 4G Class4<br />
- 2.8" Touch Screen TFT LCD with all interface<br />
- Jumper Wire<br />
- OS Raspbian Download : <a href="http://tronnes.org/downloads/2014-01-07-wheezy-raspbian-2014-03-12-fbtft-hy28a.zip">http://tronnes.org/downloads/2014-01-07-wheezy-raspbian-2014-03-12-fbtft-hy28a.zip</a><br />
- โปรแกรม Putty Download : <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a><br />
- โปรแกรม Win32 Disk Imager <a href="http://sourceforge.net/projects/win32diskimager/">http://sourceforge.net/projects/win32diskimager/</a><br />
- Mount+Keyboard<br />
- Internet<br />
<br />
<h3>
การจอ TFT 2.8 กับ Raspberry Pi</h3>
<div>
<br /></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqruD8jGOjJlYKS3Qn2CutQAV1yoij_DdQCqDxMgosoXNdetzrl0b7-A7wJ3tQEZgtgUk9kuNiwcs1g4G5F_sRXv59wGKdBz_LLd3TAOAglMINayFJ8zKJoZ7dt5hdY03v0TQCnNApBSg/s1600/2014-05-03+16.35.43.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqruD8jGOjJlYKS3Qn2CutQAV1yoij_DdQCqDxMgosoXNdetzrl0b7-A7wJ3tQEZgtgUk9kuNiwcs1g4G5F_sRXv59wGKdBz_LLd3TAOAglMINayFJ8zKJoZ7dt5hdY03v0TQCnNApBSg/s1600/2014-05-03+16.35.43.jpg" height="320" width="240" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEfQmJT435I2_uTCEcy5t078tD-FJsWIfHVK1k61Z_LCk9v4WKflubThcIHUMSHhgpnE7T7G0DQWuMIRGYZZgyUpRdvZO1mDlfYiHmsVCZipUJRO8VBuqwyN-ucICUbvlZFmRiMcb2pNs/s1600/2014-05-03+16.35.28.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEfQmJT435I2_uTCEcy5t078tD-FJsWIfHVK1k61Z_LCk9v4WKflubThcIHUMSHhgpnE7T7G0DQWuMIRGYZZgyUpRdvZO1mDlfYiHmsVCZipUJRO8VBuqwyN-ucICUbvlZFmRiMcb2pNs/s1600/2014-05-03+16.35.28.jpg" height="320" width="240" /></a></div>
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<b>การต่อขาสัญญาณรหะหว่างกัน</b></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ9-hJ1GKdwNGExJxRgX27GEIpie7M5I6wX-fUCX4IYrobh_1xk7oeBedoPERs11Slcu_va-y3kRrmGTN7r6Cbojy9aJ1yE7bgQPfEC6Ul72lwPjUAbxZFrBr4I00yF-v7Ke9Gz9_LCIM/s1600/uw.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ9-hJ1GKdwNGExJxRgX27GEIpie7M5I6wX-fUCX4IYrobh_1xk7oeBedoPERs11Slcu_va-y3kRrmGTN7r6Cbojy9aJ1yE7bgQPfEC6Ul72lwPjUAbxZFrBr4I00yF-v7Ke9Gz9_LCIM/s1600/uw.jpg" height="380" width="640" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2uVmotIcH70cY8ANekX94n3ql7rQyo9fTHuxiFmVj7L3xXygxfzds2BI-qZBYH4IscVWQhQyuUlDAjO922dearktL4pA55Sd5c0fLgxfXseWOi40QvOp39Ve-P-Vz6TtZaP1AlEvDWjs/s1600/2014-05-04+13.30.21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2uVmotIcH70cY8ANekX94n3ql7rQyo9fTHuxiFmVj7L3xXygxfzds2BI-qZBYH4IscVWQhQyuUlDAjO922dearktL4pA55Sd5c0fLgxfXseWOi40QvOp39Ve-P-Vz6TtZaP1AlEvDWjs/s1600/2014-05-04+13.30.21.jpg" height="320" width="240" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwSNXprmCEVCTRK72twdy_TKLkbHpoArqsu5uo_ECXtd-aznKlENbpQGWYYZrpXLcNsbH6ZtZFEqKucZzB6mpiYb7FI4E9THxfYiowAQVlK5rCeWMF_7hcrcHU2OoElU-GiLvdkCkO-D4/s1600/2014-05-04+13.30.31.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwSNXprmCEVCTRK72twdy_TKLkbHpoArqsu5uo_ECXtd-aznKlENbpQGWYYZrpXLcNsbH6ZtZFEqKucZzB6mpiYb7FI4E9THxfYiowAQVlK5rCeWMF_7hcrcHU2OoElU-GiLvdkCkO-D4/s1600/2014-05-04+13.30.31.jpg" height="320" width="240" /></a></div>
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUCUji1TUCZbbaWFRBFLV2wDcu56whpLLwn7RpnP5X7DDqwURhdN1orVA_zl_hICSqgFehykPtx60zlSkLBJmBSqGxDXpKNx-BSoiOKiV5GJXallICMrEHnKbx6SFbvaGC4xuq7IfUgug/s1600/2014-05-04+14.04.01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUCUji1TUCZbbaWFRBFLV2wDcu56whpLLwn7RpnP5X7DDqwURhdN1orVA_zl_hICSqgFehykPtx60zlSkLBJmBSqGxDXpKNx-BSoiOKiV5GJXallICMrEHnKbx6SFbvaGC4xuq7IfUgug/s1600/2014-05-04+14.04.01.jpg" height="320" width="240" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2N48qARVuvzsaJB5l1C_XI3YyKSJv1cWRfjvi7GoJdzqhtj6j9Z3XE2eFFvdFZsTcRPNUnin_Z5_ikZwpv9S01j96c4yXBnaDl2jJ-s_1JPKVkx7IeK_-oVsOniU8Yi-aGO27y1TFLm0/s1600/2014-05-04+14.04.34.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2N48qARVuvzsaJB5l1C_XI3YyKSJv1cWRfjvi7GoJdzqhtj6j9Z3XE2eFFvdFZsTcRPNUnin_Z5_ikZwpv9S01j96c4yXBnaDl2jJ-s_1JPKVkx7IeK_-oVsOniU8Yi-aGO27y1TFLm0/s1600/2014-05-04+14.04.34.jpg" height="240" width="320" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhxujrQoCujdCY2MM83IaldeLxpnxtHvBCCTwfmnTbOs0pLpnXJ9tVnj0cRFEnA6ax_aVFxIg-y95Y7jq_UnQuLa4rzWyprCIMRVuAOLaBis3C3elTtT37GinrMdmOHdllDW35YGKJe50/s1600/2014-05-04+14.05.29.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhxujrQoCujdCY2MM83IaldeLxpnxtHvBCCTwfmnTbOs0pLpnXJ9tVnj0cRFEnA6ax_aVFxIg-y95Y7jq_UnQuLa4rzWyprCIMRVuAOLaBis3C3elTtT37GinrMdmOHdllDW35YGKJe50/s1600/2014-05-04+14.05.29.jpg" height="320" width="240" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3>
เขียน Image File (.img) จากที่โหลดมาลงใน CD Card </h3>
<blockquote class="tr_bq">
<br /></blockquote>
<blockquote class="tr_bq">
ถ้าต่ออุปกรณ์ถูกต้องก็จะสามารถมารถใช้งานได้ทันทีโดยไม่ต้อง Config ไดๆเลย เพราะเป็น img ที่สมบูรณ์แล้ว</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbAvVmiiG3aAnitSLlPFRHGzNaSqFayzmOSjd4zvx9hHSdn-uN2NglgQtjA-_Wutfo6lbUkeyLMgnMV1kLjBcwX0JUPveep8t8bmH_dzjtP9-0OUUzCjbWtCNOF5mawpe6agdXxEow8Uc/s1600/2014-05-04+14.18.51.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbAvVmiiG3aAnitSLlPFRHGzNaSqFayzmOSjd4zvx9hHSdn-uN2NglgQtjA-_Wutfo6lbUkeyLMgnMV1kLjBcwX0JUPveep8t8bmH_dzjtP9-0OUUzCjbWtCNOF5mawpe6agdXxEow8Uc/s1600/2014-05-04+14.18.51.jpg" height="240" width="320" /></a></div>
<div>
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4X_VmXVZgT4qJnJ2pBrKtwH8ZnRsKcHuJMEIf5JDfW_obqHUKPfoyOKhq4rmZkqNExgUSsOVj54yr3VFOeTVQ1kPLh1YEFjL0_rFUoanJl4HX_eVEcBA-VisRhD4gJ0OHmD1ipBtlSds/s1600/2014-06-01+15.46.05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4X_VmXVZgT4qJnJ2pBrKtwH8ZnRsKcHuJMEIf5JDfW_obqHUKPfoyOKhq4rmZkqNExgUSsOVj54yr3VFOeTVQ1kPLh1YEFjL0_rFUoanJl4HX_eVEcBA-VisRhD4gJ0OHmD1ipBtlSds/s1600/2014-06-01+15.46.05.jpg" height="240" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h3>
Video</h3>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="https://i1.ytimg.com/vi/aE5iN_MX94s/0.jpg" height="266" width="320"><param name="movie" value="https://www.youtube.com/v/aE5iN_MX94s?version=3&f=user_uploads&c=google-webdrive-0&app=youtube_gdata" /><param name="bgcolor" value="#FFFFFF" /><param name="allowFullScreen" value="true" /><embed width="320" height="266" src="https://www.youtube.com/v/aE5iN_MX94s?version=3&f=user_uploads&c=google-webdrive-0&app=youtube_gdata" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></div>
<br />
<br />
<br />
ที่มา : <a href="https://www.blogger.com/goog_1482902253">http://www.raspberrypi.org/forums/viewtopic.php?t=48967http://micro2440.blogspot.com/</a><br />
<a href="https://www.blogger.com/goog_1482902253">https://www.facebook.com/BooindyIt?ref=hl</a><br />
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a><br />
<a href="https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark">https://www.facebook.com/BooindyIt?ref=hl&ref_type=bookmark</a><br />
<u><a href="http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos">http://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos</a></u><br />
<br />ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-8940980456178393872014-05-03T16:28:00.000+07:002014-05-03T16:28:10.308+07:00How to install Game Supertux on Raspberry Pi (การติดตั้งเกมส์ Super tux บนบอร์ด Raspberry pi)<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h2 class="separator" style="clear: both; text-align: center;">
การติดตั้งเกมส์ Super tux บนบอร์ด Raspberry pi </h2>
<h2 class="separator" style="clear: both; text-align: center;">
(How to install Game Supertux on Raspberry Pi)</h2>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
มาติดตั้งเกมส์บน Raspberry pi กันครับ เป็นเกมส์ในลักษณะเหมือนกับเกมส์ Mario ที่เราคุ้นเคยกันทั่วไปแต่ในระบบ Linux ก็มีเกมส์ให้ติดตั้งเช่นกันบนบอร์ด Raspberry pi จะชื่อเกมส์ว่า Supertux โดยตัวละครในเกมส์จะเป็นตัวนกแพนกวินที่เป็นสัญลักษณ์ของระบบ Linux อยู่แล้วครับ ขั้นตอนติดตั้งก็ง่ายครับเพียวแค่มีอุปกรณ์ครบติดตั้งแค่สองคำสั่งก็สามารถเล่นได้แล้ว</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcoVG6e2kAlKoQkJUZSwcTMhQv_gorA7MKuuyJjtUS1gByMiiB961JM_WFYOT_1vY7gaNJlI0i8UYuyqZMAxp31Di-PvTAOQERnq_00Dfig-AxLVXWB3_Wwg8hZbembfHDQXvZw2RCq4Q/s1600/supertux4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcoVG6e2kAlKoQkJUZSwcTMhQv_gorA7MKuuyJjtUS1gByMiiB961JM_WFYOT_1vY7gaNJlI0i8UYuyqZMAxp31Di-PvTAOQERnq_00Dfig-AxLVXWB3_Wwg8hZbembfHDQXvZw2RCq4Q/s1600/supertux4.JPG" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;">
<strong><span style="font-family: Verdana, sans-serif;">รายการอุปกรณ์</span></strong></h3>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
<strong><span style="font-family: Verdana, sans-serif;"><br /></span></strong></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- ชุด Raspberry pi </span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- SD Card 4G Class4 ขั้นต่ำ-OS Raspbian "<a href="http://downloads.raspberrypi.org/raspbian_latest" style="color: #6e0000; font-size: 13px; line-height: 19.5px; outline: 0px; text-decoration: none;">2014-01-07-wheezy-raspbian.zip</a>" <a href="http://www.raspberrypi.org/downloads" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://www.raspberrypi.org/downloads</a></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Computer OS : Windows</span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Internet WIFI/LAN</span><span style="text-align: center;"></span><span style="font-family: Verdana, sans-serif;"></span><span style="background-color: transparent; text-align: center;"><br /></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Mount+Keyboard+Monitor</span></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;" />
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="font-family: Verdana, sans-serif;"><br /></span></h3>
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="font-family: Verdana, sans-serif;">ขั้นตอนการติดตั้ง </span>Game Super<span style="background-color: transparent; text-align: center;">tux</span></h3>
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="background-color: transparent; text-align: center;"> </span></h3>
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="background-color: transparent; text-align: center;"><br /></span></h3>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="background-color: transparent; text-align: center;">ใช้คำสั่งเพื่อนติดตั้งเกมส์</span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="background-color: transparent; text-align: center;"><br /></span></div>
<blockquote class="tr_bq">
<blockquote class="tr_bq">
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="background-color: transparent; text-align: center;">$sudo apt-get install supertux</span></div>
</blockquote>
</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPR_hZrMgCTPLSSJNDxLqdjTvF_AokCXxomnTsgbOJO7nS3aVD17_ytNGe2PGV3nGsT6aeIUfn3YjNlUkj_mJepUx_A0zSPV6LpiOip1Lp0c1-EJ2k-a5kNrLIm5rNCAa31c-lLVdoqHA/s1600/supertux1.JPG" height="251" width="400" /> </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ใช้คำสั่งเพื่อเปิดเกมส์</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<blockquote class="tr_bq">
<blockquote class="tr_bq">
<div class="separator" style="clear: both; text-align: left;">
$supertux </div>
</blockquote>
</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoxqnGwIys5pnKimiUlJHDj6EolaU2tfiOUeI1U-TybpWec6PfbiMggUOOjg5Vt_Bwt3aJb_so7YZ15nWqaTRK_8c1VA79epMhFOk3y8GdUFYS4KZ6O3wZQFkc16zcnEZrZCUNMnc9Dzo/s1600/supertux2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoxqnGwIys5pnKimiUlJHDj6EolaU2tfiOUeI1U-TybpWec6PfbiMggUOOjg5Vt_Bwt3aJb_so7YZ15nWqaTRK_8c1VA79epMhFOk3y8GdUFYS4KZ6O3wZQFkc16zcnEZrZCUNMnc9Dzo/s1600/supertux2.JPG" height="107" width="400" /></a></div>
<br />
<br />
เข้ามาแล้วครับเริ่มสนุกกันได้เลย<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUuGt10hx2dSO8HTGhJVEGb2Necby4C6ff38z01j85rjZ9MBmNRmlgYu3iBGhwfrouLJE-CXxQKUPJgXtKy7GliKTFc7RaTIUW0Pq2Zpk5112n2CY8OZcgzfX8cglXLNCWoGOD11d4EDM/s1600/supertux3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUuGt10hx2dSO8HTGhJVEGb2Necby4C6ff38z01j85rjZ9MBmNRmlgYu3iBGhwfrouLJE-CXxQKUPJgXtKy7GliKTFc7RaTIUW0Pq2Zpk5112n2CY8OZcgzfX8cglXLNCWoGOD11d4EDM/s1600/supertux3.JPG" height="301" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbRbydoHKSZL__B2-zoowvs1KFsulzn6Tu6l07uqQOvb2Cx_Hi5t3b2RWY-ZDnt0hu87yTI7Z08Xi2z9KNvYgtcQMlJViedltU3XLbX_fBopzh715AUwSYpsfQ-_axXAc22hVxo6OgT24/s1600/supertux6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbRbydoHKSZL__B2-zoowvs1KFsulzn6Tu6l07uqQOvb2Cx_Hi5t3b2RWY-ZDnt0hu87yTI7Z08Xi2z9KNvYgtcQMlJViedltU3XLbX_fBopzh715AUwSYpsfQ-_axXAc22hVxo6OgT24/s1600/supertux6.JPG" height="300" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span id="goog_2147271031"></span><span id="goog_2147271032"></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7abhJvSkJFl4QMhl7D09PuZQfnrjlrg7LsR2AXhUm_ZgRM634Brc7Dm5SC_7ouiBAeWisP0ftYykFWSM1Vl01LTxrtISorRQYDBgZys9ERLUSjzLCBs4LfNTFu0fCs0T28zPdBG7Q-ns/s1600/supertux4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7abhJvSkJFl4QMhl7D09PuZQfnrjlrg7LsR2AXhUm_ZgRM634Brc7Dm5SC_7ouiBAeWisP0ftYykFWSM1Vl01LTxrtISorRQYDBgZys9ERLUSjzLCBs4LfNTFu0fCs0T28zPdBG7Q-ns/s1600/supertux4.JPG" height="300" width="400" /></a></div>
<br />
<h3>
Control Game </h3>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYLs-tjE3a98nGmHd_suTD5hKR-bc_LH7hM7JCduBNx3jzkD4x7vI9FOsp2Bf-PZUC19aMKWKu5c3kbxd6dzN0Mz3C6OfuBHCFgRQ6AaIIl6aAF2bToML5tRl5kHyVjVjtUapMUKy3F4/s1600/supertux5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYLs-tjE3a98nGmHd_suTD5hKR-bc_LH7hM7JCduBNx3jzkD4x7vI9FOsp2Bf-PZUC19aMKWKu5c3kbxd6dzN0Mz3C6OfuBHCFgRQ6AaIIl6aAF2bToML5tRl5kHyVjVjtUapMUKy3F4/s1600/supertux5.JPG" height="300" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
ที่มา : <a href="http://www.youtube.com/watch?v=IEqZDHZtnrg">http://www.youtube.com/watch?v=IEqZDHZtnrg</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-3215429449363606182014-03-27T13:08:00.001+07:002014-03-31T21:07:25.898+07:00การสร้างสถานีวิทยุ FM ด้วย Raspberry Pi โดยไม่ต้องมีอุปกรณ์เพิ่ม <br />
<br />
<br />
<h2 style="text-align: center;">
How To Install Station FM on Raspberry Pi</h2>
<div>
<br />
บทความนี้จะเป็นการนำ Raspberry Pi มาทำเป็นเครื่องส่งวิทยุ FM ขนาดเล็กหากมีชุด Raspberry Pi อยู่แล้ว ไม่จำเป็นต้องซื้ออุปกรณ์เพิ่มเติมอะไรเลย แค่ติดตตั้ง Software เพิ่มเข้าไปก็สามารถใช้งานได้แล้วครับ และเราสามารถรับสัญญาณวิทยุได้โดยเครื่องรับวิทยุทั่วไป<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://razzpisampler.oreilly.com/images/rpck_0411.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://razzpisampler.oreilly.com/images/rpck_0411.png" height="263" width="400" /></a></div>
<br />
<br />
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;">
<strong><span style="font-family: Verdana, sans-serif;">รายการอุปกรณ์</span></strong></h3>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
<strong><span style="font-family: Verdana, sans-serif;"><br /></span></strong></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- ชุด Raspberry pi </span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- SD Card 4G Class4 ขั้นต่ำ-OS Raspbian "<a href="http://downloads.raspberrypi.org/raspbian_latest" style="color: #6e0000; font-size: 13px; line-height: 19.5px; outline: 0px; text-decoration: none;">2014-01-07-wheezy-raspbian.zip</a>" <a href="http://www.raspberrypi.org/downloads" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://www.raspberrypi.org/downloads</a></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- </span><span style="background-color: transparent; text-align: center;">โปรแกรม Winscp Download : </span><span style="background-color: transparent; font-size: 15px;"><a href="http://software.thaiware.com/10606-WinSCP.html" style="color: #6699cc; text-decoration: none;">http://software.thaiware.com/10606-WinSCP.html</a></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- เครื่องรับวิทยุ FM</span></div>
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- สายไฟทำเสากากาศ</span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Mount+Keyboard</span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<h3 style="font-size: 16px; margin: 0px; position: relative;">
<span style="font-family: Verdana, sans-serif;">ขั้นตอนการติดตั้ง FM</span></h3>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Lato, 'Helvetica Neue', Arial, sans-serif; line-height: 26px;">ใช้สายไฟธรรมดาต่อที่ขา GPIO 4 เพื่อใช้เป็นเสาอากาศในการส่งสัญญาณ </span><span style="font-family: Lato, 'Helvetica Neue', Arial, sans-serif; line-height: 26px;">หรืออาจจะไม่ต่อก็ได้</span><span style="font-family: Lato, 'Helvetica Neue', Arial, sans-serif; line-height: 26px;">แต่สัญญาณจะอ่อน</span></div>
<div>
<span style="font-family: Lato, 'Helvetica Neue', Arial, sans-serif; line-height: 26px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihYzkpqq84bvbdN-oV2pH74SJx7Ee053oawt0LF5fhzzeIc-zLpfEzaaM_PiJICCkgogSg8PiYpqvfbuKj9jTJTgw6cO8DoKqi9y7IS5xjtTBgG02RcmxCFe_7dl0xjXqoIcizDQbyZ5c/s1600/pifm-gpio.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihYzkpqq84bvbdN-oV2pH74SJx7Ee053oawt0LF5fhzzeIc-zLpfEzaaM_PiJICCkgogSg8PiYpqvfbuKj9jTJTgw6cO8DoKqi9y7IS5xjtTBgG02RcmxCFe_7dl0xjXqoIcizDQbyZ5c/s1600/pifm-gpio.jpg" height="175" width="400" /></a></div>
<div>
<span style="font-family: Lato, 'Helvetica Neue', Arial, sans-serif; line-height: 26px;"><br /></span></div>
</div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
โหลดไฟล์เพื่อใช้ในการนำมาทำระบบ FM </div>
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 22.100000381469727px;"><b>#sudo wget www.icrobotics.co.uk/wiki/images/c/c3/Pifm.tar.gz</b></span></blockquote>
<blockquote class="tr_bq">
<span style="background-color: white; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 22.100000381469727px;"><b> #ls</b></span></blockquote>
<blockquote class="tr_bq">
<b>#<span style="background-color: white; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 22.100000381469727px;">tar -xvf Pifm.tar.gz</span></b></blockquote>
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYP9fc1DGDAbeyE5ty3itR4deSxBMcEIOxmvXSVqtkPOSCFDd6CmUjfL9dEt0Z4Y-TSkxxOK720K1fFCo_Jl7t9JvGdEz0v0v1xPfz71yDudqhFop_oI1ZmGBo_VP4tOWHQoIKjgoo4qY/s1600/FM.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYP9fc1DGDAbeyE5ty3itR4deSxBMcEIOxmvXSVqtkPOSCFDd6CmUjfL9dEt0Z4Y-TSkxxOK720K1fFCo_Jl7t9JvGdEz0v0v1xPfz71yDudqhFop_oI1ZmGBo_VP4tOWHQoIKjgoo4qY/s1600/FM.JPG" height="111" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLSYCyMEfTr0m6DidTUjqWIiW_sWLawlOjbvZgu4pl191aWphHP4lYLVspLnb1n0sOFBx3gTITRU2jVwPgXh-DWRMJC3hpIZwoxtqBzhylEuERB1ISws1aqXg02FWERiPrxheYBxBQTWY/s1600/FM2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLSYCyMEfTr0m6DidTUjqWIiW_sWLawlOjbvZgu4pl191aWphHP4lYLVspLnb1n0sOFBx3gTITRU2jVwPgXh-DWRMJC3hpIZwoxtqBzhylEuERB1ISws1aqXg02FWERiPrxheYBxBQTWY/s1600/FM2.JPG" height="252" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ติดตั้งโปรแกรมแปลงไฟล์เพื่อใช้ในการแปลงไฟล์ .mp3 ไปเป็น .wav โดยเราไม่จำเป็นต้องใช้โปรแกรมแปลงไฟล์ภายนอกแล้วอัพไฟล์ .wav จะยุ่งยากกว่า</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
<table style="border-collapse: collapse !important; border-spacing: 0px; border: none !important; box-sizing: border-box; color: #110000; font-family: Lato, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 26px; margin: 0px !important; max-width: 100%; padding: 0px !important; width: 683px;"><tbody style="box-sizing: border-box;">
<tr style="box-sizing: border-box;"><td class="code" style="background-image: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.901961) 50%); background-size: 1px 32px; border: none !important; box-sizing: border-box; line-height: normal !important; padding: 0px !important; vertical-align: top !important; width: 683px;"><pre class="bash" style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: none !important; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; box-sizing: border-box; clear: none !important; float: none !important; font-size: 12px !important; line-height: 16px !important; overflow: visible !important; padding: 0px 4px !important; width: auto !important;"><span style="background-color: white;"><b><span style="box-sizing: border-box; color: #c20cb9;">#sudo</span> <span style="box-sizing: border-box; color: #c20cb9;">apt-get install</span> <span style="box-sizing: border-box; color: #c20cb9;">sox</span> libsox-fmt-all</b></span></pre>
</td></tr>
</tbody></table>
</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiszV0a0Rm3fkQ77C5RR9E6fhDw2ieNmjmPdSlD_A4odfZhzfGAm4tnNXIefBd7tw2PpExTbnlCPXGl3ny5TLKZ2E3RLS-7F05MuMdusVympmXwq7PkHTzVNfv3axDLVnW26NZLu_FzVCU/s1600/FM3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiszV0a0Rm3fkQ77C5RR9E6fhDw2ieNmjmPdSlD_A4odfZhzfGAm4tnNXIefBd7tw2PpExTbnlCPXGl3ny5TLKZ2E3RLS-7F05MuMdusVympmXwq7PkHTzVNfv3axDLVnW26NZLu_FzVCU/s1600/FM3.JPG" height="251" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
หากยังติดตั้งไม่ได้ให้ update ระบบก่อนแล้วลองติดตั้งใหม่</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
<b>#sudo apt-get update</b></blockquote>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbxLDMdbyOxJ5V3cVNPrlUZOvApvFSygWDZRtvcnw1XlbmENJQcge7GckFR4nrRg_ygIy6VsSeFokD7pFwMolIWW129c_ugjuIa0T3EfwXj_7cYej0tovd82dLy7APTkB26aGYrzJp4Gc/s1600/FM5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbxLDMdbyOxJ5V3cVNPrlUZOvApvFSygWDZRtvcnw1XlbmENJQcge7GckFR4nrRg_ygIy6VsSeFokD7pFwMolIWW129c_ugjuIa0T3EfwXj_7cYej0tovd82dLy7APTkB26aGYrzJp4Gc/s1600/FM5.JPG" height="252" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ทดสอบเล่นไฟล์ที่โหลดมา พร้อมกับเปิดเครื่องรับวิทยุทิ้งไว้ที่ความถี่ 96.0 เพื่อจะทดสอบรับสัญญาณส่งสัญญาณมาจาก Raspberry Pi</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
<strong style="background-color: white; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 22.100000381469727px;">#sudo ./pifm sound.wav 96.0</strong></blockquote>
ความหมายของคำสั่ง<br />
sudo = อนุญาติให้ใช้คำสั่งจาก <span style="background-color: white; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 22.100000381469727px;">administrator</span><br />
<span style="color: #333333; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; font-size: 17px; line-height: 22.100000381469727px;">./pifm = ไฟล์ใช้รันโปรแกรม</span></span><br />
<span style="color: #333333; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; font-size: 17px; line-height: 22.100000381469727px;">sound.wav = ต้องเป็นไฟล์ .wav ที่ใช้เล่นกับไฟล์ ./pifm</span></span><br />
<span style="color: #333333; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; font-size: 17px; line-height: 22.100000381469727px;">96.0 = ความถี่ของวิทยุ FM เราสามารถกำหนดความถีเองได้ </span></span><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAGcOyFBieMWrwl-YuYUxzC_tnpiqNCvaVDuXO3Rm81d7zOS4f6Z3ZjwYlES-y75wjRNQxTOgkJA_bjcDnvUUcva_96P2MQscGJLLCnim2Pls_eu75oyUDhv1zk_xXKRTD0aJdFy5auXY/s1600/FM4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAGcOyFBieMWrwl-YuYUxzC_tnpiqNCvaVDuXO3Rm81d7zOS4f6Z3ZjwYlES-y75wjRNQxTOgkJA_bjcDnvUUcva_96P2MQscGJLLCnim2Pls_eu75oyUDhv1zk_xXKRTD0aJdFy5auXY/s1600/FM4.JPG" height="21" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
นี้เป็นการเล่นไฟล์ Mp3 ที่อยู่ในเครื่องของเราแล้วโดยใช้โปรแกรมแปลงไฟล์ให้เป็น .wav ก่อนจะได้ยินเสียง</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUKN7Qk8xvwLwrCvCClMLZW7da4dovivRW02CbPfaHp1_YSSWPY46ahJDJ0xsaRGFJpJmeSNXyKFDZcZ48xo7CtN31AejsHDyBIYwjdUh9320wZ43Y0DHDKUwekOy-BF-iOWk-CEdzy-M/s1600/FM6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUKN7Qk8xvwLwrCvCClMLZW7da4dovivRW02CbPfaHp1_YSSWPY46ahJDJ0xsaRGFJpJmeSNXyKFDZcZ48xo7CtN31AejsHDyBIYwjdUh9320wZ43Y0DHDKUwekOy-BF-iOWk-CEdzy-M/s1600/FM6.JPG" height="27" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgioUKSKOQ55reFzWU4P0giPRq3cjKzxsTuIF4hF2w7bKdtWUPmDtESeAoAczRHauVEuzRU2WQt2tiUC-myzePGfaQF25rdZDGFBje-xWvxPqjvc5XGLxydsFMwMbz51QRAxof9OjhMmFo/s1600/FM7.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgioUKSKOQ55reFzWU4P0giPRq3cjKzxsTuIF4hF2w7bKdtWUPmDtESeAoAczRHauVEuzRU2WQt2tiUC-myzePGfaQF25rdZDGFBje-xWvxPqjvc5XGLxydsFMwMbz51QRAxof9OjhMmFo/s1600/FM7.JPG" height="251" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
หรือจะเล่นไฟล์ Mp3 โดยการผ่าน Internet และมีการแปลงไฟล์ Mp3 เป็น .wav ก่อนจะส่งเสียงออกมาทางวิทยุที่เราเปิดรออยู่</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
<h3 style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: none !important; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; box-sizing: border-box; clear: none !important; color: #110000; font-size: 12px !important; line-height: 16px !important; overflow: visible !important; padding: 0px 4px !important; width: auto !important;">
<span style="box-sizing: border-box; color: #c20cb9;">#sudo sox</span> <span style="box-sizing: border-box; color: #660033;">-t</span> mp3 http:<span style="box-sizing: border-box; color: black;">//</span>www.linuxvoice.com<span style="box-sizing: border-box; color: black;">/</span>episodes<span style="box-sizing: border-box; color: black;">/</span>lv_s02e01.mp3 <span style="box-sizing: border-box; color: #660033;">-t</span> wav <span style="box-sizing: border-box; color: #660033;">-r</span> <span style="box-sizing: border-box; color: black;">22050</span> <span style="box-sizing: border-box; color: #660033;">-c</span> <span style="box-sizing: border-box; color: black;">1</span> - <span style="box-sizing: border-box; color: black;">|</span> <span style="box-sizing: border-box; color: #c20cb9;">sudo</span> .<span style="box-sizing: border-box; color: black;">/</span>pifm - 96.0</h3>
<h3>
<br /><span style="box-sizing: border-box; color: #c20cb9; font-size: 12px; line-height: 16px;">#sudo sox</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> </span><span style="box-sizing: border-box; color: #660033; font-size: 12px; line-height: 16px;">-t</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> mp3 http:</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">//</span><span style="color: #110000; font-size: 12px; line-height: 16px;">www.ndr.de</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">resources</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">metadaten</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">audio</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">m3u</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">ndrloop5.m3u </span><span style="box-sizing: border-box; color: #660033; font-size: 12px; line-height: 16px;">-t</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> wav </span><span style="box-sizing: border-box; color: #660033; font-size: 12px; line-height: 16px;">-r</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> </span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">22050</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> </span><span style="box-sizing: border-box; color: #660033; font-size: 12px; line-height: 16px;">-c</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> </span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">1</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> - </span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">|</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> </span><span style="box-sizing: border-box; color: #c20cb9; font-size: 12px; line-height: 16px;">sudo</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> .</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">pifm - 96.0</span><br /><span style="box-sizing: border-box; color: #c20cb9; font-size: 12px; line-height: 16px;">#sudo sox</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> </span><span style="box-sizing: border-box; color: #660033; font-size: 12px; line-height: 16px;">-t</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> ogg http:</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">//</span><span style="color: #110000; font-size: 12px; line-height: 16px;">network.absoluteradio.co.uk</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">core</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">audio</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">ogg</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">live.pls?</span><span style="box-sizing: border-box; color: #007800; font-size: 12px; line-height: 16px;">service</span><span style="color: #110000; font-size: 12px; line-height: 16px;">=a6bb </span><span style="box-sizing: border-box; color: #660033; font-size: 12px; line-height: 16px;">-t</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> wav </span><span style="box-sizing: border-box; color: #660033; font-size: 12px; line-height: 16px;">-r</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> </span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">22050</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> </span><span style="box-sizing: border-box; color: #660033; font-size: 12px; line-height: 16px;">-c</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> </span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">1</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> - </span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">|</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> </span><span style="box-sizing: border-box; color: #c20cb9; font-size: 12px; line-height: 16px;">sudo</span><span style="color: #110000; font-size: 12px; line-height: 16px;"> .</span><span style="box-sizing: border-box; font-size: 12px; line-height: 16px;">/</span><span style="color: #110000; font-size: 12px; line-height: 16px;">pifm - 96.0</span></h3>
</blockquote>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
<h4 style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: none !important; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; box-sizing: border-box; clear: none !important; color: #110000; font-size: 12px !important; line-height: 16px !important; overflow: visible !important; padding: 0px 4px !important; width: auto !important;">
<span style="box-sizing: border-box; color: black;"></span></h4>
</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwMbY96ptjlcdrSbJTcxfgkRZiyfDRtkW-jNthzjgoVnV20N0r8F0L6Bb8nk1Gpr8PK-5akZKxphH6eq6XIgHDJBvYb__YEvgorrm2WC1sQQb-vOokDjz9Ix_vgPvr4bU-GZkXnpuN4vg/s1600/FM8.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwMbY96ptjlcdrSbJTcxfgkRZiyfDRtkW-jNthzjgoVnV20N0r8F0L6Bb8nk1Gpr8PK-5akZKxphH6eq6XIgHDJBvYb__YEvgorrm2WC1sQQb-vOokDjz9Ix_vgPvr4bU-GZkXnpuN4vg/s1600/FM8.JPG" height="180" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เราเปิดวิทยุทิ้งไว้ที่ความถี่ต้องการให้ตรงกับความถี่ที่ปล่อยสัญญาณมาจากตัว Raspberry Pi คือ 96.0</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVyy_-U8xmeBbX-k1ivFT46h58JW8eLpvQW6Nzhgg0ZqVyPZf59Rz5pKpDHkN2RSGedAmcOOPWSFLgVb0Nm56Z1CcCiRClArc8IAQE7O9L_IR3_OX_LT8PjmvhqGStoF3jBlUDo0qFmco/s1600/2014-03-26+23.14.26.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVyy_-U8xmeBbX-k1ivFT46h58JW8eLpvQW6Nzhgg0ZqVyPZf59Rz5pKpDHkN2RSGedAmcOOPWSFLgVb0Nm56Z1CcCiRClArc8IAQE7O9L_IR3_OX_LT8PjmvhqGStoF3jBlUDo0qFmco/s1600/2014-03-26+23.14.26.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
<b>สำหรับวิธีจะเอาไฟล์ที่ต้องการอัพใส่ Raspberry Pi </b></h3>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
ใช้โปแรม Winscp เพื่ออัพไฟล์สองไฟล์นี้เข้าไปยัง /home/pi โดยการ Login ด้วย</div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
IP : IP_Raspberry</div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
Port : 22</div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
User : pi</div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
Password : raspberry</div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
File Photocol : SCP</div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
กด Login </div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
<br /></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizML7_jyevwi-uTK1XyAGPNMxIRxjmGQQGkjj-h18fV3l4WkQ74GAJ5jDZJqAfYSozvyMAuyqEt_h7xkMT42PTL6FiUOCOyj9gvsJ5-LiUYNqvew0P47PZ3qnhO7_5TTLSDJUQ9MZKyrc/s1600/wireless_8188_16.JPG" imageanchor="1" style="color: #6699cc; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizML7_jyevwi-uTK1XyAGPNMxIRxjmGQQGkjj-h18fV3l4WkQ74GAJ5jDZJqAfYSozvyMAuyqEt_h7xkMT42PTL6FiUOCOyj9gvsJ5-LiUYNqvew0P47PZ3qnhO7_5TTLSDJUQ9MZKyrc/s1600/wireless_8188_16.JPG" height="281" style="border: none; position: relative;" width="400" /></a></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<br /></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: left;">
โปรแกรมจะแยกเป็นสองฝั่งคือ ซ้าย(Computer) ขวา(Raspberrypi) โดยการลากไฟล์ทั้งสองไฟล์ที่เก็บไว้ในคอมพิวเตอร์จากซ้ายไปขวาเพื่ออัพสองไฟล์นี้ไปยัง Raspberry pi </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ที่มา : <a href="http://www.instructables.com/id/Raspberry-Pi-Radio-Transmitter/?ALLSTEPS">http://www.instructables.com/id/Raspberry-Pi-Radio-Transmitter/?ALLSTEPS</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://www.maketecheasier.com/run-radio-station-with-raspberry-pi/">http://www.maketecheasier.com/run-radio-station-with-raspberry-pi/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a></div>
<br /></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com1tag:blogger.com,1999:blog-3100362182588709453.post-54514961791808441152014-02-23T15:14:00.002+07:002014-03-31T21:07:44.334+07:00การติดตั้ง Wireless USB TP-LINK TL-WN723N and TL-WN725N on Raspberry Pi<br />
<h2 style="text-align: center;">
การติดตั้ง Wireless USB TP-LINK TL-WN723N and TL-WN725N on Raspberry Pi</h2>
<span style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">ก่อนอื่นต้องบอกว่าการนำอุปกรณ์ I/O ต่างที่จะนำมาเชื่อมต่อกับ Raspberry Pi จำเป็นต้องคำนึงถึงการรองรับของอุปกรณ์กับระบบ Linux Kernel อย่างโพสนี้เป็นการนำ Wireless USB รุ่น </span><span style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; text-align: center;">TP-LINK TL-WN723N หรือจะเป็น </span><span style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; text-align: center;">TP-LINK TL-WN725N ก็ได้เช่นกันเพราะ</span><span style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; text-align: center;">เป็น Chipser รุ่น 8188eu</span><span style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;"> ที่รองรับกับ Kernel และจำเป็นต้องติดตั้งเพิ่มเติม แต่บาง Chipset ไม่จำเป็นต้องติดตั้งเพิ่มสามารถใช้งานได้เลย แต่ถ้า Chipset ตัวไหนไม่รองรับก็ไม่สามารถใช้งานได้เช่นกันครับ ต้องตรวจสอบกันก่อนนะครับก่อนตัดสินใจซื้อพวกอุปกรณ์ I/O จาก </span><a href="http://elinux.org/RPi_USB_Wi-Fi_Adapters" style="background-color: white; color: #33aaff; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">Raspberry Pi Support USB Wireless</a><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpl5wXB7yjwDzbsJDvvzuDSt4EZTiORyw5gN9FVzT0eeQOHyaQd_ZdlETCaiQI6Bslo1dCpigQngmf0qHSvFmaPzvIvRtL7BGBMKQKIHhW-aRybbTe0o-D5n9355FkZW-ZIxs8uZjvgEQ/s1600/wireless_8188_18.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpl5wXB7yjwDzbsJDvvzuDSt4EZTiORyw5gN9FVzT0eeQOHyaQd_ZdlETCaiQI6Bslo1dCpigQngmf0qHSvFmaPzvIvRtL7BGBMKQKIHhW-aRybbTe0o-D5n9355FkZW-ZIxs8uZjvgEQ/s1600/wireless_8188_18.JPG" height="212" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4yBm3q73GU_Xkp87kLqOy4ommKLDLa52Rjd6MDTTeqNaKRFkYcI_Lc5iML5ZwuPI5GDFFXdzNIIk5xU3hhlesd6pIe5_2_B9363XjB7jjOOxMcyJjSuuvWpNpkcow9sGYdPLpPonUBvQ/s1600/wireless_8188_19.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4yBm3q73GU_Xkp87kLqOy4ommKLDLa52Rjd6MDTTeqNaKRFkYcI_Lc5iML5ZwuPI5GDFFXdzNIIk5xU3hhlesd6pIe5_2_B9363XjB7jjOOxMcyJjSuuvWpNpkcow9sGYdPLpPonUBvQ/s1600/wireless_8188_19.JPG" height="206" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;">
<strong><span style="font-family: Verdana, sans-serif;">รายการอุปกรณ์</span></strong></h3>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
<strong><span style="font-family: Verdana, sans-serif;"><br /></span></strong></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- ชุด Raspberry pi </span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- SD Card 4G Class4 ขั้นต่ำ-OS Raspbian "<a href="http://downloads.raspberrypi.org/raspbian_latest" style="color: #6e0000; font-size: 13px; line-height: 19.5px; outline: 0px; text-decoration: none;">2014-01-07-wheezy-raspbian.zip</a>" <a href="http://www.raspberrypi.org/downloads" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://www.raspberrypi.org/downloads</a></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Computer OS : Windows</span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- WIFI USB รุ่น </span><span style="text-align: center;">TP-LINK TL-WN725N </span><span style="font-family: Verdana, sans-serif;">หรือ </span><span style="background-color: transparent; text-align: center;">TP-LINK TL-WN725N หรือ Chipset : 8188EU </span></div>
<div style="background-color: white;">
<span style="background-color: transparent; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; text-align: center;">- โปรแกรม Winscp Download : </span><span style="background-color: transparent; line-height: 20px;"><span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><a href="http://software.thaiware.com/10606-WinSCP.html">http://software.thaiware.com/10606-WinSCP.html</a></span></span></div>
<div style="background-color: white; text-align: center;">
<span style="background-color: transparent; line-height: 20px;">- </span><span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; text-align: center;">โปรแกรม Putty Download : </span><span style="background-color: transparent; line-height: 20px;"><span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a></span></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Mount+Keyboard</span></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;" />
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="font-family: Verdana, sans-serif;"><br /></span></h3>
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="font-family: Verdana, sans-serif;">ขั้นตอนการติดตั้ง </span>Chipset <span style="background-color: transparent; text-align: center;">TP-LINK TL-WN725N</span></h3>
<div>
<span style="background-color: transparent; text-align: center;"><br /></span></div>
<div>
Download : <a href="http://www.mendrugox.net/downloads/14">http://www.mendrugox.net/downloads/14</a></div>
<div>
และแตกไฟล์ Zip ไว้ในเครรื่องคอมพิวเตอร์ จะมีด้วยกันสองไฟล์ คือ <span style="background-color: black; color: yellow;">8188eu.ko และ </span><span style="background-color: black; color: yellow;">rtl8188eufw.bin</span></div>
<div>
<span style="background-color: white;">จากนั้นใช้โปแรม Winscp เพื่ออัพไฟล์สองไฟล์นี้เข้าไปยัง /home/pi โดยการ Login ด้วย</span></div>
<div>
<span style="background-color: white;">IP : IP_Raspberry</span></div>
<div>
<span style="background-color: white;">Port : 22</span></div>
<div>
<span style="background-color: white;">User : pi</span></div>
<div>
<span style="background-color: white;">Password : raspberry</span></div>
<div>
<span style="background-color: white;">File Photocol : SCP</span></div>
<div>
<span style="background-color: white;">กด Login </span></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizML7_jyevwi-uTK1XyAGPNMxIRxjmGQQGkjj-h18fV3l4WkQ74GAJ5jDZJqAfYSozvyMAuyqEt_h7xkMT42PTL6FiUOCOyj9gvsJ5-LiUYNqvew0P47PZ3qnhO7_5TTLSDJUQ9MZKyrc/s1600/wireless_8188_16.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizML7_jyevwi-uTK1XyAGPNMxIRxjmGQQGkjj-h18fV3l4WkQ74GAJ5jDZJqAfYSozvyMAuyqEt_h7xkMT42PTL6FiUOCOyj9gvsJ5-LiUYNqvew0P47PZ3qnhO7_5TTLSDJUQ9MZKyrc/s1600/wireless_8188_16.JPG" height="281" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
โปรแกรมจะแยกเป้นสองฝั่งคือ ซ้าย(Computer) ขวา(Raspberrypi) โดยการลากไฟล์ทั้งสองไฟล์ที่เก็บไว้ในคอมพิวเตอร์จากซ้ายไปขวาเพื่ออัพสองไฟล์นี้ไปยัง Raspberry pi </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKOQD8Mx7CXW1ccBcpXpDkc-DmK6f-MNiOt8UEF4gPQVZcasTdEDZvZzkwEK3I-S5nLow8R1fxsynjzW7StgQHmqWY7_-bhgqHZBIdHhjJuMiP5J_Shv8QGp41jEx4tLwu1_LLvfGYiT4/s1600/wireless_8188_17.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKOQD8Mx7CXW1ccBcpXpDkc-DmK6f-MNiOt8UEF4gPQVZcasTdEDZvZzkwEK3I-S5nLow8R1fxsynjzW7StgQHmqWY7_-bhgqHZBIdHhjJuMiP5J_Shv8QGp41jEx4tLwu1_LLvfGYiT4/s1600/wireless_8188_17.JPG" height="246" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
เปิด Terminal ใช้คำสั่งดังนี้ เพื่อกำหนดสิทธิ์ให้กับ Directory และ Coppy ไฟล์ <span style="color: blue;">8188eu.ko </span>ไปยัง <span style="color: blue;">/lib/modules/3.10.25+/kernel/drivers/net/wireless/ </span></div>
<div>
<span style="color: blue;"><br /></span></div>
<blockquote class="tr_bq">
<blockquote class="tr_bq" style="text-align: left;">
pi@raspberrypi:~$ <span style="color: blue;">sudo chmod 777 /lib/modules/3.10.25+/kernel/drivers/net/wireless/</span></blockquote>
<blockquote class="tr_bq" style="text-align: left;">
pi@raspberrypi:~$ <span style="color: blue;">sudo cp 8188eu.ko /lib/modules/3.10.25+/kernel/drivers/net/wireless/</span></blockquote>
<blockquote class="tr_bq" style="text-align: left;">
pi@raspberrypi:~$ <span style="color: blue;">ls </span><span style="color: blue;">/lib/modules/3.10.25+/kernel/drivers/net/wireless/</span></blockquote>
</blockquote>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSwkwPDVnGNim8JRagIZGbzpXH5JR-iLeUQl94tj0UicnLPycFmD2LPCIRHDq2qWKmSZlo1GwwqADNOvDUPFb5eFNtyu1zq8gr_CwkKAqL0sv_Im4wao4v0Rjl4ptmG2xztwUrRoGY1QY/s1600/wireless_8188_11.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSwkwPDVnGNim8JRagIZGbzpXH5JR-iLeUQl94tj0UicnLPycFmD2LPCIRHDq2qWKmSZlo1GwwqADNOvDUPFb5eFNtyu1zq8gr_CwkKAqL0sv_Im4wao4v0Rjl4ptmG2xztwUrRoGY1QY/s1600/wireless_8188_11.JPG" height="88" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เข้าไปยัง Directory <span style="color: blue;">/lib/modules/3.10.25+/kernel/drivers/net/wireless/ </span>และกำหนดสิทธิ์ให้กับไฟล์<span style="color: blue;"> </span><span style="color: blue;">8188eu.ko</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: blue;"><br /></span></div>
<blockquote class="tr_bq">
<blockquote class="tr_bq">
pi@raspberrypi:~$ <span style="color: blue;">cd /lib/modules/3.10.25+/kernel/drivers/net/wireless/</span></blockquote>
<blockquote class="tr_bq">
pi@raspberrypi:/lib/modules/3.10.25+/kernel/drivers/net/wireless$ <span style="color: blue;">sudo chmod 777 8188eu.ko</span> </blockquote>
<blockquote class="tr_bq">
pi@raspberrypi:/lib/modules/3.10.25+/kernel/drivers/net/wireless$<span style="color: blue;"> ls</span></blockquote>
</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUsyX2NU76HpdEcN1_S696R79d743w4JIAdAU-133q3C_44J5QIUOgJRCb5VFm0l9NEm0wJadO24oLGzStmUb0eBhZjJAQ7p9rcHf0SctmU-xi7KAV-pOlmaPqL2eZ-lw2GpqplRODPFA/s1600/wireless_8188_12.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUsyX2NU76HpdEcN1_S696R79d743w4JIAdAU-133q3C_44J5QIUOgJRCb5VFm0l9NEm0wJadO24oLGzStmUb0eBhZjJAQ7p9rcHf0SctmU-xi7KAV-pOlmaPqL2eZ-lw2GpqplRODPFA/s1600/wireless_8188_12.JPG" height="90" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
กลับมายัง Directory /home/pi กำหนดสิทธิ์และ Coppy ไฟล์ <span style="color: blue;">rtl8188eufw.bin </span>ไปยัง<span style="color: blue;"> /lib/firmware/rtlwifi/ </span>และเข้าไปกำหนดสิทธิ์ให้กับไฟล์<span style="color: blue;"> </span><span style="color: blue;">rtl8188eufw.bin </span>และ restart Raspberry pi<br />
<br />
<blockquote class="tr_bq">
<blockquote class="tr_bq">
pi@raspberrypi:/lib/modules/3.10.25+/kernel/drivers/net/wireless$ <span style="color: blue;">cd</span></blockquote>
<blockquote class="tr_bq">
pi@raspberrypi:~$ <span style="color: blue;">sudo chmod 777 /lib/firmware/rtlwifi/</span></blockquote>
<blockquote class="tr_bq">
pi@raspberrypi:~$ <span style="color: blue;">sudo cp rtl8188eufw.bin /lib/firmware/rtlwifi/</span></blockquote>
<blockquote class="tr_bq">
pi@raspberrypi:~$ <span style="color: blue;">cd /lib/firmware/rtlwifi/</span></blockquote>
<blockquote class="tr_bq">
pi@raspberrypi:/lib/firmware/rtlwifi$ <span style="color: blue;">sudo chmod 777 rtl8188eufw.bin </span></blockquote>
<blockquote class="tr_bq">
pi@raspberrypi:/lib/firmware/rtlwifi$ <span style="color: blue;">sudo reboot</span></blockquote>
</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPPxu5p7tJaMJWxJ99wpc0OpCnBdVSOzp_Sd46BNSGPybVY6pJ8JIcbbV76uNRQFG_TZF4oa65fq9XmdSjay5sbX_bstACjGy6heu0JKjQ2rLPSWuF_WyLAcV5GftgQ6jUnCsAQ1PDHEU/s1600/wireless_8188_13.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPPxu5p7tJaMJWxJ99wpc0OpCnBdVSOzp_Sd46BNSGPybVY6pJ8JIcbbV76uNRQFG_TZF4oa65fq9XmdSjay5sbX_bstACjGy6heu0JKjQ2rLPSWuF_WyLAcV5GftgQ6jUnCsAQ1PDHEU/s1600/wireless_8188_13.JPG" height="20" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeJPjXCKhDW3X1I2ZR3vYoedwWVUI65ICJz6TEVHNcMUnRcFBGXVMTCWc2n4SKh7eucA9Xlpepq4PWMM6jx2RputUfZH806plCpydCqqWvOrQAIlC45yVw_Bn1qUQvEx2hcrah1he6rBo/s1600/wireless_8188_14.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeJPjXCKhDW3X1I2ZR3vYoedwWVUI65ICJz6TEVHNcMUnRcFBGXVMTCWc2n4SKh7eucA9Xlpepq4PWMM6jx2RputUfZH806plCpydCqqWvOrQAIlC45yVw_Bn1qUQvEx2hcrah1he6rBo/s1600/wireless_8188_14.JPG" height="33" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
Login และเปิด Terminal และใช้คำสั่งดังนี้เพื่อ<br />
<span style="color: blue;"><a href="http://blackpunk.ru/library/cmd/blcmdl8_depmod.htm?-depmod---Linux-Command---%E0%B8%84%E0%B8%B3%E0%B8%AA%E0%B8%B1%E0%B9%88%E0%B8%87-unix">depmod</a> </span>เป็นคำสั่งสำหรับเป็นการอัพเดทโมดูลทั้งหมดให้กับ Kernel ภายใน /lib/modules<br />
<span style="color: blue;"><a href="http://forum.ubuntuclub.com/forum/?topic=2047.0">modprobe</a></span><span style="color: blue;"> </span><span style="background-color: white; color: #333333; font-family: Ubuntu, Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">เป็นคำสั่งสำหรับแทรกโมดูลเข้าไปใน kernel ส่วนใหญ่ใช้กับ driver </span><br />
<blockquote class="tr_bq">
<blockquote class="tr_bq">
pi@raspberrypi:~$ <span style="color: blue;">sudo depmod -a</span></blockquote>
<blockquote class="tr_bq">
pi@raspberrypi:~$ <span style="color: blue;">sudo modprobe 8188eu </span></blockquote>
<blockquote class="tr_bq">
pi@raspberrypi:~$<span style="color: blue;"> iwconfig </span></blockquote>
</blockquote>
<br />
เมื่อใช้คำสั่ง iwconfig แล้วมีการแสดงรายละเอียดดังภาพแสดงว่าเป็นอันสำเร็จ<br />
<br />
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqrrcOFZDa2iPBa5t3osTIFGjTE6XHmL2ubDFIjjSRQi8wZYkHpM4dZcjWWbr7pJodnJnsa86Ptr3YKbkhq0sOH-lbiddCcYCnv-lCmwE1oA42nUty-lqvfhkbAoz__EmyAYdUoetjeY8/s1600/wireless_8188_15.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqrrcOFZDa2iPBa5t3osTIFGjTE6XHmL2ubDFIjjSRQi8wZYkHpM4dZcjWWbr7pJodnJnsa86Ptr3YKbkhq0sOH-lbiddCcYCnv-lCmwE1oA42nUty-lqvfhkbAoz__EmyAYdUoetjeY8/s1600/wireless_8188_15.JPG" height="250" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
เข้าหน้า X windows ที่ Desktop เปิดโปรแกรม WiFi Config</div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<br /></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmBsDcTQNp9JcHIvTHRP-XC1NNEshNpUqiJldd1QzsDv4MrjVRDziULOP-twnZnGcRCXlgP-OFtnYuvNi5koUkUoUR19LIKmsq6oDSO1aa6IGrLmLJOpduln9u1zcZ7yNOiiH9Kg3TXec/s1600/zd1211_2.JPG" imageanchor="1" style="color: #6699cc; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmBsDcTQNp9JcHIvTHRP-XC1NNEshNpUqiJldd1QzsDv4MrjVRDziULOP-twnZnGcRCXlgP-OFtnYuvNi5koUkUoUR19LIKmsq6oDSO1aa6IGrLmLJOpduln9u1zcZ7yNOiiH9Kg3TXec/s1600/zd1211_2.JPG" height="356" style="border: none; position: relative;" width="400" /></a></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<br /></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
Apapter ของเราก็คือ wlan0 กด Scan เพื่อค้นหา Access Point และ Doble Click เลือก AP ที่ต้องการ </div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<br /></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtT56TRxcE0YIFfaSh7WftKNoDVeZXdn3WqEHQZ7-ITkRw9uY0CeVhCXbuun4R_IIE3Ns19xhQTKDzlM1Ce5n3cfkigfZuhN-8UXYkHVs4m5YMQsI_aMzCzX9nKqemowb9f4MR0f0Z_b0/s1600/zd1211_3.JPG" imageanchor="1" style="color: #6699cc; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtT56TRxcE0YIFfaSh7WftKNoDVeZXdn3WqEHQZ7-ITkRw9uY0CeVhCXbuun4R_IIE3Ns19xhQTKDzlM1Ce5n3cfkigfZuhN-8UXYkHVs4m5YMQsI_aMzCzX9nKqemowb9f4MR0f0Z_b0/s1600/zd1211_3.JPG" height="400" style="border: none; position: relative;" width="397" /></a></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<br /></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
จากนั้นติก key 0 แล้วใส่ Password ของ Access Point ที่เราได้เลือกไว้กด Add </div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitFdF2xOPFdIBPK_fCTKz21m8uzI7-bs_kRSYT2ShJH35WBEaJxkvf8mWkaiONHGx81hY_aHFtof7qvjluZ0-ct8XFOK3KmWMy3YtOMGu55luso4AnIb4bA_vmt0Jw8Wwl1VlsWxXNO_0/s1600/zd1211_4.JPG" imageanchor="1" style="color: #6699cc; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitFdF2xOPFdIBPK_fCTKz21m8uzI7-bs_kRSYT2ShJH35WBEaJxkvf8mWkaiONHGx81hY_aHFtof7qvjluZ0-ct8XFOK3KmWMy3YtOMGu55luso4AnIb4bA_vmt0Jw8Wwl1VlsWxXNO_0/s1600/zd1211_4.JPG" height="400" style="border: none; position: relative;" width="380" /></a></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
จากนั้นมีการเชื่อต่อกับ Access Point และได้รับ IP หากไม่เชื่อมต่อทันทีให้กด Connect</div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM5m0aN7OOkEzm1ZXPR3RLweih-Lj9pETdwzeV7quWOnMqchP6XZOGLTP6cRTny88VrbgcPN4LuBWWqxu6CBNMqWnurUkVJT7s6HxSLgG0SU4KCMVdUwMhD8_cIrYlT9n8HU_iOqi7XfI/s1600/zd1211_5.JPG" imageanchor="1" style="color: #6699cc; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM5m0aN7OOkEzm1ZXPR3RLweih-Lj9pETdwzeV7quWOnMqchP6XZOGLTP6cRTny88VrbgcPN4LuBWWqxu6CBNMqWnurUkVJT7s6HxSLgG0SU4KCMVdUwMhD8_cIrYlT9n8HU_iOqi7XfI/s1600/zd1211_5.JPG" height="380" style="border: none; position: relative;" width="400" /></a></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: center;">
<br /></div>
<h3 style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px; text-align: left;">
Command Line</h3>
<blockquote class="tr_bq" style="clear: both; text-align: center;">
<blockquote class="tr_bq" style="clear: both; text-align: left;">
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:~$ sudo chmod 777 /lib/modules/3.10.25+/kernel/drivers/net/wireless/</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:~$ sudo cp 8188eu.ko /lib/modules/3.10.25+/kernel/drivers/net/wireless/</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:~$ ls /lib/modules/3.10.25+/kernel/drivers/net/wireless/</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">8188eu.ko b43legacy mac80211_hwsim.ko rt2x00 zd1211rw</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">at76c50x-usb.ko hostap mwifiex rtl818x</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">ath libertas p54 rtl8192cu</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">b43 libertas_tf rndis_wlan.ko zd1201.ko</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:~$ cd /lib/modules/3.10.25+/kernel/drivers/net/wireless/</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:/lib/modules/3.10.25+/kernel/drivers/net/wireless$ sudo chmod 777 8188eu.ko </span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:/lib/modules/3.10.25+/kernel/drivers/net/wireless$ ls</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">8188eu.ko b43legacy mac80211_hwsim.ko rt2x00 zd1211rw</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">at76c50x-usb.ko hostap mwifiex rtl818x</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">ath libertas p54 rtl8192cu</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">b43 libertas_tf rndis_wlan.ko zd1201.ko</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:/lib/modules/3.10.25+/kernel/drivers/net/wireless$ cd</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:~$ sudo chmod 777 /lib/firmware/rtlwifi/</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:~$ sudo cp rtl8188eufw.bin /lib/firmware/rtlwifi/</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:~$ cd /lib/firmware/rtlwifi/</span></span></blockquote>
<blockquote class="tr_bq" style="clear: both;">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:/lib/firmware/rtlwifi$ sudo chmod 777 rtl8188eufw.bin</span></span></blockquote>
</blockquote>
</blockquote>
<blockquote class="tr_bq">
<span style="color: yellow;"><span style="background-color: white;"> </span><span style="background-color: black;">pi@raspberrypi:/lib/firmware/rtlwifi$sudo reboot</span></span></blockquote>
###############################################################################<br />
<blockquote class="tr_bq">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:~$ sudo depmod -a</span></span></blockquote>
<blockquote class="tr_bq">
<span style="color: yellow;"><span style="background-color: black;">pi@raspberrypi:~$ sudo modprobe 8188eu</span> </span></blockquote>
<blockquote class="tr_bq">
<span style="background-color: black;"><span style="color: yellow;">pi@raspberrypi:~$ iwconfig </span></span></blockquote>
<br />
<span style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">ที่มา : </span><span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 15px; line-height: 20.790000915527344px;">http://www.mendrugox.net/2013/08/tp-link-tl-wn725n-v2-working-on-raspberry-raspbian/</span></span><br />
<span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 15px; line-height: 20.790000915527344px;"><a href="http://micro2440.blogspot.com/" style="color: #33aaff; text-decoration: none;">http://micro2440.blogspot.com/</a></span><br />
<span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 15px; line-height: 20.790000915527344px;"><a href="https://www.facebook.com/BooindyIt?ref=hl" style="color: #6699cc; text-decoration: none;">https://www.facebook.com/BooindyIt?ref=hl</a></span><br />
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
<br /></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-68340005026066249352014-02-12T17:24:00.003+07:002014-03-31T21:06:38.293+07:00การติดตั้ง Wireless USB Chipset "zd1211" on Raspberry Pi<br />
<br />
<h2 style="text-align: center;">
<b>การติดตั้ง Wireless USB Chipset "zd1211" on Raspberry Pi</b></h2>
<br />
ก่อนอื่นต้องบอกว่าการนำอุปกรณ์ I/O ต่างที่จะนำมาเชื่อมต่อกับ Raspberry Pi จำเป็นต้องคำนึงถึงการรองรับของอุปกรณ์กับระบบ Linux Kernel อย่างโพสนี้เป็นการนำ Wireless USB Chipset ที่รองรับกับ Kernel และจำเป็นต้องติดตั้งเพิ่มเติมแต่บาง Chipset ไม่จำเป็นต้องติดตั้งเพิ่มสามารถใช้งานได้เลย แต่ถ้า Chipset ตัวไหนไม่รองรับก็ไม่สามารถใช้งานได้เช่นกันครับ ต้องตรวจสอบกันก่อนนะครับก่อนตัดสินใจซื้อพวกอุปกรณ์ I/O<br />
<br />
<a href="http://elinux.org/RPi_USB_Wi-Fi_Adapters">Raspberry Pi Support USB Wireless</a><br />
<br />
<br />
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;">
<strong><span style="font-family: Verdana, sans-serif;">รายการอุปกรณ์</span></strong></h3>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
<strong><span style="font-family: Verdana, sans-serif;"><br /></span></strong></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- ชุด Raspberry pi </span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- SD Card 4G Class4 ขั้นต่ำ-OS Raspbian "<a href="http://downloads.raspberrypi.org/raspbian_latest" style="color: #6e0000; font-size: 13px; line-height: 19.5px; outline: 0px; text-decoration: none;">2014-01-07-wheezy-raspbian.zip</a>" <a href="http://www.raspberrypi.org/downloads" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://www.raspberrypi.org/downloads</a></span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Computer OS : Windows</span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- WIFI USB </span><span style="background-color: transparent;">Chipset "zd1211"</span></div>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Mount+Keyboard</span></div>
<br />
<h3 style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="font-family: Verdana, sans-serif;"><br /></span></h3>
<h3 style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
<span style="font-family: Verdana, sans-serif;">ขั้นตอนการติดตั้ง </span><span style="background-color: white;">Chipset "zd1211"</span></h3>
<div>
<span style="background-color: white;"><br /></span></div>
<div>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">เปิดหน้าต่าง Terminal แล้ว Login >> </span><span style="background-color: yellow;">rmmod เป็นคำสั่ง unload kernel module เช่น rmmod mod1</span></div>
<div>
<span style="background-color: white;"><br /></span></div>
<blockquote class="tr_bq">
<span style="background-color: white;">pi@raspberrypi ~ $</span><span style="color: blue;">sudo rmmod zd1211rw</span></blockquote>
<div>
<br /></div>
<div>
ค้นหาหมายเลข Chipset ที่ต้องการว่ามีอยู่ในระบบหรือไม่ ในตัวอย่างคือ Chipset zd1211</div>
<div>
<br /></div>
<blockquote class="tr_bq">
<span style="background-color: white;">pi@raspberrypi ~ $ <span style="color: blue;">sudo apt-cache search zd1211</span></span></blockquote>
<div>
<span style="background-color: white;"><span style="color: blue;"><br /></span></span></div>
<span style="background-color: white;">จะเห็นว่ามี </span>Chipset zd1211<span style="background-color: white;"> ที่ต้องการ</span><br />
<div>
<span style="background-color: white;"><br /></span></div>
<div>
<span style="background-color: black; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><span style="color: yellow;">zd1211-firmware - Firmware images for the zd1211rw wireless driver</span></span></div>
<div>
<span style="background-color: white;"><br /></span></div>
<div>
<span style="background-color: white;">จากนั้นก็ติดตั้งครับ</span></div>
<div>
<span style="background-color: white;"><br /></span></div>
<blockquote class="tr_bq">
<span style="background-color: white;">pi@raspberrypi ~ $</span><span style="color: blue;">sudo apt-get install zd1211-firmware</span></blockquote>
<div>
<span style="color: blue;"><br /></span></div>
<div>
ต่อมาแทรก module เข้าไปยัง Kernel >> modprobe เป็นคำสั่งสำหรับแทรกโมดูลเข้าไปใน kernel ส่วนใหญ่จะใช้กับ driver ต่างๆ </div>
<div>
<span style="color: blue;"><br /></span></div>
<blockquote class="tr_bq">
<span style="background-color: white;">pi@raspberrypi ~ $</span><span style="color: blue;">sudo modprobe zd1211rw</span> </blockquote>
<blockquote class="tr_bq">
<span style="background-color: white;">pi@raspberrypi ~ $<span style="color: blue;">sudo reboot</span></span></blockquote>
<div>
<br /></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjle3pWqyZlG3_WPVoUqqqslgvbSCWMUewheyu0zXfhjZZGLDznlcs-wHRiAvCBC8sedFIZwkUf1qaAmtF2ov5ucXgMqgicEfaUi07hyGc0vPM4G-Z76TXzQYoe_mJfQul20POzNKlsUfc/s1600/zd1211.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjle3pWqyZlG3_WPVoUqqqslgvbSCWMUewheyu0zXfhjZZGLDznlcs-wHRiAvCBC8sedFIZwkUf1qaAmtF2ov5ucXgMqgicEfaUi07hyGc0vPM4G-Z76TXzQYoe_mJfQul20POzNKlsUfc/s1600/zd1211.JPG" height="252" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
เปิดโปรแกรม WiFi Config</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmBsDcTQNp9JcHIvTHRP-XC1NNEshNpUqiJldd1QzsDv4MrjVRDziULOP-twnZnGcRCXlgP-OFtnYuvNi5koUkUoUR19LIKmsq6oDSO1aa6IGrLmLJOpduln9u1zcZ7yNOiiH9Kg3TXec/s1600/zd1211_2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmBsDcTQNp9JcHIvTHRP-XC1NNEshNpUqiJldd1QzsDv4MrjVRDziULOP-twnZnGcRCXlgP-OFtnYuvNi5koUkUoUR19LIKmsq6oDSO1aa6IGrLmLJOpduln9u1zcZ7yNOiiH9Kg3TXec/s1600/zd1211_2.JPG" height="356" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Apapter ของเราก็คือ wlan0 กด Scan เพื่อค้นหา Access Point และ Doble Click เลือก AP ที่ต้องการ </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtT56TRxcE0YIFfaSh7WftKNoDVeZXdn3WqEHQZ7-ITkRw9uY0CeVhCXbuun4R_IIE3Ns19xhQTKDzlM1Ce5n3cfkigfZuhN-8UXYkHVs4m5YMQsI_aMzCzX9nKqemowb9f4MR0f0Z_b0/s1600/zd1211_3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtT56TRxcE0YIFfaSh7WftKNoDVeZXdn3WqEHQZ7-ITkRw9uY0CeVhCXbuun4R_IIE3Ns19xhQTKDzlM1Ce5n3cfkigfZuhN-8UXYkHVs4m5YMQsI_aMzCzX9nKqemowb9f4MR0f0Z_b0/s1600/zd1211_3.JPG" height="400" width="397" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
จากนั้นติก key 0 แล้วใส่ Password ของ Access Point ที่เราได้เลือกไว้กด Add </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitFdF2xOPFdIBPK_fCTKz21m8uzI7-bs_kRSYT2ShJH35WBEaJxkvf8mWkaiONHGx81hY_aHFtof7qvjluZ0-ct8XFOK3KmWMy3YtOMGu55luso4AnIb4bA_vmt0Jw8Wwl1VlsWxXNO_0/s1600/zd1211_4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitFdF2xOPFdIBPK_fCTKz21m8uzI7-bs_kRSYT2ShJH35WBEaJxkvf8mWkaiONHGx81hY_aHFtof7qvjluZ0-ct8XFOK3KmWMy3YtOMGu55luso4AnIb4bA_vmt0Jw8Wwl1VlsWxXNO_0/s1600/zd1211_4.JPG" height="400" width="380" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
จากนั้นมีการเชื่อต่อกับ Access Point และได้รับ IP หากไม่เชื่อมต่อทันทีให้กด Connect</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM5m0aN7OOkEzm1ZXPR3RLweih-Lj9pETdwzeV7quWOnMqchP6XZOGLTP6cRTny88VrbgcPN4LuBWWqxu6CBNMqWnurUkVJT7s6HxSLgG0SU4KCMVdUwMhD8_cIrYlT9n8HU_iOqi7XfI/s1600/zd1211_5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM5m0aN7OOkEzm1ZXPR3RLweih-Lj9pETdwzeV7quWOnMqchP6XZOGLTP6cRTny88VrbgcPN4LuBWWqxu6CBNMqWnurUkVJT7s6HxSLgG0SU4KCMVdUwMhD8_cIrYlT9n8HU_iOqi7XfI/s1600/zd1211_5.JPG" height="380" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
ที่มา : <a href="http://tomearp.blogspot.com/2012/07/using-edimax-wifi-stick-ew-7317ldg-with.html">http://tomearp.blogspot.com/2012/07/using-edimax-wifi-stick-ew-7317ldg-with.html</a><br />
<span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 15px; line-height: 20.790000915527344px;"><a href="http://micro2440.blogspot.com/" style="color: #33aaff;">http://micro2440.blogspot.com/</a></span><br />
<span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 15px; line-height: 20.790000915527344px;"><a href="https://www.facebook.com/BooindyIt?ref=hl" style="color: #6699cc; text-decoration: none;">https://www.facebook.com/BooindyIt?ref=hl</a></span><br />
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a>ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-89938824396675802772014-02-09T00:27:00.000+07:002014-03-31T21:06:13.862+07:00การติดตั้ง Sharing File Server บน Raspberry Pi ด้วย Samba ไปยัง Windows<span style="font-family: Verdana, sans-serif;"><br />
<br />
</span><br />
<h2 style="text-align: center;">
<span style="font-family: Verdana, sans-serif;">
การติดตั้ง Sharing File Server บน Raspberry Pi ด้วย Samba ไปยัง Windows</span></h2>
<span style="font-family: Verdana, sans-serif;"><br />
<br />
การติดตั้ง Samba ให้ติดต่อกับเครื่อง Windows ได้ด้วย Protocol <span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">Common Internet File System (CIFS) บนระบบปฎิบัติการ Linux โดยใช้บอร์ด Raspberry Pi ทำหน้าที่เป็น File Server ในการ Share File จาก Server ไปยังระบบปฎิบัติการ Windows ซึ่งไฟล์และโฟล์เดอร์เหล่านั้นสามารถ Coppy Read Write และ Edit ได้ในตัวอย่างนี้เป็นการใช้พื้นที่ S</span><span style="background-color: white; color: #333333; font-size: 13px; line-height: 22px;">torage</span><span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;"> คือ SD Card ที่ใช้เป็น File System ของระบบ Raspberry Pi ซึ่งหากต้องการเพิ่ม S</span><span style="background-color: white; color: #333333; font-size: 13px; line-height: 22px;">torage </span><span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">ให้มีขนาดใหญ่ขึ้นก็สามารถทำได้เช่นกัน คือ สามารถต่อ </span></span><br />
<h3 class="r" style="background-color: white; font-size: medium; font-weight: normal; margin: 0px; overflow: hidden; padding: 0px; text-overflow: ellipsis; white-space: nowrap;">
<span style="font-family: Verdana, sans-serif;">
External Harddisk <span style="background-color: transparent; color: #333333; line-height: 26px;">ที่ใช้พอร์ต USB ต่อเข้ากับ Raspberry Pi ได้เช่นกัน</span></span></h3>
<span style="font-family: Verdana, sans-serif;"><span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;"><br /></span>
<a href="http://sukhothaitc.ac.th/sutee/Artical/linux/samba/Samba_02.html">Samba คือ </a></span><br />
<span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 16px; line-height: 26px;"><a href="http://www.widebase.net/knowledge/itterm/it_term_desc.php?term_id=CIFS">Common Internet File System คือ</a></span><br />
<span style="font-family: Verdana, sans-serif;"><br />
<br />
</span><br />
<h3 style="background-color: white; color: #333333; margin: 0px; position: relative;">
<strong><span style="font-family: Verdana, sans-serif;">รายการอุปกรณ์</span></strong></h3>
<div style="background-color: white; color: #333333; font-size: 15px; line-height: 20.790000915527344px;">
<strong><span style="font-family: Verdana, sans-serif;"><br /></span></strong></div>
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- ชุด Raspberry pi </span></div>
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- SD Card 4G Class4 ขั้นต่ำ-OS Raspbian "<a href="http://downloads.raspberrypi.org/raspbian_latest" style="color: #6e0000; font-size: 13px; line-height: 19.5px; outline: 0px; text-decoration: none;">2014-01-07-wheezy-raspbian.zip</a>" <a href="http://www.raspberrypi.org/downloads" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://www.raspberrypi.org/downloads</a></span></div>
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Computer OS : Windows</span></div>
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- WIFI USB / LAN Wires</span></div>
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;">- Mount+Keyboard</span></div>
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<h3 style="font-size: 16px; margin: 0px; position: relative;">
<span style="font-family: Verdana, sans-serif;">
ขั้นตอนการติดตั้งระบบ Samba</span></h3>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;">เปิดหน้าต่าง Terminal แล้วพิมพ์คำสั่งเพื่อติดตั้ง Samba ด้วยคำสั่ง</span></div>
<div>
<blockquote class="tr_bq">
<span style="font-family: Verdana, sans-serif;"><b><span style="box-sizing: border-box; color: #c20cb9;">sudo</span> <span style="box-sizing: border-box; color: #c20cb9;">apt-get install</span> samba samba-common-bin </b></span></blockquote>
</div>
</div>
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheoQJJT6cT3wbI-HFhYriU0XbaH52faWvF1SWPuft1pSu1qG3OZp5E8heAZakXiGjq_Zs5gfOEVyS7SnMgi0drcvv3yPHaEmvvRdvgSz4KkHaXoYWhZtiW4Iqb5gR8ztqjV_uiUmmolLk/s1600/samba.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Verdana, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheoQJJT6cT3wbI-HFhYriU0XbaH52faWvF1SWPuft1pSu1qG3OZp5E8heAZakXiGjq_Zs5gfOEVyS7SnMgi0drcvv3yPHaEmvvRdvgSz4KkHaXoYWhZtiW4Iqb5gR8ztqjV_uiUmmolLk/s1600/samba.JPG" height="251" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;">การ C<span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">onfiguration Samba ต่างๆ สามารถแก้ไขได้ที่ </span><span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">/etc/samba/smb.conf </span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333;"><span style="background-color: white; font-family: Verdana, sans-serif; line-height: 26px;">เข้าไปแก้ไข Configguration ที่จำเป็นด้วยคำสั่ง</span></span></div>
<blockquote class="tr_bq">
<span style="font-family: Verdana, sans-serif;"><b><span style="box-sizing: border-box; color: #c20cb9;">sudo</span> <span style="box-sizing: border-box; color: #c20cb9;">nano</span> <span style="box-sizing: border-box; color: black;">/</span>etc<span style="box-sizing: border-box; color: black;">/</span>samba<span style="box-sizing: border-box; color: black;">/</span>smb.conf</b></span></blockquote>
<span style="font-family: Verdana, sans-serif;">จากนั้นค้นหาบรรทัดด้วย Ctrl+w พิมพ์ <span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">security = user จากนั้นลบ "#" ข้างหน้าออก</span></span><br />
<span style="font-family: Verdana, sans-serif;"><br />
</span><br />
<div style="background-color: white; color: #333333; font-size: 16px; line-height: 20px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8NazoQC_iW1-L0d-uHozjla8brumSyzZKU9lsHQFmAovWkFntYfpfB08JtIszjxMM2ULfaK2Y38OV_izuDGY4sLJ311T2cMz-ZzrgNXKRC6VKFevv0HfHFvPmNaZinCEtyJlgj3JjmSw/s1600/samba2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Verdana, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8NazoQC_iW1-L0d-uHozjla8brumSyzZKU9lsHQFmAovWkFntYfpfB08JtIszjxMM2ULfaK2Y38OV_izuDGY4sLJ311T2cMz-ZzrgNXKRC6VKFevv0HfHFvPmNaZinCEtyJlgj3JjmSw/s1600/samba2.JPG" height="157" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;">ต่อมาค้นหา <span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">read only</span><span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;"> = yes ด้วย </span>Ctrl+w พิมพ์ <span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">read only</span><span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;"> = yes แล้วเปลี่ยน yes เป็น no จากนั้น Save ด้วย Ctrl+x >> y >> Enter</span></span></div>
<span style="font-family: Verdana, sans-serif;"><br />
</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhREFajo43WNhyH7mDgvwNR517oShLkvDQyuYcgdhH7yUdcTB3ihiLVnHJ74orw4WsYFMIrnJHcr-IzOoB3bdqVTYeb4KeYf2D6RGIEhyphenhyphen1ydPwFvzFPyh_NdXcpHVaiXWlterLoY3oMUF0/s1600/samba3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Verdana, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhREFajo43WNhyH7mDgvwNR517oShLkvDQyuYcgdhH7yUdcTB3ihiLVnHJ74orw4WsYFMIrnJHcr-IzOoB3bdqVTYeb4KeYf2D6RGIEhyphenhyphen1ydPwFvzFPyh_NdXcpHVaiXWlterLoY3oMUF0/s1600/samba3.JPG" height="178" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;">จากนั้นทำการ R<span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">eboot Samba server ด้วยคำสั่ง </span></span></div>
<blockquote class="tr_bq">
<h4>
<span style="font-family: Verdana, sans-serif;"><span style="box-sizing: border-box; color: #c20cb9;">sudo</span> service samba restart</span></h4>
</blockquote>
<blockquote class="tr_bq">
<span style="color: #c20cb9;"><span style="font-family: Verdana, sans-serif; font-size: 12px; line-height: 16px;"><b>sudo service samba reload</b></span></span></blockquote>
<span style="font-family: Verdana, sans-serif;">จากนั้นเข้า User Root และ Set Password ให้กับ Samba โดยใส่ Password สองครั้ง</span><br />
<blockquote class="tr_bq">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #c20cb9;">sudo</span> su</b></span><br />
<span style="font-family: Verdana, sans-serif;"><b><span style="box-sizing: border-box; color: #c20cb9;">sudo</span> smbpasswd -a pi</b></span></blockquote>
<blockquote class="tr_bq">
New SMB password : raspberry</blockquote>
<blockquote class="tr_bq">
Retype new SMB password : raspberry</blockquote>
<span style="font-family: Verdana, sans-serif;">เป็นอันสำเร็จสำหรับการ Sharing File Server บน Raspberry Pi ด้วย Samba</span><br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQppvGHCaIH5im5X4H56Qx1F3dQduqIQm_xzeRpcX1XvrYY_WpfafydxXDD06uEojgGVFrevCA3f-8awD_Z-duoz4jSNbNtARptJyPJKymWY0mYQcKpUflM-Vs1picmi4DEZ1rqBvZSdM/s1600/samba_1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Verdana, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQppvGHCaIH5im5X4H56Qx1F3dQduqIQm_xzeRpcX1XvrYY_WpfafydxXDD06uEojgGVFrevCA3f-8awD_Z-duoz4jSNbNtARptJyPJKymWY0mYQcKpUflM-Vs1picmi4DEZ1rqBvZSdM/s1600/samba_1.JPG" height="62" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;">ต่อมามาตั้งค่าที่เครื่อง Windows ด้วย คลิกขวาที่ My Computer >> Map network drive..</span></div>
<span style="font-family: Verdana, sans-serif;"><br />
</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsQFots_uYWGftjKx6mQeBhlx2-A91x3uGv2OE2bpC6YeisaK7mHNWO75DoHkInoB4Tfckh5HjAl52v1Lmu6CEq6uel6DEy9ONO6eUmNc3-IlAb5Q9xcN50ZmqRHzUY-p3S7-Ho7a_8VA/s1600/samba4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Verdana, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsQFots_uYWGftjKx6mQeBhlx2-A91x3uGv2OE2bpC6YeisaK7mHNWO75DoHkInoB4Tfckh5HjAl52v1Lmu6CEq6uel6DEy9ONO6eUmNc3-IlAb5Q9xcN50ZmqRHzUY-p3S7-Ho7a_8VA/s1600/samba4.jpg" height="396" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;">ใส่ตำแหน่งของ Folder คือ <span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">\\raspberrypi\pi และติก </span><span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">Connect using different credentials ดังรูปแล้วกด Finish</span> จากนั้นมันให้ใส่</span></div>
<blockquote class="tr_bq">
<b><span style="font-family: Verdana, sans-serif;">user : pi</span></b> </blockquote>
<blockquote class="tr_bq">
<b><span style="font-family: Verdana, sans-serif;">password : raspberry</span></b></blockquote>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH-1IZRGLjNPjcJxqenDUgakw307OwEwdId14DjO410J0ZWSEaaaqVuIOPVAuyX22Hc3xl5-NKqRMMeGPkRSYMAyir729ooiaT9k0Zr9kh3J2369jx-HY1Kmnt5LPfoRJaxXsngwg9cPI/s1600/samba5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Verdana, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH-1IZRGLjNPjcJxqenDUgakw307OwEwdId14DjO410J0ZWSEaaaqVuIOPVAuyX22Hc3xl5-NKqRMMeGPkRSYMAyir729ooiaT9k0Zr9kh3J2369jx-HY1Kmnt5LPfoRJaxXsngwg9cPI/s1600/samba5.JPG" height="297" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;">เข้ามาตรวจสอบ Drive Z ที่ My Computer </span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM3OFyERRsTqVlBHqIqEo6hTRw83rKQU-djRwFzsqr0wrnyla_2PRVCL8FDr6o9TmzNO3NKM7DTctUgOcPA5kA4i5pnaON3xOBaWoN6tOkK1lFLtdVwQJ3d0pYJk4QWDUmDrRsDEdDeiY/s1600/samba_3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Verdana, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM3OFyERRsTqVlBHqIqEo6hTRw83rKQU-djRwFzsqr0wrnyla_2PRVCL8FDr6o9TmzNO3NKM7DTctUgOcPA5kA4i5pnaON3xOBaWoN6tOkK1lFLtdVwQJ3d0pYJk4QWDUmDrRsDEdDeiY/s1600/samba_3.JPG" height="132" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;">จากนั้นคลิกเข้าไปใน Drive Z จะเจอข้อมูลต่างใน Server ของ Raspberry Pi และเราสามารถที่จะ <span style="background-color: white; color: #333333; font-size: 16px; line-height: 26px;">Coppy Read Write ไฟล์เหล่านี้ได้ครับ</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhndiJ7dKN45j6-82Q-qBnMtGnKdw1tMNDwCx4d1vDi8FbbDfJfa8_EdMY31FWp4MRZeKgnhP4QMKHcnSXMyeTql-iSMivFOozuG7ugOhFAfZjwXuoRwcH2cgDOJ6Ey3UZrSB2ZAixa3OI/s1600/samba_2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Verdana, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhndiJ7dKN45j6-82Q-qBnMtGnKdw1tMNDwCx4d1vDi8FbbDfJfa8_EdMY31FWp4MRZeKgnhP4QMKHcnSXMyeTql-iSMivFOozuG7ugOhFAfZjwXuoRwcH2cgDOJ6Ey3UZrSB2ZAixa3OI/s1600/samba_2.JPG" height="280" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<span style="font-family: Verdana, sans-serif;"><br />
ที่มา : <a href="http://www.maketecheasier.com/turn-raspberry-pi-into-file-server/">http://www.maketecheasier.com/turn-raspberry-pi-into-file-server/</a></span><br />
<span style="font-family: Verdana, sans-serif;"><a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a></span><br />
<span style="font-family: Verdana, sans-serif;"><a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a></span><br />
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a>ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-36941631573043782392014-02-02T20:49:00.001+07:002014-03-31T21:05:19.660+07:00ระบบเตือนภัยผู้บุกรุกด้วย PIR Sensors และ Raspberry Pi<br />
<br />
<br />
<h2 style="text-align: center;">
ระบบเตือนภัยผู้บุกรุกด้วย PIR และ Raspberry Pi</h2>
<br />
เป็นการเอา PIR Sensors เป็นเซ็นเซอร์ที่ใช้ในการตรวจจับความเคลื่นไหวและเตือนด้วยเสียง โดยใช้ Raspberry Pi ในการควบคุมระบบ โดยการใช้โปรแกรม Python ในการควบคุมการทำงาน หรือ พูดง่ายๆคือ ถ้าคุณเคยเข้า 7-eleven จะมีการเตือนเมื่อมีคนเดินผ่านประตู<br />
<br />
<br />
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;">
<strong>รายการอุปกรณ์</strong></h3>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
<strong><br /></strong></div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- ชุด Raspberry pi</div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- SD Card 4G Class4 ขั้นต่ำ-OS Raspbian "<a href="http://downloads.raspberrypi.org/raspbian_latest" style="color: #6e0000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 19.5px; outline: 0px; text-decoration: none;">2014-01-07-wheezy-raspbian.zip</a>" <a href="http://www.raspberrypi.org/downloads" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://www.raspberrypi.org/downloads</a></div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- PIR Sensors</div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- WIFI USB / LAN Wires</div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- Mount+Keyboard</div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- ลำโพงและสาย Audio ขนาด 3.5 mm</div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
<div style="background-color: white;">
<h3 style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
ขั้นตอนการต่ออุปกรณ์</h3>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkJBKajfFNI_-S3BS4NAVipqBp3eXYwKdVNSEd8jDbte4Qm2qx9xfbTChWWMA1lRgty8rsx5QnCIGnpSRtv53Sz-_XUdr-Q6ujT7wIVSCXtXKwDGTdJwqJar0ovYpXudL1kq89VkMGqlI/s1600/pi-and-pir_bb.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkJBKajfFNI_-S3BS4NAVipqBp3eXYwKdVNSEd8jDbte4Qm2qx9xfbTChWWMA1lRgty8rsx5QnCIGnpSRtv53Sz-_XUdr-Q6ujT7wIVSCXtXKwDGTdJwqJar0ovYpXudL1kq89VkMGqlI/s1600/pi-and-pir_bb.png" height="240" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div style="text-align: center;">
รายละเอียดการต่ออุปกรณ์เพิ่มเติม <a href="http://raspberry-pi-thai.blogspot.com/2013/10/pir-sensors-and-raspberry-pi-lab1.html">PIR SENSORS AND THE RASPBERRY PI LAB1</a></div>
<br />
<br /></div>
<div style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
<div style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
<h3 style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; margin: 0px; position: relative;">
ขั้นตอนการติดตั้งระบบเตือนภัย</h3>
<div>
<br /></div>
</div>
<blockquote class="tr_bq">
ติดตั้งโปรแกรมเล่นเสียง MPG321 และ ดาวโหลดไฟล์ .MP3 เพื่อใช้เป็นเสียงเตือนภัยของระบบด้วยคำสั่ง</blockquote>
<br />
<blockquote class="tr_bq">
<span style="color: #333333; font-family: Helvetica Neue, Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif;">$sudo apt-get -y install mpg321</span> </blockquote>
<blockquote class="tr_bq">
<span style="color: #333333; font-family: Helvetica Neue, Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif;">$sudo wget http://talktech.info/wp-content/uploads/2014/01/dogbark.mp3</span></blockquote>
<br />
<blockquote class="tr_bq">
เขียน Code ที่ใช้ในการสั่งงานให้ระบบเตือนภัย</blockquote>
<br />
<blockquote class="tr_bq">
$sudo nano pir_1.py</blockquote>
<br />
<blockquote class="tr_bq">
คัลลอก Code ด้านล่างนี้ไว้ในไฟล์ pir_1.py จากนั้น Save ด้วย Ctrl+x >> y >> Enter </blockquote>
<br />
<div>
<span style="font-family: Helvetica Neue, Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif;"></span><br />
<blockquote class="tr_bq">
<span style="font-family: Helvetica Neue, Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif;"><span style="color: blue;">#!/usr/bin/python<br />#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br />#|R|a|s|p|b|e|r|r|y|P|i|-|S|p|y|.|c|o|.|u|k|<br />#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br />#<br /># pir_1.py<br /># Detect movement using a PIR module<br />#<br /># Author : Matt Hawkins<br /># Date : 21/01/2013<br /># Import required Python libraries<br />import RPi.GPIO as GPIO<br />import time<br />import os<br /># Use BCM GPIO references<br /># instead of physical pin numbers<br />GPIO.setmode(GPIO.BCM)<br /># Define GPIO to use on Pi<br />GPIO_PIR = 7<br />print "PIR Module Test (CTRL-C to exit)"<br /># Set pin as input<br />GPIO.setup(GPIO_PIR,GPIO.IN) # Echo<br />Current_State = 0<br />Previous_State = 0<br />try:<br /> print "Waiting for PIR to settle ..."<br /> # Loop until PIR output is 0<br /> while GPIO.input(GPIO_PIR)==1:<br /> Current_State = 0 <br /> print " Ready" <br /> <br /> # Loop until users quits with CTRL-C<br /> while True :<br /> <br /> # Read PIR state<br /> Current_State = GPIO.input(GPIO_PIR)<br /> <br /> if Current_State==1 and Previous_State==0:<br /> # PIR is triggered<br /> print " Motion detected!"<br /> cmd_string = 'mpg321 -q </span>dogbark.mp3<span style="color: blue;">'<br /> #cmd_string = './speech.sh motion detected!'<br /> os.system(cmd_string)<br /> # Record previous state<br /> Previous_State=1<br /> elif Current_State==0 and Previous_State==1:<br /> # PIR has returned to ready state<br /> print " Ready"<br /> Previous_State=0<br /> <br /> # Wait for 10 milliseconds<br /> time.sleep(0.01) <br /> <br />except KeyboardInterrupt:<br /> print " Quit"<br /> # Reset GPIO settings<br /> GPIO.cleanup()</span></span></blockquote>
<span style="font-family: Helvetica Neue, Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif;">
</span>
<div style="color: #333333;">
<span style="font-family: Helvetica Neue, Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif;"><br /></span></div>
<span style="font-family: Helvetica Neue, Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxIQusnPjBVq1fMVcqNnXyBqqTtMWRWjnI4l5k81DWl0fmyilsKCIXIlqPON8vrEmADxpd80BwNsqM5PSjUeuYPv9qsSJBVSRLTjoUtJOx0hy5WKFGX1mrDIZfy6XCvM56L2AcXAhf4vQ/s1600/pir.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxIQusnPjBVq1fMVcqNnXyBqqTtMWRWjnI4l5k81DWl0fmyilsKCIXIlqPON8vrEmADxpd80BwNsqM5PSjUeuYPv9qsSJBVSRLTjoUtJOx0hy5WKFGX1mrDIZfy6XCvM56L2AcXAhf4vQ/s1600/pir.JPG" height="252" width="400" /></a></div>
<div style="color: #333333;">
<br /></div>
<div style="color: #333333;">
<br /></div>
<div style="color: #333333;">
เรียกใช้ Script Python ด้วยคำสั่ง</div>
<div style="color: #333333;">
<br /></div>
<blockquote class="tr_bq">
$sudo python pir_1.py </blockquote>
<br />
เมื่อเรียกใช้คำสั่งแล้วทดสอบด้วยการเคลื่อนไหวบริเวณหน้า PIR Sensors จะมีการแสดง Motion Detect และจะมีเสียงเตือนเป็นเสียงหมาเห่าสามารถเปลี่ยนเป็นเสียงอื่นได้ตามใจชอบ dogbark.mp3 ในไฟล์ pir_1.py ที่ระบุสีดำไว้ในไฟล์<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-5FE_hTmnwplZr51BfujbcHi9CK-ytH6DxbmHJMEboa_I_7hW7KC35ek5G5y-cyVjWC9tuAT1WOqM7j-I9pyjgJOdaJ7Kq8bj0JPiHcAAnBf9F5Fxl-yUwCfe4P3Apx3WhnGrAzGX2hY/s1600/pir1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-5FE_hTmnwplZr51BfujbcHi9CK-ytH6DxbmHJMEboa_I_7hW7KC35ek5G5y-cyVjWC9tuAT1WOqM7j-I9pyjgJOdaJ7Kq8bj0JPiHcAAnBf9F5Fxl-yUwCfe4P3Apx3WhnGrAzGX2hY/s1600/pir1.JPG" height="166" width="400" /></a></div>
<br />
</span><span style="font-family: Helvetica Neue, Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif;"><br />
หากต้องการออกจากคำสั่งด้วย Ctrl+c<br />
<br />
</span></div>
</div>
<br />
ที่มา : <a href="https://www.blogger.com/goog_45287123">http://www.raspberrypi-spy.co.uk/2013/01/cheap-pir-sensors-and-the-raspberry-pi-part-1/</a><br />
<a href="https://www.blogger.com/goog_45287123">http://www.classthink.com/2014/01/12/raspberry-pi-vocal-intruder-warning-system-project/</a><br />
<a href="https://www.blogger.com/goog_45287123">https://www.facebook.com/BooindyIt?ref=hl</a><br />
<a href="https://www.blogger.com/goog_45287123">http://raspberry-pi-thai.blogspot.com/</a><br />
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a>ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com2tag:blogger.com,1999:blog-3100362182588709453.post-36878010147201925562014-02-02T14:06:00.002+07:002014-03-31T21:04:37.286+07:00ติดตั้งเกมส์ Minecraft บนบอร์ด Raspberry Pi และ วิธีเล่น<br />
<br />
<h2 style="text-align: center;">
ติดตั้งเกมส์ Minecraft บนบอร์ด Raspberry Pi และ วิธีเล่นอย่างง่าย</h2>
เกมส์นี้เป็นเกมส์ฟรีที่ใช้ในการติดตั้งบนบอร์ด Raspberry pi เป็นเกมส์ 3D ที่เขียนด้วย Python<br />
<br />
<br />
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;">
<strong>รายการอุปกรณ์</strong></h3>
<div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
<strong><br /></strong></div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- ชุด Raspberry pi</div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- SD Card 4G Class4 ขั้นต่ำ-OS Raspbian "<a href="http://downloads.raspberrypi.org/raspbian_latest" style="color: #6e0000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 19.5px; outline: 0px; text-decoration: none;">2014-01-07-wheezy-raspbian.zip</a>" <a href="http://www.raspberrypi.org/downloads" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://www.raspberrypi.org/downloads</a></div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- WIFI USB / LAN Wires</div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- Mount+Keyboard</div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- จอทีวีหรือจอคอมพิวเตอร์</div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
- สาย HDMI to DVI / HDMI to HDMI</div>
<div style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
<div style="background-color: white;">
<h3 style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
</h3>
<h3 style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
ขั้นตอนการติดตั้ง</h3>
<div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
<br /></div>
<div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.790000915527344px;">
เปิด Terminal ใช้คำสั่งดาวน์โหลดตัวเกมส์พร้อมด้วยแตกไฟล์ซิป </div>
<blockquote class="tr_bq">
<blockquote class="tr_bq">
$wget https://s3.amazonaws.com/assets.minecraft.net/pi/minecraft-pi-0.1.1.tar.gz</blockquote>
<blockquote class="tr_bq">
$tar -zxvf minecraft-pi-0.1.1.tar.gz</blockquote>
<blockquote class="tr_bq">
$cd mcpi</blockquote>
<blockquote class="tr_bq">
$./minecraft-pi</blockquote>
</blockquote>
<br />
<div style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
<br /></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBh8IMBecCQ0f73gNlVyiE7e9LjR5HP4lEZJxV1Q5NNBUo26pffv8867lvDx7gAJJjZ85cJ-17aLRTdEZTTi1APArZ-NTbJJrzP4JrCronb9vjdQHL9TKdtl0iyYvNWTBP-rKh5-a7nXA/s1600/Minecraft.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBh8IMBecCQ0f73gNlVyiE7e9LjR5HP4lEZJxV1Q5NNBUo26pffv8867lvDx7gAJJjZ85cJ-17aLRTdEZTTi1APArZ-NTbJJrzP4JrCronb9vjdQHL9TKdtl0iyYvNWTBP-rKh5-a7nXA/s1600/Minecraft.JPG" height="251" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkZGqnMWY-arUUkc-i6uQCiRezzLB2uzQ-rhmfC8Qrc7762Gj8BkoNYZgIHCyuCcx1XtgV7P7FNCwhPpOW_wInfY_E2Sh68uP_3jzsphHnlEBmC9SSyfCwEa1dlQj-MunlkCU0lDQQ444/s1600/Minecraft2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkZGqnMWY-arUUkc-i6uQCiRezzLB2uzQ-rhmfC8Qrc7762Gj8BkoNYZgIHCyuCcx1XtgV7P7FNCwhPpOW_wInfY_E2Sh68uP_3jzsphHnlEBmC9SSyfCwEa1dlQj-MunlkCU0lDQQ444/s1600/Minecraft2.JPG" height="102" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHT2Y_0p9es-44oM8DGiGgIlVY6mJA3h7tdFVgKP5HhNA_Bu1-9qYU5PnTYYiaIDGTZ5ZkA_Xmut5ifZd2O7nlxExSAL7E3_hTwqL7quB5IXUy18Ztw9MPGa6BF-sesMhLGVutBmB7Qe4/s1600/F07WT7PHEXSMJZY.LARGE.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHT2Y_0p9es-44oM8DGiGgIlVY6mJA3h7tdFVgKP5HhNA_Bu1-9qYU5PnTYYiaIDGTZ5ZkA_Xmut5ifZd2O7nlxExSAL7E3_hTwqL7quB5IXUy18Ztw9MPGa6BF-sesMhLGVutBmB7Qe4/s1600/F07WT7PHEXSMJZY.LARGE.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
ต่อมาสร้าง shortcut Icon ไว้ที่หน้า Desktop เพื่อสะดวกต่อการใช้งาน<br />
<br />
<blockquote class="tr_bq">
ดาวน์โหลดรูป Icom ของเกมส์ไว้ใน Directory mcpi</blockquote>
<blockquote class="tr_bq">
sudo wget http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/10/minecraft.png</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwqwNgdr7GeCSJ8Xj7pdt_el7IXO0tjLVkj_ZuyeD65X8FyvW9BQZiZBziXOYaWYsVAXp1dNmZfzui0Nyvfa2HfIeLO-6gAEzQz8SldNUItxgDNyn3R_Ij5mOqK6xm_HCCGiOQyIqZcRI/s1600/Minecraft5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwqwNgdr7GeCSJ8Xj7pdt_el7IXO0tjLVkj_ZuyeD65X8FyvW9BQZiZBziXOYaWYsVAXp1dNmZfzui0Nyvfa2HfIeLO-6gAEzQz8SldNUItxgDNyn3R_Ij5mOqK6xm_HCCGiOQyIqZcRI/s1600/Minecraft5.JPG" height="185" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq">
คลิกขวา Desktop >> Create New >> Blank File</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzihvHUYANXdidQiRLxYgN3Kmfw4m45Vpjc1hGi57SaE4DTpFjx2pp36pfiiFDhMWcsVPFRQxRUyRhyZLrDj3RXEDrR-w84xyTm-E6A_ySEPa-fWr44IamhWCB3D7a7nwZ0xuvpACKPQ/s1600/Minecraft6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzihvHUYANXdidQiRLxYgN3Kmfw4m45Vpjc1hGi57SaE4DTpFjx2pp36pfiiFDhMWcsVPFRQxRUyRhyZLrDj3RXEDrR-w84xyTm-E6A_ySEPa-fWr44IamhWCB3D7a7nwZ0xuvpACKPQ/s1600/Minecraft6.JPG" height="250" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq">
ตั้งชื่อ Shortcut ด้วยชื่อ <span style="background-color: white; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px;">minecraft.desktop กด OK</span></blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG-VdGjAV9OFkxsDWqAySwJbtp_r1dQJwHhxd2RQPhnzm6QZmDKFplnuguTTFZnH_AUN9Z_TUvePB9YoiIrbp1NCaSV1AGWt-FbU5Tq6vtjD0gVVLwHsg46GZDch5vBQMjr-G4h1b6j70/s1600/Minecraft7.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG-VdGjAV9OFkxsDWqAySwJbtp_r1dQJwHhxd2RQPhnzm6QZmDKFplnuguTTFZnH_AUN9Z_TUvePB9YoiIrbp1NCaSV1AGWt-FbU5Tq6vtjD0gVVLwHsg46GZDch5vBQMjr-G4h1b6j70/s1600/Minecraft7.JPG" height="175" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq">
เข้าไปเพิ่ม Code ไว้ในไฟล์ ด้วยการคลิดขวาที่ Icon >> Leafpad </blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoYYJ53dK3dkzeC5PgpQLVTvtD_1NQ3QFl2IYld9qPc_5Lw5VzP7cA6J21yNoehX447Yfyljqyi4iEKpMCc9tF7G-EXDwfFjfxsDsNY7GXFpk0yxJhmvsYNHyYZMMW9yxgGyO3n0p_VLk/s1600/Minecraft8.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoYYJ53dK3dkzeC5PgpQLVTvtD_1NQ3QFl2IYld9qPc_5Lw5VzP7cA6J21yNoehX447Yfyljqyi4iEKpMCc9tF7G-EXDwfFjfxsDsNY7GXFpk0yxJhmvsYNHyYZMMW9yxgGyO3n0p_VLk/s1600/Minecraft8.JPG" height="320" width="316" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq">
เพิ่มข้อความเหล่านี้ไปยังไฟล์ <span style="background-color: white; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px;">minecraft.desktop</span></blockquote>
<blockquote class="tr_bq">
<pre style="background-color: #f7f7f7; border: 0px; color: #222222; font-family: 'Courier 10 Pitch', Courier, monospace; font-size: 15px; line-height: 21px; margin-bottom: 24px; overflow: auto; padding: 1.5em; vertical-align: baseline;">[Desktop Entry]
Name=Minecraft Pi Edition
Comment=Launch Minecraft Pi Edition!
Exec=sh -c 'cd ~/mcpi && lxterminal -l -t Minecraft -e ./minecraft-pi'
Icon=/home/pi/mcpi/minecraft.png
Terminal=false
Type=Application
Categories=Application;Games;
StartupNotify=true</pre>
</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0aX0_IlULCVmHk3a6-k0kM0OdfLFlCeJrm_OoLbUdbaPnYiNruspGQ7XUHils8FYuQYMxMC26PPeEqZHDinHVUoOw8gMBF0R1d3PLGNA5CU-zPXakJFbR221HxNh2UVtpOWeVhkrhqEM/s1600/Minecraft9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0aX0_IlULCVmHk3a6-k0kM0OdfLFlCeJrm_OoLbUdbaPnYiNruspGQ7XUHils8FYuQYMxMC26PPeEqZHDinHVUoOw8gMBF0R1d3PLGNA5CU-zPXakJFbR221HxNh2UVtpOWeVhkrhqEM/s1600/Minecraft9.JPG" height="277" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq">
จากนั้น Save File แล้วออกจากไฟล์จะได้ รูป Icon ดังภาพเมื่อเข้าเกมส์ก็สามารถ Double Crick ที่ Icon นี้ได้เลย</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_XZBETs2tTy8r_FiTLXA_bzkwF9DJDB9K81eWezpgQWR_oN8PoW2tqIYceq7jRYn3_YQKrvrh2GtLROteaaO7drDGMqMh4YNAKmvm466tDaydkfVwkH7ej3UOiL98oNC-Cd8nBXwi5D8/s1600/Minecraft10.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_XZBETs2tTy8r_FiTLXA_bzkwF9DJDB9K81eWezpgQWR_oN8PoW2tqIYceq7jRYn3_YQKrvrh2GtLROteaaO7drDGMqMh4YNAKmvm466tDaydkfVwkH7ej3UOiL98oNC-Cd8nBXwi5D8/s1600/Minecraft10.JPG" height="323" width="400" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<h3 style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 16px; line-height: 20px; margin: 0px; position: relative;">
วิธีการเล่นในการควบคุมคีบอร์ด</h3>
<div>
<br /></div>
<div>
<pre style="background-color: #f7f7f7; border: 0px; color: #222222; font-family: 'Courier 10 Pitch', Courier, monospace; font-size: 15px; line-height: 21px; margin-bottom: 24px; overflow: auto; padding: 1.5em; vertical-align: baseline;">ESC Pause/Menu
W Move forward
A Move left
S Move backwards
D Move right
E Show inventory of blocks
1-8 Select items in the quick-bar
Left mouse Destroy blocks
Right mouse Place blocks
Space Jump (ascend in fly-mode)
Shift Sneak (descend in fly-mode)</pre>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
วิธีออกจากเกมส์กด ESC จากนั้นกด ปิดที่ Windows ของ Game ได้เลย</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ที่มา : <a href="https://www.blogger.com/goog_1095180021">http://www.raspberrypi-spy.co.uk/2013/10/how-to-setup-minecraft-on-the-raspberry-pi/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://www.blogger.com/goog_1095180021">https://www.facebook.com/BooindyIt?ref=hl</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://raspberry-pi-thai.blogspot.com/">http://raspberry-pi-thai.blogspot.com/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-78759188687995950772014-01-28T11:29:00.000+07:002014-03-31T21:04:08.683+07:00Remote Desktop from a Windows Machine to your Raspberry Pi<br />
<h2 style="text-align: center;">
<span style="font-weight: normal;">Remote Desktop from a Windows Machine to your Raspberry Pi</span></h2>
<div>
<span style="font-weight: normal;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsGzBo9F0a72BVYl5dFfFk73HV6lBVdSzYcf_xZrEyKnzwQ8Jlrqp2wnF7F79pG8P9RHEpUYMc_f-n0cw8GTl0AYDP3_weQTFcngOPvAzJB4xCdt_AaSutnwWgAfjXgSmoDYjmMcznAQU/s1600/remotr_desktop5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsGzBo9F0a72BVYl5dFfFk73HV6lBVdSzYcf_xZrEyKnzwQ8Jlrqp2wnF7F79pG8P9RHEpUYMc_f-n0cw8GTl0AYDP3_weQTFcngOPvAzJB4xCdt_AaSutnwWgAfjXgSmoDYjmMcznAQU/s1600/remotr_desktop5.JPG" height="241" width="400" /></a></div>
<div style="text-align: center;">
<span style="font-weight: normal;"><br /></span></div>
<div style="text-align: center;">
<span style="font-weight: normal;"><br /></span></div>
<div>
Remote Desktop เป็นการเข้าไปจัดการหน้าจอของ Raspberry pi โดยผู้ใช้ไม่จำเป็นต้องอยู่หน้าเครื่องเราสามารรถจัดการหน้าจอ โดยการรีโหมดหน้าจอให้มาอยู่หน้าจอของคอมพิวเตอร์ของเราในที่นี้ใช้เครื่องมือรีโหมดที่มีอยู่ของ windows คือ "<a href="http://support.microsoft.com/kb/186607/th">Remote Desktop Connection</a>" ได้เลย ก่อนอื่นต้องมีการเชื่อมต่ออินเตอร์เน็ตซะก่อนเพื่อติดตั้งแพ็กเก็ตต่าง</div>
<div>
<h3>
<strong><br /></strong></h3>
<h3>
<strong>รายการอุปกรณ์</strong></h3>
<div>
<strong><br /></strong></div>
<div style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
-ชุด Raspberry pi</div>
<div style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
-SD Card 4G Class4 ขั้นต่ำ-OS Raspbian "<a href="http://downloads.raspberrypi.org/raspbian_latest" style="color: #6e0000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 19.5px; outline: 0px;">2014-01-07-wheezy-raspbian.zip</a>" <a href="http://www.raspberrypi.org/downloads" rel="nofollow" style="color: #3b5998; cursor: pointer; text-decoration: none;" target="_blank">http://www.raspberrypi.org/downloads</a></div>
<div style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
-Computer OS Windows</div>
<div style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
-"<a href="http://support.microsoft.com/kb/186607/th">Remote Desktop Connection</a>"</div>
<div style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
-WIFI USB / LAN Wires</div>
<div style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">
-Mount+Keyboard<br />
<br /></div>
</div>
<h3>
ขั้นตอนการติดตั้ง</h3>
<div>
<br /></div>
<div>
ที่ตัว Raspberry pi มาติดตั้งโปรแกรมที่ใช้ในการรีโหมดเข้าไปด้วย <a href="http://elinux.org/RPi_XRDP_Server">XRDP</a></div>
<blockquote class="tr_bq">
#sudo apt-get install xrdp</blockquote>
ตรวจสอบ IP ของ Raspberry pi แล้วจดจำไว้เพื่อที่จะเอาไปใช้ในการรีโหมดเข้ามาใน Raspberry pi แล้วรีสตาร์ตเครื่องใหม่เพื่อให้โปรแกรม XRDP เปิดใช้งานอัตโนมัติ ด้วยคำสั่ง<br />
<blockquote class="tr_bq">
#ifconfig </blockquote>
<blockquote class="tr_bq">
#sudo reboot</blockquote>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKexreaucnWoCFDiNvDsKc__Rvmm0RI_u_mC6sjjQLQ6aDlilPo_m-NbNp68rDKItf92He2Nz9mZ2848v_XaQ-Ldpm9-FaeWjy8j9CBrHIfDlnZtCJDmshvadVTw_P_Prv9U2G2w_anj4/s1600/remotr_desktop.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKexreaucnWoCFDiNvDsKc__Rvmm0RI_u_mC6sjjQLQ6aDlilPo_m-NbNp68rDKItf92He2Nz9mZ2848v_XaQ-Ldpm9-FaeWjy8j9CBrHIfDlnZtCJDmshvadVTw_P_Prv9U2G2w_anj4/s1600/remotr_desktop.jpg" height="252" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq">
จะเห็นว่ามีการเปิดใช้งาน Remote Desktop Protocol Server : xrdp</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4GgCP6mdy6VDRo31-Fx7KXRZsFoyi0kMcIMxiC1IxcOcquQkV3BcyQnnlQihyphenhyphenpZCg_4JESHa1HqMpyzFU_4Rh3ZiI5d38SADHPLDwiNZuIVSysC4RnSVRGXHr9Cg6gjcoxKbxqm2qNOwK/s640/IPAddress.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4GgCP6mdy6VDRo31-Fx7KXRZsFoyi0kMcIMxiC1IxcOcquQkV3BcyQnnlQihyphenhyphenpZCg_4JESHa1HqMpyzFU_4Rh3ZiI5d38SADHPLDwiNZuIVSysC4RnSVRGXHr9Cg6gjcoxKbxqm2qNOwK/s640/IPAddress.jpg" height="38" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
มาที่เครื่อง Windows ที่จะรีโหมดเข้าไปด้วย <a href="http://support.microsoft.com/kb/186607/th" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 20px;">Remote Desktop Connection</a> ไม่จำเป็นต้องติดตั้งเพิ่มมันมีอยู่แล้วในวินโดว์จากนั้น</div>
<blockquote class="tr_bq">
ใส่ IP ของ Raspberry pi ในช่อง Computer </blockquote>
<blockquote class="tr_bq">
เชื่อมต่อไปยัง Raspberry pi โดยกดปุ่ม Connect</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwlQOrOLhjCbQNVYHfB4Nmq3Ryr-AUXNiFkCHPC4QTyrdFbKfCFcSESEDNmHJe0Pl5xzz_R6gls5xBTY2dp8pTzFt8xOwoeQkU8ELwq3dJqOWeTDHsUtCWTeeuCU9ZK37nnwkoGMHgz6k/s1600/remotr_desktop2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwlQOrOLhjCbQNVYHfB4Nmq3Ryr-AUXNiFkCHPC4QTyrdFbKfCFcSESEDNmHJe0Pl5xzz_R6gls5xBTY2dp8pTzFt8xOwoeQkU8ELwq3dJqOWeTDHsUtCWTeeuCU9ZK37nnwkoGMHgz6k/s1600/remotr_desktop2.jpg" height="247" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmyY5zh1VAZNXap3irUImtwMUO2_3CiPnroDv16ou9vAB9UTSrdtnQ8C9O2LLj5KZNUm9EmyaRNR_zUfSbz-AFwsJTdVV7tBNb_kVatfpGQFuTvex8ugS800Z3jutfHBC2_dg-Nj3Bz-c/s1600/remotr_desktop3.5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmyY5zh1VAZNXap3irUImtwMUO2_3CiPnroDv16ou9vAB9UTSrdtnQ8C9O2LLj5KZNUm9EmyaRNR_zUfSbz-AFwsJTdVV7tBNb_kVatfpGQFuTvex8ugS800Z3jutfHBC2_dg-Nj3Bz-c/s1600/remotr_desktop3.5.jpg" height="215" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq">
ใส่รหัสในการ Login ปกติหากยังไม่เปลียนรหัสโดย </blockquote>
<blockquote class="tr_bq">
Username : pi </blockquote>
<blockquote class="tr_bq">
Password : raspberry</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcmx_3cICrAfH28IToXdig11s8ulOYOrumdaMAK-QYKW7r0gyE68-5TTcNZwk6f_aRSRh-SZzqMv9As1-rcdgN_pu94jRVY9NcnsX5XmDN30fY4ujFqI0KafxYVs_8mN707kgiSaT9eVk/s1600/remotr_desktop3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcmx_3cICrAfH28IToXdig11s8ulOYOrumdaMAK-QYKW7r0gyE68-5TTcNZwk6f_aRSRh-SZzqMv9As1-rcdgN_pu94jRVY9NcnsX5XmDN30fY4ujFqI0KafxYVs_8mN707kgiSaT9eVk/s1600/remotr_desktop3.JPG" height="298" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<blockquote class="tr_bq">
ได้แล้วครับเราสามารถจัดการหน้าจอทุกอย่างได้ ทั้ง เมาส์ คีบอร์ด</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkUYDdkCT-2idUG98GzgqamiisF1n5kWCfvt_c-fpShycFoxh_Bxzp-mi7y-eERsoC9nSPuOvWKq-iLt1rIBhc1RY9zvzUHwc13kfzUooSkVPfU-pRNS-m7mvgvZiAXT5NWFikLc6TUts/s1600/remotr_desktop4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkUYDdkCT-2idUG98GzgqamiisF1n5kWCfvt_c-fpShycFoxh_Bxzp-mi7y-eERsoC9nSPuOvWKq-iLt1rIBhc1RY9zvzUHwc13kfzUooSkVPfU-pRNS-m7mvgvZiAXT5NWFikLc6TUts/s1600/remotr_desktop4.jpg" height="215" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
ที่มา : <a href="http://www.raspberrypiblog.com/2012/10/how-to-setup-remote-desktop-from.html">http://www.raspberrypiblog.com/2012/10/how-to-setup-remote-desktop-from.html</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a></div>
<div>
<br /></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-47028514768078280612014-01-15T17:38:00.001+07:002014-03-31T21:03:21.595+07:00HOW TO INSTALL KALI AND HACK WIFI WEP ON RASPBERRY PI ( การติดตั้ง KALI และแฮกไวไฟแบบ WEP บน RASPBERRY PI )<br />
<h2 style="background-color: white; color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin: 0.5em 0px; position: relative; text-align: center; text-transform: uppercase;">
HOW TO INSTALL KALI AND HACK WIFI WEP ON RASPBERRY PI </h2>
<h2 style="background-color: white; color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin: 0.5em 0px; position: relative; text-align: center; text-transform: uppercase;">
( การติดตั้ง KALI และแฮกไวไฟแบบ WEP บน RASPBERRY PI )</h2>
<div>
<br /></div>
<div>
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;">
การติดตั้ง Kali on Raspberry pi</h3>
<b style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">อุปกรณ์และไฟล์ที่จำเป็นต้องใช้</b><br />
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
Raspberry Pi Model B RAM 512 MB<br />
SD CARD 8G Class 10 หรือมากกว่า<br />
MINI USB WiFi (chip ralink 5370)<br />
Kali for Raspberry pi<br />
<a href="http://psg.mtu.edu/pub/kali-images/" style="color: #771100; text-decoration: none;">http://psg.mtu.edu/pub/kali-images/</a> </blockquote>
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
Win32diskimager<br />
<a href="http://sourceforge.net/projects/win32diskimager/" style="color: #771100; text-decoration: none;">http://sourceforge.net/projects/win32diskimager/</a></blockquote>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh16VkcGbwSVfUOdtl9y6olV6gct-4TjetwsurLPkvN8Eez0p_kq6Qi2mH9wrt7vqMdLCczDgdkNRJen0GoJur2U4gkXNpKocqy74CSKMzJ9mUBuv0nWOxk9HoddXTy0lQzDw1QMdX58NZk/s1600/2014-01-05+15.55.02.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh16VkcGbwSVfUOdtl9y6olV6gct-4TjetwsurLPkvN8Eez0p_kq6Qi2mH9wrt7vqMdLCczDgdkNRJen0GoJur2U4gkXNpKocqy74CSKMzJ9mUBuv0nWOxk9HoddXTy0lQzDw1QMdX58NZk/s400/2014-01-05+15.55.02.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<b style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">ขั้นตอนการติดตั้งระบบอย่างง่าย</b><br />
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
โหลดไฟล์ kali-images จาก <a href="http://psg.mtu.edu/pub/kali-images/" style="color: #771100; text-decoration: none;">http://psg.mtu.edu/pub/kali-images/</a> และ Win32diskimager จาก <a href="http://sourceforge.net/projects/win32diskimager/" style="color: #771100; text-decoration: none;">http://sourceforge.net/projects/win32diskimager/</a> จากนั้นเสียบ SD CARD เข้ากับคอมพิวเตอร์</blockquote>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzpkGgO_dqStfk4am-isWRvrqD4iKCfgJqZ6TZSBPqTpI42MzMbazkkPhvAga8JUy2PaGK6AjDswjEOB2C3MxzhmWJhyNNb4bD4i85TxnkCH9Y8rucX5RJVZIkB11K1VHu9Li05aLboEIg/s1600/kali_install.JPG" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzpkGgO_dqStfk4am-isWRvrqD4iKCfgJqZ6TZSBPqTpI42MzMbazkkPhvAga8JUy2PaGK6AjDswjEOB2C3MxzhmWJhyNNb4bD4i85TxnkCH9Y8rucX5RJVZIkB11K1VHu9Li05aLboEIg/s400/kali_install.JPG" height="356" style="border: none; position: relative;" width="400" /></a></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
เปิดโปรแกรม Win32DiskImager เลือก Device และ ตำแหน่งไฟล์ kali-images ที่โหลดมาจากนั้นกด Write รอจนเขียนไฟล์ลง sd card เสร็จจากนั้น</blockquote>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcQcR12jPew6U-xdCfIMD6fT0hItM_snMCFS9O1jGOeuZxl5I8-fA3fYato-O8RGgu69fs-S_Lh0bvaXicOTMaBWM7j0FIFd-zhcUCWAMqZGq8sYg2Up2mJ_qz_I6inYoW08yNPMZGlZD-/s1600/kali_install2.JPG" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcQcR12jPew6U-xdCfIMD6fT0hItM_snMCFS9O1jGOeuZxl5I8-fA3fYato-O8RGgu69fs-S_Lh0bvaXicOTMaBWM7j0FIFd-zhcUCWAMqZGq8sYg2Up2mJ_qz_I6inYoW08yNPMZGlZD-/s400/kali_install2.JPG" height="202" style="border: none; position: relative;" width="400" /></a></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
ถอด SD Card มาต่อกับ Raspberry pi แล้วเปิดเครื่อง<br />
Login : root<br />
password : toor</blockquote>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
</div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
เข้าหน้า x-windows ด้วยคำสั่ง<br />
#startx</blockquote>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBNPbqaXXUpX_5wESfyQFjd2le4qtJct-_Poy55_30Bf76Q5aHvLI_VD0Fjg9JeDN-spyPBgKfGRi1qU3CIuStQR_fe5iqoyCmNSPdNoBIJfhLTC-nIrEVtrfqfMh3POzPUAtQrEQpQ7c/s1600/IMG_2440.JPG" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBNPbqaXXUpX_5wESfyQFjd2le4qtJct-_Poy55_30Bf76Q5aHvLI_VD0Fjg9JeDN-spyPBgKfGRi1qU3CIuStQR_fe5iqoyCmNSPdNoBIJfhLTC-nIrEVtrfqfMh3POzPUAtQrEQpQ7c/s400/IMG_2440.JPG" height="300" style="border: none; position: relative;" width="400" /></a></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
เป็นอันสำเร็จสำหรับการติดตั้งครับ</blockquote>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;">
การ Hack Wep with kali on Raspberry pi อย่างง่าย</h3>
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
เข้าเมนู fern-wifi-cracker</blockquote>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAzHAJv71bO-NQJqZpnz4EPKTdckOUi0HavjEeBF7BgFj4Llci8n0A9VgG8P-Ar2K1OHuV2R5LVhrfoxf_hvrM60xc7uxZnk34856R4FbC6RPpeSnIx-B-Yz01MB5TBexkn6LWJsH57kEZ/s1600/kali_install3.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAzHAJv71bO-NQJqZpnz4EPKTdckOUi0HavjEeBF7BgFj4Llci8n0A9VgG8P-Ar2K1OHuV2R5LVhrfoxf_hvrM60xc7uxZnk34856R4FbC6RPpeSnIx-B-Yz01MB5TBexkn6LWJsH57kEZ/s400/kali_install3.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
เลือกอินเตอร์เฟส (select interface) wlanX >> ค้นหา AP (scan access points) >> WiFi wep</blockquote>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCuqSNVyGcx7h2WmgW-wvsvYiDK_TfnGptp0te2KkvJi5ASv8WH6SeaDwqrQGaZ7QQWWjvrTAPDdfC8OgWOrevJNWpe68LlIG5y9H4kGU_lvTYOVe1OojdBGqKseEt2j0n5A5viJSWgemn/s1600/kali_install4.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCuqSNVyGcx7h2WmgW-wvsvYiDK_TfnGptp0te2KkvJi5ASv8WH6SeaDwqrQGaZ7QQWWjvrTAPDdfC8OgWOrevJNWpe68LlIG5y9H4kGU_lvTYOVe1OojdBGqKseEt2j0n5A5viJSWgemn/s400/kali_install4.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
เลือก AP (Select Target Access Point) >> ติก Automate >> คลิก WIFI Attack</blockquote>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4R-vnaLimF0XwduhuAvSZoV7EXVQNw4jAIteXwL8TAt8brHdrAFVXdhEyCL8kOwtWUzU40XSR6m-QtMtc9pK4op4fw6gIKzJV6wsdKrPfRBU36m2Rkr-jPw8DniLSBJlI8EMwOcQDgqQJ/s1600/kali_install5.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4R-vnaLimF0XwduhuAvSZoV7EXVQNw4jAIteXwL8TAt8brHdrAFVXdhEyCL8kOwtWUzU40XSR6m-QtMtc9pK4op4fw6gIKzJV6wsdKrPfRBU36m2Rkr-jPw8DniLSBJlI8EMwOcQDgqQJ/s400/kali_install5.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
รอการทำงานของโปรแกรมจนกว่าจะเสร็จ......</blockquote>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtCcCIg-lrn5RU40y5UB112X76RtJHBwI2MyzHmSXA0NcRtLin_H2pFnBktvV-74Qk8e7vv6li6T-beGYuPvXHM7thyl7OaAguoY86pEPAT6TKqNKG3Lvt2B0vLnb_XZdlJGl6SuHgcTIL/s1600/kali_install6.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtCcCIg-lrn5RU40y5UB112X76RtJHBwI2MyzHmSXA0NcRtLin_H2pFnBktvV-74Qk8e7vv6li6T-beGYuPvXHM7thyl7OaAguoY86pEPAT6TKqNKG3Lvt2B0vLnb_XZdlJGl6SuHgcTIL/s400/kali_install6.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<br /></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyb2CSRCwxBQruWSrJwpmHunI3POH-BEnuT0VTogPbl07t-VSUsIwxDWnMjMTfeEcLvsdImFA1cw_Zhgw2txcry51tLKj5W-50oClvDP6e06JVg0npmyMNXnyaLGUS9hUi7FrSZrV5dmXB/s1600/kali_install7.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyb2CSRCwxBQruWSrJwpmHunI3POH-BEnuT0VTogPbl07t-VSUsIwxDWnMjMTfeEcLvsdImFA1cw_Zhgw2txcry51tLKj5W-50oClvDP6e06JVg0npmyMNXnyaLGUS9hUi7FrSZrV5dmXB/s400/kali_install7.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
ระบบทำงานเสร็จแล้วครับ ได้รหัสมาแล้วครับ </blockquote>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcGbWv0PF5lTqPG6AqBQz5ORhVntrYX28RNw8qErT9mk_m9VdpYogSnvZP_y6YZXahn6RvFpjSE4zDeutV5qDihpJN3nTeeCYHQOyo_v4V1z4fmA2nD9xfJJnW8U5EAcYo1lVSBMZSmKHd/s1600/kali_install8.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcGbWv0PF5lTqPG6AqBQz5ORhVntrYX28RNw8qErT9mk_m9VdpYogSnvZP_y6YZXahn6RvFpjSE4zDeutV5qDihpJN3nTeeCYHQOyo_v4V1z4fmA2nD9xfJJnW8U5EAcYo1lVSBMZSmKHd/s400/kali_install8.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
Key Database จะจัดเก็บข้อมูลไว้ครับ ง่ายใช่ไหมครับลองนำไปใช้กันดูครับ </blockquote>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8FCwvwNIU5Lut7WQpkxT4zlLD2oegMlX7N3Vn3sWdPgD53VUEO_GMbW1S2F7A1uTrR13PyjBj20FQmvIUAOQy_T9mIYB4mkBz34XU_uKYwYkXMkou6LAUkbLnihpVR8eAGUerricUE_aH/s1600/kali_install9.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8FCwvwNIU5Lut7WQpkxT4zlLD2oegMlX7N3Vn3sWdPgD53VUEO_GMbW1S2F7A1uTrR13PyjBj20FQmvIUAOQy_T9mIYB4mkBz34XU_uKYwYkXMkou6LAUkbLnihpVR8eAGUerricUE_aH/s400/kali_install9.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<span id="goog_793952544" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"></span><span id="goog_793952545" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"></span><br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<h3 style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;">
การ Hack Wep with kali on Raspberry pi แบบ terminal text mode</h3>
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
วิธีนี้หลักการเดียวกับใน Backtrack ครับ โดยวิธีดูได้จากที่นี้ครับ </blockquote>
<blockquote class="tr_bq" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;">
<a href="http://micro2440.blogspot.com/2013/10/wep-cracking-using-backtrack-wep-linux.html" style="color: #771100; text-decoration: none;">http://micro2440.blogspot.com/2013/10/wep-cracking-using-backtrack-wep-linux.html</a> </blockquote>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs9j4AQx5JUBOx3dret6nx8iqEy1K82CeoQksWPhrOQk-eAcgvGgkpy2Guj8Evk78omE3WaQkyzjoo0_VJ_qF-36monsZHq8tuaujqipWLekGjK8RIcsUZCXF8zDtmxtFWqPcMt1dS_HWl/s1600/kali_install10.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs9j4AQx5JUBOx3dret6nx8iqEy1K82CeoQksWPhrOQk-eAcgvGgkpy2Guj8Evk78omE3WaQkyzjoo0_VJ_qF-36monsZHq8tuaujqipWLekGjK8RIcsUZCXF8zDtmxtFWqPcMt1dS_HWl/s400/kali_install10.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibqL2czvoYHbDfxpEM0GZ4HcFhBCD4JNlQ2tyjqx560t3K3Ewg1jZNOqqTKtMZY2C7KB4V4Ils2vyYn408bz4Rp1iAS7G0gx_9mogxXyG4OTcgVTJvONYcT7s_SmaKlrakH7f_0tiXOAfO/s1600/kali_install11.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibqL2czvoYHbDfxpEM0GZ4HcFhBCD4JNlQ2tyjqx560t3K3Ewg1jZNOqqTKtMZY2C7KB4V4Ils2vyYn408bz4Rp1iAS7G0gx_9mogxXyG4OTcgVTJvONYcT7s_SmaKlrakH7f_0tiXOAfO/s400/kali_install11.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5qHSaj1bqqkZYIlv_tXR4B9cw5QaFnBgLgBIZI85nSBtYhF0Ki1Ca99hT9UY_06sPcbvyzaE2rWOevIFJb0S4Al5jMSGDO5DWAPUaeFUew0sCxEoT6BwrKSFb5N-Pq8N7rbkKUHu3DmTB/s1600/kali_install12.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5qHSaj1bqqkZYIlv_tXR4B9cw5QaFnBgLgBIZI85nSBtYhF0Ki1Ca99hT9UY_06sPcbvyzaE2rWOevIFJb0S4Al5jMSGDO5DWAPUaeFUew0sCxEoT6BwrKSFb5N-Pq8N7rbkKUHu3DmTB/s400/kali_install12.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd6obHI3AVO0P5aLVfzqmPmsRHQzA8TNetlvkatMEYWkX-GPMA7V7yI4Ysg1qmsr3dxwgfYkmBYR8gdgcM-ILShj4lxZijx4c4uf2iUMzylvwcNqegqsrHajsN3u74vkrjAQ03PA4tZMvm/s1600/kali_install13.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd6obHI3AVO0P5aLVfzqmPmsRHQzA8TNetlvkatMEYWkX-GPMA7V7yI4Ysg1qmsr3dxwgfYkmBYR8gdgcM-ILShj4lxZijx4c4uf2iUMzylvwcNqegqsrHajsN3u74vkrjAQ03PA4tZMvm/s400/kali_install13.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKlsSOn8nPBIdI9FkpTLJkSpX8_w5Z0vi-rZPoIJGsQAntPpAi5lUIfn8HomHOlCw_7wgLCaFYJ6xBpHEcxNGfm6fAUOm0t9RJNwRUC_Scr4VYUbBDAWqZsQZ6WRoBATodYp6pTt-i2jMO/s1600/kali_install14.jpg" imageanchor="1" style="color: #771100; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKlsSOn8nPBIdI9FkpTLJkSpX8_w5Z0vi-rZPoIJGsQAntPpAi5lUIfn8HomHOlCw_7wgLCaFYJ6xBpHEcxNGfm6fAUOm0t9RJNwRUC_Scr4VYUbBDAWqZsQZ6WRoBATodYp6pTt-i2jMO/s400/kali_install14.jpg" height="300" style="border: none; position: relative;" width="400" /></a></div>
<br style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" />
<br />
<span style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"><a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a></span><br />
<u><a href="http://micro2440.blogspot.com/">http://micro2440.blogspot.com/</a></u><br />
<a href="http://raspberry-pi-thai.blogspot.com/">http://raspberry-pi-thai.blogspot.com/</a><br />
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a></div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-62215908033134979642014-01-07T22:40:00.002+07:002014-03-31T21:01:42.138+07:00MONITOR CPU, MEMORY, GENERAL INFO ON RASPBERRY PI BY NODE.JS<br />
<br />
<h2>
MONITOR CPU, MEMORY, GENERAL INFO ON RASPBERRY PI BY NODE.JS</h2>
เราสามารถตรวจสอบประสิทธิภาพการทำงานของระบบของเราได้โดยมีการแสดงบนผ่านหน้าเว็บและสามารมารถดาวโหลดไฟล์ภาพ และ ไฟล์ PDF เก็บไว้ได้ โดยการแสดงผลทั้งหมดที่มีก็คือ<br />
CPU, MEMORY และ รายละเอียดต่างๆดังภาพ<br />
<br />
วิธีทำก็มีสองส่วน คือ web server และ node js<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrwPltlO-j4DPhV8wpdJ2xH5M3Da1rMQlvKlo77QFNKKYcllFj2sp-_gbgdGiQBX5BsGPuO8g8ARix7_Q_0jZMXnWeaVyQTZrn0GWc8b94zJ0SpmoIn4jZmd_VRLBLaar71-nzqR0DWOs/s1600/Untitled.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrwPltlO-j4DPhV8wpdJ2xH5M3Da1rMQlvKlo77QFNKKYcllFj2sp-_gbgdGiQBX5BsGPuO8g8ARix7_Q_0jZMXnWeaVyQTZrn0GWc8b94zJ0SpmoIn4jZmd_VRLBLaar71-nzqR0DWOs/s1600/Untitled.jpg" height="179" width="320" /></a></div>
<br />
<h3>
ชุดติดตั้งแรกเป็นชุดติดตั้ง WEB SERVER สำหรับแสดงหน้า WEB BROWSER </h3>
<br />
<div style="text-align: justify;">
สร้างสิทธิของกลุ่มในการใช้ <span style="color: #656565; font-family: Lato, sans-serif;"><span style="font-size: 15px; line-height: 28px;">apache ชื่อ www-data และกำหนด user ใช้อยู่ในกลุ่ม</span></span></div>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-e" style="box-sizing: border-box; height: inherit !important;">sudo </span><span class="crayon-e" style="box-sizing: border-box; height: inherit !important;">addgroup </span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">www</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">data</span></span></blockquote>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-e" style="box-sizing: border-box; height: inherit !important;">sudo </span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">usermod</span><span class="crayon-h" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;"> </span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">a</span><span class="crayon-h" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;"> </span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">G</span><span class="crayon-h" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;"> </span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">www</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-e" style="box-sizing: border-box; height: inherit !important;">data </span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">www</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">data</span></span></blockquote>
<div style="text-align: justify;">
อัพเดทระบบและติดตั้ง apache และ php5</div>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-e" style="box-sizing: border-box; height: inherit !important;">sudo </span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">apt</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-e" style="box-sizing: border-box; height: inherit !important;">get </span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">update</span></span></blockquote>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">sudo </span><span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">apt</span><span class="crayon-o" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">-</span><span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">get </span><span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">install </span><span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">apache2 </span><span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">php5 </span><span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">libapache2</span><span class="crayon-o" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">-</span><span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">mod</span><span class="crayon-o" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">-</span><span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">php5</span></blockquote>
<div style="text-align: justify;">
รีสตาร์ apache ให้เริ่มทำงานใหม่</div>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">sudo</span><span class="crayon-h" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;"> </span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">etc</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-v" style="box-sizing: border-box; color: rgb(0, 45, 122) !important; height: inherit !important;">init</span><span class="crayon-sy" style="box-sizing: border-box; color: rgb(51, 51, 51) !important; height: inherit !important;">.</span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">d</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-e" style="box-sizing: border-box; height: inherit !important;">apache2 </span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">restart</span></span></blockquote>
<div style="text-align: justify;">
ติดตั้งและตั้งค่่า MYSQL และ PHPMYADMIN และกำหนดรหัสผ่านของ Mysql ของ User root โดยทั้งสองครั้งต้องรหัสเดียวกัน >> แล้วเลือกติดตั้ง apache2 และ lighttpd โดยกด spacebar ให้เป็น "*" แล้ว ok >> ระบบให้ใส่ยืนยันรหัสที่ได้ตั้งไว้แล้ว กด ok >> yes</div>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">sudo </span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">ifup </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">lo</span></span></span> </blockquote>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">sudo </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">apt</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">get </span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">install </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">mysql</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">server </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">mysql</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">client </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">php5</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">mysql </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">phpmyadmin</span></span></span></span></blockquote>
<div style="text-align: justify;">
เข้าไปแก้ไขไฟล์ php.ini </div>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">sudo </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">nano</span><span class="crayon-h" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;"> </span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">etc</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">php5</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">apache2</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-v" style="box-sizing: border-box; color: rgb(0, 45, 122) !important; height: inherit !important;">php</span><span class="crayon-sy" style="box-sizing: border-box; color: rgb(51, 51, 51) !important; height: inherit !important;">.</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">ini</span></span></span></span></span></blockquote>
<span style="text-align: justify;">โดยในหัวข้อ "Dynamics Extensions" ให้ลบเครื่องหมาย คอมเม้นข้างหน้าออก จากนั้นเซฟแล้วออกโดยกด ctrl+x >> y >>enter </span><br />
<blockquote class="tr_bq">
<span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="background-color: yellow; box-sizing: border-box; height: inherit !important;"><span class="crayon-v" style="box-sizing: border-box; color: rgb(0, 45, 122) !important; height: inherit !important;">extension</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">=</span><span class="crayon-v" style="box-sizing: border-box; color: rgb(0, 45, 122) !important; height: inherit !important;">mysql</span><span class="crayon-sy" style="box-sizing: border-box; color: rgb(51, 51, 51) !important; height: inherit !important;">.</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">so</span></span></span></span></span></span></blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfvJGb8MiCtDohfZeIl5apskVqVJFz5IoKn6AwPhwXMA2aHr6pyzfNqUK6bU60UU7IovmNqbNLDzna1ALGTUPO6kqxH0TNj-7dafkQx6IA2CmbcAqqv-PhG5aTEX8PErsgIM_kDdlygus/s1600/Untitled4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfvJGb8MiCtDohfZeIl5apskVqVJFz5IoKn6AwPhwXMA2aHr6pyzfNqUK6bU60UU7IovmNqbNLDzna1ALGTUPO6kqxH0TNj-7dafkQx6IA2CmbcAqqv-PhG5aTEX8PErsgIM_kDdlygus/s1600/Untitled4.JPG" height="199" width="320" /></a></div>
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><br /></span></span></span></span></span></span>
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><br /></span></span></span></span></span></span>
<br />
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">sudo </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">ln</span><span class="crayon-h" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;"> </span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">s</span><span class="crayon-h" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;"> </span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">etc</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">phpmyadmin</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-v" style="box-sizing: border-box; color: rgb(0, 45, 122) !important; height: inherit !important;">apache</span><span class="crayon-sy" style="box-sizing: border-box; color: rgb(51, 51, 51) !important; height: inherit !important;">.</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">conf</span><span class="crayon-h" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;"> </span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">etc</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">apache2</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-v" style="box-sizing: border-box; color: rgb(0, 45, 122) !important; height: inherit !important;">conf</span><span class="crayon-sy" style="box-sizing: border-box; color: rgb(51, 51, 51) !important; height: inherit !important;">.</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">d</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-v" style="box-sizing: border-box; color: rgb(0, 45, 122) !important; height: inherit !important;">phpmyadmin</span><span class="crayon-sy" style="box-sizing: border-box; color: rgb(51, 51, 51) !important; height: inherit !important;">.</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">conf</span></span></span></span></span></span></span></blockquote>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">sudo</span><span class="crayon-h" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;"> </span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">etc</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-v" style="box-sizing: border-box; color: rgb(0, 45, 122) !important; height: inherit !important;">init</span><span class="crayon-sy" style="box-sizing: border-box; color: rgb(51, 51, 51) !important; height: inherit !important;">.</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">d</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">/</span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">apache2 </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">reload</span></span></span></span></span></span></span></blockquote>
<div style="text-align: justify;">
สร้งไฟล์ testphp.php โดย</div>
<blockquote class="tr_bq">
cd /var/www</blockquote>
<blockquote class="tr_bq">
sudo nano testphp.php </blockquote>
<div style="text-align: justify;">
เพิ่มข้อความล่างนี้เข้าไปยังไฟล์ testphp.php </div>
<blockquote class="tr_bq">
<span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="background-color: yellow; box-sizing: border-box; height: inherit !important;"><span class="kw2" style="box-sizing: border-box; color: #2060a0; font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18.1875px; white-space: nowrap;"><?php</span><span style="font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18.1875px; white-space: nowrap;"> </span><a href="http://www.php.net/phpinfo" style="box-sizing: border-box; color: #1abb9c; font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18.1875px; text-decoration: none; white-space: nowrap;"><span class="kw3" style="box-sizing: border-box; color: teal; line-height: 1.4em;">phpinfo</span></a><span class="br0" style="box-sizing: border-box; font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18.1875px; white-space: nowrap;">(</span><span class="br0" style="box-sizing: border-box; font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18.1875px; white-space: nowrap;">)</span><span class="sy0" style="box-sizing: border-box; font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18.1875px; white-space: nowrap;">;</span><span style="font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18.1875px; white-space: nowrap;"> </span><span class="sy1" style="box-sizing: border-box; color: #2060a0; font-family: Monaco, 'Lucida Console', monospace; font-size: 13px; line-height: 18.1875px; white-space: nowrap;">?></span></span></span></span></blockquote>
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span style="font-family: 'Times New Roman'; font-size: small; line-height: normal; text-align: justify; white-space: normal;">เปิดเว็บบราวเซอร์แล้วใส่ ip host ของ raspberry pi ดังนี้</span></span></span></span><br />
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><span style="font-family: 'Times New Roman'; font-size: small; line-height: normal; text-align: justify; white-space: normal;"><br /></span></span></span></span>
<a href="http://10.0.0.105/testphp.php">http://10.0.0.105/testphp.php</a><br />
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><br /></span></span></span>
<br />
<div style="text-align: justify;">
ถ้าได้ดังรูปแล้วเป้นอันว่าติดตั้งสมบูรณ์</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjZnZ9PcFn-YKS8VN7jF9SrgJrPCYyqMC9vnxHu4_AdeHcMD0FDXUtJJCe5kdgtKe-XNJmsyHPT5BYHr9zLLR4eAHYoa_DKh74T_q1vgHvrECc4Jj9UvrGCAiTISJDfZJPbghB76AZdzc/s1600/Untitled3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjZnZ9PcFn-YKS8VN7jF9SrgJrPCYyqMC9vnxHu4_AdeHcMD0FDXUtJJCe5kdgtKe-XNJmsyHPT5BYHr9zLLR4eAHYoa_DKh74T_q1vgHvrECc4Jj9UvrGCAiTISJDfZJPbghB76AZdzc/s1600/Untitled3.jpg" height="230" width="320" /></a></div>
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><br /></span></span></span>
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;"><br /></span></span></span>
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><br /></span>
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><br /></span>
<br />
<h3>
ชุดติดตั้งสุดท้ายเป็นชุดติดตั้ง Node JS</h3>
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><br /></span>
<br />
<div style="text-align: justify;">
อัพเดท อัพเกรด ระบบกันก่อน</div>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">sudo </span><span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">apt</span><span class="crayon-o" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">-</span><span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">get </span><span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">update</span><span class="crayon-h" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"> </span><span class="crayon-o" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">&&</span><span class="crayon-h" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"> </span><span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">sudo </span><span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">apt</span><span class="crayon-o" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">-</span><span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">get </span><span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">upgrade</span></blockquote>
<div style="text-align: justify;">
ติดตั้ง node.js npm</div>
<blockquote class="tr_bq">
<span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">sudo </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">apt</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">get </span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">install </span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">nodejs </span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">npm </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">git</span></span></blockquote>
<div style="text-align: justify;">
ดึงไฟล์ที่เข้าทำไว้แล้วจาก github มาใช้งาน และเข้าไปยังไดเร็กเทอรี่ <span class="crayon-i" style="box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">Raspberry</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">-</span><span class="crayon-i" style="box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">Pi</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">-</span><span class="crayon-i" style="box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">Status </span>แล้วติดตั้ง npm</div>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">git </span><span class="crayon-r" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(128, 0, 128) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">clone</span><span class="crayon-h" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"> </span><span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">https</span><span class="crayon-o" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">:</span><span class="crayon-c" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(255, 128, 0) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">//github.com/GeekyTheory/Raspberry-Pi-Status.git</span></blockquote>
<blockquote class="tr_bq">
<span class="crayon-c" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(255, 128, 0) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">cd </span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">Raspberry</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">Pi</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">-</span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">Status</span></span></blockquote>
<blockquote class="tr_bq">
<span class="crayon-e" style="background-color: #fdfdfd; box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">npm </span><span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;">install</span></blockquote>
<blockquote class="tr_bq">
<span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">npm </span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">config </span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">set </span><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">registry </span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">http</span><span class="crayon-o" style="box-sizing: border-box; color: rgb(0, 111, 224) !important; height: inherit !important;">:</span><span class="crayon-c" style="box-sizing: border-box; color: rgb(255, 128, 0) !important; height: inherit !important;">//registry.npmjs.org/</span></span></blockquote>
<blockquote class="tr_bq">
<span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-c" style="box-sizing: border-box; color: rgb(255, 128, 0) !important; height: inherit !important;"><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">npm </span><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;">install</span></span></span></blockquote>
<div style="text-align: justify;">
เรียกใช้งานให้ monitor ทำงานโดยการเรียกคำสั่ง </div>
<blockquote class="tr_bq">
<span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-c" style="box-sizing: border-box; color: rgb(255, 128, 0) !important; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><span class="crayon-e" style="box-sizing: border-box; color: rgb(0, 78, 208) !important; height: inherit !important;">nodejs </span><span class="crayon-v" style="box-sizing: border-box; color: rgb(0, 45, 122) !important; height: inherit !important;">server</span><span class="crayon-sy" style="box-sizing: border-box; color: rgb(51, 51, 51) !important; height: inherit !important;">.</span><span class="crayon-i" style="box-sizing: border-box; height: inherit !important;">js</span></span></span></span></blockquote>
<span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-c" style="box-sizing: border-box; color: rgb(255, 128, 0) !important; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><br /></span></span></span>
<br />
<div style="text-align: justify;">
จากนั้นเปิด web browser ใส่ IP Host ของ raspberry pi และ map ด้วย port 8000 ดังนี้</div>
<div style="text-align: justify;">
<br /></div>
<span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-c" style="box-sizing: border-box; color: rgb(255, 128, 0) !important; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><a href="http://10.0.0.105:8000/" style="font-family: 'Times New Roman'; font-size: medium; line-height: normal; white-space: normal;">http://10.0.0.105:8000/</a></span></span></span><br />
<span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-c" style="box-sizing: border-box; color: rgb(255, 128, 0) !important; height: inherit !important;"><br /></span></span>
ได้แบบนี้เป็นอันสำเร็จสามารถครวจสอบรายละเอียดของระบบ ได้แล้ว<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu3iA-8LJzRgStzeXzR7U8YEL1QXIvLtCKTF4ydIYnUcgH3aJCKrV3BRSFRJScLuSyqRsvtHV0HHe5opagWuEALnq550WLc5nSGTU6l64ueDJSR4K4E_h84Q8aCoHwDmc_doJSiBfDz-Y/s1600/Untitled2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu3iA-8LJzRgStzeXzR7U8YEL1QXIvLtCKTF4ydIYnUcgH3aJCKrV3BRSFRJScLuSyqRsvtHV0HHe5opagWuEALnq550WLc5nSGTU6l64ueDJSR4K4E_h84Q8aCoHwDmc_doJSiBfDz-Y/s1600/Untitled2.jpg" height="179" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjta6bI4pWQZStnYJDkXleuL598AJO6jth2lpHPFhA0XWVI71ZjIK1_ORhO0iomS_w8BnuiIi8Ob5JgHqHFURL1Dvibwp5CpV4TzPXAsfC9ylrK3EY6wsDCEMMvgJsaIjWibbxPniYBK8/s1600/2014-01-07+23.03.33.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjta6bI4pWQZStnYJDkXleuL598AJO6jth2lpHPFhA0XWVI71ZjIK1_ORhO0iomS_w8BnuiIi8Ob5JgHqHFURL1Dvibwp5CpV4TzPXAsfC9ylrK3EY6wsDCEMMvgJsaIjWibbxPniYBK8/s1600/2014-01-07+23.03.33.png" height="320" width="213" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><span class="crayon-c" style="box-sizing: border-box; color: rgb(255, 128, 0) !important; height: inherit !important;"><span class="crayon-i" style="box-sizing: border-box; color: black; height: inherit !important;"><br /></span></span></span>
<br />
<span style="font-family: Monaco, MonacoRegular, Courier New, monospace;"><span style="font-size: 12px; line-height: 15px; white-space: pre;">ที่มา </span></span><a href="http://geekytheory.com/tutorial-raspberry-pi-15-instalacion-de-apache-mysql-php/">http://geekytheory.com/tutorial-raspberry-pi-15-instalacion-de-apache-mysql-php/</a><br />
<span class="crayon-i" style="background-color: #fdfdfd; box-sizing: border-box; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: inherit !important; line-height: 15px; white-space: pre;"><a href="http://geekytheory.com/panel-de-monitorizacion-para-raspberry-pi-con-node-js/">http://geekytheory.com/panel-de-monitorizacion-para-raspberry-pi-con-node-js/</a></span><br />
<a href="https://www.facebook.com/BooindyIt">https://www.facebook.com/BooindyIt</a><br />
<a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a>ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0tag:blogger.com,1999:blog-3100362182588709453.post-31001666711445567452014-01-05T17:01:00.001+07:002014-03-31T21:01:25.981+07:00Access Point (RT5370) on Raspberry Pi<br />
<br />
<header class="entry-header" style="border: 0px; margin: 0px 0px 1.714285714rem; padding: 0px; vertical-align: baseline;"><h1 class="entry-title" style="border: 0px; clear: both; margin: 0px; padding: 0px; text-align: center; vertical-align: baseline;">
<span style="font-size: 25px; font-weight: normal; line-height: 30px;"><br /></span></h1>
<h1 class="entry-title" style="border: 0px; clear: both; margin: 0px; padding: 0px; text-align: center; vertical-align: baseline;">
<span style="font-size: 25px; font-weight: normal; line-height: 30px;">Access Point (RT5370) on Raspberry Pi</span></h1>
<div class="comments-link" style="border: 0px; margin: 1.714285714rem 0px 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: Open Sans, Helvetica, Arial, sans-serif;"><span style="font-size: 14px; line-height: 24px;">รูปแบบการเชื่อมต่อระบบ Access Point (RT5370) on Raspberry Pi </span></span></div>
<div class="comments-link" style="border: 0px; margin: 1.714285714rem 0px 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: Open Sans, Helvetica, Arial, sans-serif;"><span style="font-size: 14px; line-height: 24px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcfhgYkjG7oA1_V8W5P-P6-B9bHFFwyhKsZv46b0U4tR7DIQwdL5_5mmx5OOxJLE6Gdq0z_4MQaknbUvynviW2buXP9EAT28BaLg191lUrJpAW1d0gJ5fASkgg_S2vCtFHpiubeEKVesQ/s1600/ap_pi_9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcfhgYkjG7oA1_V8W5P-P6-B9bHFFwyhKsZv46b0U4tR7DIQwdL5_5mmx5OOxJLE6Gdq0z_4MQaknbUvynviW2buXP9EAT28BaLg191lUrJpAW1d0gJ5fASkgg_S2vCtFHpiubeEKVesQ/s320/ap_pi_9.JPG" height="89" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLfcTXYIYtTmqvtpAPOipg1iI41FV3AIk1u4OVkEtBWwn9GLEubSEVe3zmOg0EQ5sVoKAccHy5SOIofFPIKn7X8IJpdTxNp0IQp3_s-ftCx405k23B-3Zka4_xeaeTFPXF8rGzuBa40Zc/s1600/2014-01-05+15.55.02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLfcTXYIYtTmqvtpAPOipg1iI41FV3AIk1u4OVkEtBWwn9GLEubSEVe3zmOg0EQ5sVoKAccHy5SOIofFPIKn7X8IJpdTxNp0IQp3_s-ftCx405k23B-3Zka4_xeaeTFPXF8rGzuBa40Zc/s320/2014-01-05+15.55.02.jpg" height="240" width="320" /></a></div>
<div class="comments-link" style="border: 0px; margin: 1.714285714rem 0px 0px; padding: 0px; vertical-align: baseline;">
<br /></div>
</header><br />
<div class="entry-content" style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
ขั้นตอนแรกทำการอัพเดทระบบกันก่อน</div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">sudo aptitude update; sudo aptitude -y upgrade</span></blockquote>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
รีสตาร์เครื่องกันก่อนหลังจากอัพเดทระบบกันแล้ว</div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">sudo shutdown -r now</span></blockquote>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
หลังจากนั้นล๊อคอินแล้วเข้า user root แล้วตรวจสอบอุปกรณ์ I/O ว่ามีอะไรเชื่อมต่ออยู่บ้าง </div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">pi@raspberrypi ~ $ sudo su -</span></blockquote>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">root@raspberrypi:~# lsusb</span></blockquote>
<div style="font-size: 14px; line-height: 1.714285714;">
ผลของการใช้คำสั่ง</div>
<pre style="background-color: white; border: 1px solid rgb(237, 237, 237); color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714; margin-bottom: 1.714285714rem; margin-top: 1.714285714rem; overflow: auto; padding: 1.714285714rem; vertical-align: baseline;">Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
<strong style="border: 0px; font-size: 12px; margin: 0px; padding: 0px; vertical-align: baseline;">Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter</strong></pre>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
ติดตั้งแพ็คเก็ต hostapd และ dnsmasq</div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">aptitude install hostapd dnsmasq</span></blockquote>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
เข้าแก้ไข network wireless wlano ให้เป็น static IP</div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">nano /etc/network/interfaces</span></blockquote>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
แล้วทำการแก้ไขให้เป็นดังนี้ หรือจาจะเปลี่ยน IP และ netmask เป็นแบบของคุณ</div>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii6dgj965bm8ryMaWtnnhGVVfXiYRoxeO-tt8Jg5FthXQ6pfneeLLOfUlQLZiW0InfxY4wbxntXbTwI1QIvijt2MUI0nq2AYN1YrQcACtp4nw49iho7YxdAC8UyA72OyZjrywQhAWa8fs/s1600/ap_pi_1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii6dgj965bm8ryMaWtnnhGVVfXiYRoxeO-tt8Jg5FthXQ6pfneeLLOfUlQLZiW0InfxY4wbxntXbTwI1QIvijt2MUI0nq2AYN1YrQcACtp4nw49iho7YxdAC8UyA72OyZjrywQhAWa8fs/s400/ap_pi_1.JPG" height="251" width="400" /></a></div>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
<br /></div>
<pre style="background-color: white; border: 1px solid rgb(237, 237, 237); color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714; margin-bottom: 1.714285714rem; margin-top: 1.714285714rem; overflow: auto; padding: 1.714285714rem; vertical-align: baseline;">allow-hotplug wlan0
iface wlan0 inet static
address 192.168.100.1
netmask 255.255.255.0
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet manual</pre>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
ปิด nano โดย Ctrl+X, กด Y กด Enter</div>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
ตรวจสอบ wlan0 interface และ IP ที่ได้ตั้งค่าไว้ก่อนหน้าด้วยสองคำสั่งดังนี้</div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">ifdown wlan0; ifup wlan0</span><span style="line-height: 1.714285714;"> </span></blockquote>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">ifconfig wlan0</span><span style="line-height: 1.714285714;"> </span></blockquote>
<div style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; line-height: 23px;">ผลการตรวจสอบ</span></div>
<div style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; line-height: 23px;"><br /></span>
</div>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf620tejHFwWEvMzIKUAIuACXaC6moj9gIFBzmAQ5ersleHsoKvWCrsY6vhtSw68M-Y1beyU8_XTf1z4eXymbdIuQDqa86Yv-5Cbv18RDxxxxyPpXGbNN1Xew_ihucd8GnhtqtXDSoAAY/s1600/ap_pi_2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf620tejHFwWEvMzIKUAIuACXaC6moj9gIFBzmAQ5ersleHsoKvWCrsY6vhtSw68M-Y1beyU8_XTf1z4eXymbdIuQDqa86Yv-5Cbv18RDxxxxyPpXGbNN1Xew_ihucd8GnhtqtXDSoAAY/s400/ap_pi_2.JPG" height="102" width="400" /></a></div>
<pre style="background-color: white; border: 1px solid rgb(237, 237, 237); color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714; margin-bottom: 1.714285714rem; margin-top: 1.714285714rem; overflow: auto; padding: 1.714285714rem; vertical-align: baseline;">wlan0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:<strong style="border: 0px; font-size: 12px; margin: 0px; padding: 0px; vertical-align: baseline;">192.168.100.1</strong> Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)</pre>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
สร้างไฟล์ตั้งค่าสำหรับ hostapd ตำแหน่งของไฟล์ /etc/hostapd/hostapd.conf </div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">nano /etc/hostapd/hostapd.conf</span></blockquote>
<div style="font-size: 14px; line-height: 1.714285714;">
แก้ไขตามนี้หรือจะให้เป็นแบบที่คุณต้องการ</div>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQwQ-smH5z3q1QhPVmikd9DC7hVh18Q_cpXJalyDD4nbLX0bF9bdAInkZ5TuuX2SAKb41cxETGjb6WwODFKbXqx58UvYm0cAdTrEfki9_04NeLAhzFAghTMeqeu-pXDcBI-KmblAcex00/s1600/ap_pi_3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQwQ-smH5z3q1QhPVmikd9DC7hVh18Q_cpXJalyDD4nbLX0bF9bdAInkZ5TuuX2SAKb41cxETGjb6WwODFKbXqx58UvYm0cAdTrEfki9_04NeLAhzFAghTMeqeu-pXDcBI-KmblAcex00/s400/ap_pi_3.JPG" height="252" width="400" /></a></div>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<pre style="border: 1px solid rgb(237, 237, 237); color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714; margin-bottom: 1.714285714rem; margin-top: 1.714285714rem; overflow: auto; padding: 1.714285714rem; vertical-align: baseline;"><span style="background-color: white;">interface=wlan0
driver=nl80211
ssid=</span><span style="background-color: lime;">RaspberryPi_AP</span><span style="background-color: white;">
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=</span><span style="background-color: lime;">Your_fav_super_password</span><span style="background-color: white;">
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP</span></pre>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
แก้ไขไฟล์ /etc/default/hostapd และลบคอมเม้นออก <span style="background-color: transparent; line-height: 1.714285714;">'#' </span><span style="line-height: 1.714285714;">ที่ DAEMON_CONF และเพิ่ม </span></div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="line-height: 1.714285714;">nano </span><span style="background-color: white; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; line-height: 1.714285714;">/etc/default/hostapd</span></blockquote>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">ให้เป็นดังรูป</span></div>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2WeS2_sSqIgplm9TSj5hMhBWxVU_lAA4svWJfoBwb3t9sZm2k7udiUTSGKd9uhjALlbUXbCjUj8Ay_OE0oct5QGuq1Ers7NV46m_P7G1_PYX72P0oHNxfVMBXeblcjGTdTSxaP2R4vg8/s1600/ap_pi_4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2WeS2_sSqIgplm9TSj5hMhBWxVU_lAA4svWJfoBwb3t9sZm2k7udiUTSGKd9uhjALlbUXbCjUj8Ay_OE0oct5QGuq1Ers7NV46m_P7G1_PYX72P0oHNxfVMBXeblcjGTdTSxaP2R4vg8/s400/ap_pi_4.JPG" height="251" width="400" /></a></div>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;"><br /></span></div>
<pre style="background-color: white; border: 1px solid rgb(237, 237, 237); color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714; margin-bottom: 1.714285714rem; margin-top: 1.714285714rem; overflow: auto; padding: 1.714285714rem; vertical-align: baseline;">DAEMON_CONF="/etc/hostapd/hostapd.conf"</pre>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
รีสตาร์ hostapd ด้วย </div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">/etc/init.d/hostapd restart</span></blockquote>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
แล้วต่อด้วยคำสั่ง</div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">update-rc.d hostapd enable</span></blockquote>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
แก้ไข <span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">dnsmasq ด้วยคำสั่ง</span></div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">nano /etc/dnsmasq.conf</span></blockquote>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjowJYv3i8pi40SjrtX_jp8JnbDnLyZeYMC4V6Uyadc-IDSLO3JVwN-iCSoFpqeVdbq4rWDGd2iH_-LqsSEG-uFCkcwgsPxi6IkeZ2nCCDwRrgG-6X26XnPi8EgkonDFCQeD-NdpDBYRiw/s1600/ap_pi_5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjowJYv3i8pi40SjrtX_jp8JnbDnLyZeYMC4V6Uyadc-IDSLO3JVwN-iCSoFpqeVdbq4rWDGd2iH_-LqsSEG-uFCkcwgsPxi6IkeZ2nCCDwRrgG-6X26XnPi8EgkonDFCQeD-NdpDBYRiw/s400/ap_pi_5.JPG" height="250" width="400" /></a></div>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<pre style="background-color: white; border: 1px solid rgb(237, 237, 237); color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714; margin-bottom: 1.714285714rem; margin-top: 1.714285714rem; overflow: auto; padding: 1.714285714rem; vertical-align: baseline;">interface=wlan0
except-interface=eth0
dhcp-range=192.168.100.2,192.168.100.150,255.255.255.0,12h
</pre>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
รีสตาร์ <span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">dnsmasq</span></div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">/etc/init.d/dnsmasq restart</span></blockquote>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">แล้วตามด้วย</span></div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">update-rc.d dnsmasq enable</span></blockquote>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
แก้ไขไฟล์ </div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">nano /etc/sysctl.conf</span></blockquote>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
</div>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
</div>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<div style="font-size: 14px; line-height: 1.714285714;">
แก้ไขโดยการเอา '#' ออก จาก #<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">net.ipv4.ip_forward=1 เป็น</span></div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; line-height: 23px;">net.ipv4.ip_forward=1</span></blockquote>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWj9AlZI3BgcdiiLdl3j2H6-Tp1OcXpmfGsBUdvPdNqR_5z_KCXwgpoU9-W2CtvfhVLablyJruD2_7apCUBvuahfN_DQir37OdnSBfWFKStGUoKAt7qYjUhKEh4zNsP7QQfPKZVYy7IJU/s1600/ap_pi_6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWj9AlZI3BgcdiiLdl3j2H6-Tp1OcXpmfGsBUdvPdNqR_5z_KCXwgpoU9-W2CtvfhVLablyJruD2_7apCUBvuahfN_DQir37OdnSBfWFKStGUoKAt7qYjUhKEh4zNsP7QQfPKZVYy7IJU/s400/ap_pi_6.JPG" height="250" width="400" /></a></div>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<div style="font-size: 14px; line-height: 1.714285714;">
ใช้คำสั่ง</div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">sysctl -p</span><span style="line-height: 1.714285714;"> </span></blockquote>
<div style="font-size: 14px; line-height: 1.714285714;">
รันคำสามสั่งเพื่อ <span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">forwarding</span></div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE</span></blockquote>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT</span></blockquote>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT</span></blockquote>
<div style="font-size: 14px; line-height: 1.714285714;">
ใช้คำสั่งเพื่อบันทึกไฟล์ไปยัง <span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; line-height: 23px;">/etc/iptables.nat</span></div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">iptables-save > /etc/iptables.nat</span></blockquote>
<div style="font-size: 14px; line-height: 1.714285714;">
สร้างไฟล์ <span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">forwarding ใน /etc/network/if-up.d</span></div>
<div style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;"><br /></span>
</div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="background-color: white; color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714;">echo '#!/bin/bash' > /etc/network/if-up.d/forwarding; echo 'iptables-restore < /etc/iptables.nat' >> /etc/network/if-up.d/forwarding; chmod +x /etc/network/if-up.d/forwarding</span></blockquote>
<div style="background-color: white; border: 0px; color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem; padding: 0px; vertical-align: baseline;">
<span style="line-height: 1.714285714;">แก้ไขปัญหาหลังจากรีสตาร์โดยเปลี่ยนไฟล์ /etc/default/ifplugd ให้เป็นดังนี้ </span></div>
<blockquote class="tr_bq" style="font-size: 14px; line-height: 1.714285714;">
<span style="line-height: 1.714285714;">nano </span><span style="line-height: 1.714285714;"> </span><span style="line-height: 1.714285714;">/etc/default/ifplugd</span></blockquote>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyEEFDANzMkLWO-rrhDkVexTV5Ay9-v7Ai2mCZ7GfszaS0xfZzbwmIUW1Cx47N_k40jTm561njRVqOV84pjGYpYX1zyPIbrF-vFjSsTEzGjVG3gaTpX6GyL-tQjvT4XnipIfq35z0Mvvo/s1600/ap_pi_8.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyEEFDANzMkLWO-rrhDkVexTV5Ay9-v7Ai2mCZ7GfszaS0xfZzbwmIUW1Cx47N_k40jTm561njRVqOV84pjGYpYX1zyPIbrF-vFjSsTEzGjVG3gaTpX6GyL-tQjvT4XnipIfq35z0Mvvo/s400/ap_pi_8.JPG" height="252" width="400" /></a></div>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<pre style="background-color: white; border: 1px solid rgb(237, 237, 237); color: #666666; font-family: Consolas, Monaco, 'Lucida Console', monospace; font-size: 0.857142857rem; line-height: 1.714285714; margin-bottom: 1.714285714rem; margin-top: 1.714285714rem; overflow: auto; padding: 1.714285714rem; vertical-align: baseline;">INTERFACES="eth0"
HOTPLUG_INTERFACES="eth0"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"</pre>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
</div>
<div class="separator" style="clear: both; font-size: 14px; line-height: 1.714285714; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTUKGZuXpbhad8zFo2uERUyFAAJyL_45hlGBTuc5-bd6k3VhOnQ3icWqR14qXiOPjqOVQsIfrPH9zljzLurwOz-IZH1q9RHQ0C4Vjn-vOWxZHJYQli4nbAqwwyVMmL-r5RoC7xq9hAG5c/s1600/ap_pi_7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTUKGZuXpbhad8zFo2uERUyFAAJyL_45hlGBTuc5-bd6k3VhOnQ3icWqR14qXiOPjqOVQsIfrPH9zljzLurwOz-IZH1q9RHQ0C4Vjn-vOWxZHJYQli4nbAqwwyVMmL-r5RoC7xq9hAG5c/s400/ap_pi_7.jpg" height="400" width="235" /></a></div>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<div style="font-size: 14px; line-height: 1.714285714;">
ที่มา <a href="http://rpi.vypni.net/wifi-ap-rt5370-on-raspberry-pi/" style="line-height: 1.714285714;">http://rpi.vypni.net/wifi-ap-rt5370-on-raspberry-pi/</a></div>
<div style="font-size: 14px; line-height: 1.714285714;">
<a href="https://www.facebook.com/BooindyIt?ref=hl">https://www.facebook.com/BooindyIt?ref=hl</a></div>
<div style="font-size: 14px; line-height: 1.714285714;">
<br /></div>
<div>
<span style="font-size: 14px; line-height: 24px;"><a href="https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1">https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0&shelf_id=1</a></span></div>
</div>
ณกฤษณ์http://www.blogger.com/profile/10460932816614300127noreply@blogger.com0