[SLUG] any asterisk experts willing to help in initial config?
Hello, I've installed asterisk 1.4.23 on a hosted Xen guest (CentOS 5) and someone with more exposure to Asterisk than me managed to get a basic echo test to work on his office desktop. I also bought credit for termination with grnvoip.com, who also sent me some Asterisk config snippets. But that's about it. My firend didn't know how to setup the dial plans to connect the incoming registered sip client to them, and all the documentation I managed to find in the last couple of weeks seems to assume that the reader somehow was born with understanding of the basics and the terminology. I also have troubles setting up a SIP client to access Asterisk, not the least because it appears that most of them don't cooperate with pulse audio (http://ultrahigh.org/2008/05/08/voice-over-ip-on-hardy/, I know it's about 8.04 and I have 8.10 on my desktops but still I get similar or worse results). Twinkle was recommended to me as a good client for SIP debugging. I'm no stranger to technical docs (e.g. learned the TCP/IP protocol stack from the RFC's long before Stevens cam out with the books which cover this) but I keep getting into loops of trying to understand where to begin and how to extrapolate from the examples I find to the specific information I got from grnvoip and my specific server. Would someone here be willing to sit with me for an hour and show me around how to get a basic Asterisk config working? Thanks very much in advance, --Amos -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: problem in shell script to merge PDF fils
Please don't take this the wrong way but you can achieve a huge amount with the opensource gui based pdfsam which is GPL'd I think, I use it all the time and love it. It takes care of a lot of your challenges without a single line of scritping :-) Cheers MARK On 19 Feb, 10:28, pe...@chubb.wattle.id.au wrote: Chris == Chris Allen chris.h.al...@gmail.com writes: Chris I need to merge several sets of PDF files into a single PDF Chris file For example want to merge the files spaces in file names are difficult to handle, especially when you have multiple levels of quoting. Chris To make life easier I created the following shell script Chris #bash echo echo $0 echo $1.pdf echo \$2\* echo echo gs Chris -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$1.pdf Chris \$2\* echo gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite Chris -sOutputFile=$1.pdf \$2\* That needs to be $2 withput the backslashes. I'd actually want to do something like: #!/bin/sh output=$1 shift gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$output $@ and list all the filenames (properly quoted) on the command line to the script, thus: pdfmerge outfile.pdf a .b.c .pdf foo bah .pdf etc In general, I'd avoid file names with spaces or tabs in them. There are too many badly-written scripts in the wild that will do the wrong thing with them. Peter C -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.auhttp://www.ertos.nicta.com.au ERTOS within National ICT Australia -- SLUG - Sydney Linux User's Group Mailing List -http://slug.org.au/ Subscription info and FAQs:http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] installing eeebuntu from thumbdrive
Gentlepeople, I started a thread a couple of weeks ago on this subject. Several suggestions were that Ubuntu had a make bootable thumbdrive tool ready to go. I did (eventually) get around to this solution and I'm happy to say that it just worked in setting up an eeebuntu bootable thumbdrive utilising the eeebuntu iso file. The tool appeared to be similar to the unetbootin tool but where that _nearly_ made a bootable drive (it booted but would not execute any menu choices), the ubuntu tool did the job correctly. I haven't done any investigation as to the difference in end product (I don't have two thumbdrives). Regards Kevin. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Need a lesson in memory
Hi Slugger's It appears I need a lesson in Linux and memory management. If you could treat this request as if coming from a complete numpty please, and simply explain the differences between Cached, Buffered and Application Memory as they pertain to Linux? According to KDE SysGuard, my CentOS 5.2 server appears to cache its entire 2GB quotient of physical RAM. And my general experience of the box (implemented as file server, mail server, firewall and router) is that it is slow. Something tells me it shouldn't be behaving like this? -- Kind Regards Kyle -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Need a lesson in memory
In short: that's normal, and shouldn't cause your machine to be slow - unless it's starved of RAM, in which case the solution is to get more RAM, not to cache less. Here's some sample output from my machine right now: poll...@andromeda:~$ free total used free sharedbuffers cached Mem: 823512026884845546636 0 815620 697696 -/+ buffers/cache:11751687059952 Swap: 2097136 02097136 The values reported under buffers and cached represent files read from or written to disk, which the kernel is cached in RAM in case they're needed again soon. If you take the buffers and cached values from the first row and subtract them from the used value (or add them to the free value), you get the values on the second row, which are (usually) the more important figures. You haven't mentioned swap though - is your machine eating into swap? My machine isn't - hence the 0 in the used column on the third row. If your machine is chewing into swap, the slowness could be caused by the machine having to constantly swap things in and out of RAM. There's a slight chance you could fix this by tweaking the swappiness of your kernel - but more likely, you'll swap one kind of slowdown (applications swapping in/out) for another kind (commonly-used files having to be read from disk every time, rather than being cached in fast memory) The classic example of this is a memory-limited desktop machine running both GIMP and Firefox. Dumping buffers/cache means that both Gimp and Firefox run sluggishly, but you can swap between apps at will. Swapping out applications makes GIMP run faster while you're using it - but causes the whole system to freeze for a second when you swap to Firefox, and then freeze again when you swap back. http://kerneltrap.org/node/3000 has a lengthy discussion about the swappiness parameters (from the linux-kernel mailing list, back in 2004). In short, /proc/sys/vm/swappiness controls how much the kernel swaps - 0 means the kernel will avoid swapping at all costs and dump cached files instead; 100 means the kernel will swap out anything it can in favour of lots of caching. The best solution though is to get more RAM. It's cheap, and it makes everything faster. That is, assuming this is actually your problem (if this email is incoherent, it's because my morning coffee has had time to perk me up, but not enough time for me to actually be awake yet) On Fri, Feb 20, 2009 at 8:48 AM, Kyle k...@attitia.com wrote: Hi Slugger's It appears I need a lesson in Linux and memory management. If you could treat this request as if coming from a complete numpty please, and simply explain the differences between Cached, Buffered and Application Memory as they pertain to Linux? According to KDE SysGuard, my CentOS 5.2 server appears to cache its entire 2GB quotient of physical RAM. And my general experience of the box (implemented as file server, mail server, firewall and router) is that it is slow. Something tells me it shouldn't be behaving like this? -- Kind Regards Kyle -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Need a lesson in routing [WAS: memory]
Thanks the response and explanation James. I get the following, sooo... not _too_ bad I guess from that perspective. [k...@bottlenose ~]$ free total used free sharedbuffers cached Mem: 20729081987788 85120 0 1710841096132 -/+ buffers/cache: 7205721352336 Swap: 41929441124192832 So I guess I need to look elsewhere as to why my experience is slow. To clarify my thinking, my 'slow' experience relates to the Server/Router routing to/from the hosts behind it. Hosts behind the box timeout frequently when contacting the mail server. Likewise HTTP calls through the box seem unusually slow despite an ADSL2+ running at ~ 15Kbps D'Load connection (noise margin and attentuation seem in reasonable levels). Yet an HTTP call from the Server itself loads fairly quickly. 'route' shows what it needs to show. I have only ever read of one param in sysctl.conf that relates to routing. Where do I start to look? Kind Regards Kyle James Polley wrote: You haven't mentioned swap though - is your machine eating into swap? The best solution though is to get more RAM. It's cheap, and it makes everything faster. That is, assuming this is actually your problem On Fri, Feb 20, 2009 at 8:48 AM, Kyle k...@attitia.com wrote: Hi Slugger's It appears I need a lesson in Linux and memory management. If you could treat this request as if coming from a complete numpty please, and simply explain the differences between Cached, Buffered and Application Memory as they pertain to Linux? According to KDE SysGuard, my CentOS 5.2 server appears to cache its entire 2GB quotient of physical RAM. And my general experience of the box (implemented as file server, mail server, firewall and router) is that it is slow. Something tells me it shouldn't be behaving like this? -- Kind Regards Kyle -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Need a lesson in routing [WAS: memory]
maybe you should check your interfaces for half/full duplex and if there's errors or collisions... otherwise have a play with vmstat, iostat, mpstat etc - they could point you in a direction to look further, at least it will give you hints to see if the box is actively swapping (have swapped out data and swapping in/out data all the time are quite different, as James kinda mentioned) On Fri, Feb 20, 2009 at 10:57 AM, Kyle k...@attitia.com wrote: Thanks the response and explanation James. I get the following, sooo... not _too_ bad I guess from that perspective. [k...@bottlenose ~]$ free total used free sharedbuffers cached Mem: 20729081987788 85120 0 1710841096132 -/+ buffers/cache: 7205721352336 Swap: 41929441124192832 So I guess I need to look elsewhere as to why my experience is slow. To clarify my thinking, my 'slow' experience relates to the Server/Router routing to/from the hosts behind it. Hosts behind the box timeout frequently when contacting the mail server. Likewise HTTP calls through the box seem unusually slow despite an ADSL2+ running at ~ 15Kbps D'Load connection (noise margin and attentuation seem in reasonable levels). Yet an HTTP call from the Server itself loads fairly quickly. 'route' shows what it needs to show. I have only ever read of one param in sysctl.conf that relates to routing. Where do I start to look? Kind Regards Kyle James Polley wrote: You haven't mentioned swap though - is your machine eating into swap? The best solution though is to get more RAM. It's cheap, and it makes everything faster. That is, assuming this is actually your problem On Fri, Feb 20, 2009 at 8:48 AM, Kyle k...@attitia.com wrote: Hi Slugger's It appears I need a lesson in Linux and memory management. If you could treat this request as if coming from a complete numpty please, and simply explain the differences between Cached, Buffered and Application Memory as they pertain to Linux? According to KDE SysGuard, my CentOS 5.2 server appears to cache its entire 2GB quotient of physical RAM. And my general experience of the box (implemented as file server, mail server, firewall and router) is that it is slow. Something tells me it shouldn't be behaving like this? -- Kind Regards Kyle -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Need a lesson in routing [WAS: memory]
Kyle == Kyle k...@attitia.com writes: Kyle So I guess I need to look elsewhere as to why my experience is Kyle slow. To clarify my thinking, my 'slow' experience relates to Kyle the Server/Router routing to/from the hosts behind it. Is this on individual connexions or after a connection is established? If the former, I'd be looking at DNS services and timeouts. If the latter, then measuring on the server box. Kyle Hosts behind the box timeout frequently when contacting the mail Kyle server. Likewise HTTP calls through the box seem unusually slow Kyle despite an ADSL2+ running at ~ 15Kbps D'Load connection (noise Kyle margin and attentuation seem in reasonable levels). Yet an HTTP Kyle call from the Server itself loads fairly quickly. The mail server *is* the box? Is this box also serving DHCP? Who serves DNS inside your firewall? == Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia A university is a non-profit organisation only in the sense that it spends everything it gets ... Luca Turin. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Need a lesson in routing [WAS: memory]
Must remember to hit Reply to All Yes, the mail server *is* the box. It also serves DHCP and DNS. But I didn't think they were all that heavy. To address Kelvin's reply, DNS calls for internal and external machines are super quick, so I'm guessing the DNS server is also doing its job properly. Kind Regards Kyle Peter Chubb wrote: The mail server *is* the box? Is this box also serving DHCP? Who serves DNS inside your firewall? == -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Need a lesson in routing [WAS: memory]
On Fri, Feb 20, 2009 at 12:35:09PM +1100, Peter Chubb wrote: Kyle == Kyle k...@attitia.com writes: Kyle So I guess I need to look elsewhere as to why my experience is Kyle slow. To clarify my thinking, my 'slow' experience relates to Kyle the Server/Router routing to/from the hosts behind it. Is this on individual connexions or after a connection is established? If the former, I'd be looking at DNS services and timeouts. If the latter, then measuring on the server box. Kyle Hosts behind the box timeout frequently when contacting the mail Kyle server. Likewise HTTP calls through the box seem unusually slow Kyle despite an ADSL2+ running at ~ 15Kbps D'Load connection (noise Kyle margin and attentuation seem in reasonable levels). Yet an HTTP Kyle call from the Server itself loads fairly quickly. jumping into the discussion, have you got an mtu problem ? The mail server *is* the box? Is this box also serving DHCP? Who serves DNS inside your firewall? == Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia A university is a non-profit organisation only in the sense that it spends everything it gets ... Luca Turin. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- You believe in the Almighty, and I believe in the Almighty. That's why we'll be great partners. - George W. Bush 12/10/2002 Washington, DC to Turkish Prime Minister Recap Tayyip Erdogan, signature.asc Description: Digital signature -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Need a lesson in routing [WAS: memory]
Hi Alex, No, I doubt it. I have recently checked, tested and setup MTU settings all the way through the chain and that made it a little better, but still not what I would expect from 15Kbps download. Kind Regards Kyle Alex Samad wrote: jumping into the discussion, have you got an mtu problem ? -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html