VoIP, Linux, Security & much more fun
If you need any help regarding these subjects do not hesitate about sending me a text

If you do not know, I have been contributing for Mageia since the beginning of this awesome distribution. As a system administrator, one of my biggest concerns is having an easy and repeatable deployment method, hence I am an RPM fan. I have published in the More RPM'ss for Mageia project the RPM SPEC with some source definitions. For those who wonder why here and not in the main distribution, it is simple. This is not an open source project and the way it works, it violates many RPM policies. So, I prefer saving the Mageia team rejection and publish it as an alternative.

Some quick directions how to produce the RPM yourself. I will assume you are familiar with RPM and Linux command line:

  1. create your rpm directory mkdir ~/rpmbuild/gunbot/{SPECS,SOURCES}
  2. download the proper SPEC and SOURCE from the More RPM's for Mageia GitHub page. Put them inside proper directories
  3. download gunbot zipball from Gunbot GitHub page. Put the zipball inside SOURCES directory
  4. the SPEC file is configured for release 3.3.2, but if there is a new release, edit the SPEC to meet the file names
  5. from the ~/rpmbuild/gunbot directory, run bm -la. This command will produce the SRPM and the RPM for you
  6. install with urpmi the final RPM

This SPEC could work out of the box for CentOS 7. But I haven't tried it. Since I got my trading server with Mageia I do not have the need to do it.

The RPM will put things under /opt/gunbot/. There will be a systemd unit available. For example, if you are going to trade the pair BTC_ETH under Poloniex, do the following:

  1. create your poloniex-BTC_ETH-config.js file and save it under the /opt/gunbot/ directory.
  2. make sure the user gunbot will have reading privileges, you can do this with the chown gunbot.gunbot poloniex-BTC_ETH-config.js command. Usually, you do not need to do this.
  3. verify that the /opt/gunbot/ directory has write privileges for the gunbot user. The RPM will do this for you, but just in case.
  4. enable the system unit by typing systemctl enable gunbot@poloniex-BTC_ETH
  5. start it by typing systemctl start gunbot@poloniex-BTC_ETH

Enjoy your trading!

blog comments powered by Disqus
If you need more help than the free one provided here...