OpenWrt Forum Archive

Topic: How to install package without internet connection

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

Hi,

I found how to install the .trx on a router. But if this router can not access internet and then it's not possible to install package via internet.

As the USB storage is not supported how can I install some packages on it ?

Sincerely thanks and have a nice day.

Miguipda ;=)

you could download the packages from the internet to your PC , install a webserver , place the packages in the local webserver , edit the opkg.conf to point to your local webserver , okpg update and then run as usual

That's what i did and worked fine.

Precompiled firmware includes openvpn?

@MMV

does it means it can simply work if I put the ipkg files in the htdocs folder used by xampp on my computer (by example) ? And simply give the router the path to this virtual wbserver ?

Another thing, my modem use pppoa (ADSL2+) and get automatically an IP, DNS IP but the router is automatically configured to get automatically IP that it well receive. But it doesn't go to internet. What's wrong ?!

As the modem get all the needed IPs and give it well to the router I presume the router doesn't need to be configure as pppoa (just pppoe available in the config). For me as it receive IP it doesn"t need anything else to get working.

Sincerely thanks and have a nice day.

@kapac

it is the standard default brcm .trx file (8.09.2).

Sincerely thanks and have a nice day.

Miguipda ;-)

you can transfer .ipk files via ssh with scp to a local computer

Download the packages to your PC, transfer them to your /tmp on your router (scp),  and then "ipkg install filename" or "opkg install filename".

Kapac wrote:

Precompiled firmware includes openvpn?

opkg list_installed | grep -i vpn

smile

miguipda wrote:

@MMV

does it means it can simply work if I put the ipkg files in the htdocs folder used by xampp on my computer (by example) ? And simply give the router the path to this virtual wbserver ?

Another thing, my modem use pppoa (ADSL2+) and get automatically an IP, DNS IP but the router is automatically configured to get automatically IP that it well receive. But it doesn't go to internet. What's wrong ?!

As the modem get all the needed IPs and give it well to the router I presume the router doesn't need to be configure as pppoa (just pppoe available in the config). For me as it receive IP it doesn"t need anything else to get working.

Sincerely thanks and have a nice day.

Sorry for the late reply , got kinda busy with trunk compiling

If you have , say , your local comp with a local ip of 192.168.0.2 , your router adsl as 192.168.0.1 , then you just put the ip of the eth0 interface as

ifconfig eth0 192.168.0.10 up

and then

route add default gw 192.168.0.1

vi /etc/resolv.conf and replace the line
nameserver 127.0.0.1
with
nameserver 8.8.8.8

and you are good to go arround the net

If you have your web server up and ready , you could , with this setup , be capable of downloading anything from your local pc with something along the lines of

Opewrt:/tmp# wget http://192.168.0.1/package.ipk

from the /tmp directory and then

Opewrt:/tmp# opkg install package.ipk

easy as pie smile

i have this error i need help please!
ot found
root@OpenWrt:~#  * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-ahcp:
-ash: lu.ipk: not found
root@OpenWrt:~#  *      ahcpd *
-ash: lu.ipk: not found
root@OpenWrt:~#  * opkg_install_cmd: Cannot install package luci-app-ahcp.
-ash: lu.ipk: not found
root@OpenWrt:~# root@OpenWrt:~# opkg install luci.ipk
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# Installing luci (trunk+svn8219-1) to root...
-ash: syntax error: unexpected "("
root@OpenWrt:~# Collected errors:
-ash: Collected: not found
root@OpenWrt:~#  * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
-ash: lu.ipk: not found
root@OpenWrt:~#  *      uhttpd *        luci-mod-admin-full *   luci-theme-openwrt *    luci-app-firewall *     luci-proto-co
re *       luci-proto-ppp *     libiwinfo-lua *
-ash: lu.ipk: not found
root@OpenWrt:~#  * opkg_install_cmd: Cannot install package luci.
-ash: lu.ipk: not found

hallo , i have succeffuly installed LUCI using APACHE SERVER and TERA TERM , WIN SCP... i have downloaded packages to my computer and changed the value downloads.open.... to http://localhost.....
i want just to ask if it's possible to return to the original firmware ( i have the firmware.bin) and how ?
thanks

(Last edited by berih on 19 Feb 2012, 04:59)

Hello!

I have been trying to install luci without having internet connection. Already managed to install XAMPP, downloaded the packages to the localhost folder and changed the opkg.conf file to point to the local host. But I'm stuck with a wget error. When I write the opkg update command I get:

Downloading http://localhost/Packages.gz.
wget: can't connect to remote host (127.0.0.1): Connection refused
Collected errors:
* opkg_download: Failed to download http://localhost/Packages.gz, wget returned 1.


I read that wget is used to download the files, also read that the default wget in the openwrt doens't support ssl. This was the far that I went.

It seems you are over complicating things. Simply use a local FTP server and point to your IP (not localhost) in opkg.conf then run opkg update...simple as that. I use BabyFTP, its a standalone executable with anonomous access, just click and run and share the downloaded trunk directory.
http://www.pablosoftwaresolutions.com/h … erver.html

thanx for the answer, but still no luck with baby ftp

wget can't connect.

I'm new in this, so the solution can be simple.

stroj wrote:

thanx for the answer, but still no luck with baby ftp

wget can't connect.

I'm new in this, so the solution can be simple.

very simple how you can do ...


for example you have Windows Based PC    192.168.0.25  (make it manual)
Wifi-router  192.168.0.1

you can setup on windows computer http proxy server
http://www.privoxy.org/   

http://www.privoxy.org/user-manual/config.html   

modify for in privoxy config
listen-address  192.168.0.25:3128

As result you got web proxy ..

on your wifi router make this way:

#  export http_proxy="http://192.168.0.25:3128"
# opkg update
# opkg  install what_you_need

thanx, obrigado

luci is running!!!

didn't understand very well what I did. I suppose that privoxy works like the communication interface.

have to check out privoxy when I have the time, it seems to be a good tool against advertising.

I have tplink 741nd upgraded with OpenWrt but without internet connection.I have downloaded LUCI packages.gz and I have it available on local FTPBaby server on 127.0.0.1.I don't know how to download luci from my local server to tp-link 741nd.As I told , I have no internet connection on my desktop.Only wireless on my notebook

The discussion might have continued from here.