Monday 19 January 2015

Centos 7, you cannot use Open-VM-Tools to customize VMs on vsphere 5.5x


howto fix your CenOS 7 template image so it can be used in vsphere guest customize deploy.



So you decided to switch slowly from CentOS6 to CentoOS7 in your vmware infrastrucure.
(FYI: good luck with systemd and ethx naming)


So you got friendly with systemd, you tailored your machine..updated yum, deleted the history and ssh keys...and want do deploy new machines from the brand new CenOS7 template.

You deploy the template, use customize and fill up the fields. After the deploy u realize that nothing of was done. Search vmware KB, google ad even yahoo for the error.....


or just read the following:

1. Install if you didn't already the open-vm-tools
# yum install open-vm-tools


2. Create a file, /etc/yum.repos.d/vmware-tools.repo, with the following content:
[vmware-tools]
name = VMware Tools
baseurl = http://packages.vmware.com/packages/rhel7/x86_64/
enabled = 1
gpgcheck = 1
Install the package:

# yum install open-vm-tools-deploypkg


3. Edit /etc/redhat-release and change the line with
Red Hat Enterprise Linux Server release 7.0 (Maipo)

Sunday 19 February 2012

ubuntu 11.10 and chrome 17.x

After upgrading google chrome from 16.x to 17.x i noticed that chrome was closing without any errors after some second.
var/log/syslog was showing me some segmentaion errors

what i did to solve my error was deleting .chrome folder in the ~ folder.
after that chrome was working smoothly as always!


ubuntu chro

Friday 10 February 2012

google chrome for android beta released

Chrome for Android, which is a beta release, replaces the existing browser on Google's mobile operating system. However, it is available only for those running the Ice Cream Sandwich version of Android - around one per cent of users at present, though that number is increasing.

In a blog post, Sundar Pichai, Google's senior vice president for Chrome and apps, wrote: "Like the desktop version, Chrome for Android Beta is focused on speed and simplicity, but it also features seamless sign-in and sync so you can take your personalized web browsing experience with you wherever you go, across devices."

Pichai said that Google had built Chrome for Android "from the ground up" with mobile in mind. He said: "We reimagined tabs so they fit just as naturally on a small-screen phone as they do on a larger screen tablet. You can flip or swipe between an unlimited number of tabs using intuitive gestures, as if you’re holding a deck of cards in the palm of your hands, each one a new window to the web."

He emphasised the speed of Chrome for Android as well as a single sign-in feature that allows users to log-in and sync bookmarks between mobile and desktop versions of Chrome. The mobile browser will also automatically load any tabs that you had open on the desktop version of Chrome.

That move is likely to encourage more Android users to adopt Chrome on their desktop and laptop computers. At the end of last year Chrome overtook Firefox to become the second most popular web browser.

Wednesday 30 March 2011

haproxy and rsyslog on ubuntu

Since there its a bit a mystery how to enable logging on haproxy i will put down what i did to make it work.

ubuntu 10.04 (should work with other releases also)


Create a file in /etc/rsyslog.d/20-haproxy.conf whick looks like:

$ModLoad imudp $UDPServerRun 514  local0.* -/var/log/haproxy_0.log local1.* -/var/log/haproxy_1.log 


in file 50-default.conf edit the line to look like:

*.*;auth,authpriv,local0,local1.none     -/var/log/syslog 

Restart rsyslog

Setup logrotate

in /etc/logrotate.d/haproxy

/var/log/haproxy.log {     rotate 4     weekly     missingok     notifempty     compress     delaycompress     sharedscripts     postrotate         reload rsyslog >/dev/null 2>&1 || true     endscript }


Happy logging




Thursday 27 January 2011

Opsview 3.11 Graphs Error in IE

if you updated opsview to 3.11 release and found out that you suddenly dont have any graphs anymore in IE, but strangely in Firefox or Chrome they works ......

there is a bug in the Opsviewgraphs.js

delete the coma on the 534 line ...


530 // overriden because requesting an overlap returns
531 // incorrect max/min/current values for the series tooltip
532 getDataRanges: function() {
533 return this.getRanges();
534 }
535
536 });


hope it helped someone...

Thursday 25 November 2010

vsftpd centos mysql user create script

If you have settup Vsftpd with mysql you will like a small script which creates the user folder and user/password in mysql

hope it helps someone..

#!/bin/bash

EXPECTED_ARGS=2
E_BADARGS=65
MYSQL=`which mysql`

mkdir /home/vsftpd/$1
chown -R vsftpd:vsftpd /home/vsftpd

Q1="USE vsftpd;"
Q2="INSERT INTO accounts (username, pass) VALUES('$1', md5('$2'));"
Q3="FLUSH PRIVILEGES;"
SQL="${Q1}${Q2}"

if [ $# -ne $EXPECTED_ARGS ]
then
echo "Usage: $0 user password"
exit $E_BADARGS
fi

$MYSQL -uroot -p -e "$SQL"