우분투 18.04 Onedrive 설치

2297 단어 ubuntuubuntu
  1. 필요한 앱 설치
$ sudo apt install build-essential
$ sudo apt install libcurl4-openssl-dev libsqlite3-dev
$ sudo apt install pkg-config git
$ sudo apt install git
  1. 필요한 파일 다운로드
$ sudo wget https://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
$ sudo apt update --allow-insecure-repositories
$ sudo apt -y --allow-unauthenticated install --reinstall d-apt-keyring
$ sudo apt update && sudo apt-get install dmd-compiler dub
$ sudo snap install --classic dmd && sudo snap install --classic dub
  1. Repository 파일 복사 및 onedrive 폴더에 설치

$ git clone https://github.com/abraunegg/onedrive.git

  1. compile 및 install
$ cd onedrive
$ ./configure
$ make
$ sudo make install
  1. 실행 및 계정 접속 승인
    $ onedrive
  • 실행시 터미널에 나타나 링크 주소를 로컬에 있는 내 pc의 크롬 주소창에 붙여넣기 엔터
  • 원드라이브 로그인(ID/PASS) 후 거기서 나온 주소 URL을 다시 카피하여
  • 터미널 url: 뒤에 붙어넣기 엔터
  1. 로컬 동기화 폴더 생성, 설정파일 복사 및 이동 설정
$ mkdir -p ~/OneDrive
$ cp config ~/.config/onedrive/config
  1. 설정파일 확인, 필요시 편집
$ cd
$ onedrive --display-config
  1. 설정 편집시에는 아래 설정파일을 보고 조정
    예) 로컬 폴더에서 onedrive에 upload만 할 때
$ cd onedrive
$ sudo nano ~/.config/onedrive/config

아래처럼 upload_only를 활성화 하면서 false를 true로 수정
$ upload_only = "true"


  1. 동기화 및 모니터
$ onedrive --synchronize
$ onedrive --monitor

설정변경 후 재 동기화
$ onedrive --synchronize --resync

참조 :
https://github.com/abraunegg/onedrive
http://enjoystat.blogspot.com/2020/12/ubuntu-1804-microsoft-onedrive.html

좋은 웹페이지 즐겨찾기