How to install Rentomy


Requirements


To install Rentomy you'll need at least a minimal installation of RedHat/CentOS version 7 Linux operating system and an internet connection.

Rentomy is written in C using Cloudgizer.

First you'll install Cloudgizer (if you don't have it already) and then install Rentomy application.

Install Cloudgizer

Create Cloudgizer application user

Create cld user to host Cloudgizer applications. Login as root before proceeding:


su -


Create a cld user and set password:


useradd cld
passwd cld


When prompted, enter your password twice.

Add sudo capability to this user:


usermod -aG wheel cld


In order to get the source code for Cloudgizer, install git:


yum -y install git

Install Cloudgizer


Login as cld user:


su - cld


Get source code into a new directory:


mkdir -p src
cd src
git clone https://dasoftver@bitbucket.org/dasoftver/cloudgizer.git .


If you need a particular version, for example version 1.2, specify it instead of the above (to see a list of available versions, use git tag):


git clone --branch 1.2 https://dasoftver@bitbucket.org/dasoftver/cloudgizer.git .


Next setup the environment and dependencies.

The MariaDB database setup utility will first setup root database password. In here root_pwd is used - use your own password instead. Press Enter to other questions. Note that MariaDB setup may change so the answers may vary.

For Postfix setup, enter web domain of your server (for example myserver.com or localdomain) and web address (for example dev.myserver.com or localhost.localdomain).


sudo ./setup_env
sudo ./setup_maria
sudo ./setup_postfix


Install the Cloudgizer installer:


./setup_cld


Cloudgizer is now installed.

To test the installation, type:


cld


You should see Cloudgizer help page.

Create Rentomy installer


Login as cld user and get the source code for the Rentomy application:


cd $HOME
mkdir -p rentomy_src
cd rentomy_src
git clone https://dasoftver@bitbucket.org/dasoftver/rentomy.git .


If you need a particular version, for example version 1.2, specify it instead of the above (to see a list of available versions, use git tag):


git clone --branch 1.2 https://dasoftver@bitbucket.org/dasoftver/rentomy.git .


Create database objects. We will assume root mariaDB password is root_pwd - substitute for your root password:


mysql -u root -proot_pwd


Execute this in mariaDB shell - we will assume newly created user will have password pwd - substitute for your desired password:


create database rentomy;
use rentomy;
create user rentomy;
set password for rentomy=password('pwd');
grant select,insert,update,delete on rentomy.* to rentomy;
source create.sql


Edit .db file (for example vi .db) to have only the four lines in it (substitute pwd for the same password as above):


localhost
rentomy
pwd
rentomy


Set proper permissions on this file:


chmod 600 .db


Create the Rentomy installation file:


cldpackapp
cp rentomy.tar.gz ~


This will create file rentomy.tar.gz in the home directory which you can use to install Rentomy on any machine that has Cloudgizer installed - see the following.

Install Rentomy


First unpack the rentomy.tar.gz file (see above on how to create it):


cd ~
sudo rm -rf deploy
tar xvfzm rentomy.tar.gz
cd deploy


Edit file appinfo. Assuming your email address is youremail@somewhere.com, your server name is yourserver.com, root database password is root_pwd, and the password for new database to be created is example_pwd, set the following variables.

Note that your email address will be the Administrative account. Once installed, you can create a new user with this email address and then sign in as a Rentomy Administrator.

DO_PREREQ is set to "yes" if you want dependency software to be installed - if you're upgrading set it to "no" unless instructed otherwise. Also set PRODUCTNAME, COMPANYWEBSITE and COMPANYNAME to reflect your product name, your web site and your company name:


...
export CLD_SERVER="http://yourserver.com"
...
export CLD_EMAIL="youremail@somewhere.com"
...
export CLD_DB_ROOT_PWD="root_pwd"
...
export CLD_DB_APP_PWD="example_pwd"
...
export PRODUCTNAME="myproduct"

export COMPANYWEBSITE="www.myproduct.com"

export COMPANYNAME="mycompany"

export ISDEMO="no"

export DO_PREREQ="yes"


Install Rentomy:


cldgoapp create


If you want to re-install, you must edit appinfo and supply the passwords again.

Start using Rentomy


The link to sign-up is displayed at the bottom of installer output. It looks like this:


https://yourserver/go.rentomy?page=create_user


You can put this link on your web site for manager sign-up.

Learn more

Check out Rentomy documentation to learn more, such as how to access the Administrator console, setup a backup system, use demo mode, setup links to sign-in and page with available properties, setup Terms of Service and Privacy Policy etc.