Debian Tutorials Copy/Paste tutorials for Debian based Linux distros

5May/130

Upgrade from squeeze to wheezy

Debian just released a stable version of Debian 7.0 (wheezy). If you're running previous version of Debian, you can easily upgrade.

1. Update all packages currently installed to the latest squeeze versions

apt-get update
apt-get upgrade

20Apr/130

Secure SSH with Two-Factor Authentication (using Google Authenticator) on squeeze

Two-Factor authentication adds an extra layer of security to the authentication process to prevent unauthorized users to access your services or data. Normally you only type username and password (something you know) but with Two-Factor authentications, additionally you need to provide something you have (mobile phone running Android, iOS or Blackberry with one time codes when using Google Authenticator).

Google Authenticator on iPhone1. Download and install the Google Authenticator app for you phone. Here you can find instructions: http://support.google.com/accounts/bin/answer.py?hl=en&answer=1066447

7Apr/130

How to install Percona Server (MySql Server replacement) on squeeze

Percona Server is an enhanced drop-in replacement for MySQL. Persona server is free open source solution, offering better performance, scalability, features, and instrumentation. Self-tuning algorithms and support for extremely high-performance hardware make it the clear choice for organizations that demand excellent performance and reliability from their MySQL database server.

You can upgrade from MySql server and still use the same tools and application without any change, including phpMyAdmin. If you currently have a running MySql server please make backups of the configuration and databases before upgrading.

1. Remove MySql Server

apt-get remove mysql-server-core-5.1 mysql-server-5.1 mysql-server

16Oct/120

How to generate Courier mail graphs with Couriergraph and rrdtool

Couriergraph is a very simple mail statistics RRDtool frontend for Postfix that produces daily, weekly, monthly and yearly graphs of Courier's POP3, IMAP, POP3s and IMAPs logins.

Assuming you already have Courier and Apache installed, just install these packages:

apt-get install rrdtool couriergraph

16Oct/120

How to generate Postfix mail graphs with Mailgraph and rrdtool

Mailgraph is a very simple mail statistics RRDtool frontend for Postfix and Sendmail that produces daily, weekly, monthly and yearly graphs of received/sent and bounced/rejected mail.

Assuming you already have Postfix and Apache installed, just install these packages:

apt-get install rrdtool mailgraph

14Oct/123

How to re-stream RTSP stream with Wowza Media Server

When publishing live streams to the public from IP camera or other source, you will in most cases need a streaming server to re-stream the source for security purposes and to be able to handle the traffic. Wowza is great for that! Here's how to install it and set up a live RTSP re-stream.

Install Java Runtime Environment (JRE)

1. Add non-free packages to apt sources (pico /etc/apt/sources.list)

Add "non-free" behind "main" for all lines in the file. For example, change:
 
deb http://ftp.debian.org/debian/ squeeze main
deb-src http://ftp.debian.org/debian/ squeeze main
 
to
 
deb http://ftp.debian.org/debian/ squeeze main non-free
deb-src http://ftp.debian.org/debian/ squeeze main non-free

6Aug/121

How to install ffmpeg with H.264/MPEG-4 AVC

H.264/MPEG-4 Part 10 or AVC (Advanced Video Coding) is a standard for video compression, and is currently one of the most commonly used formats for the recording, compression, and distribution of high definition video.

The ffmpeg package provided by Debian repositories doesn't support H.264 due to patent restrictions. Luckily deb-multimedia.org provides a ffmpeg package compiled with H.264 support and it's very easy to install.

1. Add the deb-multimedia.org to apt sources

echo "deb http://www.deb-multimedia.org squeeze main non-free" >> /etc/apt/sources.list

15Jul/120

How to install Sun Java runtime (JRE)

1. Add non-free packages to apt sources (pico /etc/apt/sources.list)

Add "non-free" behind "main" for all lines in the file. For example, change:

deb http://ftp.debian.org/debian/ squeeze main
deb-src http://ftp.debian.org/debian/ squeeze main

Tagged as: , Continue reading
8Jul/120

Installing Pure-FTPd with MySql backend on squeeze

Pure-FTPd is actively supported, and it was always designed with security in mind. It doesn't provide useless bells and whistles, but focuses on efficiency and ease of use.

The server can run with privilege separation for paranoid security. It can even run 100% non-root, with its built-in chroot() emulation and virtual accounts.

1. Install the Pure-FTPd package
apt-get install pure-ftpd-mysql

20May/120

How to monitor SNMP devices with MRTG

Multi Router Traffic Grapher (MRTG)The Multi Router Traffic Grapher (MRTG) is free software for monitoring and measuring the traffic load on network links. It allows the user to see traffic load on a network over time in graphical form.

1. Install MRTG

apt-get install mrtg