David Ghedini

Linux, Java, Oracle, and PostgreSQL


David Ghedini

Wednesday Mar 15, 2017

Tomcat Module for Webmin

It's always good to see I'm still getting new comments on my Tomcat 7 post from back in 2011(!).

Yesterday, we released our Tomcat Module for Webmin

The module works like any other Webmin module and allows you to install and manage Apache Tomcat from within Webmin.

The module provides a GUI for you to Stop, Start, and Restart Tomcat, Deploy and Un-Deploy WAR files, as well as edit the main configuration files.

The easiest way to install it is to simply go to Webmin->Webmin Configuration->Webmin Modules

In the 'From ftp or http URL', enter:

https://cdn.acugis.com/apache-tomcat-webmin-plugin/tomcat.wbm.gz


Refresh the main page and you should see "Apache Tomcat" under "Servers" in Webmin menu.

Click the "Install Now" button to install Tomcat and Java.

Below are Some Screen Shots

Tomcat Module:



Tomcat Module WAR Manager:



Tomcat Module Configuration Editor:





If you prefer to use GIT, you can follow below:

$ git clone https://github.com/AcuGIS/Tomcat-Webmin-Module
$ mv Tomcat-Webmin-Module tomcat
$ tar -cvzf tomcat.wbm.gz /tomcat




Distro Notes

Ubuntu

Tested on Ubuntu 12, 14, 15, and 16

Readhat/Fedora/CentOS

Tested on CentOS 6x64 and 7x64

haveged helps Tomcat start much faster.

yum install epel-release
yum install haveged
chkconfig haveged on
Debian

Tested on Debian 7 and 8

FreeBSD

tomcat_env doesn't work, because tomcat service(/usr/local/etc/rc.d/tomcat8) is not sourcing the setenv.sh file. Work around is to set tomcat7_java_opts= in service file.

ArchLinux

Install tomcat packages manually and then install module, because Webmin doesn't support pacman. Go to Existing Tomcat Installations below.

pacman --noconfirm -S tomcat8 tomcat-native jre8-openjdk
OpenSuSe

Install tomcat packages manually and then install module. Go to Existing Tomcat Installations below.

zypper -n install tomcat tomcat-webapps tomcat-admin-webapps


Installing on Existing Tomcat Installations

You can also use the module to manage an existing installation as well.

1. Install via Webmin->Webmin Configuration->Webmin Modules
2. Under Server > Apache Tomcat click on the configuration icon in the top left corner.
3. Update the configuration paths to your existing Tomcat paths.
4. You should now be able to use all functionality.

*Issues
Please post any issue here or at https://github.com/AcuGIS/Tomcat-Webmin-Module

Happy Tomcat'ing :)

Bookmark and Share



Saturday Jan 30, 2016

PostgreSQL 9.5 Script for Debian Jessie (8.3)

Adding on to the CentOS PostgreSQL 9.5 scripts below, I've added a version for Debian Jessie (8.3).

Please read the README and use only on a clean install!

https://github.com/intoGres/postgresql-9.5-script-debian-8.3x64

As with the CentOS scripts, it adds some basic security steps:

  • Creates a minimally privilaged user (pgadmin - change to whatever you like)
  • Disables root log in
  • Sets the SSH port to 3838 (change to whatever you like).
  • Sets root, postgres, admin, and ssl pass to 32 chars
  • Installs IP tables (if you want to use firwalld, comment the appropriate lines as noted).
  • Configures Webmin for managing PostgreSQL
  • Installs a self-signed SSL for PostgreSQL
  • Updates pga_hba.conf to MD5 and SSL
  • Updates postgresql.conf for SSL and remote connections.


Once completed, it will display the new passwords for pgadmin, root, postgres, and ssl as well as write them to an auth.txt file

: Example Output at End of Script
Passwords saved in /root/auth.txt
pg pass: DqVnavTlCXcSKfHprgUtjF-20rpfsKui
ssl pass: yxaQJCXgudTw19XEOMPdZzNd5n6rwVOG
pgadmin pass: A0RUHtPfSFC82mHeDP_ixrRavk7itgkE
root pass: RvZDHkZv-AeQS-ce0Mcnif7GxmmJ-zxN

Bookmark and Share



Wednesday Dec 23, 2015

PostgreSQL 9.5 Scripts for CentOS 6 and CentOS 7

I'm always pleasantly surprised to see that my "Install PostgreSQL 9 on CentOS" from back in 2011 is still coming up on Google searches and that I still get the occasional new comments for it.

I thought I might be useful to add some scripts for PostgreSQL 9.5 (and 9.4) for Both CentOS 6 and CentOS 7 that may be time savers.

Please read the README and use only on a clean install!

https://github.com/DavidGhedini/postgresql-9.5-script-centos-7x64

https://github.com/DavidGhedini/postgresql-9.4-script-centos-7x64

https://github.com/DavidGhedini/postgresql-9.5-script-centos-6x64

https://github.com/DavidGhedini/postgresql-9.4-script-centos-6x64

The CentOS scripts lists all of the packages individually so you can easily edit the script to add or remove packages.

The scripts adds some basic security steps:

  • Creates a minimally privilaged user (pgadmin - change to whatever you like)
  • Disables root log in
  • Sets the SSH port to 3838 (change to whatever you like).
  • Sets root, postgres, admin, and ssl pass to 32 chars
  • Installs IP tables (if you want to use firwalld, comment the appropriate lines as noted).
  • Configures Webmin for managing PostgreSQL
  • Installs a self-signed SSL for PostgreSQL
  • Updates pga_hba.conf to MD5 and SSL
  • Updates postgresql.conf for SSL and remote connections.


Once completed, it will display the new passwords for pgadmin, root, postgres, and ssl as well as write them to an auth.txt file

: Example Output at End of Script
Passwords saved in /root/auth.txt
pg pass: DqVnavTlCXcSKfHprgUtjF-20rpfsKui
ssl pass: yxaQJCXgudTw19XEOMPdZzNd5n6rwVOG
pgadmin pass: A0RUHtPfSFC82mHeDP_ixrRavk7itgkE
root pass: RvZDHkZv-AeQS-ce0Mcnif7GxmmJ-zxN

Bookmark and Share




Main Menu

Built With

Pages

LinkedIn

Tag Cloud

Hosted by:

Navigation

Visitors

Sponsors

petiole Cloud

Feeds