Archive for the ‘ General ’ Category

A2Billing Auto Installer for CentOS 5 (i386 or x86_64)

Hi buds,

I am sharing a script that I have worked for a couple of days for my work in order to keep things easy and automated for me as I normally have to install some A2Billing boxes and it’s a quite long and tedius process. For more info here is the README:

README

This script allows you to install A2Billing on a clean install of CentOS 5 (Either i386 or x86_64) just ‘Base’ is required to install it.

Among other things the script does:

- Install & Configure of LAMP (Requesting MySQL root & a2billing password)
- Install A2Billing
- Configure it for production state
- Compile from sources the Sangoma Wanpipe drivers if desired
- Disable SELinux & Firewall
- Disable unused default services in CentOS 5
- Install Asterisk from Digium repositories
- Configure cronjobs, logs, etc

HOW TO INSTALL

Be sure to have the ‘screen’ package installed, in order to do it you can run:

yum -y install screen

Then you have to execute the script on a screen session, to do this run:

screen

And then execute the script:

chmod +x a2billing_setup.sh
./a2billing_setup.sh

Source code available at: https://github.com/amontalban/A2Billing-Install-Script

Thanks for checking it out!

How to delete a huge amount of files at once on linux

I was trying to delete a folder which tons of files and the rm command was giving me an error,
luckly the almighty find command did the job for me :)

-bash-3.2# ls -1 | wc -l
54999

Wow that’s a lot of files!

-bash-3.2# rm *
-bash: /bin/rm: Argument list too long

Yikes! Let’s try the find alternative

-bash-3.2# find . -type f -exec rm -f {} \;
-bash-3.2# ls -1 | wc -l
0

Great :)

Hey I am alive!

Hey people and bots,

I just wanted to say that I am alive but just too busy to maintain the blog (Well to be honest I also don’t enjoy writing as much as I did earlier, I don’t know why this happens to me with all the blogs I created…). The last post I wrote was 3 months ago and great things happened here in Uruguay, our national team ended up 4th in the FIFA World Cup, one thing that didn’t happen since 1970 when my fathers were just teenagers. Also AM Technology & Systems is getting bigger and bigger every day so this also consume almost all my day. That’s why I came up with this idea to revitalize this blog, instead of writing stuff that only bots and crawlers read all the time, I thought that would be great if you just tell me ideas for posts and I will just write about them, for example “How can I install XYZ software”, “How do I do XYZ stuff”, etc.

I think it’s better to write useful howtos for real people that just writing non-sense things that are only useful for me, besides I really got visitors attention on the FFMPEG Installation howto for Clip-Bucket . So don’t be shay and leave me some comments about what you want me to write, I think it will be funny because I will take it as a challenge and I love challenges :)

Thank you for stopping by!

Cheers,

Andres