'NAS'에 해당되는 글 4건

  1. 2019.02.02 RPi - wifi connection
  2. 2019.02.01 How to installl openHAB in RPi 2
  3. 2016.11.22 VirtualBox
  4. 2015.12.30 Transmission daemon 실행 권한 변경-네이버펌글
posted by 그물에걸리지않는바람처럼 2019. 2. 2. 17:17

어쩌면 아래 이슈는 노트북의 USB 포트로 RPi 전원공급을 해서 발생한 문제일 수도 있겠다.

[ 2277.672282] Voltage normalised (0x00000000)

[ 2285.992401] Under-voltage detected! (0x00050005)

[ 2292.232369] Voltage normalised (0x00000000)

[ 2342.152389] Under-voltage detected! (0x00050005)

[ 2350.472387] Voltage normalised (0x00000000)

[16:50:27] root@openHABianPi:/sys/class/leds/led1#



문제는 RPi 에 인터넷 연결을 해주고 싶었다. 

Notebook 의 WiFi 를 도서관 AP 에 연결해서 인터넷을 사용하는중에 

LAN 포트를 RPi 와 연결해서 유선으로 RPi 에서 인터넷 서비스를 하고 싶었다 <--- 이게 원래 계획이었음.

아무리 노트북 설정을 수정해도 결국 성공하지 못해서 계획 변경 ㅠㅠ


RPi 에 Realtek WiFi Adapter(USB Dongle type) 을 연결해서 도서관 AP 에 직접 접속 시도.


아래의 상황처럼 아무리 접속을 시도해서 안됨. 



[16:31:31] root@openHABianPi:/home/openhabian# iwconfig wlan0

wlan0     unassociated  Nickname:"<WIFI@REALTEK>"

          Mode:Managed  Frequency=2.432 GHz  Access Point: Not-Associated

          Sensitivity:0/0

          Retry:off   RTS thr:off   Fragment thr:off

          Encryption key:off

          Power Management:off

          Link Quality:0  Signal level:0  Noise level:0

          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0

          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


[16:32:22] root@openHABianPi:/home/openhabian#



아래 부분을 수정해도 안됨. 


 This will work if you add these lines to the /etc/network/interfaces file:

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf


'NAS > openHAB' 카테고리의 다른 글

How to installl openHAB in RPi 2  (0) 2019.02.01
posted by 그물에걸리지않는바람처럼 2019. 2. 1. 17:04

reference site

https://www.openhab.org/docs/installation/openhabian.html


Setup:

You can stop reading now. openHABian has installed and configured your openHAB system and you can start to use it right away. If you want to get in touch with the system or want to install one of the previously mentioned optional features, you can come back here later.

Ready for more? Connect to your Raspberry Pi SSH console using the username openhabian and password openhabian. You will see the following welcome screen:

'NAS > openHAB' 카테고리의 다른 글

RPi - wifi connection  (0) 2019.02.02
posted by 그물에걸리지않는바람처럼 2016. 11. 22. 08:33

How to install Virtualbox in Ubuntu


1. sudo apt-get install build-essential

sudo apt-get install dkms

sudo apt-get install linux-headers-generic


2. get Virtual box

wget http://download.virtualbox.org/virtualbox/5.1.8/virtualbox-5.1_5.1.8-111374~Ubuntu~trusty_i386.deb



'NAS > pogo' 카테고리의 다른 글

Transmission daemon 실행 권한 변경-네이버펌글  (0) 2015.12.30
posted by 그물에걸리지않는바람처럼 2015. 12. 30. 22:36

데비안에서 트랜스미션을 설치하면 디폴트로 debian-transmission 사용자 권한으로

데몬이 실행됩니다.

따라서, 다운받은 파일의 권한도 debian-transmission 사용자 권한으로 됩니다..

이렇게 되면 파일을 옮기거나 변경할때 root권한이 아니면 상당히 불편 합니다.

그래서, 원하는 사용자 권한으로 데몬을 실행 시키는 방법입니다.


1. 데몬유저 변경

사용자 명이 pi고 사용자 그룹이 share인 경우를 가정하여 작성했습니다.

데몬 중단

service transmission-daemon stop


nano /etc/init.d/transmission-daemon

실행해서 보면

USER=debian-transmission 부분을 USER=pi로 변경합니다.

저장하고 나옵니다.


2. 트랜스 미션 관련 파일 권한 변경

 

chown pi:share /etc/transmission-daemon/settings.json

chown pi:share /etc/init.d/transmission-daemon

chown -R pi:share /var/lib/transmission-daemon/info

chown pi:share /var/lib/transmission-daemon/downloads

chown :share /etc/transmission-daemon

마지막은 그룹만 변경하는 것 입니다.


service transmission-daemon start

로 데몬이 정상적으로 실행되는지 확인합니다.

위와 같이 변경하면 앞으로 다운받는 파일은

pi유저의 share그룹으로 파일이 생성 됩니다..


'NAS > pogo' 카테고리의 다른 글

VirtualBox  (0) 2016.11.22