Installing Sangoma cards under Linux

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "The installation of Sangoma cards under Linux is somewhat similar with the installation of the Wanpipe driver under Linux this being the necessary piece of software needed in ...")
 
(Installing Sangoma card for a custom built kernel)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The installation of Sangoma cards under Linux is somewhat similar with the installation of the Wanpipe driver under Linux this being the necessary piece of software needed in order for Sangoma cards to work.
+
The installation of Sangoma cards under Linux is somewhat similar with the installation of the Wanpipe driver under Linux, this being the necessary piece of software needed in order for Sangoma cards to work.
 +
 
 +
==Installing Sangoma cards under Linux from RPM==
 +
 
 +
===Where to download RPM for Linux===
 +
 
 
The simple way of doing this is to download the appropriate RPM. If you have a custom built Linux kernel you should use the source packages although.
 
The simple way of doing this is to download the appropriate RPM. If you have a custom built Linux kernel you should use the source packages although.
  
The appropriate RPM can be downloaded from ftp://ftp.sangoma.com/linux/RPMS/ . To choose the compatible RPM for your system the following actions must be taken:
+
The appropriate RPM can be downloaded from ftp://ftp.sangoma.com/linux/RPMS/.
 +
 
 +
===How to choose compatible RPM for your system===
 +
 
 +
To choose the compatible RPM for your system the following actions must be taken:
  
 
* Open your favorite terminal, type cat /etc/issue and the type of your Linux Distribution will be shown, in case you don’t know it already. Consider this string, item number 1.
 
* Open your favorite terminal, type cat /etc/issue and the type of your Linux Distribution will be shown, in case you don’t know it already. Consider this string, item number 1.
 
* Type uname –r at the console next and find out the kernel image. Consider this string, item number 2.
 
* Type uname –r at the console next and find out the kernel image. Consider this string, item number 2.
* Next you’ll determine the processor type by running the uname ¬–m command. Consider this string item number 3.
+
* Next you’ll determine the processor type by running the uname –m command. Consider this string item number 3.
  
 
Now you can choose the appropriate RPM which will have the name:
 
Now you can choose the appropriate RPM which will have the name:
  
 
  wanpipe-[version].[item1].[item2].[item3].rpm
 
  wanpipe-[version].[item1].[item2].[item3].rpm
 +
 +
===Install RPM===
  
 
To install the RPM run
 
To install the RPM run
Line 17: Line 28:
  
 
The force option is required to override the old modules.
 
The force option is required to override the old modules.
 +
 +
===Configure driver===
  
 
To configure the driver you should run
 
To configure the driver you should run
Line 23: Line 36:
  
 
More info about that you will find out in the appropriate section of the manual.
 
More info about that you will find out in the appropriate section of the manual.
 +
 +
===Start Wanpipe===
  
 
Finally to start Wanpipe the commands "wanrouter start" or "wanrouter start wanpipe1" must be executed.
 
Finally to start Wanpipe the commands "wanrouter start" or "wanrouter start wanpipe1" must be executed.
  
If you have a custom built kernel you should use the source packages for installing as stated in the beginning. Maybe the simple way to do this is to build the RPM from the sources and follow the above steps. This is what we will explain in the next secion. The actual building and installing from the sources with further configuration will be described in Chapter IV of this manual.
+
==Installing Sangoma card for a custom built kernel==
 +
 
 +
If you have a custom built kernel you should use the source packages for installing as stated in the beginning.
 +
 
 +
Maybe the simple way to do this is to build the RPM from the sources and follow the above steps.  
 +
 
 +
This is what we will explain bellow.
  
 
After downloading and unpacking the sources building a custom RPM will be done using the following command:
 
After downloading and unpacking the sources building a custom RPM will be done using the following command:
Line 32: Line 53:
 
  ./Setup buildrpm –with-linux=[absolute path of the linux sources]
 
  ./Setup buildrpm –with-linux=[absolute path of the linux sources]
  
The optional path is as default /usr/src/linux. It has to point to a configured kernel source. The RPM will be build in a virtual folder called rpmbuild/. This being done in order for the building process not to interfere with the files present in the current directory.
+
The optional path is as default ''/usr/src/linux''.
 +
 
 +
It has to point to a configured kernel source. The RPM will be build in a virtual folder called rpmbuild/. This being done in order for the building process not to interfere with the files present in the current directory.
 +
 
 
After this, you will just have to follow the same instructions as in the already built RPM installation to get Wanpipe on your system up and running.
 
After this, you will just have to follow the same instructions as in the already built RPM installation to get Wanpipe on your system up and running.
 +
 +
 +
'''See also'''
 +
 +
* [[Installing Sangoma cards under Windows]]
 +
 +
[[Category:Sangoma]] [[Category:Installing]]

Latest revision as of 18:12, 31 October 2013

The installation of Sangoma cards under Linux is somewhat similar with the installation of the Wanpipe driver under Linux, this being the necessary piece of software needed in order for Sangoma cards to work.

Contents

[edit] Installing Sangoma cards under Linux from RPM

[edit] Where to download RPM for Linux

The simple way of doing this is to download the appropriate RPM. If you have a custom built Linux kernel you should use the source packages although.

The appropriate RPM can be downloaded from ftp://ftp.sangoma.com/linux/RPMS/.

[edit] How to choose compatible RPM for your system

To choose the compatible RPM for your system the following actions must be taken:

  • Open your favorite terminal, type cat /etc/issue and the type of your Linux Distribution will be shown, in case you don’t know it already. Consider this string, item number 1.
  • Type uname –r at the console next and find out the kernel image. Consider this string, item number 2.
  • Next you’ll determine the processor type by running the uname –m command. Consider this string item number 3.

Now you can choose the appropriate RPM which will have the name:

wanpipe-[version].[item1].[item2].[item3].rpm

[edit] Install RPM

To install the RPM run

rpm -i --force [the rpm name]

The force option is required to override the old modules.

[edit] Configure driver

To configure the driver you should run

/usr/sbin/wancfg

More info about that you will find out in the appropriate section of the manual.

[edit] Start Wanpipe

Finally to start Wanpipe the commands "wanrouter start" or "wanrouter start wanpipe1" must be executed.

[edit] Installing Sangoma card for a custom built kernel

If you have a custom built kernel you should use the source packages for installing as stated in the beginning.

Maybe the simple way to do this is to build the RPM from the sources and follow the above steps.

This is what we will explain bellow.

After downloading and unpacking the sources building a custom RPM will be done using the following command:

./Setup buildrpm –with-linux=[absolute path of the linux sources]

The optional path is as default /usr/src/linux.

It has to point to a configured kernel source. The RPM will be build in a virtual folder called rpmbuild/. This being done in order for the building process not to interfere with the files present in the current directory.

After this, you will just have to follow the same instructions as in the already built RPM installation to get Wanpipe on your system up and running.


See also

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers