Sunday, August 28, 2016

Linux Commands on centos 7


linux commands
-----------------------------
1. yum remove java*

2. Create /etc/profile.d/java.sh


if ! echo ${PATH} | grep -q /opt/jdk18/bin ; then
   export PATH=/opt/jdk18/bin:${PATH}
fi
if ! echo ${PATH} | grep -q /opt/jdk18/jre/bin ; then
   export PATH=/opt/jdk18/jre/bin:${PATH}
fi
export JAVA_HOME=/opt/jdk18
export JRE_HOME=/opt/jdk18/jre
export CLASSPATH=.:/opt/jdk18/lib/tools.jar:/opt/jdk18/jre/lib/rt.jar



Php permission error to connect to server with error on Centos 7

fsockopen($address, $this->port, $errno, $errstr, 60);

Try this command in your linuxbox (as root).

setsebool -P httpd_can_network_connect 1

Linux Commands on centos 7


linux commands
-----------------------------
1. yum remove java*

2. Create /etc/profile.d/java.sh


if ! echo ${PATH} | grep -q /opt/jdk18/bin ; then
   export PATH=/opt/jdk18/bin:${PATH}
fi
if ! echo ${PATH} | grep -q /opt/jdk18/jre/bin ; then
   export PATH=/opt/jdk18/jre/bin:${PATH}
fi
export JAVA_HOME=/opt/jdk18
export JRE_HOME=/opt/jdk18/jre
export CLASSPATH=.:/opt/jdk18/lib/tools.jar:/opt/jdk18/jre/lib/rt.jar



Php permission error to connect to server with error on Centos 7

fsockopen($address, $this->port, $errno, $errstr, 60);

Try this command in your linuxbox (as root).

setsebool -P httpd_can_network_connect 1

Monday, August 15, 2016

CentOS 7 Android studio setup



Let us know install studio by downloading the ide file from Android site and unzipping the same.
[root@li1260-39 tmp]# unzip android-studio-ide-141.2343393-linux.zip
Move android-studio directory to /opt directory
[root@li1260-39 tmp]# mv /tmp/android-studio/ /opt/
You can create a simlink to the studio executable to quickly start it whenever you need it.
[root@li1260-39 tmp]# ln -s /opt/android-studio/bin/studio.sh /usr/local/bin/android-studio
Now launch the studio from a terminal: ./studio.sh

From the IDE config the centos desktop icon

 Issues:

1. Unable to run mksdcard SDK tool CentOS


Solution for 64 bit:

yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

2. KVM