OneDrive on Ubuntu

Onedrive is a CLI-based client that syncs quickly and easily with OneDrive. To install it, please follow the next steps:

1. Open Ubuntu terminal and update all existing packages:

sudo apt update

2. add PPA repository run the command mentioned below:

sudo add-apt-repository ppa:yann1ck/onedrive

3. install onedrive

sudo apt install onedrive

After doing this, you now need to authorize onedrive with Microsoft so it can access your account. Simply enter the following in the Terminal:

onedrive

And it will prompt you to visit the URL to get authorization.

Log in to your OneDrive account, and grant the app permission to access your account.

Once this is done, you will be presented with a blank white page. Copy the URL and paste it into the Terminal at the prompt.

This will complete the setting up. To start synchronizing OneDrive to your local folder, run

onedrive --synchronize
or 
onedrive --monitor

Howto KeyStore

  • Create a self-signed SSL Certificate using OpenSSL. SSL Certificate is a bit of code on your web server that provides security for your online communications. SSL certificate also contains identification information(i.e your organisational information).
openssl genrsa -des3 -out server.key 2048
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
  • Create .pem file => A .pem(Privacy Enhanced Mail) file is a container format that may just include the public certificate or the entire certificate chain (private key, public key, root certificates).
cat server.key > server.pem
cat server.crt >> server.pem
  • Create .pkcs12 file => A PKCS12(Public-Key Cryptography Standards) defines an archive-file format for storing server certificates, intermediate certificate if any and private key into a single encryptable file.
openssl pkcs12 -export -in server.pem -out keystore.pkcs12

Reference https://www.openssl.org/