List files installed by a package (RPM and APT based distributions)

RPM:

  1. Install yum-utils with:
    yum install yum-utils
  2. Make your query:
    repoquery --list *package_name*
  3. Sample:
    $ repoquery --list httpd 
    /etc/httpd
    /etc/httpd/conf
    /etc/httpd/conf.d
    /etc/httpd/conf.d/README
    /etc/httpd/conf.d/welcome.conf
    /etc/httpd/conf/httpd.conf
    …

APT

  1. Just type your query:
    dpkg -L *package_name*
  2. Sample:
    $ dpkg -L apache2
    /.
    /usr
    /usr/share
    /usr/share/bug
    /usr/share/bug/apache2
    /usr/share/bug/apache2/control
    …

PostgreSQL services Mac OS X Lion start/stop

When it comes to manually start/stop services installed by PostgreSQL on a Mac, I had a hard time figuring out how to do it, so here is the solution:

First you need to know where definition files for daemons are located:

/Library/LaunchDaemons

Here you will find at least 2 files (if you installed EnterpriseDB-ApachePhp with StackBuilder)

com.edb.launchd.apache.plist
com.edb.launchd.postgresql-9.1.plist

You can start/stop this daemons with:

launchctl start com.edb.launchd.apache
launchctl stop com.edb.launchd.apache

or

launchctl start com.edb.launchd.postgresql-9.1
launchctl stop com.edb.launchd.postgresql-9.1

Ubuntu 11.04 “Natty Narwhal” released!

30 minutes ago Ubuntu 10.04 has been released, according to the features page:

Your Ubuntu, your way

Enjoy the simplicity of Ubuntu’s stylish, intuitive interface. Fast, secure and with thousands of apps to choose from, Ubuntu gives you a clean and streamlined experience that you can really make your own. And now you can even decide how you want it to look. Simply choose between our new and classic desktop experiences.

Wait for a full review in a couple of days.

8 steps to success Document Management System Implementation

If deploying a document management solution seems daunting for your organization, don’t worry – KnowledgeTree has distilled the document management best practice process into 8 manageable steps.

View an infographic that illustrates the 8 Steps for Success when selecting and implementing online document management software for your small and medium business.

You’ll be walked through a set of key points to consider as you:

  1. Define your document management objectives and system requirements
  2. Understand your business processes
  3. Determine your preferred delivery model – on-premise or hosted
  4. Select a document management system
  5. Prepare to implement it
  6. Get started and ensure user adoption

Original URL for this post:

http://www.knowledgetree.com/trackback/873

Zentyal Installation Guide

Zentyal Installer

Zentyal Logo

The preferred way to install Zentyal (formerly eBox Platform) on a new machine from scratch is using the tailored CD installer. This CD contains Zentyal and all its dependencies. The 2.0 version is based on Ubuntu Server 10.04 and is available for 32 and 64 bit architectures.

Stable:

Beta:

Note: If you want to define the partition layout manually or you need to specify a proxy to get Internet access, make sure you install using the “expert mode”.

Once the installation process is done, you can access the web interface using a web browser (usually from another machine in the same network):

https://<zentyal-ip-address>/

To log in, a user name and password is asked, this data is asked during the first stage of the installation. But any other user belonging to the “admin” group could be used to log in as well.

Notes for installation on a Virtual Machine

Note: The installers are generated from time to time, so maybe some packages contained on them are outdated. If you have Internet connection during the installation, the latest version of the packages will be installed from zentyal repositories.

Zentyal 2.0 packages

For Ubuntu 10.04 (Lucid). You should install the server edition.

Add to your /etc/apt/sources.list:

deb http://ppa.launchpad.net/zentyal/2.0/ubuntu lucid main

In order to authenticate the packages in the PPA you can import its public key with the following command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 10E239FF

Read the 2.0 Announcement for more info.

Zentyal 2.1 Beta packages

For Ubuntu 10.04 (Lucid). You should install the server edition.

Add to your /etc/apt/sources.list:

deb http://ppa.launchpad.net/zentyal/2.1/ubuntu lucid main

In order to authenticate the packages in the PPA you can import its public key with the following command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 10E239FF

Read the 2.1 Announcement for more info.

Installing packages

Zentyal has a modular design that allows you to install or remove modules depending on your needs. The number of Zentyal modules is greater than 30. In order to ease the process of installation you can install one or more Zentyal profiles. A profile contains a set of packages that are commonly used in a task. This is a the list of the current profiles:

  • zentyal-office: ebox-samba, ebox-printers, ebox-antivirus, ebox-ebackup, ebox-software, ebox-monitor
  • zentyal-communication: ebox-mail, ebox-jabber, ebox-asterisk, ebox-mailfilter, ebox-antivirus, ebox-ebackup, ebox-software, ebox-monitor
  • zentyal-security: ebox-firewall, ebox-ids, ebox-squid, ebox-openvpn, ebox-mailfilter, ebox-antivirus, ebox-ebackup, ebox-software, ebox-monitor
  • zentyal-gateway: ebox-network, ebox-squid, ebox-firewall, ebox-trafficshaping, ebox-l7-protocols, ebox-ebackup, ebox-software, ebox-monitor
  • zentyal-infrastructure: ebox-network, ebox-dhcp, ebox-dns, ebox-openvpn, ebox-webserver, ebox-ntp, ebox-ebackup, ebox-software, ebox-monitor, ebox-ftp

The groupware module (ebox-zarafa) needs an extra repository added in /etc/apt/sources.list:

deb http://archive.canonical.com/ubuntu lucid partner

Note that if you use our installer Zarafa is already included in the CD and it’s also included in the zentyal-office profile.

The old groupware module (ebox-egroupware) is also on a separate repository:

deb http://ppa.launchpad.net/zentyal/2.0-contrib/ubuntu lucid main

After editing your sources.list, make sure that your package database is up to date by running the following command:

sudo apt-get update

After that, you just need to run:

sudo apt-get install zentyal

And then point your browser to the Zentyal IP address and follow the instructions on screen:

https://<zentyal-ip-address>/

You can also use the command line to install the packages.

Example:

sudo apt-get install zentyal-office

You can also install all the eBox packages:

sudo apt-get install ebox-all

In case you need just a few modules you can also install any of the following list by running apt-get install <modulename>:

  • ebox-antivirus
  • ebox-asterisk
  • ebox-ca
  • ebox-dhcp
  • ebox-dns
  • ebox-ebackup
  • ebox-firewall
  • ebox-ftp
  • ebox-ids
  • ebox-jabber
  • ebox-l7-protocols
  • ebox-mail
  • ebox-mailfilter
  • ebox-monitor
  • ebox-network
  • ebox-ntp
  • ebox-objects
  • ebox-openvpn
  • ebox-printers
  • ebox-remoteservices
  • ebox-samba
  • ebox-services
  • ebox-software
  • ebox-squid
  • ebox-trafficshaping
  • ebox-usersandgroups
  • ebox-webserver
  • ebox-radius
  • ebox-webmail
  • ebox-zarafa

The new package names from Zentyal 2.1 on are:

  • zentyal-antivirus
  • zentyal-asterisk
  • zentyal-ca
  • zentyal-dhcp
  • zentyal-dns
  • zentyal-ebackup
  • zentyal-firewall
  • zentyal-ftp
  • zentyal-ids
  • zentyal-jabber
  • zentyal-l7-protocols
  • zentyal-mail
  • zentyal-mailfilter
  • zentyal-monitor
  • zentyal-network
  • zentyal-ntp
  • zentyal-objects
  • zentyal-openvpn
  • zentyal-printers
  • zentyal-remoteservices
  • zentyal-samba
  • zentyal-services
  • zentyal-software
  • zentyal-squid
  • zentyal-trafficshaping
  • zentyal-users
  • zentyal-usercorner
  • zentyal-webserver
  • zentyal-radius
  • zentyal-webmail
  • zentyal-zarafa

Taken from: Zentyal Documentation

Mobile Development with PhoneGap

I’m starting a new project, it will be a mobile application and in the search for the best framework/platform I’ve found PhoneGap it looks very promising and is the only framework out there that supports 6 different platforms, here are the steps to install it on Mac OS X.
Wait for more post about this in the future and I’ll be opening a new page for projects and post all my advance there.
PhoneGap platforms

Install Firefox 4 in Ubuntu from PPA

As you may know Firefox has reached more than the double of downloads than IE9 in just 24 hours, If you use Ubuntu and need an easy and quick way to update your current Firefox version, here are the steps:

Firefox 4

First we need to add the Firefox PPA repository, type the following command in your terminal:

sudo add-apt-repository ppa:mozillateam/firefox-stable

If you already have installed Firefox on your system use:

sudo aptitude update && sudo aptitude upgrade

For new installations use:

sudo aptitude update && sudo aptitude install firefox

That’s it, enjoy! ;)

Ubuntu Wireless Compaq Mini

First lets see what is your wifi card info, type the following in a terminal:

lspci | grep Wireless

My info is:

02:00.0 Network controller: RaLink RT3090 Wireless 802.11n 1T/1R PCIe

Next you have to install the dkms package:

sudo aptitude install dkms

Now download the file rt3090-dkms_2.3.1.7-0ubuntu0~ppa2_all.deb from this page (I’m using Ubuntu 10.04, you can choose whatever best fits your version)

After download is complete, you can install it with:

sudo dpkg -i rt3090-dkms_2.3.1.7-0ubuntu0~ppa2_all.deb

Wait a couple of minutes, reboot and you’re done.

Happy wardriving! :p