-
Notifications
You must be signed in to change notification settings - Fork 3
Use apt get without WLAN
f69m edited this page Feb 26, 2013
·
1 revision
The basic idea is to use a HTTP proxy forwarded via adb.
Of course you can use any other HTTP proxy, just showing apache as an example. This must all be done on your PC of course.
Create /etc/apache2/conf.d/proxy with the following contents:
ProxyRequests On
ProxyVia On
<Proxy *>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Proxy>
Then run the following commands:
a2enmod proxy proxy_http
service apache2 restart
First you need to get SSH access, please see Use SSH Login without WLAN.
Then it is quite simple, starting on your PC:
adb forward tcp:2022 tcp:22
slogin -p2022 -R8080:localhost:80 phablet@localhost
On your device you need to become root for the environment variable to work.
sudo su -
export http_proxy="http://localhost:8080"
apt-get update
Again, "sudo apt-get update" does not work; you have to become root before using "export".