# HOW TO SET LOCAL AOSP GERRIT SERVER - PART 2

DevFeed: [HOW TO SET LOCAL AOSP GERRIT SERVER - PART 2](<https://devfeed.tech/articles/how-to-set-local-aosp-gerrit-server-part-2-21700.md>)

Original publisher: [Read original article](<https://nativeguru.wordpress.com/2015/06/29/how-to-set-local-aosp-gerrit-server-part-2/>)

Author: Ramon

Published: 2015-06-29T18:42:37Z

Content type: tutorial

Language: en

Sources: [Ramon Fried](<https://devfeed.tech/sources/ramon-fried.md>)

Topics: [Gerrit](<https://devfeed.tech/topics/gerrit.md>), [aosp](<https://devfeed.tech/topics/aosp.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [aosp](<https://devfeed.tech/tags/aosp.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [bootstrap](<https://devfeed.tech/tags/bootstrap.md>), [bouncy-castle](<https://devfeed.tech/tags/bouncy-castle.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [database](<https://devfeed.tech/tags/database.md>), [dsa](<https://devfeed.tech/tags/dsa.md>), [email](<https://devfeed.tech/tags/email.md>), [email-delivery](<https://devfeed.tech/tags/email-delivery.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [gerrit](<https://devfeed.tech/tags/gerrit.md>), [git](<https://devfeed.tech/tags/git.md>), [h2](<https://devfeed.tech/tags/h2.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [http](<https://devfeed.tech/tags/http.md>), [index](<https://devfeed.tech/tags/index.md>), [local](<https://devfeed.tech/tags/local.md>), [repo-mirror](<https://devfeed.tech/tags/repo-mirror.md>), [server](<https://devfeed.tech/tags/server.md>), [user](<https://devfeed.tech/tags/user.md>)

## AI overview

The excerpt walks through bootstrapping Gerrit Code Review 2.11 after downloading its prerequisites. It calls for a dedicated Gerrit user and MySQL database with the required permissions, then runs the WAR installer as that user. The setup wizard requests the repository location and database details, downloads MySQL Connector/J 5.1.21 when needed, and configures authentication, email, Java, SSH and HTTP. Bouncy Castle is presented as optional: Gerrit can function without it. The excerpt ends during plugin installation prompts, so it does not show the remaining setup.

## Source excerpt

Hi. This is part 2 of the "How to set local AOSP Gerrit server", you might want to start with part 1 here. In part 1 we've downloaded all the necessary stuff and in this post we're going to set it all up. First thing, let's bootstrap Gerrit. Let's create a Gerrit user: $ sudo [...]