KumKeeHyun / raspi-cluster

Raspberry pi 4 4개를 이용해서 클러스터 환경을 공부하는 레포

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

군머에서 라파클러스터 접속하기

KumKeeHyun opened this issue · comments

다음 휴가엔 라파 세팅하고 오기

개발환경

  1. vscode를 쓰고 싶음
  2. remote-ssh 쓰면 싸작센으로 끌려감
  3. code-server를 라파에 올려서 웹으로 접속하는게 베스트
  4. arm64로 올려야 함

vscode-server arm64 도커 이미지 주소 -> 잘 돌아가는지는 모르겠음

공유기 ddns 설정

Screenshot_20210912-202030_Chrome
다운로드 링크
설치방법 링크
그냥 설치해도 될 것 같다

로컬 서버를 외부에서 접속할 수 있게 해주는 무료 서비스가 있다고 한다.
argo tunnel

웹 기반 terminal 사용하기

gotty

ssh를 사용 못한다? 오히려 좋아
http 감사하다

cd; mkdir gotty; cd gotty
wget https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_arm.tar.gz
tar -zxvf gotty_linux_arm.tar.gz
rm gotty_linux_arm.tar.gz
  1. /etc/systemd/system/위치에 .service 파일 작성
[Unit]
Description=Start Gotty Service - bash

[Service]
Type=simple
User=<username>
WorkingDirectory=<some/dir>

ExecStart=<some/exec/file>
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target
  1. systemd 등록 및 실행
systemctl enable .service // 등록
systemctl start .service // 실행
systemctl status .service // 상태보기

군머 싸지방에서 내 공유기로 접속을 못한다,,, argo 쓰기로함

대몬 실행파일 다운로드 링크

$ ./cloudflare tunnel --url localhost:8080