Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
raspberry_boards:duino-pi_modification [2014/10/26 02:29] admin |
raspberry_boards:duino-pi_modification [2016/07/10 17:52] admin [Set the SSH connection] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ---- | + | ===== Paper-Duino-Pi software modifications ===== |
- | **Paper-Duino-Pi software modifications** | + | |
- | ---- | + | |
- | \\ | + | |
Before start make an update: | Before start make an update: | ||
$ sudo apt-get update | $ sudo apt-get update | ||
- | \\ | + | $ sudo apt-get upgrade |
---- | ---- | ||
- | **Change name and password**\\ | ||
- | \\ | ||
- | [[http://raspi.tv/2012/how-to-create-a-new-user-on-raspberry-pi|How to create a new user]] | ||
- | <html> | ||
- | <!-- | ||
- | 1. Change the name: | ||
- | $ sudo nano /etc/hostname | ||
- | in "duino-pi"\\ | ||
- | 2. Change the host file | + | ==== Install Shutdown & Reset Button ==== |
- | $ sudo nano /etc/hosts | + | |
- | in: | + | |
- | 127.0.0.1 localhost | + | |
- | ::1 localhost ip6-localhost ip6-loopback | + | |
- | fe00::0 ip6-localnet | + | |
- | ff00::0 ip6-mcastprefix | + | |
- | ff02::1 ip6-allnodes | + | |
- | ff02::2 ip6-allrouters | + | |
- | + | ||
- | 127.0.1.1 duino-pi | + | |
- | 5. Change the password | + | 1. Make an folder |
- | $ passwd | + | $ mkdir /home/pi/paper-duino-pi |
+ | $ cd /home/pi/paper-duino-pi | ||
- | The passwd command allows you to change your password, you will be prompted for your old password, then you new password twice. The password is "dernulleffekt". | + | 2. Download and unzip that Python script |
+ | <del>$ wget http://www.dernulleffekt.de/programme/shutdownbutton.py.tar.gz</del> | ||
+ | $ wget http://www.dernulleffekt.de/programme/shutdownbutton_02.py.tar | ||
+ | $ tar xf shutdownbutton.py.tar.gz | ||
+ | |||
+ | 2. Change owner & rights | ||
+ | $ sudo chown root:root shutdownbutton_02.py | ||
+ | $ sudo chmod 755 shutdownbutton_02.py | ||
+ | |||
+ | 3. Create the autostart: | ||
+ | $ sudo nano /etc/rc.local | ||
+ | write before exit 0: | ||
+ | # run reset and shutdown script | ||
+ | printf "Starting shutdown aund reset button\n" | ||
+ | /home/pi/paper-duino-pi/shutdownbutton_02.py & | ||
+ | |||
+ | To save and leave press:\\ | ||
+ | CTRL+O, Enter, CTRL+X\\ | ||
- | 4. Reboot: | + | 4. Reboot |
$ sudo reboot | $ sudo reboot | ||
- | --!> | ||
- | </html> | ||
- | \\ | ||
---- | ---- | ||
- | **Install Shutdown & Reset Button** | + | ==== Install Blinking LED ==== |
- | 1. Make an folder | + | 1. Make an folder (if not existing) |
$ mkdir /home/pi/paper-duino-pi | $ mkdir /home/pi/paper-duino-pi | ||
$ cd /home/pi/paper-duino-pi | $ cd /home/pi/paper-duino-pi | ||
2. Download and unzip that Python script | 2. Download and unzip that Python script | ||
- | $ wget http://www.dernulleffekt.de/programme/shutdownbutton.py.tar.gz | + | $ wget http://www.dernulleffekt.de/programme/blink_22.py.tar.gz |
- | $ tar xf shutdownbutton.py.tar.gz | + | $ tar xf blink_22.py.tar.gz |
| | ||
2. Change owner & rights | 2. Change owner & rights | ||
- | $ sudo chown root:root shutdownbutton.py | + | $ sudo chown root:root blink_22.py |
- | $ sudo chmod 755 shutdownbutton.py | + | $ sudo chmod 755 blink_22.py |
| | ||
3. Create the autostart: | 3. Create the autostart: | ||
Line 59: | Line 54: | ||
write before exit 0: | write before exit 0: | ||
# run reset and shutdown script | # run reset and shutdown script | ||
- | printf "Starting shutdown aund reset button\n" | + | printf "Starting blinking LED on GPIO 22" |
- | /home/pi/paper-duino-pi/shutdownbutton.py & | + | /home/pi/paper-duino-pi/blink_22.py & |
To save and leave press:\\ | To save and leave press:\\ | ||
Line 67: | Line 62: | ||
4. Reboot | 4. Reboot | ||
$ sudo reboot | $ sudo reboot | ||
- | \\ | ||
---- | ---- | ||
- | **Install the Arduino IDE & modify** | + | ==== Install the Arduino IDE & modify ==== |
1. Install the Arduino IDE, type in command line: | 1. Install the Arduino IDE, type in command line: | ||
Line 106: | Line 100: | ||
---- | ---- | ||
- | **Install Pure Data, PD-extended** | + | ==== Install Pure Data, PD-extended ==== |
1. To install pd-extended run the following command in your terminal: | 1. To install pd-extended run the following command in your terminal: | ||
Line 133: | Line 127: | ||
---- | ---- | ||
- | **Download the Firmata** | + | ==== Download the Firmata ==== |
1. Create folder | 1. Create folder | ||
Line 144: | Line 138: | ||
---- | ---- | ||
- | **Set the SSH connection** | ||
- | |||
- | 1. For activating the SSH connection open | ||
- | $ sudo raspi-config | ||
- | In 8. Advanced Options you can activate SSH | ||
- | |||
- | 2. Give the Raspberry Pi an IP address. Open the interfaces file: | ||
- | $ sudo nano /etc/network/interfaces | ||
- | Change the DHCP in static and add these lines: | ||
- | |||
- | iface eth0 inet static | ||
- | address 192.168.0.111 | ||
- | netmask 255.255.255.0 | ||
- | gateway 192.168.0.100 | ||
- | |||
- | To save and leave press:\\ | ||
- | CTRL+O, Enter, CTRL+X | ||
- | |||
- | 3. Restart ethernet | ||
- | $ sudo ifdown eth0 | ||
- | $ sudo ifup eth0 | ||
- | |||
- | 3. Now you can login on your computer with: | ||
- | $ ssh duino-pi@192.168.0.111 | ||
- | or with XWindows support: | ||
- | $ ssh -XY pi@192.168.0.111 | ||
- | PW: raspberry\\ | ||
- | \\ | ||
- | |||