Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No new code here, just some readme changes and a version bump. From now on I'm going to push updates to a testing branch before they make it back to the main repository. Keep an eye out for that if you're interested. Be warned that the testing branch might get code that's broken/incompatible sometimes. If you're worried about stability then stay on the master branch, which I'll only update after I've had a chance to test it as much as possible.
- Loading branch information
Showing
3 changed files
with
54 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Building ckb | ||
============ | ||
|
||
Linux | ||
----- | ||
|
||
You can build the project by running `./qmake-auto && make` in a Terminal inside the ckb-master directory. The binaries will be placed in a new `bin` directory assuming they compile successfully. If you get a `No suitable qmake found` error, make sure Qt5 is installed and up to date. You may have to invoke qmake manually, then run `make` on its own. If you have Qt Creator installed, you can open `ckb.pro` (when asked to configure the project, make sure "Desktop" is checked) and use `Build > Build Project "ckb" (Ctrl+B)` to build the application instead. | ||
|
||
#### Running as a service: | ||
|
||
First copy the binary and the service files to their system directories: | ||
|
||
* Upstart (Ubuntu, prior to 15.04): `sudo cp -R bin/* /usr/bin && sudo cp service/upstart/ckb-daemon.conf /etc/init` | ||
* Systemd (Ubuntu 15.04 and later): `sudo cp -R bin/* /usr/bin && sudo cp service/systemd/ckb-daemon.service /usr/lib/systemd/system` | ||
|
||
To launch the driver and enable it at start-up: | ||
|
||
* Upstart: `sudo service ckb-daemon start` | ||
* Systemd: `sudo systemctl start ckb-daemon && sudo systemctl enable ckb-daemon` | ||
|
||
Open the `bin` directory and double-click on `ckb` to launch the user interface. If you want to run it at login, add `ckb --background` to your Startup Applications. | ||
|
||
#### Running manually: | ||
|
||
Open the `bin` directory in a Terminal and run `sudo ./ckb-daemon` to start the driver. To start the user interface, run `./ckb`. Running the driver manually may be useful for testing/debugging purposes, but you must leave the terminal window open and you'll have to re-run it at every reboot, so installing it as a service is the best long-term solution. | ||
|
||
OSX | ||
--- | ||
|
||
Open ckb.pro in Qt Creator. You should be prompted to configure the project (make sure the "Desktop" configuration is selected and not iOS). Once it's finished loading, press `Cmd+B` or select `Build > Build Project "ckb"` from the menu bar. When it's done, you should see a newly-created `ckb.app` in the project directory. Exit Qt Creator. | ||
|
||
Alternatively, open a Terminal in the ckb-master directory and run `./qmake-auto && make`. It will detect Qt automatically if you installed it to one of the standard locations. You should see a newly created `ckb.app` if the build is successful. | ||
|
||
#### Running as a service: | ||
|
||
Copy `ckb.app` to your Applications folder. Copy the file [`service/launchd/com.ckb.daemon.plist`](https://raw.githubusercontent.com/ccMSC/ckb/master/service/launchd/com.ckb.daemon.plist) to your computer's `/Library/LaunchDaemons` folder (you can get to it by pressing `Cmd+Shift+G` in Finder and typing the location). Then open a Terminal and run the following commands to launch the driver: | ||
|
||
``` | ||
sudo chown root:wheel /Library/LaunchDaemons/com.ckb.daemon.plist | ||
sudo chmod 0700 /Library/LaunchDaemons/com.ckb.daemon.plist | ||
sudo launchctl load /Library/LaunchDaemons/com.ckb.daemon.plist | ||
``` | ||
|
||
After you're done, open `ckb.app` to launch the user interface. | ||
|
||
#### Running manually: | ||
|
||
Open a Terminal in the ckb directory and run `sudo ckb.app/Contents/Resources/ckb-daemon` to start the driver. Open `ckb.app` to start the user interface. Note that you must leave the terminal window open and must re-launch the driver at every boot if you choose this; installing as a service is the better long term solution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
alpha-v0.0.60 | ||
beta-v0.1 |