0673.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install OpenWRT on Raspberry Pi</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="OpenWRT,Raspberry Pi,Raspberry Pi Router,Single Board Computer,Linux,RPi,Pi,SBC,Router,Networking,OpenWRT Tutorial,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install OpenWRT on Raspberry Pi">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Install OpenWRT on Raspberry Pi</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <h2>Things You Will Need</h2>
  25. <ul>
  26. <li>A microSD card at least 256 MB</li>
  27. </ul>
  28. <h2>Downloads and Flashing to MicroSD</h2>
  29. <ol>
  30. <li>Download OpenWRT for Raspberry Pi <a href="https://firmware-selector.openwrt.org/?version=SNAPSHOT" target="_blank">Download</a>
  31. <ol start="1" style="list-style-type: lower-alpha;">
  32. <li>Search for the Raspberry Pi device</li>
  33. <li>Select the Factory (ext4) download</li>
  34. </ol>
  35. </li>
  36. <li>Download Balena Etcher <a href="https://www.balena.io/etcher/" target="_blank">Download</a></li>
  37. <li>Run Balena Etcher</li>
  38. <li>Burn the OpenWRT image to the microSD card</li>
  39. <li>Safely remove the microSD</li>
  40. </ol>
  41. <h2>Booting OpenWRT</h2>
  42. <ol>
  43. <li>Insert the microSD card into the Raspberry Pi and power it on</li>
  44. <li>OpenWRT should begin booting</li>
  45. <li>After the terminal has stopped scrolling press Enter to be logged in as root</li>
  46. <li>Enter the following commands at the terminal prompt
  47. <div class="codeBlock CMD"># set a root password<br />
  48. passwd<br />
  49. # enter and confirm a password<br />
  50. # set the ip address<br />
  51. uci set network.lan.ipaddr=&#39;192.168.0.137&#39;<br />
  52. # set the gateway<br />
  53. uci set network.lan.gateway=&#39;192.168.0.27&#39;<br />
  54. # set dns server, usually the gateway or pi-hole<br />
  55. uci set network.lan.dns=&#39;192.168.0.2&#39;<br />
  56. # restart network service for changes to take effect<br />
  57. service network restart<br />
  58. # update openwrt packages<br />
  59. opkg update<br />
  60. # install the luci web ui<br />
  61. opkg install luci</div>
  62. </li>
  63. <li>Open a web browser and navigate to http://IP, http://192.168.0.137 in the example</li>
  64. <li>At the login screen, enter the username root and the password set above &gt; Click the Login button</li>
  65. <li>Welcome to OpenWRT running on Raspberry Pi</li>
  66. </ol>
  67. </div>
  68. </div>
  69. </body>
  70. </html>