Created
January 15, 2016 18:20
-
-
Save xet7/5abe0fb1941382efae97 to your computer and use it in GitHub Desktop.
Trying to install newest elinks with Javascript support, did not get Javascript working yet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Newest Elinks install with some Javascript support, | |
# but I did not get Javascript fully working yet. | |
# Latest changes at elinks git repo is currently from | |
# Tue Dec 29 15:11:52 2015 -0500. | |
# Tested with Linux Mint 64bit. | |
# Remove previous version of elinks if installed: | |
# sudo apt-get --purge remove elinks elinks-data | |
# Elinks webpage: http://elinks.or.cz/ | |
# Download page and git info: http://elinks.or.cz/download.html | |
# Git repo bundle download (because download repo directly is slow) | |
# at page: http://repo.or.cz/elinks.git/bundles | |
# If you need support for other libraries also, check possibilities from | |
# install page: http://elinks.or.cz/documentation/installation.html | |
# Following install is made at /home/username directory, downloading | |
# git bundle, extracting to elinks subdirectory, compiling and | |
# installing. | |
wget http://repo.or.cz/elinks.git/elinks-86d02ca1.bundle | |
git init elinks | |
cd elinks | |
git remote add origin ../elinks-86d02ca1.bundle | |
git fetch | |
git remote set-url origin http://repo.or.cz/elinks.git | |
git checkout master | |
# Version 1.8.5-1.0.0 of Spidermonkey if of age Firefox 4.0, you may | |
# need newer version for more complete Javascript support. | |
# Possible continue of this: | |
# http://www.cnx-software.com/2014/02/09/building-elinks-text-based-web-browser-with-some-sort-of-javascript-support/ | |
# http://www.linuxquestions.org/questions/linux-software-2/looking-for-textbrowser-with-javascript-support-or-elink-javascript-support-751828/ | |
# Compile newest spidermonkey: | |
# https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation | |
# https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites | |
# There's javascript engine snapshot also at https://ftp.mozilla.org/pub/js/ | |
# and some compile instructions at http://elinks.or.cz/documentation/manual.html#ecmascript | |
# The following uses old versuib. | |
sudo apt-get install libmozjs185-dev pkg-config | |
./autogen.sh | |
./configure | |
make | |
sudo make install | |
# Then close terminal, and open again, so elinks command works. | |
# Watching youtube with elinks: | |
# https://urukrama.wordpress.com/2010/01/02/watching-youtube-videos-in-elinks/ | |
# Elinks usage tips: | |
# https://kmandla.wordpress.com/2007/05/06/howto-use-elinks-like-a-pro/ | |
# Setup to 16 colors: | |
# 1) Start elinks with command elinks | |
# 2) Press Esc to get to menu, navigate with arrow keys, or use mouse to click | |
# 3) Go to Settings / Terminal settings | |
# 4) Select colors: 16 colors. | |
# 5) Save and OK. | |
# Enable Javascript: | |
# 1) Start elinks with command elinks | |
# 2) Press Esc to get to menu, navigate with arrow keys, or use mouse to click | |
# 3) Go to Settings / Settings management | |
# 3) Expand tree with space key | |
# 4) Go to Ecmascript / Take into use, arrow to right to Edit button | |
# 5) Press enter in Edit button, and change and value to 1, and save | |
# 6) Arrow keys to Save, OK, and Close | |
# => did not work yet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment