Skip to content

Instantly share code, notes, and snippets.

View Rub21's full-sized avatar
🐕

Ruben L. Mendoza Rub21

🐕
View GitHub Profile
Por defecto Ubuntu 12.04 no trae PostGIS 2.0, y lo necesitaba para hacer algunas pruebas, porque lo que leí sobre esta versión que tenia muchas novedades y especialmente en las capas raster. Así que manos a la obra para tener postgis 2.0 y postgresql 9.1.
Entramos a la consola y escribimos:
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:sharpie/for-science
sudo apt-add-repository ppa:sharpie/postgis-nightly
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
@Rub21
Rub21 / gist:4267888
Created December 12, 2012 13:57
crear usb boot
sudo apt-get install unetbootin
Quantum GIS 1.8
Adicionar ao Repositório
# vim /etc/apt/sources.list
# PACOTES
deb http://qgis.org/debian lucid main
deb-src http://qgis.org/debian lucid main
#DEPENDENCIAS
#add-apt-repository ppa:ubuntugis/ubuntugis-unstable
@Rub21
Rub21 / gist:4276576
Created December 13, 2012 14:04
Qgis permission plugging
Make sure you have write permissions and ownership on the .qgis directory
try running following commands:
sudo chmod 755 ~/.qgis
sudo chown -R <your username> ~/.qgis
NOTICE: ----------------------------------
NOTICE: ID GRID =657
NOTICE: TOTAL WAYS= 70
NOTICE: MAX_VERSION= 7
NOTICE: MIN_VERSION= 2
NOTICE: ****************************Version = 2
NOTICE: Amount= 39
NOTICE: ****************************Version = 3
NOTICE: Amount= 19
NOTICE: ****************************Version = 4
Instalar Skype correctamente en Ubuntu 11.10
Desde Ubuntu 10.10, Skype siempre ha estado disponible en los repositorios oficiales de Ubuntu, aunque hay una opción para el usuario pudiendo descargar Skype desde su web oficial, es mejor para nosotros instalar Skype desde el repositorio, ya que se ha ajustado con cada nueva versión de Ubuntu.
http://fc03.deviantart.net/fs70/f/2011/147/5/1/skype_by_comsl-d3hc9p2.jpg
La corrección en Ubuntu 11.10 se refiere a un error que puede aparecer debido a bibliotecas compartidas, por lo que se aconseja instalar en Ubuntu desde el repositorio. Si ha tenido algún problema desintale y vuelva a instalar utilizando los siguienes comandos:
sudo apt-get remove --purge skype
sudo apt-get install skype:i386
CREATE OR REPLACE FUNCTION get_min_version(the_geom geometry)
RETURNS int
AS $$
DECLARE
_min_version int=0;
BEGIN
_min_version=(SELECT min(version) FROM tiger_version WHERE ST_Within(tiger_version.geom,the_geom));
select count(*) from tiger_grid_us where average_v<1 --result = 11
select count(*) from tiger_grid_us where average_v>=1 AND average_v<1.2 --result = 281037
select count(*) from tiger_grid_us where average_v>=1.2 AND average_v<1.5 --result = 62177
select count(*) from tiger_grid_us where average_v>=1.5 AND average_v<1.7 --result = 32127
select count(*) from tiger_grid_us where average_v>=1.7 AND average_v<1.9 --result = 14016
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
@Rub21
Rub21 / install GEOS
Last active December 10, 2015 18:38
wget http://download.osgeo.org/geos/geos-3.3.6.tar.bz2
tar xvfj geos-3.3.6.tar.bz2
cd geos-3.3.6
./configure
make
sudo make install
cd ..
fuente: http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1110src