Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
New management scripts to install and configure the plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcoandrade committed Dec 31, 2015
1 parent 5605e52 commit a1b9eac
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
File renamed without changes.
15 changes: 15 additions & 0 deletions ManagementScripts/config.sh
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
34 changes: 34 additions & 0 deletions ManagementScripts/install.sh
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

0 comments on commit a1b9eac

Please sign in to comment.