Skip to content

Installing Host Application

Ruslan Osmanov edited this page Oct 15, 2019 · 6 revisions

This section describes how to install the native messaging host application which acts as a proxy between the browser (extension) and the editor.

BeeCtl

Follow instructions on the main page of the repository.

Python Script

Use Python script if, for some reason, you can't or don't want to install BeeCtl. On macos, however, Python version is the only option.

Download the Project

Open a terminal emulator and run the following commands.

Prepare a directory for the project:

mkdir -p ~/src/chrome-bee
cd ~/src/chrome-bee

Download the project into the prepared (current) directory:

wget -q -O - https://github.com/rosmanov/chrome-bee/archive/master.tar.gz | \
  tar xzvf - --strip-components 1

Run Installation Script

Local Installation

In order to install the host application for the current user run the following command:

./host/install.sh ~/usr/lib/chrome-bee

Sample output:

Saved cache into /home/ruslan/src/chrome-bee/host/vars.cache.sh
Installed host application into '/home/ruslan/usr/lib/chrome-bee/beectl'
Installed Chrome manifest into '/home/ruslan/.config/google-chrome/NativeMessagingHosts/com.ruslan_osmanov.bee.json'
Installed Firefox manifest into '/home/ruslan/.mozilla/native-messaging-hosts/com.ruslan_osmanov.bee.json'

System-wide Installation

For system-wide installation run the following command on behalf of superuser (root), e.g.:

sudo ./host/install.sh /usr/local/chrome-bee

Sample output:

Saved cache into /home/ruslan/src/chrome-bee/host/vars.cache.sh
Installed host application into '/usr/local/chrome-bee/beectl'
Installed Chrome manifest into '/etc/opt/chrome/native-messaging-hosts/com.ruslan_osmanov.bee.json'
Installed Firefox manifest into '/usr/lib/mozilla/native-messaging-hosts/com.ruslan_osmanov.bee.json'

Clone this wiki locally