Difference between revisions of "Raspberry Pi"
Rikesh Patel (talk | contribs) (Created page with "This is a page on configuring and using the Raspberry Pi and Rasbian. This could be adapted to other ARM based linux OSs. Details could be out of order and the page will need sor...") |
Rikesh Patel (talk | contribs) (→Proxy) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
Change as needed using <code>passwd</code> in terminal | Change as needed using <code>passwd</code> in terminal | ||
+ | ===Starting GUI=== | ||
+ | Enter <code>startx</code> in terminal | ||
===Accessing root=== | ===Accessing root=== | ||
Line 21: | Line 23: | ||
Change some settings of the OS by entering in terminal; | Change some settings of the OS by entering in terminal; | ||
+ | <code>raspi-config</code> | ||
− | |||
including the start-up routine. | including the start-up routine. | ||
− | |||
− | |||
===Setting your IP address=== | ===Setting your IP address=== | ||
Line 49: | Line 49: | ||
- Add, as root, to the end of the file '/etc/environment' the line; | - Add, as root, to the end of the file '/etc/environment' the line; | ||
− | <code>export http_proxy=http://128.243.74.2:62267</code> | + | <code>export http_proxy=http ://128.243.74.2:62267</code> |
- Create file '/etc/apt/apt.conf' and '/etc/apt/apt.conf.d/10proxy', and add to both; | - Create file '/etc/apt/apt.conf' and '/etc/apt/apt.conf.d/10proxy', and add to both; | ||
− | <code>Acquire::http::Proxy "http://128.243.74.2:62267";</code> | + | <code>Acquire::http::Proxy "http ://128.243.74.2:62267";</code> |
+ | |||
+ | (I cannot get iceweasel (firefox eqv.) or wget to work, so will have to do without for now) | ||
+ | |||
+ | ===Programs=== | ||
+ | |||
+ | - Install synaptic; | ||
+ | |||
+ | <code>sudo apt-get synaptic</code> | ||
+ | |||
+ | - Use synaptic to install stuff. I've installed KDE. | ||
+ | |||
+ | ===Other stuff=== | ||
+ | |||
+ | - For KDM, change in /etc/kde4/kdm -> allowrootlogin = true | ||
+ | |||
+ | ===Phidgets=== | ||
+ | |||
+ | You need to install libusb-dev before attempting to compile phidgets. | ||
+ | |||
+ | ===Piface=== | ||
+ | |||
+ | Few things here, may be unnecessary in newer versions of Rasbian | ||
+ | |||
+ | - Update if haven't already <code>sudo apt-get update</code> | ||
+ | |||
+ | - Edit /etc/modprobe.d/raspi-blacklist.conf and comment out (using #) blacklist spi-bcm2708 (alternatively use <code>sudo modprobe spi-bcm2708</code> for single use) | ||
+ | |||
+ | - For C interface, download in terminal to somewhere local; | ||
+ | |||
+ | <code> git clone https://github.com/piface/libmcp23s17.git</code> | ||
+ | |||
+ | <code> git clone https://github.com/piface/libpifacedigital.git</code> | ||
+ | |||
+ | I couldn't get it to download, so I did it manually. | ||
+ | |||
+ | - Build the library; | ||
+ | |||
+ | <code> cd libmcp23s17/</code> | ||
+ | |||
+ | <code>make</code> | ||
+ | |||
+ | <code>cd .. </code> | ||
+ | |||
+ | <code>cd libpifacedigital/ </code> | ||
+ | |||
+ | <code>make </code> | ||
+ | |||
+ | This creates the library libpifacedigital.a. | ||
+ | |||
+ | - When making your code, use this; | ||
+ | <code>gcc -o example example.c -Isrc/ -L. -lpifacedigital -L../libmcp23s17/ -lmcp23s17</code> | ||
+ | |||
+ | (plus other flags like -lphidgets21) |
Latest revision as of 10:43, 17 February 2014
This is a page on configuring and using the Raspberry Pi and Rasbian. This could be adapted to other ARM based linux OSs. Details could be out of order and the page will need sorting at a later point.
Contents
Default password
The default user and password for Rasbian is;
User: pi
Password: raspberry
Change as needed using passwd
in terminal
Starting GUI
Enter startx
in terminal
Accessing root
Open terminal and enter;
sudo passwd root
enter the `comppassword` x2.
Configuring Rasbian
Change some settings of the OS by entering in terminal;
raspi-config
including the start-up routine.
Setting your IP address
- Edit /etc/network/interfaces
- Add midway;
iface eth0 inet static
address 128.243.74.xxx
replace 'xxx' with your own IP
netmask 255.255.0.0
gateway 128.243.1.1
dns-nameservers 128.243.40.11 128.243.40.12 128.243.21.19
auto eth0
Proxy
- Add, as root, to the end of the file '/etc/environment' the line;
export http_proxy=http ://128.243.74.2:62267
- Create file '/etc/apt/apt.conf' and '/etc/apt/apt.conf.d/10proxy', and add to both;
Acquire::http::Proxy "http ://128.243.74.2:62267";
(I cannot get iceweasel (firefox eqv.) or wget to work, so will have to do without for now)
Programs
- Install synaptic;
sudo apt-get synaptic
- Use synaptic to install stuff. I've installed KDE.
Other stuff
- For KDM, change in /etc/kde4/kdm -> allowrootlogin = true
Phidgets
You need to install libusb-dev before attempting to compile phidgets.
Piface
Few things here, may be unnecessary in newer versions of Rasbian
- Update if haven't already sudo apt-get update
- Edit /etc/modprobe.d/raspi-blacklist.conf and comment out (using #) blacklist spi-bcm2708 (alternatively use sudo modprobe spi-bcm2708
for single use)
- For C interface, download in terminal to somewhere local;
git clone https://github.com/piface/libmcp23s17.git
git clone https://github.com/piface/libpifacedigital.git
I couldn't get it to download, so I did it manually.
- Build the library;
cd libmcp23s17/
make
cd ..
cd libpifacedigital/
make
This creates the library libpifacedigital.a.
- When making your code, use this;
gcc -o example example.c -Isrc/ -L. -lpifacedigital -L../libmcp23s17/ -lmcp23s17
(plus other flags like -lphidgets21)