Recently I ran into another issue with Fedora 33, after the upgrade gcloud
command not working anymore. Turn out it’s a python 3.9 issue, here is a quick fix
export CLOUDSDK_PYTHON=python2
Recently I ran into another issue with Fedora 33, after the upgrade gcloud
command not working anymore. Turn out it’s a python 3.9 issue, here is a quick fix
export CLOUDSDK_PYTHON=python2
I recently ran into this issue with git pull on Fedora 33, here is a quick fix to keep your current key pairs working
vim ~/.ssh/config ## Add the following lines at the top Host * PubkeyAcceptedKeyTypes +rsa-sha2-256,rsa-sha2-512
The following command lines help installing VS code on the latest Fedora using Terminal
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' sudo dnf update sudo dnf install code
sudo dnf update sudo dnf install postgresql postgresql-server sudo postgresql-setup initdb sudo systemctl enable postgresql sudo systemctl start postgresql sudo -u postgres psql
To change default postgres
user password, create a database and grant all privileges to that user:
postgres=# \password postgres Enter new password: Enter it again: postgres=# create database mydb; CREATE DATABASE postgres=# grant all privileges on database mydb to postgres; GRANT postgres=# SHOW config_file; config_file ----------------------------------------- /etc/postgresql/12/main/postgresql.conf (1 row) postgres=# SHOW hba_file; hba_file ------------------------------------- /etc/postgresql/12/main/pg_hba.conf (1 row) postgres-# \q
To make this change effective, changes in pg_hba.conf
are necessary:
sudo vim /var/lib/pgsql/data/pg_hba.conf # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all md5 # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5 # Allow replication connections from localhost, by a user with the # replication privilege. local replication all peer host replication all 127.0.0.1/32 ident host replication all ::1/128 ident service postgresql restart sudo -u postgres psql Password for user postgres: postgres=# \q