OpenWrt Forum Archive

Topic: Manually install LuCI without web access

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have a TP-Link 703n and following the wiki have successfully installed openwrt. The box is alive and I can talk to it via SSH (actually using WinSCP). What I want to do is install LuCI so I have a GUI to work with. The problem is I can't get net access to the 703 so the opkg update command returns "bad address 'downloads.openwrt.org'
Is there anyway I can download LuCI, put it in the right directory (/tmp?) with WinSCP and then run a command line to install it?
I have searched everywhere for help on how to do this but it eludes me.
Any help appreciated.

My WR703N arrived yesterday, but this morning is the first chance I've had to play with it.

Getting the router's packages updated/installed is very straightforward. My home LAN doesn't use 192.168.1.0/24 so I had to change the router's IP details as well as setting up DNS. Here's how I did it.
* Plugged the WR703N into my existing LAN switch and turned it on.
* Set my computer's IP address to 192.168.1.2/255.255.255.0 (no gateway)
* Connected to the WR703N via Telnet and set a password, which disabled Telnet and enabled SSH
* Reconnected via SSH and changed the IP address of the router to one suitable for my home LAN (uci set network.lan.ipaddr=X.X.X.X / uci set network.lan.netmask=X.X.X.X / uci set network.lan.gateway=X.X.X.X / uci set network.lan.dns=X.X.X.X - change X.X.X.X each time to suitable values)
* Rebooted the WR703N
* Changed my computer's IP address back to its normal one
* Reconnected to the WR703N via SSH on its new IP address
* Issued the command "opkg update" followed by "opkg install luci"
* Issued the command "/etc/init.d/uhttpd start"
* Pointed my web browser at the IP address of the WR703N

Before carrying out the above steps I read http://wiki.openwrt.org/doc/howto/internet.connection to get an idea of what commands to use, and where I'd need to change certain details to fit my home LAN.

Very useful - many thanks!

This is very helpful. I have the same interest as Alan. I'm dealing in aps that generally don't get connected or configured to the net. It would be nice to just be able to manually flash Luci

Just thought this would be the best place to post (and ask)

There are some dependency issues while doing the "minimalistic installation" of luci as mentioned in http://wiki.openwrt.org/doc/howto/luci.essentials (tested with Trunk):

Error:
Installing luci-lib-core (trunk+svn9576-1) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-lib-core:
*      lua *   libuci-lua *    libubus-lua *
* opkg_install_cmd: Cannot install package luci-lib-core.
...

The additional required packages are: lua, libuci-lua, libubus-lua; which in turn need: liblua.

So, we can rewrite the installation script as:

for pkg in liblua lua libuci-lua libubus-lua uhttpd luci-lib-ipkg luci-i18n-english luci-sgi-cgi luci-lib-core luci-lib-nixio luci-lib-sys luci-lib-web luci-proto-core luci-theme-base luci-theme-openwrt luci-mod-admin-core luci-mod-admin-full; do opkg install /tmp/luci-offline-packages/$pkg*.ipk; done

OT: Additionally, for basic wireless config to work: libiw, libiwinfo, libiwinfo-lua

Does anybody know where to post this change request to the wiki? I searched, but could not find. Thanks.

(Last edited by ragsgen on 6 Jan 2013, 19:31)

ragsgen wrote:

Does anybody know where to post this change request to the wiki? I searched, but could not find. Thanks.

Just register to the wiki and edit it by yourself.
http://wiki.openwrt.org/doc/howto/luci. … o=register

(Last edited by hnyman on 6 Jan 2013, 09:41)

hnyman wrote:

Just register to the wiki and edit it by yourself.

Thanks. Done.

The discussion might have continued from here.