Fedora DNF Proxy

Fedora’s Package manager DNF requires proxy if you are behind a company network. To enter the details: sudo nano /etc/dnf/dnf.conf add the below line and replace it with your settings and credentials: proxy=http://URL:PORT/ proxy_username=OPTIONAL-IF-NOT-MANDATORY proxy_password=OPTIONAL-IF-NOT-MANDATORY save the file and give it a shot. For troubleshooting you can always tail -f /var/log/dnf.log For my Setup Fedora

Post centos installation after a minimal installation

1. Auto network discovery there is an app called dhclient. It will easily discovery ip address and launch network right away dhclient -v 2.  install Gnome gui yum -y groupinstall “X Window System” “Desktop” “General Purpose Desktop” 3.start gui on startup nano /etc/inittab change id to 5 # Default runlevel. The runlevels used by RHS are:

configure ssl

Export from JKS to PKCS #12. keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.p12 -deststoretype PKCS12 -srcalias <jkskeyalias> -deststorepass <password> -destkeypass <password> mv keystore.p12 /root cd /root convert to key openssl rsa -outform der -in private.pem -out private.key nano /etc/httpd/conf.d/ssl.conf find the line <VirtualHost _default_:443> uncomment ServerName and type servername:443 uncomment: SSLEngine on SSLCertificateFile /root/downloadedcertificate.crt SSLCertificateKeyFile /root/private.key

Configure SSL on Apache and Glassfish and forward traffic to Glassfish

keytool -keysize 2048 -genkey -alias tugrulaslan.net -keyalg RSA –dname “CN=tugrulaslan.net,O=company,L=Istanbul,S=Istanbul,C=TR” -keystore keystore.jks keytool –certreq –alias tugrulaslan.net –keystore keystore.jks –file cert_req.csr keytool -import -alias tugrulaslan.net -keystore keystore.jks -trustcacerts -file yourdomain.com.crt send that csr to generate your ssl file then download x509 certificate from geotrust then move the certificate to /root IMPORT SSL INTO KEYSTORE   download

Apache Mod_proxy to forward http traffic to Java App server 8080

In my vps server I wanted to forward http port 80 to glassfish 8080 ports without having glassfish config changed. So I assume httpd apache server is installed. So cd /etc/httpd/conf nano httpd.conf Add the below lines and save and restart apache <VirtualHost *:80> # Your domain name ServerName Domain_NAME_HERE ProxyPreserveHost On ProxyPass / http://localhost:8080/

Installing Wildfly 8 on Centos

I’ll show you how to set up Wildfly 8 server for standalone not for the domain mode download the package and unzip cd /opt wget http://download.jboss.org/wildfly/8.2.0.Final/wildfly-8.2.0.Final.zip unzip wildfly-8.2.0.Final.zip -d /opt/ rename the unzipped folder mv wildfly-8.2.0.Final wildfly create the wildfly user groupadd wildfly useradd -s /bin/bash -g wildfly wildfly then prepare the config file path mkdir

Installing Jdk 7 on Centos

download jdk on console cd /opt sudo wget –no-cookies –no-check-certificate –header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ "http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jdk-7u75-linux-x64.tar.gz" then unpack tar zxvf jdk-7u75-linux-x64.tar.gz then create folder mkdir /usr/java then move mv jdk1.7.0_75/ /usr/java/ install java alternatives –install /usr/bin/java java /usr/java/jdk1.7.0_75/bin/java 1 install javac alternatives –install /usr/bin/javac javac /usr/java/jdk1.7.0_75/bin/javac 1 install jar alternatives –install /usr/bin/jar jar /usr/java/jdk1.7.0_75/bin/jar 1