ESP-OPEN-SDK Github

https://github.com/pfalcon/esp-open-sdk


맥 환경에서 Esp8266 개발환경 구축하기

http://tuanpm.net/esp8266-development-kit-on-mac-os-yosemite-and-eclipse-ide/


COULDN'T INSTALL THE TOOLCHAIN ON MY MAC BOOK.

http://www.esp8266.com/viewtopic.php?p=21833

https://github.com/pfalcon/esp-open-sdk/issues/45


gsed -i '1s/^/#include <stddef.h>\n/' crosstool-NG/.build/src/gcc-4.8.2/gcc/graphite.c 

gsed -i '1s/^/#include <stddef.h>\n/' crosstool-NG/.build/src/gcc-4.8.2/gcc/graphite-blocking.c 

gsed -i '1s/^/#include <stddef.h>\n/' crosstool-NG/.build/src/gcc-4.8.2/gcc/graphite-clast-to-gimple.c

gsed -i '1s/^/#include <stddef.h>\n/' crosstool-NG/.build/src/gcc-4.8.2/gcc/graphite-dependences.c 

gsed -i '1s/^/#include <stddef.h>\n/' crosstool-NG/.build/src/gcc-4.8.2/gcc/graphite-interchange.c 

gsed -i '1s/^/#include <stddef.h>\n/' crosstool-NG/.build/src/gcc-4.8.2/gcc/graphite-optimize-isl.c 

gsed -i '1s/^/#include <stddef.h>\n/' crosstool-NG/.build/src/gcc-4.8.2/gcc/graphite-poly.c 

gsed -i '1s/^/#include <stddef.h>\n/' crosstool-NG/.build/src/gcc-4.8.2/gcc/graphite-scop-detection.c 

gsed -i '1s/^/#include <stddef.h>\n/' crosstool-NG/.build/src/gcc-4.8.2/gcc/graphite-sese-to-poly.c



윈도우 환경에서 Esp8266 개발환경 구축하기

http://www.esp8266.com/viewtopic.php?t=820


Instructions for installing and configuring the Unofficial Development Kit for Espressif ESP8266:
1. To download the Windows (145Mb) and install my Unofficial Development Kit for Espressif ESP8266.
2. Download and install the Java Runtime x86 (jre-7uXX-windows-i586.exe)
3. Download and install Eclipse Mars x86 to develop in C ++ (eclipse-cpp-mars-R-win32.zip). Unpack the archive to the root of drive C.
4. Download and install MinGW. Run mingw-get-setup.exe, the installation process to select without GUI, ie uncheck "... also install support for the graphical user interface".
5. Download the (84Mb) my scripts to automate the installation of additional modules for MinGW.
6. Run from my file install-mingw-package.bat. He will establish the basic modules for MinGW, installation should proceed without error.
7. Start the Eclipse Luna from the directory c:\eclipse\eclipse.exe
8. In Eclipse, select File -> Import -> General -> Existing Project into Workspace, in the line Select root directory, select the directory C:\Espressif\examples and import work projects.
Further, the right to select the Make Target project, such as hello-world and run the target All the assembly, while in the console window should display the progress of the build. To select the target firmware flash.




Project Unofficial Development Kit for Espressif ESP8266

http://programs74.ru/udkew-en.html


참조할만한 Esp8266 프로젝트 Github

https://github.com/CHERTS


'ESP8266' 카테고리의 다른 글

Install mosquitto on mac os x  (0) 2015.12.10

A Byte of Python

http://byteofpython-korean.sourceforge.net/byte_of_python.pdf


Python 선 그래프 그리기

http://sijoo.tistory.com/133



http://php.net/manual/kr/language.oop5.php


'PHP' 카테고리의 다른 글

Aptana Studio에 SVN 설치하기  (0) 2015.11.13


http://lifeofcoding.com/2015/01/19/How-to-increase-Android-studio-memory-limit-in-Mac/

참조 : http://denodo1.tistory.com/149


neli 접속 방법

putty 접속시

ip: ec2-54-199-221-176.ap-northeast-1.compute.amazonaws.com

pw: leadweb123456

ssh key: neli_ssh.ppk


securecrt 접속시 

ssh key: neli_ssh_securecrt_Identity



구동정보

tomcat7 

시작: sudo service tomcat7 start
종료: sudo service tomcat7 stop

웹: http://ec2-54-199-221-176.ap-northeast-1.compute.amazonaws.com:8080/manager/status

admin/leadweb123456

mysql

시작: sudo service mysqld start
종료: sudo service mysqld stop


neli

http://ec2-54-199-221-176.ap-northeast-1.compute.amazonaws.com:8080/neli/

/usr/share/tomcat7/webapps/neli


설치순서

AMI t1.micro로 기본 설치 
ssh -i neli_ssh.pem ec2-user@54.199.215.255 접속

한국시간으로 변경 ('AWS 한국시간 변경 참조')


Timezone ?

리눅스를 새로 설치하고 나면 (AWS EC2 AMI도 Linux와 동일) 시간대(Timezone)을 맞추지 않으면, 리눅스의 date가 미국 태평양 시간인 PST로 표시됩니다. 즉 캘리포니아 현지 시간으로 표시됩니다. 이럴경우 한국 표준시인 KST로 변경해주어야 합니다.


Timezone 변경

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[ec2-user@ip-172-31-7-180 ~]$ date
Fri Aug  8 06:41:49 UTC 2014
 
[ec2-user@ip-172-31-7-180 ~]$ sudo date
Fri Aug  8 06:42:01 UTC 2014
 
[ec2-user@ip-172-31-7-180 ~]$ sudo cat /etc/localtime
TZif2UTCTZif2UTC
UTC0
 
[ec2-user@ip-172-31-7-180 ~]$ sudo rm /etc/localtime
 
[ec2-user@ip-172-31-7-180 ~]$ sudo ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
 
[ec2-user@ip-172-31-7-180 ~]$ date
Fri Aug  8 15:48:27 KST 2014
 
[ec2-user@ip-172-31-7-180 ~]$ sudo date
Fri Aug  8 15:48:40 KST 2014


oracle java 설치 ('AWS 설치 – TimeZone 및 Java 설치')
yum install tomcat7 tomcat7-webapps tomcat7-docs-webapp tomcat7-admin-webapps

sudo service tomcat7 start
sudo service tomcat7 stop
http://ec2-54-199-221-176.ap-northeast-1.compute.amazonaws.com:8080/

yum install mysql-server

sudo service mysqld start
sudo service mysqld stop

mysql_secure_installation

모두 Y

mysql 초기 셋팅
mysqlworkbanch 접속

ssh key 는 .pem 파일 선택

http://www.youtube.com/watch?v=pZFSSVVdqmw

iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

https://console.aws.amazon.com/ec2/v2/home?region=ap-northeast-1#


AWS 접속

https://console.aws.amazon.com/ec2/v2/home?region=ap-northeast-1#

AWS 기본설치

http://www.kimjmin.net/2014/01/aws_1/

AWS 한국시간 변경

sudo vi /etc/profile

TZ=Asia/Seoul
export TZ
source /etc/profile
date


AWS 접속방법(상세)

기본: ssh -i neli_ssh.pem ec2-user@54.199.215.255

puttygen 으로 pem 파일을 로드하여 pub, ppk 파일을 만든다. 
자동으로 ppk 파일이 서버의 .ssh/authorized_keys 파일에 복사 된다.

securecrt에서 create public key를 클릭 pub 파일을 만든다. (DSA 선택)
해당 파일을 AWS에 복사후 
※ssh-keygen -i -f ./Identity.pub >> .ssh/authorized_keys
하기 명령을 공개키를 authorized_keys에 등록 해준다.

암호: leadweb123456

AWS tomcat, mysql 설치

http://coenraets.org/blog/2011/11/set-up-an-amazon-ec2-instance-with-tomcat-and-mysql-5-minutes-tutorial/

mysql 까지 설치가 완료되면,

sudo service mysqld start

위 service로 mysql 구동 하여준다

 그리고mysql의 root 계정 패스워드를 초기화 해주어야 한다

(처음엔 password가 지정되어 있지 않으므로

> mysql -u root

로 접속하면 된다)

접속한 뒤 아래와 같이 비밀번호를 셋팅 해준다


Method 2 - Update or change password

MySQL stores usernames and passwords in the user table inside the MySQL database. You can directly update a password using the following method to update or change passwords:

1) Login to the MySQL server, type the following command at the shell prompt:


$ mysql -u root -p


2) Use the mysql database (type commands at the mysql> prompt):


mysql> use mysql;


3) Change password for a user:


mysql> update user set password=PASSWORD("newpass") where User='ENTER-USER-NAME-HERE';


4) Reload privileges:


mysql> flush privileges;
mysql> quit



AWS 설치 – TimeZone 및 Java 설치

http://www.kimjmin.net/2014/01/aws_2/


mysql 초기 셋팅

[root@ip-172-31-17-71 bin]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.5.34 MySQL Community Server (GPL)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database neli
-> ;
Query OK, 1 row affected (0.00 sec)

mysql> use neli;
Database changed
mysql> create table test (
-> id integer not null auto_increment,
-> name varchar(255) not null,
-> body text not null,
-> primary key(id)
-> );
Query OK, 0 rows affected (0.03 sec)

mysql> create user 'neli_user'@'localhost' identified by 'leadweb123456';
Query OK, 0 rows affected (0.00 sec)

mysql> grant all privileges on neli.* to 'neli_user'@'localhost';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye
[root@ip-172-31-17-71 bin]#


mysql 인코딩 설정

$ vi /etc/my.cnf


[mysql]

default-character-set = utf8


[mysqld]

character-set-client-handshake=FALSE

init_connect="SET collation_connection = utf8_general_ci"

init_connect="SET NAMES utf8"

default-character-set = utf8

character-set-server = utf8

collation-server = utf8_general_ci


datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

user=mysql

# Disabling symbolic-links is recommended to prevent assorted security risks

symbolic-links=0


[client]

default-character-set = utf8


[mysqldump]

default-character-set = utf8


[mysqld_safe]

log-error=/var/log/mysqld.log

pid-file=/var/run/mysqld/mysqld.pid



그리고 재시작 
$ service mysqld restart 
Stopping MySQL: [ OK ] 
Starting MySQL: [ OK ] 

이제 최종적으로 status를 통해 서버와 mysql의 인코딩이 통일 되었는지 확인해보자 .

mysql> status
--------------
mysql  Ver 14.14 Distrib 5.1.61, for redhat-linux-gnu (x86_64) using readline 5.1

Connection id:          8
Current database:
Current user:           root@localhost
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         5.1.61 Source distribution
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    utf8
Db     characterset:    utf8
Client characterset:    utf8
Conn.  characterset:    utf8
UNIX socket:            /var/lib/mysql/mysql.sock
Uptime:                 27 min 16 sec

Threads: 1  Questions: 52  Slow queries: 0  Opens: 23  Flush tables: 1  Open tables: 11  Queries per second avg: 0.31
--------------

mysql> show variables like 'c%' ;


1. 소스 내려받기 checkout(= co)


로컬주소(=작업 사본)와 저장소주소 확인

- 로컬주소가 없으면 생성하고 저장소주소에 있는 파일들을 가져온다.

- svn을 처음 설치할 때 사용

- 로컬주소를 생략하면 현재 위치가 로컬주소가 된다.

svn checkout 저장소주소 로컬주소


svn  checkout  {저장소주소}  {로컬주소}


# svn co svn://127.0.0.1/저장소주소

# svn checkout svn://127.0.0.1/저장소 주소




2. 프로젝트 import


전체 파일 업로드

- 서버(svn 저장소주소)에 파일을 업로드 한다.

- 저장소 주소에 업로드 할 디렉토리 (파일을 지정하면 오류가 발생한다.

- 저장소 주소에 처음으로 파일을 업로드 할 때 한번만 사용


svn  import  {업로드할 디렉토리}  {저장소 주소}


# svn  import   /svn/tmp  svn://127.0.0.1/myproject/trunk




3. 소스 최신 버전으로 업데이트

svn upate

#svn update
#svn up




4. 소스 차이점 비교


svn  diff


# svn diff

# svn diff -r 4 (리비전 4와 비교)
# svn diff -r test.c (리비전 4의 test.c 파일의 변경 사항 로그 보기)



5. 소스의 리비전 로그 보기


svn log


# svn log

# svn log -r 4 (리비전 4의 변경사항 로그 보기)

# svn log -r 4 test.c (리비전 4의 test.c파일의 변경사항 로그 보기)

# svn log -r 4:5 (리비전 4~5의 변경사항 로그 보기)




6. 파일 export 하기


* 체크아웃과는 달리 버전 관리 파일들을 뺀 순수한 소스 파일을 받아옴.

svn   export  {저장소 주소}


# svn export http://127.0.0.1/svn/myproject





7. 새로운 파일 추가하기


* 실제 변경사항은 커밋시에 적용됨.

svn add newfile.c





8. 새로운 디렉토리 만들기


* 실제 변경사항은 커밋시에 적용됨.

svn mkdir newdir





9. 파일/디렉토리 삭제하기


* 실제 변경사항은 커밋시에 적용됨.

svn delete[del, rm, remove] newfile.c





10. 파일 이동하기


* 실제 변경사항은 커밋시에 적용됨.

svn move[mv] test.c ./src/




11. 파일 리스트 확인하기


svn list

svn list http://192.168.0.128/svn/sandbox/trunk




12. 이전 작업들 되돌리기


* 커밋전의 작업내용들을 되돌림. 커밋 후에는 되돌릴 수 없음.

svn revert (현재 디렉토리의 작업들 되돌리기)

svn revert newdir (newdir에 작업했던 내용들 되돌리기)




13. 소스 파일에 작업한 내용 확인하기


* 한 소스파일을 대상으로 각 리비전에 대해서 어떤 행을 누가 수정했는지 알아보기 위한 명령.

* 출력 순서는 리비전, 커밋한 사용자의 ID, 소스 순임.


svn blame test.c

svn blame -r 4 test.c




14. 파일 이름 변경하기


* 실제 변경은 커밋시에 적용 됨.

svn  rename  test.c  sample.c




15. 소스 서버 변경하기

svn  switch  --relocate   {이전주소}   {새로운주소}




참조 : 

http://stormaa.tistory.com/122

http://okkks.tistory.com/988




Help -> Install New Software.. 로 들어가서


주소 입력 : http://subclipse.tigris.org/update_1.8.x/


Subclipse 에서 아래의 두 항목을 체크 해제한다.

  • Subclipse Integration for Mylyn 3.x (Optional)
  • Subversion Revision Graph






'PHP' 카테고리의 다른 글

클래스와 객체  (0) 2015.11.26

+ Recent posts