Difference between revisions of "Cookbook of Raspberry Pi Commands"

From OpenCircuits
Jump to navigation Jump to search
Line 44: Line 44:
 
}
 
}
 
</pre>
 
</pre>
 +
another file
 +
<pre>
 +
    sudo leafpad  /etc/network/interfaces
 +
</pre>
 +
Find contents like:
 +
<pre>
 +
# interfaces(5) file used by ifup(8) and ifdown(8)
  
 +
# Please note that this file is written to be used with dhcpcd
 +
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
  
 +
# Include files from /etc/network/interfaces.d:
 +
source-directory /etc/network/interfaces.d
 +
</pre>
  
  
 
+
<pre>
 
+
    sudo leafpad 
 
+
</pre>
 
 
 
 
 
 
 
 
 
 
  
 
= Linux Reminders =
 
= Linux Reminders =

Revision as of 13:18, 11 February 2018

I am going to try to summarize most of my other pages for controlling setting up the raspberry Pi. We will see how it goes.


This is an article started by Russ Hensel, see "http://www.opencircuits.com/index.php?title=Russ_hensel#About My Articles" About My Articles for a bit of info. The page is only partly finished.Link title


Basic Config

Also stuff in GUI

sudo raspi-config  


Update

Commands like: not sure about the kernel one

sudo apt-get update  
sudo apt-get upgrade
sudo apt-get install raspberrypi-kernel

WiFi

Edit this:

     sudo leafpad /etc/wpa_supplicant/wpa_supplicant.conf

Find contents like:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
	ssid="upstairs"
	key_mgmt=NONE
}

network={
	ssid="belkin.d3c"
	psk="secret"
	key_mgmt=WPA-PSK
}

another file

     sudo leafpad  /etc/network/interfaces

Find contents like:

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d


     sudo leafpad  

Linux Reminders

ls sudo chmod +x /home/pi/pi3.sh # make executable