Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

How-To: encrypted partitions over LVM with LUKS

Posted by chantra on 12th July 2008

This entry is part 1 of 3 in the series How-To: encrypted partitions over LVM with LUKS

Even though new distros installers tend to support filesystem encryption out of the box, most of the time, it might be interesting to actually understand how it works, mainly when it happens that your system fails to boot :).

Most literature found on the Internet tend to cover how to set up LVM over a partition encrypted with LUKS, this tutorial takes another approach and will explain how to create LUKS encrypted partitions over LVM. The reason for this.... I wanted to have unencrypted partitions :D.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, System | No Comments »

How-To: copy files over the network and preserve file permissions and informations with ssh and rsync

Posted by chantra on 20th June 2008

When copying files over the network, the files informations can be modified.

When using cp, one can avoid this issue by using the -a which will do the copy in archive mode, meaning that it will keep the links, preserve mode, ownership and timestamps and the copy is recursive.

the solution to this over the network is rsync alongside with ssh.

Read the rest of this entry »

Tags: , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Import/Export GPG key pair

Posted by chantra on 15th April 2008

This tutorial will show how you can export and import a set of GPG keys from one computer to another.
This way, you can sign/encrypt the same way one different computer.

Read the rest of this entry »

Tags: ,
Posted in HowTo, Softwares, System | 4 Comments »

How-To: create a self-signed certificate

Posted by chantra on 20th August 2007

This tutorial will explain how to create a self-signed certificate that you will be able to use with apache in order to provide ssl support.

A self signed certificate won't provide as much security guarantees than a CA-signed certificate, but at least you will be able to use encrypted connection to your server.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, System | No Comments »

How-To: Connect to a Cisco VPN with vpnc

Posted by chantra on 11th August 2007

This tutorial will show how-to connect to a Cisco VPN Concentrator using vpnc.

vpnc is a VPN client compatible with cisco3000 VPN Concentrator which runs in userspace and uses the tun kernel module.

Read the rest of this entry »

Tags: , ,
Posted in Administration, HowTo, Networking | No Comments »

How-To: Monitor your servers with SNMP and Cacti

Posted by chantra on 11th June 2007

This entry is part 1 of 3 in the series How-To: Monitor your servers with SNMP and Cacti

SNMP (Simple Network Management Protocol) is a protocol for managing networks. Each managed entity in the network will run an snmp server (snmpd) which is going to collect datas from the server such as networking, load, cpu ...

Cacti on the other hand is a frontend to the RRDTool with SNMP support. It collects and keep data in a MySQL database and display them through a PHP web frontend.

This tutorial will show how to configure the network manager to use Cacti and how to set up snmp on the managed host.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | 1 Comment »

How-To: Monitor your servers with SNMP and Cacti — page 3

Posted by chantra on 10th June 2007

This entry is part 3 of 3 in the series How-To: Monitor your servers with SNMP and Cacti

3. Adding new devices to cacti

A device can be anything which is SNMP enabled. It could be a router, a switch....

In our example, we are going to add the server we configured in the first part of this tutorial. The server is on localhost, but it could be anywhere on a network, as long as our manager host is allowed to connect to its SNMP port.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Monitor your servers with SNMP and Cacti — page 2

Posted by chantra on 10th June 2007

This entry is part 2 of 3 in the series How-To: Monitor your servers with SNMP and Cacti

Now that we have our snmp server up and running, we are going to install cacti to manage the snmp server in our network.

2. Installing Cacti

Cacti displays system statistics through a PHP/MySQL web interface.

To gather informations, it runs a script which is going to poll the servers you registered in cacti: /usr/share/cacti/site/poller.php.

So, let's get started an install cacti.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To create a MySQL database and set privileges to a user

Posted by chantra on 21st May 2007

MySQL is a widely spread SQL database management system mainly used on LAMP (Linux/Apache/MySQL/PHP) projects.

In order to be able to use a database, one needs to create: a new database, give access permission to the database server to a database user and finally grant all right to that specific database to this user.

This tutorial will explain how to create a new database and give a user the appropriate grant permissions.

Read the rest of this entry »

Tags: , ,
Posted in Administration, HowTo, System | 10 Comments »

How-To set up a LDAP server and its clients — page 2

Posted by chantra on 22nd February 2007

This entry is part 2 of 2 in the series How-To set up a LDAP server and its clients

2. Configuring the clients

Each client will need a set of packages. So, now that you are logged on one of your clients, install:

#apt-get install libnss-ldap libpam-ldap nscd
LDAP Account for root: cn=admin,dc=debuntu,dc=local
Password: XXXX
Make local root database admin: yes
Database require logging in: No
Root login account: cn=admin,dc=debuntu,dc=local
Root login password: XXXX

Read the rest of this entry »

Tags: , ,
Posted in Administration, HowTo, Networking, System | 1 Comment »