Asterisk on Hardy Server

Author: admin  //  Category: Open Source, linux, technology

My notes on installing the latest Asterisk from Source on Ubuntu Hardy.

Fresh hardy install with only SSH and base packages.

apt-get install linux-headers-$(uname -r) build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev subversion

wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.21.2.tar.gz

wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.11.tar.gz

wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.7.tar.gz

tar xfvz zaptel-1.4.11.tar.gz -C /usr/src/

tar xfvz asterisk-1.4.21.2.tar.gz -C /usr/src/

tar xfvz libpri-1.4.7.tar.gz -C /usr/src/

cd /usr/src/zaptel-1.4.11

./configure

make

make install

Zaptel installed no problem.

cd ../libpri-1.4.7

make
make install

Again, no problems.

cd ../asterisk-1.4.21.2/

./configure
make
make install
make samples (not required, but you will probably want the samples)

Again, compiled with no problems.

Now to install Asterisk GUI. The links that I found were all incorrect for SVN. With some research, I found out the version 2 is out, which changed the locations for the branches. The correct one is svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui

cd /usr/src/

svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui

./configure
make
make install
make checkconfig
— Checking Asterisk configuration to see if it will support the GUI —
* Checking for http.conf: OK
* Checking for manager.conf: OK
* Checking if HTTP is enabled: FAILED
— Please be sure you have ‘enabled = yes’
— in /etc/asterisk/http.conf
make: *** [checkconfig] Error 1

So I went into /etc/asterisk/http.conf and uncommented enabled = yes

make checkconfig
— Checking Asterisk configuration to see if it will support the GUI —
* Checking for http.conf: OK
* Checking for manager.conf: OK
* Checking if HTTP is enabled: OK
* Checking if HTTP static support is enabled: FAILED
— Please be sure you have ‘enablestatic = yes’
— in /etc/asterisk/http.conf
make: *** [checkconfig] Error 1

Again, went into /etc/asterisk/http.conf and uncommented enablestatic = yes
This happened again and again. I had to uncomment the following after all was said and done.


enabled = yes
enablestatic = yes

Then in /etc/asterisk/manager.conf
enabled = yes
webenabled = yes

It should also be noted that if you bind the address to 127.0.0.1 you will only be able to access it from that IP, so change it to 0.0.0.0 to access it from anywhere. Also, you should enable an admin account right off the bat by editing /etc/asterisk/manager.conf and putting in
[admin]
secret = yourpasswordhere
read = system,call,log,verbose,command,agent,config
write = system,call,log,verbose,command,agent,config


Now do:
modprobe zaptel
modprobe ztdummy


Add the following to your /etc/rc.local file to load these at startup.

modprobe zaptel
modprobe ztdummy
asterisk –g

Now start asterisk and go to the configuration web gui:

asterisk -g

http://your-server-ip:8088/asterisk/static/config/cfgbasic.html

You use the admin username and password you set up previously in the manager.conf file. If you cannot login, you may want to check that file for typos.


Credit to http://www.cahilig.org/install-asterisk-14-and-asterisk-gui-ubuntu-606-lts-server-and-debian-etch
http://www.cahilig.org/install-asterisk-14-and-asterisk-gui-centos-4-and-centos-5#installation
http://asterisknow.org/install-related

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Laptops and Geeks

Author: admin  //  Category: Open Source, life, linux, technology

My wife is a geek. No doubt about it. We met ten years ago on the web, playing MUDs. I’m sure you have no idea what I’m talking about when I say MUD, but it was actually a game where you used your imagination. You know how when you watch a movie, that is based on a book? It’s not quite as good is it? Well, that’s what modern day MORPGs are to me now. Give me graphics, and I remove the illusion that my brain created with text based games. Also, the element of intimate customization is gone. I had literally hundreds of macros when I used to play MUDs. That quickly dwindled when I moved to everquest, DAOC, WOW.

I digress. My wife is a geek. Yesterday, I scored a 100 dollar laptop. The thing had been in repair, and the person who had it in repair got impatient, and bought a new laptop, and then got this one back. It seems to be working perfectly with linux. It was not working perfectly with Vista. In fact, I could not even get the control panel to come up. I had to run dxdiag just to find the system specs. So I bought the sucker and put Linux Mint 5.1 on it immediatly. Last night, I explained to the wife, I can put XP or vista back on it, but I don’t have time until the weekend. So for now, try out Mint. Also last night, I saw her install scriptmonkey on FireFox3. Nice. Like I said, she’s a geek to. I just have to reel her in.

Sure enough, today, she was playing Kingdom Of Loathing on that sucker happy as can be. Then, the big question. “Does it have FreeCell?” Oh cripes. Well let me show you the beauty of Linux my love, my dearest, my inquisitor. And thus I showed her the wonderful power of apt. At first, I could not find free-cell, but we left gnome-games package running to install lots of game goodness.

Tomorrow, providing free-cell is really there, I expect the person I last expected to move to linux so easily, moved to linux, so easily.

Hmm, I guess I’ll give some of her geek cred back. After all, I did marry a wood elf.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Banshe 1.0 on Hardy

Author: admin  //  Category: Open Source, linux, technology

Want to install Banshee 1.0 on Hardy?

sudo nano /etc/apt/sources.list

add this

deb http://ppa.launchpad.net/banshee-team/ubuntu hardy main
deb-src http://ppa.launchpad.net/banshee-team/ubuntu hardy main

Then do

Sudo apt-get update
Sudo apt-get install bashee-1

Have fun!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

OLPC-XP

Author: admin  //  Category: Open Source, education, technology

This picture says it all…

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

OLPC - The Corruption of Corporate Giants

Author: admin  //  Category: Open Source, education, technology

At some point, something went very wrong. The vision of the One Laptop Per Child project went well beyond giving consumers a “usable XP laptop”. Instead, by fostering the concept of giving third world countries’ children a free and open source platform to learn and work on, we are setting a low barrier to entry for them for the rest of their lives, to use and develop these open technologies.

From an article on CNN Money.

“Microsoft’s Utzschneider says government technology ministers and other leaders have long been attracted to the XO’s innovative design, but were also partisans of Windows. They worried, he says, that support would be a problem, and also wanted students to use software they would also be using later in life. These are clearly reasonable concerns.”

This statement by Microsoft is case and point. The fact that they believe that a proprietary system is more supportable by people in a third world country is absurd. Opening source code to your operating system allows anyone who is willing to know the inner workings of a system. What exactly is the support structure for a nearly obsolete operating system (XP) on the OLPC? It is a laughable notion that a child in Chile who’s family  makes 50 dollars a year is going to get any support from Microsoft when his XP OLPC blue screens. By making the system free and open, a support structure can, and has been built around the communities that receive the OLPC.

Microsoft wants these students to use software they will be using later in life? Putting children that will be reaching the corporate world in 10 years on windows XP benefits no one. It does not benefit the child, and it certainly does not benefit the countries they live in. Putting them on a free and open system that embraces web technologies built into the operating system embraces the future of computing. It is more important that children learn the underlying foundations of technology, and not the superficial layer on top. That is to say, they should be learning how to word process, not how to use Microsoft word. They should be learning how to surf the web, not how to use Internet Explorer. The argument that the OLPC is “hard to use” comes from people who do not have vision, and do not allow change. You have to look at these technological tools from the perspective of a Child who does not have preconceptions of what a computer is, or what a computer should be.

Unfortunately I think that bad business decisions have put the One Laptop Per Child program in jeopardy of failure, and now they are grasping at anything to keep afloat. This latest move clearly undermines the foundations that the project was built on, and it saddens me to see such a brilliant project become part of the proprietary grind.

It is true that many Governments will not purchase computers unless they have a Microsoft label on the box. However, this is a fault of government agencies being tied into monopolistic bad decisions. Many governments are now seeing the folly of relying so heavily on an operating system. As Web services and cloud computing become ever more prevalent, this reliance on proprietary software as a fundamental norm will go away, and I am hopeful, for all of us, that in the future we will not see such a pure project become corrupt by Corporate Giants.

Several Quotes in this article credited to http://money.cnn.com/2008/05/15/technology/microsoft_olpc.fortune/

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]