Posts

Speech recognition - Centos 7

How to setup pyaudio and speech recognition on centos7. ? The following exercise was performed to do some stuff related to speech recognition, wherein ill be giving voice input through microphone and the same voice would be printed in the console as text. What we need ? 1. speech recognition (opensource): https://pypi.python.org/pypi/SpeechRecognition - Install it, make sure you have "pip" installed on the system. Pip is basically a package management tool to manage python based packages. #  pip install SpeechRecognition 2. Install "pyaudio" to give voice input over the microphone,Before installing pyaudio we need to install couple of depenedencies # yum install portaudio # yum install portaudio-devel # pip install pyaudio All set here. Just quickly try the speech recogntion. 1. connect your michrophone to your laptop 2. Execute the following command on CLI as root #  python  -m  speech_recognition Now say anything clearly and you should be

How to troubleshoot hung/stuck jboss container process??

How to troubleshoot hung/stuck java process?? There are several tools available on linux to troubleshoot. 1) Enable the thread dump in jboss configuration file (generally run.conf). Make sure that it is enabled earlier so that you can take the thread dump as and when required. Here to take dump, one simply need to issue the following command: # kill -3 <pid> You should be able to see the dump on your console. How to capture the same in a file, try it on your own. Have some fun with that.;-) 2) jmap     Using this tool you can monitor the proces memory footprint. Using the below command keep monitoring the heap related parameters which might give some insight about the stuck pids # jmap -F -heap <PID> Attaching to process ID 3423, please wait... Debugger attached successfully. Server compiler detected. JVM version is 24.65-b04 using thread-local object allocation. Parallel GC with 8 thread(s) Heap Configuration:    MinHeapFreeRatio = 0  

How to install Telnet.pm for Perl ((revision 5 version 16 subversion 3)

How to install Telnet.pm   for Perl ((revision 5 version 16 subversion 3) OS: Centos - CentOS Linux release 7.2.1511 (Core) 1. Downlaod Net-Telnet-3.04.tar.gz  from http://search.cpan.org/~jrogers/Net-Telnet-3.04/ 2. Do the following steps as a root user # yum update # gunzip Net-Telnet-3.04.tar.gz # tar -xvf Net-Telnet-3.04.tar # cd Net-Telnet-3.04/ # yum install perl-ExtUtils-MakeMaker -y # perl Makefile.PL INSTALLMAN1DIR=none INSTALLMAN3DIR=none # make # make test # make install ### Install xml parser simple.pm # yum install perl-XML-Simple Bingo!! ----------------Console Logs------------------ [root@centos Net-Telnet-3.04]# perl Makefile.PL INSTALLMAN1DIR=none INSTALLMAN3DIR=none Writing Makefile for Net::Telnet [root@centos Net-Telnet-3.04]# make Skip blib/lib/Net/Telnet.pm (unchanged) [root@centos Net-Telnet-3.04]# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib

Vmplayer5.1 (32-bit) on Ubuntu14.04 LTS 32-bit!!

Image
How to install Vmplayer (VMware-Player-5.0.4-1945795.i386.bundle) on Ubuntu 14.04 (Kernel Version 3.13.0-83-generic) ?? 1. Download vmplayer 5.0.4 2. chmod +x VMware-Player-5.0.4-1945795.i386.bundle # ./VMware-Player-5.0.4-1945795.i386.bundle Follow the on-screen instructions. Installation should be completed succefully. # vmplayer It should fail while compiling module (vmnet). Dont panic, follow below steps to fix this up and run the vmplayer successfully.   $ curl http://pastie.org/pastes/8672356/download -o /tmp/vmware-netfilter.patch $ cd /usr/lib/vmware/modules/source # tar -xvf vmnet.tar # patch -p0 -i /tmp/vmware-netfilter.patch # tar -cf vmnet.tar vmnet-only # rm -r vmnet-only # vmware-modconfig --console --install-all   Now run the "vmplayer" again as a root user #vmplayer This time vmnet module should compiled successfully and the vmplayer console should open up. Bingo!! :)

Install GNOME DESKTOP in Centos7-minimal install!

Image
After you install the centos7-minimal install and you want to install the desktop environment, you need to do the following things:- 1. Configure network vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 Keep everything as is, just change the onboot=Yes Save and exit 2. Restart the network # /etc/init.d/network restart 3. Check the assigned ip address to the configured interface enp0s3 # ip addr Here you should see the ip address allocated to the interface via DHCP 4. Update centos # yum update This command should be succesful now. 5. You might want to install the "ifconfig" utility, if you are more use to it 6. Run the following command to install "ifconfig" # yum provides ifconfig This will list the package which contains the ifconfig. # yum install net-tools # ifconfig Now check the group which contains the GNOME desktop # yum grouplist You should see "GNOME Desktop" under "Available environment groups". In my case

SD card not detected in Ubuntu 12.04 LTS!!

Problem : I inserted my 32GB of SD card in the slot of my Lenevo L430 laptop. Unfortunately it could not be detected. I found out that i dont have the device driver installed. Solution : I installed the device driver and bingo. Please find the steps which i did to solve this problem. 1. Find out the make of the SD card reader. I found out that the card reader is known to OS but somehow not reading the SD card in it. $ sudo lspci -vnn | grep -A5 RTS5229 01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader [10ec:5229] (rev 01)     Subsystem: Lenovo Device [17aa:21f7]     Flags: bus master, fast devsel, latency 0, IRQ 16     Memory at f1e00000 (32-bit, non-prefetchable) [size=4K]     Capabilities: [40] Power Management version 3     Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+ Go to the realtek site and download the device driver for RTS5229. You can download it from here Note: if you try to download it fro