瀏覽代碼

Alter getting onto the web position to be more logical

Bob Mottram 11 年之前
父節點
當前提交
d69d475184
共有 1 個檔案被更改,包括 39 行新增19 行删除
  1. 39
    19
      beaglebone.txt

+ 39
- 19
beaglebone.txt 查看文件

374
 debug2: bits set: */4096
374
 debug2: bits set: */4096
375
 #+END_SRC
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
 ** Set the host name
394
 ** Set the host name
378
 
395
 
379
 #+BEGIN_SRC: bash
396
 #+BEGIN_SRC: bash
380
 emacs /etc/hostname
397
 emacs /etc/hostname
381
 #+END_SRC
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
 #+BEGIN_SRC: bash
404
 #+BEGIN_SRC: bash
388
-hostname /myhostname/
405
+hostname mydomainname.com
389
 #+END_SRC
406
 #+END_SRC
390
 
407
 
391
 You may also need to assign the same hostname separately via your router's web interface.
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
 ** Install NTP
428
 ** Install NTP
394
 
429
 
395
 To synchronise time.
430
 To synchronise time.
447
 rm /tmp/firewall.sh
482
 rm /tmp/firewall.sh
448
 #+END_SRC
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
 ** Install Email
485
 ** Install Email
466
 
486
 
467
 #+BEGIN_VERSE
487
 #+BEGIN_VERSE
3288
 emacs /etc/mailman/mm_cfg.py
3308
 emacs /etc/mailman/mm_cfg.py
3289
 #+END_SRC
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
 Add some settings.
3313
 Add some settings.
3294
 
3314