Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,820 Members 49,067 Now Online
XDA Developers Android and Mobile Development Forum

[APP] Compiled lynx binary for android - Shell or ADB

Tip us?
 
Moronig
Old
#1  
Senior Member - OP
Thanks Meter 195
Posts: 375
Join Date: Dec 2010
Location: Curitiba

 
DONATE TO ME
Cool [APP] Compiled lynx binary for android - Shell or ADB

I've searched the web, and found no lynx binaries for android, so I set out to compile it myself.

For the uninitiated, lynx is a text-based browser. No images, no javascript, no flash. Just pure content.
You can use it by connecting to your phone through adb, telnet, ssh or a shell on the phone itself.



This is lynx version 2.8.8 with ncurses 5.9

I pretty much just followed the instructions at http://www.embedu.org/Column/Column294.htm, and added a flag to make the linking static. No code changes were required.

Installation instructions

Root is not required.

You need to unzip the file on the /sdcard folder. The following files must exist:

/sdcard/lynx/lynx.cfg
/sdcard/lynx/lynx.lss
/sdcard/lynx/cache/

Then you need to move the binary to /data/local (or /system/xbin if you want something more permanent. Then you'd need root)
and run this command:
chmod 755 /data/local/lynx

Then run :

/data/local/lynx

and enjoy!

Additional information

If you want to put these files somewhere else, you must redefine the following variables, respectively:

LYNX_CFG (eg: export LYNX_CFG=/system/etc/lynx.cfg)
LYNX_LSS (eg: export LYNX_LSS =/system/etc/lynx.lss)
TMPDIR (eg: export TMPDIR =/cache)


If you receive an error message about the terminal, you need to configure a terminal.
Here are some instruction (for nano, but it works the same)

Sources are at the following addresses:
http://lynx.browser.org/
http://www.gnu.org/s/ncurses/
Attached Files
File Type: zip lynx.zip - [Click for QR Code] (1.01 MB, 1159 views)
Find my apps: AutoProxy
The Following 6 Users Say Thank You to Moronig For This Useful Post: [ Click to Expand ]
 
mohammadN
Old
#2  
mohammadN's Avatar
Member
Thanks Meter 252
Posts: 52
Join Date: Aug 2010
Location: mashhad
reserved
soon get the flash-able package
My Phone is : HTC Wildfire
Recovery : ClockWorkMod 4
ROM : CyanogenMod 141 nightly
 
norti
Old
#3  
norti's Avatar
Senior Member
Thanks Meter 133
Posts: 598
Join Date: Feb 2008
Location: Budapest
Thanks! I installed this on my ZTE Blade with 2.3.4 Gingerbread, but after setting everything in Terminal Emulator, I get these errors:

Quote:
Alert!: Unable to connect to remote host.

Looking up lynx.isc.org
Unable to locate remote host lynx.isc.org.
lynx: Can't access startfile http://lynx.isc.org
As if there were no internet connection...
Xperia Z2 | 17.1.1.A.0.402 Telekom HU root
[FTF] STOCK FIRMWARES for Xperia Z2/Z2a (D65x3/D6502/SO-03F)

 
Phone history:
Siemens C25 (grey) -> Ericsson A1018s (blue) -> Ericsson R320 (blue) -> Ericsson T28s (grey) ->
Sony Ericsson T100 (white/blue) -> Sony Ericsson T630 (white) -> Sony Ericsson M600 (white) ->
Sony Ericsson Xperia X1 (silver) -> ZTE Blade (grey) -> Sony Xperia T (black)
-> Sony Xperia Z2 (black)
 
HalosGhost
Old
(Last edited by HalosGhost; 5th August 2011 at 05:56 PM.) Reason: Bug Report
#4  
Junior Member
Thanks Meter 1
Posts: 12
Join Date: Aug 2009
Location: Saint Paul, MN / Lawrence, KS

 
DONATE TO ME
Default Awesome

Will be testing on my thunderbolt later today. I'll let you guys know how it goes.

However, would you mind reposting this on RW, or would you mind if I were to repost it and link back?

[EDIT] In having just configured everything, I also get the error from the post above. It seems as though lynx thinks it doesn't have internet access. This is the case on 3g and wireless networks. Let me know if you want me to test anything for you.[/EDIT]

All the best,

-HG

If you feel that I've been extremely helpful, feel free to send me a G33K B33R.
Or sign up with my Dropbox Referral link for 250 extra MBs of space here.
 
sebsch1991
Old
#5  
sebsch1991's Avatar
Senior Member
Thanks Meter 88
Posts: 137
Join Date: Nov 2010
Location: Rhineland-Palatinate

 
DONATE TO ME
Looks great.
May I add that to my script ?

http://forum.xda-developers.com/show....php?t=1191984


[SCRIPT] Media-Cleaner -- LINK
--
[MOD] MIUI 36 DPI 24 DPI NavigationBar {SOFTKEYS} -- LINK
 
dangpzanco
Old
#6  
dangpzanco's Avatar
Senior Member
Thanks Meter 83
Posts: 709
Join Date: Dec 2010
Well, I was able to install it from a chrooted ubuntu 10.10 distro on my device. It's already compiled for ARM on ports.ubuntu.com, so maybe it's not so exclusive.

Sent from my Milestone 2 XDA App
 
Moronig
Old
#7  
Senior Member - OP
Thanks Meter 195
Posts: 375
Join Date: Dec 2010
Location: Curitiba

 
DONATE TO ME
Default Sure

Quote:
Originally Posted by sebsch1991 View Post
Looks great.
May I add that to my script ?

http://forum.xda-developers.com/show....php?t=1191984
Sure, go ahead. It's open-sourced after all, I just built it.
Find my apps: AutoProxy
 
Moronig
Old
#8  
Senior Member - OP
Thanks Meter 195
Posts: 375
Join Date: Dec 2010
Location: Curitiba

 
DONATE TO ME
Quote:
Originally Posted by dangpzanco View Post
Well, I was able to install it from a chrooted ubuntu 10.10 distro on my device. It's already compiled for ARM on ports.ubuntu.com, so maybe it's not so exclusive.

Sent from my Milestone 2 XDA App
Nice. Can you point me to the correct file? I got as far as http://ports.ubuntu.com/pool/universe/l/lynx-cur/, but I don't know which one contains the binary.
Find my apps: AutoProxy
 
Gusar321
Old
#9  
Senior Member
Thanks Meter 72
Posts: 404
Join Date: May 2011
While this is quite cool, why lynx? Why not elinks? It has much better layout capabilities. It has tabs! It even has javascript.
 
dangpzanco
Old
(Last edited by dangpzanco; 9th August 2011 at 04:48 PM.)
#10  
dangpzanco's Avatar
Senior Member
Thanks Meter 83
Posts: 709
Join Date: Dec 2010
Code:
root@localhost:/# apt-get install lynx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  lynx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/215kB of archives.
After this operation, 254kB of additional disk space will be used.
Selecting previously deselected package lynx.
(Reading database ... 66275 files and directories currently installed.)
Unpacking lynx (from .../lynx_2.8.8dev.2-1_all.deb) ...
I installed it that way.
Search for opkg (i think this is the name) if you are curious. It's a way of using deb packaging on Android (G1), but not in development anymore...

Sent from my Milestone 2 XDA App

The Following User Says Thank You to dangpzanco For This Useful Post: [ Click to Expand ]
Tags
shell lynx browser
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


BrightNotes Makes Cloud Notes Simple and Easy

There are literally thousands of note taking apps available on Android, with practically every … more

Google Glass XE20.1 Update Brings Improved Contacts, Head Nudge, New Cards and Commands

Ever since Google unveiled Android Wear earlier this … more

Remote Control Your Android Device with Monitordroid

The Android OS showsgreat potential in many areas. One of most interesting things that … more

Intel Partners with Unity to Support Android on Intel-Based Devices

Intel, largely known for their long-standing reputation as the king of … more