phpmyadmin access problem and change server from URL

2012-09-30 1 min read Database Fedora
I was having issues with one of the phpmyadmin setups. The first server defined in the config file was not accessible and the theme that I was using was not allowing me to change the server from the first page. This resulted in a state where I was not able to access phpmyadmin in any way. I could not connect to any of the servers. And thus had to hack my way in to phpmyadmin to find out how to connect to other servers from URL. Continue reading

Linux hardware details.

2011-11-28 3 min read bash Learning Linux
Here is one of the scripts that I found on the net while searching for something … Note the URL for the script in the Description. #!/bin/bash - #=============================================================================== # # FILE: linux_hw.sh # # USAGE: ./linux_hw.sh # # DESCRIPTION: http://www.howtogeek.com/howto/solaris/get-the-processor-type-on-solaris/ # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Amit Agarwal (aka), amit.agarwal@roamware.com # COMPANY: Roamware India Pvt Ltd # CREATED: 09/13/2011 03:57:34 PM IST # Last modified: Sun Oct 30, 2011 04:59PM # REVISION: --- #=============================================================================== function linux_hw_CPU { typeset num=0 typeset name=" Continue reading

[Solved] ssh works but scp does not

2011-08-29 1 min read bash Fedora Linux
Image via Wikipedia For quite sometime now, I was having this issue, that for the home system, I was able to connect to is using ssh but it never worked. Fnally after quite some debugging finally I found that the issue was with thebashrc. So, everytime I had to do a scp I would have to move/rename bashrc and do the reverse action after the scp was done. Finally today I fixed it and the solution was very simple. Continue reading

mysql output to an array for easy parsing.

2011-05-11 2 min read bash Database
Today I was looking for some way to put the output of the mysql output in an array in a bash script. Quick google search yeilded to results something like this: 1 <td> <div class="text codecolorer"> output=$(mysql -e "select * from table") </div> </td> </tr> The problem with the above approach is that all the words go into separate index. So if you have a line that has space then that is split into multiple index’s. Continue reading

install all solaris software from http

2011-02-23 1 min read Solaris
If you are behind a firewall and install some software like top or wget then you can not use sunfreeware, and why because ftp is blocked. Now that is not the case any more, you can go the http mirror site of sunfreeware and here is the link for the same http://ftp.sunfreeware.com/ftp/pub/freeware/i386/5.10/ Note: you just need to change the words in bold for sparc or i386 and version of the solaris. Continue reading

Using ssmtp to send mail using gmail.

2011-02-19 1 min read Fedora Linux
First install the package ssmtp using the command: 1 <td> <div class="text codecolorer"> sudo yum install ssmtp </div> </td> </tr> Open the configuration file for ssmtp as root user: 1 <td> <div class="text codecolorer"> vim /etc/ssmtp/ssmtp.conf </div> </td> </tr> Make the following changes to the configuration file: root=**username**@gmail.com mailhub=smtp.gmail.com:587 hostname=**username**@gmail.com UseSTARTTLS=YES AuthUser=username AuthPass=password FromLineOverride=yes In order to make the default (root) “from” field be the server name, edit the /etc/ssmtp/revaliases file as root user : Continue reading

\[Solution\] Solaris issue with wget not resolving Domain name (DNS name lookup failure)

2010-08-09 2 min read Solaris
Today I was working with <a class="zem_slink" title="Solaris (operating system)" rel="homepage" href="http://oracle.com/solaris">Solaris and after I had set up the <a class="zem_slink" title="NIS+" rel="wikipedia" href="http://en.wikipedia.org/wiki/NIS%2B">NIS+, <a class="zem_slink" title="Name server" rel="wikipedia" href="http://en.wikipedia.org/wiki/Name_server">DNS server, IP Address and completing the basic setting. I was using the pkg-get util from the freesunware.com The utility was using wget and it was failing constantly. From the looks of it, it was very clear that the wget utility was unable to find the <a class="zem_slink" title="IP address" rel="wikipedia" href="http://en. Continue reading
Older posts Newer posts