Tuesday, July 7, 2015

Installing ODOO 8 in Debian

Odoo was formerly known as OpenERP until May 2014. It was rebranded because version 8 of the software included apps including website builder, e-commerce, point of sale and business intelligence. The software conforms to standard expectations of ERP systems, while providing additional modules beyond the coverage of traditional ERP systems.
These are steps to install ODOO/OpenERP version 8 (latest release) in Debian (in my case):
  1. Add this into your /etc/apt/sources.list
    deb http://nightly.odoo.com/8.0/nightly/deb/ ./
    or
    deb http://nightly.odoo.com/master/nightly/deb/ ./
  2. Install odoo key
    # wget https://nightly.odoo.com/odoo.key
    # apt-key add odoo.key
  3. update by run this command
    sudo apt-get update
  4. install ODOO 8 by run this command
    sudo apt-get install odoo
Source: http://nightly.odoo.com/

Shellshock Vulnerability on Bash Shell

This is how you test your bash shell whether its vulnerable or not for 'shellsock' bug.
Run this on your linux shell (you don't need super user account for this):
 $ env x='() { :;}; echo vulnerable' bash -c "echo this is a test" 
if the result like this:
   vulnerable
   this is a test
then, you need to upgrade your bash version.

Just run (as superuser or sudo)
 # apt-get update
 # apt-get upgrade

It will show bash upgrade like this:
 Get:1 http://security.debian.org/ wheezy/updates/main bash amd64 4.2+dfsg-0.1+deb7u3 [1,501 kB]

After I upgrade my bash, the result becames like this:
   this is a test

I use bash version : GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)

Reference: http://www.debiantutorials.com/how-to-detect-if-your-server-is-vulnerable-to-the-shellshock-bug-and-fix-it/ 

Indonesia Debian Repository (Wheezy)

Instruction
1. copy this configuration to /etc/apt/sources.list
2. choose only one from the options, depend on your location and server availability
3. commented not used options

Configuration source
# do not change
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# option 1
deb http://kambing.ui.ac.id/debian/ wheezy main
deb-src http://kambing.ui.ac.id/debian/ wheezy main
deb http://kambing.ui.ac.id/debian/ wheezy-updates main
deb-src http://kambing.ui.ac.id/debian/ wheezy-updates main

# option 2
#deb http://kartolo.sby.datautama.net.id/debian/ wheezy main
#deb-src http://kartolo.sby.datautama.net.id/debian/ wheezy main
#deb http://kartolo.sby.datautama.net.id/debian/ wheezy-updates main
#deb-src http://kartolo.sby.datautama.net.id/debian/ wheezy-updates main

# option 3
#deb http://kebo.pens.ac.id/debian/ wheezy main
#deb-src http://kebo.pens.ac.id/debian/ wheezy main
#deb http://kebo.pens.ac.id/debian/ wheezy-updates main
#deb-src http://kebo.pens.ac.id/debian/ wheezy-updates main

# option 4
#deb http://suro.ubaya.ac.id/debian/ wheezy main
#deb-src http://suro.ubaya.ac.id/debian/ wheezy main
#deb http://suro.ubaya.ac.id/debian/ wheezy-updates main
#deb-src http://suro.ubaya.ac.id/debian/ wheezy-updates main

# option alternate 
#deb http://http.debian.net/debian wheezy main
#deb-src http://http.debian.net/debian wheezy main
#deb http://http.debian.net/debian wheezy-updates main
#deb-src http://http.debian.net/debian wheezy-updates main

# Debian 7 (flash player adobe)
#deb http://ftp.de.debian.org/debian wheezy main contrib

# Non Free Repository
deb http://ftp.de.debian.org/debian wheezy main non-free

Installing XFCE4 on Debian Wheezy x64

The steps to install XFCE4 on Debian Wheezy x64 are:
  1. To install Xfce, do the following
    # apt-get install xfce4
  2. There are many useful utilities that come with Xfce, to install these
    # apt-get install xfce4-goodies
  3. You also can install xdm to login in start Xfce
    # apt-get install xdm

Configuring LAN in Debian 7 x64 Minimal CLI Only

For dynamic ip address (DHCP), edit file /etc/network/interfaces, add these lines:
auto eth0
iface eth0 inet dhcp
For static ip address, edit file /etc/network/interfaces, add these lines:
auto eth0
iface eth0 inet static
  address 192.168.1.11 -> change with your lan
  netmask 255.255.255.0 -> 
change with your lan
  gateway 192.168.1.1 -> 
change with your lan
  
dns-nameservers 8.8.8.8, 8.8.4.4 -> change or add with your name server
Restart your network service run:
# /etc/init.d/networking restart