Difference between revisions of "User:Saul/Open WRT"

From Organic Design wiki
(Using the Package Manager)
(Wifi Drivers)
Line 5: Line 5:
 
opkg update # update the package lists
 
opkg update # update the package lists
 
opkg install PACKAGENAME # install a new package.
 
opkg install PACKAGENAME # install a new package.
 +
</source>
 +
 +
== Wifi Drivers ==
 +
The wifi drivers for my wifi dongle (Ralink) were not pre-installed so running this installed them:
 +
<source lang="bash">
 +
opkg update # update the package lists
 +
opkg install kmod-rt2800-lib kmod-rt2800-usb kmod-rt2x00-lib kmod-rt2x00-usb
 +
reboot
 
</source>
 
</source>
  

Revision as of 05:42, 20 February 2020

Using the Package Manager

Open WRT's default package manager is opkg, the docs for it can be found here.
To install a new package the package lists must be updated,

opkg update # update the package lists
opkg install PACKAGENAME # install a new package.

Wifi Drivers

The wifi drivers for my wifi dongle (Ralink) were not pre-installed so running this installed them:

opkg update # update the package lists
opkg install kmod-rt2800-lib kmod-rt2800-usb kmod-rt2x00-lib kmod-rt2x00-usb
reboot

Setup Network Via SSH

When compiling Open WRT from source it may have no internet connectivity and the interface (LuCI) may not be installed.
Following the instructions from Open WRT's Docs we can connect via SSH:

uci set network.lan.ipaddr='192.168.2.200' # static address for this device
uci set network.lan.gateway='192.168.2.1' # Router ip
uci set network.lan.dns='192.168.2.1' # router dns or provider
uci commit
service network restart

Then LuCI can be installed.

opkg update
opkg install luci