My Ready Reference Code

September 5, 2019   

GIT Proxy Setup

git config --global --unset http.proxy
git config --global --get http.proxy
git config --global http.proxy


# Creating New Project
django-admin startproject geodjango

# Create New App  
python startapp world


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


# 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

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

# GeoServer run

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

#Default username and password is admin and geoserver


Common commands

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


  • 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


  • 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.


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

comments powered by Disqus