forked from leanote/leanote
-
Notifications
You must be signed in to change notification settings - Fork 0
How to install leanote on Ubuntu?
yangg edited this page Sep 19, 2014
·
3 revisions
cd /tmp
if [ $(arch) = 'x86_64']; then
wget https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz
else
wget https://storage.googleapis.com/golang/go1.3.1.linux-386.tar.gz
fi
sudo tar -C /usr/local -xzf go*.tar.gz
cat >> ~/.bashrc <<EOF
export GOROOT=/usr/local/go
export GOPATH=$HOME/gocode
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
EOF
source ~/.bashrc
# install revel & leanote
go get github.com/revel/cmd/revel
go get github.com/leanote/leanote/app#
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install -y mongodb-org