-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,221 additions
and
2 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,2 @@ | ||
log/* | ||
tmp/* |
Binary file not shown.
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,2 +1,109 @@ | ||
# tgui_install | ||
Installation script for TacacsGUI | ||
# Installation script for TacacsGUI | ||
There is no need to worry about dependencies, packages or librarias now. All you need is clear **Ubuntu 16.4.x**. | ||
I hope it will be intuitive for you and you will enjoy installation process. | ||
|
||
## Requerements: | ||
1. **Ubuntu 16.4.x** (I will try to migrate to 18.4.x this year) | ||
2. **Pre-Installed LAMP Server and OpenSSH-Server** | ||
|
||
## Script does three steps: | ||
1. **Set Interface Settings** (you have to do that only once) | ||
2. **Install Dependencies** | ||
3. **Install Frameworks, Libraries, Web Interface and so on** | ||
|
||
## Prepare your script | ||
Added soon... | ||
|
||
### Step 1. Set Interface Settings :satellite: | ||
If it is you first installation, you have to prepare network interface for communication. | ||
From the main menu your choice is **3**, **Network Settings**. | ||
``` | ||
############################################################### | ||
############## TACACSGUI Installation Script ############## | ||
############################################################### | ||
ver. 1.0.0 | ||
############## List of available options ############## | ||
1) Install TacacsGUI 5) Clear and Refresh Menu | ||
2) Re-install TacacsGUI 6) Write to Log file | ||
3) Network Settings 7) Quit | ||
4) Test the System | ||
Please enter your choice (5 to clear output): 3 | ||
``` | ||
Now you have to select interface that will be the main one. | ||
Now you have to select interface that will be the main one. To show all available interfaces choose **1** (**Show Interface List**) and then choose **3** (**Configure interface**), type selected interface and finish network configuration settings. | ||
I hope it will be very intuitive for you and you will get success. | ||
``` | ||
############################################################### | ||
############## TACACSGUI Network Settings Script ######### | ||
############################################################### | ||
ver. 1.0.0 | ||
############## List of available options ############## | ||
1) Show Interface List 4) Clear and Refresh Menu | ||
2) Show Interface Settings 5) Back to Main Menu | ||
3) Configure interface | ||
Please enter your choice (4 to clear output): | ||
``` | ||
To return to **Main Menu** select **5**. | ||
### Step 2. Install Dependencies :see_no_evil: | ||
From the **Main Menu** select option number **1**, **Install TacacsGUI** (or Re-install TacacsGUI if required). | ||
On this step you doesn't need to do anything, just see as the script resolve all boring stuff. | ||
There are some checks on this step: | ||
1. Check network settings. If you did not do Step 1, script will notify you and this step will exit. | ||
2. Check installed packges. If some package missing, script will try to download and install it. | ||
3. Check connectivity to *github.com*. | ||
4. Check connectivity to *packagist.org* (Composer). | ||
5. Check connectivity to *tacacsgui.com*. | ||
6. Check tac_plus daemon existence. If tac_plus does not installed, script will try to install it for you. There is an archive inside of this package, downloaded from [the Marc's Hubert site](http://www.pro-bono-publico.de/projects/) (now it is *DEVEL.201903091339.tar.bz2*). | ||
7. Check PHP version. Now it is the latest version - 7.3. If your server does not have it, the script will try to resolve that issue for you. | ||
8. Check Pip. I can't just pass by Python, hope it will take more places in the project. As in the previous checks it will be installed if you don't have it yet. | ||
9. Check Composer. If you don't have it yet or have old version, it will installed. | ||
10. Check root access to two files: */opt/tacacsgui/tac_plus.sh* and */opt/tacacsgui/main.sh*. Do you know how to use `sudo visudo`? Don't worry script will do that for you. | ||
11. Check Ubuntu version. Unfornunately, only *16.4.x* supported. | ||
|
||
Ok. That all. If you finally see menu of Step 3, it means Step 2 was finished successfully! :sunglasses: | ||
### Step 3. Install Frameworks, Libraries, Web Interface and so on :hammer: | ||
It is here your help is needed. Script will ask you **MySQL root password** and if it is the first installation password for the *tgui_user*. :exclamation: Password containing special characters like !,&,\*,/ and so on will destroy the script, it is a bug. Please, set alphanumeric password. Sorry for inconvenience.:exclamation: | ||
``` | ||
############################################################### | ||
############## TACACSGUI Installation ######### | ||
############################################################### | ||
ver. 1.0.0 | ||
Start Installation | ||
Check database... | ||
Try to get root password to MySQL...Not Found | ||
Enter root password to mysql: | ||
Done. Correct password | ||
Remember root password? (y/n): n | ||
... | ||
bla bla bla, some boring stuff | ||
... | ||
Tacacs Daemon setup... | ||
Test Daemon work... | ||
Done | ||
Final Check...Check main libraries... | ||
Done. Congratulation! | ||
Press any key to exit... | ||
``` | ||
If you see the last three lines, like above, it is a time to check Web Interface! | ||
There are two ways: | ||
- **https**://*\<your ip address\>*:**4443** | ||
- **http**://*\<your ip address\>*:**8008** | ||
|
||
After installation I recommend to upgrade your system, use command `sudo apt-get full-upgrade -y` for that. | ||
|
||
Hope you will enjoy installation process and you does not meet any trouble. | ||
If you want to help, you are welcome! Also you can be my Patron [on Patreon](https://www.patreon.com/tacacsgui), you can stimulate me do updates more often. | ||
[<img src="https://tacacsgui.com/wp-content/uploads/2018/11/1000px-Patreon_logo_with_wordmark.png" width="40%">](https://www.patreon.com/tacacsgui) | ||
|
||
Best Regards, Aleksey |
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,32 @@ | ||
Listen 4443 | ||
|
||
<IfModule mod_ssl.c> | ||
<VirtualHost *:4443> | ||
ServerAdmin developer@tacacsgui.com | ||
ServerName tacacsgui.local | ||
DocumentRoot /opt/tacacsgui/web/ | ||
ErrorLog /var/log/tacacsgui/apache2/error.log | ||
CustomLog /var/log/tacacsgui/apache2/access.log combined | ||
SSLEngine on | ||
SSLCertificateFile /opt/tgui_data/ssl/tacacsgui.local.cer | ||
SSLCertificateKeyFile /opt/tgui_data/ssl/tacacsgui.local.key | ||
<FilesMatch "\.(cgi|shtml|phtml|php)$"> | ||
SSLOptions +StdEnvVars | ||
</FilesMatch> | ||
<Directory /opt/tacacsgui/web/> | ||
AllowOverride All | ||
Allow from All | ||
Require all granted | ||
Options -Indexes | ||
XSendFile On | ||
XSendFilePath "/opt/tgui_data/backups" | ||
XSendFilePath "/var/log/tacacsgui" | ||
XSendFilePath "/opt/tacacsgui/temp" | ||
XSendFilePath "/opt/tgui_data/confManager/configs" | ||
</Directory> | ||
BrowserMatch "MSIE [2-6]" \ | ||
nokeepalive ssl-unclean-shutdown \ | ||
downgrade-1.0 force-response-1.0 | ||
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown | ||
</VirtualHost> | ||
</IfModule> |
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,23 @@ | ||
Listen 8008 | ||
|
||
<VirtualHost *:8008> | ||
ServerAdmin developer@tacacsgui.com | ||
DocumentRoot /opt/tacacsgui/web | ||
|
||
ErrorLog /var/log/tacacsgui/apache2/error.log | ||
CustomLog /var/log/tacacsgui/apache2/access.log combined | ||
|
||
<Directory "/opt/tacacsgui/web/"> | ||
Allow from All | ||
AllowOverride All | ||
Require all granted | ||
Options -Indexes | ||
XSendFile On | ||
XSendFilePath "/opt/tgui_data/backups" | ||
XSendFilePath "/var/log/tacacsgui" | ||
XSendFilePath "/opt/tacacsgui/temp" | ||
XSendFilePath "/opt/tgui_data/confManager/configs" | ||
</Directory> | ||
</VirtualHost> | ||
|
||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet |
Oops, something went wrong.