Mercurial Source Code Control Server (SCM)

The purpose of this post is to help you create a source code control (SCM) server to host your private repositories. Bitbucket is great; however, private repositories can get expensive for big teams. SCMManager helps you take an ubuntu server and turn it into a private mercurial server. Reference links: URL: http://YourURL:8080 Username: scmadmin Password: scmadmin Here are the installation steps:
Create a new ubuntu 14.04 server
sudo apt-get update
sudo apt-get --yes install openjdk-6-jdk mercurial s3cmd
echo "echo 'deb http://maven.scm-manager.org/nexus/content/repositories/releases ./' >> /etc/apt/sources.list" | sudo sh
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D742B261
sudo apt-get update
sudo apt-get install scm-server
sudo service scm-server start
sudo service scm-server status
From here you can use ubuntu's service command to start/stop the service: Notes: