GIT Proxy Setup

git config --global --unset http.proxy
git config --global --get http.proxy
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080

Django

# Creating New Project
django-admin startproject geodjango

# Create New App  
python manage.py startapp world

Pgadmin

# pgadmin default password change  
sudo -u postgres psql postgres
# \password postgres

Geoserver

# sudo su
apt-get install openjdk-8-jre

# PostgreSQL and PostGIS
apt-get install postgresql postgresql-contrib postgis postgresql-10-postgis-2.4

# Create "geoserver" database
sudo -u postgres createuser -P geoserver
sudo -u postgres createdb -O geoserver geoserver
sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" geoserver

# GeoServer install
apt install unzip
mkdir -p /var/www/geoserver
cd /var/www/geoserver
wget https://netcologne.dl.sourceforge.net/project/geoserver/GeoServer/2.15.2/geoserver-2.15.2-bin.zip
unzip geoserver-2.15.2-bin.zip

mv geoserver-2.15.2/* .
echo "export GEOSERVER_HOME=/var/www/geoserver" >> ~/.profile
. ~/.profile

# GeoServer run
./bin/startup.sh

#In the browser open http://localhost:8080/geoserver/web/

#Default username and password is admin and geoserver

Pacman

Common commands

  • pacman -Syu Install (and update package list)
  • pacman -S Install only
  • pacman -Rsc Uninstall
  • pacman -Ss Search
  • pacman -Syu Upgrade everything

Query

  • pacman -Qe List explictly-installed packages

  • pacman -Ql What files does this package have?

  • pacman -Qii List information on package

  • pacman -Qo Who owns this file?

  • pacman -Qs Search installed packages for keywords

Orphans

  • pacman -Qdt List unneeded packages
  • pacman -Rns $(pacman -Qdtq) Uninstall unneeded packages
  • Avoid orphans by using pacman -Rsc to remove packages, which will remove unneeded dependencies.

Other

pactree What does pkg depend on? pactree -r What depends on pkg?