Ubuntu 12.04 64Bit Installation(Script)

#Update your Ubuntu package sources
sudo apt-get update -y
sudo apt-get upgrade -y
reboot

#Change hosts and hostname
sudo vi /etc/hosts
sudo vi /etc/hostname

#Manual installation (without vagrant)
sudo apt-get install -y build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev python-pip python-apt python-dev
wget https://bitbucket.org/pypa/setuptools/raw/0.8/ez_setup.py -O – | sudo python
sudo pip install –upgrade pip
sudo pip install –upgrade virtualenv

#On the new server, clone the configuration repo
cd /var/tmp
git clone https://github.com/edx/configuration

#Insatall the ansible requirements
cd /var/tmp/configuration
sudo pip install -r requirements.txt

#Change documents
cd /var/tmp/configuration/playbooks/roles/common/defaults
sudo vi main.yml
#————————————————————–#
COMMON_PYPI_MIRROR_URL: ‘http://pypi.douban.com/simple’
COMMON_SSH_PASSWORD_AUTH: “yes”
#————————————————————–#
cd /var/tmp/configuration/playbooks/roles/edxapp/defaults
sudo vi main.yml
#————————————————————–#
EDXAPP_LMS_BASE: ‘x.momomin.org’
EDXAPP_PREVIEW_LMS_BASE: ‘xpreview.momomin.org’
EDXAPP_CMS_BASE: ‘xstudio.momomin.org’

EDXAPP_SITE_NAME: ‘x.momomin.org’

EDXAPP_LANG: ‘en_US.UTF-8’
EDXAPP_LANGUAGE_CODE : ‘zh-cn’
EDXAPP_TIME_ZONE: ‘Asia/Shanghai’

EDXAPP_TECH_SUPPORT_EMAIL: ‘technical@momomin.org’
EDXAPP_CONTACT_EMAIL: ‘info@momomin.org’
EDXAPP_BUGS_EMAIL: ‘bugs@momomin.org’
EDXAPP_DEFAULT_FROM_EMAIL: ‘registration@momomin.org’
EDXAPP_DEFAULT_FEEDBACK_EMAIL: ‘feedback@momomin.org’
EDXAPP_DEFAULT_SERVER_EMAIL: ‘devops@momomin.org’
EDXAPP_BULK_EMAIL_DEFAULT_FROM_EMAIL: ‘no-reply@momomin.org’
#————————————————————–#
cd /var/tmp/configuration/playbooks/roles/mongo/tasks
sudo vi main.yml
#————————————————————–#
– name: add the mongodb repo to the sources list
apt_repository: > repo=’deb http://mirrors.bistu.edu.cn/mongodb/repo/ubuntu-upstart dist 10gen’
#————————————————————–#
cd /var/tmp/configuration/playbooks/roles/discern/defaults
sudo vi main.yml
#————————————————————–#
discern_nltk_download_url: http://idefs.com/nltk-data-20131113.tar.gz
#————————————————————–#
#Install jdk-7u51-linux-x64.gz and change the name into jdk-7u51-linux-x64.tar.gz
#Upload to /var/tmp
#Install
cd /var/tmp/configuration/playbooks/edx-east
sudo ansible-playbook -c local –limit “localhost:127.0.0.1” ../edx_sandbox.yml
-i “localhost,” -e ‘EDXAPP_PREVIEW_LMS_BASE=xpreview.momomin.org EDXAPP_LMS_BASE=xstudio.momomin.org EDXAPP_LMS_PREVIEW_NGINX_PORT=80 EDXAPP_CMS_NGINX_PORT=80 EDXAPP_LMS_NGINX_PORT=80 edx_platform_version=master ‘

发表评论

邮箱地址不会被公开。 必填项已用*标注

+ 65 = 68