Netchat is a utility that allows you to establish a TCP/UDP connection and perform data transfer.
Continue reading “Installing and using Netcat”Author Archives: Vyacheslav
The solution of the error “d3dx9_31.dll was not found” when running games
This error may occur if the computer has an old version of DirectX installed, so it is solved simply by downloading and launching a web installer that automatically updates DirectX via the Internet to the latest version.
Download the DirectX web installer from the link below:
https://www.microsoft.com/en-US/download/details.aspx?id=35
Blocking DHCP servers on FoxGate switches
For example, I’ll take a FoxGate S6224-S4 switch; on other models, the configuration is almost the same.
First, enable the dhcp snooping function:
ip dhcp snooping enable
Continue reading “Blocking DHCP servers on FoxGate switches”
How to enable USB debugging on Android
To enable USB debugging in the Android operating system, you need to open “Settings” – “Developer options” and tick “USB Debugging“.
If this menu is not available in the settings, you need to open “Settings” – “About Phone” and tap (touch) the item “Build number“, then the “Developer Options” item should appear in the settings.
USB debugging mode allows you to work with the device using the ADB utility, install and uninstall programs via ADB, view debug messages, be able to get root rights (full access to the operating system), etc.
Set up WatchDog by ABillS
In the ABillS billing system, you can configure the status check of any running programs, and configure automatic launch if any of them are not running.
For example, for tracking FreeRadius, you need to run the command:
/usr/abills/libexec/billd check_programs PROGRAMS="radiusd:/etc/init.d/radiusd start"
Where “radiusd” is the name of the program in the processes, and “/etc/init.d/radiusd start” the command to start it.
Configuring SNMP Traps on D-Link Switches
I will give an example of setting up SNMP Traps sending on D-Link switches.
For example, I will take the switches D-Link DES-3200-x:
Create an SNMP password:
create snmp community public view CommunityView read_only
We indicate which host and with which password the traps should be sent:
create snmp host x.x.x.x v2c public
We indicate the change in the state of which ports to send traps:
config snmp link_traps ports 01-24 disable config snmp link_traps ports 25-26 enable
Check the configuration of sending snmp traps with the command:
show snmp traps
Check the configuration of sending snmp traps on the status of ports with the command:
show snmp traps link_traps
At the end of the command, you can digitize port numbers.
See also my article:
Installing and using Net-SNMP
Block third-party DHCP servers on the Huawei Quidway S2300 (DHCP Snooping)
I will give an example of how on the Huawei Quidway S2300 switch (using the S2326TP-EI as an example) to allow receiving DHCP responses from the uplink port and prohibiting client responses.
Continue reading “Block third-party DHCP servers on the Huawei Quidway S2300 (DHCP Snooping)”Lenovo A3000 firmware update
First, download the latest official firmware.
Continue reading “Lenovo A3000 firmware update”Install and configure Sphinx in Ubuntu
Sphinx – search engine with integration of API and MySQL databases, PostgreSQL.
Installation command:
sudo apt-get install sphinxsearch
After installation, tcp ports 9312 and 9306 are used.
Install the MySQL database server:
sudo apt-get install mysql-server mysql-client
Create a test database:
mysql -u root -p CREATE DATABASE test; SOURCE /etc/sphinxsearch/example.sql; quit
Make a copy of the sample configuration file:
sudo cp /etc/sphinxsearch/sphinx.conf.sample /etc/sphinxsearch/sphinx.conf
Fill in the required parameters including data for connecting to the database.
An example of opening a configuration file in the nano editor (Ctrl+X to exit and y/n to save or discard changes):
sudo nano /etc/sphinxsearch/sphinx.conf
Activate sphinxsearch by specifying START=yes in the following file:
sudo nano /etc/default/sphinxsearch
Run sphinxsearch:
sudo service sphinxsearch start
Adding data to the index:
sudo indexer --all
An example of adding to cron:
sudo crontab -e @hourly /usr/bin/indexer --rotate --config /etc/sphinxsearch/sphinx.conf --all
Command line search example:
search TEXT
Asterisk compile error solution “‘pjsip_tcp_transport_cfg’ has no member named ‘sockopt_params’”
Once I compiled Asterisk version 13.13.1 and when running make I noticed the following error:
‘pjsip_tcp_transport_cfg’ has no member named ‘sockopt_params’
pjproject-2.2.1 has already been compiled.
Solved the problem by compiling a newer version of pjproject-2.4.5
cd /usr/src wget http://www.pjsip.org/release/2.4.5/pjproject-2.4.5.tar.bz2 tar -xjvf pjproject-2.4.5.tar.bz2 cd pjproject-2.4.5 CFLAGS='-DPJ_HAS_IPV6=1' ./configure --prefix=/usr --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr make dep make make install
After that, the error disappeared.