Tuesday, 24 December 2013

Solution to We couldn't complete your purchase using card MasterCard error in PayPal

If you are getting link a new debit or credit card to make an instant payment error or we couldn't complete your purchase using card MasterCard error while paying through paypal by using Debit Card means actually there is Problem with card or You are Paying in Wrong Currency means order in Dollar you are paying...
Read More

Friday, 20 December 2013

Solution to change Network device Name (eth0) in CentOS, Fedora Linux

Open the /etc/udeve/rules.d/70-persistent-net.rules and change NAME as your require. cat /etc/udev/rules.d/70-persistent-net.rules  # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule...
Read More

Tuesday, 17 December 2013

Rocks Cluster : untrusted X11 Warning Message when SSH X11 compute Nodes

When we login ssh with X11 from rocks  master node to computer node it doesn't allow X11 to forward as : $ ssh node10 -X Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. Last login: Tue Dec 17 20:34:52 2013 from test.rocks.com Rocks...
Read More

Monday, 16 December 2013

Installation of GCC 4.8.2 compilers on CentOS 6 x86_64

Before Installing GCC 4.8.2  get packages and pre-requisties : GCC 4.8.2 http://mirrors.ispros.com.bd/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2 Pre-requesties : MPC  http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz MPFR http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.bz2 GMP https://gmplib.org/download/gmp/gmp-5.1.3.tar.bz2 ISL ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/infrastructure/isl-0.11.1.tar.bz2 CLOOG ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/infrastructure/cloog-0.18.0.tar.gz Install...
Read More

Friday, 20 September 2013

Service modules_dep in Linux Enable or Disable

Service modules_dep in Linux Enable or Disable - Enable it It is one-time bootup script, not a daemon. So it does not consume resources after bootup. You can browse its source code at /etc/init.d/modules_dep It's a small script that fixes module.dep for iptabl...
Read More

Saslauthd Linux Service enable or disable

Saslauthd Linux Service disable or enable is depend on your postfix saslauthd is a daemon process that handles plaintext authentication requests on behalf of the SASL library Postfix for SMTP Authentication using SASL for this saslauthd necessary so if you are running postfix then enable Saslauthd service otherwise disable...
Read More

Thursday, 5 September 2013

Solution : DBus error org.gtk.Private.RemoteVolumeMonitor.Failed:An operation is already pending

If you get Unable to mount usb drives and getting DBus error org.gtk.Private.RemoteVolumeMonitor.Failed:An operation is already pending like below Solution is Do as root [root@sys ~]# cd /media/ [root@sys media]# ls -a .  .....
Read More

Wednesday, 4 September 2013

Which services should be disabled in Linux

To enhance performance you can disable some services in Linux system check below information to disable unimportant services ----------------------------------------------------------------- NetworkManager  0:off   1:off   2:on    3:on    4:on    5:on    6:off You can do...
Read More

Saturday, 31 August 2013

How to prevent accidental delete rm -rf * in Linux

To prevent accidental delete rm -rf * in Linux by different ways If you want to prevent any important directory deleted accidental Create a file named -i in that directory. How can such a odd file be created? Using touch -- -i or touch ./-i Now try rm -rf *: [root@server]# touch {1..4} [root@server]# touch -- -i [root@server]#...
Read More

Thursday, 29 August 2013

Solution : Check Variable in Linux Bash is Float or Interger

Hi, Here solution for checking a variable in Linux Bash is Float or Integer by using grep. ---- file :  test.sh function check_int(){ echo $1 | grep "^[0-9]*$" > /dev/null if [ $? -ne 0 ]; then echo $2 : $1 is not a number;         else                ...
Read More

Wednesday, 28 August 2013

Create Fake Swap in OpenVZ VPS if you get swapon failed: Operation not permitted Error

if you get swapon failed: Operation not permitted Error even if you run as root it is because in your VPS swap creation is not allowed follow below steps to Create Fake Swap in OpenVZ VPS [root@server] free -m               total       used       free Mem:  ...
Read More

How to Copy with overwrite in Linux

To copy content with default overwrite in linux use below command  [root@server1] yes | cp -rf directory1/*  /home/director...
Read More

How to restrict download speed in wget

To restrict download speed in wget use below command wget http://wordpress.org/latest.zip --limit-rate=500k where --limit-rate=500k speed ...
Read More

How to Enable .htaccess and Verify if .htaccess file is running

Step 1 : changes in the .htaccess should take effects if you change .conf  file of apache like below <Directory ..>     ...     AllowOverride None     ... </Directory> Should be changed to <Directory ..>     ...     AllowOverride All     ... </Directory> Step...
Read More

Solution: Install/Update Wordpress plugins without providing FTP access

Hi if you don't have FTP access to your wordpress server yow follow below steps to Install/Update Wordpress plugins from wordpress admin panel step1 : Change "wp-content" folder permissions to 777 sudo chmod -R 777 wp-content step2 : In "wp-config.php" file add define('FS_METHOD', 'direct'); example : ...... ...... /**...
Read More

Wednesday, 21 August 2013

Solution : Making of Bootable USB live from Open Suse 12.3 ISO

Hai, Here is the solution for the opensuse bootable usb live. Download the Opensuse 12.3 from : http://mirror1.hs-esslingen.de/pub/Mirrors/ftp.opensuse.org/distribution/12.3/iso/openSUSE-12.3-GNOME-Live-i686.iso  Now  login as root in any linux machine  $ cd < location of folder of iso>  $ isohybrid...
Read More

Tuesday, 20 August 2013

Solution : SQUID PROXY - NCSA AUTHENCIATION PROBLEM

SQUID PROXY SERVER CONFIG FILE: sample   /etc/squid3/squid.conf : ------------------------------- auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd auth_param basic children 5 auth_param basic realm Squid proxy with NCSA auth_param basic credentialsttl 2 hours auth_param basic casesensitive off acl...
Read More

Wednesday, 14 August 2013

PUTTY command line ssh login with plink

First we need Putty in Linux ?      Download the PUTTY source code file from :             http://the.earth.li/~sgtatham/putty/latest/putty-0.63.tar.gz After that we need build that package. we need gcc and gcc-devel packages, if you want gui we need gtk-2 packages $  tar...
Read More

Sunday, 4 August 2013

Solution : javac command not found in Linux

Hi if you get javac command not found in Linux even you have java-open jdk installed means java-devel not there Install java-devel In Fedora yum install java-devel In Ubuntu apt-get install java-dev...
Read More

Steps to Sign a JAR file using self signed Certificate

To Sign a JAR file using self signed Certificate follow below steps keytool come with Java, so install Java First Step1 : Create .jar file from .class file C:\javaapp> jar cvf VideoANTyd.jar VideoANTyd.class Step2 : Create a Key by using key tool C:\javaapp>keytool -genkey -alias selfsigned -keyalg RSA -keysize...
Read More

Thursday, 1 August 2013

Simple and Best Linked List example in C

Hi, Below linked list example is taken from http://www.macs.hw.ac.uk/~rjp/Coursewww/Cwww/linklist.html it is easy and working properly. I did small modifications to it This example is single linked list #include<stdlib.h> #include<stdio.h> struct list {    int val;    struct list *...
Read More

Solution : Implicit Declaration Of Function malloc error in Linux Kernel

Hi if you get Implicit Declaration Of Function malloc error in Linux Kernel then solution is use vmalloc or kmalloc kmalloc: Best used for fast allocations that are smaller than a page (PAGE_SIZE, 0x1000 on most architectures). It doesn't involve mapping memory, so you get the memory straight from the kernel's 1:1 physical...
Read More

Tuesday, 30 July 2013

Solution: Bind Failed Permission Denied error in Linux

if you get Bind Failed Permission Denied error in Linux for different application like "iperf" etc Solution is :  Disable SeLinux Below steps show how to disable SELINUX To test SeLinux is running or not [root@center /]# selinuxenabled && echo enabled || echo disabled enabled So SELINUX is Enabled To stop...
Read More

Monday, 29 July 2013

How to Find File Location in Linux

This post explains How to Find File Location in Linux Find file in home directory [root@sys ~]# find /home -name "finename.txt" Find file in entire system [root@sys ~]# find / -name "filename.txt" Find file containing perticular word example httpd [root@sys ~]# find /etc -name "*httpd*" Find files of...
Read More

Unable to Login as root authentication failure error in Linux

If you get Unable to Login as root authentication failure error in Linux Modify two files  1. vi /etc/pam.d/gdm-password  in this file put comment on line "auth        required      pam_succeed_if.so user != root quiet" like below auth     [success=done ignore=ignore...
Read More

Thursday, 25 July 2013

Steps to Compile Linux Kernel with Different Configuration Options

Below Steps describe How to Compile Linux Kernel with Different Configuration Options 1. Download Kernel from https://www.kernel.org/  download tar.xz file Example:https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.3.tar.xz 2. Extract tar.xz file tar -xvf linux-3.10.3.tar.xz 3. Goto Extracted folder cd linux-3.10.3 4....
Read More

Wednesday, 3 July 2013

Upgrade Fedora 18 to Fedora 19

Fedora 19 (release 03 July 2013) : First we need fedup software to update the fedora 18 to fedora 19 1) install fedup software by yum       #  yum -y install fedup 2) Now it time to start the update, before that close all applications ( because it reboot after downloading the packages ).  Using...
Read More

Friday, 26 April 2013

Solution : PHP Warning: mysql_connect(): No such file or directory

If you get PHP Warning: mysql_connect(): No such file or directory and unable to connect mysql through php then change localhost to 127.0.0.1 while connecting to database example: $connection = mysql_connect('localhost', 'root', 'password'); to $connection = mysql_connect('127.0.0.1', 'root', 'password'...
Read More

Wednesday, 10 April 2013

Solution : The mysqli extension is missing. Please check your PHP configuration

if you get The mysqli extension is missing. Please check your PHP configuration error in phpmyadmin follow two steps 1. install php-mysql in redhat , fedora yum install php-mysql in ubuntu apt-get install php-mysql 2. restart apache server restart mys...
Read More

Tuesday, 9 April 2013

Steps to Install Python3 in Linux through Command Line

To Install Python3 in linux through Command line follow below commands Dependencies for Python3 is gcc and some times zlib-devel so install these first in redhat ( RHEL ), fedora etc commands are root@bt:~# yum install gcc root@bt:~# yum install zlib-devel in Ubuntu, Linux Mint etc commands are root@bt:~# apt-get install gcc root@bt:~#...
Read More

Saturday, 6 April 2013

Solution: Unable to access mysql server of Amazon ec2 instance remotely

If you have problem in accessing mysql server server publicly or remote even in the security group if you open mysql port 3306 in inbound rules. to solve this problem simply stop iptables. First check port 3306 whether it is Listining or not  [root@ip-10-142-194-252 ~]# netstat -ant Active Internet connections...
Read More

Solution: Unable to access httpd server on Amazon ec2 instance

If you have problem in accessing http server publicly even in the security group if you open http port 80 in inbound rules. to solve this problem simply stop iptables. First check port 80  whether it is Listining or not  [root@ip-10-142-194-252 ~]# netstat -ant Active Internet connections (servers and established) Proto...
Read More

Saturday, 30 March 2013

Solution: PHP setcookie Warning: Cannot modify header information - headers already sent

Solution: PHP setcookie Warning: Cannot modify header information - headers already sent to avoid this problem add ob_start() at beginning of php and add ob_end_flush() at end of php code like below <?php     ob_start(); // Initiate the output buffer //your code     ob_end_flush(); // Flush...
Read More

Wednesday, 27 March 2013

How to Flush route table in Linux

To remove or Flush all entries in route table the command used is root@system1:~#  ip route flush table main Run Above command as ro...
Read More

Friday, 22 March 2013

PHP Replace new lines, tabs and multiple spaces with single space

preg_replace('/\\s+/', ' ',$data) used to Replace new lines, tabs and multiple spaces with single space in PHP example: <?php $data = 'Hi     tab i am  new line    more                spaces'; $data= preg_replace('/\\s+/', ' ',$data); echo $data; ?> Output: Hi...
Read More

Monday, 18 March 2013

Upgrade Cent OS from any version to Any version

To Upgrade CentOS the common command used is yum update. This is used to Upgrade Cent OS from any version to Any version. command: As a Root root@system1# yum upda...
Read More

Find the size of folders in linux

Finding the size of a directory and finding the amount of free disk space that exists on your machine. The command you would use to find the directory size is ' du '. And to find the free disk space you could use ' df '. $ du Gives you a list of directories that exist in the current directory along with their sizes. The last...
Read More

XOR of Hexadecimals in C program Example

To do XOR in in C the operator used is "^" #include<stdio.h> int main() {  int x;  int y;  int res;  printf("\n Please enter the value for first number in hex format:");  scanf("%x",&x); //reading hexadecimal value  printf("\n Please enter the value for second number in hex format:");  scanf("%x",&y);  res=x^y;  printf("\n...
Read More

Solution: Access Variables in Different C files

To access variables in different C files, check below example header.h  extern int a; file1.c #include</root/path/header.h> int a; a = 20; file2.c #include</root/path/header.h> printf("a value is %d",a); Note: if you compile individual file and check then you may get error  Compile like: gcc file1.c file2.c...
Read More

Solution: warning: ISO C90 forbids mixed declarations and code

If you get above warning means in your code operation code in between deceleration see below example Invalid Code: main(){ int a; a = function1(); int b; b = function2(); } Valid Code: main(){ int a; int b; a = function1(); b = function2(); }  So write all declarations one pla...
Read More

Tuesday, 12 March 2013

Set Up SCTP in Linux From SCTP Module

Fedora has SCTP kernel as the kernel module, kernel recompile is not needed for our case. Instead, the SCTP kernel module is simply needed to be loaded into the RAM memory on the Fedora with the command ‘modprobe’. The command ‘modprobe SCTP’ plays...
Read More

Sunday, 10 March 2013

Jquery Mobile header footer moving problem while click

This post will show how to avoid header, footer moving up and down while clicking to avoid this problem add data-tap-toggle="false" at header and footer example: <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>App</title> <meta content="width=device-width, minimum-scale=1,...
Read More

Thursday, 7 March 2013

Upgrade Backtrack 5 R2 to R3

To upgrade Backtrack 5 R2 to R3 follow below steps System@bt# sudo apt-get update && apt-get dist-upgrade For 32 bit Systems System@bt# apt-get install libcrafter blueranger dbd inundator intersect mercury cutycapt trixd00r artemisa rifiuti2 netgear-telnetenable jboss-autopwn deblaze sakis3g voiphoney apache-users...
Read More

Solution : Backtrack 5 apt-get upgrade error var/lib/dpkg/info/w3af.postins

If you ger below error ,simply download missing file to /tmp folder system@bt:~# apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done The following packages have been kept back:   smartphone-pentest-framework 0 upgraded, 0 newly installed, 0...
Read More

Solution : dpkg: warning: parsing file 'magic tree':error in Version string 'r1643-bt0': version number does not start with digit

If you get error like below Simple remove packages which are causing error                                            dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5812 package 'magictree':  error...
Read More

Solution : Error while processing magictree_r1802-bt0_all.deb Sub-process /usr/bin/dpkg returned an error code (1)

If you get Error Like Below Errors were encountered while processing:  /var/cache/apt/archives/magictree_r1802-bt0_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Simply delete the file which causing Error system1# rm -rf /var/cache/apt/archives/magictree_r1802-bt0_all.de...
Read More

Add HTTP Proxy to SVN - Subversion

Below Instructions show how to setup proxy for SVN -Subversion system1# cd ~/.subversion system1# ls auth  config  README.txt  servers Edit servers file system1# gedit servers Add Below Lines to servers file [global] http-proxy-host = your_ipaddress http-proxy-port = 3128 http-proxy-compression...
Read More

Tuesday, 19 February 2013

Update table row in MySQL

The DQL Syntax to update row in MySQL was UPDATE table_name SET column1=value, column2=value2 WHERE some_column=some_valu...
Read More

Python read all rows of MySQL table

Below python code print all first column values of table in MySQL query="SELECT * from table_name" cursor.execute(query) row = cursor.fetchone()  while row is not None: print(row[1]) row = cursor.fetchone(...
Read More
Here We Write The Problems we face at different situations and Solutions to those problems.