Difference between revisions of "UZBL-Browser"

From ArchWiki
Jump to: navigation, search
(wikify some external links, use https for archlinux.org)
(Add a warning about insecure WebKit.)
 
(22 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Web Browser]]
+
[[Category:Web browser]]
{{Article summary start}}
+
[[ja:UZBL-Browser]]
{{Article summary text|A lightweight browser based on the UNIX philosophy. This article addresses the steps necessary to run and configure Uzbl.}}
+
{{Warning|UZBL-Browser is based on a WebKit port that is today considered insecure and outdated. It's recommended to use [[List of applications/Internet#Web browsers|another browser]] instead. More info [https://blogs.gnome.org/mcatanzaro/2016/02/01/on-webkit-security-updates/ here].}}
{{Article summary heading|Resources}}
+
{{Article summary link|Uzbl Homepage|http://www.uzbl.org/}}
+
{{Article summary end}}
+
  
 
[http://www.uzbl.org/ Uzbl] is a lightweight browser based on '''uzbl-core'''. '''Uzbl''' adheres to the UNIX philosophy of "Write programs that do one thing and do it well". The uzbl-browser package includes uzbl-core, uzbl-browser and uzbl-event-manager. Most users will want to use '''uzbl-browser''' or '''uzbl-tabbed''' as they provide the fullest set of tools for browsing. Uzbl-browser allows for a single page per window (with as many windows as you want), while uzbl-tabbed provides a wrapper for uzbl-browser and implements basic tabs with multiple pages per window.
 
[http://www.uzbl.org/ Uzbl] is a lightweight browser based on '''uzbl-core'''. '''Uzbl''' adheres to the UNIX philosophy of "Write programs that do one thing and do it well". The uzbl-browser package includes uzbl-core, uzbl-browser and uzbl-event-manager. Most users will want to use '''uzbl-browser''' or '''uzbl-tabbed''' as they provide the fullest set of tools for browsing. Uzbl-browser allows for a single page per window (with as many windows as you want), while uzbl-tabbed provides a wrapper for uzbl-browser and implements basic tabs with multiple pages per window.
Line 10: Line 7:
 
==Installation==
 
==Installation==
  
[[pacman|Install]] {{Pkg|uzbl-browser}} or {{Pkg|uzbl-tabbed}} available in the [[Official Repositories]].
+
[[Install]] the {{Pkg|uzbl-browser}} or {{Pkg|uzbl-tabbed}} package.
  
==Plugins==
+
=== Plugins ===
  
 
Uzbl can make use of outside [[browser plugins]] like Flash and Java. Installing these packages will enable their use in uzbl-browser and uzbl-tabbed.
 
Uzbl can make use of outside [[browser plugins]] like Flash and Java. Installing these packages will enable their use in uzbl-browser and uzbl-tabbed.
  
 
==Commands==
 
==Commands==
 +
 +
{{Style|A wiki table would be well-suited}}
  
 
One of the biggest advantages of using Uzbl is that nearly everything can be controlled by the keyboard. This is preferable to the traditional mouse/keyboard combo because less moving around of the hands is needed. [[Vim]] users will find Uzbl much easier to pick-up, especially as the default bindings loosely resemble Vim keystrokes. For instance, following a link requires the user to type {{Ic|fl}}, and then the keystrokes in the box that appears next to each link on the page. Shortening the command to just {{Ic|f}} in the config file allows for even faster navigation.
 
One of the biggest advantages of using Uzbl is that nearly everything can be controlled by the keyboard. This is preferable to the traditional mouse/keyboard combo because less moving around of the hands is needed. [[Vim]] users will find Uzbl much easier to pick-up, especially as the default bindings loosely resemble Vim keystrokes. For instance, following a link requires the user to type {{Ic|fl}}, and then the keystrokes in the box that appears next to each link on the page. Shortening the command to just {{Ic|f}} in the config file allows for even faster navigation.
Line 83: Line 82:
 
====Tabs (when using uzbl-tabbed)====
 
====Tabs (when using uzbl-tabbed)====
  
  go       = load uri in new tab
+
  go       = load uri in new tab
 
  gt        = go to next tab
 
  gt        = go to next tab
 
  gT        = go to previous tab
 
  gT        = go to previous tab
 
  gn        = open new tab
 
  gn        = open new tab
  gi+n     = goto 'n' tab
+
  gi+n     = goto 'n' tab
 +
gC        = close current tab
  
 
====Other====
 
====Other====
Line 98: Line 98:
 
  ctrl+[    = back to normal mode
 
  ctrl+[    = back to normal mode
  
==Tips and tricks==
+
== Tips and tricks ==
 +
 
 +
=== Caching ===
 +
 
 +
Due to its lightweight nature, uzbl does NOT contain caching functionality. You can install [[Polipo]] to speed up page loading.
 +
 
 +
== Troubleshooting ==
 +
 
 +
=== Parcellite ===
  
* Create an alias in {{ic|~/.bashrc}} to start uzbl-tabbed as just uzbl:
+
Parcellite can cause problems at the time of selecting text under uzbl - just disable it.
  
alias uzbl='uzbl-tabbed'
+
=== TLS certificates ===
  
* If you wish to open uzbl with a program launcher using the trick above:
+
Per [https://bbs.archlinux.org/viewtopic.php?id=185014 this post] set the following in {{ic|~/.config/uzbl/config}}:
  cd /usr/bin
+
  sudo ln -s uzbl-tabbed uzbl
+
This creates a [[wikipedia:Symbolic_link|symbolic link]], called uzbl, which points to uzbl-tabbed.
+
  
==Troubleshooting==
+
set ssl_ca_file /etc/ssl/cert.pem
Parcellite can cause problems at the time of selecting text under uzbl. just disable it.
+
set ssl_policy fail
  
 
==See also==
 
==See also==
  
 
* [http://www.uzbl.org/wiki/ Uzbl wiki with user config files and scripts]
 
* [http://www.uzbl.org/wiki/ Uzbl wiki with user config files and scripts]
* https://bbs.archlinux.org/viewtopic.php?id=70700&p=1
+
* [https://bbs.archlinux.org/viewtopic.php?id=70700 Forum thread]
 
* [https://github.com/Dieterbe/uzbl/raw/master/examples/config/config Configuration file]
 
* [https://github.com/Dieterbe/uzbl/raw/master/examples/config/config Configuration file]

Latest revision as of 01:43, 16 October 2016

Warning: UZBL-Browser is based on a WebKit port that is today considered insecure and outdated. It's recommended to use another browser instead. More info here.

Uzbl is a lightweight browser based on uzbl-core. Uzbl adheres to the UNIX philosophy of "Write programs that do one thing and do it well". The uzbl-browser package includes uzbl-core, uzbl-browser and uzbl-event-manager. Most users will want to use uzbl-browser or uzbl-tabbed as they provide the fullest set of tools for browsing. Uzbl-browser allows for a single page per window (with as many windows as you want), while uzbl-tabbed provides a wrapper for uzbl-browser and implements basic tabs with multiple pages per window.

Installation

Install the uzbl-browser or uzbl-tabbed package.

Plugins

Uzbl can make use of outside browser plugins like Flash and Java. Installing these packages will enable their use in uzbl-browser and uzbl-tabbed.

Commands

Tango-edit-clear.pngThis article or section needs language, wiki syntax or style improvements.Tango-edit-clear.png

Reason: A wiki table would be well-suited (Discuss in Talk:UZBL-Browser#)

One of the biggest advantages of using Uzbl is that nearly everything can be controlled by the keyboard. This is preferable to the traditional mouse/keyboard combo because less moving around of the hands is needed. Vim users will find Uzbl much easier to pick-up, especially as the default bindings loosely resemble Vim keystrokes. For instance, following a link requires the user to type fl, and then the keystrokes in the box that appears next to each link on the page. Shortening the command to just f in the config file allows for even faster navigation.

Below are basic, default commands that can be used with uzbl-browser and uzbl-tabbed. These commands can all be found in $XDG_CONFIG_HOME/uzbl/config (which is usually located in ~/.config/uzbl/config). The default settings work well, but many users like to edit them to suit their preferences and in fact, it is encouraged to change this file to suit your needs. More help with editing the config file can be found on the Uzbl readme.

Navigation

o         = enter url
O         = edit url
b         = back
m         = forward
S         = stop
r         = reload
R         = reload ignoring cache
fl        = spawn numbers next to each hyperlink. Type the number after typing fl to follow the link.
gh        = go home

Page Movement

j         = scroll up
k         = scroll down
h         = scroll left
l         = scroll right
PgUp      = scroll page up
ctrl+b    = scroll page up
PgDn      = scroll page down
ctrl+f    = scroll page down
Home      = vertical beginning of the page
<<        = vertical beginning of the page
End       = vertical end of the page
>>        = vertical end of the page
Space     = vertical end of the page
^         = horizontal beginning of the page
$         = horizontal end of the page
/         = find in page
?         = find backwards in page
n         = repeat find forward
N         = repeat find backwards

Zooming

+         = zoom_in
-         = zoom_out
T         = toggle_zoom_type
1         = set zoom_level = 1
2         = set zoom_level = 2

Searching

ddg       = search term in DuckDuckGo
gg        = search term in Google
\wiki     = search term in Wikipedia

Inserting Text

i         = toggle_insert_mode   (Esc works to go back to command mode much like vim)
fi        = go to the first input field and enter insert mode

Bookmarks and History

M         = insert bookmark (bookmarks are saved in ~/.local/share/uzbl/bookmarks
U         = load url from history via dmenu
u         = load url from bookmarks via dmenu

Tabs (when using uzbl-tabbed)

go       = load uri in new tab
gt        = go to next tab
gT        = go to previous tab
gn        = open new tab
gi+n     = goto 'n' tab
gC         = close current tab

Other

t         = show/hide status bar
w         = open new window
ZZ        = exit
:         = enter command
Esc       = back to normal mode
ctrl+[    = back to normal mode

Tips and tricks

Caching

Due to its lightweight nature, uzbl does NOT contain caching functionality. You can install Polipo to speed up page loading.

Troubleshooting

Parcellite

Parcellite can cause problems at the time of selecting text under uzbl - just disable it.

TLS certificates

Per this post set the following in ~/.config/uzbl/config:

set ssl_ca_file /etc/ssl/cert.pem
set ssl_policy fail

See also