Browse Source

Alter getting onto the web position to be more logical

Bob Mottram 11 years ago
parent
commit
d69d475184
1 changed files with 39 additions and 19 deletions
  1. 39
    19
      beaglebone.txt

+ 39
- 19
beaglebone.txt View File

@@ -374,22 +374,57 @@ and check that some number of bits are set within a 4096 bit sized key:
374 374
 debug2: bits set: */4096
375 375
 #+END_SRC
376 376
 
377
+** Getting onto the web
378
+Create a subdomain on [[http://freedns.afraid.org][freeDNS]].  You may need to click on "/subdomains/" a couple of times.  FreeDNS is preferred because it is one of the few domain name providers which supports genuinely free (as in beer) accounts.  So if your budget is tiny or non-existent you can still participate as a first class citizen of the internet.  If you do have money to spend there is also a premium option.
379
+
380
+Select "/dynamic DNS/" then click "/quick cron example/"
381
+
382
+An example would look like:
383
+
384
+#+BEGIN_SRC: bash
385
+4,9,14,19,24,29,34,39,44,49,54,59 * * * * root sleep 29 ; wget -O - http://free\ dns.afraid.org/dynamic/update.php?ABCKDNRCLFHENSLKNFEGSBFLFF== >> /\ tmp/freedns_mysubdomain_us_to.log 2>&1 &
386
+#+END_SRC
387
+
388
+Edit */etc/crontab* and append that to the end of the file.
389
+
390
+Via your router's firewall settings you should now open port 22 (secure shell).  This will allow you to ssh into your BBB from any location - not just your own local network.
391
+
392
+The freeDNS subdomain which you just created will hereafter just be refered to as "/your domain name/".
393
+
377 394
 ** Set the host name
378 395
 
379 396
 #+BEGIN_SRC: bash
380 397
 emacs /etc/hostname
381 398
 #+END_SRC
382 399
 
383
-CTRL-X CTRL-S to save, then CTRL-X CTRL-C to exit.
400
+CTRL-x CTRL-s to save, then CTRL-x CTRL-c to exit.
384 401
 
385
-also issue the command
402
+Also issue the command, replacing /mydomainname.com/ with your domain name.
386 403
 
387 404
 #+BEGIN_SRC: bash
388
-hostname /myhostname/
405
+hostname mydomainname.com
389 406
 #+END_SRC
390 407
 
391 408
 You may also need to assign the same hostname separately via your router's web interface.
392 409
 
410
+#+BEGIN_SRC: bash
411
+emacs /etc/hosts
412
+#+END_SRC
413
+
414
+Append the following, replacing /mydomainname.com/ with your domain name.
415
+
416
+#+BEGIN_SRC: bash
417
+127.0.1.1       mydomainname.com
418
+#+END_SRC
419
+
420
+If you then run the command:
421
+
422
+#+BEGIN_SRC: bash
423
+hostname -f
424
+#+END_SRC
425
+
426
+it should return your domain name.
427
+
393 428
 ** Install NTP
394 429
 
395 430
 To synchronise time.
@@ -447,21 +482,6 @@ chmod +x /etc/network/if-up.d/iptables
447 482
 rm /tmp/firewall.sh
448 483
 #+END_SRC
449 484
 
450
-** Getting onto the web
451
-Create a subdomain on [[http://freedns.afraid.org][freeDNS]].  You may need to click on "/subdomains/" a couple of times.  FreeDNS is preferred because it is one of the few domain name providers which supports genuinely free (as in beer) accounts.  So if your budget is tiny or non-existent you can still participate as a first class citizen of the internet.  If you do have money to spend there is also a premium option.
452
-
453
-Select "/dynamic DNS/" then click "/quick cron example/"
454
-
455
-An example would look like:
456
-
457
-#+BEGIN_SRC: bash
458
-4,9,14,19,24,29,34,39,44,49,54,59 * * * * root sleep 29 ; wget -O - http://free\ dns.afraid.org/dynamic/update.php?ABCKDNRCLFHENSLKNFEGSBFLFF== >> /\ tmp/freedns_mysubdomain_us_to.log 2>&1 &
459
-#+END_SRC
460
-
461
-Edit /etc/crontab and append that to the end of the file.
462
-
463
-Via your router's firewall settings you should now open port 22 (secure shell).  This will allow you to ssh into your BBB from any location - not just your own local network.
464
-
465 485
 ** Install Email
466 486
 
467 487
 #+BEGIN_VERSE
@@ -3288,7 +3308,7 @@ Enter an email address for the list administrator and a password.
3288 3308
 emacs /etc/mailman/mm_cfg.py
3289 3309
 #+END_SRC
3290 3310
 
3291
-Set *MTA=None*, then save and exit.
3311
+Set *MTA=None* and change *http:* to *https:*, then save and exit.
3292 3312
 
3293 3313
 Add some settings.
3294 3314