Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLite Browser without SQLCipher support in Ubuntu

SQLite Browser package for ubuntu does not come with SQLCipher by default.

sudo add-apt-repository -y ppa:linuxgndu/sqlitebrowser
sudo apt-get update
sudo apt-get install sqlitebrowser

The Question

How could it be enabled in order to be able to view encrypted databases?

What Versions

  • Ubuntu 17.10
  • SQLite Browser 3.10.99
  • Qt 5.9.1
  • SQLite 3.19.3
like image 317
Camilo Silva Avatar asked Jan 04 '18 23:01

Camilo Silva


People also ask

How do I open SQLite browser in Ubuntu?

First open the SQLite database from File > Open Database… Now select your SQLite database file and click on Open. Your database should be opened. Now you can click on File > Export and then select either Database to SQL file… or Table(s) as CSV file… or Table(s) to JSON… to export the database to your desired format.

Which DB Browser can be used for SQLite?

DB Browser for SQLite (DB4S) is a high quality, visual, open-source tool made for creating, designing, and editing database files that are compatible with SQLite. It is for users and developers who want to create, search, design and edit databases.

What is DB Browser SQLCipher?

DB Browser for SQLite (DB4S) is a high quality, visual, open source tool to create, design, and edit database files compatible with SQLite. DB4S is for users and developers who want to create, search, and edit databases.

How do I run DB browser for SQLite?

a) On Windows, From the View menu item select 'preferences' and select the Data Browser tab. b) On Mac, From the “DB Browser for SQLite” menu item select 'preferences' and select the Data Browser tab.


1 Answers

Update

https://github.com/sqlitebrowser/sqlitebrowser/blob/master/BUILDING.md#ubuntu--debian-linux

$ sudo apt install build-essential git cmake libsqlite3-dev qtchooser qt5-qmake qtbase5-dev-tools\
    qttools5-dev-tools libsqlcipher-dev qtbase5-dev libqt5scintilla2-dev libqcustomplot-dev\
    qttools5-dev
$ git clone https://github.com/sqlitebrowser/sqlitebrowser
$ cd sqlitebrowser
$ mkdir build
$ cd build
$ cmake -Dsqlcipher=1 -Wno-dev ..
$ make
$ sudo make install

Legacy

The solution is to build SQLite Browser with libsqlcipher-dev package.

Here the steps required:

  1. First install the libsqlcipher-dev package.
sudo apt-get install libsqlcipher-dev
  1. Then install requisites for building SQLite Browser.
sudo apt install build-essential git cmake libsqlite3-dev \
                   qt5-default qttools5-dev qttools5-dev-tools
  1. Clone repository.
git clone https://github.com/sqlitebrowser/sqlitebrowser
  1. Build steps:
cd sqlitebrowser
mkdir build
cd build
cmake -Dsqlcipher=1 -Wno-dev ..
make
sudo make install

This should complete without errors, giving you a binary file called sqlitebrowser which has now SQLCipher support.

like image 88
Camilo Silva Avatar answered Sep 18 '22 09:09

Camilo Silva