Ubuntu: How to install Midori?



Question:

I tried to install midori using this answer:

Open terminal by pressing Ctrl+Alt+T and run the following commands,

sudo apt-add-repository ppa:midori/ppa  sudo apt-get update  sudo apt-get install midori  

but I got following error:

E: Package 'midori' has no installation candidate  


Solution:1

It is possible to install midori by compiling its source code under Ubuntu 17.10. Be aware though that there has been no development of this browser for some time so various security concerns will not have been addressed.

Just 4 simple steps are required:

1. Download build tools and dev files:

You will need a set of compiling tools and some 'development' files to build midori. Simply copy the following single command into a Terminal window:

sudo apt-get install build-essential cmake valac libvala-0.36-dev \  libwebkitgtk-3.0-dev libsqlite3-dev libsoup-gnome2.4-dev libwebkit2gtk-4.0-dev \  libzeitgeist-2.0-dev libgcr-3-dev librsvg2-bin intltool  

2.Create a build directory & download the source:

Next create a build directory and download and extract the midori source here. Again the following is a single command:

mkdir $HOME/midori_build && cd $HOME/midori_build && \  wget http://midori-browser.org/downloads/midori_0.5.11_all_.tar.bz2 && \  tar xvf midori_0.5.11_all_.tar.bz2   

3. Alter the source:

midori requires some tweaking to compile with newer libraries and the following snippet borrows from Linux From Scratch to achieve this. Again a single command:

cd $HOME/midori_build/midori-0.5.11 && \  sed -e 's/protected Tally/public Tally/g' -i midori/midori-notebook.vala && \  sed -e 's/%d other files/%u other files/g' -i extensions/transfers.vala && \  for f in transfers adblock/widgets apps history-list notes; do      sed -e 's/.remove (iter/.remove (ref iter/g' -i "extensions/$f.vala"  done  

4. Compile and install midori:

Use the following single command to now compile and install midori (packaged with checkinstall for easy removal):

cd $HOME/midori_build/midori-0.5.11 && \  mkdir build && cd build && \  cmake -DCMAKE_INSTALL_PREFIX=/usr/local \        -DUSE_GTK3=ON \        -DCMAKE_BUILD_TYPE=Release \        -DHALF_BRO_INCOM_WEBKIT2=ON .. && make && \  sudo checkinstall -D --install=yes --fstrans=no --pakdir "$HOME/midori_build" \     --pkgname midori --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default \     --pkgversion "0.5.11" && \  sudo ldconfig  

Screenshot:

Below is a screenshot of the completed installation on my 17.10 system. Note that there is still a little remedial work needed for the sidebar (dock) icon but I will investigate after Xmas :).

enter image description here

References:


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »