Tuesday, July 7, 2015

Installing Openerp 6.1 on Debian 7.1 x64 (old)

Follow these simple step to install and configure Openerp on Debian
1. update your debian
# apt-get update
# apt-get upgrade

2. install gedit
# apt-get install gedit
3. install postgresql 23.9M (version 9.1.9-1)
# apt-get install postgresql

optional install pgadmin3 if use desktop
# apt-get install pgadmin3
4. configure openerp user
# sudo su postgres
$ createuser openerp
as superuser n
create database y
create new roles y
$ psql -l
$ psql template1
# alter role openerp with password 'openerp';
quit from psql and back to root user (\q enter)
5. install python library
apt-get install python-dateutil python-feedparser python-gdata python-ldap \
    python-libxslt1 python-lxml python-mako python-openid python-psycopg2 \
    python-pybabel python-pychart python-pydot python-pyparsing python-reportlab \
    python-simplejson python-tz python-vatnumber python-vobject python-webdav \
    python-werkzeug python-xlwt python-yaml python-zsi


6. download packaged deb and install by issuing this
# dpkg -i openerp_6.1-latest-1_all.deb
it may take sometimes to install pyhton library required by openerp, wait until it finish.

7. edit file /etc/openerp/openerp-server.conf (password in stap 4)
db_password = openerp

8. run openerp service by issuing
# service openerp start

# service openerp restart

9. run openerp client using browser http://localhost:8069

Note:
Default Installation located at
  • /usr/lib/pymodules/python2.7/openerp/
  • /usr/share/pyshared/openerp

  • /usr/lib/pymodules/python2.7/openerp/addons
  • /usr/share/pyshared/openerp/html_view

Installing LAMP on Debian 7.1 (Wheezy)

Here are steps to install LAMP on Debian 7.1 Wheezy:
1. Open your terminal as a root (Super User)
2. Installing MySQL
# apt-get install mysql-server mysql-client
set password for root (super user)
3. Installing Apache
# apt-get install apache2
4. Install PHP
# apt-get install php5 libapache2-mod-php5
5. Restart your apache2
# /etc/init.d/apache2 restart
6. Search module
# apt-cache search php5
7. Install other modules
# apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
8. Restart your apache2 using step 5, and test your installation using browser with URL http://localhost

Repairing GRUB UEFI Dual Boot Debian 7.1 x64 and Windows 8 x64

Accidentally I failed to install AMD Catalyst 13.6 beta on my Debian 7.1 x64, and I lost my GNOME. For short, I can't recover my GNOME and I reinstall my Debian 7.1 without EFI mood  (my mistake). The Installer can not detect EFI and the only option to install bootstrap loader is MBR.
I can not start both my Debian and Windows. From Bios, I start boot via EFI DVD to start Debian CD Installer. I choose Advanced Option to fix bootstrap location from MBR to EFI Partition (System Reserved), and follow these step:

  1. Update your Debian and run
    # apt-get install grub-efi-amd64
    This command will remove grub package, and choose yes
  2. Configure your GRUB using this command
    # modprobe dm-mod
    # grub-install
  3. Apply your new grub into EFI Partition
    # update-grub
  4. This procedure only fix boot into Debian. To create boot option to load Windows 8 boot manager you need UUID for EFI partition by running
    # blkid
    write down UUID for EFI Partition (it may be label as "System Reserved") with size about 100M-130M.
    for my case UUID is 4842-E4F1
  5. edit file /etc/grub.d/40_custom and at the end of file add
         menuentry "Microsoft Windows 8" {
           insmod part_gpt
           insmod fat
           insmod search_fs_uuid
           insmod chain
           search --fs-uuid --no-floppy --set=root 4842-E4F1
           chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
         }
    the file becomes like this:
         #!/bin/sh
         exec tail -n +3 $0
         # This file provides an easy way to add custom menu entries.  Simply type the
         # menu entries you want to add after this comment.  Be careful not to change
         # the 'exec tail' line above.
         menuentry "Microsoft Windows 8" {
           insmod part_gpt
           insmod fat
           insmod search_fs_uuid
           insmod chain
           search --fs-uuid --no-floppy --set=root 4842-E4F1
           chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
         }
  6. reinstall and reconfigure your grub by issuing :
    # grub-install
    # update-grub
Done, now I have GRUB to my Debian and option to load Windows 8 Boot Manager

Installing Webmin on Debian 7.1 (Wheezy)

Step to install Webmin on Debian 7.1:
1. Download Webmin installer for Debian from www.webmin.com
2. run as root (superuser)
3. install dependency packages
# apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl apt-show-versions
4. install webmin
# dpkg -i ./webmin_1.630_all.deb
5. tes your installation using your browser https://localhost:10000
 Note: Don't forget to create webmin admin group and its user :)

How to create a WHM user without an associated domain

To create a user account in WHM that is not associated with a domain:

  1. Log in to the server as the root user via SSH.
  2. Create a user with the system utility with the following command:
    # adduser [username]
  3. Set a password for the user with the following command:
    # passwd [username]
  4. Create an entry in the resellers file with minimal permissions with the following command:
    # echo "[username]:all" >> /var/cpanel/resellers
  5. Log in to WHM as the root user.
  6. Navigate to Home >> Resellers >> Edit Reseller Nameservers and Privileges.
  7. Select username from the list, Click Submit.
  8. Apply the desired permissions to the user, Click Save.

 Note: replace [username] with Linux user id / login
Src: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/CreateAccountwithoutdomain
CLOSE INFO