Main Page
Notes on oslec codec with asterisk
to recompile after yum update or change of kernel.
yum update
re load, if new kernel
should be a symbolic link from /usr/src/dadhi to asteriskversion/dahdi-linux-x.x.x
cd to it
make clean
make make install
see notes on using echo cancelling with oslec to setup the software.
Setting up oslec with dahdi drivers and asterisk
the install:
cd /usr/src wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.tar.bz2 tar xjf linux-2.6.28.tar.bz2 mkdir /usr/src/dahdi/drivers/staging cp -fR /usr/src/linux-2.6.28/drivers/staging/echo /usr/src/dahdi/drivers/staging sed -i "s|#obj-m += dahdi_echocan_oslec.o|obj-m += dahdi_echocan_oslec.o|" /usr/src/dahdi/drivers/dahdi/Kbuild sed -i "s|#obj-m += ../staging/echo/|obj-m += ../staging/echo/|" /usr/src/dahdi/drivers/dahdi/Kbuild echo 'obj-m += echo.o' > /usr/src/dahdi/drivers/staging/echo/Kbuild cd /usr/src/dahdi/ make make install
Sample configs:
Ureal Tornament
Notes on installed on ubuntu / xubuntu
Download ut-install-436.run from:
http://www.3ddownloads.com/linuxgame...nstall-436.run
and lots of other places.
Make it executable:
sudo chmod +x ut-install-436.run
Since this "run" file is quite old you need to ubuntu that it can understand the format or you will see errors such as "invalid gzip format" - "can't find -6" etc etc. To convince the installer that it's on an old machine first type:
export _POSIX2_VERSION=199209
Then run the installer
sudo ./ut-install-436 --keep
This creates a folder called ut-436. You can run the setup program in the folder, mount your cd and away you go.. except my original CD was so badly damaged it was unreadable. Fortunately I had it installed on a windows pc and was able to copy the directory to my ubuntu system (/tmp/ut).
So I had to run the installer telling it where to find the UT files, type:
sudo export SETUP_CDROM=/tmp/ut (or where ever you put it)
After this, I found the install still insisted I had not given it a CD! To find out what the installer was doing I ran strace against the setup program. It turns out it's looking for s file called UNREALTOURNAMENT.EXE in that EXACT case, I assume this was the windows installer or when it was installed on windows it was happy with a lower case version. I had to rename the file to uppercase before the installer ran. You could also create a blank version of the upper case file to convince the installer it's looking at the original CD.
Once the installer has finished (I had an error, about a missing file but it installed ok) and now plays. You can type:
unset _POSIX2_VERSION
Just to keep things clean.
And away you go... except I don't gave a 3d card! In fact I don't think you can even get this type of card on a modern system. Since the game was written for such a card you get an error about GLIDE not found.
I found this on the ubuntu web site:
Thou shall play UT yet! (I hope!)
That error message is telling you that you are trying to play unreal Tournament using the Glide renderer - but don't have a graphics card which supports it.
Now you say you don't have a 3D card so hardware rendering isn't an option so we are going to have to tell it to use 'software rendering'.
There are two files we are going to need to edit (one if you are the only user on the pc)
1. Open a console window and type:
gedit .loki/ut/System/UnrealTournament.ini
2. Scroll down the file until we come to a bit which says [Engine.Engine]. The next three lines are the one we will be considering. At the moment they should say:
[Engine.Engine] GameRenderDevice=GlideDrv.GlideRenderDevice WindowedRenderDevice=GlideDrv.GlideRenderDevice RenderDevice=GlideDrv.GlideRenderDevice
which is telling UT to use Glide rendering
3. Because we are wanting to use software rendering we are going to have to replace these lines with the following:
[Engine.Engine] GameRenderDevice=SDLSoftDrv.SDLSoftwareRenderDevice WindowedRenderDevice=SDLSoftDrv.SDLSoftwareRenderDevice RenderDevice=SDLSoftDrv.SDLSoftwareRenderDevice
Now you want to save the file and exit, then type UT into a console window and cross your fingers!
Now, if in the future you get a 3d graphics card and you want to use hardware rendering then either use the following if you want to use Glide rendering (which I think is mainly for 3Dfx cards - 3dfx Banshee etc):
[Engine.Engine] GameRenderDevice=GlideDrv.GlideRenderDevice WindowedRenderDevice=GlideDrv.GlideRenderDevice RenderDevice=GlideDrv.GlideRenderDevice
or use
[Engine.Engine] GameRenderDevice=SDLGLDrv.SDLGLRenderDevice WindowedRenderDevice=SDLGLDrv.SDLGLRenderDevice RenderDevice=SDLGLDrv.SDLGLRenderDevice
to use OpenGL rendering.
I found the OpenGl rendering to be the best - if available.
Other notes: You may need to add this to the ut sript ro point to the correct Syetem directory
UT_DATA_PATH=/usr/local/games/ut/System