Autore: mhm
pyspeex from Nuance
apt-get libspeex-dev
apt-get libspeexdsp-dev.
apt-get speex
pip install cython
extract pyspeex directory
extract speex source code (speex.org) as “speex” directory inside pyspeex dir
CPPFLAGS=”-I./speex/includes” LDFLAGS=”-L./libsspeex” python setup.py install
https://github.com/NuanceDev/pyspeex
aaaa
Python Pickit bin
Introduction
This project provides a collection of utilities for talking toMicrochip PicKit ICD programming devices from python.
It also has interface code supporting SPI Flash devices,Cambridge Silicon Radio Bluetooth devices, and ElantechEKT8210 touchpads.
It requires the pyusb library.
Currently only the PicKit2 is supported.
Fix apt-get
dpkg –configure -a
Linux Add or Remove a Linux Kernel Modules / Drivers
To see current modules, type:
$ ls /lib/modules/$(uname -r)
$ ls /lib/modules/$(uname -r)/kernel/drivers/
Add a Module (driver) Called foo
# modprobe foo
# modprobe -v i8k
List all loaded modules
# lsmod
Remove a module called foo
# modprobe -r foo
or
# rmmod foo
http://www.cyberciti.biz/faq/add-remove-list-linux-kernel-modules/
Test ALSA audio working
How to get the audio working on your Raspberry PI?
You have to install three packages:
- The ALSA utilities:
sudo apt-get install alsa-utils
- MP3 tools:
sudo apt-get install mpg321 - WAV to MP3 conversion tool:
sudo apt-get install lame
Load the sound driver:
- sudo modprobe snd-bcm2835
To check if the driver is loaded you can type:
- sudo lsmod | grep 2835
Select the output device for sound (0=auto, 1=analog, 2=HDMI):
- sudo amixer cset numid=2
Test the installation:
- aplay /usr/share/sounds/alsa/Front_Center.wav
- speaker-test -t sine -f 440 -c 2 -s 1
- mpg321 “Mannish Boy.mp3”
It you get the following error message:
- ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
Edit the file /usr/share/alsa/alsa.conf:
- sudo nano /usr/share/alsa/alsa.conf
- change the line “pcm.front cards.pcm.front” to “pcm.front cards.pcm.default”
If you are using HDMI and cannot hear any audio at all change the following PI configuration setting:
- edit the RasPI configuration file:
sudo nano /boot/config.txt - uncomment the line:
hdmi_drive=2 - save the file and reboot the PI
Resources:
- http://jeffskinnerbox.wordpress.com/2012/11/15/getting-audio-out-working-on-the-raspberry-pi/
- http://alexpb.com/notes/articles/2012/11/14/error-when-playing-audio-on-raspbian-on-a-raspberry-pi/
- http://elinux.org/R-Pi_Troubleshooting
Guide to “useradd” Command in Linux
Basic syntax of command is:
useradd [options] username
When we add a new user in Linux with ‘useradd‘ command it gets created in locked state and to unlock that user account, we need to set a password for that account with ‘passwd‘ command.
[root@tecmint ~]# useradd tecmint
[root@tecmint ~]# passwd tecmint
Changing password for user tecmint.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
Once a new user created, it’s entry automatically added to the ‘/etc/passwd‘ file. The file is used to store users information and the entry should be.
tecmint:x:504:504:tecmint:/home/tecmint:/bin/bash
Visual Studio – Visual C++ for Linux Development
Visual C++ for Linux Development
How To Stress Test CPU and Memory On a Linux
- stress : It is a simple workload generator for POSIX systems. It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system. It is written in C, and is free software licensed under the GPLv2. It is not a benchmark, but is rather a tool designed
- stress-ng : It is an updated version of stress tool and it will stress test a server for the following features:
- CPU compute
- Cache thrashing
- Drive stress
- I/O syncs
- VM stress
- Socket stressing
- Context switching
- Process creation and termination
- It includes over 60 different stress tests, over 50 CPU specific stress tests that exercise floating point, integer, bit manipulation and control flow, over 20 virtual memory stress tests.
http://www.cyberciti.biz/faq/stress-test-linux-unix-server-with-stress-ng/
How to test microphone with ALSA
cat /proc/asound/cardsarecord -l
Test MIC
arecord -d 10 /tmp/test-mic.wavaplay /tmp/test-mic.wavarecord hw:1,0 -d 10 /tmp/test-mic.wav