You can install Net-SNMP in Centos with the command:
Continue reading “Installing and using Net-SNMP”Category Archives: Linux
How to convert audio files to ulaw, alaw, gsm, g722, etc. for Asterisk
After ordering the voice acting from a professional announcer and cutting in the sound editor, it was necessary to save the sounds in different formats, the original was in wav, so I’ll give an example of converting through sox (it already was in the system with Asterisk):
sox -V vm-intro.wav -r 8000 -c 1 -t ul vm-intro.ulaw sox -V vm-intro.wav -r 8000 -c 1 -t al vm-intro.alaw sox -V vm-intro.wav -r 8000 -c 1 -t gsm vm-intro.gsm
The codec g722 does not seem to support it, at least in man sox did not find it, so it installed ffmpeg (on the Ubuntu Server system):
sudo apt-get install ffmpeg
And performed the conversion:
ffmpeg -i vm-intro.wav -ar 16000 -acodec g722 vm-intro.g722
Standard directory with Asterisk sounds – /usr/share/asterisk/sounds
SNMP OID and MIB for interfaces
Below I list the standard OID and MIB with a description for obtaining SNMP different statistics for the network interfaces of switches, routers, access points, network cards in servers, etc.
Continue reading “SNMP OID and MIB for interfaces”Installing phpIPAM
phpIPAM – web application for IP accounting, VLAN addresses, etc. Works on PHP using MySQL, jQuery, ajax and HTML5.
Continue reading “Installing phpIPAM”Installation and configuration of the IRC server – ircd-irc2
On the test I will launch IRC (Internet Relay Chat) server ircd-irc2 in Ubuntu Server 14.04.
The first command is to install the IRC server in Ubuntu:
sudo apt-get install ircd-irc2
There are several configuration files in the /etc/ircd/ directory: /etc/ircd/ircd.conf (main), /etc/ircd/ircd.motd (message to users when connecting), /etc/ircd/iauth.conf (connection parameters ).
In the /usr/share/doc/ircd-irc2/ directory, you can see examples of configuration files.
After the changes in the configuration files, you must reboot the IRC server:
sudo /etc/init.d/ircd-irc2 restart
Users can create and connect to channels with this command:
/join #channel_name
Installing Tarantool in Ubuntu
To install Tarantool in Ubuntu, execute the following commands:
sudo apt-get update sudo apt-get install tarantool
I installed version 1.5 on the test, and the newest at that time was 1.7rc (the version can be viewed on the official site by the link below), so update the sources:
curl http://download.tarantool.org/tarantool/1.7/gpgkey | sudo apt-key add - release=`lsb_release -c -s` sudo apt-get -y install apt-transport-https sudo rm -f /etc/apt/sources.list.d/*tarantool*.list sudo tee /etc/apt/sources.list.d/tarantool_1_7.list <<- EOF deb http://download.tarantool.org/tarantool/1.7/ubuntu/ $release main deb-src http://download.tarantool.org/tarantool/1.7/ubuntu/ $release main EOF
And we will perform the installation of the newest version, if the installation of Tarantool has already been performed, the update will be:
sudo apt-get update sudo apt-get -y install tarantool
Lowering the priority of IPv6
It took one day to lower the priority of IPv6 on one Ubuntu servers at Hetzner.de, as the IPv6 network was unstable, some hosts were periodically unavailable by IPv6, delays appeared, etc.
Continue reading “Lowering the priority of IPv6”Installing system-config-samba
system-config-samba – a simple application for configuring samba with a graphical interface.
Installing by the command:
sudo apt-get install system-config-samba
Running:
sudo system-config-samba
Allows you to add shared folders, samba users, assign permissions to folders, etc., all changes are saved to samba configuration files.
Configuring Bind9 logs
By default, Bind9 logs are written to the system log / var / log / syslog and to separate them, I will perform the actions that I will point out below.
Continue reading “Configuring Bind9 logs”Installing and Configuring DNS Server BIND9
BIND (Berkeley Internet Name Domain) — open and the most common implementation of the DNS server, which ensures that the DNS name is converted to an IP address and vice versa.
Continue reading “Installing and Configuring DNS Server BIND9”