6월, 2015의 게시물 표시

리눅스, 라즈비안, 라즈베리파이 부팅 시 자동실행(linux auto run on boot)

펌) 라즈베리파이(라즈비안) 부팅 시, 프로그램 자동실행 등록하기 안녕하세요 산딸기마을 이장 나무꾼 입니다.  오늘은 많은 분들이 원격접속(ssh,tightvncserver,xming ETC…)을 이용하여 파이를 이용하실 텐데요.  매번 vncserver 명령어를 입력하지 않고, 부팅과 함께 자동으로 vncserver 가 실행될 수 있도록 라즈베리파이에 자동실행등록 법을 정리 해 봤습니다.    0. 라즈비안(리눅스) 프로그램 자동등록 실행 이란 ? 라즈비안(리눅스)에는 부팅 시, 자동등록 설정을 해주는 설정파일 등록방법과 명령어를 이용해 등록을 하는 두 가지가 존재하고 있다.  a. /etc/rc.local 환경설정 수정 위 파일 내에 실행 명령어를 추가하여 부팅 시에 실행이 될 수 있도록 설정하는 방법 b. update-rc.d 명령어 별도의 등록 스크립트를 코딩하여, 부팅 시에 등록된 프로그램이 실행 될 수 있도록 설정하는 방법 1. /etc/rc.local 환경설정 수정 등록하기   그럼 예시로 라즈비안 Remote 프로그램 중 하나인 tightvncserver 를 /etc/rc.local 파일 내에 등록하여, 자동실행이 되도록 해 보자. pi@rasplay ~ $ sudo  nano /etc/rc.local   편집기(nano,vi,vim ETC… ) 프로그램을 이용하여, ‘rc.local’ 환경설정 파일을 열면 아래와 같은 내용이 보일 것이다 이 중 추가해 주어야 하는 라인은 ‘fi’ 와 ‘exit 0′ 사이에 본인이 실행하고자 하는 프로그램 실행 명령어를 입력 후, 저장을 하고 재 부팅을 시동하여 테스트를 해 보자. #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will “exit 0″ on success
이미지
    Windows 7 + Linux Samba sharing problem - ERRnomem  REF : http://www.dedoimedo.com/computers/windows-7-samba-errnomem.html protocol negotiation failed: ERRDOS:ERRnomem Updated: November 2, 2012 The situation you are facing is like this: You have successfully used Samba sharing in Linux to access Windows XP shares on your local network. It worked without any problems, including by name and/or IP address. You could open the shares and write to them. Since migrating to Windows 7, you are seeing a weird problem. Your Samba sharing no longer works. In Nautilus, you get a very generic error that says: failed to access share. You are not a clueless user and you know all about permissions, firewall and all that. To make the situation worse, the sharing might work on some Windows 7 boxes, but not on others. So you feel worried and think what to do next. You hi