Skip to content

Instantly share code, notes, and snippets.

View UedaTakeyuki's full-sized avatar
💭
🐟 🐠 🐡 🐢  🌸 🌺 🌹 🌷 🌻 🌼 🐝 🐸

Dr. Takeyuki Ueda UedaTakeyuki

💭
🐟 🐠 🐡 🐢  🌸 🌺 🌹 🌷 🌻 🌼 🐝 🐸
View GitHub Profile
@UedaTakeyuki
UedaTakeyuki / install.sh
Created January 3, 2016 09:25
Download and install ElasticSearch 1.7 on RaspberryPi.
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.4.deb
sudo dpkg -i elasticsearch-1.7.4.deb
@UedaTakeyuki
UedaTakeyuki / install_xfs.sh
Last active January 27, 2016 01:28
install xsf on Raspberry Pi.
# reference: http://www.limemo.net/blog/2013/12/ラズベリーパイを使ってみる-標準より高速なフ.html
sudo apt-get install xfsprogs
# format
#mkfs.xfs /dev/(デバイス名)
# mount
# sudo mount -t xfs /dev/(デバイス名) /mnt/hoge
@UedaTakeyuki
UedaTakeyuki / alsa-base.conf
Last active January 27, 2016 02:07
/etc/modprove.d/alsa-base.conf for reorder alsa device on raspbian jessie.
# reference: http://raspberrypi.stackexchange.com/questions/40831/how-do-i-configure-my-sound-for-jasper-on-raspbian-jessie
# This sets the index value of the cards but doesn't reorder.
options snd_usb_audio index=0
options snd_bcm2835 index=1
# Does the reordering.
options snd slots=snd-usb-audio,snd-bcm2835
@UedaTakeyuki
UedaTakeyuki / 8192cu.conf.sh
Created February 9, 2016 02:09
Set 8192cu wifi controller power management feature "OFF".
# http://denshikousaku.net/fix-sluggish-response-of-raspberry-pi-wifi-adaptor
sudo sh -c 'echo "options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1" >>/etc/modprobe.d/8192cu.conf'
# lol_dht22: Setup to use dht22 on Raspbian
git clone https://github.com/technion/lol_dht22
cd lol_dht22
./configure
make
cd ..
@UedaTakeyuki
UedaTakeyuki / say.php
Created June 29, 2016 09:37
have Raspberry Pi talk something from Browser.
<?php
//$command = 'sudo sh -c "/home/pi/install/aquestalkpi/AquesTalkPi '. $_POST["phrase"] . ' | aplay"';
$command = 'sudo sh -c "/home/pi/install/aquestalkpi/AquesTalkPi '. $_POST["phrase"] . ' | aplay > /dev/null &"';
//shell_exec($command);
exec($command);
?>
@UedaTakeyuki
UedaTakeyuki / install_julius.sh
Created January 27, 2016 02:06
Install "Julius" on Raspberry pi
# reference: http://qiita.com/t_oginogin/items/f0ba9d2eb622c05558f4
wget --trust-server-names 'http://osdn.jp/frs/redir.php?m=iij&f=%2Fjulius%2F60273%2Fjulius-4.3.1.tar.gz'
tar xvzf julius-4.3.1.tar.gz
cd julius-4.3.1/
./configure
make
cd ..
mkdir ~/julius-kits
cd ~/julius-kits
@UedaTakeyuki
UedaTakeyuki / mjpegstreamer.setup.sh
Created September 29, 2016 12:06
MJPEG-streamer setup script on RPi
# MJPEG-streamer
# http://www.hiramine.com/physicalcomputing/raspberrypi/webcamstreaming.html
sudo apt-get install subversion libjpeg-dev imagemagick
svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer mjpg-streamer
cd mjpg-streamer
make
cd ..
@UedaTakeyuki
UedaTakeyuki / redis.setup.sh
Created September 29, 2016 12:10
Redis setup script on RPi
# Redis
sudo apt-get install redis-server
sudo pip install redis
@UedaTakeyuki
UedaTakeyuki / gstreamer.setup.sh
Created October 4, 2016 02:21
setup gstreamer 1.0 with omx on RPi.
# http://qiita.com/kwi/items/36a5233d4ab31c015f8a
sudo apt-get update -y
sudo apt-get dist-upgrade -y
sudo apt-get install gstreamer1.0 gstreamer1.0-tools
# confirm using omx
gst-inspect-1.0 | grep omx