Browse Source

Cubieboard setup

Bob Mottram 11 years ago
parent
commit
f933fac994
1 changed files with 27 additions and 1 deletions
  1. 27
    1
      beaglebone.txt

+ 27
- 1
beaglebone.txt View File

103
 Just an ordinary cat5 or cat6 cable that you can get from most electrical/computer stores.
103
 Just an ordinary cat5 or cat6 cable that you can get from most electrical/computer stores.
104
 
104
 
105
 * Installing Debian onto the microSD card
105
 * Installing Debian onto the microSD card
106
+** Beaglebone Black
106
 
107
 
107
 The Debian Linux OS will be installed onto a small flash drive.  It's a good idea to do this rather than using the internal flash, because it will allow you to easily create backups of the entire system if necessary using the dd command.
108
 The Debian Linux OS will be installed onto a small flash drive.  It's a good idea to do this rather than using the internal flash, because it will allow you to easily create backups of the entire system if necessary using the dd command.
108
 
109
 
142
 
143
 
143
 Once completed then safely remove the microSD card via your file manager (usually right click and "safely remove" or "eject").
144
 Once completed then safely remove the microSD card via your file manager (usually right click and "safely remove" or "eject").
144
 
145
 
146
+** Cubieboard
147
+
148
+The Debian Linux OS will be installed onto a small flash drive.  It's a good idea to do this rather than using the internal flash, because it will allow you to easily create backups of the entire system if necessary using the dd command.
149
+
150
+Download the Cubieboard image from http://cubian.org/downloads/
151
+
152
+#+BEGIN_SRC: bash
153
+sudo apt-get install p7zip-full
154
+7z x CUBIAN_IMAGE.7z
155
+#+END_SRC
156
+
157
+Create the disk image, where sdX is the name of the flash drive (probably it will be sdb or sdc).  An easy way to find out the device name of the flash drive is to enter the command:
158
+
159
+#+BEGIN_SRC: bash
160
+ls /dev/sd*
161
+#+END_SRC
162
+
163
+then plug in the flash drive and type the same command again.  You'll be able to see the difference.  Once you know the device name then you can proceed to install the image onto the flash drive.
164
+
165
+#+BASH_SRC: bash
166
+sudo dd if=EXTRACTED_CUBIAN_IMAGE of=/dev/sdX bs=4096; sync
167
+#+END_SRC
168
+
145
 * Setup
169
 * Setup
146
 
170
 
147
 #+BEGIN_VERSE
171
 #+BEGIN_VERSE
167
 
191
 
168
 Eject the microSD card from your computer and plug it into the BBB, then connect the USB cable between the two.  You may need to wait for a couple of minutes for the BBB to boot from the card, then you can then open a terminal and login via ssh.
192
 Eject the microSD card from your computer and plug it into the BBB, then connect the USB cable between the two.  You may need to wait for a couple of minutes for the BBB to boot from the card, then you can then open a terminal and login via ssh.
169
 
193
 
194
+Note that if you're using a Cubieboard then the ssh login is different (see https://github.com/cubieplayer/Cubian/wiki/Get-started-with-Cubian) and it may be easier to directly edit the following files with the microSD card plugged into your laptop.
195
+
170
 #+BEGIN_SRC: bash
196
 #+BEGIN_SRC: bash
171
 ssh debian@192.168.7.2
197
 ssh debian@192.168.7.2
172
 #+END_SRC
198
 #+END_SRC
4275
 git clone https://github.com/e14n/pump.io.git
4301
 git clone https://github.com/e14n/pump.io.git
4276
 cd /opt/pump.io
4302
 cd /opt/pump.io
4277
 npm install
4303
 npm install
4278
-npm install databank-redis
4304
+npm install databank-leveldb
4279
 #+END_SRC
4305
 #+END_SRC
4280
 
4306
 
4281
 Limit the use of RAM by the Redis database.
4307
 Limit the use of RAM by the Redis database.