Archive for the ‘Fedora’ Category

Asterisk tips #1

Thursday, March 15th, 2007

I have been building an asterisk system at work for testing stuff. I started with a Fedora Core 6 box and then installed asterisk from source. Since we will be using a PRI we had to buy a T-1 card. We decided to go with sangoma. For our testing purpose we just got an A102. I installed the card and then went to the sangoma site for the latest wanpipe drivers. After installing them and setting up my zaptel.conf and zapata.conf I found nothing worked. I found out I needed to compile the wanpipe stuff first, and install zaptel from source instead of using the Fedora RPM because the wanpipe package needs to patch the zaptel stuff. Once I finished this and loaded the wanpipe modules and loaded ztdummy and then rebuilt asterisk I had a working sangoma card. I started with a very very basic config for asterisk. I just wanted to have 2 extensions and make them able to call each other using SIP, then I wanted to take 2 of the DID’s provided to me by our phone company and have them ring into the extensions. The SIP part of this was just plain simple. Here is what my sip.conf looks like for asterisk.

[231]
;Test Guy1
type=friend
username=231
secret=231
host=dynamic
context=local_test

[205]
;Test Guy2
type=friend
username=205
host=dynamic
context=local_test

The important thing to note here is the context=local_test Next to get this working completely we need a very basic extension.conf file. Mine looks like this:

; SIP extensions
[local_test]
;Test Guy1
exten => 231,1,Dial(SIP/231)
;Test Guy2
exten => 205,1,Dial(SIP/205,10)
exten => 205,2,PlayBack(vm-goodbye)
exten => 205,3,HangUp()

Thats it, this simple example will now make it so from 231 we can dial 205 then if after 10 seconds we dont answer the phone system will automaticly pick up and play the message vm-goodbye.gsm and then hangup the phone. Remember I said to note the context=local_test Well in our extensions.conf file if we had named our context block something else it wouldnt have worked because the context wouldnt have matched. You can name your context blocks what ever you want, but keep in mind they must match or nothing will work.

Now we need to expand on this just a little bit to get our calls from the outside to ring in. I will cover that later today or Friday. Its very simple so check back soon for the tip.

The end of week 1

Friday, January 19th, 2007

Im still alive, and I still have a job. This job is really sweet. We use a lot of FreeBSD at work. We do use a little bit of linux, and I managed to get though a whole week using Fedora for my desktop. Im looking forward to a project I have been handed. I have to complete a pretty large router setup. It will all be run on some form of FreeBSD. Its a very challenging project that will test my abilities very well.I setup a wiki at work using media wiki. Its going to be for internal use only but will be used to document the router I am building, as well as most other aspects of my job and any one elses job who cares to document how to preform their job. I really like the people I work with, they are very sharp and I will be able to learn a whole lot from them.

This week has been really cold here in San Antonio. We had a hard freeze a couple days in a row and lots of places lost power (thankfully not me). I have found an H-E-B on just about every street corner. From my apartment there is like 2 in what I consider to be walking distance… I have looked around while I have been out driving around lost for other stores that we had in Odessa but I have not found anything other than WalMart. I guess H-E-B has run everyone else out of town… I really like the people I have met so far, although I havent met anyone out side of work… I pretty much stay home and play nintendo wii most of the time anyway. I joined a gym called anytime fitness. They are a 24hr gym. I like this because sometimes when I cant sleep the thing that will make me tired is tossing around some heavy weights or running a mile or so on the cross trainer. Im missing my little girl April very much and I wish she were able to be here…

Conky now in Fedora Extras

Thursday, December 14th, 2006

After nearly 3 months, maybe more, conky has been approved and I have commited it to CVS today A huge thanks goes out to the conky development team for adding countless legal fixes, and even some major fixes to the code to get it included in fedora. Im not planning on making a Fedora Core 5 Branch because when I last checked there was some missing deps and I dont feel like maintaing seperate spec files. I will however be willing to do so if enough people ask for it. If you are one of these people who would like to have it in FC5 please file a bug report on bugzilla about it.

Compaq Presario 15.4" Widescreen Notebook PC (V6120US) CPQ V6120US + Linux == Success!!

Sunday, December 3rd, 2006

Well I posted about the hardships I had trying to get linux installed on my new laptop the other day. I would just like to sy that I now have everything working, and even have the nvidia drivers working on my video for the 3d functionality. Here is what I did to fix:

linux noapic

I stuck in my fedora core 6 DVD and at the boot prompt thats what I typed. Please note that this is not the same as noacpi (the power management stuff). I must thank my good buddy Joe Burnett for doing some googling for me while I was sleeping and posted some info he found which gave me the step. If you have this laptop passing this option at install time will fix the random locking and freezes. I verified this with Fedora, Ubuntu, and Gentoo. I hope this will help someone out there.

Compaq Presario 15.4" Widescreen Notebook PC (V6120US) CPQ V6120US + Linux == Waste of time

Friday, December 1st, 2006

Well I got a Compaq Presario 15.4″ Widescreen Notebook PC (V6120US) CPQ V6120US as my christmas gift this year from my mom, she paid for about 400 of it and I had to cover the cost of the rest (which was close to 600 dollars). I wish I had done more research about linux on this system. I started tonight by install Debian Etch amd64. The install was really quick. In under 30 mins I had a fully installed debian system. The problem was that it would lock up if the system beep was triggered, or if I tried to start X as a user instead of as root, or if I tried to boot the box in any other run level than single user mode. Next I gave Ubuntu 6.10 a shot both the i386 and the amd64. Both system had the same problem, just randomly locking up for no good reason. Next on to Fedora Core 6 both i386 and x86_64. The i386 was a huge waste of ime, it was constantly locking up, it was lucky to even boot. The x86_64 was just as bad, I managed to get it to boot every time into single user mode but when trying to boot to init 3 with gdm turned off it will lock in a diff spot every time. I went in to init 1 and turned off every service I could think of but it still locked in a diff spot every time.

My advise is this: If you plan to use linux on this system, please dont waste your money

Over this weekend I will be trying to find some Open Source OS that will run, but Im not keeping my hopes up. I refuse to use windows on this box so if I dont have any luck getting linux working Im gonna try to sell this thing and get a 32 bit system. As of right now I feel like I took about 1000 bucks and flushed it down the crapper. Had I gone with a 32 bit system I would have been able to score one hell of a system I think… If you have any hints on what can be done to get this system working please feel free to comment and let me know. Thanks.

PekWM, its whats for breakfast!

Thursday, October 12th, 2006

I have been trying to get a package built for fedora for pekwm. PekWM is a nice light weight window manager for X-11. I decided to give it a shot using it because it supported dynamic menus. I built a package and filed a bug report so it could be included in fedora extras. After my first couple of comments it was suggested to me to create something more fedora friendly for my package. As it is the default menu provided by pekwm has a lot of apps in it. I didnt even have 1/2 of them my self. This was a minor problem to provide a package to a user who in turn cant use 1/2 of whats in the menu. It doesnt take an expert to figure out that bugs would be filed about things “not working”. I decided to take the code from fluxbox-xdg-menu and fork it to work for pekwm. After about an hour or so of hacking I removed all the unneeded stuff from its code base and had a fully functional dynamic menu generator using freedesktop.org standards. Tonight I plan to repackage pekwm and post an updated .spec file and src rpm. I hope that by the first of next week I will be commiting pekwm to fedora extras cvs.

Fedora Extras Sponsered!!

Friday, October 6th, 2006

Hey, thats right!! I have now been sponsered and I got my CVS access yesterday to the fedora extras project. Patrice Dumas has sponsered me so now it looks like I will be able to add some of my packages to the Fedora Extras so you can now install them offically via yum. Right now I have been approved to add scrot, wmctrl, and root-tail. Look for these packages soon in a repo near you.

More Fedora RPMS

Wednesday, September 27th, 2006

I have been on a kick lately building packages for Fedora. I have started to build packages for:

And several others which are slipping my mind right now. I plan to add as many new packages each day as I can. I am still building fluxbox and fluxbox-svn packages too. All the packages are built using mock to help make sure that all the deps are met during build time, and that they are built in a clean env every time (just like in the fedora extras project 🙂 ) In the next couple of weeks I will be submitting all the packages I have been building for review to the fedora extras project (I really hope they get accepted and find their way in so I can yum install them on my other systems 😛 ).

Fluxbox RPMS for Fedora

Wednesday, September 13th, 2006

I started building RPMS for Fedora Core 3 4 5 and 6 of the latest versions of fluxbox. Right now I have SVN versions of fluxbox built for Fedora Core 5 and 6, and will have RPMS for version 3 and 4 by weeks end. I will also have 1.0rc2 release packages up sometime tonight for core 5 and 6 with 3 and 4 to follow.

Fedora Core 5 irssi scripts

Tuesday, August 8th, 2006

I have been using irssi as my IRC client on gentoo for years. I loved it, I would run it in screen so when I was out in the “real world” I could ssh into my system and “pick up” my IRC session and chat with my buds. When I installed fedora a few weeks ago I made sure to install irssi as well

yum install irssi

For those of you who wanted to know how to install it for your self. I noticed after I installed it I wasnt able to load any of the scripts I have written for it. I was missing the vital command “/script”. To solve this problem all that has to be done is to run the following command

/load perl

This will give you the “/script” command, and with out it you cant load or run any perl scripts. To keep from typing this every time you start irssi simply add it to your startup script for irssi. From the command prompt run the following command

echo "load perl" >> ~/.irssi/startup

I hope this will help someone out there.