Difference between revisions of "Pi Setup Dec 2018 - Stretch"

From OpenCircuits
Jump to navigation Jump to search
Line 90: Line 90:
  
  
= Share Net Drive old still work =
+
= Share Net Drive =
  
 
<pre>
 
<pre>
Line 119: Line 119:
 
</pre>
 
</pre>
  
 +
== Make automatic with fstab ==
 +
== using fstab ==
  
 +
# using fstab  this will let you auto mount
 +
for nano ctrl O  writes a file
 +
<pre>
 +
sudo leafpad /etc/fstab
 +
sudo nano    /etc/fstab           
 +
</pre>
 +
 +
 +
note that fstab may be hidden file
 +
>>
 +
//192.168.0.170/share/_Source/rPi /mnt/share1 cifs user=russ,pass=<password_in_quotes??>,_netdev 0,0
 +
 +
 +
[http://www.noveldevices.co.uk/rp-cifsinfstab rp-cifsinfstab]
 +
 +
this looks good for stab
 +
 +
[http://rasspberrypi.wordpress.com/2012/09/04/mounting-and-automounting-windows-shares-on-raspberry-pi/ 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
 +
 +
//192.168.0.170/share/_Source/rPi /mnt/share1 cifs user=russ,pass=squeak13,_netdev 0,0
  
  
 
[[Category:Arduino/RaspberryPi]]
 
[[Category:Arduino/RaspberryPi]]

Revision as of 08:50, 2 December 2017

Decided time to switch to new os and Python 3, this is more or less a log


Download ....

Use this for install directions

said use etcher so that is what I plan to do.

Setup

next look at:


  • look at preferences from menu and enable vnc
  • in preferences set the localization to yours

Update

  • Before installing new application or service in Raspbian, make sure to always type this into terminal: ( if this file is on your PI use cut and paste ) This takes awhile ( perhaps an hour? )
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

You many find the following of use as well Linux Commands On Pi

Remote Desktop VNC

  • vnc

Default login. Username: pi. Password: raspberry. So, type pi, enter, raspberry, enter.


Static Ip Address

sudo leafpad /etc/dhcpcd.conf

Scroll all the way to the bottom of the file and add one, or both of the following snippets. Depending on whether you want to set a static IP address for a wired connection or a wireless connection eth0 = wired, wlan0 = wireless. You’ll need to edit the numbers in the snippet so they match your network configuration.

  • interface = This defines which network interface you are setting the configuration for.
  • static ip_address = This is the IP address that you want to set your device to. (Make sure you leave the /24 at the end)
  • static routers = This is the IP address of your gateway (probably the IP address or your router)
  • static domain_name_servers = This is the IP address of your DNS (probably the IP address of your router). You can add multiple IP addresses here separated with a single space.
  • my next Raspberry Pi 182/183 I just pasted this into the bottom of the file

interface eth0

static ip_address=192.168.0.182/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

interface wlan0

static ip_address=192.168.0.183/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

then sudo reboot to try it out - ivp 6 may be a good addition to look into

this does part of wifi, but need more

finish get wifi working

software installed with package manager

spyder3 arduino stuff


Share Net Drive

which samba	             

did not show samba but

sudo apt-get install samba

showed it was there -- not this time it did a big install ?? did it remove and install, the mysteries continue

>>> create mount point

sudo mkdir /mnt/share1

this gave read access

sudo mount -t  cifs -o guest  //192.168.0.170/share /mnt/share1

read write with this

sudo mount -t cifs -o username="russ",password="passwordhere",workgroup="MSHOME",file_mode=0777,dir_mode=0777,nobrl //192.168.0.170/share/_Source/rPi  /mnt/share1

Make automatic with fstab

using fstab

  1. using fstab this will let you auto mount

for nano ctrl O writes a file

sudo leafpad /etc/fstab
sudo nano    /etc/fstab            


note that fstab may be hidden file >> //192.168.0.170/share/_Source/rPi /mnt/share1 cifs user=russ,pass=<password_in_quotes??>,_netdev 0,0


rp-cifsinfstab

this looks good for stab

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

//192.168.0.170/share/_Source/rPi /mnt/share1 cifs user=russ,pass=squeak13,_netdev 0,0