Author: admin
-
Java 1.8 on Ubuntu 14.04 LTS
sudo apt-get install python-software-properties (sudo apt-get install –reinstall software-properties-common) sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-8-jdk sudo update-alternatives –config java sudo update-alternatives –config javac Solve missing /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts sudo dpkg —purge —force–depends ca–certificates–java sudo apt–get install ca–certificates–java
-
Cpanel backup
If you want to move one account use: /scripts/pkgacct accountname This creates a backup of the account at the top level of /home which you can copy over to another server into /home and restore using: /scripts/restorepkg accountname
-
Install OpenLDAP on Ubuntu 14.04
Install apt-get update apt-get install slapd ldap-utils Set password for admin Configure vim /etc/ldap/ldap.conf (not existing) # # LDAP Defaults # # See ldap.conf(5) for details # This file should be world readable but not world writable. BASE dc=example,dc=com URI ldap://10.10.0.100 ldap://10.10.0.100:389 #SIZELIMIT 12 #TIMELIMIT 15 #DEREF never # TLS certificates (needed for GnuTLS) TLS_CACERT /etc/ssl/certs/ca-certificates.crt…
-
MySQL JDBC Connection in Glassfish
Start to add a new JDBC Connection Pools. * Goto Resources-> JDBC -> JDBC Connection Pools * Click New… * Enter a pool name (identyfy the pool, free text) * Choose java.sql.Driver * Click Next * Enter com.mysql.jdbc.Driver in Driver Classname * Add additional properties: Name Value URL jdbc:mysql://localhost:3306/<databaseName>?zeroDateTimeBehavior=convertToNull user <username> password <password> * Click…
-
Ubuntu autostart Glassfish
You need to set JAVA_HOME and add JAVA_HOME/bin to PATH asadmin create-service
-
GIT push
Create a new repo. Clone the repo from existingserver to your local machine. git remote rename origin upstream git remote add origin URL_TO_NEW_REPO git push origin master Now you can work with it just like any other git repo. To pull in patches from upstream, simply run git pull upstream master && git push origin…
-
MemberOf LDAP Ubuntu
The first LDIF file: dn: cn=module,cn=config objectClass: olcModuleList cn: module olcModulePath: /usr/lib/ldap olcModuleLoad: memberof Second LDIF file: dn: olcOverlay=memberof,olcDatabase={1}hdb,cn=config objectClass: olcMemberOf objectClass: olcOverlayConfig objectClass: olcConfig objectClass: top olcOverlay: memberof olcMemberOfDangling: ignore olcMemberOfRefInt: TRUE olcMemberOfGroupOC: groupOfNames olcMemberOfMemberAD: member olcMemberOfMemberOfAD: memberOf Add them into the config database using ldapadd (same as normal config stuff). It does not…
-
Postgres on Ubuntu 14.04
Install postgres 9.4 Add source sudo sh -c ‘echo “deb http://apt.postgresql.org/pub/repos/apt trusty-pgdg main” >> /etc/apt/sources.list’ add key wget –quiet -O – http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add – update sudo apt-get update install sudo apt-get install postgresql-9.4-postgis-2.1 pgadmin3 postgresql-contrib Add user # sudo su – postgres $ createdb mydb $ psql -s mydb # create user…
-
Glassfish 4.1 start script
GlassFish logo Ubuntu logo Installing GlassFish 4.1 on Ubuntu 14.10 (last updated 2015-02-05) This HOWTO explains one way of setting up GlassFish 4.1 under Ubuntu 14.10. Questions or suggestions for improvement can be addressed to shadowm at lyonlabs dot org. Installing GlassFish Fronting GlassFish with Apache 2.4 Setting up Database Connection Pools Installing GlassFish Download…