This is an old revision of the document!
/etc/network/interfaces :
auto lo iface lo inet loopback iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp
/etc/wpa_supplicant/wpa_supplicant.conf :
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="OpenWrt"
psk="_wallstreet39_"
key_mgmt=WPA-PSK
}
Follow this: http://www.raspberrypi.org/forums/viewtopic.php?f=91&t=95601
/etc/modules
# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. # Parameters can be specified after the module name. snd-bcm2835 ## TOUCH SCREEN MODULE fbtft_device name=waveshare32b
/etc/rc.local :
#!/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?" > /home/pi/tft.log
/usr/bin/tvservice -s >> /home/pi/tft.log
if (/usr/bin/tvservice -s | /bin/egrep 'HDMI|DVI') ; then
echo "HDMI / DVI screen" >> /home/pi/tft.log
# below setting is default
# con2fbmap 1 0
else
echo "switch on PiTFT" >> /home/pi/tft.log
con2fbmap 1 1
fi
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
exit 0
Run “sudo raspi-config” and select “3 Enable boot to Desktop → Desktop login as user pi …”
/etc/xdg/lxsession/LXDE/autostart
# NO BLANK SCREEN @xset s noblank @xset s off @xset -dpms