This repository has been archived by the owner on Aug 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New management scripts to install and configure the plugin.
- Loading branch information
1 parent
5605e52
commit a1b9eac
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
#copying files | ||
for f in ~/.qgis2/python/plugins/DSGManagementTools/CGI/*.py | ||
do | ||
sudo cp $f /usr/lib/cgi-bin | ||
done | ||
|
||
for f in ~/.qgis2/python/plugins/DSGManagementTools/ShellScripts/*.sh | ||
do | ||
sudo cp $f /usr/lib/cgi-bin | ||
done | ||
|
||
sudo chmod 777 -R /usr/lib/cgi-bin | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
echo "A conexão é feita com proxy?: (S/N)"; read USEPROXY | ||
if [ "$USEPROXY" == "S" ]; then | ||
echo "Entre com o endereço do proxy: "; read PROXYHOST | ||
echo "Entre com a porta do proxy: "; read PROXYPORT | ||
echo "Entre com o usuário do proxy: "; read PROXYUSER | ||
echo "Entre com o password do proxy: "; read PROXYPASS | ||
|
||
export http_proxy="http://$PROXYUSER:$PROXYPASS@$PROXYHOST:$PROXYPORT" | ||
export https_proxy="http://$PROXYUSER:$PROXYPASS@$PROXYHOST:$PROXYPORT" | ||
|
||
$SUDO = "sudo -E" | ||
elif [ "$USEPROXY" == "N" ]; then | ||
$SUDO = "sudo" | ||
else | ||
echo "Parâmetro inválido! Nada foi feito" | ||
exit | ||
fi | ||
|
||
#preparing QGIS repository | ||
$SUDO add-apt-repository ppa:ubuntugis/ubuntugis-unstable | ||
$SUDO apt-get update | ||
|
||
#installing synaptic | ||
$SUDO apt-get install synaptic | ||
|
||
#installing packages | ||
$SUDO apt-get install qgis saga python-saga otb-bin python-otb otb-bin-qt grass qgis-plugin-grass postgresql postgis slony1-2-bin postgresql-9.3-slony1-2 pgadmin3 apache2 libapache2-mod-python python-qt4-sql libqt4-sql-psql libqt4-sql-sqlite | ||
|
||
#configuring apache2 | ||
sudo a2enmod cgi | ||
|
||
exit |