Some notes I took when I setup the Pi. I have since Imaged the SD card, so I wont have to go through this again
General
- sudo raspi-config
- Change hostname
- Change user pi password
- Change timezone
Setup darkice
- sudo apt-get install lame libtwolame0 - to install lame required to have mp3 support
- install darkice binary package already compiled for mp3 supprt
- sudo cp /usr/share/doc/darkice/examples/darkice.cfg /etc/ - to configure darkice
- edit crontab for time script
- add record and stream scripts to rc.local for starting up at boot
Setup USB sound card
- modify alsa-base to make USB sound card the first (0) device
- reboot
- check that sound card is picked up correctly. Run following commands:
- cat /proc/asound/cards
- amixer
- arecord -l
- aplay -l
-
Set sound levels: alsamixer
- arecord -f S16_LE -D hw:0,0 -r 48000 test.wav
- aplay test.wav
Create seperate FAT32 extension - this useful to store recordings on a seperate partition to prevent / from overfilling, and to make it FAT32 so that it can be mounted in a Windows machine
- sudo apt-get install dosfstools
- sudo cfdisk /dev/mmcblk0 - Using the keyboard create a new primary partition in the free space, and change the type to FAT32 which is option 0B (W95 FAT32). Select Write to save the changes, then select Quit.
- reboot
- sudo cfdisk /dev/mmcblk0p3
- sudo mkfs.msdos /dev/mmcblk0p3
Setup 3G USB dongle
-
sudo apt-get install sg3-utils
- sudo /usr/bin/sg_raw /dev/sr0 11 06 20 00 00 00 00 00 01 00
- echo 'SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1F01*", SYMLINK+="hwcdrom", RUN+="/usr/bin/sg_raw /dev/hwcdrom 11 06 20 00 00 00 00 00 01 00"' > /etc/udev/rules.d/10-HuaweiFlashCard.rules
- modify /etc/network/interfaces
Reverse SSH tunnel
- ssh-keygen -t rsa
- copy key to server
- insert ssh reverse command to /etc/rc.local
syslog
webmin
No comments:
Post a Comment