Showing posts with label database. Show all posts
Showing posts with label database. Show all posts
2013-12-02
Slitaz -- vagrant-slitaz
vagrant-slitaz
Vagrant setup based on Slitaz Linux. Started from base cooking image 8Mb. Built against Virtual Box Guest Addins v4.3.
Benefits
The main one is the small vagrant's box size ~96Mb. Despite this the Slitaz guest OS is equipped with: Apache2.4, php-5.4.13, xdebug-2.2.3, perl-5.12.3, MySql-5.5.27, sqlite3, php-cli, git-1.8.3, composer-2013-10-21, ngrok, phpMyAdmin-3.5.2, openssh-5.9
1.
tux@slitaz:~/vagrant-slitaz-master$ vagrant ssh
Welcome to the Open Source World!
SliTaz GNU/Linux is distributed in the hope that it will be useful,
but with ABSOLUTELY NO WARRANTY.
2.
web@devbox:~$ uname -a
Linux devbox 3.2-slitaz #4 SMP Sun Jan 27 02:10:33 CET 2013 i686 GNU/Linux
3.
web@devbox:~$ free -m
total used free shared buffers
Mem: 1516 273 1242 0 116
-/+ buffers: 157 1359
Swap: 0 0 0
4.
web@devbox:~$ df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 5.8G 471.1M 5.0G 8% /
tmpfs 758.3M 200.0K 758.1M 0% /run
devtmpfs 758.1M 0 758.1M 0% /dev
tmpfs 758.3M 0 758.3M 0% /dev/shm
none 2.9G 1.3G 1.6G 45% /projects
none 2.9G 1.3G 1.6G 45% /projects/www
5.
web@devbox:~$ ls -l /
total 72
drwxr-xr-x 2 root root 4096 Oct 22 20:23 bin/
drwxr-xr-x 4 root root 4096 Oct 22 20:35 boot/
drwxr-xr-x 12 root root 2880 Dec 2 16:06 dev/
drwxr-xr-x 16 root root 4096 Oct 27 20:02 etc/
drwxr-xr-x 3 root root 4096 Oct 25 13:01 home/
-rwxr-xr-x 1 root root 4081 Jan 17 2013 init
drwxr-xr-x 5 root root 4096 Oct 25 08:24 lib/
drwx------ 2 root root 16384 Oct 22 10:25 lost+found/
drwxr-xr-x 5 root root 4096 Oct 22 10:28 media/
drwxr-xr-x 2 root root 4096 Sep 23 13:53 mnt/
drwxr-xr-x 3 root root 4096 Oct 25 12:49 opt/
dr-xr-xr-x 63 root root 0 Dec 2 16:06 proc/
drwxrwxrwx 1 web web 160 Dec 2 16:04 projects/
drwxr-x--- 2 root root 4096 Oct 28 11:48 root/
drwxrwxrwt 8 root root 260 Dec 2 16:06 run/
drwxr-xr-x 2 root root 4096 Oct 25 08:24 sbin/
drwxr-xr-x 12 root root 0 Dec 2 16:06 sys/
drwxrwxrwt 4 root root 4096 Dec 2 16:09 tmp/
drwxr-xr-x 10 root root 4096 Oct 27 20:02 usr/
drwxr-xr-x 10 root root 4096 Dec 2 16:06 var/
web@devbox:~$
2013-11-05
Debian HCL
Debian HCL (Hardware Compatibility List) Web system
Debian GNU/Linux device driver check page
Boot your machine with a GNU/Linux OS (such as Debian, Knoppix, Redhat, and so on), run 'lspci -n' and paste the output into the box below, then press 'Check' button.
Notice:
- This database uses the PCI map of Debian kernel 3.2.0-4-amd64 .
- The result does NOT guarantee your hardware works perfectly.
- This database only verifies the PCI devices at this time. X drivers, ISA, USB, IEEE1394 or any other devices are out of the focus.
2011-09-15
Slitaz -- QGIS - GDAL
Quantum GIS (QGIS)
GDAL - Geospatial Data Abstraction Library
1.
tux@slitaz:~$ uname -a
Linux slitaz 2.6.37-slitaz #2 SMP Sat May 21 19:25:28 CEST 2011 i686 GNU/Linux
2.
tux@slitaz:~$ df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 2.9G 511.4M 2.4G 17% /
tmpfs 1.6G 0 1.6G 0% /dev/shm
3.
tux@slitaz:~$ tazpkg list | tail -2
297 packages installed.
4.
tux@slitaz:~$ tazpkg info qgis
Tazpkg information
================================================================================
Package : qgis
Version : 1.7.0
Category : misc
Short desc : Geographic Information System (GIS)
Maintainer :
Web site : http://www.qgis.org
================================================================================
tux@slitaz:~$
5.
tux@slitaz:~$ tazpkg info gdal
Tazpkg information
================================================================================
Package : gdal
Version : 1.8.1
Category : misc
Short desc : Geospatial Data Abstraction Library
Maintainer :
Web site : http://www.gdal.org/
================================================================================
tux@slitaz:~$ gdal-config --version
1.8.1
6.
tux@slitaz:~$ gdal-config --dep-libs
-L/usr/lib -lgeos_c -lsqlite3 -lodbc -lodbcinst -lexpat -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdfalt -ldfalt -logdi -lgif -ljpeg -lpng -lnetcdf -L/usr/lib/postgresql -lpq -lz -lpthread -lm -lrt -ldl -lcurl
7.
tux@slitaz:~$ gdal-config --formats
gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf leveller sgi srtmhgt idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg coasp tsx terragen blx msgn til r northwood saga xyz hf2 kmlsuperoverlay ozi wcs wms grib bsb jpeg2000 hdf5 hdf4 ogdi gif jpeg png netcdf pcraster rik rasterlite postgisraster
8.
tux@slitaz:~$ gdalinfo --formats
Supported Formats:
VRT (rw+v): Virtual Raster
GTiff (rw+v): GeoTIFF
NITF (rw+v): National Imagery Transmission Format
RPFTOC (rov): Raster Product Format TOC format
HFA (rw+v): Erdas Imagine Images (.img)
SAR_CEOS (rov): CEOS SAR Image
CEOS (rov): CEOS Image
JAXAPALSAR (ro): JAXA PALSAR Product Reader (Level 1.1/1.5)
GFF (rov): Ground-based SAR Applications Testbed File Format (.gff)
ELAS (rw+): ELAS
AIG (rov): Arc/Info Binary Grid
AAIGrid (rwv): Arc/Info ASCII Grid
SDTS (rov): SDTS Raster
OGDI (ro): OGDI Bridge
DTED (rwv): DTED Elevation Raster
PNG (rwv): Portable Network Graphics
JPEG (rwv): JPEG JFIF
MEM (rw+): In Memory Raster
JDEM (ro): Japanese DEM (.mem)
GIF (rwv): Graphics Interchange Format (.gif)
BIGGIF (rov): Graphics Interchange Format (.gif)
ESAT (ro): Envisat Image Format
BSB (rov): Maptech BSB Nautical Charts
XPM (rwv): X11 PixMap Format
BMP (rw+v): MS Windows Device Independent Bitmap
DIMAP (rov): SPOT DIMAP
AirSAR (ro): AirSAR Polarimetric Image
RS2 (ro): RadarSat 2 XML Product
PCIDSK (rw+v): PCIDSK Database File
PCRaster (rw): PCRaster Raster File
ILWIS (rw+v): ILWIS Raster Map
SGI (rw+): SGI Image File Format 1.0
SRTMHGT (rwv): SRTMHGT File Format
Leveller (rw+): Leveller heightfield
Terragen (rw+): Terragen heightfield
GMT (rw): GMT NetCDF Grid Format
netCDF (rw): Network Common Data Format
HDF4 (ro): Hierarchical Data Format Release 4
HDF4Image (rw+): HDF4 Dataset
ISIS3 (rov): USGS Astrogeology ISIS cube (Version 3)
ISIS2 (rov): USGS Astrogeology ISIS cube (Version 2)
PDS (rov): NASA Planetary Data System
TIL (ro): EarthWatch .TIL
ERS (rw+): ERMapper .ers Labelled
JPEG2000 (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1)
L1B (ro): NOAA Polar Orbiter Level 1b Data Set
FIT (rwv): FIT Image
GRIB (rov): GRIdded Binary (.grb)
RMF (rw+): Raster Matrix Format
WCS (ro): OGC Web Coverage Service
WMS (ro): OGC Web Map Service
MSGN (ro): EUMETSAT Archive native (.nat)
RST (rw+): Idrisi Raster A.1
INGR (rw+v): Intergraph Raster
GSAG (rw): Golden Software ASCII Grid (.grd)
GSBG (rw+): Golden Software Binary Grid (.grd)
GS7BG (ro): Golden Software 7 Binary Grid (.grd)
COSAR (ro): COSAR Annotated Binary Matrix (TerraSAR-X)
TSX (ro): TerraSAR-X Product
COASP (ro): DRDC COASP SAR Processor Raster
R (rwv): R Object Data Store
PNM (rw+): Portable Pixmap Format (netpbm)
DOQ1 (ro): USGS DOQ (Old Style)
DOQ2 (ro): USGS DOQ (New Style)
ENVI (rw+v): ENVI .hdr Labelled
EHdr (rw+v): ESRI .hdr Labelled
GenBin (ro): Generic Binary (.hdr Labelled)
PAux (rw+): PCI .aux Labelled
MFF (rw+): Vexcel MFF Raster
MFF2 (rw+): Vexcel MFF2 (HKV) Raster
FujiBAS (ro): Fuji BAS Scanner Image
GSC (ro): GSC Geogrid
FAST (ro): EOSAT FAST Format
BT (rw+): VTP .bt (Binary Terrain) 1.3 Format
LAN (rov): Erdas .LAN/.GIS
CPG (ro): Convair PolGASP
IDA (rw+): Image Data and Analysis
NDF (ro): NLAPS Data Format
EIR (rov): Erdas Imagine Raw
DIPEx (ro): DIPEx
LCP (rov): FARSITE v.4 Landscape File (.lcp)
GTX (rw+v): NOAA Vertical Datum .GTX
LOSLAS (rov): NADCON .los/.las Datum Grid Shift
NTv2 (rw+v): NTv2 Datum Grid Shift
RIK (ro): Swedish Grid RIK (.rik)
USGSDEM (rw): USGS Optional ASCII DEM (and CDED)
GXF (ro): GeoSoft Grid Exchange Format
HTTP (ro): HTTP Fetching Wrapper
BAG (ro): Bathymetry Attributed Grid
HDF5 (ro): Hierarchical Data Format Release 5
HDF5Image (ro): HDF5 Dataset
NWT_GRD (ro): Northwood Numeric Grid Format .grd/.tab
NWT_GRC (ro): Northwood Classified Grid Format .grc/.tab
ADRG (rw+v): ARC Digitized Raster Graphics
SRP (rov): Standard Raster Product (ASRP/USRP)
BLX (rw): Magellan topo (.blx)
Rasterlite (rw): Rasterlite
PostGISRaster (ro): PostGIS Raster driver
SAGA (rw+v): SAGA GIS Binary Grid (.sdat)
KMLSUPEROVERLAY (rwv): Kml Super Overlay
XYZ (rwv): ASCII Gridded XYZ
HF2 (rwv): HF2/HFZ heightfield raster
OZI (rov): OZI
9.
tux@slitaz:~$ ogrinfo --formats
Supported Formats:
-> "ESRI Shapefile" (read/write)
-> "MapInfo File" (read/write)
-> "UK .NTF" (readonly)
-> "SDTS" (readonly)
-> "TIGER" (read/write)
-> "S57" (read/write)
-> "DGN" (read/write)
-> "VRT" (readonly)
-> "REC" (readonly)
-> "Memory" (read/write)
-> "BNA" (read/write)
-> "CSV" (read/write)
-> "NAS" (readonly)
-> "GML" (read/write)
-> "GPX" (read/write)
-> "KML" (read/write)
-> "GeoJSON" (read/write)
-> "Interlis 1" (read/write)
-> "Interlis 2" (read/write)
tux@slitaz:~$
.
2011-09-12
Slitaz -- postgis-1.5.3 -2
1.
postgres@slitaz:~$ tazpkg list-files postgis
Installed files with: postgis
================================================================================
/usr/bin/pgsql2shp
/usr/bin/shp2pgsql
/usr/lib/postgresql/postgis-1.5.so
/usr/share/postgresql/contrib/postgis-1.5/postgis.sql
/usr/share/postgresql/contrib/postgis-1.5/postgis_upgrade_13_to_15.sql
/usr/share/postgresql/contrib/postgis-1.5/postgis_upgrade_14_to_15.sql
/usr/share/postgresql/contrib/postgis-1.5/postgis_upgrade_15_minor.sql
/usr/share/postgresql/contrib/postgis-1.5/spatial_ref_sys.sql
/usr/share/postgresql/contrib/postgis-1.5/uninstall_postgis.sql
================================================================================
9 files installed with postgis.
2.
postgres@slitaz:~$ createdb -E utf-8 -T template0 --owner=postgis gis
postgres@slitaz:~$ psql -f /usr/share/postgresql/contrib/postgis-1.5/postgis.sql -d gis
postgres@slitaz:~$ psql -f /usr/share/postgresql/contrib/postgis-1.5/spatial_ref_sys.sql -d gis
3.
postgres@slitaz:~$ psql -U postgis -d gis
psql (9.0.4)
Type "help" for help.
gis=# \set
AUTOCOMMIT = 'on'
PROMPT1 = '%/%R%# '
PROMPT2 = '%/%R%# '
PROMPT3 = '>> '
VERBOSITY = 'default'
VERSION = 'PostgreSQL 9.0.4 on i486-slitaz-linux-gnu, compiled by GCC i486-slitaz-linux-gcc (SliTaz) 4.5.2, 32-bit'
DBNAME = 'gis'
USER = 'postgis'
PORT = '5432'
ENCODING = 'UTF8'
4.
gis=# select lanname from pg_language;
lanname
----------
internal
c
sql
plpgsql
(4 rows)
5.
gis=# \d
List of relations
Schema | Name | Type | Owner
--------+-------------------+-------+----------
public | geography_columns | view | postgres
public | geometry_columns | table | postgres
public | spatial_ref_sys | table | postgres
(3 rows)
6.
gis=# \d spatial_ref_sys
Table "public.spatial_ref_sys"
Column | Type | Modifiers
-----------+-------------------------+-----------
srid | integer | not null
auth_name | character varying(256) |
auth_srid | integer |
srtext | character varying(2048) |
proj4text | character varying(2048) |
Indexes:
"spatial_ref_sys_pkey" PRIMARY KEY, btree (srid)
7.
gis=# select count(*) from spatial_ref_sys;
count
-------
3749
(1 row)
8.
gis=# select * from spatial_ref_sys limit 2;
srid | auth_name | auth_srid | srtext | proj4text
------+-----------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------
3819 | EPSG | 3819 | GEOGCS["HD1909",DATUM["Hungarian_Datum_1909",SPHEROID["Bessel 1841",6377397.155,299.1528128,AUTHORITY["EPSG","7004"]],TOWGS84[595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408],AUTHORITY["EPSG","1024"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","3819"]] | +proj=longlat +ellps=bessel +towgs84=595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408 +no_defs
3821 | EPSG | 3821 | GEOGCS["TWD67",DATUM["Taiwan_Datum_1967",SPHEROID["GRS 1967 Modified",6378160,298.25,AUTHORITY["EPSG","7050"]],AUTHORITY["EPSG","1025"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","3821"]] | +proj=longlat +ellps=aust_SA +no_defs
(2 rows)
9.
gis=# select srid,srtext from spatial_ref_sys where srid=3821;
srid | srtext
------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3821 | GEOGCS["TWD67",DATUM["Taiwan_Datum_1967",SPHEROID["GRS 1967 Modified",6378160,298.25,AUTHORITY["EPSG","7050"]],AUTHORITY["EPSG","1025"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","3821"]]
(1 row)
gis=#
.
postgres@slitaz:~$ tazpkg list-files postgis
Installed files with: postgis
================================================================================
/usr/bin/pgsql2shp
/usr/bin/shp2pgsql
/usr/lib/postgresql/postgis-1.5.so
/usr/share/postgresql/contrib/postgis-1.5/postgis.sql
/usr/share/postgresql/contrib/postgis-1.5/postgis_upgrade_13_to_15.sql
/usr/share/postgresql/contrib/postgis-1.5/postgis_upgrade_14_to_15.sql
/usr/share/postgresql/contrib/postgis-1.5/postgis_upgrade_15_minor.sql
/usr/share/postgresql/contrib/postgis-1.5/spatial_ref_sys.sql
/usr/share/postgresql/contrib/postgis-1.5/uninstall_postgis.sql
================================================================================
9 files installed with postgis.
2.
postgres@slitaz:~$ createdb -E utf-8 -T template0 --owner=postgis gis
postgres@slitaz:~$ psql -f /usr/share/postgresql/contrib/postgis-1.5/postgis.sql -d gis
postgres@slitaz:~$ psql -f /usr/share/postgresql/contrib/postgis-1.5/spatial_ref_sys.sql -d gis
3.
postgres@slitaz:~$ psql -U postgis -d gis
psql (9.0.4)
Type "help" for help.
gis=# \set
AUTOCOMMIT = 'on'
PROMPT1 = '%/%R%# '
PROMPT2 = '%/%R%# '
PROMPT3 = '>> '
VERBOSITY = 'default'
VERSION = 'PostgreSQL 9.0.4 on i486-slitaz-linux-gnu, compiled by GCC i486-slitaz-linux-gcc (SliTaz) 4.5.2, 32-bit'
DBNAME = 'gis'
USER = 'postgis'
PORT = '5432'
ENCODING = 'UTF8'
4.
gis=# select lanname from pg_language;
lanname
----------
internal
c
sql
plpgsql
(4 rows)
5.
gis=# \d
List of relations
Schema | Name | Type | Owner
--------+-------------------+-------+----------
public | geography_columns | view | postgres
public | geometry_columns | table | postgres
public | spatial_ref_sys | table | postgres
(3 rows)
6.
gis=# \d spatial_ref_sys
Table "public.spatial_ref_sys"
Column | Type | Modifiers
-----------+-------------------------+-----------
srid | integer | not null
auth_name | character varying(256) |
auth_srid | integer |
srtext | character varying(2048) |
proj4text | character varying(2048) |
Indexes:
"spatial_ref_sys_pkey" PRIMARY KEY, btree (srid)
7.
gis=# select count(*) from spatial_ref_sys;
count
-------
3749
(1 row)
8.
gis=# select * from spatial_ref_sys limit 2;
srid | auth_name | auth_srid | srtext | proj4text
------+-----------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------
3819 | EPSG | 3819 | GEOGCS["HD1909",DATUM["Hungarian_Datum_1909",SPHEROID["Bessel 1841",6377397.155,299.1528128,AUTHORITY["EPSG","7004"]],TOWGS84[595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408],AUTHORITY["EPSG","1024"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","3819"]] | +proj=longlat +ellps=bessel +towgs84=595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408 +no_defs
3821 | EPSG | 3821 | GEOGCS["TWD67",DATUM["Taiwan_Datum_1967",SPHEROID["GRS 1967 Modified",6378160,298.25,AUTHORITY["EPSG","7050"]],AUTHORITY["EPSG","1025"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","3821"]] | +proj=longlat +ellps=aust_SA +no_defs
(2 rows)
9.
gis=# select srid,srtext from spatial_ref_sys where srid=3821;
srid | srtext
------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3821 | GEOGCS["TWD67",DATUM["Taiwan_Datum_1967",SPHEROID["GRS 1967 Modified",6378160,298.25,AUTHORITY["EPSG","7050"]],AUTHORITY["EPSG","1025"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","3821"]]
(1 row)
gis=#
.
Slitaz -- postgis-1.5.3
PostGIS 1.5.3 Release
The 1.5.3 release of PostGIS is now available. This is a minor release addressing a few issues that have been filed since the 1.5.2 release in addition to fixes that allow it to compile against PostgreSQL 9.1beta.1.
postgres@slitaz:~$ psql -U postgis -d gis
psql (9.0.4)
Type "help" for help.
2.
gis=# select version();
version
---------------------------------------------------------------------------------------------------------
PostgreSQL 9.0.4 on i486-slitaz-linux-gnu, compiled by GCC i486-slitaz-linux-gcc (SliTaz) 4.5.2, 32-bit
(1 row)
3.
gis=# select postgis_full_version();
postgis_full_version
-------------------------------------------------------------------------------------------------------
POSTGIS="1.5.3" GEOS="3.3.0-CAPI-1.7.0" PROJ="Rel. 4.7.1, 23 September 2009" LIBXML="2.7.8" USE_STATS
(1 row)
4.
gis=# \! tazpkg info postgis
Tazpkg information
================================================================================
Package : postgis
Version : 1.5.3
Category : misc
Short desc : geographic objects support for PostgreSQL
Maintainer :
Depends : proj geos
Build deps : proj geos
Web site : http://postgis.org/
================================================================================
5.
gis=# \q
postgres@slitaz:~$
.
2011-09-07
Slitaz -- QGIS 1.7
| Quantum GIS Documentation Version 1.7.0 Wrocław Please read this entire document for important information about this release. You find a PDF manual of the current version on the QGIS website. |
Whats new in Version 1.7.0 'Wrocław'?
This release is named after the town of Wrocław in Poland. The Department of Climatology and Atmosphere Protection, University of Wrocław kindly hosted our developer meeting in November 2010. Please note that this is a release in our 'cutting edge' release series. As such it contains new features and extends the programmatic interface over QGIS 1.0.x and QGIS 1.6.0. As with any software, there may be bugs and issues that we were not able to fix in time for the release. We therefore recommend that you test this version before rolling it out en-masse to your users.This release includes over 277 bug fixes and many new features and enhancements. Once again it is impossible to document everything here that has changed so we will just provide a bullet list of key new features here.
[..]
Available QGIS Data Provider Plugins
- WFS data provider
- Delimited text data provider
- GDAL provider
- GPS eXchange format provider
- Memory provider
- OGR data provider (compiled against GDAL/OGR library version 1.6.3, running against GDAL/OGR library version 1.6.3)
- Open Street Map data provider
- PostgreSQL/PostGIS data provider
- SpatiaLite data provider
- OGC Web Map Service version 1.3 data provider
Available Qt Database Plugins
- QSQLITE
- QMYSQL3
- QMYSQL
- QODBC3
- QODBC
- QPSQL7
- QPSQL
Available Qt Image Plugins
Qt Image Plugin Search Paths
/usr/lib/qt/plugins
/usr/bin
- bmp
- gif
- ico
- jpeg
- jpg
- mng
- pbm
- pgm
- png
- ppm
- svg
- svgz
- tif
- tiff
- xbm
- xpm
2011-08-25
Slitaz -- perl-dbd-oracle
complie perl module DBD::Oracle
# perl Makefile.PL
# make
# make install
1.
oracle@slitaz:~$ tazpkg list | grep perl
perl 5.12.3 development
perl-dbi-dbd 1.607 development
perl-uri 1.58 development
perl-xml-parser 2.40 development
perl-xml-simple 2.18 development
oracle@slitaz:~$
2.
http://cpan.stu.edu.tw/authors/id/P/PY/PYTHIAN/DBD-Oracle-1.29_1.tar.gz
http://cpan.stu.edu.tw/modules/by-module/DBD/DBD-Oracle-1.28.tar.gz
3.
root@slitaz:/usr/src/DBD-Oracle-1.29_1# perl Makefile.PL
Using DBI 1.607 (for perl 5.012003 on i686-linux) installed in /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI/
Configuring DBD::Oracle for perl 5.012003 on linux (i686-linux)
Remember to actually *READ* the README file! Especially if you have any problems.
Installing on a linux, Ver#2.6
Using Oracle in /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
DEFINE _SQLPLUS_RELEASE = "1002000100" (CHAR)
Oracle version 10.2.0.1 (10.2)
Found /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_xe.mk
Using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_xe.mk
Looks like Oracle XE (/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_xe.mk)
Reading /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_xe.mk
Your LD_LIBRARY_PATH env var is set to '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib:'
client_version=10.2
DEFINE= -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"10.2.0.1\" -DORA_OCI_102
Checking for functioning wait.ph
System: perl5.012003 linux tank 2.6.30.6-slitaz #1 smp thu apr 8 21:19:10 cest 2010 i686 gnulinux
Compiler: cc -O2 -march=i486 -Os -pipe -fomit-frame-pointer -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Linker: /usr/bin/ld
Sysliblist: -ldl -lm -lpthread -lnsl -lirc
Oracle makefiles would have used these definitions but we override them:
CC: /usr/bin/gcc
LDFLAGS: -g
[-g]
Linking with -L/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/ -lclntsh -lpthread
WARNING: If you have problems you may need to rebuild perl with threading enabled.
Checking if your kit is complete...
Looks good
LD_RUN_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib
Using DBD::Oracle 1.29_1.
Using DBD::Oracle 1.29_1.
Using DBI 1.607 (for perl 5.012003 on i686-linux) installed in /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI/
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help.txt files.
(Of course, you have read README by now anyway, haven't you?)
root@slitaz:/usr/src/DBD-Oracle-1.29_1#
4.
root@slitaz:/usr/src/DBD-Oracle-1.29_1# make
cp Oracle.pm blib/lib/DBD/Oracle.pm
cp oraperl.ph blib/lib/oraperl.ph
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp Oraperl.pm blib/lib/Oraperl.pm
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp lib/DBD/Oracle/Object.pm blib/lib/DBD/Oracle/Object.pm
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm
/usr/bin/perl -p -e "s/~DRIVER~/Oracle/g" /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI/Driver.xst > Oracle.xsi
/usr/bin/perl /usr/lib/perl5/5.12.3/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.12.3/ExtUtils/typemap -typemap typemap Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c
cc -c -I/usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public/ -DLINUX -D_GNU_SOURCE -D_REENTRANT -g -march=i486 -Os -pipe -fomit-frame-pointer -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.29_1\" -DXS_VERSION=\"1.29_1\" -fPIC "-I/usr/lib/perl5/5.12.3/i686-linux/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"10.2.0.1\" -DORA_OCI_102 Oracle.c
cc -c -I/usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public/ -DLINUX -D_GNU_SOURCE -D_REENTRANT -g -march=i486 -Os -pipe -fomit-frame-pointer -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.29_1\" -DXS_VERSION=\"1.29_1\" -fPIC "-I/usr/lib/perl5/5.12.3/i686-linux/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"10.2.0.1\" -DORA_OCI_102 dbdimp.c
cc -c -I/usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public/ -DLINUX -D_GNU_SOURCE -D_REENTRANT -g -march=i486 -Os -pipe -fomit-frame-pointer -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.29_1\" -DXS_VERSION=\"1.29_1\" -fPIC "-I/usr/lib/perl5/5.12.3/i686-linux/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"10.2.0.1\" -DORA_OCI_102 oci8.c
oci8.c: In function ‘ora_blob_read_mb_piece’:
oci8.c:1781:4: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type ‘ub4’
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib" cc -shared -O2 -fstack-protector Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so \
-L/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/ -lclntsh -lpthread \
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
cp Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" ora_explain.PL ora_explain
Extracted ora_explain from ora_explain.PL with variable substitutions.
cp ora_explain blib/script/ora_explain
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/ora_explain
root@slitaz:/usr/src/DBD-Oracle-1.29_1#
5.
root@slitaz:/usr/src/DBD-Oracle-1.29_1# make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/Oracle.h
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/dbdimp.h
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/Oracle.bs
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/ocitrace.h
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/Oracle.so
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/mk.pm
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/oraperl.ph
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/Oraperl.pm
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/DBD/Oracle.pm
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/DBD/Oracle/GetInfo.pm
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/DBD/Oracle/Object.pm
Installing /usr/bin/ora_explain
Appending installation info to /usr/lib/perl5/5.12.3/i686-linux/perllocal.pod
root@slitaz:/usr/src/DBD-Oracle-1.29_1#
.
# perl Makefile.PL
# make
# make install
1.
oracle@slitaz:~$ tazpkg list | grep perl
perl 5.12.3 development
perl-dbi-dbd 1.607 development
perl-uri 1.58 development
perl-xml-parser 2.40 development
perl-xml-simple 2.18 development
oracle@slitaz:~$
2.
http://cpan.stu.edu.tw/authors/id/P/PY/PYTHIAN/DBD-Oracle-1.29_1.tar.gz
http://cpan.stu.edu.tw/modules/by-module/DBD/DBD-Oracle-1.28.tar.gz
3.
root@slitaz:/usr/src/DBD-Oracle-1.29_1# perl Makefile.PL
Using DBI 1.607 (for perl 5.012003 on i686-linux) installed in /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI/
Configuring DBD::Oracle for perl 5.012003 on linux (i686-linux)
Remember to actually *READ* the README file! Especially if you have any problems.
Installing on a linux, Ver#2.6
Using Oracle in /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
DEFINE _SQLPLUS_RELEASE = "1002000100" (CHAR)
Oracle version 10.2.0.1 (10.2)
Found /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_xe.mk
Using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_xe.mk
Looks like Oracle XE (/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_xe.mk)
Reading /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_xe.mk
Your LD_LIBRARY_PATH env var is set to '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib:'
client_version=10.2
DEFINE= -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"10.2.0.1\" -DORA_OCI_102
Checking for functioning wait.ph
System: perl5.012003 linux tank 2.6.30.6-slitaz #1 smp thu apr 8 21:19:10 cest 2010 i686 gnulinux
Compiler: cc -O2 -march=i486 -Os -pipe -fomit-frame-pointer -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Linker: /usr/bin/ld
Sysliblist: -ldl -lm -lpthread -lnsl -lirc
Oracle makefiles would have used these definitions but we override them:
CC: /usr/bin/gcc
LDFLAGS: -g
[-g]
Linking with -L/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/ -lclntsh -lpthread
WARNING: If you have problems you may need to rebuild perl with threading enabled.
Checking if your kit is complete...
Looks good
LD_RUN_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib
Using DBD::Oracle 1.29_1.
Using DBD::Oracle 1.29_1.
Using DBI 1.607 (for perl 5.012003 on i686-linux) installed in /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI/
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help.txt files.
(Of course, you have read README by now anyway, haven't you?)
root@slitaz:/usr/src/DBD-Oracle-1.29_1#
4.
root@slitaz:/usr/src/DBD-Oracle-1.29_1# make
cp Oracle.pm blib/lib/DBD/Oracle.pm
cp oraperl.ph blib/lib/oraperl.ph
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp Oraperl.pm blib/lib/Oraperl.pm
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp lib/DBD/Oracle/Object.pm blib/lib/DBD/Oracle/Object.pm
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm
/usr/bin/perl -p -e "s/~DRIVER~/Oracle/g" /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI/Driver.xst > Oracle.xsi
/usr/bin/perl /usr/lib/perl5/5.12.3/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.12.3/ExtUtils/typemap -typemap typemap Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c
cc -c -I/usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public/ -DLINUX -D_GNU_SOURCE -D_REENTRANT -g -march=i486 -Os -pipe -fomit-frame-pointer -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.29_1\" -DXS_VERSION=\"1.29_1\" -fPIC "-I/usr/lib/perl5/5.12.3/i686-linux/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"10.2.0.1\" -DORA_OCI_102 Oracle.c
cc -c -I/usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public/ -DLINUX -D_GNU_SOURCE -D_REENTRANT -g -march=i486 -Os -pipe -fomit-frame-pointer -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.29_1\" -DXS_VERSION=\"1.29_1\" -fPIC "-I/usr/lib/perl5/5.12.3/i686-linux/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"10.2.0.1\" -DORA_OCI_102 dbdimp.c
cc -c -I/usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBI -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public/ -DLINUX -D_GNU_SOURCE -D_REENTRANT -g -march=i486 -Os -pipe -fomit-frame-pointer -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.29_1\" -DXS_VERSION=\"1.29_1\" -fPIC "-I/usr/lib/perl5/5.12.3/i686-linux/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"10.2.0.1\" -DORA_OCI_102 oci8.c
oci8.c: In function ‘ora_blob_read_mb_piece’:
oci8.c:1781:4: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type ‘ub4’
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib" cc -shared -O2 -fstack-protector Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so \
-L/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/ -lclntsh -lpthread \
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
cp Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" ora_explain.PL ora_explain
Extracted ora_explain from ora_explain.PL with variable substitutions.
cp ora_explain blib/script/ora_explain
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/ora_explain
root@slitaz:/usr/src/DBD-Oracle-1.29_1#
5.
root@slitaz:/usr/src/DBD-Oracle-1.29_1# make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/Oracle.h
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/dbdimp.h
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/Oracle.bs
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/ocitrace.h
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/Oracle.so
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/auto/DBD/Oracle/mk.pm
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/oraperl.ph
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/Oraperl.pm
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/DBD/Oracle.pm
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/DBD/Oracle/GetInfo.pm
Installing /usr/lib/perl5/site_perl/5.12.3/i686-linux/DBD/Oracle/Object.pm
Installing /usr/bin/ora_explain
Appending installation info to /usr/lib/perl5/5.12.3/i686-linux/perllocal.pod
root@slitaz:/usr/src/DBD-Oracle-1.29_1#
.
Slitaz -- Oracle XE 10g - perl
1.
oracle@slitaz:~$ perl oraxe-query.pl
Beijing
Bern
Bombay
Geneva
Hiroshima
London
Mexico City
Munich
Oxford
Roma
Sao Paulo
Seattle
Singapore
South Brunswick
South San Francisco
Southlake
Stretford
Sydney
Tokyo
Toronto
Utrecht
Venice
Whitehorse
2.
oracle@slitaz:~$ cat oraxe-query.pl
#!/usr/bin/perl
use DBI;
use strict;
use vars qw($dbh $sth);
# get a database handle
$dbh = DBI->connect('dbi:Oracle:', 'hr@localhost/XE', 'oracle');
# get a statement handle
$sth=$dbh->prepare('SELECT city FROM locations');
# execute the statement handle
$sth->execute();
# loop through the results
while (my ($r_city) = $sth->fetchrow())
{
print " $r_city \n";
}
$sth->finish();
$dbh->disconnect();
oracle@slitaz:~$
3.
Extract from
An Introduction to DBD::Oracle
[..]
4 Using DBI and DBD::Oracle
4.1 Understanding DBI
Since its inception by Tim Bunce in 1994, DBI (DataBase Interface) has been the de facto standard for interfacing databases with the Perl language. Thanks to the designers' foresight, DBI is database-independent, with methods, variables, and conventions that provide a consistent programming interface, no matter what database management system is being used.
As an API, DBI is just an interface to a database driver--in our case, DBD::Oracle--so you can think of DBI as the glue that links the Perl language to a specific database driver, as seen in the diagram below.
DBD::Oracle Diagram
.
2011-08-23
Slitaz -- Oracle XE - perl - lighttpd
Oracle 10g XE + DBD::Oracle + FastCGI
Fast CGI on Lighttpd
Invocation number 4 PID 14231.Requested uri is /index.html
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
1.
oracle@slitaz:~$ ps ax | grep httpd
14221 www 0:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
14222 www 0:00 /usr/bin/perl /usr/bin/lighttpd.fcgi
14225 www 0:00 /usr/bin/perl /usr/bin/lighttpd.fcgi
14228 www 0:00 /usr/bin/perl /usr/bin/lighttpd.fcgi
14231 www 0:00 /usr/bin/perl /usr/bin/lighttpd.fcgi
14239 root 0:00 leafpad /var/log/lighttpd/error.log
14376 oracle 0:00 grep httpd
2.
oracle@slitaz:~$ ls /tmp/fastcgi.socket*
/tmp/fastcgi.socket-0 /tmp/fastcgi.socket-2
/tmp/fastcgi.socket-1 /tmp/fastcgi.socket-3
3.
oracle@slitaz:~$ cat /usr/bin/lighttpd.fcgi
#!/usr/bin/perl
use CGI::Fast qw(:standard);
use DBI;
use URI;
$ENV{FCGI_SOCKET_PATH} = "/tmp/fastcgi.socket";
$ENV{FCGI_LISTEN_QUEUE} = 100;
$COUNTER = 0;
my $dbh = DBI->connect('dbi:Oracle:', 'hr@localhost/XE', 'oracle') || die ;
while (new CGI::Fast) {
print header;
print start_html("Fast CGI Rocks");
h1("Fast CGI on Lighttpd"),
"Invocation number ",b($COUNTER++),
" PID ",b($$),".",
hr;
my $uri = URI->new( $ENV{REQUEST_URI} );
print br;
print "Requested uri is ",b($uri);
my $sql = 'SELECT * from v$version';
my $sth = $dbh->prepare($sql);
$sth->execute();
while (my (@s) = $sth->fetchrow_array())
{
print br;
print b($s[0]);
}
print end_html;
}
4.
oracle@slitaz:~$ netstat -nltp
netstat: showing only processes with your user ID
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 10723/tnslsnr
tcp 0 0 0.0.0.0:1521 0.0.0.0:* LISTEN 10723/tnslsnr
tcp 0 0 0.0.0.0:55037 0.0.0.0:* LISTEN 10749/xe_d000_XE
tcp 0 0 :::6000 :::* LISTEN -
oracle@slitaz:~$
.
2011-08-18
Slitaz -- Oracle JDeveloper 10g
Oracle JDeveloper
Oracle JDeveloper is a free integrated development environment that simplifies the development of Java-based SOA applications and user interfaces with support for the full development life cycle.
| Oracle JDeveloper 10.1.3 Archive | |
| Oracle JDeveloper 10g (Version 10.1.3.0, build 3673) Supported on Windows NT/2000/XP, Linux, Solaris, HP-UX, and Macintosh | |
root@slitaz:~# java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)
root@slitaz:~# /dev/shm/jdev10g/jdev/bin/jdev &
Oracle JDeveloper 10g 10.1.3
Copyright 1997, 2005 Oracle. All Rights Reserved
.
2010-02-27
Slitaz -- sqlite

tux@alanyih:~$ tazpkg info sqlite
Tazpkg information
================================================================================
Package : sqlite
Version : 3.6.16
Category : office
Short desc : Small SQL database engine.
Maintainer : pankso@slitaz.org
Web site : http://www.sqlite.org/
================================================================================
tux@alanyih:~$ ls ~/.mozilla/firefox/7kdi32oc.default/*.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/content-prefs.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/cookies.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/downloads.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/formhistory.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/permissions.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/places.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/search.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/signons.sqlite
/home/tux/.mozilla/firefox/7kdi32oc.default/urlclassifier3.sqlite
tux@alanyih:~$
Add-ons for Firefox
SQLite Manager 0.5.11
by Tarakant Tripathy, Mrinal Kant
https://addons.mozilla.org/en-US/firefox/addon/5817?from=%2Fzh-TW%2Ffirefox%2Faddon%2F5817
More about this add-on
Manage any SQLite database on your computer. An intuitive heirarchical tree showing database objects. Helpful dialogs to manage tables, indexes, views and triggers. You can browse and search the tables, as well as add, edit, delete and duplicate the records. Facility to execute any sql query. The views can be searched too. A dropdown menu helps with the sql syntax thus making writing sql easier. Easy access to common operations through menu, toolbars, buttons and context-menu. Export tables/views/database in csv/xml/sql format. Import from csv/xml/sql (both UTF-8 and UTF-16). Possible to execute multiple sql statements in Execute tab. You can save the queries. Support for ADS on Windows.
New issues, bugs, request for enhancements can be entered at:
http://code.google.com/p/sqlite-manager/issues/list.
.
2010-02-21
Slitaz -- tazpkg-web

root@slitaz:~# tail -5 /var/log/lighttpd/alanyih.org-access.log
10.0.2.15 www.alanyih.org - [21/Feb/2010:22:06:43 +0000] "GET /cooking/development.html HTTP/1.1" 200 429024 "http://www.alanyih.org/cooking/x-window.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090926 Firefox/3.5 (SliTaz GNU/Linux)"
10.0.2.15 www.alanyih.org - [21/Feb/2010:22:07:23 +0000] "GET /cooking/misc.html HTTP/1.1" 200 43727 "http://www.alanyih.org/cooking/development.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090926 Firefox/3.5 (SliTaz GNU/Linux)"
10.0.2.15 www.alanyih.org - [21/Feb/2010:22:07:28 +0000] "GET /cooking/non-free.html HTTP/1.1" 200 17516 "http://www.alanyih.org/cooking/misc.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090926 Firefox/3.5 (SliTaz GNU/Linux)"
10.0.2.15 www.alanyih.org - [21/Feb/2010:22:07:53 +0000] "GET /cooking/multimedia.html HTTP/1.1" 200 85275 "http://www.alanyih.org/cooking/non-free.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090926 Firefox/3.5 (SliTaz GNU/Linux)"
10.0.2.15 www.alanyih.org - [21/Feb/2010:22:08:00 +0000] "GET /cooking/office.html HTTP/1.1" 200 32689 "http://www.alanyih.org/cooking/multimedia.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090926 Firefox/3.5 (SliTaz GNU/Linux)"
root@slitaz:~#
1. COOKING="/home/slitaz/cooking" ===> COOKING="/home/slitaz"
root@slitaz:~# head -13 /etc/slitaz/tazpkg-web.conf
# tazpkg-web.conf: SliTaz packages Web interface configuration file.
#
# Path to the Web interface.
WEB_INTERFACE="/var/www/vhosts/pkgs"
# Path to xHTML and XML templates.
LIB_DIR="/var/lib/tazpkg-web"
# Path to each version.
STABLE="/home/slitaz/stable"
#COOKING="/home/slitaz/cooking"
COOKING="/home/slitaz"
root@slitaz:~# ls -l /home/slitaz
lrwxrwxrwx 1 root root 16 Feb 21 07:56 src -> /media/cdrom/src
lrwxrwxrwx 1 root root 16 Feb 21 07:56 wok -> /media/cdrom/wok
root@slitaz:~#
2. /etc/lighttpd/lighttpd.conf
line 146
server.document-root = "/var/www/vhosts/pkgs" <====
# server.document-root = "/var/www/vhost/example.com/html"
.
2010-01-26
Slitaz -- stats
Statistics for www.slitaz.org (2009)
http://tank.slitaz.org/awstats.pl?config=www.slitaz.org
Advanced Web Statistics 6.9 (build 1.925) - Created by awstats (plugins: geoipfree)
------
http://mirror.switch.ch/ftp/mirror/slitaz/packages/cooking/awstats-6.95.tazpkg
awstats-6.95.tazpkg 30-Jan-2010 12:29 530K
AWStats logfile analyzer Documentation
This is a fast tip to install Geo-IPfree perl module to be used by AWStats ...
http://awstats.sourceforge.net/docs/awstats.pdf
http://linux.vbird.org/linux_server/0360apache.php#other_pkg_awstats
.
2009-12-07
Slitaz -- cat
Part A: arramagong-livedvd-2.0.3-Final.iso.0 (1.9 GB) (md5sum)
Part B: arramagong-livedvd-2.0.3-Final.iso.1 (1.8 GB) (md5sum)
# recombine
cat arramagong-livedvd-2.0.3-Final.iso.0 \
arramagong-livedvd-2.0.3-Final.iso.1 \
> arramagong-livedvd-2.0.3-Final.iso
MS-Windows (cmd.exe)
copy /B image.iso.1 + image.iso.2 image.iso
Extract from
http://download.osgeo.org/livedvd/
.....
Arramagong GISVM
A 2.0 version has been developed for the FOSS4G 2009 conference. See the Quick Start page for guidance on downloading and running.
Arramagong GISVM and LiveDVD - 2.0.3 Final
30 September 2009
ISO Image (to be burned onto a DVD then run):
Torrent file now available, please remember to leave it open when you are done to help others.
Don't know what a torrent is or how to use one? See this: How to Torrent.
Torrent: arramagong-livedvd-2.0.3-Final.iso.torrent (final download 3.6 GB)
OR download the image directly from the OSGeo download server. Due to its size it has been split into two parts (.0 and .1) which will need to be put back together again. On a Mac or other UNIX this can be done using the cat utility from the Terminal prompt, as follows:
# recombine
cat arramagong-livedvd-2.0.3-Final.iso.0 \
arramagong-livedvd-2.0.3-Final.iso.1 \
> arramagong-livedvd-2.0.3-Final.iso
# check image integrity
md5sum arramagong-livedvd-2.0.3-Final.iso
MS-Windows users should see the Quick Start guide above for instructions.
Part A: arramagong-livedvd-2.0.3-Final.iso.0 (1.9 GB) (md5sum)
Part B: arramagong-livedvd-2.0.3-Final.iso.1 (1.8 GB) (md5sum)
Reconstituted ISO md5sum: arramagong-livedvd-2.0.3-Final.iso.md5
If the download is stopped for some reason part way through, continue without restarting from the beginning by making sure the filename is unaltered (rename if needed) and running "wget -c {URL}" from the directory that the partially downloaded file is in.
Virtual Machine
arramagong-gisvm-2.0.3-final.7z (1.9GB) (md5sum)
Notes about the Virtual Image. See Quick Start for more details.
Extracted image is 6.4GB
20 GB Disk, disk will grow as you add files up to this amount.
1 GB Ram, You can adjust this before booting the image, min recommended 512MB
1 Processor
NAT network connection, host computer acts as a router
800x600 Resolution Does not have VM Ware or Virtual Box Tools, you will need to install these for your respective tool in order to get higher resolutions.
Log Files
Package build logs
Image build_iso.log
.
Part B: arramagong-livedvd-2.0.3-Final.iso.1 (1.8 GB) (md5sum)
# recombine
cat arramagong-livedvd-2.0.3-Final.iso.0 \
arramagong-livedvd-2.0.3-Final.iso.1 \
> arramagong-livedvd-2.0.3-Final.iso
MS-Windows (cmd.exe)
copy /B image.iso.1 + image.iso.2 image.iso
Extract from
http://download.osgeo.org/livedvd/
.....
Arramagong GISVM
A 2.0 version has been developed for the FOSS4G 2009 conference. See the Quick Start page for guidance on downloading and running.
Arramagong GISVM and LiveDVD - 2.0.3 Final
30 September 2009
ISO Image (to be burned onto a DVD then run):
Torrent file now available, please remember to leave it open when you are done to help others.
Don't know what a torrent is or how to use one? See this: How to Torrent.
Torrent: arramagong-livedvd-2.0.3-Final.iso.torrent (final download 3.6 GB)
OR download the image directly from the OSGeo download server. Due to its size it has been split into two parts (.0 and .1) which will need to be put back together again. On a Mac or other UNIX this can be done using the cat utility from the Terminal prompt, as follows:
# recombine
cat arramagong-livedvd-2.0.3-Final.iso.0 \
arramagong-livedvd-2.0.3-Final.iso.1 \
> arramagong-livedvd-2.0.3-Final.iso
# check image integrity
md5sum arramagong-livedvd-2.0.3-Final.iso
MS-Windows users should see the Quick Start guide above for instructions.
Part A: arramagong-livedvd-2.0.3-Final.iso.0 (1.9 GB) (md5sum)
Part B: arramagong-livedvd-2.0.3-Final.iso.1 (1.8 GB) (md5sum)
Reconstituted ISO md5sum: arramagong-livedvd-2.0.3-Final.iso.md5
If the download is stopped for some reason part way through, continue without restarting from the beginning by making sure the filename is unaltered (rename if needed) and running "wget -c {URL}" from the directory that the partially downloaded file is in.
Virtual Machine
arramagong-gisvm-2.0.3-final.7z (1.9GB) (md5sum)
Notes about the Virtual Image. See Quick Start for more details.
Extracted image is 6.4GB
20 GB Disk, disk will grow as you add files up to this amount.
1 GB Ram, You can adjust this before booting the image, min recommended 512MB
1 Processor
NAT network connection, host computer acts as a router
800x600 Resolution Does not have VM Ware or Virtual Box Tools, you will need to install these for your respective tool in order to get higher resolutions.
Log Files
Package build logs
Image build_iso.log
.
2008-08-20
Slitaz - phppgadmin - postgis


SliTaz GNU/Linux cooking-20080716 (28,6 Mb) - slitaz-cooking.iso [ md5 ]
postgresql-8.3.3.tazpkg
phppgadmin-4.2.tazpkg
postgis-1.3.3
http://ftp.tw.debian.org/debian/pool/main/p/postgis/
postgis_1.3.3-3_i386.deb 25-Jun-2008 20:02 206K
postgresql-8.3-postgis_1.3.3-3_i386.deb 25-Jun-2008 20:02 432K
http://ftp.tw.debian.org/debian/pool/main/p/proj/
proj_4.6.0-1_i386.deb 22-Dec-2007 11:02 395K
http://ftp.tw.debian.org/debian/pool/main/g/geos/
libgeos-3.0.0_3.0.0-5_i386.deb 13-May-2008 03:47 447K
libgeos-c1_3.0.0-5_i386.deb 13-May-2008 03:47 26K
http://ftp.tw.debian.org/debian/pool/main/p/postgresql-8.1/
libpq4_8.1.11-0etch1_i386.deb 18-Jan-2008 08:32 271K
2008-08-19
Slitaz - pgadmin 3 - postgis

Slitaz - pgadmin 3 - postgis
http://forum.slitaz.org/viewtopic.php?id=746
SliTaz GNU/Linux cooking-20080716 (28,6 Mb) - slitaz-cooking.iso
root@slitaz:~# tazpkg get-install pkg-config
root@slitaz:~# tazpkg get-install libxslt
root@slitaz:~# tazpkg get-install wxWidgets
http://ftp.tw.debian.org/debian/pool/main/p/pgadmin3/
pgadmin3-data_1.8.4-1_all.deb 04-Jul-2008 08:17 2.5M
pgadmin3_1.8.4-1_i386.deb 05-Jul-2008 01:47 1.4M
pgagent_1.8.4-1_i386.deb 05-Jul-2008 01:47 37K
alanyih=# select postgis_full_version();
postgis_full_version
----------------------------------------------------------------------------------
POSTGIS="1.3.3" GEOS="3.0.0-CAPI-1.4.1" PROJ="Rel. 4.6.0, 21 Dec 2007" USE_STATS
(1 row)
postgis-pgadmin3.jpg
#2 2008-08-20 10:35:48
bellard Contributor
Re: Slitaz - postgis - pgadmin3
Can you try http://mirror.slitaz.org/packages/cooki … 4.2.tazpkg ?
-pascal
#3 2008-08-20 20:59:26
alanyih Member
Re: Slitaz - postgis - pgadmin3
ok!
phppgadmin.png
phppgadmin-1.jpg
Offline
#4 2008-08-21 04:48:24
alanyih Member
Re: Slitaz - postgis - pgadmin3
Thanks!!
Pls check!
/usr/share/phppgadmin/conf/config.inc.php
......
// If extra login security is true, then logins via phpPgAdmin with no
// password or certain usernames (pgsql, postgres, root, administrator)
// will be denied. Only set this false once you have read the FAQ and
// understand how to change PostgreSQL's pg_hba.conf to enable
// passworded local connections.
$conf['extra_login_security'] = false;
2008-05-21
Slitaz -- PostgreSQL8.3.1

Slitaz -- PostgreSQL8.3.1
postgres@slitaz:~$ psql
Welcome to psql 8.3.1, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
postgres=# select version();
version
------------------------------------------------------------------------------------------
PostgreSQL 8.3.1 on i486-pc-linux-gnu, compiled by GCC i486-pc-linux-gnu-gcc (GCC) 4.2.2
(1 row)
postgres=# \!netstat -nlt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
netstat: no kernel support for AF INET6 (tcp)
postgres=# \!uname -a
Linux slitaz 2.6.24.2-slitaz #1 SMP Fri May 9 22:03:01 CEST 2008 i686 unknown
postgres=#
root@slitaz:~4 uname -a
Linux slitaz 2.6.24.2-slitaz #1 SMP Fri May 9 22:03:01 CEST 2008 i686 unknown
root@slitaz:~5 netstat -nlt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
netstat: no kernel support for AF INET6 (tcp)



















