Raspberry PI setup
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Raspberry PI setup
sudo apt-get update
sudo apt-get upgrade
sudo raspi-config
sudo apt-get dist-upgrade
sudo apt-get dist-upgrade --fix-missing
#set locale
#do not boot to desktop
#may need to edit /etc/environment to add LANG and LC_CTYPE lines
#enlarge partition
sudo apt-get install netatalk
sudo apt-get install hdparm
sudo apt-get install espeak
sudo apt-get install x11-xserver-utils
#set up ~/.xinitrc
#scan wi-fi networks
wpa_cli scan && sleep 5 && wpa_cli scan_results
iwlist wlan0 scan
#setup wi-fi
https://learn.adafruit.com/adafruits-ra ... cidentalis
http://www.raspberrypi.org/forums/viewt ... 28&t=44044
sudo apt-get upgrade
sudo raspi-config
sudo apt-get dist-upgrade
sudo apt-get dist-upgrade --fix-missing
#set locale
#do not boot to desktop
#may need to edit /etc/environment to add LANG and LC_CTYPE lines
#enlarge partition
sudo apt-get install netatalk
sudo apt-get install hdparm
sudo apt-get install espeak
sudo apt-get install x11-xserver-utils
#set up ~/.xinitrc
#scan wi-fi networks
wpa_cli scan && sleep 5 && wpa_cli scan_results
iwlist wlan0 scan
#setup wi-fi
https://learn.adafruit.com/adafruits-ra ... cidentalis
http://www.raspberrypi.org/forums/viewt ... 28&t=44044
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: Raspberry PI setup
sudo passwd root
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: Raspberry PI setup
To enable I2C and SPI ports which are disabled by default:-
sudo nano /etc/modprobe.d/raspi-blacklist.conf
comment out both lines
http://hubcitylabs.org/enabling-i2c-on- ... spberrypi/
http://www.cmdrkeen.net/tag/spi/
also:-
sudo apt-get install libi2c-dev
http://www.raspberrypi.org/phpBB3/viewt ... 31&t=19680
http://www.raspberrypi.org/phpBB3/viewt ... f=7&t=1434
adduser pi i2c
adduser root i2c
sudo nano /etc/modprobe.d/raspi-blacklist.conf
comment out both lines
http://hubcitylabs.org/enabling-i2c-on- ... spberrypi/
http://www.cmdrkeen.net/tag/spi/
also:-
sudo apt-get install libi2c-dev
http://www.raspberrypi.org/phpBB3/viewt ... 31&t=19680
http://www.raspberrypi.org/phpBB3/viewt ... f=7&t=1434
adduser pi i2c
adduser root i2c
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: Raspberry PI setup
MySQL
http://www.cyberciti.biz/tips/linux-uni ... ogram.html
http://www.yolinux.com/TUTORIALS/MySQL- ... C-API.html
sudo apt-get install libmysqlclient-dev
sudo apt-get install libmysqld-dev
sudo apt-get install libmysqlclient16
sudo apt-get install libmysqlclient18
sudo apt-get install mysql-workbench
sudo apt-get install mysql-common
The following provides the necessary flags:-
mysql_config --cflags --libs
usage:-
gcc test.c -o test $(mysql_config --clags --libs)
http://www.cyberciti.biz/tips/linux-uni ... ogram.html
http://www.yolinux.com/TUTORIALS/MySQL- ... C-API.html
sudo apt-get install libmysqlclient-dev
sudo apt-get install libmysqld-dev
sudo apt-get install libmysqlclient16
sudo apt-get install libmysqlclient18
sudo apt-get install mysql-workbench
sudo apt-get install mysql-common
The following provides the necessary flags:-
mysql_config --cflags --libs
usage:-
gcc test.c -o test $(mysql_config --clags --libs)
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: Raspberry PI setup
Cron jobs
adduser pi crontab
Add the following line after issuing the command "sudo crontab -e"
*/10 * * * * /home/pi/code/test1 > /dev/null
Make sure to start the cron job by issuing:-
sudo /etc/init.d/cron start
If already started, you may want to restart instead of start.
adduser pi crontab
Add the following line after issuing the command "sudo crontab -e"
*/10 * * * * /home/pi/code/test1 > /dev/null
Make sure to start the cron job by issuing:-
sudo /etc/init.d/cron start
If already started, you may want to restart instead of start.
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Installing new image on Mac OS X
Format SD card on Windows to FAT32
Download RASPIAN image (choose ZIP and not Torrent) to Mac desktop from:-
http://www.raspberrypi.org/downloads/
http://downloads.raspberrypi.org/raspbian_latest
On Mac Pro - SD card slot is disk1 so use that in instructions ahead, ie. /dev/disk1
Use Disk Utility in utilities to check this. Can also unmount with the utility.
Follow instructions here:-
http://www.raspberrypi.org/documentatio ... ges/mac.md
Download RASPIAN image (choose ZIP and not Torrent) to Mac desktop from:-
http://www.raspberrypi.org/downloads/
http://downloads.raspberrypi.org/raspbian_latest
On Mac Pro - SD card slot is disk1 so use that in instructions ahead, ie. /dev/disk1
Use Disk Utility in utilities to check this. Can also unmount with the utility.
Follow instructions here:-
http://www.raspberrypi.org/documentatio ... ges/mac.md
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm