

While in the same file, find this stanza (it may be on the 39th line): "Uncomment and provide the PostgreSQL username and password of the database that we have created earlier. To enter it, run this: sudo vi /opt/sonarqube/conf/sonar.properties Run it with " sudo bash /tmp/sonar.sh"ġ6. # Call the file above "sonar.sh" and put it in /tmp. Mv /opt/sonarqube-$version /opt/sonarqube Unzip /tmp/sonarqube-$version.zip -d /opt Run a script with these five lines (using sudo privileges when you run it):Ĭurl -L $version.zip > /tmp/sonarqube-$version.zip Exit the postgres user to be a user that is a sudoer. Leave the psql prompt by running this command: \qġ4. Run this command from the SQL command prompt: CREATE DATABASE sonar OWNER sonar ġ3. Run the prepared command above (after you replaced goodPassword with the password of your choice).ġ2. Prepare a command such as this, but replace "goodPassword" with the password you want for the sonar PostgreSQL database user:ĪLTER USER sonar WITH ENCRYPTED password 'goodPassword' ġ1. Enter the PostgreSQL command prompt by running this command: psqlġ0. Create a user named "sonar" with this command: createuser sonarĩ. Assume the postgres user with this command: su - postgresĨ. Change the postgres user's password: sudo passwd postgresħ. Here is what it will look like after the changes:Ħ. # "local" is for Unix domain socket connections only Here is how it may appear before you make these changes: Find the following stanzas change the word "peer" to "trust" and change the word "ident" to "md5". Run this command: sudo vi /var/lib/pgsql/9.6/data/pg_hba.confĤ.c. Enable MD5-based authentication by editing the /var/lib/pgsql/9.6/data/pg_hba.conf file.Ĥ.b. Sudo /usr/pgsql-9.6/bin/postgresql96-setup initdbĤ.a.
#Install sonarr centos 7 install
Sudo yum -y install postgresql96-server postgresql96-contrib If you are running CentOS, run this command:

If you are running RHEL, run this command: If you are using CentOS, run these two commands:Ģ.
#Install sonarr centos 7 update
If you are running RHEL, run this command: sudo yum -y update If you need assistance with this, see this link.įor future reference, at some point the "9.6"s you see below will have to be incremented to a newer version of PostgreSQL.ġ. Install the Java Development Kit so you can later take advantage of plugins. You have a Red Hat distribution of Linux (e.g., CentOS/RHEL/Fedora).
