miércoles, 22 de abril de 2015

Install g729 Elastix

Fuente: http://wiki.kolmisoft.com/index.php/G723/G729_Codec_installation


G729 license installation

These instructions works with Asterisk 1.8.23
Download and execute the register utility to generate a valid license.
 
cd /root
wget http://downloads.digium.com/pub/register/x86-64/register

Change the permissions of the /root/register file to r-x------.
chmod 500 /root/register

Run the register utility and follow the interactive instructions. The registration utility will prompt you for your G.729 license key.
/root/register

Download and execute the benchg729 utility to determine the optimum build.
cd /root
wget http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-1.0.8-x86_64 -O benchg729

Change the permissions of the /root/benchg729 file to r-x------
chmod 500 /root/benchg729

Run the benchg729 utility and record the build that it recommends should be used for your platform.
/root/benchg729

Download and install the codec_g729 binary that is built for your platform from
http://downloads.digium.com/pub/telephony/codec_g729/asterisk-1.8.4/x86-64/
NOTE: Asterisk 1.8.23 requires binaries from exactly this download directory.
Extract downloaded file and copy codec_g729a.so to /var/lib/asterisk/modules.
Move original codec_g729.so to another directory for backup purposes.

Restart Asterisk and check if license is found:
asterisk -rvvv
*CLI> g729 show licenses                                                                           
0/0 encoders/decoders of 26 licensed channels are currently in use                                 

Licenses Found:                                                                                    
Key: G729-EXAMPLE1 -- Host-ID: ex:am:pl:e0:ex:am:pl:e0:ex:am:pl:e0:ex:                             
am:pl:e0:ex:am:pl:e0 -- Channels: 2 (Expires: 2026-09-26) (OK)                                     
Key: G729-EXAMPLE2 -- Host-ID: ex:am:pl:e0:ex:am:pl:e0:ex:am:pl:e0:ex:                             
am:pl:e0:ex:am:pl:e0 -- Channels: 24 (Expires: 2026-09-26) (OK)

jueves, 16 de abril de 2015

Rsync Examples

Origen: http://www.tecmint.com/rsync-local-remote-file-synchronization-commands/

1- Copy/Sync Files and Directory Locally

This following command will sync a single file on a local machine from one location to another location. Here in this example, a file name backup.tar needs to be copied or synced to /tmp/backups/ folder.

Copy Files
[root@tecmint]# rsync -zvh backup.tar /tmp/backups/

Copy Directory
[root@tecmint]# rsync -avzh /root/rpmpkgs /tmp/backups/


 2- Copy/Sync Files and Directory to or From a Server

This command will sync a directory from a local machine to a remote machine. For example: There is a folder in your local computer “rpmpkgs” which contains some RPM packages and you want that local directory’s content send to a remote server, you can use following command.

Copy a Directory from Local Server to a Remote Server
[root@tecmint]$ rsync -avz rpmpkgs/ root@192.168.0.101:/home/


Copy/Sync a Remote Directory to a Local Machine
 [root@tecmint]# rsync -avzh root@192.168.0.100:/home/tarunika/rpmpkgs /tmp/myrpms

martes, 20 de enero de 2015

Install Wine on Debian

Fuente: http://ask.xmodulo.com/install-wine-linux.html

Since Wine is included in the default repository of Debian, you can install it with apt-get. However, if you are using 64-bit Debian, you need to enable multi-architecture, as Wine is a 32-bit application.

On 64-bit Debian:
$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install wine-bin:i386 
 
On 32-bit Debian:
$ sudo apt-get install wine

domingo, 11 de enero de 2015

Ubuntu Server Grub does not autoboot the default option

Fuente: http://askubuntu.com/questions/214972/grub-does-not-autoboot-the-default-option-after-upgrade-to-12-10

My /etc/default/grub has only these effective options:

GRUB_DEFAULT='Ubuntu'
GRUB_HIDDEN_TIMEOUT=1
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_TERMINAL=console
 
 
 
Add the following to /etc/default/grub

GRUB_RECORDFAIL_TIMEOUT=0
 
Save and run

sudo update-grub
 

viernes, 10 de octubre de 2014

Ubuntu Gnome Edit Network Connection

Con este comando editamos las Conecciones de Red y se configuran los clientes VPN.

nm-connection-editor

martes, 23 de septiembre de 2014

Creating an Application Launcher for GNOME 3 in Ubuntu

Origen: http://stackoverflow.com/questions/12964512/creating-an-application-launcher-for-gnome-3-in-ubuntu

create a file called intellij.desktop in the directory /usr/share/applications/
my file looks like this


[Desktop Entry]
Name=IntelliJ IDEA Community Edition
Comment=Free Java, Groovy, Scala and Android applications development
Exec=/path/to/your/bin/idea.sh
Path=/path/to/your/bin
Terminal=false
Icon=intellij-idea-ce
Type=Application
Categories=Development;IDE

viernes, 22 de agosto de 2014

LDAP Replication with syncrepl on Linux

Fuente Original: http://wiki.unixh4cks.com/index.php/OpenLDAP_:_LDAP_Replication_with_syncrepl_on_Centos_5.x


Configure master (provider)

[root@openldap_a ~]# tail -n 5 /etc/openldap/slapd.conf 

overlay syncprov
syncprov-checkpoint 1 10
syncprov-sessionlog 100

Configure slave (consumer)

[root@openldap_c ~]# tail -n 10 /etc/openldap/slapd.conf 

syncrepl rid=1
        provider=ldap://openldap_a.unixh4cks.com
        type=refreshAndPersist
        searchbase="dc=unixh4cks,dc=com"
        schemachecking=off
        bindmethod=simple
        binddn="cn=Manager,dc=unixh4cks,dc=com"
        credentials=secret
updateref ldap://openldap_a.unixh4cks.com.com/
[root@openldap_c ~]#