Friday, 23 August 2013

Configure Proxy server


Configure Proxy server

Configuration Ubuntu :
(Three Steps to configure proxy server)

Go etc -> apache2 -> sites-available

    <VirtualHost *:80>
        ServerName pinakin
        ServerAdmin webmaster@localhost

         <Proxy *>
                Order deny,allow
                Allow from all
        </Proxy>
        ProxyRequests Off
        ProxyPass / http://localhost:8069/
        ProxyPassReverse / http://localhost:8069/
        #ProxyHTMLURLMap / http://localhost:8069/ /http://pinakin/

        ErrorLog /var/log/apache2/webclient-error.log
        CustomLog /var/log/apache2/webclient-access.log combined
    </VirtualHost>



Step 1 : Install Apache 2
   
      -  $ sudo apt-get install apache2
                 [sudo] password for tiny:
                 Reading package lists... Done
                 Building dependency tree    
                 Reading state information... Done
                 apache2 is already the newest version.
                 The following packages were automatically installed and are no longer required:
                 appmenu-gtk linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic libxdot4
                 Use 'apt-get autoremove' to remove them.
                 0 upgraded, 0 newly installed, 0 to remove and 189 not upgraded.

Step 2 : Give permission to edit and enable module proxy, header or etc

     -  $ sudo chmod 777 /etc/apache2/sites-available/pinakin
   
     -  $ sudo a2enmod headers
               Enabling module headers.
               Run '/etc/init.d/apache2 restart' to activate new configuration!
     -  $ sudo a2enmod proxy
               Enabling module proxy.
               Run '/etc/init.d/apache2 restart' to activate new configuration!
     -  $ sudo a2enmod proxy_connect
               Considering dependency proxy for proxy_connect:
               Module proxy already enabled
               Enabling module proxy_connect.
               Run '/etc/init.d/apache2 restart' to activate new configuration!
     -  $ sudo a2enmod proxy_ftp
               Considering dependency proxy for proxy_ftp:
               Module proxy already enabled
               Enabling module proxy_ftp.
               Run '/etc/init.d/apache2 restart' to activate new configuration!
     -  $ sudo a2enmod proxy_http
              Considering dependency proxy for proxy_http:
              Module proxy already enabled
              Enabling module proxy_http.
              Run '/etc/init.d/apache2 restart' to activate new configuration!
     -  $ sudo a2enmod ssl
              Enabling module ssl.
              See /usr/share/doc/apache2.2-common/README.Debian.gz on how to configure SSL and
              create self-signed certificates.
              Run '/etc/init.d/apache2 restart' to activate new configuration!
     -  $ sudo a2ensite default-ssl
              Enabling site default-ssl.
              Run '/etc/init.d/apache2 reload' to activate new configuration!
     -  $ sudo a2dissite
              000-default  default-ssl
     -  $ sudo a2dissite 000-default
              Site default disabled.
              Run '/etc/init.d/apache2 reload' to activate new configuration!
     -  $ sudo a2ensite endicus
              Enabling site endicus.
              Run '/etc/init.d/apache2 reload' to activate new configuration!
     -  $ sudo /etc/init.d/apache2 restart
             \Syntax error on line 12 of /etc/apache2/sites-enabled/endicus:
              Invalid command 'ProxyHTMLURLMap', perhaps misspelled or defined by a module not
              included in the server configuration
     -  $ sudo /etc/init.d/apache2 restart
             Syntax error on line 12 of /etc/apache2/sites-enabled/endicus:
             Invalid command 'ProxyHTMLURLMap', perhaps misspelled or defined by a module not                      included in the server configuration
     -  $ sudo /etc/init.d/apache2 restart
             * Restarting web server apache2              
            waiting
            [ OK ]

Step 3 : To show list of hosts available

     -   $ sudo nano /etc/hosts
              [sudo] password for tiny:


127.0.0.1       localhost.localdomain   localhost
::1     test    localhost6.localdomain6 localhost6
127.0.1.1       test
127.0.0.1       pinakin
127.0.0.1       v6
127.0.0.1       v7



..Enjoy..

Thursday, 15 August 2013

Work with analytic Distribution in OpenERP


Analytic Distribution

Analytic Distribution is mainly used for spreading/dividing your expense/income in various analytic account (i.e. cost account) in OpenERP.
Work with analytic Distribution in OpenERP

There are various application of analytic distribution in real business case.
Let's take one business case in which a company wants to distribute it's income between various departments:
A IT company provide consultancy services for the software solution.
The company is interested to divide it's income real-time between it's main three departments 

1. Analysis and Design 2. Coding and testing 3. Deployment.

It also wants that when customer invoice is created for particular client PROJECT, the invoice amount will be divide in these three departments as below:

1. Analysis and Design: 50%
2. Coding and testing : 30%
3. Deployment : 20%
You can easily configure this requirement in OpenERP using Analytic Distribution.
Just create three analytic account (Analysis and Design a/c, Coding and testing a/c, Deployment a/c). Make sure that the parent account of these accounts is the client project's analytic account.
Now configure Analytic Distribution by adding these three analytic accounts with their respective part in percentage.
Add this analytic distribution at the time of encoding customer invoice line.
Now validate that invoice and check the "Analytic Chart of Account" in order to check the effect of Analytic Distribution.


..Enjoy..

Monday, 22 July 2013

Unable to create lead from email



Hello All,

I think you all are facing problem of lead/helpdesk. As its not created automatically mail.

You have configured your mail server correctly action to create lead correctly set but still all
mail are not fectched or all mails are not create lead/helpdesk right ?

Some mails create messages instead of new lead ?

So, there may be chances you have configured mail server thats silently broken.

So, avoid this kind of stuff you can just check your mail server and check your aliases both are same , means here i give you example.

in your mail server : nayi.pinakin@gmail.com for fetching incoming mail.

now in your users if there is similar 'nayi.pinakin' than its create problem.

So, check your aliases and be sure there is fetch mail server and user are not same.

..Enjoy..

Sunday, 14 July 2013

Google Alert



Do you know google alert ?

When you are about to search something but there is no any related document still published ,
in this case you can create google alert that will alert you if there is similar like document on web.

What a fantastic facility by Google !!!


So, what we say  "Thanks Google !!"

http://www.google.co.in/alerts/


View Pinakin Nayi's profile on LinkedIn

Thursday, 11 July 2013

Work with different address in OpenERP 7.



Work with different address in OpenERP 7.

OpenERP 7 gives you facility so you can set different addresses.
There are mainly three types of addresses used in any company there are as follow :

- Main company address
- Invioce Address
- Shiping Address


Steps :

 - Create one customer set it as company .
 - add address as company address
 - Create new conact (under customer form contact Tab)
 - Choose address Type and define different addresses .

Here i created video that will showing same.



..Enjoy..

Wednesday, 10 July 2013

Install web-cam on your ubuntu machine




Do you wanna install web-cam on your ubuntu machine ?

Just run one command and you can enjoy ...



Go to Application > Accessories  > Terminal
Type command :

 sudo apt-get install cheese

After installation :

Go to Application > Sound & video > Cheese Webcam Booth

.. Enjoy ...

Tuesday, 9 July 2013

How to increase your PC speed through swap memory ??



How to increase your PC speed through swap memory ??

Specially in UBUNTU :

Here i described some of step that all are helpful to you to create swap memory and of course speed up your PC.

Check for Swap Space



swapon -s

An empty list (for first time if there is no any already created swap):
Filename    Type  Size Used Priority

Create and Enable the Swap File


Now it’s time to create the swap file itself using the dd command :
sudo dd if=/dev/zero of=/swapfile bs=1024 count=512k

“of=/swapfile” designates the file’s name. In this case the name is swapfile. 

Subsequently we are going to prepare the swap file by creating a linux swap area:
sudo mkswap /swapfile

The results display something like:
Setting up swapspace version 1, size = 262140 KiB
no label, UUID=103c4545-5fc5-47f3-a8b3-dfbdb64fd7eb

Finish up by activating the swap file:
sudo swapon /swapfile

You will then be able to see the new swap file when you view the swap summary.
swapon -s
Filename    Type  Size Used Priority
/swapfile                               file  262140 0 -1

This file will last on the virtual private server until the machine reboots. 
You can ensure that the swap is permanent by adding it to the fstab file.

Open up the file:
sudo nano /etc/fstab

Paste in the following line:
 /swapfile       none    swap    sw      0       0 

..Enjoy..