Friday, September 25, 2020

Setting up Sqlite3 Python embedded database and Sqlitebrowser on Virtual Box CentOS 8.2 VM

 Proceed with normal VM's install via CentOS-8.2.2004-x86_64-minimal.iso in Virtual Box 6.1.X. Notice that same straight forward install from scratch of Sqlite3 database would work on bare metal as well . Just no VBoxLinuxAdditions.run related commands.

 When done :-

   $ uname -a

  $ sudo dnf update -y

   $ sudo reboot

   $ sudo dnf install sqlite-devel qt5-* -y

   $ rpm -q sqlite-devel

   $ sudo dnf install wget

   $ wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz

   $ sudo dnf groupinstall "Development Tools" -y

   $ tar xvf Python-3.8.5.tgz

   $  cd *.5

   $ ./configure --enable-optimizations

   $  sudo make altinstall

   $ python3.8

Python 3.8.5 (default, Sep 25 2020, 13:57:55) 

[GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import sqlite3

>>> 

   $ cd

   $ git clone https://github.com/sqlitebrowser/sqlitebrowser

   $ cd sql*

   $ cmake -Wno-dev .

   $ make

   $ sudo make install

   $ sudo reboot

   $ sudo dnf groupinstall "Server with GUI" -y

   $ sudo systemctl set-default graphical.target

   $ sudo shutdown -P now

   *************************************************

   Dismount CentOS-8.2.2004-x86_64-minimal.iso and

   mount VBox_GAs_6.1.14

   ************************************************

   $ df -h

   $  sudo dnf install epel-release

   $  sudo dnf install gcc make perl kernel-devel kernel-headers bzip2 dkms

   $   rpm -q kernel-devel

   $  uname -r

   $  sudo dnf update kernel-*

   # df -h

   # cd /run/media/boris/VBox_GAs_6.1.14

   # ./VBoxLinuxAdditions.run 

   

Shutdown VM and start it again

























No comments:

Post a Comment