tel: +2348055401551 (sms, whatsapp)
skype: tokunboajewole

Debian 6.0.6 Squeeze Installation Notes-4

The following is a continuation of my installation notes for Debian 6.0.6 Squeeze. Installation of applications is in no particular order. My objective is to reproduce tools I use in my windows partition on Debian. Listed are previous installation notes:

In this tutorial, I'll cover the installation of a couple of system tools, Firewall, managing .deb packages and setting up a LAMP-SERVER.

16) HOW TO INSTALL GNOME-SYSTEMS TOOLS (GST)

GST is a set of front-end tools for managing several services as listed below.

command: apt-get install gnome-system-tools

After installation, GST would be found under:

systems >> administration >> users and groups

systems >> administration >> network

systems >> administration >> TIme and date

systems >> administration >> services

references:

17) INSTALL GEANY TEXT EDITOR, KOMPOSER

command: apt-get instll geany geany-plugins

command: apt-get install kompozer

Geany and Kompozer are now found under applications >> programming

18) HOW TO EDIT MENU ITEMS

- Edit existing menu items and add new ones

a) right click on a menu item and use the "Edit Menus" to bring up the menu editor. The Menu Editor only provides options to edit (enable / disable) existing menu items.

What if you have installed a custom application and want to add it to the menu?

b) install alacarte - available in synaptic package manager - to create custom application launchers

- create a launcher to it in a panel : /usr/bin/alacarte

OR

if you dont know where its running from, type alacarte in terminal. Once the window is up, open another terminal session and type ps aux to see what link to use for the launcher.

Now you can add menu items to existing menus or create new ones - with Alacarte.

references:

19) INSTALL UNCOMPLICATED FIREWALL (UFW)

GUFW stands for GUI for the Uncomplicated Firewall(UFW). UFW uses very simple commands and iptables for configuration.

a) install GUFW from Synaptic Package Manager

GUFW is now available under System >> Administration >> Firewall configuration.

When launched, it prompts to enter root password and then might give the below error:

error message:=================================

Failed to run /usr/share/gufw/gufw.py as user root.

The underlying authorization mechanism (sudo) does not allow you to run this program. Contact the system administrator.

solution:==============================

Edit the .desktop file for the firewall configuration. File(gufw.desktop) is found in /usr/share/applications.

On the line beginning Exec: change gksudo to gksu. A reboot might be necessary to activate the change, although I didnt need to reboot my Debian box.

Below is an extract from the file before editing:

=====

[Desktop Entry]

Version=1.0

Type=Application

Terminal=false

Exec=gksudo --preserve-env --description /usr/share/applications/gufw.desktop /usr/share/gufw/gufw.py

Name=Firewall configuration

====

Below is an extract from the file after editing:

====[Desktop Entry]

Version=1.0

Type=Application

Terminal=false

Exec=gksu --preserve-env --description /usr/share/applications/gufw.desktop /usr/share/gufw/gufw.py

Name=Firewall configuration

====

reference:

20) HOW TO INSTALL, UNINSTALL / MANAGE .deb PACKAGES

a) to install .deb packages:

command: dpkg -i package_file_name.deb

where "-i" is to install a package

b) to check/verify/list if a package is installed:

command: dpkg -l | grep 'package_name'

example: dpkg -l | grep apache2

RESULT:

root@debian:/etc/apache2# dpkg -l | grep apache2

ii apache2 2.2.16-6+squeeze10 Apache HTTP Server metapackage

ii apache2-mpm-prefork 2.2.16-6+squeeze10 Apache HTTP Server - traditional non-threaded model

ii apache2-utils 2.2.16-6+squeeze10 utility programs for webservers

ii apache2.2-bin 2.2.16-6+squeeze10 Apache HTTP Server common binary files

ii apache2.2-common 2.2.16-6+squeeze10 Apache HTTP Server common files

ii libapache2-mod-php5 5.3.3-7+squeeze14 server-side, HTML-embedded scripting language (Apache 2 module)

c) to uninstall a package-name:

command: dpkg -r package-name

example: command: dpkg -r apache2

or

command: dpkg -P package-name

where -P is for a total purge of the package and its configuration files.

d) check package installation info of already installed package

command: dpkg -s packagename

example: dpkg -s apache2

result:

root@debian:/etc/apache2# dpkg -s apache2

Package: apache2

Status: install ok installed

Priority: optional

Section: httpd

Installed-Size: 36

Maintainer: Debian Apache Maintainers

Architecture: i386

Version: 2.2.16-6+squeeze10

Depends: apache2-mpm-worker (= 2.2.16-6+squeeze10) | apache2-mpm-prefork (= 2.2.16-6+squeeze10) | apache2-mpm-event (= 2.2.16-6+squeeze10) | apache2-mpm-itk (= 2.2.16-6+squeeze10), apache2.2-common (= 2.2.16-6+squeeze10)

Description: Apache HTTP Server metapackage

The Apache Software Foundation's goal is to build a secure, efficient and

extensible HTTP server as standards-compliant open source software. The

result has long been the number one web server on the Internet.

.

It features support for HTTPS, virtual hosting, CGI, SSI, IPv6, easy

scripting and database integration, request/response filtering, many

flexible authentication schemes, and more.

Homepage: http://httpd.apache.org/

root@debian:/etc/apache2#

references:

command: man dpkg - to see options available for the dpkg command

command: dpkg --help - for more help options.

21) HOW TO SETUP A LAMP-SERVER IN DEBIAN

To have your LAMP-SERVER running, install apache2, mysql-server, phpmyadmin. The three are available in Synaptic Package Manager.

a) install apache2 - install apache2 and dependencies from Synaptic

error message: "Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName"

solution:

  • add servername to httpd.conf - found in /etc/apache2/httpd.conf
  • restart apache: /etc/init.d/apache2 restart

result:

root@debian:/etc/apache2# /etc/init.d/apache2 restart

Restarting web server: apache2.

root@debian:/etc/apache2# ^C

references:

b) install mysql-server and its dependencies - install from Synaptic Package Manager

accept all defaults and remember any passwords used.

c) install phpmyadmin - mysql web administration tool - install from Synaptic Package Manager

accept all defaults and remember any passwords used.

d) start apache service:

command: service apache2 start

e) change default apache port from 80 to something else, as you please:

We have to edit file httpd.conf - just like below:

root@debian:/etc# cat /etc/apache2/httpd.conf

Listen 8080

DocumentRoot "/var/www"

ServerName debian:8080

root@debian:/etc#

f) with respect to (b), phpmyadmin is now available at:

http://deabian:8080

Note: ServerName:Listening-port

note: apache related configuration is found in /etc/apache2/apache2.conf

==============888888888=============

Thats all folks. Your comments are most welcome.

Add comment


Security code
Refresh

I use Linux 24x7

Recent Comments