playground:misc:asciidoc_snippet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
playground:misc:asciidoc_snippet [2022/04/28 15:47] – [asciidoc table] hc9 | playground:misc:asciidoc_snippet [2022/06/14 06:02] (current) – removed hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== asciidoc snippet ====== | ||
- | |||
- | |DRAFT: Creating a tutorial with the asciidoc markup format.| | ||
- | |||
- | ===== Pico Cheat Sheet ===== | ||
- | |||
- | An asciidoc version of the [[: | ||
- | |||
- | <file config An asciidoc version of pico.> | ||
- | |||
- | == Pico Cheat Sheet | ||
- | |||
- | **pico** is a simple, display-oriented text editor originally developed for the https:// | ||
- | **pico** is the default editor for SDF's https:// | ||
- | |||
- | === Survival Guide | ||
- | |||
- | image:: | ||
- | |||
- | === Control Keys | ||
- | |||
- | _(The key sequence_ ++Esc Esc x++ _can be used instead of the combination_ ++Ctrl-x++__).__ | ||
- | |||
- | |=== | ||
- | |Ctrl-A |beginning of line | Ctrl-N | next line | ||
- | |Ctrl-B |backward character |Ctrl-O |output file | ||
- | |Ctrl-C |cursor position |Ctrl-P |previous line | ||
- | |Ctrl-D |delete character |Ctrl-R |read insert file | ||
- | |Ctrl-E |end of line |Ctrl-T |spell check | ||
- | |Ctrl-F |forward character |Ctrl-U |paste | ||
- | |Ctrl-G |get help |Ctrl-V |forward page | ||
- | |Ctrl-I |insert tab |Ctrl-W |search | ||
- | |Ctrl-J |justify paragraph |Ctrl-X |save exit | ||
- | |Ctrl-K |cut region |Ctrl-Y |backward page | ||
- | |Ctrl-L |refresh display |Ctrl-$$^$$ |set mark | ||
- | |=== | ||
- | |||
- | === Function Keys | ||
- | |||
- | |=== | ||
- | |F1 |get help |F5 |read insert file |F9 |cut region | ||
- | |F2 |save exit |F6 |search |F10 |paste | ||
- | |F3 |output file |F7 |backward page |F11 |cursor position | ||
- | |F4 |justify paragraph |F8 |forward page |F12 |spell check | ||
- | |=== | ||
- | |||
- | ''' | ||
- | $$Source:$$ http:// | ||
- | |||
- | </ | ||
- | |||
- | ===== HT802 ===== | ||
- | |||
- | An asciidoc version of the [[http:// | ||
- | |||
- | <file config An asciidoc version of HT802.> | ||
- | |||
- | == Vonage/ | ||
- | |||
- | # | ||
- | |||
- | #WARNING 2: This page is provided for information only. Under no circumstances should these instructions be used for any illegal purpose or in violation of any contract or user agreement.# | ||
- | |||
- | Vonage branded models of the Grandstream HT802 come loaded with a factory-locked firmware which does not allow for user configuration. These models will not permit admin login with the standard Grandstream default login of admin/ | ||
- | |||
- | * A philips-head screwdriver | ||
- | * A computer with a USB port | ||
- | * A USB-Serial adapter such as a PL2303 or FTDI and male jumper wires | ||
- | * Terminal software cabaple of interacting with a serial console (screen or minicom) | ||
- | * Basic hardware hacking knowledge (think raspberry pi GPIO) | ||
- | * Common sense | ||
- | * An adventurous spirit | ||
- | |||
- | === Step one: Disassembly and mainboard access | ||
- | |||
- | * Puncture or remove the sticker on the bottom of the device that says " | ||
- | * Use a philips-head screwdriver to remove the single screw in the center of the bottom of the case | ||
- | * Carefully unclip and remove the top of the case. The clips are very secure, and may require some gentle force to remove. | ||
- | * The devices mainboard should now be exposed, you will see the components, including the serial headers labelled below: | ||
- | | ||
- | image:: | ||
- | |||
- | Image courtesy of dslreports.com user https:// | ||
- | |||
- | === Step two: Connect to the serial terminal | ||
- | |||
- | * Using male jumper wires, connect the serial headers on the mainboard to the appropriate pins of your USB to serial adapter: Note: Male jumper wires _should_ slip into the through-holes on the mainboard' | ||
- | |||
- | ** RX to TX | ||
- | ** TX to RX | ||
- | ** GND to GND | ||
- | ** DO NOT allow the USB to serial adapter' | ||
- | |||
- | * Connect the USB to serial adapter to your computer' | ||
- | * Use a serial terminal program to access they USB serial port, e.g.: | ||
- | ---- | ||
- | screen / | ||
- | ---- | ||
- | |||
- | * Carefully plug the HT802 into its power source. If you have everything connected properly, you will see boot messages printed to your terminal window. If you do not see this, disconnect everything and start over, carefully. | ||
- | |||
- | === Step three: Apply unlock and flash firmware | ||
- | |||
- | * Wait for the device to finish boothing. Once it is complete, you should see a root command prompt, indicated by the '#' | ||
- | * Type the following commands, in order. If at any point you recieve an error, stop, and carefully check your work. | ||
- | + | ||
- | ---- | ||
- | cd /tmp | ||
- | dd if=/ | ||
- | wget http:// | ||
- | chmod +x ht802unlock | ||
- | ./ | ||
- | flash_erase /dev/mtd1 | ||
- | cat / | ||
- | flash_eraseall /dev/mtd2 | ||
- | ---- | ||
- | |||
- | * Note: the ht802unlock file is a small program that reads the file fact-old.img and creates a fact-new.img with the Vonage settings removed. | ||
- | * At this point you may wish to pause and backup the two files fact-old.img and fact-new.img. Having these will allow you to restore to the factory firmware. You can save these files by doing the following: | ||
- | |||
- | ** First, determin the PID of the web server that the firmware is running, using: | ||
- | + | ||
- | ---- | ||
- | ps w | ||
- | ---- | ||
- | ** Kill the webserver process: | ||
- | + | ||
- | ---- | ||
- | kill $PID | ||
- | ---- | ||
- | ** Start a new webserver in the /tmp directory: | ||
- | + | ||
- | ---- | ||
- | httpd -h /tmp -p 80 | ||
- | ---- | ||
- | ** Using a web browser on your computer, access and download the following files: | ||
- | + | ||
- | ---- | ||
- | http:// | ||
- | http:// | ||
- | ---- | ||
- | * Finally, reboot the device: | ||
- | ---- | ||
- | reboot -f | ||
- | ---- | ||
- | |||
- | When your HT802 reboots, you will be able to access the web interface using the device' | ||
- | |||
- | These instructions have been adapted from https:// | ||
- | |||
- | </ | ||
- | |||
- | ==== AsciiDoc ==== | ||
- | |||
- | asciidoc at the SDF cluster prompt: | ||
- | |||
- | < | ||
- | $ asciidoc --help syntax | less | ||
- | </ | ||
- | |||
- | * Save // | ||
- | |||
- | < | ||
- | $ asciidoc -s pico_cheat_sheet.adoc | ||
- | $ links pico_cheat_sheet.html | ||
- | </ | ||
- | |||
- | * Save // | ||
- | |||
- | < | ||
- | $ asciidoc -s ht820.adoc | ||
- | $ links ht820.html | ||
- | </ | ||
- | |||
- | ==== Converter ==== | ||
- | |||
- | |**Pandoc** a universal document converter; [[https:// | ||
- | |'' | ||
- | |||
- | * Convert the // | ||
- | |||
- | < | ||
- | $ pandoc -f html -t dokuwiki pico_cheat_sheet.html -o pico_cheat_sheet.txt | ||
- | </ | ||
- | |||
- | * Convert the // | ||
- | |||
- | < | ||
- | $ pandoc -f html -t dokuwiki ht802.html -o ht802.txt | ||
- | </ | ||
- | |||
- | ==== Editing ==== | ||
- | |||
- | |[[https:// | ||
- | |||
- | ^Reference: | ||
- | |[[https:// | ||
- | |[[https:// | ||
- | |[[https:// | ||
- | |||
- | ===== asciidoc table ===== | ||
- | |||
- | An asciidoc version of the [[: | ||
- | |||
- | <file config An asciidoc version of acme.> | ||
- | |||
- | == acme | ||
- | |||
- | Start acme to access the mbox. | ||
- | |||
- | ---- | ||
- | % acme | ||
- | ---- | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol** | ||
- | |=== | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol** <= Add _Mail_ by typing '' | ||
- | |=== | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol Mail** <= Mouse button 2 press _Mail_. | ||
- | |=== | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol Mail** | ||
- | |**_/ | ||
- | |=== | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol Mail** | ||
- | |**_/ | ||
- | |1/ <= Email messages arrive here. | ||
- | |=== | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol Mail** | ||
- | |**_/ | ||
- | |2/ <= Email messages arrive here. | ||
- | |1/ | ||
- | |**_/ | ||
- | |To: | ||
- | |Subject: | ||
- | |[blank] | ||
- | |some text here <= Type the email text here. | ||
- | |=== | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol Mail** | ||
- | |**_/ | ||
- | |1/ <= Email messages arrive here. | ||
- | |**_/ | ||
- | |To: | ||
- | |From: <= Type the _From:_ text here. | ||
- | |Subject: | ||
- | |[blank] | ||
- | |some text here <= Type the email text here. | ||
- | |=== | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol Mail** | ||
- | |**_/ | ||
- | |5/ <= Mouse button 3 press #5 (__/5__) to open the message. | ||
- | |4/ | ||
- | |3/ | ||
- | |2/ | ||
- | |1/ | ||
- | |=== | ||
- | |||
- | === acme ' | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol** | ||
- | |=== | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol** <= Add _win_ by typing " | ||
- | |=== | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol win** <= Mouse button 2 press _win_. | ||
- | |=== | ||
- | |||
- | |=== | ||
- | h|Newcol Kill Putall Dump Exit | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol win** | ||
- | |**_/ | ||
- | |cpu: | ||
- | |=== | ||
- | |||
- | == acme images | ||
- | |||
- | A brief mention of acme, for those who are attending the SDF Plan 9 Boot Camp. | ||
- | |||
- | ---- | ||
- | % acme | ||
- | ---- | ||
- | |||
- | image:: | ||
- | |||
- | . Press the middle button of your mouse while the pointer is over the text " | ||
- | . Type the text " | ||
- | . Press the middle button of your mouse while the pointer is over the text " | ||
- | . Type the text " | ||
- | . Press the middle button of your mouse while the pointer is over the text " | ||
- | |||
- | image:: | ||
- | |||
- | . Press the right button of your mouse while the pointer is used to highlight a file name. | ||
- | . Once the highlight covers the filename, release the right mouse button to open the file. | ||
- | |||
- | |=== | ||
- | |http:// | ||
- | |Plan 9 https:// | ||
- | |=== | ||
- | |||
- | __1__.) From a Plan 9 Rio rc prompt. | ||
- | |||
- | </ | ||
- | |||
- | * Save // | ||
- | |||
- | < | ||
- | $ asciidoc -s acme_table.adoc | ||
- | $ links acme_table.html | ||
- | </ | ||