Update patch instructions and architecture discovery process.
[web.git] / docs / index.txt
1 ---
2 layout: default
3 title: Getting Started with LEDE
4 ---
5
6 == Getting Started with LEDE
7
8 LEDE is based on link:https://wiki.openwrt.org/doc/start[OpenWrt] — most of the operational aspects of the two projects are identical.
9 This document frequently refers to pages of the OpenWrt wiki.
10
11 Although there are many ways to install LEDE on your device and complete its initial configuration, the following steps are reliable:
12
13 . *Flash the LEDE firmware image into your device.* The exact process is device-specific.
14 Follow the OpenWrt links below to find the required information for your device:
15 .. *Find your device's architecture and processor types.*
16 The "Device Page" of the link:https://wiki.openwrt.org/toh/start[OpenWrt Table of Hardware] will contain this information.
17 If you have an unbranded / low-end / low-cost router that came shipped with OpenWrt / LEDE, you can find out the architecture it is using by connecting to it over ssh and opening `/proc/cpuinfo`. A combination of the `system type` and `machine` is what you are looking for.
18 .. *Download the proper LEDE firmware image to your computer* from link:https://downloads.lede-project.org/snapshots/targets/[downloads.lede-project.org.]
19 The directory structure for LEDE is identical to OpenWrt's downloads.
20 .. *Follow the flashing instructions* on the OpenWrt Device Page.
21 .. On routers: *Connect via Ethernet using DHCP.* After flashing, make sure your computer is connected to a Local Area Network (LAN) port of the router using DHCP.
22 .. On other devices: *Connect the device to your router.* The device will acquire an address using DHCP. Check your router's web-interface to learn which address it got.
23 . *SSH to the device.* +
24 In your terminal program, enter `ssh root@192.168.1.1` (on other devices, replace 192.168.1.1 with the address assigned to the device by your router). You can follow along with the steps below in the link:transcript.html[SSH Transcript].
25 . *Set the password.* +
26 LEDE ships without a password. Enter `passwd` and type the new password twice.
27 _Note: Use a good password: it secures your home network.
28 Write it on the bottom of the device so you don't forget._
29 . *Connect the Wide Area Network (WAN) port (if any) of the device to "the internet".* +
30 A router's WAN port defaults to DHCP, so you can usually connect the WAN port of your new router into a LAN port of your existing router. The new router should then be "on the air."
31 . *Confirm internet connectivity* +
32 Type `ping 8.8.8.8` (that is Google's DNS server.) If the previous step worked, you should see ping response messages.
33 . *Update the packages, then install the LuCI web configuration package.* +
34 We recommend the SSL-based package, but you could use the non-SSL version (named 'luci', not 'luci-ssl').
35 .. Enter `opkg update`
36 .. Enter `opkg install luci-ssl` to get the SSL-based web GUI.
37 . *At this point, the Web GUI is available.* +
38 Go to https://192.168.1.1 to complete configuration.
39
40 == Next Steps
41
42 * Review the link:transcript.html[SSH Transcript] to see all the messages from the configuration commands above.
43 * Enable Wi-Fi in the router (LEDE ships with Wi-Fi turned off). See *Network -> Wireless* in the Web GUI.
44 * Install other packages with `opkg install ...` Useful packages are snmpd, netperf, luci-app-sqm, and any of your favorites.