raspberry-pi
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | raspberry-pi [2017/06/04 00:45] – [Cert Bot] dblume | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Raspberry Pi ====== | ||
+ | From [[http:// | ||
+ | |||
+ | Also, highly recommended: | ||
+ | |||
+ | Partway down the page, it says there' | ||
+ | |||
+ | < | ||
+ | $ wget https:// | ||
+ | $ sudo dpkg -i iozone3_397-2_armhf.deb | ||
+ | $ iozone -e -I -a -s 50M -r 4k -r 512k -r 16M -i 0 -i 1 -i 2 | tee iozone_out.txt | ||
+ | </ | ||
+ | |||
+ | > I was reading the manual for iozone and it said to make sure, for accurate results, to make the -s switch size be TWICE your ram size. My Pi has 512mb so figured minus the 16mb gpu share I'd make it 1000M (for 1gb test file) | ||
+ | |||
+ | Still, there' | ||
+ | |||
+ | < | ||
+ | just apt-get install bonnie++ | ||
+ | </ | ||
+ | |||
+ | ===== Debian OS Installation Essentials ===== | ||
+ | |||
+ | ([[http:// | ||
+ | |||
+ | < | ||
+ | passwd | ||
+ | sudo dpkg-reconfigure tzdata | ||
+ | sudo apt-get update && sudo apt-get upgrade | ||
+ | sudo apt-get install vim | ||
+ | sudo apt-get install screen | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | sudo apt-get install ca-certificates | ||
+ | sudo apt-get install git-core | ||
+ | sudo wget http:// | ||
+ | sudo rpi-update | ||
+ | sudo shutdown -r now | ||
+ | </ | ||
+ | |||
+ | To be able to listen to audio via the headphone jack. See [[http:// | ||
+ | |||
+ | < | ||
+ | sudo apt-get install alsa-utils; sudo modprobe snd_bcm2835; | ||
+ | </ | ||
+ | |||
+ | Playing m3u playlists: | ||
+ | |||
+ | < | ||
+ | mpg123 -@ http:// | ||
+ | </ | ||
+ | |||
+ | Text-based browsing: Either lynx or links | ||
+ | |||
+ | < | ||
+ | sudo apt-get install lynx | ||
+ | sudo apt-get install links | ||
+ | </ | ||
+ | |||
+ | Maybe '' | ||
+ | ===== Logs ===== | ||
+ | |||
+ | Consider [[https:// | ||
+ | |||
+ | When there are problems, check for logs in ''/ | ||
+ | |||
+ | ===== Keyboard Repeat Problem ===== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | > Forum user MrEngman reported some keyboard repeats and wireless hangs until upgrading to the debian6-19-04-2012 kernel, which he reports stable with no problems even with a low TP1-TP2 voltage of 4.65 - 4.68 volts. | ||
+ | |||
+ | To see which version you have: | ||
+ | < | ||
+ | $ cat / | ||
+ | </ | ||
+ | |||
+ | Try plugging the keyboard and mouse directly into the Raspberry Pi, and see what happens. | ||
+ | |||
+ | ===== Camera ===== | ||
+ | |||
+ | A list of [[http:// | ||
+ | Here's a [[http:// | ||
+ | Here's [[https:// | ||
+ | |||
+ | Video Tutorials: | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | ===== Headless Xwin ===== | ||
+ | |||
+ | How to [[http:// | ||
+ | |||
+ | ===== Apache vs Cherokee vs Nginx Webserver ===== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | Looks like [[http:// | ||
+ | |||
+ | How to [[http:// | ||
+ | |||
+ | It'd be interesting to see [[http:// | ||
+ | |||
+ | **Note**: See history-of-nginx-start.txt, | ||
+ | |||
+ | ===== Backup ===== | ||
+ | |||
+ | (Old link: [[http:// | ||
+ | |||
+ | I put the microSD in the SamSung SD Adaptor, and [[https:// | ||
+ | |||
+ | ==== Reading from Device to Image File ==== | ||
+ | |||
+ | * Specify a new Image File name. (On a big disk.) | ||
+ | * Select " | ||
+ | |||
+ | |||
+ | ==== Writing from Image File to SD Card ==== | ||
+ | |||
+ | * Specify an existing Image File. | ||
+ | * Select " | ||
+ | |||
+ | My Raspberry Pi is up-to-date as of 2017-02-05. | ||
+ | ===== Cert Bot ===== | ||
+ | |||
+ | - https:// | ||
+ | - Fix it with this recipe: https:// | ||
+ | |||
+ | This seems useful: https:// | ||
+ | |||
+ | In detail: | ||
+ | |||
+ | 1. Add Backports to / | ||
+ | |||
+ | 2. Do the apt-get | ||
+ | |||
+ | sudo apt-get install certbot -t jessie-backports | ||
+ | |||
+ | 3. Run certbot | ||
+ | |||
+ | sudo certbot certonly --webroot -w / | ||
+ | | ||
+ | You should find that / | ||
+ | | ||
+ | 4. Renew (and reload if successful) with | ||
+ | |||
+ | sudo certbot renew && / | ||
+ | |||
+ | 5. Consider using a root cronjob | ||
+ | |||
+ | sudo crontab -e | ||
+ | 0 5 * * 0 certbot renew --post-hook " | ||
+ | |||
+ | < | ||
+ | IMPORTANT NOTES: | ||
+ | - Congratulations! Your certificate and chain have been saved at | ||
+ | / | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | - If you lose your account credentials, | ||
+ | | ||
+ | - Your account credentials have been saved in your Certbot | ||
+ | | ||
+ | | ||
+ | also contain certificates and private keys obtained by Certbot so | ||
+ | | ||
+ | - If you like Certbot, please consider supporting our work by: | ||
+ | |||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | 5. Port forward ports 80 and 443. At the local router: | ||
+ | |||
+ | http:// | ||
+ | |||
+ | WAN -> Virtual Server / Port Forwarding | ||
+ | |||
+ | 6. Update nginx | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Update / | ||
+ | |||
+ | server { | ||
+ | listen 80 default_server; | ||
+ | listen [::]:80 default_server; | ||
+ | server_name pi.dlma.com; | ||
+ | return 302 https:// | ||
+ | } | ||
+ | | ||
+ | server { | ||
+ | # SSL configuration | ||
+ | # | ||
+ | listen 443 ssl default_server; | ||
+ | listen [::]:443 ssl default_server; | ||
+ | | ||
+ | ssl_certificate / | ||
+ | ssl_certificate_key / | ||
+ | ssl_trusted_certificate / | ||
+ | ... | ||
+ | |||
+ | **TODO**: Maybe figure out [[https:// | ||
+ | |||
+ | Then check and restart nginx: | ||
+ | |||
+ | $ sudo nginx -t | ||
+ | $ sudo systemctl restart nginx | ||
+ | | ||
+ | **TODO**: Renew with '' |
raspberry-pi.txt · Last modified: 2023/04/12 20:44 by 127.0.0.1