LinuxMoz

Linux Stuff && Coffee

CentOS 6 Netinstall Tutorial

| Comments

This tutorial walks you through the process of installing a CentOS Netinstall version of CentOS 6. A netinstall is small cut down ISO of CentOS 6 which allows you to download the packages required for the installation, saving bandwidth and time. Please note if you do not have an active Internet connection you should following our other guide on how to install CentOS 6.

CentOS Install GIT Tutorial

| Comments

How to install GIT on CentOS, GIT is a subversion style system used by Python / Django and programmers for version control / check.

CentOS GIT Install Command

To install GIT on CentOS using YUM enter the following command as root:

1
yum install git

Check the packages YUM is asking to install and press Y to confirm.

YUM will now pull down the required RPM packages and install GIT, you can then setup GIT for your version control or install packages via GIT for software such as python’s Django.

How to Install Ubuntu PHP GD

| Comments

How to install PHP GB on Ubuntu using apt-get, specifically php5-gd.

To install PHP GD on Ubuntu enter the following command:

1
sudo apt-get install php5-gd

Check the packages Apt needs to install and press Y then enter.

Apt will then pull down all the packages that php5-gd depends on and install them, you will need to restart Apache for PHP GD to load.

1
sudo /etc/init.d/apache2 restart

Check that GD is loaded using a phpinfo script.

Raspberry Pi Debian Download Image Link

| Comments

How to download Raspberry Pi Debian image both directly and via high speed torrents. The Debian Squeeze image is recommended if you are just starting out using Raspberry Pi and need a working Linux system and contains LCDE, dev tools and some example source code to sink your teeth into.

Raspberry Pi Debian Squeeze Download

Below is a direct high speed mirror link to download the latest Debian Squeeze image for Raspberry Pi.

Direct Download Torrent Download

SHA1 Checksum: 5e9b87ec7597f0ccae47c9cf153516fe803a4b3a

Enjoy Debian on your Raspberry Pi :)

Asterisk UK Ring Tone Settings

| Comments

To Setup Asterisk with UK Ring tones and various other UK ringing tones such as engaged tone and other BT ring tones add / modify your existing indications.conf

Personally I comment out the existing UK section and add the following UK section in indications.conf:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[general]
country=uk

[uk]
description = United Kingdom
ringcadence = 400,200,400,2000
; These are the official tones taken from BT SIN350. The actual tones
; used by BT include some volume differences so sound slightly different
; from Asterisk-generated ones.
dial = 350+440
; Special dial is the intermittent dial tone heard when, for example,
; you have a divert active on the line
specialdial = 350+440/750,440/750
; Busy is also called "Engaged"
busy = 400/375,0/375
; "Congestion" is the Beep-bip engaged tone
congestion = 400/400,0/350,400/225,0/525
; "Special Congestion" is not used by BT very often if at all
specialcongestion = 400/200,1004/300
unobtainable = 400
ring = 400+450/400,0/200,400+450/400,0/2000
callwaiting = 400/100,0/4000
; BT seem to use "Special Call Waiting" rather than just "Call Waiting" tones
specialcallwaiting = 400/250,0/250,400/250,0/250,400/250,0/5000
; "Pips" used by BT on payphones. (Sounds wrong, but this is what BT claim it
; is and I've not used a payphone for years)
creditexpired = 400/125,0/125
; These two are used to confirm/reject service requests on exchanges that
; don't do voice announcements.
confirm = 1400
switching = 400/200,0/400,400/2000,0/400
; This is the three rising tones Doo-dah-dee "Special Information Tone",
; usually followed by the BT woman saying an appropriate message.
info = 950/330,0/15,1400/330,0/15,1800/330,0/1000
; Not listed in SIN350
record = 1400/500,0/60000
stutter = 350+440/750,440/750

Enjoy UK ringing on Asterisk.

Ubuntu Install Curl Command

| Comments

How to install Curl on Ubuntu from the command line using apt-get:

Ubuntu Install cURL apt-get Command

1
sudo apt-get install curl

You should get an output similar to the following:

Ubuntu install cURL

Ubuntu GCC Install Command

| Comments

Ubuntu GCC install tutorial showing you the required apt-get command required to install the GCC compiler on Ubuntu.

Ubuntu install GCC Command

Ubuntu GCC install from the Command line

To install GCC on Ubuntu use the following apt-get command with root privileges:

1
sudo apt-get install gcc

This should give you an output similar to the following:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
root@ubuntu:~# apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-20 linux-headers-3.2.0-20-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  binutils cpp cpp-4.6 gcc-4.6 libc-dev-bin libc6-dev libgomp1 libmpc2
  libmpfr4 libquadmath0 linux-libc-dev manpages-dev
Suggested packages:
  binutils-doc cpp-doc gcc-4.6-locales gcc-multilib make autoconf automake1.9
  libtool flex bison gdb gcc-doc gcc-4.6-multilib libmudflap0-4.6-dev
  gcc-4.6-doc libgcc1-dbg libgomp1-dbg libquadmath0-dbg libmudflap0-dbg
  binutils-gold glibc-doc
The following NEW packages will be installed
  binutils cpp cpp-4.6 gcc gcc-4.6 libc-dev-bin libc6-dev libgomp1 libmpc2
  libmpfr4 libquadmath0 linux-libc-dev manpages-dev
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.0 MB of archives.
After this operation, 54.9 MB of additional disk space will be used.
Do you want to continue [Y/n]?

Ubuntu GIT Install Tutorial

| Comments

How to install GIT on Ubuntu, GIT is a Fast Version Control system similar to SVN (Subversion). GIT is also used by python to install packages such as Django, to install GIT on Ubuntu run the following from the command line.

Ubuntu Install GIT Command

Enter the following Ubuntu install GIT command via sudo:

1
sudo apt-get install git

Ubuntu GIT Install

apt-get will now download and install all the required packages to install GIT on Ubuntu.

(This has been tested on Ubuntu 12.04 LTS edition).

RPM List Installed Packages Command

| Comments

How To list all RPM packages on a system using the RPM package management system you need to use the following RPM list installed packages command.

RPM List all Packages

Enter the following command as root to List all installed RPM’s on a system:

1
rpm -qa

You might want to limit the output of the RPM list installed packages command (rpm -qa) using the less command (or more which ever you favor).

1
rpm -qa | more

Check RPM is installed

If you need to check if an RPM packages is installed you can grep the out put, say for example I want to find out what version of PHP is installed on my CentOS server:

1
rpm -qa | grep php

This will give you an output similar to:

1
2
3
4
5
6
7
8
9
10
11
[root@583161 ~]# rpm -qa | grep php
php-pdo-5.3.3-3.el6_2.6.x86_64
php-mysql-5.3.3-3.el6_2.6.x86_64
php-gd-5.3.3-3.el6_2.6.x86_64
php-common-5.3.3-3.el6_2.6.x86_64
php-odbc-5.3.3-3.el6_2.6.x86_64
php-mbstring-5.3.3-3.el6_2.6.x86_64
php-pear-1.9.4-4.el6.noarch
php-cli-5.3.3-3.el6_2.6.x86_64
php-5.3.3-3.el6_2.6.x86_64
php-xmlrpc-5.3.3-3.el6_2.6.x86_64