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ứ Tư, 18 tháng 1, 2012

Biến webcam thành 'mắt thần' chống trộm

Ngoài tính năng là một camera hiển thị hình ảnh của bạn trong khi chat với bạn bè và người thân, nếu biết tận dụng bạn có thể dễ dàng biến chiếc webcam thành một “mắt thần” chống trộm cho ngôi nhà thân yêu của mình.
i-Catcher Console là phần mềm hỗ trợ bạn thực hiện việc đó. Chương trình có dung lượng 3,2MB, tải miễn phí tại đây.
Sau khi cài đặt và kích hoạt chương trình, bạn sẽ thấy giao diện chương trình nằm gọn phía bên trái màn hình. Để tạo một kênh quan sát kết nối cho webcam của mình, bạn nhấn nút Cameras, trong khung System Configuration sẽ xuất hiện hộp thoại i-Catcher Console – Cameras feeds, tại đây bạn nhấn nút New camera để hiện lên cửa sổ Camera Type. Bạn đặt tên cho kênh quan sát tại ô Feed name, đánh dấu chọn mục Local Camera và nhấn Next. Trong giao diện kế tiếp, bạn nhấn vào mũi tên xổ xuống của ô Device để chọn webcam cần sử dụng rồi nhấn Next. Chờ trong giây lát khi thấy webcam đã hiển thị được hình ảnh của bạn thì nhấn Finish để hoàn tất việc thiết lập.

Trở lại giao diện làm việc chính của chương trình, bạn sẽ thấy kênh quan sát đã bắt đầu thu hình ảnh và hiển thị trên một cửa sổ riêng. Nếu bạn tạo thành công nhiều kênh quan sát bằng nhiều webcam thì những kênh này đều hoặt động cùng lúc và thu hình ở những góc độ mà bạn bố trí.

Vậy là bạn đã thiết lập xong phần cơ bản, bây giờ chúng ta sẽ khai thác thêm các tính năng hữu ích khác trong khung System configuration:

- Thiết lập các thuộc tính nâng cao: Nhấn nút Settings sẽ hiện ra cửa sổ với rất nhiều thẻ tính năng.

+ Storage: Bạn có thể chọn nơi lưu hình ảnh đã chụp được trên máy tính hoặc trên ổ đĩa mạng. Trong khung Folder, bạn nhấn nút Browse của hai ô Feeds directory và History directory để chỉ đến thư mục cần lưu trữ. Nếu bạn chọn nơi lưu trữ ảnh mặc định thì sau này muốn truy xuất vào thư mục lưu trữ, bạn tìm đến đường dẫn C:\ProgramData\i-Catcher Console\History. Ngoài ra tại khung Monitor disk space, bạn có thể cho phép chương trình nén ảnh đã thu hoặc dừng thực thi chương trình khi khi dung lượng trống của ổ đĩa cứng đã đạt đến mức giới hạn.

+ Archiving: Lên lịch nén những hình ảnh cũ đã thu để quản lý dung lượng trống của ổ cứng một cách hiệu quả. Bạn đánh dấu chọn ô Enable scheduled archiving > chọn mốc thời gian sẽ thực hiện nén (Run scheduled archive at) và cho phép sau bao nhiêu ngày thì tự động xóa những gói nén cũ (Archive stills older than > Delete old stills) hoặc di chuyển nó đến thư mục mới (Move old stills to).
+ User: Tạo danh sách những user được phép truy cập. Bạn nhấn nút Next sẽ hiện ra cửa sổ User details & Permissions > đặt tên vào ô User name > đánh dấu chọn ô Enable và các thuộc tính bên dưới tùy theo bạn muốn cấp quyền cho user đó làm được những gì: Local administrator, Remote administrator, Allow remote viewing of feeds, Allow remote playback, Remote PTZ control, Only allow access to selected feeds…

+ Web Server: Cho phép bạn theo dõi hình ảnh thu được qua mạng. Bạn đánh dấu ô Enable embedded web server rồi nhập vào địa chỉ IP và số cổng (Port). Nếu muốn chặn những địa chỉ mà bạn không cho kết nối thì nhấn nút Edit IP Black List. Trong khung Live View Options bên dưới, bạn có thể chọn thêm nhiều tính năng thú vị như: Limit live view duration to (giới hạn thời lượng cho mỗi lần xem), Limit initial feed size to (thiết lập kích thước hiển thị khi xem bằng trình duyệt web), Allow multi view (Cho phép người xem từ xa chọn một trong nhiều webcam đã thu hình để xem hình ảnh đã ghi được), Allow resizing the live image (Cho phép người xem thay đổi kích thước ảnh đang xem),…

- Thiết lập cảnh báo: Nhấn nút Alert settings sẽ xuất hiện hộp thoại Global Alerts, mặc định bạn sẽ được làm việc với thẻ Misc alerts trước tiên.
+ Để thiết lập cho trình chơi nhạc phát ra thông báo bằng âm thanh khi webcam phát hiện có người xuất hiện trong vùng quét, bạn hãy đánh dấu chọn ô Enable của mục Audio alerts rồi nhấn nút Browse chỉ đến file âm thanh (định dạng WAV).
+ Dùng Windows message gởi tin nhắn NetBIOS đến một người dùng (user) hoặc một nhóm (group machines) nào đó: Đánh dấu chọn ô Enable của khung Windows message rồi nhập vào tên người dùng (ô To) và thông điệp cần gởi (ô Message).
+ Gởi tin nhắn SMS đến ĐTDĐ: Đánh dấu chọn ô Enable của khung SMS alerts rồi nhập vào số ĐTDĐ (ô To) và nội dung tin nhắn (ô Message).
+ Gởi email báo động: Bạn chuyển qua thẻ Email > đánh dấu chọn ô Enable > nhập các địa chỉ email sẽ nhận cảnh báo vào ô To, nhập tiêu đề vào ô Subject và nội dung thông điệp vào ô Message. Tiếp theo bạn xác định thời gian tối thiều giữa các lần gởi email (Minimum time between emails) và số lượng ảnh gởi kèm (Attach the last images).
+ Đưa hình ảnh đã thu được lên trang web bằng FTP: Chuyển qua thẻ FTP/Web > đánh dấu ô Enable và ô Use FTP > điền vào các thông tin cần thiết cho ô Server, Username, Password, chọn số lượng ảnh tối đa sẽ upload (Maximum images stored on the server)…
- Xem lịch trình ghi nhận từ các kênh quan sát: Nhấn nút Logging sẽ xuất hiện cửa sổ i-Catcher Console Logging. Tại đây bạn có thể theo dõi được rất nhiều thông tin từ hoạt động của chương trình như thời điểm ghi hình, thời điểm xem Playback, thời điểm thay đổi các thiết lập, thời điểm giám sát qua internet,…
- Điều khiển thông qua trình duyệt web: Bạn nhấn nút Web View sẽ hiện lên trang web mới trên cửa sổ trình duyệt, tuy nhiên bạn cần lưu ý là nếu máy tính chưa cài thêm Java hỗ trợ thì bạn sẽ gặp thông báo lỗi, và bạn phải vào địa chỉ www.java.com/en/download/inc/windows_new_xpi.jsp hay http://tinyurl.com/yge8bd9 để tải về và cài đặt, sau đó khởi động lại trình duyệt web và bạn có thể xem được những hình ảnh đã thu.

Tại trang web vừa xuất hiện, trong khung Playback bên trái, bạn chọn tên của kênh quan sát đã kết nối với webcam ở góc độ nào cần xem (nếu bạn sử dụng nhiều webcam quan sát thì bạn cần ghi nhớ tên của kênh nào ứng với webcam đặt ở vị trí nào trong nhà mình), lập tức tại khung chính giữa sẽ hiển thị những hình ảnh mà webcam đó đã thu được. Để xem dạng slide show ảnh trình diễn liên tục, bạn nhấn nút Play ở khung Playback Controls rồi dùng các nút tua trái, tua phải để xem các hình ảnh trước và sau hình ảnh hiện tại. Nếu hình ảnh mà webcam đã ghi được quá nhiều, để xem nhanh hơn bạn có thể thay đổi tốc độ trình diễn bằng cách kéo thanh trượt Speed qua bên phải cho đến khi có được tốc độ trình diễn vừa ý. Cũng trong khung này, bạn còn có thể biết được thông tin về ngày giờ của từng bức ảnh đã chụp (ô Date và Time) để từ đó có thể xác minh được thời điểm kẻ trộm đột nhập vào nhà mình.
Trường hợp bạn muốn quan sát hình ảnh lớn hơn, bạn dịch chuyển thanh trượt Size và Quality một chút về phía bên phải tại khung Image bên trên khung hiển thị ảnh.
Để truy xuất vào chương trình i-Catcher Console trên máy tính, bạn nhấn nút Administration ở dưới khung Playback rồi nhập vào tên tài khoản quản trị và mật khẩu mà bạn đã tạo sẵn.
Tại đây bạn có thể thay đổi thiết lập mở rộng (Settings), điều khiển việc nén ảnh để quản lý dung lượng ổ đĩa cứng (Storage, Arcgive), cấu hình các kênh quan sát (Feed settings), cấu hình chế độ báo động (Alert settings), Xem lịch ghi nhận (Logging)…

Theo VietNamnet (Nguồn e-CHÍP)

i-Catcher Console v5.0 build 31 - Biến webcam thành 'mắt thần' chống trộm

i-Catcher Console sẽ cung cấp đầy đủ khả năng mở rộng hệ thống CCTV, với phát hiện chuyển động, giao diện web từ xa, cảnh báo, đồng thời ghi lại và phát lại, hoạt động theo lịch trình, kiểm soát thiết bị, và các tùy chọn hiển thị linh hoạt, vượt tiêu chuẩn bạn mong muốn từ một kỹ thuật số hiện đại CCTV hệ thống.
i-Catcher Console sử dụng một loạt các thiết bị máy ảnh, bao gồm USB webcam, card bắt hình (cho kết nối đến máy ảnh tương tự thông thường CCTV), và mạng mới nhất / IP máy chủ video và máy ảnh. Do thiết kế mô-đun của nó, bạn không giới hạn trong một loại thiết bị cho toàn bộ hệ thống – bạn có thể kết hợp các thiết bị theo yêu cầu.

i-Catcher Console cũng làm việc với PTZ (Pan, Tilt & Zoom) máy ảnh để không chỉ cung cấp một máy ảnh camera quan sát từ xa di chuyển, mà còn cung cấp tự động theo dõi – máy ảnh có thể di chuyển theo chuyển động thông qua một khu vực giám sát.
phát hiện chuyển động được thực hiện mà không cần kích hoạt cho PIR và dò tìm chuyển động bên ngoài. Sau khi chuyển động được phát hiện, ghi âm bắt đầu. Đối với bảo mật thêm, i-Catcher có thể ghi lại trước và sau sự kiện chuyển động để đảm bảo bạn nắm bắt tất cả mọi thứ, và điều khiển độ nhạy thêm một cấp thêm tính linh hoạt.

Kỹ thuật số hình ảnh lưu trữ có nghĩa là truy cập đến các hình ảnh được lưu trữ là tức thời, và cho phép bạn xem lại các cảnh quay trong khi vẫn thu âm, cũng như chơi một vòng lặp tính năng này, để tiếp tục vòng lặp các hoạt động gần đây nhất – các tính năng hệ thống CCTV truyền thống chỉ đơn giản là không thể cung cấp.
Với lưu trữ hình ảnh kỹ thuật số đến các hệ thống đơn giản nhưng toàn diện để quản lý hình ảnh. Lưu trữ tự động đảm bảo bạn giữ lại những cảnh quay đúng mức, kiểm tra đảm bảo tính toàn vẹn hình ảnh cảnh của bạn không phải là giả mạo, và thức ăn quản lý cho phép bạn kiểm soát chính xác lưu trữ các hình ảnh trên một nguồn cấp dữ liệu máy ảnh.

i-Catcher Console hỗ trợ I / O và kiểm soát đầu vào thông qua một loạt các giao diện, cho phép hầu hết các cấu hình điều khiển từ xa (có thể sử dụng các phần cứng điều khiển).
Chúng tôi đã thiết lập một trang web có sử dụng bàn điều khiển của chúng tôi với một máy chủ trục video 241Q để chứng minh cả hai điều khiển từ xa các thiết bị và các phương tiện đơn giản để kiểm soát các thiết bị nhúng vào các trang web của riêng bạn. Xem i-Catcher của chúng tôi dựa trên điều khiển các hệ thống thiết bị điều khiển từ xa.

Sự linh hoạt và đơn giản của giao diện người sử dụng có sẵn từ xa, nhưng chỉ đòi hỏi một trình duyệt web để sử dụng. Không có các điều khiển ActiveX cần thiết, không có phần mềm cần được cài đặt. Giao diện điều khiển từ xa cung cấp một cái nhìn đầy đủ thức ăn sống, với các tùy chọn zoom kỹ thuật số, kiểm soát của các camera PTZ, đồng thời nhiều nguồn cấp dữ liệu, và cài đặt chất lượng hình ảnh để cải thiện hiệu suất thông qua giảm băng thông.
Phát lại cũng được cung cấp với tất cả các lựa chọn của cơ sở phát lại địa phương, và hầu hết các cấu hình điều khiển có thể được điều chỉnh thông qua điều khiển từ xa. Tất cả các tính năng này có thể được mật khẩu bảo vệ ở nhiều cấp để cung cấp một hệ thống an ninh mạnh mẽ.
Yêu cầu: Windows all
Homepage
http://www.mediafire.com/download.php?vvdfv8qbhla99yp

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