Difference between revisions of "Pi Setup Nov 2016"
Russ hensel (talk | contribs) |
Russ hensel (talk | contribs) |
||
Line 48: | Line 48: | ||
*[https://www.modmypi.com/blog/how-to-give-your-raspberry-pi-a-static-ip-address-update] | *[https://www.modmypi.com/blog/how-to-give-your-raspberry-pi-a-static-ip-address-update] | ||
+ | <pre> | ||
sudo leafpad /etc/dhcpcd.conf | sudo leafpad /etc/dhcpcd.conf | ||
+ | </pre> | ||
+ | |||
Scroll all the way to the bottom of the file and add one, or both of the following snippets. | 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 | Depending on whether you want to set a static IP address for a | ||
Line 59: | Line 62: | ||
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. | 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 Rasberry Pi 178/179 | ||
<pre> | <pre> |
Revision as of 14:25, 21 November 2016
Yet another setup for the Pi
Base OS
https://www.raspberrypi.org/downloads/
- Raspbian
- RASPBIAN JESSIE WITH PIXEL
- Win32DiskImager utility
- put on 16 gig micro card
- boot
- 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
- as shipped id is pi password is raspberry. default user is pi , and the password is raspberry
- Change your password. When logged in as the pi user, you can change your password with the passwd command. Enter passwd on the command line and press Enter . You'll be prompted to enter your current password to authenticate, and then asked for a new password.
passwd
Set Up Remote Desktop
- use this command to setup the pi
sudo apt-get install xrdp
on the pi issue the command
ifconfig
and read the tcpip address of the pi( inet addr ) which you can then use, or better use a fixed address
fixed 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 Rasberry Pi 178/179
interface eth0 static ip_address=192.168.0.176/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1 interface wlan0 static ip_address=192.168.0.200/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1
Spyder
>>> sudo apt-get install spyder