$ wget https://nodejs.org/dist/v12.14.1/node-v12.14.1-linux-armv7l.tar.xz 

$ tar -xvf *.xz

node-v12.14.1-linux-armv7l.tar.xz $ sudo cp -R * /usr/local/

 

다음에 node -v와 npm -v로 설치를 확인한다.

윈도우 우분투나 리눅스에서

$ ssh -t [user_id]@server_ip "sudo dd if=/dev/mmcblk0 | gzip -1 -" | dd of=image.gz

 

이라고 하면 현재 로컬 컴퓨터에 image.gz 파일이 생긴다.

다음글 참조

https://medium.com/@apbetahouse45/how-to-run-jupyter-notebooks-on-remote-server-part-1-ssh-a2be0232c533

 

How to run Jupyter Notebooks on remote server — Part 1 (SSH)

A simple way to run python code on remote machines through Jupyter Notebook interface.

medium.com

 

software 설치/제거 메뉴에서

1. jupyter interactive notebook 찾아서 설치
2. interactive computing environment (metapackage) 설치

 

3. 환경설정
$ jupyter notebook --generate-config

 

4. 암호설정
$ jupyter notebook password

Enter password: ****

Verify password: ****

[NotebookPasswordApp] Wrote hashed password to /Users/you/.jupyter/jupyter_notebook_config.json

 

5. 해시된 패스워드 준비

In [1]: from notebook.auth import passwd

In [2]: passwd()

Enter password:

Verify password:

Out[2]: 'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'

이 패스워드를 jupyter_notebook_config.py에 다음과 같은 항목에 넣는다.

 

c.NotebookApp.password = u'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'

 

일단 이렇게 하면 앞의 jason 파일은 확장자를 고치고( *.org 처럼) 없앤다.

 

6. SSL 접속을 위한 준비

$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mykey.key -out mycert.pem

이렇게 mykey.key, mycert.pem 2가지 파일을 만든다.

 

5. 외부접속을 위한 설정 파일 수정

.jupyter/jupyter_notebook_config.py를 수정

c.NotebookApp.allow_origin='*'
c.NotebookApp.allow_remote_access=True
c.NotebookApp.open_browser=False

c.NotebookApp.certfile = '/absolute/path/mycert.pem'

c.NotebookApp.keyfile = '/absolute/path/mykey.key'

c.NotebookApp.ip = '*'

c.NotebookApp.password = u'sha1:bcd259ccf...'

c.NotebookApp.open_browser = False

c.NotebookApp.port =8888

 

참고
1. https://jupyter-notebook.readthedocs.io/en/stable/public_server.html

2. https://m.blog.naver.com/seodaewoo/221710100262



'Raspberry Pi' 카테고리의 다른 글

원격 ssh로 라즈베리파이 sdcard 백업하기  (0) 2020.01.25
How to run Jupyter Notebooks on remote server — SSH  (0) 2020.01.21
라즈베리파이4  (0) 2020.01.17
라즈베리파이4 방열판 효과  (0) 2020.01.16
fail2ban  (0) 2020.01.15

1. noobs 인스톨

참고 : https://www.raspberrypi.org/downloads/noobs/

 

Download NOOBS for Raspberry Pi

Download NOOBS - our easy operating system installer which contains Raspbian, and contains everything you'll need to get started with your Raspberry Pi.

www.raspberrypi.org

2. 한글 설치

입력기및 폰트 설치

$ sudo apt-get install uim uim-byeoru fonts-unfonts-core

uim을 입력기로 세팅

$ im-config -n uim

리부팅하고

 

입력기 메뉴 세팅

1) 전체적인 설정에서 벼루를 디폴트 입력기로

2) 툴바 displayay를 never로

3) 입력기전환메뉴에서 uim입력기전환메뉴사용에 체크

4) 전체적인키설정 메뉴에서 제일 위에 2개를 빈칸으로

5) 벼루키설정1 메뉴에서 위의 2개를 자신 입맛대로

 

참고 : https://bluexmas.tistory.com/875

 

Raspberry PI : 한글 환경 설정, 한글 입력기(uim) 설치

출처 Lubuntu 14.04 IBus 한글 입력기 버그 때문에 UIM 로 교체 : 멈춤보단 천천히라도 Ubuntu 18.04 한글 입력기 UIM 설정하기 ~ My Programming Trend Report 날아라 MaraSong :: 라즈베리파이3 RaspberryPi3 -..

bluexmas.tistory.com

3. sshd setting

참고 :

https://www.raspberrypi.org/documentation/remote-access/ssh/

http://blog.naver.com/PostView.nhn?blogId=bieemiho92&logNo=220913512849

 

4. node.js install
5. ufw install
6. fail2ban install
7. nginx install

'Raspberry Pi' 카테고리의 다른 글

원격 ssh로 라즈베리파이 sdcard 백업하기  (0) 2020.01.25
How to run Jupyter Notebooks on remote server — SSH  (0) 2020.01.21
Jupyter notebook 설치  (0) 2020.01.18
라즈베리파이4 방열판 효과  (0) 2020.01.16
fail2ban  (0) 2020.01.15

라즈베리파이4는 발열이 심하고 별도의 냉각이 필요하다. 괴난 걱정이 아니고 실제로 스로틀이나 심지어 다운될 수도 있다

발열대책시 유의점 결론
1. 그냥 놔두면 안된다
2. 방열판을 붙인다.
3. 방열판 효과는 그냥 붙이기만 하면 사실상 거의 효과가 없다. 방열판은 반드시 냉각팬과 같이 가야 된다.
4. 아이스 쿨러처럼 타워형 쿨러는 확실히 성능이 더 뛰어나다.

결론 : 편의성까지 고려하면 방열판 + 일반쿨러 또는 쿨러가 장착된 케이스로 하는 것이 가장 좋은 선택인 것 같다.

'Raspberry Pi' 카테고리의 다른 글

원격 ssh로 라즈베리파이 sdcard 백업하기  (0) 2020.01.25
How to run Jupyter Notebooks on remote server — SSH  (0) 2020.01.21
Jupyter notebook 설치  (0) 2020.01.18
라즈베리파이4  (0) 2020.01.17
fail2ban  (0) 2020.01.15

install
$ sudo apt-get install fail2ban

$ sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local

이 파일에서 [sshd]를 찾아 다음 2줄을 추가한다
enabled = true
filter = sshd

다음 3줄도 추가

banaction = iptables-multiport
bantime = -1
maxretry = 3

참고
1. https://pimylifeup.com/raspberry-pi-fail2ban/


+ Recent posts