$ mysql -u root -p CREATE USER 'gerrit2'@'localhost' IDENTIFIED BY 'secret'; CREATE DATABASE reviewdb; ALTER DATABASE reviewdb charset=latin1; GRANT ALL ON reviewdb.* TO 'gerrit2'@'localhost'; FLUSH PRIVILEGES; quit
Using secure store: com.google.gerrit.server.securestore.DefaultSecureStore
*** Gerrit Code Review 2.11 ***
Create ‘/home/gerrit2/review_site’ [Y/n]?
*** Git Repositories ***
Location of Git repositories [git]:
*** SQL Database ***
Database server type [h2]: MySQL
Gerrit Code Review is not shipped with MySQL Connector/J 5.1.21 ** This library is required for your configuration. ** Download and install it now [Y/n]? Downloading http://repo2.maven.org/maven2/mysql/mysql-connector-java/5.1.21/mysql-connector-java-5.1.21.jar … OK Checksum mysql-connector-java-5.1.21.jar OK Server hostname [localhost]: Server port [(mysql default)]: Database name [reviewdb]: Database username [gerrit2]: gerrit2 gerrit’s password : confirm password :
*** Index ***
Type [LUCENE/?]:
*** User Authentication ***
Authentication method [OPENID/?]:
*** Review Labels ***
Install Verified label [y/N]?
*** Email Delivery ***
SMTP server hostname [localhost]: SMTP server port [(default)]: SMTP encryption [NONE/?]: SMTP username :
*** Container Process ***
Run as [gerrit2]: Java runtime [/usr/lib/jvm/java-8-openjdk-amd64/jre]: Copy gerrit-2.11.war to /home/gerrit2/review_site/bin/gerrit.war [Y/n]? Copying gerrit-2.11.war to /home/gerrit2/review_site/bin/gerrit.war *** SSH Daemon ***
Listen on address [*]: Listen on port [29418]:
Gerrit Code Review is not shipped with Bouncy Castle Crypto SSL v151 If available, Gerrit can take advantage of features in the library, but will also function without it. Download and install it now [Y/n]? Downloading http://www.bouncycastle.org/download/bcpkix-jdk15on-151.jar … OK Checksum bcpkix-jdk15on-151.jar OK Generating SSH host key … rsa… dsa… done
*** HTTP Daemon ***
Behind reverse proxy [y/N]? Use SSL (https://) [y/N]? Listen on address [*]: Listen on port [8080]: Canonical URL [http://ubuntu:8080/]: http://10.0.0.9:8080
*** Plugins ***
Installing plugins. Install plugin download-commands version v2.11 [y/N]? Install plugin reviewnotes version v2.11 [y/N]? Install plugin singleusergroup version v2.11 [y/N]? Install plugin replication version v2.11 [y/N]? Install plugin commit-message-length-validator version v2.11 [y/N]? Initializing plugins. No plugins found with init steps.
Initialized /home/gerrit2/review_site Executing /home/gerrit2/review_site/bin/gerrit.sh start Starting Gerrit Code Review: OK Waiting for server on ubuntu:8080 … OK Opening http://10.0.0.9:8080/#/admin/projects/ …FAILED Open Gerrit with a JavaScript capable browser: http://10.0.0.9:8080/#/admin/projects/
$ ssh-keygen <ENTER> Generating public/private rsa key pair. Enter file in which to save the key (/home/serveradmin/.ssh/id_rsa): <ENTER> Enter passphrase (empty for no passphrase): <ENTER> Enter same passphrase again: <ENTER> Your identification has been saved in /home/serveradmin/.ssh/id_rsa. Your public key has been saved in /home/serveradmin/.ssh/id_rsa.pub. The key fingerprint is: d5:7b:51:d8:22:0e:95:63:f9:0e:a2:22:1c:97:76:40 serveradmin@ubuntu The key's randomart image is: +---[RSA 2048]----+ | .E ..o o.| | . ..* o..| | o .+.+.. | | . + ... o... | | . + .S. ..o. | | o . . .. | | . . | | | | | +-----------------+