installation of openerp server 6.0.2 on ubuntu server 10.04.docx

Upload: doni-ferdinand

Post on 14-Apr-2018

244 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    1/30

    !"

    Bagian I.Setup OpenERP Server#$%&'&(!)&*+,$*!*$-.(!/)$,0123!45#/67!-$*(,'!8(.(,+&!9:$;!)&*&!

    8(:&

    I&*=-!%(-&!8(&

    openerp-server. E&.=,!G&*&!+$*-$%=+!+(8&$*-(!+$*&$*-(!U?C?V!@&,'!%&,@&

    8&*(!>$*-(W>$*-(!-$%$:=.,@&3!+$*=+&.&!-$*(!T?X?!

    2*9'*&.!&):(

    =,+=

    Z$-$*!/)$,0123!(,-+&::&;!-(-+$.!=%=,+=!8&-&*!-&F&?!M(+&!+(8&$*!8&*(!

    \&8.(,]3!\&8.(,(-+*&+9*]?!7&)(!'=,&

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    2/30

    !T

    Langkah 2. Proteksi Server dari serangan penjahat

    A,+=

    )$,&,'

    .$,F&8(!.&-&:&;!F(

    8('&,+(!8$,'&,!)9*+!:&(,?!L&,+(!8$,'&,!)9*+!8(&+&-!VCCCC!-=8&;!G=A,+=

    $ sudo nano /etc/ssh/sshd_config

    #$:&(,!.$,''&,+(!)9*+3!(&!--;?!A,+=

    .$,'$+&;=(!:$%(;!F&=;!.$,'$,&(!5$,@;9-+-3!-(:&-$*>(G$!:&(,,@&!@&,'!&+=*&,,@&!8(-(.)&,!8(!Y(:$!/etc/hosts.deny!&,8!hosts.allow?!2*9'*&.!(,(!-$G&*&!9+9.&+(-!.$.%=&+!8&Y+&*!;9-+!&+&=!()!&88*$--!@&,'!.$,'&$*?!M9,Y('=*&-(!8$,@;9-+-!&8&!

    8(!Y(:$!/etc/denyhosts.conf?!

    #$%$:=.!.$,'(,-+&:!5$,@I9-+-3!)&-+(

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    3/30

    !U

    #SECURE_LOG=/private/var/log/system.log## Debian:SECURE_LOG = /var/log/auth.log########################################################################

    #########################################################################

    # HOSTS_DENY: the file which contains restricted host access information## Most operating systems:HOSTS_DENY = /etc/hosts.deny## Some BSD (FreeBSD) Unixes:#HOSTS_DENY = /etc/hosts.allow## Another possibility (also see the next option):#HOSTS_DENY = /etc/hosts.evil#######################################################################

    ########################################################################## PURGE_DENY: removed HOSTS_DENY entries that are older than this time# when DenyHosts is invoked with the --purge flag

    ## format is: i[dhwmy]# Where 'i' is an integer (eg. 7)# 'm' = minutes# 'h' = hours# 'd' = days# 'w' = weeks# 'y' = years## never purge:PURGE_DENY =## purge entries older than 1 week#PURGE_DENY = 1w## purge entries older than 5 days#PURGE_DENY = 5d

    #######################################################################

    ######################################################################### PURGE_THRESHOLD: defines the maximum times a host will be purged.# Once this value has been exceeded then this host will not be purged.# Setting this parameter to 0 (the default) disables this feature.## default: a denied host can be purged/re-added indefinitely#PURGE_THRESHOLD = 0## a denied host will be purged at most 2 times.#PURGE_THRESHOLD = 2########################################################################

    ######################################################################### BLOCK_SERVICE: the service name that should be blocked in HOSTS_DENY## man 5 hosts_access for details## eg. sshd: 127.0.0.1 # will block sshd logins from 127.0.0.1## To block all services for the offending host:#BLOCK_SERVICE = ALL# To block only sshd:BLOCK_SERVICE = sshd# To only record the offending host and nothing else (if using# an auxilary file to list the hosts). Refer to:# http://denyhosts.sourceforge.net/faq.html#aux#BLOCK_SERVICE =

    #

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    4/30

    !`

    #######################################################################

    ######################################################################### DENY_THRESHOLD_INVALID: block each host after the number of failed login# attempts has exceeded this value. This value applies to invalid# user login attempts (eg. non-existent user accounts)

    #DENY_THRESHOLD_INVALID = 5########################################################################

    ######################################################################### DENY_THRESHOLD_VALID: block each host after the number of failed# login attempts has exceeded this value. This value applies to valid# user login attempts (eg. user accounts that exist in /etc/passwd) except# for the "root" user#DENY_THRESHOLD_VALID = 10########################################################################

    #######################################################################

    ## DENY_THRESHOLD_ROOT: block each host after the number of failed# login attempts has exceeded this value. This value applies to# "root" user login attempts only.#DENY_THRESHOLD_ROOT = 1########################################################################

    ######################################################################### DENY_THRESHOLD_RESTRICTED: block each host after the number of failed# login attempts has exceeded this value. This value applies to# usernames that appear in the WORK_DIR/restricted-usernames file only.#DENY_THRESHOLD_RESTRICTED = 1

    ########################################################################

    ######################################################################### WORK_DIR: the path that DenyHosts will use for writing data to# (it will be created if it does not already exist).## Note: it is recommended that you use an absolute pathname# for this value (eg. /home/foo/denyhosts/data)#WORK_DIR = /var/lib/denyhosts########################################################################

    ######################################################################### SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS## SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS=YES|NO# If set to YES, if a suspicious login attempt results from an allowed-host# then it is considered suspicious. If this is NO, then suspicious logins# from allowed-hosts will not be reported. All suspicious logins from# ip addresses that are not in allowed-hosts will always be reported.#SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS=YES######################################################################

    ######################################################################## HOSTNAME_LOOKUP#

    # HOSTNAME_LOOKUP=YES|NO

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    5/30

    !a

    # If set to YES, for each IP address that is reported by Denyhosts,# the corresponding hostname will be looked up and reported as well# (if available).#HOSTNAME_LOOKUP=YES#######################################################################

    ######################################################################## LOCK_FILE## LOCK_FILE=/path/denyhosts# If this file exists when DenyHosts is run, then DenyHosts will exit# immediately. Otherwise, this file will be created upon invocation# and deleted upon exit. This ensures that only one instance is# running at a time.## Redhat/Fedora:#LOCK_FILE = /var/lock/subsys/denyhosts## DebianLOCK_FILE = /var/run/denyhosts.pid#

    # Misc#LOCK_FILE = /tmp/denyhosts.lock#######################################################################

    ############ THESE SETTINGS ARE OPTIONAL ############

    ######################################################################### ADMIN_EMAIL: if you would like to receive emails regarding newly# restricted hosts and suspicious logins, set this address to# match your email address. If you do not want to receive these reports# leave this field blank (or run with the --noemail option)## Multiple email addresses can be delimited by a comma, eg:

    # ADMIN_EMAIL = [email protected], [email protected], [email protected]#ADMIN_EMAIL = root@localhost########################################################################

    ######################################################################### SMTP_HOST and SMTP_PORT: if DenyHosts is configured to email# reports (see ADMIN_EMAIL) then these settings specify the# email server address (SMTP_HOST) and the server port (SMTP_PORT)##SMTP_HOST = localhostSMTP_PORT = 25########################################################################

    ######################################################################### SMTP_USERNAME and SMTP_PASSWORD: set these parameters if your# smtp email server requires authentication##SMTP_USERNAME=foo#SMTP_PASSWORD=bar#######################################################################

    ######################################################################### SMTP_FROM: you can specify the "From:" address in messages sent# from DenyHosts when it reports thwarted abuse attempts#

    SMTP_FROM = DenyHosts

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    6/30

    !b

    ########################################################################

    ######################################################################### SMTP_SUBJECT: you can specify the "Subject:" of messages sent# by DenyHosts when it reports thwarted abuse attemptsSMTP_SUBJECT = DenyHosts Report

    #######################################################################

    ######################################################################## SMTP_DATE_FORMAT: specifies the format used for the "Date:" header# when sending email messages.## for possible values for this parameter refer to: man strftime## the default:##SMTP_DATE_FORMAT = %a, %d %b %Y %H:%M:%S %z#######################################################################

    ######################################################################

    ## SYSLOG_REPORT## SYSLOG_REPORT=YES|NO# If set to yes, when denied hosts are recorded the report data# will be sent to syslog (syslog must be present on your system).# The default is: NO##SYSLOG_REPORT=NO##SYSLOG_REPORT=YES#######################################################################

    ######################################################################## ALLOWED_HOSTS_HOSTNAME_LOOKUP

    ## ALLOWED_HOSTS_HOSTNAME_LOOKUP=YES|NO# If set to YES, for each entry in the WORK_DIR/allowed-hosts file,# the hostname will be looked up. If your versions of tcp_wrappers# and sshd sometimes log hostnames in addition to ip addresses# then you may wish to specify this option.##ALLOWED_HOSTS_HOSTNAME_LOOKUP=NO#######################################################################

    ######################################################################## AGE_RESET_VALID: Specifies the period of time between failed login# attempts that, when exceeded will result in the failed count for# this host to be reset to 0. This value applies to login attempts# to all valid users (those within /etc/passwd) with the# exception of root. If not defined, this count will never# be reset.## See the comments in the PURGE_DENY section (above)# for details on specifying this value or for complete details# refer to: http://denyhosts.sourceforge.net/faq.html#timespec#AGE_RESET_VALID=5d#######################################################################

    ######################################################################## AGE_RESET_ROOT: Specifies the period of time between failed login# attempts that, when exceeded will result in the failed count for# this host to be reset to 0. This value applies to all login

    # attempts to the "root" user account. If not defined,

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    7/30

    !BC

    # this count will never be reset.## See the comments in the PURGE_DENY section (above)# for details on specifying this value or for complete details# refer to: http://denyhosts.sourceforge.net/faq.html#timespec#AGE_RESET_ROOT=25d#

    ######################################################################

    ######################################################################## AGE_RESET_RESTRICTED: Specifies the period of time between failed login# attempts that, when exceeded will result in the failed count for# this host to be reset to 0. This value applies to all login# attempts to entries found in the WORK_DIR/restricted-usernames file.# If not defined, the count will never be reset.## See the comments in the PURGE_DENY section (above)# for details on specifying this value or for complete details# refer to: http://denyhosts.sourceforge.net/faq.html#timespec#AGE_RESET_RESTRICTED=25d#######################################################################

    ######################################################################## AGE_RESET_INVALID: Specifies the period of time between failed login# attempts that, when exceeded will result in the failed count for# this host to be reset to 0. This value applies to login attempts# made to any invalid username (those that do not appear# in /etc/passwd). If not defined, count will never be reset.## See the comments in the PURGE_DENY section (above)# for details on specifying this value or for complete details# refer to: http://denyhosts.sourceforge.net/faq.html#timespec#AGE_RESET_INVALID=10d#######################################################################

    ######################################################################## RESET_ON_SUCCESS: If this parameter is set to "yes" then the# failed count for the respective ip address will be reset to 0# if the login is successful.## The default is RESET_ON_SUCCESS = no##RESET_ON_SUCCESS = yes######################################################################

    ######################################################################## PLUGIN_DENY: If set, this value should point to an executable# program that will be invoked when a host is added to the# HOSTS_DENY file. This executable will be passed the host# that will be added as its only argument.##PLUGIN_DENY=/usr/bin/true#######################################################################

    ######################################################################## PLUGIN_PURGE: If set, this value should point to an executable# program that will be invoked when a host is removed from the# HOSTS_DENY file. This executable will be passed the host# that is to be purged as its only argument.

    #

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    8/30

    !BB

    #PLUGIN_PURGE=/usr/bin/true#######################################################################

    ######################################################################## USERDEF_FAILED_ENTRY_REGEX: if set, this value should contain# a regular expression that can be used to identify additional

    # hackers for your particular ssh configuration. This functionality# extends the built-in regular expressions that DenyHosts uses.# This parameter can be specified multiple times.# See this faq entry for more details:# http://denyhosts.sf.net/faq.html#userdef_regex##USERDEF_FAILED_ENTRY_REGEX=########################################################################

    ######### THESE SETTINGS ARE SPECIFIC TO DAEMON MODE ##########

    ######################################################################### DAEMON_LOG: when DenyHosts is run in daemon mode (--daemon flag)# this is the logfile that DenyHosts uses to report its status.# To disable logging, leave blank. (default is: /var/log/denyhosts)#DAEMON_LOG = /var/log/denyhosts## disable logging:#DAEMON_LOG =#######################################################################

    ######################################################################### DAEMON_LOG_TIME_FORMAT: when DenyHosts is run in daemon mode

    # (--daemon flag) this specifies the timestamp format of# the DAEMON_LOG messages (default is the ISO8061 format:# ie. 2005-07-22 10:38:01,745)## for possible values for this parameter refer to: man strftime## Jan 1 13:05:59#DAEMON_LOG_TIME_FORMAT = %b %d %H:%M:%S## Jan 1 01:05:59#DAEMON_LOG_TIME_FORMAT = %b %d %I:%M:%S#######################################################################

    ######################################################################### DAEMON_LOG_MESSAGE_FORMAT: when DenyHosts is run in daemon mode# (--daemon flag) this specifies the message format of each logged# entry. By default the following format is used:## %(asctime)s - %(name)-12s: %(levelname)-8s %(message)s## Where the "%(asctime)s" portion is expanded to the format# defined by DAEMON_LOG_TIME_FORMAT## This string is passed to python's logging.Formatter contstuctor.# For details on the possible format types please refer to:# http://docs.python.org/lib/node357.html## This is the default:#DAEMON_LOG_MESSAGE_FORMAT = %(asctime)s - %(name)-12s: %(levelname)-8s %(message)s##

    ######################################################################

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    9/30

    !BV

    ######################################################################### DAEMON_SLEEP: when DenyHosts is run in daemon mode (--daemon flag)# this is the amount of time DenyHosts will sleep between polling# the SECURE_LOG. See the comments in the PURGE_DENY section (above)# for details on specifying this value or for complete details

    # refer to: http://denyhosts.sourceforge.net/faq.html#timespec##DAEMON_SLEEP = 30s########################################################################

    ######################################################################### DAEMON_PURGE: How often should DenyHosts, when run in daemon mode,# run the purge mechanism to expire old entries in HOSTS_DENY# This has no effect if PURGE_DENY is blank.#DAEMON_PURGE = 1h########################################################################

    ######### THESE SETTINGS ARE SPECIFIC TO ################### DAEMON SYNCHRONIZATION ##########

    ######################################################################### Synchronization mode allows the DenyHosts daemon the ability# to periodically send and receive denied host data such that# DenyHosts daemons worldwide can automatically inform one# another regarding banned hosts. This mode is disabled by# default, you must uncomment SYNC_SERVER to enable this mode.## for more information, please refer to:# http:/denyhosts.sourceforge.net/faq.html#sync########################################################################

    ######################################################################### SYNC_SERVER: The central server that communicates with DenyHost# daemons. Currently, denyhosts.net is the only available server# however, in the future, it may be possible for organizations to# install their own server for internal network synchronization## To disable synchronization (the default), do nothing.## To enable synchronization, you must uncomment the following line:#SYNC_SERVER = http://xmlrpc.denyhosts.net:9911########################################################################

    ######################################################################### SYNC_INTERVAL: the interval of time to perform synchronizations if# SYNC_SERVER has been uncommented. The default is 1 hour.##SYNC_INTERVAL = 1h########################################################################

    ######################################################################### SYNC_UPLOAD: allow your DenyHosts daemon to transmit hosts that have# been denied? This option only applies if SYNC_SERVER has# been uncommented.# The default is SYNC_UPLOAD = yes#

    #SYNC_UPLOAD = no

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    10/30

    !Bc

    #SYNC_UPLOAD = yes########################################################################

    ######################################################################### SYNC_DOWNLOAD: allow your DenyHosts daemon to receive hosts that have

    # been denied by others? This option only applies if SYNC_SERVER has# been uncommented.# The default is SYNC_DOWNLOAD = yes##SYNC_DOWNLOAD = no#SYNC_DOWNLOAD = yes##########################################################################

    ######################################################################### SYNC_DOWNLOAD_THRESHOLD: If SYNC_DOWNLOAD is enabled this parameter# filters the returned hosts to those that have been blocked this many# times by others. That is, if set to 1, then if a single DenyHosts# server has denied an ip address then you will receive the denied host.

    ## See also SYNC_DOWNLOAD_RESILIENCY##SYNC_DOWNLOAD_THRESHOLD = 10## The default is SYNC_DOWNLOAD_THRESHOLD = 3##SYNC_DOWNLOAD_THRESHOLD = 3########################################################################

    ######################################################################### SYNC_DOWNLOAD_RESILIENCY: If SYNC_DOWNLOAD is enabled then the# value specified for this option limits the downloaded data# to this resiliency period or greater.#

    # Resiliency is defined as the timespan between a hackers first known# attack and its most recent attack. Example:## If the centralized denyhosts.net server records an attack at 2 PM# and then again at 5 PM, specifying a SYNC_DOWNLOAD_RESILIENCY = 4h# will not download this ip address.## However, if the attacker is recorded again at 6:15 PM then the# ip address will be downloaded by your DenyHosts instance.## This value is used in conjunction with the SYNC_DOWNLOAD_THRESHOLD# and only hosts that satisfy both values will be downloaded.# This value has no effect if SYNC_DOWNLOAD_THRESHOLD = 1## The default is SYNC_DOWNLOAD_RESILIENCY = 5h (5 hours)## Only obtain hackers that have been at it for 2 days or more:#SYNC_DOWNLOAD_RESILIENCY = 2d## Only obtain hackers that have been at it for 5 hours or more:#SYNC_DOWNLOAD_RESILIENCY = 5h########################################################################

    !

    !

    !

    S(

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    11/30

    !B"

    A,+=$*3!:(;&+!-&F&!8(!Y(:$!:9'H!!

    $ tail f /var/log/auth.log

    8&,!+$

    6(:$!:9'!=,+=

    5&Y+&*!()!@&,'!+(8&

    5&Y+&*!-$.=&!()!@&,'!%(-&!&$*!8$,'&,!)$*(,+&;H!

    $ sudo apt-get update$ sudo apt-get dist-upgrade

    Z$-

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    12/30

    !BT

    $ sudo apt-get install postgresql-9.0 libpq-dev$ The libpq-dev package is for compiling wrappers/clients against libpq.

    M9,Y('=*&-(!8$Y&=:+!29-+'*$#fD!&8&!8(!8(*$&'/+,#+&"#33?:)'&*#+,&3/@/+#)+*# KH!

    $ ALTER USER postgres WITH PASSWORD 'password';

    A,+=

    $ \q

    4'&*!8&+&%&-$!29-+'*$#fD!8&)&+!8(&

    $ sudo nano /etc/postgresql/9.0/main/postgresql.conf

    Q&*(!%&*(-!(,(H!

    # Listen_addresses = 'localhost' s fgsdf sdfg sdfg sdfg sdfg sdfg sdfg sdfg sdfg sdfgsdfg

    :&:=!*=%&;!.$,F&8(H!

    listen_addresses = '*'

    M(+&!F='&!;&*=-!*=%&;!%&*(-!(,(H!

    $ # Password_encryption = on

    .$,F&8(H!

    $ password_encryption = on

    #$

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    13/30

    !BU

    [$*($ sudo su - postgres

    #$

    @&,'!-&.&!@&(+=!\9)$,$*)]!F='&H!

    $ createuser --createdb --username postgres --no-createrole --pwprompt openerp$ Enter password for new role: ********$ Enter it again: ********$ Shall the new role be a superuser? (y/n) y

    M$.=8(&,!$*-(!/)$,012!:&(,,@&3!-$%&($*-(W

    >$*-(!/)$,012?!Q9%&!)$*;&+($*,@&H!

    $ cd server$ sudo wget server/http://www.openerp.com/download/stable/source/openerp-server-

    6.0.2.tar.gz$ sudo tar xvf openerp-server-6.0.2.tar.gz

    M$.=8(&,!89O,:9&8!O$%!G:($,+H!

    $ cd ..$ cd web$ wget http://www.openerp.com/download/stable/source/openerp-web-6.0.2.tar.gz$ sudo tar xvf openerp-web-6.0.2.tar.gz

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    14/30

    !B`

    #$:&(,!(+=3!=,+=$*-(W>$*-(!/)$,012!8&,!.$,';(,8&*(!)$,'$8(+&,!Y(:$WY(:$!

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    15/30

    !Ba

    4.%(:!8&*(!G9,+9;!Y(:$!

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    16/30

    !Bb

    test_disable = Falsetest_file = Falsetest_report_directory = Falsetimezone = Falsetranslate_modules = ['all']

    without_demo = Falsexmlrpc = Truexmlrpc_interface =

    xmlrpcs = Truexmlrpcs_interface =

    D&:=!-(.)&,!Y(:$!+$*-$%=+!8$,'&,!G9,+*9:!l!8&,!F&O&%!8$,'&,!m?!

    [$*(

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    17/30

    !VC

    specify the URL root prefix where you want webbrowsers to access your static HTML files (e.g '/')

    Testing Configuration:--test-file=TEST_FILE

    Launch a YML test file.--test-report-directory=TEST_REPORT_DIRECTORY

    If set, will save sample of all reports in this

    directory.--test-disable Disable loading test files.--test-commit Commit database changes performed by tests.

    Logging Configuration:--logfile=LOGFILE file where the server log will be stored--no-logrotate do not rotate the logfile--syslog Send the log to the syslog server--log-level=LOG_LEVEL

    specify the level of the logging. Accepted values:['info', 'debug_rpc', 'warn', 'test', 'critical','debug_sql', 'error', 'debug', 'debug_rpc_answer','notset']

    SMTP Configuration:--email-from=EMAIL_FROM

    specify the SMTP email address for sending email

    --smtp=SMTP_SERVER specify the SMTP server for sending email--smtp-port=SMTP_PORT

    specify the SMTP port--smtp-ssl specify the SMTP server support SSL or not--smtp-user=SMTP_USER

    specify the SMTP username for sending email--smtp-password=SMTP_PASSWORD

    specify the SMTP password for sending email

    Database related options:-d DB_NAME, --database=DB_NAME

    specify the database name-r DB_USER, --db_user=DB_USER

    specify the database user name-w DB_PASSWORD, --db_password=DB_PASSWORD

    specify the database password--pg_path=PG_PATH specify the pg executable path

    --db_host=DB_HOST specify the database host--db_port=DB_PORT specify the database port--db_maxconn=DB_MAXCONN

    specify the the maximum number of physical connectionsto posgresql

    -P IMPORT_PARTIAL, --import-partial=IMPORT_PARTIALUse this for big data importation, if it crashes you

    will be able to continue at the current state. Providea filename to store intermediate importation states.

    Internationalisation options:Use these options to translate OpenERP to another language.See i18nsection of the user manual. Option '-d' is mandatory.Option '-l' ismandatory in case of importation

    --load-language=LOAD_LANGUAGEspecifies the languages for the translations you wantto be loaded

    -l LANGUAGE, --language=LANGUAGEspecify the language of the translation file. Use it

    with --i18n-export or --i18n-import--i18n-export=TRANSLATE_OUT

    export all sentences to be translated to a CSV file, aPO file or a TGZ archive and exit

    --i18n-import=TRANSLATE_INimport a CSV or a PO file with translations and exit.The '-l' option is required.

    --i18n-overwrite overwrites existing translation terms on importing aCSV or a PO file.

    --modules=TRANSLATE_MODULESspecify modules to export. Use in combination with--i18n-export

    --addons-path=ADDONS_PATH

    specify an alternative addons path.

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    18/30

    !VB

    --osv-memory-count-limit=OSV_MEMORY_COUNT_LIMITForce a limit on the maximum number of records kept inthe virtual osv_memory tables. The default is False,

    which means no count-based limit.--osv-memory-age-limit=OSV_MEMORY_AGE_LIMIT

    Force a limit on the maximum age of records kept inthe virtual osv_memory tables. This is a decimal valueexpressed in hours, and the default is 1 hour.

    Security-related options:--no-database-list disable the ability to return the list of databases

    #$$*!-=8&;!%(-&!8(F&:&,

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    19/30

    !VV

    PIDFILE=/var/run/$NAME.pid

    # Additional options that are passed to the Daemon.DAEMON_OPTS="-c $CONFIGFILE"

    [ -x $DAEMON ] || exit 0[ -f $CONFIGFILE ] || exit 0

    checkpid() {[ -f $PIDFILE ] || return 1pid=`cat $PIDFILE`[ -d /proc/$pid ] && return 0return 1

    }

    if [ -f /lib/lsb/init-functions ] || [ -f /etc/gentoo-release ] ; then

    do_start() {start-stop-daemon --start --quiet --pidfile $PIDFILE \

    --chuid $USER --background --make-pidfile \--exec $DAEMON -- $DAEMON_OPTS

    RETVAL=$?sleep 5 # wait for few seconds

    return $RETVAL}

    do_stop() {start-stop-daemon --stop --quiet --pidfile $PIDFILE --oknodo

    RETVAL=$?sleep 2 # wait for few secondsrm -f $PIDFILE # remove pidfile

    return $RETVAL}

    do_restart() {start-stop-daemon --stop --quiet --pidfile $PIDFILE --oknodo

    sleep 2 # wait for few seconds

    rm -f $PIDFILE # remove pidfile

    start-stop-daemon --start --quiet --pidfile $PIDFILE \--chuid $USER --background --make-pidfile \--exec $DAEMON -- $DAEMON_OPTS

    RETVAL=$?sleep 5 # wait for few seconds

    return $RETVAL}

    else

    do_start() {$DAEMON $DAEMON_OPTS > /dev/null 2>&1 &

    RETVAL=$?sleep 5 # wait for few seconds

    echo $! > $PIDFILE # create pidfile

    return $RETVAL}

    do_stop() {

    pid=`cat $PIDFILE`kill -15 $pid

    RETVAL=$?sleep 2 # wait for few secondsrm -f $PIDFILE # remove pidfile

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    20/30

    !Vc

    return $RETVAL}

    do_restart() {

    if [ -f $PIDFILE ]; thendo_stop

    fi

    do_start

    return $?}

    fi

    start_daemon() {

    if [ -f $PIDFILE ]; thenecho "pidfile already exists: $PIDFILE"exit 1

    fi

    echo -n "Starting $DESC: "

    do_start

    checkpid

    if [ $? -eq 1 ]; thenrm -f $PIDFILEecho "failed."exit 1

    fi

    echo "done."}

    stop_daemon() {

    checkpid

    if [ $? -eq 1 ]; thenexit 0

    fi

    echo -n "Stopping $DESC: "

    do_stop

    if [ $? -eq 1 ]; thenecho "failed."exit 1

    fi

    echo "done."}

    restart_daemon() {

    echo -n "Reloading $DESC: "

    do_restart

    checkpid

    if [ $? -eq 1 ]; thenrm -f $PIDFILEecho "failed."exit 1

    fi

    echo "done."}

    status_daemon() {

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    21/30

    !V"

    echo -n "Checking $DESC: "

    checkpid

    if [ $? -eq 1 ]; thenecho "stopped."

    else

    echo "running."fi}

    case "$1" instart) start_daemon ;;stop) stop_daemon ;;restart|force-reload) restart_daemon ;;status) status_daemon ;;*)

    N=/etc/init.d/$NAMEecho "Usage: $N {start|stop|restart|force-reload|status}" >&2exit 1;;

    esac

    exit 0

    # vim: sts=4 st=4 et

    S($*?G9,YK3!+$*8&)&+!)&*&.$+$*H!

    logfile = /var/log/openerp/openerp-server.log

    4*+(,@&3!-$.=&!&$*!&(+&-,@&!)&8&!Y(:$!:9'??!

    $ less /var/log/openerp/openerp-server.log

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    22/30

    !VT

    S($*3!.&

    &8&:&;!.$.%=&+!&'&*!-$*>$*!/)$,012!8&)&+!-$G&*&!9+9.&+(-!8(F&:&,$*!A%=,+=!)&8&!-&&+!-$*>$*!A%=,+=!)$*+&.&!

    M(+&!F='&!%(-&!.$.$*($*!-=8&;!F&:&,!8$,'&,!=-$*!\9)$,$*)]!8&,!2_5!,9.9*!`Ca?!!

    Langkah 15. Mengkonfigurasi dan mengotomatiskan Web Client

    Z$-

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    23/30

    !VU

    &+&=H!

    /opt/OpenObject/OpenERPv6/running_web

    M$8=&!8(*$

    O$%?G9,YK!@&,'!&

    9)$,$*)WO$%!8&,!%=&+!)$.(:(

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    24/30

    !V`

    ### BEGIN INIT INFO# Provides: openerp-web# Required-Start: $syslog# Required-Stop: $syslog# Should-Start: $network# Should-Stop: $network# Default-Start: 2 3 4 5

    # Default-Stop: 0 1 6# Short-Description: OpenERP Web - the Web Client of the OpenERP# Description: OpenERP is a complete ERP and CRM software.### END INIT INFO

    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/binDAEMON=/usr/local/bin/openerp-webNAME=openerp-webDESC=openerp-web

    # Specify the user name (Default: openerp).USER="openerp"

    # Specify an alternate config file (Default: /etc/openerp-web.cfg).CONFIGFILE="/etc/openerp-web.cfg"

    # pidfile

    PIDFILE=/var/run/$NAME.pid

    # Additional options that are passed to the Daemon.DAEMON_OPTS="-c $CONFIGFILE"

    [ -x $DAEMON ] || exit 0[ -f $CONFIGFILE ] || exit 0

    checkpid() {[ -f $PIDFILE ] || return 1pid=`cat $PIDFILE`[ -d /proc/$pid ] && return 0return 1

    }

    if [ -f /lib/lsb/init-functions ] || [ -f /etc/gentoo-release ] ; then

    do_start() {start-stop-daemon --start --quiet --pidfile $PIDFILE \

    --chuid $USER --background --make-pidfile \--exec $DAEMON -- $DAEMON_OPTS

    RETVAL=$?sleep 5 # wait for few seconds

    return $RETVAL}

    do_stop() {start-stop-daemon --stop --quiet --pidfile $PIDFILE --oknodo

    RETVAL=$?sleep 2 # wait for few secondsrm -f $PIDFILE # remove pidfile

    return $RETVAL}

    do_restart() {start-stop-daemon --stop --quiet --pidfile $PIDFILE --oknodo

    sleep 2 # wait for few secondsrm -f $PIDFILE # remove pidfile

    start-stop-daemon --start --quiet --pidfile $PIDFILE \--chuid $USER --background --make-pidfile \--exec $DAEMON -- $DAEMON_OPTS

    RETVAL=$?sleep 5 # wait for few seconds

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    25/30

    !Va

    return $RETVAL}

    else

    do_start() {$DAEMON $DAEMON_OPTS > /dev/null 2>&1 &

    RETVAL=$?sleep 5 # wait for few seconds

    echo $! > $PIDFILE # create pidfile

    return $RETVAL}

    do_stop() {

    pid=`cat $PIDFILE`kill -15 $pid

    RETVAL=$?sleep 2 # wait for few secondsrm -f $PIDFILE # remove pidfile

    return $RETVAL}

    do_restart() {

    if [ -f $PIDFILE ]; thendo_stop

    fi

    do_start

    return $?}

    fi

    start_daemon() {

    if [ -f $PIDFILE ]; thenecho "pidfile already exists: $PIDFILE"exit 1

    fi

    echo -n "Starting $DESC: "

    do_start

    checkpid

    if [ $? -eq 1 ]; thenrm -f $PIDFILEecho "failed."exit 1

    fi

    echo "done."}

    stop_daemon() {

    checkpid

    if [ $? -eq 1 ]; thenexit 0

    fi

    echo -n "Stopping $DESC: "

    do_stop

    if [ $? -eq 1 ]; then

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    26/30

    !Vb

    echo "failed."exit 1

    fi

    echo "done."}

    restart_daemon() {

    echo -n "Reloading $DESC: "

    do_restart

    checkpid

    if [ $? -eq 1 ]; thenrm -f $PIDFILEecho "failed."exit 1

    fi

    echo "done."}

    status_daemon() {

    echo -n "Checking $DESC: "

    checkpid

    if [ $? -eq 1 ]; thenecho "stopped."

    elseecho "running."

    fi}

    case "$1" instart) start_daemon ;;stop) stop_daemon ;;restart|force-reload) restart_daemon ;;status) status_daemon ;;

    *)N=/etc/init.d/$NAMEecho "Usage: $N {start|stop|restart|force-reload|status}" >&2exit 1;;

    esac

    exit 0

    # vim: sts=4 st=4 et

    D&:=H!

    $ sudo chmod 755 /etc/init.d/openerp-web$ sudo chown root: /etc/init.d/openerp-web

    #$)$*+(!;&:,@&!/)$,012!-$*>$*3!

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    27/30

    !cC

    S($*!/)$,012?!4)&G;$!&8&:&;!

    O$%-$*>$*!@&,'!)&:(,'!%&,@&

    89

    -=8&;!F&8(H!

    $ cd$ mkdir temp$ cd temp

    D&:=!%=&+!

    8$,'&,!G&*&!-$)$*+(!(,(H!

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    28/30

    !cB

    $ openssl rsa -in server.pkey -out server.key

    #$:&,F=+,@&!

    $ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

    M(+&!;&,@&!)$*:=!8=&!Y(:$!-&F&!@&(+=!-$*>$*?G*+!8&,!-$*>$*?ProxyRequests Off

    Order deny,allowAllow from all

    ProxyVia On

    ProxyPass /webdav/ http://127.0.0.1:8069/webdav/

    ProxyPassReverse /webdav/

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    29/30

    !cV

    Order Deny,AllowAllow from allSatisfy Any

    ProxyPass / http://127.0.0.1:8080/

    ProxyPassReverse /

    RequestHeader set "X-Forwarded-Proto" "https"

    # Fix IE problem (httpapache proxy dav error 408/409)SetEnv proxy-nokeepalive 1

    #$)$*+(!

    E&.=,!)&8&!8&-&*,@&3!^!8(.&

    A,+=

    5(!8&:&.!Y(:$!

  • 7/29/2019 Installation of OpenERP Server 6.0.2 on Ubuntu Server 10.04.Docx

    30/30

    S(

    %&'(&,!%&O&;!Y(:$!

    8$,'&,!+=+9*(&:!(,(3!-(:&