Web log

Freed notes.

Monday, July 25, 2011

Google Apps migration for Microsoft Exchange - ERROR: invalid source server or invalid user ids

The first few lines of the log file contain:

2011-07-22T18:20:41.166-07:00 910 E:Generic ExchangeMigration!GetOutlookExePath @ 24 ()> Failed with 0x80070002, last successful line = 17.
2011-07-22T18:20:41.166-07:00 910 E:Generic ExchangeMigration!GetOutlookVersion @ 255 ()> Failed with 0x80070002, last successful line = 247.
2011-07-22T18:20:41.166-07:00 910 E:Generic ExchangeMigration!GetOfficeRegistryBase @ 356 ()> Failed with 0x80070002, last successful line = 354.
2011-07-22T18:20:41.166-07:00 910 E:Generic ExchangeMigration!ResourceStrings::GetOutlookLanguage @ 89 ()> Failed with 0x80070002, last successful line = 76.
Configuration: Exe name: C:\Program Files (x86)\Google\Google Apps Migration\ExchangeMigration.exe

Install Microsoft Outlook (trial should also work).

Monday, July 04, 2011

Zenoss and splunk python issues

FIX: Add `unset PYTHONPATH` in splunk boot script (e.g. /etc/init.d/splunk)

root@zenoss:/opt/splunk/bin# ./splunk start

Splunk> Take the sh out of IT.

Checking prerequisites...
Checking http port [8000]: open
Checking mgmt port [8089]: open
Checking configuration... *** glibc detected *** python: free(): invalid pointer: 0x09c26100 ***
======= Backtrace: =========
/lib/tls/i686/nosegneg/libc.so.6(+0x6c321)[0xb76cf321]
/lib/tls/i686/nosegneg/libc.so.6(+0x6db78)[0xb76d0b78]
/lib/tls/i686/nosegneg/libc.so.6(cfree+0x6d)[0xb76d3c9d]
python[0x80ae4d0]
/usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(+0x4a2f)[0xb6fc9a2f]
/usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(+0xb881)[0xb6fd0881]
/usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(+0xd348)[0xb6fd2348]
/usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(+0x118d7)[0xb6fd68d7]
/usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(XML_ParseBuffer+0x71)[0xb6fcf9a1]
/usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(XML_Parse+0x12d)[0xb6fcf911]
/usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so(+0x74c9)[0xb6fcc4c9]
python(PyEval_EvalFrameEx+0x4f0f)[0x80cf213]
python(PyEval_EvalFrameEx+0x42aa)[0x80ce5ae]
python(PyEval_EvalCodeEx+0x707)[0x80d11bf]
python(PyEval_EvalFrameEx+0x3ac8)[0x80cddcc]
python(PyEval_EvalCodeEx+0x707)[0x80d11bf]
python(PyEval_EvalFrameEx+0x3ac8)[0x80cddcc]
python(PyEval_EvalFrameEx+0x42aa)[0x80ce5ae]
python(PyEval_EvalCodeEx+0x707)[0x80d11bf]
python(PyEval_EvalFrameEx+0x3ac8)[0x80cddcc]
python(PyEval_EvalCodeEx+0x707)[0x80d11bf]
python(PyEval_EvalFrameEx+0x3ac8)[0x80cddcc]
python(PyEval_EvalFrameEx+0x42aa)[0x80ce5ae]
python(PyEval_EvalFrameEx+0x42aa)[0x80ce5ae]
python(PyEval_EvalCodeEx+0x707)[0x80d11bf]
python(PyEval_EvalCode+0x22)[0x80d136e]
python(PyRun_FileExFlags+0x62)[0x80efa1e]
python(PyRun_SimpleFileExFlags+0x2c5)[0x80f0691]
python(Py_Main+0xaff)[0x8058403]
/lib/tls/i686/nosegneg/libc.so.6(__libc_start_main+0xe6)[0xb7679bd6]
python[0x80575e9]
======= Memory map: ========
08048000-08154000 r-xp 00000000 08:01 294948 /opt/splunk/bin/python2.6
08154000-08186000 rw-p 0010c000 08:01 294948 /opt/splunk/bin/python2.6
08186000-0818f000 rw-p 00000000 00:00 0
09487000-09cc4000 rw-p 00000000 00:00 0 [heap]
b6c00000-b6c21000 rw-p 00000000 00:00 0
b6c21000-b6d00000 ---p 00000000 00:00 0
b6d44000-b6d61000 r-xp 00000000 08:01 172225 /lib/libgcc_s.so.1
b6d61000-b6d62000 r--p 0001c000 08:01 172225 /lib/libgcc_s.so.1
b6d62000-b6d63000 rw-p 0001d000 08:01 172225 /lib/libgcc_s.so.1
b6d6a000-b6f64000 r-xp 00000000 08:01 344977 /usr/lib/libpython2.6.so.1.0
b6f64000-b6f65000 r--p 001f9000 08:01 344977 /usr/lib/libpython2.6.so.1.0
b6f65000-b6fb4000 rw-p 001fa000 08:01 344977 /usr/lib/libpython2.6.so.1.0
b6fb4000-b6fbe000 rw-p 00000000 00:00 0
b6fc4000-b6fc5000 rw-p 00000000 00:00 0
b6fc5000-b6fef000 r-xp 00000000 08:51 25572717 /usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so
b6fef000-b6ff2000 rw-p 00029000 08:51 25572717 /usr/local/zenoss/python/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so
b6ff2000-b6ff4000 r-xp 00000000 08:01 296148 /opt/splunk/lib/python2.6/lib-dynload/_heapq.so
b6ff4000-b6ff6000 rw-p 00002000 08:01 296148 /opt/splunk/lib/python2.6/lib-dynload/_heapq.so
b6ff6000-b6ffd000 r-xp 00000000 08:01 296166 /opt/splunk/lib/python2.6/lib-dynload/itertools.so
b6ffd000-b7000000 rw-p 00006000 08:01 296166 /opt/splunk/lib/python2.6/lib-dynload/itertools.so
b7000000-b7001000 r-xp 00000000 08:01 296140 /opt/splunk/lib/python2.6/lib-dynload/_bisect.so
b7001000-b7002000 rw-p 00001000 08:01 296140 /opt/splunk/lib/python2.6/lib-dynload/_bisect.so
b7002000-b7004000 r-xp 00000000 08:01 296147 /opt/splunk/lib/python2.6/lib-dynload/_hashlib.so
b7004000-b7005000 rw-p 00002000 08:01 296147 /opt/splunk/lib/python2.6/lib-dynload/_hashlib.so
b7005000-b7157000 r-xp 00000000 08:01 295764 /opt/splunk/lib/libxml2.so.2.7.6
b7157000-b715c000 rw-p 00152000 08:01 295764 /opt/splunk/lib/libxml2.so.2.7.6
b715c000-b715d000 rw-p 00000000 00:00 0
b715d000-b7170000 r-xp 00000000 08:01 295760 /opt/splunk/lib/libexslt.so.0.8.15
b7170000-b7171000 rw-p 00012000 08:01 295760 /opt/splunk/lib/libexslt.so.0.8.15
b7171000-b71ae000 r-xp 00000000 08:01 295765 /opt/splunk/lib/libxslt.so.1.1.26
b71ae000-b71af000 rw-p 0003d000 08:01 295765 /opt/splunk/lib/libxslt.so.1.1.26
b71af000-b7297000 r-xp 00000000 08:01 296870 /opt/splunk/lib/python2.6/site-packages/lxml/etree.so
b7297000-b72b7000 rw-p 000e8000 08:01 296870 /opt/splunk/lib/python2.6/site-packages/lxml/etree.so
b72b7000-b72be000 rw-p 00000000 00:00 0
b72be000-b72ee000 r-xp 00000000 08:01 296170 /opt/splunk/lib/python2.6/lib-dynload/pyexpat.so
b72ee000-b72f1000 rw-p 00030000 08:01 296170 /opt/splunk/lib/python2.6/lib-dynload/pyexpat.so
b72f1000-b73fa000 r-xp 00000000 08:01 295759 /opt/splunk/lib/libcrypto.so.0.9.8
b73fa000-b7410000 rw-p 00109000 08:01 295759 /opt/splunk/lib/libcrypto.so.0.9.8
b7410000-b7454000 rw-p 00000000 00:00 0
b7455000-b7457000 r-xp 00000000 08:01 296152 /opt/splunk/lib/python2.6/lib-dynload/_random.so
b7457000-b7458000 rw-p 00002000 08:01 296152 /opt/splunk/lib/python2.6/lib-dynload/_random.so
b7458000-b745c000 r-xp 00000000 08:01 296177 /opt/splunk/lib/python2.6/lib-dynload/zlib.so
b745c000-b745e000 rw-p 00003000 08:01 296177 /opt/splunk/lib/python2.6/lib-dynload/zlib.so
b745e000-b7461000 r-xp 00000000 08:01 296141 /opt/splunk/lib/python2.6/lib-dynload/_bytesio.so
b7461000-b7462000 rw-p 00002000 08:01 296141 /opt/splunk/lib/python2.6/lib-dynload/_bytesio.so
b7462000-b7465000 r-xp 00000000 08:01 296145 /opt/splunk/lib/python2.6/lib-dynload/_fileio.so
b7465000-b7466000 rw-p 00003000 08:01 296145 /opt/splunk/lib/python2.6/lib-dynload/_fileio.so
b7466000-b746c000 r-xp 00000000 08:01 296157 /opt/splunk/lib/python2.6/lib-dynload/array.so
b746c000-b746e000 rw-p 00006000 08:01 296157 /opt/splunk/lib/python2.6/lib-dynload/array.so
b746e000-b7476000 r-xp 00000000 08:01 296144 /opt/splunk/lib/python2.6/lib-dynload/_elementtree.so
b7476000-b7477000 rw-p 00007000 08:01 296144 /opt/splunk/lib/python2.6/lib-dynload/_elementtree.so
b7477000-b7479000 r-xp 00000000 08:01 296164 /opt/splunk/lib/python2.6/lib-dynload/fcntl.so
b7479000-b747a000 rw-p 00002000 08:01 296164 /opt/splunk/lib/python2.6/lib-dynload/fcntl.so
b747a000-b747d000 r-xp 00000000 08:01 296172 /opt/splunk/lib/python2.6/lib-dynload/select.so
b747d000-b747e000 rw-p 00002000 08:01 296172 /opt/splunk/lib/python2.6/lib-dynload/select.so
b747e000-b7481000 r-xp 00000000 08:01 296174 /opt/splunk/lib/python2.6/lib-dynload/termios.soERROR: pid 13966 terminated with signal 6

Wednesday, June 22, 2011

PYA 192 - Unscrupulous taxi driver

Make: Toyota
Model: Corolla XL
Year: 1996

(does not use the meter and over-charges)

Monday, September 13, 2010

Authorization error with API user knife initialization `knife configure -i`

Notice these errors. First error shows the API user of knife (root) failed to authenticate:


# knife client list
WARN: HTTP Request Returned 401 Unauthorized: Failed to authenticate!
/usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 401 "Unauthorized" (Net::HTTPServerException)
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:217:in `api_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:268:in `retriable_rest_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:198:in `api_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:101:in `get_rest'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/api_client.rb:185:in `list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/knife/client_list.rb:35:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/application/knife.rb:115:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/knife:25
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19

so I tried to re-initialize API user (root). And encountered another authentication failure (this time with webui client user (see chef-server log that follows).

# knife configure -i
Overwrite /root/.chef/knife.rb? (Y/N) Y
Please enter the chef server URL: [http://localhost:4000]
Please enter a clientname for the new client: [root]
Please enter the existing admin clientname: [chef-webui]
Please enter the location of the existing admin client's private key: [/etc/chef/webui.pem]
Please enter the validation clientname: [chef-validator]
Please enter the location of the validation key: [/etc/chef/validation.pem]
Please enter the path to a chef repository (or leave blank):
WARN: Creating initial API user...
FATAL: Failed to read the private key /etc/chef/webui.pem: #, /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest/auth_credentials.rb:59:in `read'/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest/auth_credentials.rb:59:in `load_signing_key'/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest/auth_credentials.rb:33:in `initialize'/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:41:in `new'/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:41:in `initialize'/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/api_client.rb:232:in `new'/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/api_client.rb:232:in `save'/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/knife/client_create.rb:55:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/knife/configure.rb:86:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/application/knife.rb:115:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/knife:25/usr/bin/knife:19:in `load'/usr/bin/knife:19
/usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest/auth_credentials.rb:62:in `load_signing_key': I cannot read /etc/chef/webui.pem, which you told me to use to sign requests! (Chef::Exceptions::PrivateKeyMissing)
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest/auth_credentials.rb:33:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:41:in `new'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:41:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/api_client.rb:232:in `new'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/api_client.rb:232:in `save'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/knife/client_create.rb:55:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/knife/configure.rb:86:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/application/knife.rb:115:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/knife:25
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19

This is the chef-server log that gives hint it is webui that is failing to authenticate:

2010-09-13_15:13:48.61008 INFO: Authenticating client chef-webui
2010-09-13_15:13:48.63105 merb : worker (port 4000) ~ Started request handling: Mon Sep 13 08:13:48 -0700 2010
2010-09-13_15:13:48.63110 merb : worker (port 4000) ~ Params: {"name"=>"root", "action"=>"create", "admin"=>true, "controller"=>"clients"}
2010-09-13_15:13:48.63112 merb : worker (port 4000) ~ Failed to authenticate! - (Merb::ControllerExceptions::Unauthorized)
2010-09-13_15:13:48.63165 /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.9.6/app/controllers/application.rb:50:in `authenticate_every'
2010-09-13_15:13:48.63166 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:352:in `send'
2010-09-13_15:13:48.63167 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:352:in `_call_filters'
2010-09-13_15:13:48.63169 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:344:in `each'
2010-09-13_15:13:48.63170 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:344:in `_call_filters'
2010-09-13_15:13:48.63171 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:286:in `_dispatch'
2010-09-13_15:13:48.63172 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in `catch'
2010-09-13_15:13:48.63175 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in `_dispatch'
2010-09-13_15:13:48.63176 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:285:in `_dispatch'
2010-09-13_15:13:48.63177 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:262:in `_call'
2010-09-13_15:13:48.63178 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:252:in `call'
2010-09-13_15:13:48.63179 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:91:in `dispatch_action'
2010-09-13_15:13:48.63180 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:69:in `handle'
2010-09-13_15:13:48.63181 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:29:in `handle'
2010-09-13_15:13:48.63183 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/application.rb:17:in `call'
2010-09-13_15:13:48.63184 /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in `call'
2010-09-13_15:13:48.63185 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in `pre_process'
2010-09-13_15:13:48.63186 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in `catch'
2010-09-13_15:13:48.63188 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in `pre_process'
2010-09-13_15:13:48.64712 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in `process'
2010-09-13_15:13:48.64713 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in `receive_data'
2010-09-13_15:13:48.64715 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in `run_machine'
2010-09-13_15:13:48.64716 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in `run'
2010-09-13_15:13:48.64717 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in `start'
2010-09-13_15:13:48.64718 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in `start'
2010-09-13_15:13:48.64719 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/thin.rb:30:in `start_server'
2010-09-13_15:13:48.64720 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:305:in `start_at_port'
2010-09-13_15:13:48.64721 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:138:in `start'
2010-09-13_15:13:48.64727 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:174:in `bootup'
2010-09-13_15:13:48.64729 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in `start'
2010-09-13_15:13:48.64732 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core.rb:165:in `start'
2010-09-13_15:13:48.64733 /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.9.6/bin/chef-server:75
2010-09-13_15:13:48.64734 /usr/bin/chef-server:19:in `load'
2010-09-13_15:13:48.64735 /usr/bin/chef-server:19
2010-09-13_15:13:48.64736 merb : worker (port 4000) ~ Params: {"name"=>"root", "action"=>"create", "admin"=>true, "controller"=>"clients"}
2010-09-13_15:13:48.64738 merb : worker (port 4000) ~ {:dispatch_time=>0.041183, :action_time=>0.008142, :after_filters_time=>3.2e-05, :before_filters_time=>0.002237}
2010-09-13_15:13:48.64739 merb : worker (port 4000) ~
2010-09-13_15:13:48.64740


Delete root and webui clients and delete corresponding keys (/root/.chef/root.pem and /etc/chef/webui.pem). Restart chef-server and you should get a new set of keys. Initialize a new API user (root):

# knife configure -i
Overwrite /root/.chef/knife.rb? (Y/N) Y
Please enter the chef server URL: [http://localhost:4000]
Please enter a clientname for the new client: [root]
Please enter the existing admin clientname: [chef-webui]
Please enter the location of the existing admin client's private key: [/etc/chef/webui.pem]
Please enter the validation clientname: [chef-validator]
Please enter the location of the validation key: [/etc/chef/validation.pem]
Please enter the path to a chef repository (or leave blank):
WARN: Creating initial API user...
INFO: Created (or updated) client[root]
WARN: Configuration file written to /root/.chef/knife.rb

Test API with knife

# knife client list

should give you a list of clients.


Wednesday, August 04, 2010

Mobile Internet coverage in the Philippines

Help me populate this list. Notable places with or without 3G or HSDPA coverage:

  • Siargao (SMARTBRO-3G)
  • Padre Burgos, Sogod (Only EDGE both Globe and Smart)

Tuesday, June 22, 2010

Wavecom WMOD2 manuals / AT commands

http://mirakulo.com/pub/wavecom-wmod2/

[ ] WMOD2Buserman.pdf 20-Jun-2010 16:27 164K
[ ] X421Modem.zip 20-Jun-2010 16:28 578K
[ ] XModem_dwl_v10.PDF 20-Jun-2010 16:28 599K
[ ] atph2step3.pdf 20-Jun-2010 16:27 1.4M
[ ] step3relnote7c.pdf 20-Jun-2010 16:28 58K

Wednesday, February 17, 2010

Docsis-server install in Ubuntu 8.04

Base guide is here
http://users.accesscomm.ca/docsis_server/howto_1.html

I installed docsis first so this package might have dependencies already installed from docsis.

wget http://users.accesscomm.ca/docsis_server/docsis-server-current.tar.bz2

bunzip

aptitude install m4

./configure

it will look for m4
see if m4 is installed `which m4`
if not, aptitude install m4
if already installed, mod configure script to do the m4 check correctly:
look for this line,

if test "x$ac_is_gnu_m4" = "xGNU"; then

change it to:
if test "x$ac_is_gnu_m4" = "xm4"; then

run ./configure again

if you get this error:
checking for mysql_config... /usr/libexec/mysql_config
configure: error: You need at least mysql 4.0.0, get it at http://www.mysql.com

aptitude install mysql-client mysql-server libmysqlclient15-dev

run ./configure again

make

make install

verify

root@tds-stg-dhcp02:~/docsis_server-3.5# ls /usr/local/sbin/
Count_IPs Delete_Old_Leases FindIP ListMessages
DB_Config_Encoder docsis_server FindMAC Stress_Config_Generator

docsis source code install in Ubuntu 8.04

wget http://downloads.sourceforge.net/project/docsis/docsis/docsis-0.9.5/docsis-0.9.5.tar.gz?use_mirror=nchc

untar

goto docsis-0.9.5 dir

aptitude install m4 bison libsnmp-base libsnmp15 snmpd libsnmp-dev flex

./configure

it will look for m4
see if m4 is installed `which m4`
if not, aptitude install m4
if already installed, mod configure script to do the m4 check correctly:
look for this line,

if test "x$ac_is_gnu_m4" = "xGNU"; then

change it to:
if test "x$ac_is_gnu_m4" = "xm4"; then

run ./configure again

it will look for bison,
aptitude install bison
and run ./configure again

`make`

make sure you install flex or you will get an error from sed about a file not being found

if you get an error about floor:
undefined reference to `floor'

goto
root@tds-stg-dhcp02:~/docsis-0.9.5# vim src/Makefile

look for this line:
LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@

and add the math function:
LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -lm -o $@

run make again
root@tds-stg-dhcp02:~/docsis-0.9.5# make

make install

verify:
root@tds-stg-dhcp02:~/docsis-0.9.5# ls -l /usr/local/bin/docsis
-rwxr-xr-x 1 root root 164495 2010-02-16 17:31 /usr/local/bin/docsis