Tuesday, June 26, 2007

Boring notes of day to day Linux

These are just some notes from my last asterisk installation (done on may 15th but notes lost between all the desktop files) and they are here because man is the only animal that stumbles on the same rock and even worst I am far away to grew up.

a) Usefull installations for debian:

apt-get install mc bzip2 zip unzip ngrep iproute less

b) Some detatails on debian networking:

Networking:

rbast:/etc/network# pwd
/etc/network
rbast:/etc/network# more 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
rbast:/etc/network#


Could be changed to:
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
auto eth0
iface eth0 inet static
address 10.0.2.51
netmask 255.255.255.0
gateway 10.0.2.254


c) how to open bz2 files (I always forget!!!)

tar -xjvf asterisk_settings.tar.bz2

d) I got an autoconf error

autonf error: solved by installing atuconf (apt-get) and running make config.

232 make
233 make config
234 make install
235 history


e) I got a cc1plus error

Asterisk installation: Got an error related to cc1plus while doing the .configuration. I apt-geted the packaged and worked.

apt-get install build-essential


f) Finally booting Asterisk at start time:

147 cd /etc/init.d/
148 cp /usr/src/asterisk-1.4.4/contrib/init.d/rc.debian.asterisk ./asterisk
149 ls
150 update-rc.d asterisk defaults

It should display the following output:

rbast:/etc/init.d# update-rc.d asterisk defaults
Adding system startup for /etc/init.d/asterisk ...
/etc/rc0.d/K20asterisk -> ../init.d/asterisk
/etc/rc1.d/K20asterisk -> ../init.d/asterisk
/etc/rc6.d/K20asterisk -> ../init.d/asterisk
/etc/rc2.d/S20asterisk -> ../init.d/asterisk
/etc/rc3.d/S20asterisk -> ../init.d/asterisk
/etc/rc4.d/S20asterisk -> ../init.d/asterisk
/etc/rc5.d/S20asterisk -> ../init.d/asterisk
rbast:/etc/init.d# history

No comments: