Difference between revisions of "Linux Commands On Pi"

From OpenCircuits
Jump to navigation Jump to search
Line 24: Line 24:
  
 
== interfaces ==  
 
== interfaces ==  
sudo leafpad  /etc/network/interfaces
+
 
 +
<pre>
 +
 
 +
sudo leafpad  /etc/network/interfaces
 +
 
 +
</pre>
 +
 
 +
 
 +
 
 
== Keyboard ==
 
== Keyboard ==
  
 
or just edit file
 
or just edit file
  
/etc/default/keyboard
+
#  sudo leafpad  /etc/default/keyboard
 
 
and make it
 
  
 
XKBLAYOUT="us"
 
XKBLAYOUT="us"
Line 50: Line 56:
 
sudo leafpad /etc/wpa_supplicant/wpa_supplicant.conf
 
sudo leafpad /etc/wpa_supplicant/wpa_supplicant.conf
  
<pre>
+
</pre>
  
 
Go to the bottom of the file and add the following:
 
Go to the bottom of the file and add the following:
  
 
<pre>
 
<pre>
 +
#  sudo leafpad /etc/wpa_supplicant/wpa_supplicant.conf
 +
# at bottom of file
 +
# ok to have 2
 +
 +
network={
 +
    ssid="The_ESSID_from_earlier"
 +
    psk="Your_wifi_password"
 +
 
network={
 
network={
 
     ssid="The_ESSID_from_earlier"
 
     ssid="The_ESSID_from_earlier"

Revision as of 11:59, 27 November 2016

Make Sure You are Up to Date


# remember to use >>
sudo apt-get update

sudo apt-get upgrade 

sudo raspi-config     # still works as alternative to command line 




File Related

Config Files

interfaces


#  sudo leafpad  /etc/network/interfaces


Keyboard

or just edit file

  1. sudo leafpad /etc/default/keyboard

XKBLAYOUT="us"

sudo leafpad /etc/default/keyboard may be protected try with sudo no file is empty

wpa_supplicant.conf


# for info 

sudo iwlist wlan0 scan

then edit 

sudo leafpad /etc/wpa_supplicant/wpa_supplicant.conf

Go to the bottom of the file and add the following:

#  sudo leafpad /etc/wpa_supplicant/wpa_supplicant.conf
# at bottom of file
# ok to have 2

network={
    ssid="The_ESSID_from_earlier"
    psk="Your_wifi_password"

network={
    ssid="The_ESSID_from_earlier"
    psk="Your_wifi_password"
}