-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathQgis_grass.sh
executable file
·31 lines (24 loc) · 1000 Bytes
/
Qgis_grass.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# add to the repository the following ines
# first the Backup!
echo "A backup of your source list is made \n"
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
echo "\n Backup Done \n"
# installing GRASS
echo "\n STARTING:::Installation of GRASS version 7\n"
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo add-apt-repository ppa:grass/grass-stable
sudo apt-get update
sudo apt-get install grass7
echo "\n DONE:::Installation of GRASS version 7\n"
echo "\n STARTING:::Installation of QGIS and plugins\n"
sudo add-apt-repository "deb http://qgis.org/debian trusty main"
sudo add-apt-repository "deb-src http://qgis.org/debian trusty main"
# add public keys
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 3FF5FFCAD71472C4
gpg --export --armor 3FF5FFCAD71472C4 | sudo apt-key add -
sudo apt-get update
sudo apt-get install qgis
sudo apt-get install python-qgis
sudo apt-get install qgis-plugin-grass
echo "\n DONE:::Installation QGIS and plugins\n"