Submit Debian GNU/Linux Howto’s,Articles,Tips and Tricks
View original post
Debian Admin provides free hosting for Debian/Ubuntu tutorials for everything related to Debian/Ubuntu GNU/Linux.
If you want to add your Howto’s,Articles,Tips and Tricks to Debian Admin, please register here and start publishing your content.
Filed under Debian | Comment (0)
A SUCCESSFULL installation guide to VHCS2 on Debian Etch (4.0)
View original post
I’ve read a lot of manuals, how-to’s etc. describing the process of setting a Debian webserver containing the great VHCS2 control panel system. I’ve tried them all, and all were failing for me on several critical points. So i tried to gathered all steps to this one-stop how-to.
First of all, download your debian-etch iso from http://cdimage.debian.org/debian-cd/4.0_r0/i386/iso-cd/debian-40r0-i386-netinst.iso (for i386 systems only, please visit http://cdimage.debian.org/debian-cd/4.0_r0/ for other distributions) and burn your iso to CD-ROM (you can use CDBurnerXP for free, http://www.cdburnerxp.se/).
Startup your server with the CD inserted. When the boot-manager is shown, ENTER. The setup wizard for Debian Etch will start and guide you through the installation procedure of Debian.
Important!:
when asked at software selection choose Standard system only and hit continue
when asked if the GRUB boot loader has to be installed, choose Yes
Next we go on preparing our system for VHCS.
after installation and re-boot, for your sake install the SSH server:
#apt-get install ssh
Now you can log-on from your desktop machine into your fresh debian server by using Putty (and the best of all, copying and pasting parts of this manual directly into your terminal).
Configure your network interfaces:
#vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.201
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
Now run
echo your.defined.hostname > /etc/hostname
Reboot the system:
#shutdown -r now
Afterwards, run:
#hostname
#hostname -f
Both should show your hostname (like server1.example.com)
Edit /etc/apt/sources.list and comment out the cd-rom entry:
#vi /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main
deb http://ftp2.de.debian.org/debian/ etch main
deb-src http://ftp2.de.debian.org/debian/ etch main
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
save the file and exit.
Then run:
#apt-get update
And run:
#apt-get upgrade
Now, install the MySQL server (MySQL5):
#apt-get install mysql-server mysql-client libmysqlclient15-dev phpmyadmin
We want MySQL to listen on all interfaces, not just localhost, so:
#vi /etc/mysql/my.cnf
find the line “bind-address = 127.0.0.1″ and comment it out:
# bind-address = 127.0.0.1
then, we restart MySQL:
#/etc/init.d/mysql restart
now check that networking is enabled, run:
#netstat -tap
You should see a line like this:
tcp 0 0 *:mysql *:* LISTEN 3281/mysqld
Run
#mysqladmin -u root password yourpassword
#mysqladmin -h server1.example.com -u root password yourpassword
(replace yourpassword with your desired password, replace server1.example.com with the hostname you set at installation)
next we install Apache 2(.2) with PHP5
#apt-get install apache2 apache2-doc apache2-mpm-prefork apache2.2-common apache2-utils libexpat1 ssl-cert
next we install php5
#apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
you will be asked the following question:
Continue installing libc-client without Maildir support?
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml
edit /etc/apache2/ports.conf and add Listen 443:
#vi /etc/apache2/ports.conf
Listen 80
Listen 443
now we have to enable some Apache modules (SSL, rewrite, suexec, and include):
#a2enmod ssl
#a2enmod rewrite
#a2enmod suexec
#a2enmod include
and reload the apache configuration:
#/etc/init.d/apache2 force-reload
now we’re going to prepare the system for the VHCS installation:
#apt-get install postfix postfix-tls
Please at request fill in the hostname you’ve entered at the debian installation, e.g. server1.example.com
#apt-get install proftpd proftpd-mysql
Please choose for “Stand alone” at request
#apt-get install courier-authdaemon courier-base courier-imap courier-maildrop courier-pop libberkeleydb-perl libcrypt-blowfish-perl libcrypt-cbc-perl \
libcrypt-passwdmd5-perl libdate-calc-perl libdate-manip-perl libdbd-mysql-perl libdbi-perl libio-stringy-perl libmail-sendmail-perl \
libmailtools-perl libmd5-perl libmime-base64-perl libmime-perl libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-perl \
libperl5.8 libsnmp-session-perl libterm-readkey-perl libtimedate-perl perl perl-base perl-modules bind9 diff gzip iptables libmcrypt4 patch procmail tar original-awk libterm-readpassword-perl \
libsasl2-modules libsasl2 sasl2-bin bzip2 gcc make libc6-dev
then open /etc/proftpd/proftp.conf to stop some errors from ProFTPD:
#vi /etc/proftpd/proftpd.conf
UseIPv6 off
Then, add some security fixes to it:
DefaultRoot ~
IdentLookups off
ServerIdent on “FTP Server Ready”
save the file and exit.
next we’re going to download the vhcs package:
#cd /usr/src
#wget http://downloads.sourceforge.net/vhcs/vhcs2-2.4.7.1.tar.bz2
then unpack the archive:
#tar -xjf vhcs2-2.4.7.1.tar.bz2
enter the newly created directory:
#cd vhcs2-2.4.7.1
now, we’re creating the installer:
#make install
after this, go to:
#cd /tmp/vhcs2-2.4.7.1
and copy all of it’s content to the right destination:
#cp -R * /
after this, go to:
#cd /var/www/vhcs2/engine/
now, edit the file vhcs2_common_code.pl
#vi vhcs2_common_code.pl
now, turn on displaying line numbers within Vi:
:set nu
scroll down to line 1408, look for:
`key`=>$main::db_pass_key,
next, add the following line BEFORE the above quoted line:
`keysize`=>32,
scroll down to line 1446 where you will need to repeat the above steps
now save the file and exit.
Start-up the VHCS2 installer:
#cd /var/www/vhcs2/engine/setup
#./vhcs2-setup
At setup, fill in all fields requested.
Now you’ve succesfully installed your debian etch machine containing VHCS2 for virtual hosting!
Tags: apache2 with ssl etch, configuring vhcs isp control panel etch, isp control panel etch, mysql server debian etch, postfix etch, proftpd server etch, vhcs debian, vhcs etch, vhcs setup etch, vhcs2 debian, vhcs2 etch, webserverapache2 with ssl etch, configuring vhcs isp control panel etch, isp control panel etch, mysql server debian etch, postfix etch, proftpd server etch, vhcs debian, vhcs etch, vhcs setup etch, vhcs2 debian, vhcs2 etch, webserver
Filed under Debian | Comment (0)
Use Google Linux repositories in Debian
View original post
Google’s Linux software repositories make it easier to download and stay up-to-date with current releases of Google Linux applications. Please choose one of the guides below to help configure your system to use these repositories.
First you need to edit /etc/apt/sources.list file
#vi /etc/apt/sources.list
add the following line
# Google software repository
deb http://dl.google.com/linux/deb/ stable non-free
Save and exit the file
you must download the key and then use apt to install it and refresh your package indexes.
Run these commands as root:
#wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
Now you need to update the source list using the following command
#apt-get update
Install google applications now you can see the following command to install google picasa
#apt-get install picasa
Tags: google earth debian, Google Linux repositories, Google Linux repositories in Debian, install Google software from Linux repositories in Debian, picasa debiangoogle earth debian, Google Linux repositories, Google Linux repositories in Debian, install Google software from Linux repositories in Debian, picasa debian
Filed under Debian | Comment (0)
Monitoring Debian Servers Using Monit
View original post
monit is a utility for managing and monitoring, processes, files, directories and devices on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.
* Daemon mode - poll programs at a specified interval
* Monitoring modes - active, passive or manual
* Start, stop and restart of programs
* Group and manage groups of programs
* Process dependency definition
* Logging to syslog or own logfile
* Configuration - comprehensive controlfile
* Runtime and TCP/IP port checking (tcp and udp)
* SSL support for port checking
* Unix domain socket checking
* Process status and process timeout
* Process cpu usage
* Process memory usage
* Process zombie check
* Check the systems load average
* Check a file or directory timestamp
* Alert, stop or restart a process based on its characteristics
* MD5 checksum for programs started and stopped by monit
* Alert notification for program timeout, restart, checksum, stop resource and timestamp error
* Flexible and customizable email alert messages
* Protocol verification. HTTP, FTP, SMTP, POP, IMAP, NNTP, SSH, DWP,LDAPv2 and LDAPv3
* An http interface with optional SSL support to make monit accessible from a webbrowser
Install Monit in Debian
#apt-get install monit
This will complete the installation with all the required software.
Configuring Monit
Default configuration file located at /etc/monit/monitrc you need to edit this file to configure your options
Sample Configuration file as follows and uncomment all the following options
## Start monit in background (run as daemon) and check the services at 2-minute
## intervals.
#
set daemon 120
## Set syslog logging with the ‘daemon’ facility. If the FACILITY option is
## omited, monit will use ‘user’ facility by default. You can specify the
## path to the file for monit native logging.
#
set logfile syslog facility log_daemon
## Set list of mailservers for alert delivery. Multiple servers may be
## specified using comma separator. By default monit uses port 25 - it is
## possible to override it with the PORT option.
#
set mailserver localhost # primary mailserver
## Monit by default uses the following alert mail format:
From: monit@$HOST # sender
Subject: monit alert — $EVENT $SERVICE # subject
$EVENT Service $SERVICE
Date: $DATE
Action: $ACTION
Host: $HOST # body
Description: $DESCRIPTION
Your faithful,
monit
## You can override the alert message format or its parts such as subject
## or sender using the MAIL-FORMAT statement. Macros such as $DATE, etc.
## are expanded on runtime. For example to override the sender:
#
set mail-format { from: monit@monitorserver.com }
## Monit has an embedded webserver, which can be used to view the
## configuration, actual services parameters or manage the services using the
## web interface.
#
set httpd port 2812 and
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
allow 172.29.5.0/255.255.255.0
allow admin:monit # require user ‘admin’ with password ‘monit’
# Monitoring the apache2 web services.
# It will check process apache2 with given pid file.
# If process name or pidfile path is wrong then monit will
# give the error of failed. tough apache2 is running.
check process apache2 with pidfile /var/run/apache2.pid
#Below is actions taken by monit when service got stuck.
start program = “/etc/init.d/apache2 start”
stop program = “/etc/init.d/apache2 stop”
# Admin will notify by mail if below of the condition satisfied.
if cpu is greater than 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart
if totalmem > 200.0 MB for 5 cycles then restart
if children > 250 then restart
if loadavg(5min) greater than 10 for 8 cycles then stop
if 3 restarts within 5 cycles then timeout
group server
#Monitoring Mysql Service
check process mysql with pidfile /var/run/mysqld/mysqld.pid
group database
start program = “/etc/init.d/mysql start”
stop program = “/etc/init.d/mysql stop”
if failed host 127.0.0.1 port 3306 then restart
if 5 restarts within 5 cycles then timeout
#Monitoring ssh Service
check process sshd with pidfile /var/run/sshd.pid
start program “/etc/init.d/ssh start”
stop program “/etc/init.d/ssh stop”
if failed port 22 protocol ssh then restart
if 5 restarts within 5 cycles then timeout
You can also include other configuration files via include directives:
include /etc/monit/default.monitrc
include /etc/monit/mysql.monitrc
This is only sample configuration file. The configuration file is pretty self-explaining; if you are unsure about an option, take a look at the monit documentation http://www.tildeslash.com/monit/doc/manual.php
After configuring your monit file you can check the configuration file syntax using the following command
#monit -t
Once you don’t have any syntax errors you need to enable this service by changing the file /etc/default/monit
# You must set this variable to for monit to start
startup=0
to
# You must set this variable to for monit to start
startup=1
Now you need to start the service using the following command
#/etc/init.d/monit start
Monit Web interface
Monit Web interface will run on the port number 2812.If you have any firewall in your network setup you need to enable this port.
Now point your browser to http://yourserverip:2812/ (make sure port 2812 isn’t blocked by your firewall), log in with admin and monit.If you want a secure login you can use https check here
Monitoring Different Services
Here’s some real-world configuration examples for monit. It can be helpful to look at the examples given here to see how a service is running, where it put its pidfile, how to call the start and stop methods for a service, etc. Check here for more examples.
Tags: configure services in monit, configuring monit, install monit debian, monit debian, monit examples, monit web interface, Monitoring, monitoring debian serversconfigure services in monit, configuring monit, install monit debian, monit debian, monit examples, monit web interface, Monitoring, monitoring debian servers
Filed under Debian | Comment (0)
Enable Foreign Language Support For PDF
View original post
XPDF is a suite of tools for Portable Document Format (PDF) files. These are sometimes referred to as ‘Acrobat’ files after the name of Adobe’s PDF software. To enable support for Foreign Languages including Chinese to view PDF Files you need to install the language support. Here are the instructions.
The tools include xpdf, a PDF viewer (in the package xpdf-reader), and PDF converters (including to/from PostScript) (in the package xpdf-utils).
To install the xpdf type;
sudo apt-get install xpdf-%langugae%
where %language% is the language you wish to install.
The following languages are available;
- Arabic: xpdf-arabic.tar.gz (1058 bytes)
- Chinese/simplified: xpdf-chinese-simplified.tar.gz (835807 bytes)
- Chinese/traditional: xpdf-chinese-traditional.tar.gz (794568 bytes)
- Cyrillic: xpdf-cyrillic.tar.gz (1326 bytes)
- Greek: xpdf-greek.tar.gz (1164 bytes)
- Hebrew: xpdf-hebrew.tar.gz (1314 bytes)
- Japanese: xpdf-japanese.tar.gz (494624 bytes)
- Korean: xpdf-korean.tar.gz (470166 bytes)
- Latin2: xpdf-latin2.tar.gz (1435 bytes)
- Thai: xpdf-thai.tar.gz (1873 bytes)
- Turkish: xpdf-turkish.tar.gz (1140 bytes)
For example to install Chinese simplified you would type;
sudo apt-get install xpdf-chinese-simplified

Source from here
Tags: Enable Foreign Language Support For PDF, install xpdf ubuntu, Other Linux, xpdf ubuntuEnable Foreign Language Support For PDF, install xpdf ubuntu, Other Linux, xpdf ubuntu
Filed under Debian | Comment (0)
Gip - IP calculator for GNOME desktop environment
View original post
Gip is an IP address calculator that integrates well with the GNOME desktop environment.Gip provides system administrators with tools for IP address based calculations. For example, an administrator who needs to find out which IP prefix length equals the IP netmask 255.255.240.0, just types in the mask and gets the prefix length presented. But many more advanced calculations can be made. Gip can convert an address range into a list of prefix lengths. It can also split subnets using a given IP netmask or IP prefix length. Many more calculations are possible.
#apt-get install gip
This will complete the installation
If you want to open this application open terminal type the following command
gip
Once it opens you should see the following screen which is IPV4 Address Analyzer

IPv4 Range Prefix Converter screen

IPv4 Subnet Calculator Screen

Tags: gip debian, ip calculator debian, IP calculator for GNOME debian, Networkgip debian, ip calculator debian, IP calculator for GNOME debian, Network
Filed under Debian | Comment (0)
Load Applications Quicker in UBUNTU Using Preload
View original post
Preload is an adaptive read-ahead daemon. It monitors applications that users run, and by analyzing this data, predicts what applications users might run, and fetches those binaries and their dependencies into memory for faster startup times.
It runs as a daemon in the background so it is unobtrusive to your desktop. To install Preload open up Terminal and type in;
sudo apt-get install preload
For example, if you run Firefox, GAIM, and OpenOffice everyday Preload will determine these are common applications and will keep the libraries in your RAM before you even load them up - this leads to a faster startup time. Preload is also adaptive enough to determine if you change your working habits as well.
Preload does not need to be configured, it is adaptive and merely relies on a count of the number of times an application is launched to perform the preload.
Do not confuse Preload with Prefetch which is still under development and is expected to be part of Gutsy Gibbon in October 2007.
Nor is it to be confused with squid-prefetch which preloads web-pages.
The source article here
Tags: configuring preload ubuntu, install preload ubuntu, Load Applications Quicker in UBUNTU, Other Linux, preload ubuntuconfiguring preload ubuntu, install preload ubuntu, Load Applications Quicker in UBUNTU, Other Linux, preload ubuntu
Filed under Debian | Comment (0)
Configure GMail in Evolution, Thunderbird or KMail
View original post
Many of us would like to use our GMail accounts in Evolution, and to a lesser degree Thunderbird and KMail. Here is a step by step guide on how to configure Evolution, Thunderbird and KMail to access you GMail account.
The first step is to log in to your GMail account and to click on Settings and click on the Forwarding and POP tab. Under POP Download select Enable POP for all mail and click Save Changes.

Log out of GMail and go to your UBUNTU or Linux install.
Evolution
Start Evolution
If you have not used Evolution before, or haven’t set up an account the New Account Wizard will launch. Click Forward.
Type in your Full Name and your Gmail Email Address and click Forawrd.
Select SMTP as the Server Type. The Server is smtp.gmail.com. Encryption is TLS, Authentication is Plain and fill in your full Gmail Email Address. Click Forward.
Give your account a name, it does not have to be anything Logical. Click Forward.
Select the current Time Zone and click Forward.
Click Apply.
If the New Account Wizard doesn’t launch, then in Evolution go to Edit – Preferences and click on Mail Accounts. Edit the info so that it matches the information above and you will be able to send and receive GMail.
Thunderbird
Start Thunderbird
Select “File,” “New,” Account, the New Account Wizard will launch. On the window that pops up select “email account,” and next.
Then type in your name in the top box, and your full GMail email address in the bottom, and click next.
On the next window select “POP” as the type of incoming server, then name the incoming server “pop.gmail.com”.
It doesn’t matter if “Use Global Inbox is enabled” is checked, it makes all of your email accounts report to the same inbox, check it or uncheck it as you wish, and click next.
After that make your user name is the same as your email address and click next
Then type in an account name (eg: inbox, gmail, home) this is what you click on to access this account and can be whatever you want, and click next.
Click Finish.
Next click on Edit - Account Settings in Thunderbird and from the menu of the new window select “server settings.” Click SSL and the port will automatically switch to 995.
Click on Outgoing Server (SMTP) and specify smtp.gmail.com as the outgoing mail server, and select SSL as the encryption and the port will automatically switch to 465. Type in your full GMail email address and click ok.
Kmail
Start Kmail
Go to “Settings,” then “Configure Kmail”
Click on accounts
Click “Add”
Select POP3 on the window that pops up and OK
On this window type in whatever you want your account to be called under “Account Name.” Then type your login, which is your entire email address, and your password. Next for the host type in “pop.gmail.com,” and change the port to 950. Change the rest of the settings to your liking.
Then on the top tab, arrow over to “Extras” For encryption select “Use ssl for secure mail download,” and for Authentication Method, select “Clear Text.”
Here’s how to configure gmail outbound in Kmail.
Go to settings, configure kmail
Go to accounts and sending
Go to add, on the box that pops up select smtp and OK
The host is smtp.gmail.com
The port is 465
Check the box that says server requires authentication
*Your login is your email address (with the @gmail.com at the end)
Type your password
Go to security and check the ssl box.
Click OK, then apply
Go to identities, click modify, and type in your email address.
You can find the full article with screenshots here
Tags: Configure GMail in Evolution, Configure GMail in kmail, Configure GMail in thunderbirdConfigure GMail in Evolution, Configure GMail in kmail, Configure GMail in thunderbird
Filed under Debian | Comment (0)
Ubuntu Studio Screenshots Tour
View original post
Ubuntu Studio is a multimedia editing/creation flavour of Ubuntu. It’s built for the GNU/Linux audio, video, and graphic enthusiast or professional.Ubuntu Studio is an unofficial derivative of the Ubuntu open source operating system, based on Ubuntu, which is explicitly geared to general multimedia production.
This screenshots tour includes internet, multimedia,graphics,system applications,network application and other applications click on the image for complete Gallery.
Tags: Other Linux, Ubuntu Studio, Ubuntu Studio gallery, Ubuntu Studion ScreenshotsOther Linux, Ubuntu Studio, Ubuntu Studio gallery, Ubuntu Studion Screenshots
Filed under Debian | Comment (0)
Import Thunderbird Email Into Evolution
View original post
This Tutorial will explain how you can import mails from Thunderbird to Evolution. Changing email clients can be a risky task, as you usually want to keep your old email just in case you need to refer back to it. This can usually be easily done by using the Export function from the client you want to move from, and finally import to your new client using the Import function.
Unfortunately, Thunderbird does not offer an export option yet. Because of that, importing your old mails to Evolution is not made that easy. But, luckily enough, Thunderbird uses a standard mail box format: mbox. mbox format is suported out of the box by Evolution through its import feature.
We know that we can easily import mails from thunderbird, the only thing left, is to find out where those emails files are. The location can be found through the account properties page. In Thunderbird go to Edit—>Account Settings… and select the account you want to import the mails from, then select the sub-entry Server Settings and look for the Local Directory text field. It should look like:
/home/user/.mozilla-thunderbird/pgegcpnej.default/Mail/mail.server.com
If you ‘ls’ this directory, you will find a collection of files and directory. You will most likely have to do an ls –a to see the hidden directory. If you look at Inbox for instance. We have:
* Inbox.sbd directory
* Inbox.msf
* Inbox
Inbox.sdb is a directory containing all subdirectories and their messages that you might have create under Inbox folder in thunderbird.
Inbox.msf is a file containing a summary of your emails for better performance.
Finally, Inbox file contains your mails in a mbox format. This is the file you want to import in Evolution.
Let’s import our Thunderbird Inbox to Evolution. In Evolution click on File—>Import. This will open up a wizard window. Click Forward, choose Import a single file, click forward again. In the new window, open up the file browser, and make your way to /home/user/.mozilla-thunderbird/gfdse2df.default/Mail/mail.server.com .
Note: You may have to right click in the file browser window to enable the “Show Hidden Files”.
Select your Inbox file and that’s it. Evolution is going to import your thunderbird files.
If you created a lot of sub directories, you will have to go through every files (without the .msf extension) and sub-folders under Inbox.sbd.
http://www.goitexpert.com/entry.cfm?entry=Import-Thunderbird-Email-into-Evolution-on-UBUNTU
Tags: Import Thunderbird Email Into Evolution, Import Thunderbird Email Into Evolution in ubuntuImport Thunderbird Email Into Evolution, Import Thunderbird Email Into Evolution in ubuntu
Filed under Debian | Comment (0)







