No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

INSTALL.md 4.2 KiB

hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. ![Raspberry NOAA](header_1600.png)
  2. - [Raspberry PI operating system](#raspberry-pi-operating-system)
  3. - [Automatic install](#automatic-install)
  4. - [Manual install](#manual-install)
  5. - [Required packages and software](#required-packages-and-software)
  6. - [Install rtl_sdr](#install-rtl_sdr)
  7. - [Install WXToIMG](#install-wxtoimg)
  8. - [Raspberry-noaa configuration](#raspberry-noaa-configuration)
  9. - [Clone this repo](#clone-this-repo)
  10. - [Install the default configuration files](#install-the-default-configuration-files)
  11. - [Install Meteor software](#install-meteor-software)
  12. - [Setup Nginx](#setup-nginx)
  13. - [Setup RamFS](#setup-ramfs)
  14. - [Cron the scheduling job](#cron-the-scheduling-job)
  15. - [Set your Twitter credentials](#set-your-twitter-credentials)
  16. # Raspberry PI operating system
  17. I'm using [Raspbian](https://www.raspberrypi.org/downloads/raspbian/) as it have full support for Raspberry PI, simple package manager and it's pretty stable
  18. # Automatic install
  19. 1. Clone this repository on your home directory
  20. 2. Run `./install.sh`. You will be asked for your ground station lat/lon position.
  21. 3. If you want automatic Twitter posting, see: [Set your Twitter credentials](#set-your-twitter-credentials)
  22. This is pretty much the entire setup. If you are interested about the behind of scenes please check the following section
  23. ---
  24. # Manual install
  25. ## Required packages and software
  26. ```
  27. sudo apt update -yq
  28. sudo apt install -yq predict \
  29. python-setuptools \
  30. ntp \
  31. cmake \
  32. libusb-1.0 \
  33. sox \
  34. at \
  35. bc \
  36. nginx \
  37. libncurses5-dev \
  38. libncursesw5-dev \
  39. libatlas-base-dev \
  40. python3-pip \
  41. imagemagick \
  42. libxft-dev \
  43. libxft2
  44. ```
  45. ```
  46. sudo pip3 install numpy ephem tweepy Pillow
  47. ```
  48. ### Install rtl_sdr
  49. ```
  50. sudo cp templates/modprobe.d/rtlsdr.conf /etc/modprobe.d/rtlsdr.conf
  51. ```
  52. - clone rlt-sdr git repo and install rtl-sdr:
  53. ```
  54. cd /tmp/
  55. git clone https://github.com/osmocom/rtl-sdr.git
  56. cd rtl-sdr/
  57. mkdir build
  58. cd build
  59. cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
  60. make
  61. sudo make install
  62. sudo ldconfig
  63. cd /tmp/
  64. sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
  65. ```
  66. ### Install WXToIMG
  67. There's a deb package for it
  68. ```
  69. sudo dpkg -i software/wxtoimg-armhf-2.11.2-beta.deb
  70. ```
  71. ## Raspberry-noaa configuration
  72. ### Clone this repo
  73. ```
  74. cd $HOME
  75. git clone https://github.com/reynico/raspberry-noaa.git
  76. cd raspberry-noaa
  77. ```
  78. ### Install the default configuration files
  79. - noaa.conf: paths, satellite elevation and loggin
  80. ```
  81. cp "templates/noaa.conf" "$HOME/.noaa.conf"
  82. ```
  83. - predict.qth: Predict's ground station settings
  84. ```
  85. cp "templates/predict.qth" "$HOME/.predict/predict.qth"
  86. ```
  87. - wxtoimgrc: WxToIMG ground station settings and license
  88. ```
  89. cp "templates/wxtoimgrc" "$HOME/.wxtoimgrc"
  90. ```
  91. Don't forget to adjust your settings in those files
  92. ### Install Meteor software
  93. - meteor_demod
  94. ```
  95. git clone https://github.com/dbdexter-dev/meteor_demod.git
  96. cd meteor_demod
  97. make
  98. sudo make install
  99. cd ..
  100. ```
  101. - medet_arm
  102. ```
  103. sudo cp software/medet_arm /usr/bin/medet_arm
  104. sudo chmod +x /usr/bin/medet_arm
  105. ```
  106. ### Setup Nginx
  107. ```
  108. sudo cp templates/nginx.cfg /etc/nginx/sites-enabled/default
  109. sudo mkdir -p /var/www/wx
  110. sudo chown -R www-data:www-data /var/www/wx
  111. sudo usermod -a -G www-data pi
  112. sudo chmod 775 /var/www/wx
  113. cp templates/index.html /var/www/wx/index.html
  114. cp templates/logo-small.png /var/www/wx/logo-small.png
  115. sudo systemctl restart nginx
  116. ```
  117. ### Setup RamFS
  118. ```
  119. sudo mkdir -p /var/ramfs
  120. cat templates/fstab | sudo tee -a /etc/fstab > /dev/null
  121. sudo mount -a
  122. sudo chmod 777 /var/ramfs
  123. ```
  124. ### Cron the scheduling job
  125. ```
  126. cat <(crontab -l) <(echo "1 0 * * * /home/pi/raspberry-noaa/schedule.sh") | crontab -
  127. ```
  128. ### Set your Twitter credentials
  129. - Go to [Twitter Developer site](http://developer.twitter.com/) and apply for a developer account.
  130. ```
  131. cp "templates/tweepy.conf" "$HOME/.tweepy.conf"
  132. ```
  133. - Set your credentials on `"$HOME/.tweepy.conf"`
  134. ```
  135. export CONSUMER_KEY = ''
  136. export CONSUMER_SECRET = ''
  137. export ACCESS_TOKEN_KEY = ''
  138. export ACCESS_TOKEN_SECRET = ''
  139. ```