Fedora 29 use python virtual environment

Fedora comes with python 3.7 installed. TensorFlow etc. doesn’t currently work on 3.7 🙁

Never mind, time to dip into virtual environments, I have been meaning to take a look at it anyway.

sudo pip3 install virtualenv

Make yourself a nice directory, I called my PYTHON_VENV, and create a python virtual environment.
You may need to install Python 3.6 using:

sudo dnf install python36

then use that python executable to install the new python environment:

virtualenv --python=/usr/bin/python3.6 python36

now step into the environment using

source python36/bin/activate

and install all your favourite libraries:

pip install scikit-learn spyder pandas numpy bs4 seaborn matplotlib tensorflow jupyter orange3

to run orange use

orange-canvas

Postgres Fedora 28 Workstation

This is is probably not the best way to fix the problem I am having.

I tend to use postgreSQL when I an faffing with some data. The data I am usually faffing with is huge and on Fedora the problem is that the var directory is in the 50Gb of data provided as part of a separate disk partition used to hold the system files. Don’t know why, but there you go.

So ideally I need to move the data files to somewhere else.

Install postgreSQL from the nice people over at PostgreSQL. Once installed make sure that the postgres user exists.
Create a folder for the user in the “/home/” directory and chown it to the user using:

chown postgres:postgres /home/postgres

…then change the postgres-10.service file using:

sudo su
systemctl edit --full postgresql-10.service

…change the Environment line to use your path as the PGDATA:

Environment=PGDATA=/home/postgres/DATA

then run:

/usr/pgsql-10/bin/postgresql-10-setup initdb

…and make sure that the service is running using:

sudo systemctl enable postgres-10.service
sudo systemctl start postgres-10.service
sudo systemctl status postgres-10.service

Once you have it up and running you can upload files (from somewhere that postgres user can access – like tmp) using:

psql -d police postgres -c "\copy street FROM '/tmp/streetdata.tsv' delimiter E'\t' csv header"

Fedora Extra Backgrounds


sudo dnf install f23-backgrounds-extras-gnome f24-backgrounds-extras-gnome f25-backgrounds-extras-gnome f26-backgrounds-extras-gnome f27-backgrounds-extras-gnome f28-backgrounds-extras-gnome

Some Basic DNF

sudo dnf repolist
sudo dnf config-manager --enablerepo=fedora-multimedia
sudo dnf config-manager --disablerepo=fedora-multimedia
sudo dnf upgrade --exclude=mono*

That last one will ignore all mono packages from your currently identified upgrade list.