Saturday, June 21, 2014

Install gcc/g++ 4.7 on Raspberry Pi and set as default

Install gcc-4.7 g++-4.7 on Raspberry Pi, enter the commands:

$ sudo apt-get install gcc-4.7 g++-4.7
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7

Then run the the command and select gcc-4.7.
$ sudo update-alternatives --config gcc

Update Raspberry Pi system with apt-get

To update your Raspberry Pi system, run the commands in Terminal:

$ sudo apt-get update
$ sudo apt-get upgrade


Tuesday, June 17, 2014

Python example, webbrowser

To open web browser in python:

import webbrowser
webbrowser.open("http://www.raspberrypi.org/");


Tuesday, June 10, 2014

Install filezilla on Ubuntu, to connect Pi using FTP

FileZilla is a FTP solution. Both a client and a server are available. FileZilla is open source software distributed free of charge under the terms of the GNU General Public License.


To install filezilla on Ubuntu, enter command:
sudo apt-get install filezilla

To install vsftpd on Raspberry Pi
read http://goo.gl/PueSlj