-
Notifications
You must be signed in to change notification settings - Fork 0
Platfom Installation
#Odroid
##One Time Changes Changed hostname apt-get zsh
dpkg-reconfigure tzdata
mkdir /home/pub chgrp operator pub chmod 775 pub/ chmod g+s pub/
/etc/sudoers.d/local "%operator ALL=(ALL) ALL"
/etc/modprobe.d/blacklist blacklist dvb-usb-rtl28xxu.ko
##Per User for each user
- useradd -m
- su
- passwd
- add to group "operator"
##Misc ###odroid temperature
cat /sys/devices/virtual/hwmon/hwmon0/temp1_input cat /sys/devices/virtual/thermal/thermal_zone0/temp # diff is * 1000 ?
without case (idle): 38 with case (idle): 43
###1-wire For 1-wire: http://odroid.com/dokuwiki/doku.php?id=en:c1_hardware_1w
Added w1-therm to /etc/modprobe.d/w1_gpio.conf
cart1 ~% sudo modprobe w1-therm
libkmod: ERROR ../libkmod/libkmod-config.c:686 kmod_config_parse: /etc/modprobe.d/w1_gpio.conf line 1: ignoring bad line starting with 'w1_gpio'
libkmod: ERROR ../libkmod/libkmod-config.c:686 kmod_config_parse: /etc/modprobe.d/w1_gpio.conf line 2: ignoring bad line starting with 'wire'
(module does load)
cd /sys/bus/w1/devices/28-000005308e73
cat w1_slave 75 01 4b 46 7f ff 0b 10 78 : crc=78 YES 75 01 4b 46 7f ff 0b 10 78 t=23312
###current sensing
Offset sensor output to C1 ADC
ADC ##gps
lsusb:
Bus 001 Device 005: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
/etc/udev/rules.d/gps.rules:
# gps dongle (Cygnal Integrated Products)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE:="0666", NAME="gps"
The change to USBAUTO did not work (tried to start gpsd via crontab @reboot entry). I need to hack /etc/init.d/gpsd to temp set date before starting gpsd. gpsd needs to start after ntpd otherwise year defaults to 1995. Make USBAUTO="false" in /etc/default/gpsd ##Wireless
getting rid of network-manager:
apt-get purge network-manager
The following packages will be REMOVED: lubuntu-desktop* network-manager* network-manager-gnome*
/etc/network/interfaces.d/eth0: # not tested
auto eth0 iface eth0 inet dhcp
/etc/network/interfaces.d/wlan0:
auto wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
/etc/wpa_supplicant/wpa_supplicant.conf:
ctrl_interface=DIR=/var/run/wpa_supplicant
network={
ssid="the ssid"
scan_ssid=1
key_mgmt=WPA-PSK
psk=<use wpa_passphrase to generate>
disabled=0
}
Added a /etc/init/hostapd.conf
the rest of wireless section is for reference and not needed
ls /sys/class/net eth0 ip6tnl0 lo sit0 wlan0
[ 208.394540@3] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5592, rev 0222 detected
[ 208.409532@3] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 000f detected
[ 208.410434@3] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 208.412028@3] usbcore: registered new interface driver rt2800usb
[ 208.454536@3] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 208.459468@3] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[ 208.836332@3] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
before messing with network config:
ps ax | grep network 978 ? S 0:00 /sbin/dhclient -d -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf /run/sendsigs.omit.d/network-manager.dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-d08fb60c-3822-4045-a112-c48592ef7eba-eth0.lease -cf /var/lib/NetworkManager/dhclient-eth0.conf eth0 981 ? S 0:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address=127.0.1.1 --conf-file=/var/run/NetworkManager/dnsmasq.conf --cache-size=0 --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d
added /etc/network/interfaces.d/wlan0:
auto wlan0 iface wlan0 inet dhcp wpa-ssid wpa-psk
There was contention with wlan0 so had to do:
/etc/init.d/networking stop # probably stopped network manager. Didn't work again
tried: update-rc.d -f networking remove # added it back in after this
I had to disable serial console because apparently without interface plugged in there is bash process that consumes 100% cpu to get serial console edit /media/boot/boot.ini (both tty0 only. I serial console was flaky/unworkable with both)
##Package Installation
###rtl-sdr
cd /home/pub install rtl-sdr: https://github.com/john-/rtl-sdr git checkout multi-file
build % cmake ../ -DINSTALL_UDEV_RULES=ON apt-get install libdbix-connector-perl
###rtl_fm-scanner sqlite
from cpan: Mojolicious Mojolicious::Plugin::RenderFile Mojolicious::Plugin::CORS Mojolicious::Plugin::ForkCall
DBD::SQLite
git clone [email protected]:john-/rtl_fm-scanner.git cp freqs.db to data dir
git clone [email protected]:john-/leaderboard.git
[email protected]:john-/cart_console.git change urls
install/configure nginx copy jquery locally:
http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css
http://code.jquery.com/jquery-1.11.2.js
http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js
/etc/init/rtl_fm-scanner.conf:
chdir /home/pub/rtl_fm-scanner/bin
# When to start the service
start on runlevel [2345]
# When to stop the service
stop on runlevel [016]
# Automatically restart process if crashed
respawn
exec /home/pub/rtl_fm-scanner/bin/rtl_fm-scanner daemon
/home/pub/leaderboard/bin/leaderboard daemon --listen "http://*:3001"
###data_gather
Mojo::Pg ###swift
- Download voice from cepstral.com
- sudo swift --reg-voice --license-key TheKey
##start/stop/disable/enable services service rtl_fm-scanner stop
echo manual | sudo tee /etc/init/rtl_fm-scanner.override
sudo rm /etc/init/rtl_fm-scanner.override
data_gather, heatmap_script, rtl_fm-scanner
#laptop
when ttl-usb cable is plugged in:
Mar 6 17:58:34 kernel: [41930.912606] usb 1-1: new full-speed USB device number 7 using xhci_hcd
Mar 6 17:58:34 kernel: usb 1-1: new full-speed USB device number 7 using xhci_hcd
Mar 6 17:58:34 kernel: [41931.078300] usb 1-1: New USB device found, idVendor=10c4, idProduct=ea60
Mar 6 17:58:34 kernel: [41931.078302] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 6 17:58:34 kernel: [41931.078304] usb 1-1: Product: CP2104 USB to UART Bridge Controller
Mar 6 17:58:34 kernel: [41931.078305] usb 1-1: Manufacturer: Silicon Labs
Mar 6 17:58:34 kernel: [41931.078306] usb 1-1: SerialNumber: 008F8A6D
Mar 6 17:58:34 kernel: usb 1-1: New USB device found, idVendor=10c4, idProduct=ea60
Mar 6 17:58:34 kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 6 17:58:34 kernel: usb 1-1: Product: CP2104 USB to UART Bridge Controller
Mar 6 17:58:34 kernel: usb 1-1: Manufacturer: Silicon Labs
Mar 6 17:58:34 kernel: usb 1-1: SerialNumber: 008F8A6D
Mar 6 17:58:34 mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Mar 6 17:58:34 mtp-probe: bus: 1, device: 7 was not an MTP device
Mar 6 17:58:35 kernel: [41932.098429] usbcore: registered new interface driver cp210x
Mar 6 17:58:35 kernel: [41932.098448] usbserial: USB Serial support registered for cp210x
Mar 6 17:58:35 kernel: [41932.098475] cp210x 1-1:1.0: cp210x converter detected
Mar 6 17:58:35 kernel: [41932.098845] usb 1-1: cp210x converter now attached to ttyUSB0
Mar 6 17:58:35 kernel: usbcore: registered new interface driver cp210x
Mar 6 17:58:35 kernel: usbserial: USB Serial support registered for cp210x
Mar 6 17:58:35 kernel: cp210x 1-1:1.0: cp210x converter detected
Mar 6 17:58:35 kernel: usb 1-1: cp210x converter now attached to ttyUSB0
sudo screen -t 'ttyUSB0 115200 8n1' /dev/ttyUSB0 115200,-ixoff,-ixon
##HackRF
- udev rules were created when installing hackrf from git
- create plugdev group
- add user to plugdev group
##gnuradio
install: swift cppunit cppunit-devel python-cheetah swig numpy python-devel qt-devel python-lxml fftw fftw-devel alsa-lib-devel
cart: swift libcppunit-dev python-cheetah swig python-numpy python-dev python-lxml fftw-dev libasound2 apt-get install libboost-all-dev
to execute gnuradio-companion:
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH
##gr-osmosdr
install: boost, boost-devel
cmake ../ -DENABLE_FCD=OFF # otherwise gqrx does not compile
could not import python packages so:
export PYTHONPATH=/usr/local/lib64/python2.7/site-packages
##gqrx
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib64/pkgconfigexport PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib64/pkgconfig qmake-qt4 ..
if gnuradio does not see sources:
pwd /usr/local/share/gnuradio/grc/blocks
cp rtlsdr_source.xml osmosdr_source.xml osmosdr_sink.xml /usr/share/gnuradio/grc/blocks/
after upgrade to fedora 22 I had to recompile gnuradio for boost to be recognized
##Tablet Config
By default user gesture is required for autoplay. Disable it:
http://android.stackexchange.com/questions/59134/enable-autoplay-html5-video-in-chrome
##Laptop Suspend/Resume
If immediate resume after suspend rmmod *-3d modules and/or /usr/sbin/pm-suspend once?