Difference between revisions of "R Pi Notes"
Russ hensel (talk | contribs) |
Russ hensel (talk | contribs) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | The Raspberry Pi is a low-cost [[motherboards that run Linux]]. | ||
These are some informal setup notes for a R Pi -- really just for my use, may write up later | These are some informal setup notes for a R Pi -- really just for my use, may write up later | ||
− | + | = Bring Your System Up to Date = | |
− | + | Before installing new application or service in Raspbian, make sure to | |
− | + | always type this into terminal (if this file is on your PI, you can use cut and paste): | |
− | sudo apt-get update | + | sudo apt-get update |
− | sudo apt-get upgrade | + | sudo apt-get upgrade |
− | sudo apt-get dist-upgrade | + | sudo apt-get dist-upgrade |
− | + | ======Set Up Remote Desktop ====== | |
use this command to setup the pi | use this command to setup the pi | ||
sudo apt-get install xrdp | sudo apt-get install xrdp | ||
Line 58: | Line 60: | ||
− | == | + | = sharing drives = |
do you have samba? | do you have samba? | ||
+ | To find out if you have [http://en.wikipedia.org/wiki/Samba_(software) Samba] on your Raspberry Pi, run this command on your Pi: | ||
which samba | which samba | ||
+ | |||
+ | If that command prints out a command path, Samba is already installed, so skip ahead to "make a mount point". | ||
+ | If the Pi returns to the command prompt without printing anything, Samba is not yet installed; so install Samba with this command: | ||
+ | |||
+ | sudo apt-get install samba | ||
make a mount point: | make a mount point: | ||
Line 68: | Line 76: | ||
mkdir /mnt/share1 | mkdir /mnt/share1 | ||
− | # | + | # mount from command line |
sudo mount -t cifs -o guest //192.168.0.170/share /mnt/share1 | sudo mount -t cifs -o guest //192.168.0.170/share /mnt/share1 | ||
+ | |||
+ | for auto mounting you need to edit fstab | ||
then look in dir /rPi copy over this win_to_pi_info.txt so have reference there | then look in dir /rPi copy over this win_to_pi_info.txt so have reference there | ||
− | ========= | + | '' |
+ | *[http://diy.viktak.com/2015/01/my-development-environment-on-raspberry.html#more *setup to directly share the pi's disk ] | ||
+ | |||
+ | this worked fine, but what directory was shared turned out it was /home/pi | ||
+ | |||
+ | = synaptic = | ||
+ | this gives you a gui for installing packages, and search for them | ||
+ | altenate to apt-get install ..... | ||
+ | Synaptic Package Manager - Home - Savannah | ||
+ | |||
+ | [https://apps.ubuntu.com/cat/applications/synaptic/ general info] | ||
+ | |||
+ | Install | ||
+ | ?? | ||
+ | |||
+ | Run | ||
+ | ?? | ||
+ | |||
+ | = chrome for pi = | ||
+ | |||
+ | actually there is no chrome for pi, but there is Chromium, which is pretty close. | ||
+ | I suppose it is heavier weitht than other browsers, but aside from speed it seems to work much | ||
+ | better. It does allow you to access google drives, and perhaps other gooogle stuff. | ||
+ | |||
+ | Install: | ||
+ | |||
+ | Run: | ||
+ | |||
+ | = spyder = | ||
+ | |||
+ | This is a really nice Python environment, do not know how well it plays with the already installed python. | ||
+ | |||
+ | [http://elementaryeng.blogspot.com/2014/03/class-3-installing-spyder-and-first.html Install Spyder] | ||
+ | |||
+ | |||
+ | == Handy Commands for Run and Terminal == | ||
+ | |||
+ | |||
+ | == connecting hardware to the Raspberry Pi == | ||
+ | |||
+ | ''(TODO: ... mention something about how easy it is to hook stuff up to the GPIO pins ...)'' | ||
+ | |||
+ | |||
+ | For something a little more permanent, several people are designing boards to meet the Raspberry Pi HAT standard. | ||
+ | |||
+ | A few [[PCB Footprints]] that may be helpful: | ||
+ | |||
+ | * (apparently by Dave Vandenbout ?) Raspberry Pi B+ HAT Template[https://github.com/xesscorp/RPi_Hat_Template] | ||
+ | |||
+ | |||
+ | |||
+ | == Further reading == | ||
+ | |||
+ | * elinux.org. [http://elinux.org/Category:RaspberryPi "Category: RaspberryPi"]. | ||
+ | * Matt Wilcox. [https://mattwilcox.net/web-development/setting-up-a-secure-home-web-server-with-raspberry-pi "Setting up a (reasonably) secure home web-server with Raspberry Pi"]. | ||
+ | * Jacob Salmela. [http://jacobsalmela.com/password-protect-a-lighttpd-web-server-on-a-raspberry-pi-using-mod-auth/ "Password-protect A lighttpd Web Server on a Raspberry Pi Using mod_auth"]. | ||
+ | * Jacob Salmela. [http://jacobsalmela.com/block-millions-ads-network-wide-with-a-raspberry-pi-hole-2-0/ "Block Millions Of Ads Network-wide With A Raspberry Pi-hole 2.0"]. | ||
+ | * Steve Prater. [http://www.pratermade.com/2014/08/securing-your-raspberry-pi-with-ssl-and-simple-authentication/ "Securing your Raspberry PI with SSL and Simple Authentication"]. | ||
+ | * [https://irawd.wordpress.com/2013/10/14/control-raspberry-pi-with-iphone/ "Control Raspberry PI With iPhone"]. | ||
+ | * davstott. [http://davstott.me.uk/index.php/2013/03/17/raspberry-pi-controlling-gpio-from-the-web/ "Controlling a Raspberry Pi’s GPIO over the network"]. | ||
+ | * davstott. [http://davstott.me.uk/index.php/2013/01/15/raspberry-pi-robot-tank-first-trundles/ "Raspberry Pi Robot Tank, First Trundles"]. | ||
+ | * [http://www.emlid.com/ Navio+ Raspberry Pi Linux autopilot] runs the APM autopilot and can send telemetry over Wi-Fi to the ground. Open-source drivers and tutorials in Python and C++. [[Pi HAT]] compliant. 9DOF IMU, 13 PWM servo outputs, [[servo control]] PPM input, etc. Apparently works fine when stacked on top of Raspberry Pi A+, B+, Pi 2, Banana Pi, or Odroid-C1. [https://github.com/emlid Navio software and documentation on Github]. | ||
+ | * [http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories "Raspberry Pi Accessories at Element 14"] | ||
+ | * Raspberry Pi Sense HAT, "the heart of the Astro Pi". [https://www.raspberrypi.org/blog/the-sense-hat-headgear-for-the-terminally-curious/]; [http://astro-pi.org/ Astro Pi]; https://www.raspberrypi.org/competitions/astro-pi/]; [http://www.element14.com/community/docs/DOC-78155/l/raspberry-pi-sense-hat] | ||
− | |||
− | + | [[Category:Arduino/RaspberryPi]] |
Latest revision as of 17:11, 16 January 2018
The Raspberry Pi is a low-cost motherboards that run Linux.
These are some informal setup notes for a R Pi -- really just for my use, may write up later
Contents
Bring Your System Up to Date
Before installing new application or service in Raspbian, make sure to always type this into terminal (if this file is on your PI, you can use cut and paste):
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade
Set Up Remote Desktop
use this command to setup the pi
sudo apt-get install xrdp
on the windows machine go to router admin and get tcpip address of the pi or
on the pi issue the command
ifconfig
and read the tcpip address of the pi( inet addr )
on the windows machine run "Remote Desktop Connection" in it enter the pi address and the user name ( default pi )
- click connect, if you need a password the default is raspberry.
- you should now be able to use your windows machine as the keyboard, mouse, and
- screen.
- if this step does not work try a reboot of the pi and try again, if that does not work
- try googling, it is beyond me.
- more notes
- using fstab
sudo nano /etc/fstab
/etc/fstab
http://www.noveldevices.co.uk/rp-cifsinfstab
this looks good for stab
http://rasspberrypi.wordpress.com/2012/09/04/mounting-and-automounting-windows-shares-on-raspberry-pi/ http://rasspberrypi.wordpress.com/2012/09/04/mounting-and-automounting-windows-shares-on-raspberry-pi/
# For Guest Login //WindowsPC/Share1 /mnt/mountfoldername cifs guest 0 0
For Password Protected Login //WindowsPC/Share1 /mnt/mountfoldername cifs username=yourusername,password=yourpassword 0 0
sharing drives
do you have samba? To find out if you have Samba on your Raspberry Pi, run this command on your Pi:
which samba
If that command prints out a command path, Samba is already installed, so skip ahead to "make a mount point". If the Pi returns to the command prompt without printing anything, Samba is not yet installed; so install Samba with this command:
sudo apt-get install samba
make a mount point:
mkdir /mnt/share1
- mount from command line
sudo mount -t cifs -o guest //192.168.0.170/share /mnt/share1
for auto mounting you need to edit fstab
then look in dir /rPi copy over this win_to_pi_info.txt so have reference there
this worked fine, but what directory was shared turned out it was /home/pi
synaptic
this gives you a gui for installing packages, and search for them altenate to apt-get install ..... Synaptic Package Manager - Home - Savannah
Install
??
Run
??
chrome for pi
actually there is no chrome for pi, but there is Chromium, which is pretty close. I suppose it is heavier weitht than other browsers, but aside from speed it seems to work much better. It does allow you to access google drives, and perhaps other gooogle stuff.
Install:
Run:
spyder
This is a really nice Python environment, do not know how well it plays with the already installed python.
Handy Commands for Run and Terminal
connecting hardware to the Raspberry Pi
(TODO: ... mention something about how easy it is to hook stuff up to the GPIO pins ...)
For something a little more permanent, several people are designing boards to meet the Raspberry Pi HAT standard.
A few PCB Footprints that may be helpful:
- (apparently by Dave Vandenbout ?) Raspberry Pi B+ HAT Template[1]
Further reading
- elinux.org. "Category: RaspberryPi".
- Matt Wilcox. "Setting up a (reasonably) secure home web-server with Raspberry Pi".
- Jacob Salmela. "Password-protect A lighttpd Web Server on a Raspberry Pi Using mod_auth".
- Jacob Salmela. "Block Millions Of Ads Network-wide With A Raspberry Pi-hole 2.0".
- Steve Prater. "Securing your Raspberry PI with SSL and Simple Authentication".
- "Control Raspberry PI With iPhone".
- davstott. "Controlling a Raspberry Pi’s GPIO over the network".
- davstott. "Raspberry Pi Robot Tank, First Trundles".
- Navio+ Raspberry Pi Linux autopilot runs the APM autopilot and can send telemetry over Wi-Fi to the ground. Open-source drivers and tutorials in Python and C++. Pi HAT compliant. 9DOF IMU, 13 PWM servo outputs, servo control PPM input, etc. Apparently works fine when stacked on top of Raspberry Pi A+, B+, Pi 2, Banana Pi, or Odroid-C1. Navio software and documentation on Github.
- "Raspberry Pi Accessories at Element 14"
- Raspberry Pi Sense HAT, "the heart of the Astro Pi". [2]; Astro Pi; https://www.raspberrypi.org/competitions/astro-pi/]; [3]