Android Lollipop Lands for the Sony Xperia Z Ultra

The undisputed king of the beasts–at least in Sony’s current stable,is the … more

Android 5.0 Lollipop in 3D–EVO 3D, That Is!

It is that time of the year once again. Flowers bloom (or snow falls, depending on which … more

Gaming Console with Lollipop? Ouya Gets an Android TV Port

Android is a very flexible platform, and it can be used on a large variety of … more

Android App Review: Manage Your Connections Automagically – XDA TV

Material Design is all the buzz in the Android world right now. … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP Moronig

27th July 2011, 09:46 PM   |  #1  
OP Senior Member
Flag Curitiba
Thanks Meter: 197
 
381 posts
Join Date:Joined: Dec 2010
Donate to Me
More
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, 1273 views)
The Following 7 Users Say Thank You to Moronig For This Useful Post: [ View ]
28th July 2011, 04:26 AM   |  #2  
mohammadN's Avatar
Member
Flag mashhad
Thanks Meter: 255
 
52 posts
Join Date:Joined: Aug 2010
More
reserved
soon get the flash-able package
29th July 2011, 05:48 PM   |  #3  
norti's Avatar
Senior Member
Flag Budapest
Thanks Meter: 267
 
695 posts
Join Date:Joined: Feb 2008
More
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...
5th August 2011, 06:12 PM   |  #4  
Junior Member
Flag Saint Paul, MN / Lawrence, KS
Thanks Meter: 1
 
12 posts
Join Date:Joined: Aug 2009
Donate to Me
More
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
Last edited by HalosGhost; 5th August 2011 at 06:56 PM. Reason: Bug Report
6th August 2011, 11:49 PM   |  #5  
sebsch1991's Avatar
Senior Member
Flag Rhineland-Palatinate
Thanks Meter: 101
 
150 posts
Join Date:Joined: Nov 2010
Donate to Me
More
Looks great.
May I add that to my script ?

http://forum.xda-developers.com/show....php?t=1191984
9th August 2011, 04:37 AM   |  #6  
dangpzanco's Avatar
Senior Member
Thanks Meter: 83
 
709 posts
Join Date:Joined: Dec 2010
More
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
9th August 2011, 01:59 PM   |  #7  
OP Senior Member
Flag Curitiba
Thanks Meter: 197
 
381 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Sure
Quote:
Originally Posted by sebsch1991

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.
9th August 2011, 02:02 PM   |  #8  
OP Senior Member
Flag Curitiba
Thanks Meter: 197
 
381 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Quote:
Originally Posted by dangpzanco

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.
9th August 2011, 02:11 PM   |  #9  
Senior Member
Thanks Meter: 72
 
404 posts
Join Date:Joined: May 2011
More
While this is quite cool, why lynx? Why not elinks? It has much better layout capabilities. It has tabs! It even has javascript.
9th August 2011, 05:43 PM   |  #10  
dangpzanco's Avatar
Senior Member
Thanks Meter: 83
 
709 posts
Join Date:Joined: Dec 2010
More
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
Last edited by dangpzanco; 9th August 2011 at 05:48 PM.

The Following User Says Thank You to dangpzanco For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
shell lynx browser
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes