# How to set local AOSP Gerrit server - Part 1

DevFeed: [How to set local AOSP Gerrit server - Part 1](<https://devfeed.tech/articles/how-to-set-local-aosp-gerrit-server-part-1-21699.md>)

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

Author: Ramon

Published: 2015-05-22T17:16:56Z

Content type: tutorial

Language: en

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

Topics: [aosp](<https://devfeed.tech/topics/aosp.md>), [Gerrit](<https://devfeed.tech/topics/gerrit.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Server](<https://devfeed.tech/topics/server.md>), [Ubuntu](<https://devfeed.tech/topics/ubuntu.md>)

Tags: [1-7](<https://devfeed.tech/tags/1-7.md>), [android](<https://devfeed.tech/tags/android.md>), [aosp](<https://devfeed.tech/tags/aosp.md>), [download](<https://devfeed.tech/tags/download.md>), [gerrit](<https://devfeed.tech/tags/gerrit.md>), [git](<https://devfeed.tech/tags/git.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [install](<https://devfeed.tech/tags/install.md>), [linux](<https://devfeed.tech/tags/linux.md>), [local](<https://devfeed.tech/tags/local.md>), [mirror](<https://devfeed.tech/tags/mirror.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [package-management](<https://devfeed.tech/tags/package-management.md>), [repo](<https://devfeed.tech/tags/repo.md>), [repo-mirror](<https://devfeed.tech/tags/repo-mirror.md>), [server](<https://devfeed.tech/tags/server.md>), [source-code](<https://devfeed.tech/tags/source-code.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>), [ubuntu-15-04](<https://devfeed.tech/tags/ubuntu-15-04.md>)

## AI overview

Part 1 outlines setup of a local AOSP mirror with Gerrit on a Linux server. It assumes apt-get (with adjustments needed for other package managers) and lists Java JDK above 1.7, Git, an SSH server, and a database as prerequisites. The author uses MySQL but says other database software can be used, referring readers to Gerrit documentation. The steps include installing the Android repo tool, creating a local Android source mirror, and downloading Gerrit; the excerpt directs readers to Part 2 for continuation.

## Source excerpt

In this tutorial I'll explain how to set a local gerrit server that hosts Android source code. After completing the tutorial you'll have a fully runnable local AOSP mirror with local Gerrit server. First thing first. we need a Linux server. if you don't have one available, you can use a pre-installed Ubuntu 15.04 Server I [...]