W3m is really a fun and useful thing.
Author: qnbrid from:
Http://www.linuxdiyf.com
In ubuntu, this plug-in is installed by default. However, if you want to install it on the test machine, it will be a little expensive, but it is not troublesome. The installation steps are listed below:
1. wget
Http://www.sic.med.tohoku.ac.jp/
... RC/w3m-0.5.2.tar.gz
2. decompress the package. In configure, the GC. H is missing. Baidu says that the GC library is missing and it seems that it can only be installed on its own.
3. wget
Http://www.hpl.hp.com/personal/H
... Ource/gc-7.0.tar.gz
4. It's strange. It's a download page of HP. It's not clear about the actual usage of this GC library yet (It Doesn't mean GC in Java ), it is suggested that it may be related to the character output/drawing. Otherwise, it may be unrelated to HP. It is not difficult to install configure, make, and make install.
5, again to the w3m-0.5.2 directory configure, here you need to add four parameters:./configure -- prefix = XXXX -- With-GC = XXXX -- disable-Mouse -- With-charset = GBK. You can install the prefix in the appropriate directory. -- With-GC must be specified to the location where the GC was just installed. -- disable-mouse is to disable the mouse, and must be specified for installation on the test machine, otherwise, the core will be generated because the mouse device under/dev/cannot be found (tested, please do not try again). The last parameter seems useless. The character encoding problem will be discussed below.
6. Make: the GC problem occurs again, but this time it is not GC. h, but a dynamic link library generated after compilation. This problem is very common in Ubuntu. just create a soft link under/lib or/usr/local/lib, but the test machine does not have the permission ...... That is also difficult to avoid, so you can specify the environment variable LD_LIBRARY_PATH to the Lib of the GC directory, and make will pass.
7. Finally, make install is ready. There is no such thing as a moth. The installation is successful! In ~ You can use a soft chain in/bin. The only difference between the soft chain and Ubuntu system is that you need to specify the encoding of the webpage output, add a parameter-o gbk to solve the problem (it is suspected that it is useless to specify Ms during the above installation, and it has not been studied yet ).
Currently, Chinese support is not perfect on the test machine. are some special characters such as tabs displayed in securecrt ?, I don't know whether it is a bash issue or a simulation terminal issue. We still need to consider solving these problems. Otherwise, the case with special characters will become a problem. However, in securecrt, news is a cool and cool, and a bunch of shortcut keys are hitting to browse news. I tried it on the test machine. The WAP template is relatively simple, and there are no such BT things as Ajax and flash. Even the pictures are poor, and the output format is quite beautiful, using this stuff for at should be very promising.
Because RedHat Linux9.0 comes with the w3m-0.3. * (it seems) can not display the UTF-8 code of the Chinese web page, such as we learn the diary, so I use rpm-e w3m command to uninstall the original w3m, download a later version from the Internet for installation.
Install w3m-0.5.1 from http://prdownloads.sourceforge.net/w3m/
Download;
Libgc library is required, from
Http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
Download a 6.2 version;
Install libgc;
Install w3m-0.5.1, the problem is coming, execute./configure is not successful, prompt:
Checking size of long... Configure: Error: cannot compute sizeof (long), 77
See 'config. log' for more details.
For online query, set the environment variable before executing./configure.
Set environment variables:
Export LD_LIBRARY_PATH = "/usr/lib:/usr/local/lib"
After the compilation and installation are complete, run w3m and prompt that libgc. so.1 cannot be found:
W3m: Error while loading shared libraries: libgc. so.1: cannot open shared object file: no such file or directory
In/lib, a symbolic link from libgc. so.1 to/usr/local/lib/libgc. so.1.0.2 is added. solution:
Ln-S/usr/local/lib/libgc. so.1.0.2/lib/libgc. so.1
W3m2008-04-07 00: 52w3m default shortcut list Page Actions
SPC, C-v FLIP down
B, ESC V Page up
L, C-F focus to the right
H, C-B focus to left
J, C-N focus down
K, C-P focus upward
J. Scroll up a row
K scroll down a row
^, C-A to the beginning of the line
$, C-e to the end of the line
W to the next word
W to the previous word
> Move one screen to the right
<Move one screen to the left
. Shift one column to the right of the screen
, Move one column to the left of the screen
G, M-<to the first line
G, M-> to the last line
ESC g to specified row
Center the current row of Z
Center the current Z Column
Tab to next hyperlink
C-u, ESC tab to the previous hyperlink
[To the first hyperlink
] To the last hyperlink
RET opens a hyperlink
A. Save the esc ret link
U view URL
I. view image URLs
I. view images
Save esc I image
: Mark The RUL string as the anchor
ESC: Mark the ID string as the anchor
C. view the URL of the current page
= Display current page properties
C-g to view the current row number
C-H view history
F. submit the form.
M open the current page with an external browser (use 2 m and 3 m to invoke second and third browser)
ESC m open the link with an external browser (use 2esc m and 3esc m to invoke second and third browser) file/stream operations
U open URL
V open a file
@ Execute External commands and import
# Execute External commands and browse cache operations
B Return
V view source code
S select Cache
E. Edit cache code
C-l re-draw Screen
R refresh
Save the S page
Save esc s source code
ESC e editing image cache selection mode (that is, after S)
Cache on K, C-P
J, C-N next Cache
D. Delete the current cache.
RET transfer to selected cache bookmarks
Open bookmarks for ESC B
ESC a adds the current page to the bookmarks for search
/, C-s forward search
?, C-r Backward Search
N next
N previous
C-W enable/disable cyclic search tag
C-SPC settings/unmark (this key is generally occupied by the input method)
Esc p goes to the previous tag
ESC n go to the next tag
"Use regular expressions to mark Miscellaneous
! Execute External commands
H help
O setting options
C-k displays accepted cookies
C-c stops
C-Z suspension (logout)
Q exit (confirmation required)
Q exit without confirming the row editing mode
C-F cursor backward
C-B cursor forward
C-H Delete the previous character
C-d: Delete the current character
C-k deletes all content after the cursor
C-u delete all content before the cursor
C-a cursor to the beginning of the line
C-e cursor to end of line
C-p gets the previous word in the history
C-n gets the last word in the history
Tab, SPC automatically complete the file name
Return OK
Use the w3m terminal to access the Internet. The terminal here refers to the terminal that does not start X!
First, ensure that your kernel supports framebuffer, because it can display images. Install w3m, w3m-img (this can show pictures) sudo apt-Get install w3m w3m-img-y install w3m it. Start method: w3m
Www.baidu.com
. You can see familiar web pages! But what if w3m is not used? It doesn't matter. Next, I will teach you a few tricks to kill! Common Operations are similar to VIM. H, J, K, and l can be used as the moving keys, which are left, bottom, top, and right. If you are familiar with vim operations, this will be a very convenient function. <And> used for left and right scrolling. If you press Q, you will be prompted to exit, so do not press Q! What should I do? Press enter in the text box to be entered, and text is displayed below. You can enter the text you want to search. Press enter to return to the text box. Move the cursor to the "Baidu search" button and press enter to start searching! Use u to re-enter the URL to be opened. B returns to the previous page. Multiple tag operations! You can use the T button to open a new tag. How can I switch between multiple tags? Use {And! If you use ESC-t, the tab menu will be opened for you to choose from. The function is similar to the alt-tab function in the system. C-Q is used to view the current tab. Bookmarkc-A: Add a bookmarkc-B. view the bookmarks./search for the current page backwards? Search for the current page N for the next searched keyword N for the search for the searched keyword help h and above options are displayed here! The write is messy, but it should be okay to use it in general! Of course, no one will think of using w3m to access the Internet! However, if you cannot start X one day, try it! Environment: ubuntups: If your terminal does not display Chinese characters, please. Install zhconsudo apt-Get install zhcon-y. Now, you can go to the terminal! 1. Start zhcon first! Generally, Chinese characters are not supported under the terminal. 2. If your locale is not GBK, it will still be garbled. So run export lc_all = zh_cn.gbk
From: http://blog.csdn.net/fengdream/archive/2008/04/27/2333609.aspx