Installing and configuring Glassfish 4.1 on RHEL and Centos

cd /opt wget http://dlc.sun.com.edgesuite.net/glassfish/4.1/release/glassfish-4.1.zip unzip glassfish-4.1.zip mv glassfish4 glassfish create glassfish user groupadd glassfish useradd -s /bin/bash -g glassfish glassfish chown -R glassfish: /opt/glassfish change the user password passwd glassfish nano /etc/init.d/glassfish add the below line #!/usr/bin/env bash # description: Glassfish start/stop/restart # processname: glassfish # chkconfig: 2445 20 80 JAVA_HOME=/usr/java/jdk1.7.0_75 export JAVA_HOME PATH=$JAVA_HOME/bin:$PATH export PATH GLASSFISH_HOME=/opt/glassfish

Installing and configuring tomcat on Centos 7

wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz tar -xvvf apache-tomcat-7.0.57.tar.gz mv apache-tomcat-7.0.57 /opt/tomcat nano /opt/tomcat/conf/tomcat-users.xml find the <tomcat-users> </tomcat-users> lines and in between add the below entry <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <role rolename="admin-gui"/> <role rolename="admin-script"/> <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/> and save the file and then issue command chmod 755 /opt/tomcat sh /opt/tomcat/bin/startup.sh  

Jdk installation javaws error javaws: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

javaws -version [root@centos ~]# javaws: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory -bash: javaws:: command not found install this package yum -y install libX11-devel.x86_64 and then magic happens [root@centos ~]# javaws -version Java(TM) Web Start 10.71.2.14-fcs Usage: javaws [run-options] <jnlp-file> javaws [control-options]

Smaller Eclipse menus on ubuntu

in terminal in your home directory issue the below command sudo gedit ~/.gtkrc-2.0 and copy the below content and save style "gtkcompact" { GtkButton::defaultborder={0,0,0,0} GtkButton::defaultoutsideborder={0,0,0,0} GtkButtonBox::childminwidth=0 GtkButtonBox::childminheigth=0 GtkButtonBox::childinternalpadx=0 GtkButtonBox::childinternalpady=0 GtkMenu::vertical-padding=1 GtkMenuBar::internalpadding=0 GtkMenuItem::horizontalpadding=4 GtkToolbar::internal-padding=0 GtkToolbar::space-size=0 GtkOptionMenu::indicatorsize=0 GtkOptionMenu::indicatorspacing=2 GtkPaned::handlesize=4 GtkRange::troughborder=0 GtkRange::stepperspacing=0 GtkScale::valuespacing=0 GtkScrolledWindow::scrollbarspacing=0 GtkExpander::expandersize=10 GtkExpander::expanderspacing=0 GtkTreeView::vertical-separator=0 GtkTreeView::horizontal-separator=0 GtkTreeView::expander-size=8 GtkTreeView::fixed-height-mode=TRUE GtkWidget::focuspadding=1 } class "GtkWidget" style "gtkcompact" style "gtkcompactextra" {

vmware linux ethernet module compile issue

I’ve faced this issue today in the morning after a fresh ubuntu 14.04 installation on my laptop. The issue occurs because vmware cannot configure the Ethernet module. Virtual machine monitor done Virtual machine communication interface done VM communication interface socket family done Blocking file system done Virtual ethernet failed VMware Authentication Daemon done to resolve

installing IntelliJ on Ubuntu

decompress the downloaded archive tar -xvf ideaIU-13.1.3.tar.gz sudo mv idea-IU-135.909 /opt/idea13 cd /usr/share/applications sudo gedit idea.desktop copy the below content and save [Desktop Entry] Name=IntelliJ IDEA Type=Application Exec=/opt/idea13/bin/idea.sh Terminal=false Icon=/opt/idea13/bin/idea.png Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE; Name[en]=IntelliJ IDEA sudo desktop-file-install idea.desktop source ~/.bashrc and type in you will see intellij installed

Installing LAMP stack on Ubuntu

When we work on Ubuntu in case of need of LAMP stack we programmers always take the hard way to individually install, setup and configure components like Apache PHP MySQL. One of the greatest things with Ubuntu is that we are able to install LAMP stack with one command line!!! So let us get started