SimpleInvoices Deployment Screenshots: Difference between revisions

From Proxmox VE
Jump to navigation Jump to search
(archive)
 
(19 intermediate revisions by one other user not shown)
Line 1: Line 1:
==Prerequisites==
==Prerequisites==
A working ProxMoxVE install (v1.4 used here but should work on 1.3 / 1.5 as well). No Intel-VT or AMD-V chip required as only OpenVZ will be used. Must be 64-bit Machine, though will work on 32-bit machine with custom install discussed elsewhere.
A working ProxMoxVE install (v1.4 used here but should work on 1.3 / 1.5 as well). No Intel-VT or AMD-V chip required as only OpenVZ will be used. Must be 64-bit machine, though will work on 32-bit machine with custom install discussed [[Install Proxmox VE on Debian Lenny on 32-Bit Processor|elsewhere]].


==Host Login==
==Host Login==
Line 8: Line 8:


==Appliance Templates==
==Appliance Templates==
We then choose to list the Appliance Templates o that we can download the SimpleInvoices OpenVZ ProxMox Template into the Host system.
We then choose to list the Appliance Templates so that we can download the SimpleInvoices OpenVZ ProxMox Template into the Host system.


[[File:SI-ProxMox002.jpg]]
[[File:SI-ProxMox002.jpg]]
==Download SI Appliance Template==
Choose the '''[[Media:SI-ProxMox00.jpg|Download]]''' tab on the right hand pane of the Appliance Templates page.
[[File:SI-ProxMox004.jpg]]
If the SimpleInvoices Template does not show up (normally under the '''www''' section), then you will either have to manually download it from the direct link shown in the [[SimpleInvoices|SI Wiki page]] under '''Appliance Details''' -> '''Location''' into your '''/var/lib/vz/template/cache''' folder in the ProxMoxVE Host or append the contents of the '''[http://www.acollege.com.files/appliances/apm-available this file]''' to '''/var/lib/pve-manager/apl-available''' file in the ProxMoxVE Host and then refresh the page shown in this screenshot and then download from within this GUI. Please note that the said '''apl-available''' file will be overwritten each day and each re-boot as Headquarters controls the default display of downloadable templates.
On completing the template download, the Local tab in the Appliance Templates pane, will see that the SimpleInvoices Template is '''[[Media:SI-ProxMox005.jpg|listed]]''' as available for deployment.
==Creating the SI Virtual Machine==
Selecting the '''Virtual Machines''' menu link on the left menu and choosing the '''Create''' tab on the right pane, we now select the SimpleInvoices Template.
[[File:SI-ProxMox006.jpg]]
We have assumed 192.168.150.75 as the ProxMoxVE Host machine's IP, the upline router / gateway IP as 192.168.150.1 and have decided to allot 192.168.150.11 as the IP for the SimpleInvoices Virtual machine (OpenVZ Guest VM - si.local.net). After filling in the details, we click the '''create''' link at the bottom and we're done.
[[File:SI-ProxMox007.jpg]]
==Created SI Virtual Machine==
On successful completion of SI VM creation we see the following:
[[File:SI-ProxMox008.jpg]]
== Start the SI VM==
We choose the List tab in the right pane of the Virtual Machines left menu link and choose to Start the SI Virtual machine.
[[File:SI-ProxMox009.jpg]]
On starting the SI Virtual Machine, we see the following options (clicking on the VM row will yield other useful info like startup logs and other menu choices):
[[File:SI-ProxMox010.jpg]]
==Using the VM Console from within the Host (aka VNC)==
By choosing the Console in the screenshot above, we get a SSH terminal where we can issue Linux console commands. This is the console of the SI Virtual Machine and has root access stepping in through VNC from the ProxMoxVE Host machine. The default admin folder is set to '''adminT99''' - you can alter it to what you want from the console GUI thus:
mv /var/www/simpleinvoices/adminT99 /var/www/simpleinvoices/my_secret_admin_folder_name
It can also be renamed using an FTP client.
Any settings that need to be tweaked can be done by editing the files:
/var/www/simpleinvoices/config/config.ini
/var/www/simpleinvoices/config/define.php
If such tweaking is done for the '''define.php''', it will gracefully make necessary changes in the original install itself. The '''config.ini''' is generated during the first startup of the VM and hence must be edited only afterwards and only if needed.
[[File:SI-ProxMox011.jpg]]
==Accessing the SI VM Application==
We can edit the windows file at '''c:\windows\system32\drivers\etc\hosts''' inserting an entry for our SI virtual machine and access it using the named URL or directly by it's IP address in a browser.
[[File:SI-ProxMox012.jpg]]
==SI FTP Access - SSH Mode==
[http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] or any other terminal client can be used to access the SI VM in console mode for SCP. [http://www.filezilla.org FileZilla] can also be used to access the SI VM using SFTP:
[[File:SI-ProxMox013.jpg]]
==SI MySQL Access==
The default SI MySQL user is '''siuser''' and all necessary permissions are set to access the default SI database '''simple_invoices'''. The initial password for the said user is in the config.ini file referred above and will be randomised as in:
[[File:SI-ProxMox014.jpg]]
The initial password for the MySQL '''root''' user is randomised and is set in
/root/.my.cnf
As the users for the MySQL database have permissions to access the database only from within localhost, we need to SSH Tunnel into the Virtual Machine before beng able to access it. The configuration for a popular MySQL front end [http://www.webyog.com SQLyog] (Community Edition available for free) is given below:
[[File:SI-ProxMox015.jpg]]
Note the use of the '''root''' user and password entered when creating the SI VM. ''This is not the MySQL user / password.'' It is the console root user / password. The same as must be used in the FTP program above. Also note the use of another port (3310) for SSH tunnelling purposes only.
[[File:SI-ProxMox016.jpg]]
Display of the '''users''' table:
[[File:SI-ProxMox017.jpg]]
[[Category: Archive]]

Latest revision as of 16:00, 18 July 2019

Prerequisites

A working ProxMoxVE install (v1.4 used here but should work on 1.3 / 1.5 as well). No Intel-VT or AMD-V chip required as only OpenVZ will be used. Must be 64-bit machine, though will work on 32-bit machine with custom install discussed elsewhere.

Host Login

Let's first login to the ProxMox Virtual Environment by heading to the IP address of the ProxMoxVE Host.

SI-ProxMox001.jpg

Appliance Templates

We then choose to list the Appliance Templates so that we can download the SimpleInvoices OpenVZ ProxMox Template into the Host system.

SI-ProxMox002.jpg

Download SI Appliance Template

Choose the Download tab on the right hand pane of the Appliance Templates page.

SI-ProxMox004.jpg

If the SimpleInvoices Template does not show up (normally under the www section), then you will either have to manually download it from the direct link shown in the SI Wiki page under Appliance Details -> Location into your /var/lib/vz/template/cache folder in the ProxMoxVE Host or append the contents of the this file to /var/lib/pve-manager/apl-available file in the ProxMoxVE Host and then refresh the page shown in this screenshot and then download from within this GUI. Please note that the said apl-available file will be overwritten each day and each re-boot as Headquarters controls the default display of downloadable templates.

On completing the template download, the Local tab in the Appliance Templates pane, will see that the SimpleInvoices Template is listed as available for deployment.

Creating the SI Virtual Machine

Selecting the Virtual Machines menu link on the left menu and choosing the Create tab on the right pane, we now select the SimpleInvoices Template.

SI-ProxMox006.jpg

We have assumed 192.168.150.75 as the ProxMoxVE Host machine's IP, the upline router / gateway IP as 192.168.150.1 and have decided to allot 192.168.150.11 as the IP for the SimpleInvoices Virtual machine (OpenVZ Guest VM - si.local.net). After filling in the details, we click the create link at the bottom and we're done.

SI-ProxMox007.jpg

Created SI Virtual Machine

On successful completion of SI VM creation we see the following:

SI-ProxMox008.jpg

Start the SI VM

We choose the List tab in the right pane of the Virtual Machines left menu link and choose to Start the SI Virtual machine.

SI-ProxMox009.jpg

On starting the SI Virtual Machine, we see the following options (clicking on the VM row will yield other useful info like startup logs and other menu choices):

SI-ProxMox010.jpg

Using the VM Console from within the Host (aka VNC)

By choosing the Console in the screenshot above, we get a SSH terminal where we can issue Linux console commands. This is the console of the SI Virtual Machine and has root access stepping in through VNC from the ProxMoxVE Host machine. The default admin folder is set to adminT99 - you can alter it to what you want from the console GUI thus:

mv /var/www/simpleinvoices/adminT99 /var/www/simpleinvoices/my_secret_admin_folder_name

It can also be renamed using an FTP client.

Any settings that need to be tweaked can be done by editing the files:

/var/www/simpleinvoices/config/config.ini
/var/www/simpleinvoices/config/define.php

If such tweaking is done for the define.php, it will gracefully make necessary changes in the original install itself. The config.ini is generated during the first startup of the VM and hence must be edited only afterwards and only if needed.

SI-ProxMox011.jpg

Accessing the SI VM Application

We can edit the windows file at c:\windows\system32\drivers\etc\hosts inserting an entry for our SI virtual machine and access it using the named URL or directly by it's IP address in a browser.

SI-ProxMox012.jpg

SI FTP Access - SSH Mode

PuTTY or any other terminal client can be used to access the SI VM in console mode for SCP. FileZilla can also be used to access the SI VM using SFTP:

SI-ProxMox013.jpg

SI MySQL Access

The default SI MySQL user is siuser and all necessary permissions are set to access the default SI database simple_invoices. The initial password for the said user is in the config.ini file referred above and will be randomised as in:

SI-ProxMox014.jpg

The initial password for the MySQL root user is randomised and is set in

/root/.my.cnf

As the users for the MySQL database have permissions to access the database only from within localhost, we need to SSH Tunnel into the Virtual Machine before beng able to access it. The configuration for a popular MySQL front end SQLyog (Community Edition available for free) is given below:

SI-ProxMox015.jpg

Note the use of the root user and password entered when creating the SI VM. This is not the MySQL user / password. It is the console root user / password. The same as must be used in the FTP program above. Also note the use of another port (3310) for SSH tunnelling purposes only.

SI-ProxMox016.jpg

Display of the users table:

SI-ProxMox017.jpg