AD DESCRIPTION
AD DESCRIPTION
Advertise Now!

Tổng hợp thủ thuật Blog

Khá nhiều bạn mail cho mình hỏi về các thủ thuật liên quan tới Blogspot, nhưng không có thời gian nên khó có thể trả lời hết được. Vì thế mình muốn tổng kết các Kho thủ thuật và tài nguyên cho Blogspot rất hữu ích mà mình biết.

Làm sao gửi file chia sẻ lớn hơn 1GB

Làm sao gửi file chia sẻ lớn hơn 1GB Làm sao gửi file chia sẻ lớn hơn 1GB Chia sẻ file cho bạn bè là chuyện hoàn toàn không đơn giản, khi kèm qua mail, nhất là mọi file quá lớn vài chục MB vô cùng khó khăn.

Chia sẻ file dung lượng lớn cực kỳ đơn giản với Pando

Chia sẻ file dung lượng lớn cực kỳ đơn giản với Pando Có bao giờ bạn gặp rắc rối khi muốn chia sẻ cho bạn bè của mình một số file thông qua Internet nhưng lại không biết upload chúng lên đâu để chia sẽ vì dung lượng của chúng lớn? Vậy thì bạn có thể nhờ đến sự giúp đỡ của Pando.

5 dịch vụ chia sẻ file trực tuyến tốc độ cao

Trên Internet có nhiều website miễn phí, hỗ trợ người sử dụng đăng ảnh, video... để chia sẻ nhanh chóng và dễ dàng với bạn bè mà không cần mất thời gian gửi từng e-mail. Với dịch vụ miễn phí.

My favourite cigarettes

Theo hiểu biết nông cạn của tôi thì có tất cả là 10 loại esse từ rẻ đến đắt, hôm nọ hỏi 1 bao golden leaf có giá tận 200k/hộp :-SS choáng :-S Sau đây là danh sách các loại esse.

Thứ Năm, 17 tháng 11, 2011

Ebook Bo-blog 1.4

Highslide JS

Cộng đồng sử dụng Bo-blog ở Việt Nam ngày càng đông, các website hỗ trợ người dùng ở Việt Nam đã có 3 web chính là: Freecodevn, Hội Quán Tin Học, VietBoblog... Vậy tại sao bạn ko sử dụng nó nhỉ.
Congtoan tiếp tục cập nhật thêm cuốn ebook về bo-blog, bản 1.4 này mình thêm một số bài viết mới như cài đặt host trên Cpanel 11 bằng hình ảnh chi tiết... dành cho các bạn mới tập làm quen với bo-blog, hy vọng nó sẽ giúp bạn phần nào, chắc chắn cuốn ebook này còn nhiều điểm thiếu sót, nhưng chắc là nó cũng đủ để bạn nào chưa biết có thể sử dụng bo-blog một cách thành thạo... Mong nhận được sự góp ý từ các bạn.

Download

Vertrigo Serv 2.21 Thủ thuật Bo-blog

Highslide JS

Phần mền này được tích hợp sẵn các thành phần như: Apache 2.0.63, PHP 5.2.6, MySQL 5.0.51b, SQLite 3.5.9, Smarty 2.6.19, PhpMyAdmin 2.11.7, ZendOptimizer 3.3.3, SQLiteManager 1.2.0...
Bạn chỉ việc cài gói này vào và có thể test bất cứ sources nào bằng PHP rất tiện lợi để cho bạn test thử các chức năng mới cho một blog... trước khi đưa lên host chính. Trong cuốn ebook về bo-blog của mình có hướng dẫn sử dụng gói phần mềm này, các bạn có thể tải cuốn ebook về để biết cách sử dụng nếu bạn chưa biêt.
VertrigoServ has been developed as a highly professional, easy to install package consisting of Apache, PHP, MySQL, multi-user, SQL Database Management System, SQLite, SQLiteManager, PhpMyAdmin and Zend Optimizer for Windows platform. With a convenient all-in-one installer, all components are installed in a single directory and can be used immediately after the installation process has completed. An uninstaller allows you to remove the VertrigoServ from hard disc. It is designed to be as small and flexible as possible and is therefore highly suitable for internet distribution. VertrigoServ is excellent both for beginners and for advanced users.

Noow

Watch any HD Video

Noow is a free HD video player

Crystal clear HD video delivers the quality and fresh look that transforms ordinary video files into exceptional works! 

Take advantage of the latest HD videos with Noow!

  • Watch any HD Video
  • Download any torrent file
  • Download any YouTube video
  • Organize & Manage your videos

Download & Play

Download any type of video files

With NOOW you can download any video and Torrent file,
whether it is an individual BitTorrent file or a torrent in feeds.
Just several easy steps to play, stop and resume
any of the downloads!

  • Watch any HD Video
  • Download any torrent file
  • Download any YouTube video
  • Organize & Manage your videos

YouTube

Download your favorite YouTube Movies

Download and save your favorite videos directly from YouTube! 

All you need to do is click the "Download This Video" button! 

The video will be downloaded into your media library right away!

  • Watch any HD Video
  • Download any torrent file
  • Download any YouTube video
  • Organize & Manage your videos

Organize & Manage

Search for all video files saved on your computer during the installation and create your own media library!

Organize and manage your playlists and feeds!

  • Watch any HD Video
  • Download any torrent file
  • Download any YouTube video
  • Organize & Manage your videos
Download Noow! Noow Player Version 0.99b is Free!

Noow

Thứ Sáu, 11 tháng 11, 2011

Installing GeoServer on Ubuntu

The easiest way to install and set up GeoServer is by installing the full OpenGeo Suite. The OpenGeo Suite comes complete with GeoServer as well as a full geospatial software stack, including utilities, data, and documentation. That said, OpenGeo also provides individual packages for installing the components separately.

This page will describe how to install GeoServer on Ubuntu 10.04 (Lucid). Earlier versions of Ubuntu are not supported at this time.

Access the OpenGeo APT repository

OpenGeo provides a repository for packages in APT (Debian) format. To access this repository, you need to first import the OpenGeo GPG key in to your apt registry:

Note

You will need to run these commands on an account with root access.

wget -qO- http://apt.opengeo.org/gpg.key | apt-key add -


Once added, you can add the OpenGeo APT repository (http://apt.opengeo.org) to your local list of repositories:



echo "deb http://apt.opengeo.org/ubuntu lucid main" >> /etc/apt/sources.list


Now update APT to pull in your changes:



apt-get update


Package management



Search for packages from OpenGeo:



apt-cache search opengeo


If the search command does not return any results, the repository was not added properly. Examine the output of the apt commands for any errors or warnings.



Now you can install GeoServer. The name of the package is opengeo-geoserver:



apt-get install opengeo-geoserver


After installation



When completed, GeoServer will be installed as a servlet inside the local version of Tomcat. Assuming that Tomcat is running on the default port 8080, you can verify that GeoServer is installed by navigating to the following URL:



http://localhost:8080/geoserver/


This will load the Web Administration Interface. Most management of GeoServer functionality can be done from this interface.



Note



The username and password for the GeoServer administrator account is admin / geoserver



For more information about running GeoServer, please see the GeoServer Documentation



Installing GeoServer on Ubuntu



 



OR





Installing geoserver on ubuntu 10.04



Following the below steps should get the binary release of geoserver running on your 10.04 ubuntu install. This should also work generically for other versions of ubuntu. This process does not step you through securing or completely preparing the geoserver for production use, these details are outside the scope of this tutorial; please review the appropriate sections on security and running in a production environment via the geoserver documentation. Also if you are intending to run this geoserver in a production environment you should review any firewall and/or system settings that may be appropriate for your use case.



Install necessary supporting libraries and applications.


I think this is complete, but it may not be. If you run into any missing packages please indicate which packages also need to be installed in the comments so that others may benefit from your effort.




sudo apt-get update
sudo apt-get install gdal-bin openjdk-6-jdk openjdk-6-jre python-gdal unzip


Download the latest stable or latest release of geoserver.


In my case I grabbed Geoserver 2.1-RC4. These instructions should apply generically to the 2.0.3 release and hopefully others.




cd ~
wget http://downloads.sourceforge.net/geoserver/geoserver-2.1-RC4-bin.zip


Extract the release into your directory of choice.


In my case I chose '/opt' if you choose a different directory and release please substitute accordingly.




cd /opt
sudo unzip ~/geoserver-2.1-RC4-bin.zip


Setup system for running geoserver.


Create a symlink


We want '/opt/geoserver' to point to '/opt/geoserver-RELEASE' so that we can easily upgrade geoserver at a later date.




sudo ln -s /opt/geoserver-2.1-RC4 /opt/geoserver


Download geoserver extensions.


Follow the extension download link for whichever version you downloaded in the previous step here. Grab any extensions you want to install. I grabbed the following;




  1. MySQL Data Store


  2. GDAL Coverage Store


  3. OGR output format



After downloading the extensions extract them to '/opt/geoserver/webapps/geoserver/WEB-INF/lib'.




cd ~
mkdir geoserver_extensions
cd geoserver_extensions
wget http://downloads.sourceforge.net/geoserver/geoserver-2.1-RC4-mysql-plugi...
wget http://downloads.sourceforge.net/geoserver/geoserver-2.1-RC4-gdal-plugin...
wget http://downloads.sourceforge.net/geoserver/geoserver-2.1-RC4-ogr-plugin.zip
find . -name \*.zip -exec unzip -o {} \;
sudo cp -rp *.jar /opt/geoserver/webapps/geoserver/WEB-INF/lib/


Add a geoserver user and group


Next we create a group and user that geoserver will run as:




sudo addgroup --system geoserver
sudo adduser --system --ingroup geoserver --no-create-home --disabled-password geoserver


Setup startup script


In order to start geoserver automatically at startup we need an init script. I grabbed the Debian/Ubuntu script located here.




cd /opt/geoserver/bin
sudo wget -O initd.sh http://docs.geoserver.org/latest/en/user/_downloads/geoserver_deb
sudo ln -s /opt/geoserver/bin/initd.sh /etc/init.d/geoserver
sudo chmod +x ./initd.sh


This script needs one slight modification to be better suited to ubuntu. Change the following line




# Default-Stop: S 0 1 6


to




# Default-Stop: 0 1 6


This should be line 7 of the file.



Change ownership of the geoserver directory


The geoserver install directory should be owned by the geoserver user and group we just created.




sudo chown -R geoserver:geoserver /opt/geoserver-2.1-RC4/


Set the default startup parameters


Use your editor of choice and create a new file '/etc/default/geoserver'. The commented lines, starting with '#', indicate the default as provided in the startup script.




#USER=geoserver
#GEOSERVER_DATA_DIR=/home/$USER/data_dir
GEOSERVER_DATA_DIR=/opt/geoserver/data_dir

#GEOSERVER_HOME=/home/$USER/geoserver
GEOSERVER_HOME=/opt/geoserver

#PATH=/usr/sbin:/usr/bin:/sbin:/bin

#DESC="GeoServer daemon"

#NAME=geoserver

#JAVA_HOME=/usr/lib/jvm/java-6-sun
#DAEMON="$JAVA_HOME/bin/java"
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
DAEMON="$JAVA_HOME/bin/java"

#JAVA_OPTS="-Xms128m -Xmx512m"
JAVA_OPTS="-Xms128m -Xmx512m -server"

#PIDFILE=/var/run/$NAME.pid

#SCRIPTNAME=/etc/init.d/$NAME


Set the geoserver to launch on startup



sudo update-rc.d geoserver defaults


Setup log directories



sudo mkdir /opt/geoserver/webapps/geoserver/data/logs
sudo chown geoserver:geoserver /opt/geoserver/webapps/geoserver/data/logs/


Configure OGR based WFS output format


This allows geoserver to export a bunch of formats that geoserver does not handle natively. The conversion is done through the ogr library see OGR Simple Feature Library for more information on the capabilities of the gdal/ogr library. The following XML lets geoserver know where to find the ogr2ogr binary and the GDAL_DATA directory. Add the following XML to '/opt/geoserver/data_dir/ogr2ogr.xml'




<OgrConfiguration>
<ogr2ogrLocation>/usr/bin/ogr2ogr</ogr2ogrLocation>
<gdalData>/usr/share/gdal16</gdalData>
<formats>
<Format>
<ogrFormat>MapInfo File</ogrFormat>
<formatName>OGR-TAB</formatName>
<fileExtension>.tab</fileExtension>
</Format>
<Format>
<ogrFormat>MapInfo File</ogrFormat>
<formatName>OGR-MIF</formatName>
<fileExtension>.mif</fileExtension>
<option>-dsco</option>
<option>FORMAT=MIF</option>
</Format>
<Format>
<ogrFormat>CSV</ogrFormat>
<formatName>OGR-CSV</formatName>
<fileExtension>.csv</fileExtension>
<singleFile>true</singleFile>
<mimeType>text/csv</mimeType>
</Format>
<Format>
<ogrFormat>KML</ogrFormat>
<formatName>OGR-KML</formatName>
<fileExtension>.kml</fileExtension>
<singleFile>true</singleFile>
<mimeType>application/vnd.google-earth.kml</mimeType>
</Format>
</formats>
</OgrConfiguration>


Start the geoserver



sudo /etc/init.d/geoserver start


Test the geoserver


Now if everything has gone according to plan the geoserver should be running and accessible on port 8080. The default username and password are admin and geoserver respectively. You should review the security documentation for geoserver to properly secure the login and points of access.



Troubleshooting


Note that it can take geoserver quite a bit of time to actually bind to port 8080 and start responding. If you attempt to access geoserver on port 8080 and get an error message then wait a few minutes and try again. You can check to see if the geoserver is running by doing the following



  

ps aux | grep java


This should show something like the following indicating that the geoserver process is running.



  

5487 ? Sl 0:21 /usr/lib/jvm/java-1.6.0-openjdk/bin/java -Xms128m -Xmx512m -server -DGEOSERVER_DATA_DIR=/opt/geoserver/data_dir -Djava.awt.headless=true -jar start.jar


If you see the geoserver process is running you can check to see if it has opened port 8080 and is listening for requests with the following




sudo lsof | grep TCP | grep geoserver


You should expect to see something like the following;




java 5487 geoserver 237u IPv6 20420 0t0 TCP *:46378 (LISTEN)
java 5487 geoserver 249u IPv6 20435 0t0 TCP *:http-alt (LISTEN)


If you do not see the above but the java process is running just wait a few minutes as it can sometimes take a while for the geoserver to bind to port 8080.





Comments




One tiny glitch


Submitted on April 6th, 2011 by Marc



Jeff - one tiny glitch that I had was when setting up log directories:



sudo mkdir /opt/geoserver/webapps/geoserver/data/logs





didn't work because the data directory didn't exist yet. I needed to:




sudo mkdir -p /opt/geoserver/webapps/geoserver/data/logs




Otherwise, I followed the instructions and was able to install the latest stable release (2.0.3 at this time) just fine.



After installing, I was able to see that everything worked via my browser by hitting:



http://localhost:8080/geoserver/web








JAVA_HOME problems


Submitted on April 6th, 2011 by Aaron



Hello Jeff. Thank you for posting such clear and concise instructions for installing Geoserver on Ubuntu.

I am, however, having the same problem with every approach I take to install. Everything seems to be fine, until I try to start Geoserver, when I get the JAVA_HOME environment is not defined. But it is defined. I have tried with Sun java as well as openjdk.



This was immediately after reboot:

quickstart@quickstart-VirtualBox:~$ cd geos/geoserver/bin


quickstart@quickstart-VirtualBox:~/geos/geoserver/bin$ sudo ./startup.sh


The JAVA_HOME environment variable is not defined


This environment variable is needed to run this program


quickstart@quickstart-VirtualBox:~/geos/geoserver/bin$ echo $JAVA_HOME


/usr/lib/jvm/java-6-openjdk



When I try to use the following command

sudo update-rc.d geoserver defaults


I get the error: file does not exist



Has anyone had this problem and fixed it?







JAVA_HOME woes


Submitted on April 6th, 2011 by Jeff



Aaron, it looks like you have skipped some of the steps I have outlined. Also your paths look different than what I outline above so hopefully you have extrapolated appropriately.



When attempting the 'sudo update-rc.d geoserver defaults' it is not finding the file '/etc/init.d/geoserver' please review the section 'Setup startup script' above and see if that helps get the file in place.



As an additional comment, regarding your JAVA_HOME.



If you are using bash, you need to export JAVA_HOME so either



export JAVA_HOME



or alternatively I usually declare and export environment variables in one fell swoop.



export JAVA_HOME=/usr/lib/jvm/java-6-openjdk



Environment variables must be exported to be available to child processes within the bash shell. However, the startup process you are attempting is not covered by my documentation.







woes


Submitted on April 6th, 2011 by Aaron



Thanks for the reply Jeff. The funny thing is that the file does exist. I see it under etc/init.d/



I think I need to start over from the beginning. Again. You are using the openjdk version of java right? I read some (old) articles that say to use only sun version, so that is what I have been trying. I assume my problem is in having two versions of java (I have the correct one selected in java-alternatives). This time I will try to use native openjdk java. This makes two places where the system cannot find files that I know are there.







The instructions here are for


Submitted on April 6th, 2011 by Jeff



The instructions here are for openjdk, and it is certainly possible that having sun-jdk installed as well is leading to some confusion.



If you are following my instructions the file /etc/init.d/geoserver should be a symbolic link. Perhaps the target file is missing? From your previous post it looks like you installed in a directory other than /opt/geoserver perhaps you forgot to change the target for the following command referenced above?





sudo ln -s /opt/geoserver/bin/initd.sh /etc/init.d/geoserver




These instructions have been tested with ubuntu 10.04, while they should also work for other versions of ubuntu, I have not tested other versions.



Regarding sun vs. open jdk:



I have seen numerous posts for various applications mention that only sun's java implementation should be used. However, I have yet to see any issue with running openjdk. I'm not claiming that there are not issues with openjdk and certain applications, but rather that I have never encountered any issues.







woes


Submitted on April 6th, 2011 by Aaron



After restoring a backup, I am running into similar errors during install. It seems I am having problems with paths.



My original installation was a virtual machine appliance with ubuntu 10.10. I have noticed before when using terminal commands where leading / are used, I get an error. But when I remove the leading / it works

example:


quickstart@quickstart-VirtualBox:~$ cd /geos


bash: cd: /geos: No such file or directory


quickstart@quickstart-VirtualBox:~$ cd geos


quickstart@quickstart-VirtualBox:~/geos$



The first error I get installing Geoserver following your guide is when creating the symlink: (with and without leading /)

quickstart@quickstart-VirtualBox:~/geos$ sudo ln -s /geos/geoserver-2.1-RC4 /geos/geoserver


ln: creating symbolic link `/geos/geoserver': No such file or directory


quickstart@quickstart-VirtualBox:~/geos$ sudo ln -s geos/geoserver-2.1-RC4 geos/geoserver


ln: creating symbolic link `geos/geoserver': No such file or directory



Previously, I simply created the symlink in the file browswer, not from bash. I suspect the problems are all related, but I have very limited experience with linux and fixing this is above my pay scale, so to speak. Any guidance you can give is appreciated.







I would suggest installing


Submitted on April 6th, 2011 by Jeff



I would suggest installing verbatim from my instructions rather than transposing paths.



When you omit the leading '/' you are instructing the shell that the path is *relative* to your current working directory. This will result in differing results depending on your current directory. The leading slash is preferable as it unambiguously refers to a location in the file path.



Basic Linux usage is outside the scope of this documentation.







Path Issues


Submitted on April 6th, 2011 by Aaron



After installing once more, following your instructions verbatim, it worked. Thanks again for providing such concise, and current, instructions!







Can you provide more detail


Submitted on April 8th, 2011 by bullparade



Can you provide more detail on adding extensions, particularly MrSID format? Also, I am running the WAR version, could you provide steps that cover that install and how to setup your environment?



Thanks.







outside scope


Submitted on April 8th, 2011 by Jeff



This documentation is concerned strictly with the binary install of geoserver. For the WAR installation please review the Web Archive (WAR) documentation at http://docs.geoserver.org



Regarding MrSID, I'm unfamiliar with that format and it is proprietary. It sounds like a job more appropriate to GDAL, perhaps the following is helpful osgeo.org's MrSID wiki, but it sounds like something that GDAL supports.



Regardless both of these requests are outside the scope of this writeup. Good Luck!







About Sun vs OpenJDK


Submitted on April 16th, 2011 by Andrea Aime



Hi,

about the Sun vs OpenJDK option, two observations:




  • the GeoServer and GeoTools developers use Sun JDK, as well as the automated build bots that build it various times a day (continous integration). So it may work well, but may also break unexpectedly


  • benchmarks showed in the past that OpenJDK is significantly slower than Sun JDK when it comes to drawing vector maps. If you only deal with raster data or just do WFS/WCS it's not going to be a big deal anyways







initd


Submitted on June 30th, 2011 by michsred



Hi,



I set up geoserver to run automaticaly after system boot using your instructions. This is what I get when I check if geoserver is running:



ps aux | grep java

110 7620 13.4 8.9 786872 140040 ? Sl 13:30 0:08 /usr/lib/jvm/java-6-sun/bin/java -Xms128m -Xmx512m -server -DGEOSERVER_DATA_DIR=/usr/local/geoserver/data_dir -Djava.awt.headless=true -jar start .jar


1000 9572 0.0 0.0 6152 644 pts/0 S+ 13:31 0:00 grep --color=auto java



sudo lsof | grep TCP | grep geoserver

java 7620 geoserver 202u IPv6 2855578513 TCP *:33630 (LISTEN)



and I can not connect to geoserver GUI via internet browser, funny thing is that this solution works on my Ubuntu Desktop running on localhost:8080 with absolutely no problems but It doesn't work on Ubuntu Server on port 80 (geoserver works on this Ubuntu Server on port 80 when I run it manualy).



Thank you in advance for any sugestions!







been through hours and hours of this


Submitted on July 11th, 2011 by tiredofiitall



Hello, I have been at installing geoserver on ubuntu for about a week. Searched many sites and been on geoserver chat for hours, cant seem to get it. I am willing to pay someone to install this on my dedicated server. replay with a way to contact you. Thank!!







TCP *:http-alt (LISTEN) seems to fail


Submitted on July 14th, 2011 by H Hobson



Hello,



I too want to thank your putting this install guide on the Internet.



By looking below, it appears that part is working. TCP *:http-alt (LISTEN) did not come up. Please let me know if you have run into this before. Thank you ! Harry



harry@harry-laptop:~/geoserver-2.1-RC4/bin$ sudo lsof | grep TCP | grep geoserver



lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/harry/.gvfs



Output information may be incomplete.



java 2450 geoserver 225u IPv6 74713 0t0 TCP *:46462 (LISTEN)







TCP *:http-alt (LISTEN) seems to fail --- never mind


Submitted on July 15th, 2011 by H Hobson



Never mind. The problem is something else







sudo: /etc/init.d/geoserver: command not found


Submitted on July 14th, 2011 by H Hobson



Hi,



This, most likely, is the real problem.



$:/opt/geoserver/bin$ sudo /etc/init.d/geoserver start

sudo: /etc/init.d/geoserver: command not found



Please let me know what I can look for solve this.



Thank you,

Harry







It looks like you skipped the


Submitted on July 22nd, 2011 by Jeff



It looks like you skipped the section "Setup startup script"







TCP *:http-alt (LISTEN) is absent


Submitted on August 24th, 2011 by James



This has been a tremendously detailed tutorial. Thank you. I have followed all the required steps, the results of the sudo lsof | grep TCP | grep geoserver command only yields the following:



java 1324 geoserver 217u IPv6 5336 0t0 TCP *:38705 (LISTEN)



The TCP *:http-alt (LISTEN) output is absent. Does any one know what the issue might be? I am installing this on Ubuntu 10.04 Server. I have designated the /var/www/geoserver as the home directory, so when I go to www.mydomain.com/geoserver, I get the list of files and folders in /var/www/geoserver.



The output of lsof | grep geoserver is below:

smbd 698 root 22u IPv6 3568 0t0 TCP *:microsoft-ds (LISTEN)


smbd 698 root 23u IPv6 3570 0t0 TCP *:netbios-ssn (LISTEN)


mysqld 1158 mysql 10u IPv4 4121 0t0 TCP localhost:mysql (LISTEN)


postgres 1180 postgres 3u IPv6 4859 0t0 TCP localhost:postgresql (LISTEN)


postgres 1180 postgres 6u IPv4 4860 0t0 TCP localhost:postgresql (LISTEN)


sshd 1233 root 3u IPv4 4648 0t0 TCP *:ssh (LISTEN)


sshd 1233 root 4u IPv6 4650 0t0 TCP *:ssh (LISTEN)


java 1324 geoserver 217u IPv6 5336 0t0 TCP *:38705 (LISTEN)


apache2 1375 root 3u IPv4 5133 0t0 TCP *:www (LISTEN)


samba 1382 root 22u IPv4 5224 0t0 TCP *:1024 (LISTEN)


samba 1382 root 25u IPv4 5229 0t0 TCP *:loc-srv (LISTEN)


apache2 1395 www-data 3u IPv4 5133 0t0 TCP *:www (LISTEN)


apache2 1398 www-data 3u IPv4 5133 0t0 TCP *:www (LISTEN)


apache2 1399 www-data 3u IPv4 5133 0t0 TCP *:www (LISTEN)


java 1424 root 34u IPv6 5300 0t0 TCP *:http-alt (LISTEN)


java 1424 root 41u IPv6 5302 0t0 TCP *:8009 (LISTEN)


java 1424 root 43u IPv6 5308 0t0 TCP localhost:8005 (LISTEN)


sshd 1482 root 3u IPv4 5351 0t0 TCP 192.168.1.11:ssh->dhcp-20-41.xxxx.xxxx.xxxx:50937 (ESTABLISHED)


sshd 1649 acer 3u IPv4 5351 0t0 TCP 192.168.1.11:ssh->dhcp-20-41.xxxx.xxxx.xxxx:50937 (ESTABLISHED)


apache2 1670 www-data 3u IPv4 5133 0t0 TCP *:www (LISTEN)


apache2 1674 www-data 3u IPv4 5133 0t0 TCP *:www (LISTEN)


apache2 1676 www-data 3u IPv4 5133 0t0 TCP *:www (LISTEN)


apache2 2421 www-data 3u IPv4 5133 0t0 TCP *:www (LISTEN)


apache2 2468 www-data 3u IPv4 5133 0t0 TCP *:www (LISTEN)


apache2 2536 www-data 3u IPv4 5133 0t0 TCP *:www (LISTEN)


sshd 2538 root 3r IPv4 53465 0t0 TCP 192.168.1.11:ssh->dhcp-20-41.xxxx.xxxx.xxxx:53820 (ESTABLISHED)


sshd 2640 acer 3u IPv4 53465 0t0 TCP 192.168.1.11:ssh->dhcp-20-41.xxxx.xxxx.xxxx:53820 (ESTABLISHED)


apache2 2646 www-data 3u IPv4 5133 0t0 TCP *:www (LISTEN)



I'd appreciate your advice.



Thanks again.







Linux packages also available


Submitted on August 12th, 2011 by OpenGeo



Hi all. Note that OpenGeo now hosts GeoServer as standard RPM and DEB packages to make it even easier to install via standard means on Linux.



Here are some details on Ubuntu:



Installing GeoServer on Ubuntu



And CentOS too, for completeness:



Installing GeoServer on CentOS







tuff to install on ubuntu


Submitted on September 13th, 2011 by Anonymous



i am also trying to install geoserver on ubuntu.

here i m getting a message of command not found


sudo: /etc/init.d/geoserver: command not found


please hep to resolve this


thanks







Jeff, Thanks a lot for great


Submitted on October 16th, 2011 by radek



Jeff,



Thanks a lot for great tutorial! Followed the steps and now can confirm it works without issues in 11.10.



r





Installing geoserver on ubuntu 10.04

Installing GeoServer on CentOS

The easiest way to install and set up GeoServer is by installing the full OpenGeo Suite. The OpenGeo Suite comes complete with GeoServer as well as a full geospatial software stack, including utilities, data, and documentation. That said, OpenGeo also provides individual packages for installing the components separately.

This page will describe how to install GeoServer on CentOS 5. Earlier versions of CentOS are not supported at this time.

Access the OpenGeo RPM repository

OpenGeo provides a repository for packages in RPM format. To access this repository, you need to first add the OpenGeo Yum repository to your local list of repositories: These commands differ depending on whether your system is 32 or 64 bit.

Note

You will need to run these commands on an account with root access.

For 32 bit systems:

cd /etc/yum.repos.d
wget http://yum.opengeo.org/centos/5/i386/OpenGeo.repo


For 64 bit systems:



cd /etc/yum.repos.d
wget http://yum.opengeo.org/centos/5/x86_64/OpenGeo.repo


Package management



Search for packages from OpenGeo:


yum search opengeo


If the search command does not return any results, the repository was not added properly. Examine the output of the yum command for any errors or warnings.



Now you can install GeoServer. The name of the package is opengeo-geoserver:



yum install opengeo-geoserver


After installation



When completed, GeoServer will be installed as a servlet inside the local version of Tomcat. Assuming that Tomcat is running on the default port 8080, you can verify that GeoServer is installed by navigating to the following URL:



http://localhost:8080/geoserver/


This will load the Web Administration Interface. Most management of GeoServer functionality can be done from this interface.



Note



The username and password for the GeoServer administrator account is admin / geoserver



For more information about running GeoServer, please see the GeoServer Documentation



Installing GeoServer on CentOS

Thứ Tư, 9 tháng 11, 2011

Ubuntu GIS project Issue Tracker and Wiki

This site provides project management support, bug/issue tracking, and viewing of the Subversion source code repository.

Login

To submit issues you need an OSGeo id

Report a Bug

Use the New Ticket button to report a bug. You must have an account and be logged in to submit a bug.

General Contents

Users

UbuntuGIS

UbuntuGIS

Your Ubuntu is ready for daily, professional GIS work. Getting started it's just a matter of minutes. After adding the UbuntuGIS repository corresponding to their distribution (in sources.list), you can easily install on your machine each of the GIS applications listed below (in brackets the package name), through the Synaptic Package Manager or typing sudo apt-get install program-name from the command line, just like any other package.

General Contents

For users

UbuntuGIS FAQ

  • Q: Is UbuntuGIS another, separate, distribution? Or a subset of packages that I can install as a whole on my machine? Or an external repository?

    • A: An external repository (PPA). UbuntuGIS is a repository that can be added in your sources.list which will provide up to date packages.

  • Q: Do you just repackage the DebianGIS packages?

    • A: Basically, yes. We rebuild/adapt the DebianGIS packages in the different Ubuntu distributions.

  • Q: Can I install DebianGIS packages on Ubuntu?

    • A: You can try, but it's not recommended. Ubuntu and Debian have source compatibility (e.g. they are built from the same sources), but binary compatibility is not guaranteed to work. Add to this that many packages may have different names due to different compile environments, and you'll see it can be a bit frustrating. However, it might work for you if you manage to tweak the packages to work.


For developers and packagers

See also

UbuntuGIS Packages

You can see the current packages that are in the UbuntuGIS repository on our launchpad page: https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable

Quantum GIS (QGIS) packages

Quantum GIS is now in the UbuntuGIS repository, but also provides a Debian/Ubuntu repository for nightly builds of the trunk development version. See:

http://www.qgis.org/wiki/Download#Ubuntu

UbuntuGIS - Ubuntu Wiki

Installing MapServer on Ubuntu

With this post I will show hot to install MapServer 4.10.3 in Ubuntu 7.10 (but this procedure should work also for previous Ubuntu versions) from repositories.

1) set Ubuntu sources needed for this software

Add universe ( http://archive.Ubuntu.com/gutsy/universe ) and multiverse repositories to your sources (by default are not in Ubuntu)

sudo gedit /etc/apt/sources.list


and uncomment this two lines:



deb http://archive.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse


save the sources.list file and then then update your sources:



sudo apt-get update


2) Install MapServer



now download and install MapServer:



sudo apt-get install cgi-mapserver mapserver-bin mapserver-doc php5-mapscript python-mapscript


MapServer 4.10.3 will be installed (latest of MapServer 4.x serie, the actual MapServer is at 5.0.0), as indicated by typing:



/usr/lib/cgi-bin/mapserv -v
MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG


This is where packages have been installed:




  • mapserv is installed from cgi-MapServer package in /usr/lib/cgi-bin


  • command line utilities (like shp2img) are installed by the mapserver-bin package in /usr/bin


  • some documentations is installed by the mapserver-cod package in /usr/share/doc/mapserver-doc



Test mapserv for cgi by typing (it should work as far you have left the default web site in Apache 2.2): http://localhost/cgi-bin/mapserv



Make sure your MapServer instance is now working before continuing with the other installation steps of this tutorial.



Having this instance correctly working is as much important as to have an updated version of your browser when you go to free poker sites, or when you make a connectivity check to a freshly installed RDBMS.



3) Download MapServer Demo



Download the MapServer 4.x Demo Application from the MapServer web site: http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip



extract the zip file wherever you like, for example i have extracted it here: /home/corti/public_html/mapserverdemo



4) Configure Apache httpd



Configure an httpd virtual host for MapServer. For example we will create a mapserverdemo virtual host editing the default file



sudo gedit /etc/apache2/sites-available/default


this is how I created this virtual host (you may need to change path according to where you have extracted the demo zip file):



<VirtualHost *:80>
ServerName mapserverdemo
DocumentRoot /home/corti/public_html/mapserverdemo

<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>


ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<span class="nt">&lt;Directory</span> <span class="err">&quot;/usr/lib/cgi-bin&quot;</span><span class="nt">&gt;</span>
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
<span class="nt">&lt;/Directory&gt;</span>

ErrorLog /var/log/apache2/mapserverdemo_error.log.
LogLevel warn
CustomLog /var/log/apache2/mapserver_access.log combined
ServerSignature On


</VirtualHost>



now let's add a mapserverdemo host:



sudo gedit /etc/hosts


and add this line: 127.0.0.1 mapserverdemo



save the file and restart Apache:



sudo /etc/init.d/apache2 restart


create a tmp directory in your mapserverdemo root, with writing permissions for the Apache user



Now if you go to http://mapserverdemo/workshop/ you will see a form, but after that it will not work as far we need to add the html form settings to our settings. If you go at: http://mapserverdemo/cgi-bin/mapserv you should get this response:



No query information to decode. QUERY_STRING is set, but empty.


5) Configure the MapServerDemo



Now let's configure the demo with our settings. Edit this section in index.html file (wherever you have extracted the demo), according to your settings:



    <!-- EDIT THE FORM ACTION -->
<form name="demo" method="GET" action="/cgi-bin/mapserv" onSubmit="submit_form()">
.......
<!-- EDIT THESE HIDDEN VARIABLES -->
<input type="hidden" name="map" value="/home/corti/public_html/mapserverdemo/workshop/itasca.map">
<input type="hidden" name="program" value="/cgi-bin/mapserv">
<input type="hidden" name="root" value="/mapserver_demos/workshop">
<input type="hidden" name="map_web_imagepath" value="/home/corti/public_html/mapserverdemo/tmp/">
<input type="hidden" name="map_web_imageurl" value="/tmp/">


go to: http://mapserverdemo/workshop/ and the demo should work. Enjoy!



Installing MapServer on Ubuntu

Adding Ubuntu GIS repository to your system's software sources

To use Ubuntu GIS packages, you need to add the repository to your system's software sources.

Verify that your ubuntu distribution is supported by the Ubuntu GIS project: List of the supported distributions

Add the sources.list entries

Ubuntu GIS has two different PPA:

  • Stable: updated every six months, contains a stable state of the unstable ppa ( https://launchpad.net/~ubuntugis/+archive/ppa )
    sources.list entries:
       deb http://ppa.launchpad.net/ubuntugis/ppa/ubuntu <codename> main 
    deb-src http://ppa.launchpad.net/ubuntugis/ppa/ubuntu <codename> main



  • Unstable: updated frequently, contains the up-to-date packages. This ppa may break something. ( https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable )


    sources.list entries:

       deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu <codename> main 
    deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu <codename> main




Convenient Method


Starting with Ubuntu 9.10 (Karmic Koala), a convenient new command is available for adding Launchpad PPA (Personal Package Archive) repositories via the command line: add-apt-repository.



sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable


or for the stable PPA:



sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ppa


That's it! (And make sure you install only one of the two repositories and not both)



Manual Method


See the sources.list entries above and replace the <codenane> tag by your distribution codename. The command "lsb_release -c" will tell you what is the codename of your system.



1. Open the file /etc/apt/sources.list with a text editor and append the entries to the file.



2. Authenticate the repository. Open your terminal and enter:



sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160 


314DF160 is the OpenPGP key of the Ubuntu GIS repository



If you prefer adding the entries using the GUI, see this page: https://launchpad.net/+help/soyuz/ppa-sources-list.html



3. Update your system's package list:



sudo apt-get update


Download in other formats:


UbuntuGISRepository – UbuntuGIS

Thứ Bảy, 5 tháng 11, 2011

The OpenGeo Suite

See videos and screenshots of the OpenGeo Suite in action or try our online demos to edit data, style layers, and compose maps.

Videos

Watch these short videos to learn what the OpenGeo Suite can do for you. Keep checking back, as we'll be adding more videos soon!

Publish a Map
The OpenGeo Suite allows you to easily create and embed a dynamic map in any web page. Use your data, or pull data from a variety of sources. Create mashups with Google, or make your own custom map.
The Dashboard
Manage all components of the OpenGeo Suite, from PostGIS to GeoServer to GeoExplorer, from one convenient interface. Try the Dashboard online.

Screenshots

Here you'll find screenshots of the OpenGeo Suite in action. To really get to know the OpenGeo Suite, you'll want to try it out for yourself.

Manage the components of the OpenGeo Suite with the Dashboard. Try the Dashboard online.

Customize file system data and passwords from one convenient interface.

Use PostGIS, a geospatial database built on top of PostgreSQL, to manage your data.

Import shapefiles directly into your PostGIS database with pgShapeloader.

Serve your data with GeoServer, and output in many popular formats such as OpenLayers and Google Earth.

Use embedded tools such as Suite Analytics to view and manage server load.

Easily import shapefiles and data tables from PostGIS, ArcSDE, and Oracle.

Add, modify and delete geographic features with GeoEditor, a web-based JavaScript application. Try GeoEditor online.

Style your maps with Styler, a graphical style editor. Try Styler online.

Styler allows for deep visual customization, including scale- and attribute-based styling.

GeoExplorer can replace standard desktop-based GIS tools. Try GeoExplorer online.

Compose and publish your maps with GeoExplorer.

Embed composed maps in your websites and applications.

View your layers in 3D with Google Earth.

Learn how to develop your own applications built on the OpenGeo Suite using the included Recipe Book.

Comes packaged with complete, web-based documentation.

Get help when you need it on the OpenGeo forum

Homepage

OpenGeo : See