분류 전체보기(353)
-
[Ubuntu]자동실행
### ubuntu에서 프로그램 자동실행 방법 ### 1. rc.local에 script 추가 # sudo gedit rc.local (or sudo vi rc.local)'exit 0' 윗줄에 프로그램 실행 script 추가... echo "Start my program"cd /home/user/devsudo ./program exit 0 이 방법은 rc.local이 호출된 이후 프로그램 종료 전까지 root 계정에서 다른 작업이 불가함다른 계정으로 로그인 해도 느리게 동작하는 경우가 있음 2. process를 생성하여 rcN.d에 연결 Shell script 파일을 작성하여 /etc/init.d에 추가 (ref. /etc/init.d/skeleton)INIT INFO 작성시 참고 사항: 아래 두 조건..
2017.12.13 -
메모리 초기화
GC.Collect();GC.WaitForPendingFinalizers();
2017.11.24 -
[Ubuntu] 네트워크 상태 확인
ifconfig -s , netstat -i B = A broadcast address has been set.L = This interface is a loopback device.M = Supports multicastO = ARP is turned off for this interface.P = This is a point-to-point connection.R = Interface is running.U = Interface is up.
2017.11.21 -
[Ubuntu] 시간동기
시각 동기 시각 동기에는 rdate, ntpdate 두가지가 있다. 여기서 rdate는 udp 37번 포트를 사용하고 ntpdate는 udp 123번 포트를 사용한다. 만약에 123번을 포트를 제외한 나머지 포트가 막혀 있거나 123번 포트만 제공한다면 ntpdate로 접속을 시도하는것이 맞다.
2017.11.13 -
[Windows] Windows Startup
윈도우 8이상부터 시작프로그램 위치가 어딘지 모르겠다. 그냥 커맨더로 입력해서 들어가자. shell:startup
2017.11.13 -
[Monodevlop] Pin 상태 Event 받기
1. 개요. Pin 정보를 수신하다가 보면 주기적으로 Read하는 방법도 있지만 상태값이 변경되었을 경우 받는 방법이 있다. 변경시 데이터 수신 받는 방법을 알아본다. 2. 변수 지정 ● 전역변수 static InputPinConfiguration in=ConnectorPin.P1Pin40.Input();static GpioConnection connection=new GpioConnection(in); ● 함수 지정public void GPIOREAD(){connection.PinStatusChanged += (sender, EventArgs) =>{try{if(EventArgs.Configuration.Pin==case ConnectorPin.P1Pin40.ToProcessor()){//40번 Pin..
2017.10.17