|
|
|
|
226
|
# gateway 192.168.7.1
|
226
|
# gateway 192.168.7.1
|
227
|
#+END_SRC
|
227
|
#+END_SRC
|
228
|
|
228
|
|
229
|
-CTRL-O followed by ENTER to save, then CTRL-X to exit.
|
|
|
|
|
229
|
+CTRL-o followed by ENTER to save, then CTRL-x to exit.
|
230
|
|
230
|
|
231
|
In the above example "address 192.168.1.60" is a static IP address for the BBB, which will allow incoming network traffic to be directed from the router in a reliable manner. It should be outside of the DHCP range set up on the router.
|
231
|
In the above example "address 192.168.1.60" is a static IP address for the BBB, which will allow incoming network traffic to be directed from the router in a reliable manner. It should be outside of the DHCP range set up on the router.
|
232
|
|
232
|
|
|
|
|
|
249
|
nameserver 85.214.20.141
|
249
|
nameserver 85.214.20.141
|
250
|
#+END_SRC
|
250
|
#+END_SRC
|
251
|
|
251
|
|
252
|
-CTRL-O followed by ENTER to save, then CTRL-X to exit.
|
|
|
|
|
252
|
+CTRL-o followed by ENTER to save, then CTRL-x to exit.
|
253
|
|
253
|
|
254
|
Now disconnect the BBB from your computer and plug it into the router. You'll need an ethernet patch cable and you may also need a 5V/1A power supply for the BBB.
|
254
|
Now disconnect the BBB from your computer and plug it into the router. You'll need an ethernet patch cable and you may also need a 5V/1A power supply for the BBB.
|
255
|
|
255
|
|
|
|
|
|
294
|
| Save | CTRL-x CTRL-s |
|
294
|
| Save | CTRL-x CTRL-s |
|
295
|
| Exit | CTRL-x CTRL-c |
|
295
|
| Exit | CTRL-x CTRL-c |
|
296
|
|
296
|
|
297
|
-** Create a swap file
|
|
|
298
|
-
|
|
|
299
|
-Without a swap file the system may occasionally run out of memory and crash, since the Beaglebone only has 512MB of RAM. The following commands will create a 1GB swap file:
|
|
|
300
|
-
|
|
|
301
|
-#+BEGIN_SRC: bash
|
|
|
302
|
-mkdir -p /var/cache/swap/
|
|
|
303
|
-dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024
|
|
|
304
|
-chmod 600 /var/cache/swap/swapfile
|
|
|
305
|
-mkswap /var/cache/swap/swapfile
|
|
|
306
|
-swapon /var/cache/swap/swapfile
|
|
|
307
|
-#+END_SRC
|
|
|
308
|
-
|
|
|
309
|
-To tell the OS to load this swapfile on each start up.
|
|
|
310
|
-
|
|
|
311
|
-#+BEGIN_SRC: bash
|
|
|
312
|
-emacs /etc/fstab
|
|
|
313
|
-#+END_SRC
|
|
|
314
|
-
|
|
|
315
|
-Append the following line:
|
|
|
316
|
-
|
|
|
317
|
-#+BEGIN_SRC: bash
|
|
|
318
|
-/var/cache/swap/swapfile none swap sw 0 0
|
|
|
319
|
-#+END_SRC
|
|
|
320
|
-
|
|
|
321
|
-Then save and exit.
|
|
|
322
|
-
|
|
|
323
|
-To verify that the swapfile is accessilble type /top/ and look for the line which begins with "KiB Swap". Probably there will be zero bytes used, but this might be non-zero when the system is under some load (for example getting a lot of web views or being crawled by a search engine). CTRL-C exits from the /top/ command.
|
|
|
324
|
-
|
|
|
325
|
** Enable backports
|
297
|
** Enable backports
|
326
|
|
298
|
|
327
|
To enable some newer packages add backports to the repositories.
|
299
|
To enable some newer packages add backports to the repositories.
|