Monday, July 30, 2012

How to view your VMware ESXi Host’s System Log, Config and Datastore via a web browser.

ESXi Configuration Files & System Logs:


 

http://<insert ESXi host name or IP here>/host

 

 

Click on any of the displayed items to view their contents.

Easily view your VMware ESXi Host’s System Log, Config via a web browser.

 


ESXi Datastores:


To view the ESXi host’s attached datastores and the total and consumed disk space enter:

 

http://<insert ESXi host name or IP here>/folder

 

How to view your VMware ESXi Host’s Datastore files via a web browser.

Tuesday, July 17, 2012

SARG on CentOS 6

[root@khan ~]# yum install gcc make wget httpd
[root@khan ~]# wget http://sourceforge.net/projects/sarg/files/sarg/sarg-2.3.1/sarg-2.3.1.tar.gz/download

[root@khan ~]# tar zxvf sarg-2.3.1.tar.gz
[root@khan ~]# cd sarg-2.3.1
[root@khan ~]# ./configure
[root@khan ~]# make
[root@khan ~]# make install

 

# vim /usr/local/etc/sarg.conf

 

#### sarg.conf####
access_log /var/log/squid/access.log
date_format e     ## since here we use date format DD-MM-YYYY
overwrite_report yes     ## because I don't want multiple sarg reports for the same day
output_dir /var/www/html/squid-reports

Monday, July 16, 2012

Webmin User Password Change

If you want to change root password in webmin use this included Perl script:

sudo /usr/share/webmin/changepass.pl /etc/webmin root

Saturday, July 14, 2012

How do I change my Webmin password if I can't login?

Included with the Webmin distribution is a program called changepass.pl to solve erecisely this problem. Assuming you have installed Webmin in /usr/libexec/webmin, you could change the password of the admin user to foo by running

/usr/libexec/webmin/changepass.pl /etc/webmin admin foo

 

sudo /usr/libexec/webmin/changepass.pl /etc/webmin root yourpassword

 

 

Tuesday, July 10, 2012

How to install Oracle JDK on Ubuntu 11 from repository.

With Oracle the acquisition of Sun the Oracle have retired the "Operating System Distributor License for Java" (JDL) and the only available JDK release will be the OpenJDK. I had previously some bad experience with the OpenJDK and I prefer to use the official Oracle version of JDK, but I don't want to install the JDK binaries manually – we are using Ubuntu! But the webupd8.org team have been nice to published the binaries in a Personal Package Archives (PPA) and so far I have no problem using it, so I can warmly recommend using it.

To install:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo mkdir -p /usr/lib/mozilla/plugins #just in case, this will be added to the package in the next version
sudo apt-get install oracle-jdk7-installer

And to uninstall:
sudo apt-get remove oracle-jdk7-installer


And to verify your installation:
java -version
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)

And to verify the web browser installation:
http://java.com/en/download/installed.jsp
Verified Java Version
Congratulations!
You have the recommended Java installed (1.7.0_02).

And with maven 2:
mvn -version
Java version: 1.7.0_02
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "3.0.0-15-generic" arch: "amd64" Family: "unix"

Java Web Start
The only thing that did not work out of the box was the Java Web Start. To fix that open JNLP file link and when asked for application, brows to:
/usr/lib/jvm/java-7-oracle/bin/javaws

Monday, July 2, 2012

CentOS Linux system information - Boot Up information

dmesg

How To: Disable Firewall on RHEL / CentOS / RedHat Linux

First login as the root user.

Next enter the following three commands to disable firewall.
# service iptables save
# service iptables stop
# chkconfig iptables off


If you are using IPv6 firewall, enter:
# service ip6tables save
# service ip6tables stop
# chkconfig ip6tables off