본문 바로가기

Tech116

rclone으로 Oracle Object Storage 사용하기 rclone이라는 오픈소스는 다양한 스토리지 EndPoint를 연결해서 로컬 디스크 처럼 마운트 할 수 있는 기능을 제공한다. 많은 사람들이 구글 드라이브를 연동해서 쓰지만, 지원하는 스토리지 중 오라클 클라우드의 Object Storage가 있어 서로 다른 VM에서 동일한 Object Storage를 연동하는 것을 테스트 해본다. 1. rclone www.rclone.org 위의 지원 가능 Storage에서 Oracle Cloud Object Storage를 선택하면 Swift항목으로 넘어가는데, 이 것은 Oracle Cloud Object Storage가 Openstack의 swift와 동일하게 사용할 수 있어서 swift api를 사용하면 되는 듯 하다. 하지만 Oracle Object Storag.. 2020. 5. 18.
Docker를 이용하여 Springer 책 다운 받기 COVID-19로 인해 Springer에서 400여권의 책을 무료로 배포 한다고 해서 Docker를 이용하여 손 쉽게 다운받아 본다. 1. 준비사항 ubuntu@ubuntu01:~$ git clone https://github.com/alexgand/springer_free_books.git ubuntu@ubuntu01:~$cd springer_free_books ubuntu@ubuntu01:~/springer_free_books$ ls Dockerfile LICENSE.txt README.MD helper.py main.py requirements.txt requirements2x.txt run_VirtualEnv.bat ubuntu@ubuntu01:~/springer_free_books$mkdir d.. 2020. 5. 11.
Mac에서 pygame 라이브러리에서 에러 날 때 pygame으로 간단한 게임을 만들어 보는 것을 해보다가 Mac에서는 제대로 화면에 표시가 안되는 문제가 있어 해결방법을 공유한다. 1. 문제점 Mac Catalina 10.15.4에서 python3로 설치된 pygame(1.9.6)에서 백그라운드 이미지를 로드 했지만 이미지가 로드 되지 않고 빈 화면만 나오는 문제 # load backgroud image backgroud = pygame.image.load("/Users/alex/background.png") # event loop running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False #screen.fill((0.. 2020. 5. 7.
Ubuntu 20.04에 Docker 설치 하기 Ubuntu 20.04가 4월말에 Release되고 난 뒤 오라클 클라우드에도 Image가 배포되어 생성해 보았다. 서버 버전이라 특별히 바뀐것은 잘 모르겠고, 제일 많이 쓰는 Docker를 설치해본다. 1. 서버 버전 확인 ubuntu@ubuntu01:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal 2. Docker 설치 ubuntu@ubuntu01:~$ sudo apt install docker.io Reading package lists... Done Building dependency tree Reading st.. 2020. 5. 5.