Thursday, February 3, 2011

Basic Linux Network Setup


Basic Linux Network Setup.

To change IP and make network up:

ifconfig eth0 10.50.110.205 netmask 255.255.255.0 up
This make the NIC to have an ip address

To add default route:

route add default gw 10.50.110.1
This makes the IP packets to flow through the gateway

To resolve name:

vim /etc/resolve.conf   (add nameservers or a local search)


Friday, January 21, 2011

SugarCRM as a Matrimony Website

I was thinking of having Matrimony website for our community needs. I found SugarCRM as a better framework for the same.

http://matrimony.musugundan.com

Another Open Source benefiting the community.

Better termed to be as Open Source Matrimonial Software.

Friday, December 31, 2010

Apache Error PHPMotion The requested URL /upload-media was not found on this server

When you setup PHPMotion video website you will encounter the following error first,

The requested URL /upload-media was not found on this server.

It happens due to the error in Apache Config. Add the following Directory Element to the config file.

<Directory "/var/www/htdocs/htdocs">

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

</Directory>



The above directory entry assumes that you have installed phpmotion in /var/www/htdocs/htdocs.

It all happens since .htaccess is denied to run from those directories.

Thursday, December 16, 2010

Worked in Command Line but not through Apache

If something works locally and if that is not working through Apache or outside of the box in a linux system. It cab be of two problems.

1. iptables
2. selinux


With iptables, mostly outgoing connection will not be a problem if the NAT is set properly.
SELinux works on top of it.

setsebool -P httpd_can_network_connect=1

Will all outside the box connectivity with Apache or any other resources.

Add VMware Tools into CentOS 5.5

Sometimes, adding an existing software can be of pain with less documentation. This is one the scenario I had to face it. Lab manager from VMWare provides easy spinning of virtual servers, to get the template complete you need to get the necessary tools installed before you publish. When I click on install, it actually mounts the ISO to the directory but it does not installs it.

find . | grep VMware
mount (found dev)  localdir
cp VMware....  ~/
tar zxvf VMware.....tar.gz
cd vmware-tools-distrib
./vmware-install.pl


You are done. It installs all the Guest Additions before you publish the machine template.

Friday, December 10, 2010

Splitting PCAP or CAP Files

Tool that comes with Wireshark has inbuilt split of the captures. In case if you set the file to higher size, then you can split the file as below.


C:\Program Files\Wireshark\editcap.exe  -c numberofpackets   infile outfile

In linux,

path of wireshark in most of the systems will be in the PATH

editcap -c numberofpackets infile outfile

should split the files into smaller size.

Wednesday, October 20, 2010

Need Digital Frame From Apple

One of the things I liked from Apple Technologies, every product works good for layman without much difficulty.

Apart from all the range of products like mp3 players to iPod, phone to iPhone, tablet to iPad, tv to AppleTV etc., Like this I want to see something like iFrame just to see pictures in the wall. Ideally I would like to see 6 to 23 inch screens to see the clarity of the pictures taken these days. I'm not convinced with any of the manufactures so far.

Specifications:

  1. 6 to 23 inches
  2. Update over the wifi
  3. Physical Network Capable
  4. Auto Contrast
  5. Video Capable
  6. Read the images from rss feeds, standard hosting websites.
  7. Touch screen settings