19 ธ.ค. 2560

Setup Ubuntu To Router/Firewall/Gateway/DHCP/DNS

วันนี้เราจะมาทำการเปลี่ยนจาก Ubuntu Server ธรรมดาให้กลายเป็น Gateway สู่โลก internet ครับ โดยในที่นี้ Gateway ของเราจะครบถ้วนมาก เป็นทั้ง DHCP Server, DNS Server(Forward DNS Server), Firewall ในตัวทีเดียวเลยครับ
โดยในที่นี้ Ubuntu Server ของเราจะมี 2 ขาด้วยกัน
  • eth0 – ขา Internal Network (LAN)
  • eth1 – ขา External Network (WAN) ต่อออก internet

1 พ.ค. 2560

FIX Bug Ubuntu 16.04 SSH Algorithm negotiation failed

  1. Use a different system or the console to drop to a shell. Such as Putty
  2. Chmod 777 & Edit the “/etc/ssh/sshd_config” file
  3. Add all of the algorithm negotiation to sshd_config
  4. Restart sshd sevice
    Add following code to sshd_config
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc

MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org

24 เม.ย. 2560

Kml2x (kml export tool)

http://www.zonums.com/online/kml2x/

Laravel 5 ขึ้น Hosting

วิธีการอัพ laravel5 ขึ้นโฮสนั้นไม่ยากครับ แต่มันจะมีส่วนที่ต้องแยกออกจากกัน ไม่ได้อัพลงไปทีเดียวจบ
มาดู File Directory กันก่อน ซึ่งมันมีเยอะมาก ถึงมากที่สุด ทำให้อัพขึ้นช้ามากมาย
โดยปกติแล้ว Directory ก็จะเป็นลักษณะนี้นะครับ แต่การจะอัพ laravel ขึ้นไปนั้น จะต้องแยก directory ของ laravel ออกเป็น 2 ส่วน แบบนี้
– Public Folder
– อื่นทั้งหมด

Install Webserver Apache, PHP, MySQL And phpMyAdmin On Ubuntu Server 12.04 LTS

#sudo apt-get install apache2
#sudo apt-get install php5
#sudo apt-get install mysql-server
#sudo apt-get install php5-mysql
#sudo apt-get install phpmyadmin

25 ม.ค. 2560

How To Install Laravel 5 Framework on Ubuntu 12.04 LTS

Credit : This article is copied from http://tecadmin.net/

Step 1 – Install LAMP

To start with Laravel, we first need to set up a running LAMP server. If you have already running LAMP stack skip this step else use followings commands to set up lamp on Ubuntu system.

Install PHP 5.6

$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install -y php5.6 php5.6-mcrypt php5.6-gd

Install Apache2

Laravel 5.3 - import export csv and excel file into database

Credit : This article is copied from http://itsolutionstuff.com/
Step 1: Install Laravel 5.3 Application
In this step, if you haven't laravel 5.3 application setup then we have to get fresh laravel 5.3 application. So run bellow command and get clean fresh laravel 5.3 application.
composer create-project --prefer-dist laravel/laravel blog
Step 2: Install Package

Laravel 5 - generate PDF from html view file and download using dompdf

Credit : This article is copied from http://itsolutionstuff.com/
Step 1: Installation
In first step we have to download laravel-dompdf plugin for generate pdf file from view blade file. So first run bellow command in your terminal:
composer require barryvdh/laravel-dompdf
Now open config/app.php file and add service provider and aliase.

9 ม.ค. 2560

มุด tor

คัดลอกมาจากเว็บ https://www.unzeen.com/article/3361/  ของคุณ Mr.Khwanchai Kaewyos (LookHin)

เพื่อเก็บบันทึกไว้