Archive for the Uncategorized Category

Konfigurasi Runlevels di centos 6.5

Posted in Uncategorized with tags on October 27, 2015 by dedy efendi

Pada saat fresh install centos 6.5 default tampilannya GUI, dikarenakan runlevelnya 5, nah saya ingin pada saat booting pertama tampilannya CLI kegunaannya biar hemat memory sih, bagaimana cara kita merubahnya langsung aja

[root@localhost ~]# vi /etc/inittab

id:5:initdefault: rubah angka 5 menjadi 3 seperti dibawah ini :

id:3:initdefault:

lalu restart, untuk keterangan runlevels :

# Default runlevel. The runlevels used are:
# 0 – halt (Do NOT set initdefault to this)
# 1 – Single user mode
# 2 – Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 – Full multiuser mode
# 4 – unused
# 5 – X11
# 6 – reboot (Do NOT set initdefault to this)

#dahgituaja 🙂

How to create ssl for CAS Server on tomcat

Posted in Uncategorized with tags , on October 6, 2015 by dedy efendi

Ceritanya mau gaya2an aja sih, buat ssl untuk kebutuhan CAS Server karena kudu & wajib pake ssl

langsung aja gan

cd /opt/jdk1.7.0_79/bin
./keytool -genkey -alias tomcat -keypass changeit -keyalg RSA
./keytool -export -alias tomcat -keypass changeit -file server.crt
./keytool -import -file server.crt -keypass changeit -keystore ../jre/lib/security/cacerts
./keytool -list -keystore /root/.keystore

vi /apps/tomcat8/conf/server.xml
<Connector port=”8443″ protocol=”org.apache.coyote.http11.Http11NioProtocol” maxHttpHeaderSize=”8192″
maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″
enableLookups=”false” disableUploadTimeout=”true”
acceptCount=”100″ SSLEnabled=”true” scheme=”https” secure=”true”
clientAuth=”false” sslProtocol=”TLS”
keystoreFile=”/root/.keystore”
keystorePass=”changeit”
truststoreFile=”/opt/jdk1.7.0_79/jre/lib/security/cacerts” />

start tomcatnya

#dahgituaja 🙂

config user on tomcat

Posted in Uncategorized with tags , on October 6, 2015 by dedy efendi

Ceritanya membuat role user untuk manager-gui di tomcat 8

cd /home/tomcat/conf

vi tomcat-users.xml

–taruh diatas ini </tomcat-users>

<role rolename=”manager-gui”/>
<user username=”admin” password=”admin” roles=”manager-gui”/>

#dahgituaja

Merubah JVM (java virtual memory) di tomcat

Posted in Uncategorized with tags , on October 6, 2015 by dedy efendi

Mau merubah JVM di tomcat, dah cek di warungpedia belum ? 😛

#cd /home/tomcat/bin

#vi setenv.sh

JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre/bin/java
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
JAVA_OPTS=”$JAVA_OPTS ”
export JAVA_HOME
export JRE_HOME
export JAVA_OPTS=”-Dfile.encoding=UTF-8 -Xms2048m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m”

restart tomcat, dah gitu aja 🙂

Gratis lagi

Posted in Uncategorized on January 7, 2009 by dedy efendi

AKhirnya dapet DVD gratis ubuntu 8.10 lagi dari Shipitdsc00012
Dapet yg Desktop maupun yg buat server lumayan buat nambah distro aja 😀 , walaupun sebenarnya gw lagi seneng ma opensuse (tokek ijo)