CentOS minimal template’s issue with crontab

How to, Tips and Tricks
On my CentOS 5.x 64bit XEN PV template (XEN PV is a virtualization type, this means I am talking about a VPS) doing 'crontab -e' gave me the following error [code] [root@vpsadmin ~]# crontab -e no crontab for root - using an empty one /bin/sh: /bin/vi: No such file or directory crontab: "/bin/vi" exited with status 127 [/code] To correct this issue, do the following [code] [root@vpsadmin ~]# touch ~/.bashrc [root@vpsadmin ~]# export VISUAL=nano [root@vpsadmin ~]# source ~/.bashrc [/code] So, now if you do 'crontab -e' it will work as it should [code] [root@vpsadmin ~]# crontab -e no crontab for root - using an empty one crontab: no changes made to crontab [/code]
Read More

Freshclam daemon not running

CentOS, How to, Linux
Normally, I have two things on every Linux box so that I know whats going on NAGIOS monitoring (nrpe) Logwatch Today, I got something in my logwatch email and it was strange because just the other day, I upgraded the clamav to latest version using epel reo. [code title="This is what I got in logwatch today" highlight="3,4,5"] --------------------- clam-update Begin ------------------------ The ClamAV update process (freshclam daemon) was not running! If you no longer wish to run freshclam, deleting the freshclam.log file will suppress this error message. ---------------------- clam-update End ------------------------- [/code] It appears that the latest version has some permission issues on the log file because when I try to run freshclam on command line I get this [code]root@cpanel [~]# freshclam ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check…
Read More

Install htop

CentOS, How to, Linux, Reviews, Tips and Tricks, Ubuntu
[caption id="attachment_1147" align="aligncenter" width="300" caption="htop - an alternative to linux top"][/caption] htop is a sleek utility that allows you to interactively view processes running in a linux box. I can safely say its a good alternate to 'top' To install htop just run this after installing epel repo [code]yum install htop[/code]
Read More

Installing EPEL repo

CentOS, How to
Installing EPEL repo in CentOS is simple, if you do not know what EPEL is, read more about it here. [code]rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm[/code] To configure epel or disable it use [code]nano /etc/yum.repos.d/epel.repo[/code] and then switch the config enabled to 0 (or vice versa) Don't forget to do the following [code]yum clean all[/code]
Read More

Ubuntu – Unable to load dynamic library ‘/usr/lib/php5/20090626+lfs/sqlite.so’

Linux, Tips and Tricks, Tutorials, Ubuntu
The other day, I was getting this weird error [code]PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/sqlite.so' - /usr/lib/php5/20090626+lfs/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0[/code] Fix it by doing this [code]root@beta:~# rm -fr /etc/php5/conf.d/sqlite.ini[/code] Because this extension does not exist, you can verify it by running this, you will see that there is already sqlite3.ini file there [code]root@beta:~# ls -lh /usr/lib/php5/20090626+lfs/ | grep sqlite[/code]
Read More

Native Screenshots in Android Ice Cream Sandwich

Android, Personal
Like native Panoramic mode in the Android Ice Cream Sandwich camera (Android v 4.0.4), I also have Native screenshots capability (just didn't knew how to use it until 3 weeks ago) with my OTA update to ICS. All I have to do is, hit the power and the volume down key at once to take the screenshot. [caption id="attachment_1124" align="aligncenter" width="480" caption="Uninstalling "No Root Screenshot It" since Android Ice Cream Sandwich has native screenshot"][/caption] hence uninstalled "No Root Screenshot It".
Read More

Review: The Avengers Live Wallpapers for Android

Android, Personal, Reviews
So, I installed the The Avengers Live Wallpapers for my Android Phone since it was on Google Play's (previously known as Google Market) feature list [caption id="attachment_1106" align="aligncenter" width="480" caption="The Avengers Live Wallpaper as featured on Google Play"][/caption] Almost immediately after installing it, I could see annoying little nag screens on every screen unlock, like the one you can see in the screenshot below. [caption id="attachment_1107" align="aligncenter" width="480" caption="The Avengers Live Wallpaper nag screens"][/caption] Which is pretty nasty way to convince me to buy the pro version. I uninstalled it right away. I highly recommend everyone not to install it on their cell else you'll have to uninstall it later. Update: I have posted a review on Google Play, you can read it here
Read More

TechieVPS Review

Reviews
So, I was tempted by one posting on WHT a few months ago but it was Rus Foster's who posted about this new web outlet. The specs and the price was great. I opted for quarterly and it dropped to $2.5/mo with the following specs 250MB memory 10GB storage 1TB of data transfer 1 x IPv4 No IPv6 at the moment XEN-HVM / SolusVM Yes, its the same UK2 Group which also owns VPS.NET, ThurstVPS.com etc. At first the test results were very good and tempting but I wanted to see how well it goes before putting something serious on it. Support is decent, replies within 15-20minutes. After using it (idling) for the last 4 months, I must say that the server's performance has degraded a lot and this is…
Read More

EasyPaisa Pakistan website showing SQL query

Pakistan, Thoughts
Go to EasyPaisa Pakistan and go to EasyPaisa Shop --> Find an Easypaisa Merchant and once you are there, search for something and hit "Submit" [caption id="attachment_1095" align="aligncenter" width="681" caption="Telenor EasyPaisa "Find an Easypaisa Merchant" search form"][/caption] On the new page with listing, select Control+A or highlight the page with a mouse to see a "debug info" SQL query right there in white text. I really do wish someone does not use the info to plan an SQL injunction [caption id="attachment_1096" align="aligncenter" width="300" caption="Telenor EasyPaisa "Find an Easypaisa Merchant" search results with SQL query shown on page"][/caption] [caption id="attachment_1097" align="aligncenter" width="584" caption="FULL VIEW - Telenor EasyPaisa "Find an Easypaisa Merchant" search results with SQL query shown on page"][/caption]
Read More