View difference between Paste ID: bPgb7STS and EYcz9SRK
SHOW: | | - or go back to the newest paste.
1
echo 'This will install git, vim, gdebi, htop, build-essential, cms'
2
echo 'Please install fp manually'
3
sudo apt-get -y install git vim gdebi htop build-essential
4
git clone 'https://github.com/cms-dev/cms.git'
5
sudo apt-get install build-essential fpc postgresql postgresql-client \
6
     gettext python2.7 python-setuptools python-tornado python-psycopg2 \
7
     python-sqlalchemy python-psutil python-netifaces python-crypto \
8
     python-tz python-six iso-codes shared-mime-info stl-manual \
9
     python-beautifulsoup python-mechanize python-coverage python-mock \
10
     cgroup-lite python-requests python-werkzeug python-gevent\
11
     nginx-full php5-cli php5-fpm phppgadmin \
12
     python-yaml python-sphinx
13
14
cd cms
15
16
if ! ls build
17
then ./setup.py build
18
fi
19
20
if ! which cmsLogService
21
then sudo ./setup.py install
22
fi
23
24
sudo usermod -a -G cmsuser `whoami`
25
if ! groups | grep cmsuser; then
26
	read -p 'Press Enter to logout'
27
	gnome-session-quit
28
	exit
29
fi
30
sudo su --login postgres -c 'createuser cmsuser -P'
31
sudo su --login postgres -c 'createdb -O cmsuser database'
32
sudo su --login postgres -c "psql database -c 'ALTER SCHEMA public OWNER TO cmsuser'"
33
sudo su --login postgres -c "psql database -c 'GRANT SELECT ON pg_largeobject TO cmsuser'"
34
35
if ! ls examples/*.conf
36
then
37
	cd examples
38
	cp cms.conf.sample cms.conf
39
	cp cms.ranking.conf.sample cms.ranking.conf
40
	cp nginx.conf.sample nginx.conf
41
	cd ..
42
	sudo ./setup.py install
43-
fi
43+
44
45
echo Congratulation!
46
sudo add-apt-repository ppa:openshot.developers/ppa
47
sudo apt-get update
48
sudo apt-get install p7zip-full unrar geany leafpad codeblocks epoptes gimp pcmanfm geogebra pinta openshot openshot-doc
49
sudo apt-get install gparted pepperflashplugin-nonfree