Re: [asterisk-users] New Tutorial: Asterisk on EPIA VIA C3

2008-03-31 Thread Alan Lord
Darrick Hartman (lists) wrote:
snip /

 I didn't find it too much trouble in a Via C700N system. But I wouldn't 
 use one of the mainstream distros for the OS. They chew up system 
 resources just trying to accommodate any hardware.

 The solution is to roll-your-own. See this series of articles on my 
 blog... http://www.theopensourcerer.com/tag/asterisk/
 
 The C7 supports full i686 features.  The C3 is an older chip that is 
 fully i586 and partially i686 compatible.  If you have a distribution 
 that is compiled with i586 optimizations, you won't have problems.
 
 Darrick

Yeah, hi Darrick. I sort of realised after my post what the issue was 
with the C3. Although my point about not using a regular distro still 
stands. If you roll your own, all the features of the host hardware 
can be used - perhaps more importantly, *only* those features - and your 
kernel and compiler appropriately optimised.

Regular distros are great (I use Ubuntu on my desktop pc) but they do 
have to try and be all things to all men and suck up cycles and ram like 
the latest Dyson ;-) But for a low power 24/7 server that I won't be 
playing much with; a custom build is just fine.

Consider that I have running concurrently on my little C7 with 1G of RAM 
(That I have *down-clocked* to 1Ghz):

* Asterisk,
* Samba,
* Java/Tomcat:
*Cosmo Calendar Server
*ConcursiveSuiteCRM
*Alfresco
*OpenBravo
* PostgreSQL,
* MySQL,
* Exim,
* Apache,
* Vtiger, SugarCRM, A few Joomla! instances,
* Subversion Server
* sshd,
* ntpd,

And some other stuff that I can't recall. I don't think that's too bad 
;-) When I get some more free time, I'm planning to build Untangle too.

Cheers

Al

-- 
The way out is open!
http://www.theopensourcerer.com


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] New Tutorial: Asterisk on EPIA VIA C3

2008-03-31 Thread Lenz

Apart from the tutorial itself, what I wanted to point out was that the  
way asterisk, zaptel and libpri are to be built is different for each  
project, and this is sub-optimal; and that by building Asterisk as  
required, you get a linkage error.
l.



On Sat, 29 Mar 2008 12:03:59 +0100, Alan Lord [EMAIL PROTECTED] wrote:

 Lenz wrote:
 Hello list,
 after spending the best part of an afternoon trying to build Asterisk on
 an old EPIA VIA C3, I thought that writing a tutorial would make life
 easier for future compilers:

 http://astrecipes.net/index.php?n=356

 I had never compiled Asterisk for a different architecture, and I'm  
 pretty
 disappointed at how complex it is - building Zaptel, Libpri and Asterisk
 requires discovering three different procedures, and even passing the
 required architecture to the autoconfig module was not enough for a  
 clean
 build - libpthread and libresolv would not link, so you have to add them
 manually. Aybody got an idea of who should be notified of this immediate
 problem, apart for the time-wasteful general compilation procedure?

 Thanks
 l.





 Hi there,

 I didn't find it too much trouble in a Via C700N system. But I wouldn't
 use one of the mainstream distros for the OS. They chew up system
 resources just trying to accommodate any hardware.

 The solution is to roll-your-own. See this series of articles on my
 blog... http://www.theopensourcerer.com/tag/asterisk/

 Cheers

 Al




-- 
Loway Research - Home of QueueMetrics
http://queuemetrics.com

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] New Tutorial: Asterisk on EPIA VIA C3

2008-03-31 Thread Tzafrir Cohen
On Mon, Mar 31, 2008 at 09:11:00AM +0100, Alan Lord wrote:
 Darrick Hartman (lists) wrote:
 snip /
 
  I didn't find it too much trouble in a Via C700N system. But I wouldn't 
  use one of the mainstream distros for the OS. They chew up system 
  resources just trying to accommodate any hardware.
 
  The solution is to roll-your-own. See this series of articles on my 
  blog... http://www.theopensourcerer.com/tag/asterisk/
  
  The C7 supports full i686 features.  The C3 is an older chip that is 
  fully i586 and partially i686 compatible.  If you have a distribution 
  that is compiled with i586 optimizations, you won't have problems.
  
  Darrick
 
 Yeah, hi Darrick. I sort of realised after my post what the issue was 
 with the C3. Although my point about not using a regular distro still 
 stands. If you roll your own, all the features of the host hardware 
 can be used - perhaps more importantly, *only* those features - and your 
 kernel and compiler appropriately optimised.
 
 Regular distros are great (I use Ubuntu on my desktop pc) but they do 
 have to try and be all things to all men and suck up cycles and ram like 
 the latest Dyson ;-) But for a low power 24/7 server that I won't be 
 playing much with; a custom build is just fine.

You can easily take a standard distro and remove all the services you
don't really need.

 
 Consider that I have running concurrently on my little C7 with 1G of RAM 
 (That I have *down-clocked* to 1Ghz):

One major point: one of the cool advantages of the VIA CPUs is that it
can be run fanless. In your setup you couple it with a large HD, and
hence your system has moving parts.

 
 * Asterisk,
 * Samba,
 * Java/Tomcat:
   *Cosmo Calendar Server
   *ConcursiveSuiteCRM
   *Alfresco
   *OpenBravo
 * PostgreSQL,
 * MySQL,
 * Exim,
 * Apache,
 * Vtiger, SugarCRM, A few Joomla! instances,
 * Subversion Server
 * sshd,
 * ntpd,

Now, why would you run all of those things on the same system?

Asterisk needs a responsive system. It will not play along well if you
add heavy-duty file serving to the system, as the system will spend too
much time serving files (in kernel space).

There's a limit to what you can optimize away with real-time kernel
features. 

Oh, and practically all of those can be installed as standard Debian
packages, without a need for such a lengthy installation manual. I bet
that in 1/2 a year after you install it, you'll end up with a system
with quite a few known security holes. But you'll never bother fixing
them.

Xandros is one such vendor that never bothered following up on security
fixes. Hence the eeepc was an easy target for exploiters. Need I say
that I will not advise anyone to use software from Xandros?

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] New Tutorial: Asterisk on EPIA VIA C3

2008-03-31 Thread Alan Lord
Tzafrir Cohen wrote:
snip /
 
 You can easily take a standard distro and remove all the services you
 don't really need.
 

Yes, but you can't easily change the way the apps are built or setup, 
e.g. compiler optimisations, use of initrd when not necessary, kernel 
bloat just to accommodate any host.

 Consider that I have running concurrently on my little C7 with 1G of RAM 
 (That I have *down-clocked* to 1Ghz):
 
 One major point: one of the cool advantages of the VIA CPUs is that it
 can be run fanless. In your setup you couple it with a large HD, and
 hence your system has moving parts.

No. Fanless is useful, but it is power consumption I am more interested 
in. A typical AMD/Intel desktop processor will now chew upwards of 
100W. That's without the mobo and external components. Also, can you 
find 300Gb of solid state storage for about £30. ;-)

 
 * Asterisk,
 * Samba,
 * Java/Tomcat:
  *Cosmo Calendar Server
  *ConcursiveSuiteCRM
  *Alfresco
  *OpenBravo
 * PostgreSQL,
 * MySQL,
 * Exim,
 * Apache,
 * Vtiger, SugarCRM, A few Joomla! instances,
 * Subversion Server
 * sshd,
 * ntpd,
 
 Now, why would you run all of those things on the same system?
 

Because it is for home use where there is low, but relatively constant 
load (my wife and I both have home offices). Some of the apps are for 
testing/evaluation so do not get used heavily and will not last very 
long. I just wanted to show what is possible with a sub £100 7Watt piece 
of hardware.

 Asterisk needs a responsive system. It will not play along well if you
 add heavy-duty file serving to the system, as the system will spend too
 much time serving files (in kernel space).

I have not experienced *any* performance issues - so far. And uptime is 
permanent - until I reboot as I've installed a new kernel or something.

 Oh, and practically all of those can be installed as standard Debian
 packages, without a need for such a lengthy installation manual. 

Yes, they can. But I might not like where and how Debian (for example) 
decides how and where they install and setup those apps. They also do 
not use the most up-to-date versions and you are in their hands about 
when and how to upgrade.

I bet that in 1/2 a year after you install it, you'll end up with a system
 with quite a few known security holes. But you'll never bother fixing
 them.

How much ;-)

Seriously, if I find or notice for a major bug/hole it is trivial to 
update. I keep all my installation procedures noted (or scripted) so it 
is pretty easy just to a CMMI with a new version.

I wouldn't recommend this route for everyone. But being a control freak 
I know what and where *everything* is on my server... I don't have that 
level of control when using a mainstream distro. Sudo apt-get install is 
nice, but you are totally ignorant about what's going on under the 
hood... Hey that sounds just like Windows! lol.

Cheers

Al


-- 
The way out is open!
http://www.theopensourcerer.com


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] New Tutorial: Asterisk on EPIA VIA C3

2008-03-31 Thread Gordon Henderson

On Mon, 31 Mar 2008, Alan Lord wrote:


Also, can you
find 300Gb of solid state storage for about £30. ;-)


Where??

Gordon___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] New Tutorial: Asterisk on EPIA VIA C3

2008-03-31 Thread Alan Lord
Gordon Henderson wrote:
 On Mon, 31 Mar 2008, Alan Lord wrote:
 
 Also, can you
 find 300Gb of solid state storage for about £30. ;-)
 
 Where??
 
 Gordon

Sorry my bad. It was a question...

Al
-- 
The way out is open!
http://www.theopensourcerer.com


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] New Tutorial: Asterisk on EPIA VIA C3

2008-03-31 Thread Gordon Henderson

On Mon, 31 Mar 2008, Alan Lord wrote:


Gordon Henderson wrote:

On Mon, 31 Mar 2008, Alan Lord wrote:


Also, can you
find 300Gb of solid state storage for about £30. ;-)


Where??

Gordon


Sorry my bad. It was a question...


Ah, Doh... I mis-read it all.. Curse my dyslexia!

However I've moved my own workstations and dev. servers over to running 
Debian in a 4GB device with /home mounted on a similar spec. server as 
yours (1GHz Via C3 - same platform as my PBXs) which also boots off flash 
with a pair of low-power WD SATA drives in it ... Seems to work just fine!


Gordon___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] New Tutorial: Asterisk on EPIA VIA C3

2008-03-30 Thread Darrick Hartman (lists)
Alan Lord wrote:
 Lenz wrote:
 Hello list,
 after spending the best part of an afternoon trying to build Asterisk on  
 an old EPIA VIA C3, I thought that writing a tutorial would make life  
 easier for future compilers:

 http://astrecipes.net/index.php?n=356

 I had never compiled Asterisk for a different architecture, and I'm pretty  
 disappointed at how complex it is - building Zaptel, Libpri and Asterisk  
 requires discovering three different procedures, and even passing the  
 required architecture to the autoconfig module was not enough for a clean  
 build - libpthread and libresolv would not link, so you have to add them  
 manually. Aybody got an idea of who should be notified of this immediate  
 problem, apart for the time-wasteful general compilation procedure?

 Thanks
 l.




 
 Hi there,
 
 I didn't find it too much trouble in a Via C700N system. But I wouldn't 
 use one of the mainstream distros for the OS. They chew up system 
 resources just trying to accommodate any hardware.
 
 The solution is to roll-your-own. See this series of articles on my 
 blog... http://www.theopensourcerer.com/tag/asterisk/

The C7 supports full i686 features.  The C3 is an older chip that is 
fully i586 and partially i686 compatible.  If you have a distribution 
that is compiled with i586 optimizations, you won't have problems.

Darrick
-- 
Darrick Hartman
DJH Solutions, LLC
http://www.djhsolutions.com

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] New Tutorial: Asterisk on EPIA VIA C3

2008-03-29 Thread Alan Lord
Lenz wrote:
 Hello list,
 after spending the best part of an afternoon trying to build Asterisk on  
 an old EPIA VIA C3, I thought that writing a tutorial would make life  
 easier for future compilers:
 
 http://astrecipes.net/index.php?n=356
 
 I had never compiled Asterisk for a different architecture, and I'm pretty  
 disappointed at how complex it is - building Zaptel, Libpri and Asterisk  
 requires discovering three different procedures, and even passing the  
 required architecture to the autoconfig module was not enough for a clean  
 build - libpthread and libresolv would not link, so you have to add them  
 manually. Aybody got an idea of who should be notified of this immediate  
 problem, apart for the time-wasteful general compilation procedure?
 
 Thanks
 l.
 
 
 
 

Hi there,

I didn't find it too much trouble in a Via C700N system. But I wouldn't 
use one of the mainstream distros for the OS. They chew up system 
resources just trying to accommodate any hardware.

The solution is to roll-your-own. See this series of articles on my 
blog... http://www.theopensourcerer.com/tag/asterisk/

Cheers

Al

-- 
The way out is open!
http://www.theopensourcerer.com


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] New Tutorial: Asterisk on EPIA VIA C3

2008-03-28 Thread Lenz
Hello list,
after spending the best part of an afternoon trying to build Asterisk on  
an old EPIA VIA C3, I thought that writing a tutorial would make life  
easier for future compilers:

http://astrecipes.net/index.php?n=356

I had never compiled Asterisk for a different architecture, and I'm pretty  
disappointed at how complex it is - building Zaptel, Libpri and Asterisk  
requires discovering three different procedures, and even passing the  
required architecture to the autoconfig module was not enough for a clean  
build - libpthread and libresolv would not link, so you have to add them  
manually. Aybody got an idea of who should be notified of this immediate  
problem, apart for the time-wasteful general compilation procedure?

Thanks
l.




-- 
Loway Research - Home of QueueMetrics
http://queuemetrics.com

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users