This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| raspberry [2015/01/18 17:26] – created admin | raspberry [2015/12/25 23:02] (current) – [Wifi Setup] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Raspberry Pi Model B ====== | ====== Raspberry Pi Model B ====== | ||
| + | ===== Wifi Setup ===== | ||
| + | |||
| + | |||
| + | / | ||
| + | |||
| + | < | ||
| + | auto lo | ||
| + | |||
| + | iface lo inet loopback | ||
| + | iface eth0 inet dhcp | ||
| + | |||
| + | allow-hotplug wlan0 | ||
| + | iface wlan0 inet manual | ||
| + | wpa-roam / | ||
| + | iface default inet dhcp | ||
| + | </ | ||
| + | |||
| + | / | ||
| + | |||
| + | < | ||
| + | ctrl_interface=DIR=/ | ||
| + | update_config=1 | ||
| + | |||
| + | network={ | ||
| + | ssid=" | ||
| + | psk=" | ||
| + | key_mgmt=WPA-PSK | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== SainSmart 3.2" - screen ===== | ||
| + | |||
| + | Follow this: http:// | ||
| + | |||
| + | / | ||
| + | |||
| + | < | ||
| + | # / | ||
| + | # | ||
| + | # This file contains the names of kernel modules that should be loaded | ||
| + | # at boot time, one per line. Lines beginning with "#" | ||
| + | # Parameters can be specified after the module name. | ||
| + | |||
| + | snd-bcm2835 | ||
| + | ## TOUCH SCREEN MODULE | ||
| + | fbtft_device name=waveshare32b | ||
| + | </ | ||
| + | |||
| + | / | ||
| + | |||
| + | < | ||
| + | #!/bin/sh -e | ||
| + | # | ||
| + | # rc.local | ||
| + | # | ||
| + | # This script is executed at the end of each multiuser runlevel. | ||
| + | # Make sure that the script will "exit 0" on success or any other | ||
| + | # value on error. | ||
| + | # | ||
| + | # In order to enable or disable this script just change the execution | ||
| + | # bits. | ||
| + | # | ||
| + | # By default this script does nothing. | ||
| + | |||
| + | ## TOUCH SCREEN IF HDMI OR TOUCH SCREEN | ||
| + | echo "is it HDMI or DVI?" > / | ||
| + | / | ||
| + | if (/ | ||
| + | echo "HDMI / DVI screen" | ||
| + | # below setting is default | ||
| + | # con2fbmap 1 0 | ||
| + | else | ||
| + | echo " | ||
| + | con2fbmap 1 1 | ||
| + | fi | ||
| + | |||
| + | |||
| + | # Print the IP address | ||
| + | _IP=$(hostname -I) || true | ||
| + | if [ " | ||
| + | printf "My IP address is %s\n" " | ||
| + | fi | ||
| + | |||
| + | exit 0 | ||
| + | </ | ||
| + | |||
| + | Run "sudo raspi-config" | ||
| + | |||
| + | ===== SainSmart 3.2" - touch ===== | ||
| + | |||
| + | |||
| + | ===== Disable screensaver/ | ||
| + | |||
| + | |||
| + | / | ||
| + | |||
| + | < | ||
| + | # NO BLANK SCREEN | ||
| + | @xset s noblank | ||
| + | @xset s off | ||
| + | @xset -dpms | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Enable screen to show/work on commandline ===== | ||
| + | |||
| + | This is to get the screen working while booting and show whats going on during boot time on your Pi! | ||
| + | |||
| + | Add the following after " | ||
| + | |||
| + | fbcon=map: | ||