Hi Milan, Sorry for that. The copy of config files was deleting empty lines. I managed to clear it. Please guide me in configuring opensmppbox on the kannel.
Thanks, Moses On Sat, May 3, 2014 at 2:13 AM, MOSES KARIUKI <kariuk...@gmail.com> wrote: > Hi Milan, > > You have been very helpful. > > I was able to install the > However, I got the following error: > > root@rzpeiz52m2:/etc/kannel# sudo smsbox -v 0 /etc/kannel/kannel.conf > 2014-05-02 22:56:36 [1507] [0] INFO: Debug_lvl = 0, log_file = <none>, > log_lvl = 0 > 2014-05-02 22:56:36 [1507] [0] ERROR: Group 'sms-service' may not contain > field 'log-level'. > 2014-05-02 22:56:36 [1507] [0] ERROR: Error found on line 45 of file > `/etc/kannel/kannel.conf'. > > What im I doing wrong? > > Please share the deb package for Wheezy. Maybe it might help. > > Thanks, > MT > > > > > > On Sat, May 3, 2014 at 12:25 AM, Milan P. Stanic <m...@arvanta.net> wrote: > >> On Sat, 2014-05-03 at 00:11, MOSES KARIUKI wrote: >> > Hi, >> > these are my results: >> > dpkg -i kannel-dev_1.5.0-0_amd64.deb >> > Selecting previously unselected package kannel-dev. >> > (Reading database ... 84200 files and directories currently installed.) >> > Unpacking kannel-dev (from kannel-dev_1.5.0-0_amd64.deb) ... >> > Setting up kannel-dev (1.5.0-0) ... >> > Processing triggers for man-db ... >> > >> > But when i check, there is no kannel file under /etc/default >> >> Of course, because you installed just development package. It contains >> headers and libraries needed to compile/build opensmppbox (and some >> other packages which uses kannel libraries). >> >> If you want to install kannel servers (bearerbox, smsbox, wapbox) you >> have to install kannel_1.5.0-0_amd64.deb packages. >> >> Then you will find /etc/default/kannel file, /etc/kannel directory with >> config files, and /etc/init.d/kannel script which starts and stops >> kannel at the boot (but can be invoked manually, also). >> >> FYI, I just built kannel deb packages for Wheezy distro and as a bonus >> opensmppbox deb package. If someone allow me to upload them somewhere it >> would be accessible to all, not only to me. >> And, I can build complete apt-get-able repository if someone are ready >> and have resources to host that repository. >> >> > On Fri, May 2, 2014 at 11:56 PM, Milan P. Stanic <m...@arvanta.net> >> wrote: >> > >> > > On Fri, 2014-05-02 at 23:50, MOSES KARIUKI wrote: >> > > > Hi Milan, >> > > > Thanks a lot for your help. >> > > > >> > > > cat /etc/debian_version >> > > > NAME="Ubuntu" >> > > > VERSION="12.04.4 LTS, Precise Pangolin" >> > > > ID=ubuntu >> > > > ID_LIKE=debian >> > > > PRETTY_NAME="Ubuntu precise (12.04.4 LTS)" >> > > > VERSION_ID="12.04" >> > > > >> > > > cat /etc/debian_version >> > > > wheezy/sid >> > > > >> > > > dpkg --print-architecture >> > > > amd64 >> > > >> > > I don't know much about Ubuntu but from above looks like you should >> > > install amd64 variant and not i386 of the packages, but I'm not sure >> > > because in your previous mail (see below) when you tried i386 variant >> > > dpkg didn't complained about architecture. >> > > >> > > > On Fri, May 2, 2014 at 11:37 PM, Milan P. Stanic <m...@arvanta.net> >> > > wrote: >> > > > >> > > > > On Fri, 2014-05-02 at 23:21, MOSES KARIUKI wrote: >> > > > > > Hi Milan, >> > > > > >> > > > > Before we continue please give us information about your OS. >> > > > > Post the output of the next few commands. First: >> > > > > cat /etc/os-release >> > > > > >> > > > > If it says Debian or Ubuntu try next: >> > > > > cat /etc/debian_version >> > > > > >> > > > > and: >> > > > > dpkg --print-architecture >> > > > > >> > > > > > Below is the error i am getting now. >> > > > > > >> > > > > > Unpacking kannel-dev:i386 (from kannel-dev_1.5.0-0_i386.deb) ... >> > > > > > dpkg: dependency problems prevent configuration of >> kannel-dev:i386: >> > > > > > kannel-dev:i386 depends on libssl-dev. >> > > > > > kannel-dev:i386 depends on libpam0g-dev. >> > > > > > kannel-dev:i386 depends on libxml2-dev. >> > > > > > kannel-dev:i386 depends on libpcre3-dev. >> > > > > > kannel-dev:i386 depends on libmysqlclient-dev. >> > > > > > kannel-dev:i386 depends on libsqlite0-dev. >> > > > > > kannel-dev:i386 depends on libsqlite3-dev. >> > > > > > kannel-dev:i386 depends on libpq-dev. >> > > > > > dpkg: error processing kannel-dev:i386 (--install): >> > > > > > dependency problems - leaving unconfigured >> > > > > > Processing triggers for man-db ... >> > > > > >> > > > > It looks like you have some kind of Debian derived OS and that the >> > > > > architecture is i386 i.e. 32-bit machine/CPU/ >> > > > > >> > > > > Try next: >> > > > > apt-get install libssl-dev libpam0g-dev libxml2-dev libpcre3-dev >> > > > > libmysqlclient-dev libsqlite0-dev libsqlite3-dev libpq-dev >> > > > > >> > > > > It will ask you to install additional development packages, just >> say >> > > Yes >> > > > > i.e. press y key. >> > > > > >> > > > > And, from the other thread I see that you trying to install .deb >> > > > > packages for kannel and at the same time you are trying to build >> and >> > > > > install kannel from the source. This is not quite wise for >> beginners. >> > > > > >> > > > > Decide which method/way you want to follow: debs or source. >> > > > > >> > > > > > On Fri, May 2, 2014 at 9:24 PM, MOSES KARIUKI < >> kariuk...@gmail.com> >> > > > > wrote: >> > > > > > >> > > > > > > Thanks Milan, >> > > > > > > >> > > > > > > I tried >> > > > > > > and got the error: >> > > > > > > dpkg: error processing kannel-dev:i386 (--install): >> > > > > > > dependency problems - leaving unconfigured >> > > > > > > Processing triggers for man-db ... >> > > > > > > Errors were encountered while processing: >> > > > > > > kannel-dev:i386 >> > > > > > > >> > > > > > > Moses >> > > > > > > >> > > > > > > >> > > > > > > On Fri, May 2, 2014 at 6:41 PM, Milan P. Stanic < >> m...@arvanta.net> >> > > > > wrote: >> > > > > > > >> > > > > > >> On Fri, 2014-05-02 at 18:23, MOSES KARIUKI wrote: >> > > > > > >> > HI Milan, >> > > > > > >> > >> > > > > > >> > This is the error I am getting: >> > > > > > >> > >> > > > > > >> > dpkg: error processing kannel-dev_1.5.0-0_amd64.deb >> (--install): >> > > > > > >> > kannel-dev: 1.5.0-0 (Multi-Arch: no) is not >> co-installable with >> > > > > > >> > kannel-dev:i386 1.5.0-0 (Multi-Arch: no) which is currently >> > > > > installed >> > > > > > >> > >> > > > > > >> > Please assist. >> > > > > > >> >> > > > > > >> Looks like you have i386 arch installed. >> > > > > > >> Download i386 files instead of amd64 and try to install them. >> > > > > > >> But, first you must uninstall currently installed packages. >> > > > > > >> >> > > > > > >> > MT >> > > > > > >> > >> > > > > > >> > >> > > > > > >> > On Fri, May 2, 2014 at 5:19 PM, Milan P. Stanic < >> > > m...@arvanta.net> >> > > > > > >> wrote: >> > > > > > >> > >> > > > > > >> > > On Fri, 2014-05-02 at 15:53, MOSES KARIUKI wrote: >> > > > > > >> > > > I followed this instructions but I used gateway version >> > > 1.5.0. >> > > > > > >> However, I >> > > > > > >> > > > cant find the kannel file under default. >> > > > > > >> > > > Do i have to uninstall it and Install from Milan's >> dpkg in >> > > the >> > > > > link? >> > > > > > >> > > >> > > > > > >> > > If you don't have experience in compiling software >> yourself it >> > > > > would >> > > > > > >> be >> > > > > > >> > > a lot easier for you to download files I mentioned >> earlier and >> > > > > install >> > > > > > >> > > them 'by hand'. >> > > > > > >> > > >> > > > > > >> > > Files at: >> > > > > > >> > > https://redmine.kannel.org/projects/kannel/files >> > > > > > >> > > are built for Debian Squeeze, but they work on Ubuntu and >> > > other >> > > > > > >> > > derivative distributions which are based on Squeeze >> release >> > > and >> > > > > later >> > > > > > >> > > Debian (wheezy). I think they should work on the last few >> > > > > versions of >> > > > > > >> > > Ubuntu, also. >> > > > > > >> > > >> > > > > > >> > > First, you have to remove whatever kannel files you >> > > > > installed/compiled >> > > > > > >> > > and then install .deb files by hand. For example: >> > > > > > >> > > >> > > > > > >> > > dpkg -i kannel_1.5.0-1_amd64.deb >> > > > > > >> > > dpkg -i kannel-dev_1.5.0-1_amd64.deb (if you want to >> install >> > > > > > >> development >> > > > > > >> > > files) >> > > > > > >> > > >> > > > > > >> > > dpkg will complain (probably) that dependencies are not >> > > satisfied >> > > > > but >> > > > > > >> > > ignore that and start aptitude or synaptic (or >> appropriate >> > > package >> > > > > > >> > > manager) and install missing dependencies (packages >> which are >> > > > > required >> > > > > > >> > > for kannel). >> > > > > > >> > > >> > > > > > >> > > After that you should have to configure/edit files in >> > > /etc/kannel/ >> > > > > > >> > > according your need. >> > > > > > >> > > >> > > > > > >> > > These steps are for Debian based distributions and not >> for >> > > > > RH/Centos. >> > > > > > >> > > >> > > > > > >> > > >> > > > > > >> > > > On Fri, May 2, 2014 at 2:43 PM, Milan P. Stanic < >> > > > > m...@arvanta.net> >> > > > > > >> wrote: >> > > > > > >> > > > > On Fri, 2014-05-02 at 14:35, MOSES KARIUKI wrote: >> > > > > > >> > > > > > After purging the previous Kannel, I have been >> able to >> > > > > install >> > > > > > >> using >> > > > > > >> > > make >> > > > > > >> > > > > > install. I am using Ubuntu. >> > > > > > >> > > > > > >> > > > > > >> > > > > > The bearerbox is running fine. But Once I shut >> down the >> > > > > > >> Terminal, it >> > > > > > >> > > > > shuts >> > > > > > >> > > > > > down the Kannel. I would like to know how I can run >> > > kannel >> > > > > as a >> > > > > > >> > > service >> > > > > > >> > > > > > such that when I close the terminal, kannel wont >> shut >> > > down. >> > > > > > >> > > > > >> > > > > > >> > > > > If you download it and install from deb files (link >> in my >> > > > > original >> > > > > > >> > > mail) >> > > > > > >> > > > > you will find file /etc/default/kannel which you >> have to >> > > edit >> > > > > to >> > > > > > >> enable >> > > > > > >> > > > > or disable smsbox and wapbox. >> > > > > > >> > > > > >> > > > > > >> > > > > After that you can start and stop kannel using CLI >> > > command: >> > > > > > >> > > > > /etc/init.d/kannel start >> > > > > > >> > > > > or to stop it: >> > > > > > >> > > > > /etc/init.d/kannel start >> > > > > > >> > > > > >> > > > > > >> > > > > Kannel will 'run as a service' i.e. in daemon mode. >> > > > > > >> > > > > > On Fri, May 2, 2014 at 1:39 PM, Milan P. Stanic < >> > > > > > >> m...@arvanta.net> >> > > > > > >> > > wrote: >> > > > > > >> > > > > > > On Fri, 2014-05-02 at 13:07, MOSES KARIUKI wrote: >> > > > > > >> > > > > > > > Sorry for the error. >> > > > > > >> > > > > > > > I have the following statement on my installed >> > > kannel >> > > > > > >> interface: >> > > > > > >> > > > > > > > Kannel bearerbox version `1.4.3'. Build `Nov >> 24 2011 >> > > > > > >> 09:54:00 >> > > > > > >> > > > > > > > I need to install OpenSMPPBox so that I can >> support >> > > as >> > > > > SMPP >> > > > > > >> > > server. I >> > > > > > >> > > > > > > > installed it using the apt-get command. >> > > > > > >> > > > > > > > Please assist me with notes/info to upgarde to >> > > Kannel >> > > > > 1.5.0 >> > > > > > >> so >> > > > > > >> > > that >> > > > > > >> > > > > I can >> > > > > > >> > > > > > > > install openSMPPBox. >> > > > > > >> > > > > > > >> > > > > > >> > > > > > > To install .deb packages go to: >> > > > > > >> > > > > > > https://redmine.kannel.org/projects/kannel/files >> > > > > > >> > > > > > > >> > > > > > >> > > > > > > Files are not 'apt-get'-able (sorry, I don't >> have fast >> > > > > link >> > > > > > >> where I >> > > > > > >> > > > > > > can put repository) but have to be installed >> using >> > > dpkg >> > > > > (man >> > > > > > >> dpkg). >> > > > > > >> > > > > > > >> > > > > > >> > > > > > > You have to install kannel-dev_1.5.0-0_amd64.deb >> and >> > > after >> > > > > > >> that to >> > > > > > >> > > > > > > compile/install opensmppbox >> > > > > > >> > > >> > > > > > >> > > -- >> > > > > > >> > > Kind regards, Milan >> > > > > > >> > > -------------------------------------------------- >> > > > > > >> > > Arvanta, http://www.arvanta.net >> > > > > > >> > > Please do not send me e-mail containing HTML code or >> > > documents in >> > > > > > >> > > proprietary format (word, excel, pps and so on) >> > > > > > >> > > >> > > > > > >> > > >> > > > > > >> >> > > > > > >> -- >> > > > > > >> Kind regards, Milan >> > > > > > >> -------------------------------------------------- >> > > > > > >> Arvanta, http://www.arvanta.net >> > > > > > >> Please do not send me e-mail containing HTML code or >> documents in >> > > > > > >> proprietary format (word, excel, pps and so on) >> > > > > > >> >> > > > > > >> >> > > > > > > >> > > > > >> > > > > -- >> > > > > Kind regards, Milan >> > > > > -------------------------------------------------- >> > > > > Arvanta, http://www.arvanta.net >> > > > > Please do not send me e-mail containing HTML code or documents in >> > > > > proprietary format (word, excel, pps and so on) >> > > > > >> > > > > >> > > >> > > -- >> > > Kind regards, Milan >> > > -------------------------------------------------- >> > > Arvanta, http://www.arvanta.net >> > > Please do not send me e-mail containing HTML code or documents in >> > > proprietary format (word, excel, pps and so on) >> > > >> > > >> >> -- >> Kind regards, Milan >> -------------------------------------------------- >> Arvanta, http://www.arvanta.net >> Please do not send me e-mail containing HTML code or documents in >> proprietary format (word, excel, pps and so on) >> >> >