<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Elvis Otieno</title>
    <description>The latest articles on DEV Community by Elvis Otieno (@midigo0411).</description>
    <link>https://dev.to/midigo0411</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F987874%2F7bf2e081-4481-4374-8440-f50cf85cb167.jpeg</url>
      <title>DEV Community: Elvis Otieno</title>
      <link>https://dev.to/midigo0411</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/midigo0411"/>
    <language>en</language>
    <item>
      <title>Installing Psql in parrot</title>
      <dc:creator>Elvis Otieno</dc:creator>
      <pubDate>Sun, 11 Dec 2022 11:48:05 +0000</pubDate>
      <link>https://dev.to/midigo0411/installing-psql-in-parrot-500b</link>
      <guid>https://dev.to/midigo0411/installing-psql-in-parrot-500b</guid>
      <description>&lt;p&gt;Having a problem installing psql in parrot  or you did install but did not configure properly . here are major steps to follow. &lt;/p&gt;

&lt;p&gt;Parrot psql installaton:&lt;br&gt;
$ sudo apt-get update&lt;br&gt;
$ sudo apt-get install postgresql postgresql-contrib libpq-dev&lt;br&gt;
Enter y when prompted “Do you want to continue? [Y/n]” and wait as the installation completes.&lt;/p&gt;

&lt;p&gt;Defining a user role&lt;br&gt;
Postgres uses “roles” to aid in authentication and authorization. By default, Postgres creates a Postgres user and is the only user who can connect to the server.&lt;/p&gt;

&lt;p&gt;We want to create our own superuser role to connect to the server.&lt;/p&gt;

&lt;p&gt;For those running on elementary or parrot, run the following command first;&lt;br&gt;
$ sudo service postgresql start&lt;br&gt;
$ sudo -u postgres createuser --superuser $USER&lt;br&gt;
Enter your desired password when prompted.&lt;/p&gt;

&lt;p&gt;We then have to create a database with that $USER login name, this is what Postgres expects as default.&lt;br&gt;
$ sudo -u postgres createdb $USER&lt;br&gt;
Navigate to your home directory and enter the following command to create the .psql_history in order to save your history:&lt;br&gt;
$ touch .psql_history&lt;br&gt;
You can now connect to the Postgres server by typing :&lt;br&gt;
$ psql&lt;/p&gt;

&lt;p&gt;When facing an error, go through your terminal and navigate to:&lt;br&gt;
$ ls /etc/apt/sources.list.d&lt;br&gt;
that is&lt;br&gt;
$ cd ..&lt;br&gt;
then when @ sources.list.d :&lt;br&gt;
$ sudo rm -r pgdg.list&lt;br&gt;
When done repeat the first instruction shared in this article&lt;/p&gt;

</description>
      <category>serverless</category>
      <category>cloud</category>
    </item>
    <item>
      <title>See apt-secure(8) manpage for repository creation and user configuration details.</title>
      <dc:creator>Elvis Otieno</dc:creator>
      <pubDate>Sat, 10 Dec 2022 16:02:49 +0000</pubDate>
      <link>https://dev.to/midigo0411/see-apt-secure8-manpage-for-repository-creation-and-user-configuration-details-4f8k</link>
      <guid>https://dev.to/midigo0411/see-apt-secure8-manpage-for-repository-creation-and-user-configuration-details-4f8k</guid>
      <description>&lt;p&gt;When running throught that error just type the folllowing command in your terminal&lt;/p&gt;

&lt;p&gt;sudo apt clean&lt;br&gt;
cd /var/lib/apt &lt;br&gt;
sudo mv lists lists.old&lt;br&gt;
sudo mkdir -p lists/partial&lt;br&gt;
sudo apt update &lt;/p&gt;

</description>
      <category>gratitude</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
