Installation depuis nos dépots

Hi guys,

Here is the Xivo on Raspberry-Pi install doc !

I assume you already have a Raspberry-Pi 2-3 with a class 10 SD-Card.

Raspbian

Download the image :

wget http://www.iris-network.fr/raspbian-jessie-lite.img

Install on the SD-Card, With sdb here, but be VERY careful with this, dont erase your data..

dd bs=4M if=2016-05-10-raspbian-jessie-lite.img of=/dev/sdb

Login on da Raspberry-Pi with the pi user (pwd raspberry), next go root with 'sudo su -'.

Prepare

Disable ipv6

echo "net.ipv6.conf.all.disable_ipv6=1" >> /etc/sysctl.conf

Overclock

cat > /boot/config.txt << EOF
[pi2]
kernel=vmlinuz-3.18.0-trunk-rpi2
initramfs initrd.img-3.18.0-trunk-rpi2 followkernel
arm_freq=1000
sdram_freq=500
core_freq=500
over_voltage=2
EOF

Locales configuration

dpkg-reconfigure locales tzdata

Add the en_US.UTF8 locale, and your own locale if different

Install of the default softs

apt-get update
apt-get install debian-archive-keyring zsh ncurses-term git curl apt-transport-https debian-keyring -y

Upgrade

apt-get upgrade -y
apt-get dist-upgrade -y

Reboot

reboot

Xivo's install

Add the apt's sources files

# Raspberry 2
cat > /etc/apt/sources.list.d/irisnetwork.list << EOF
deb http://www.iris-network.fr/raspivo/latest jessie main
deb http://ftp.fr.debian.org/debian/ stable main contrib non-free
EOF
# Raspberry 3
cat > /etc/apt/sources.list.d/irisnetwork.list << EOF
deb http://www.iris-network.fr/raspivo/raspberrypi3/latest jessie main
deb http://ftp.fr.debian.org/debian/ stable main contrib non-free
EOF
# Olinunixo
cat > /etc/apt/sources.list.d/irisnetwork.list << EOF
deb http://www.iris-network.fr/raspivo/A20-OLinuXIno-LIME2/latest jessie main
deb http://ftp.fr.debian.org/debian/ stable main contrib non-free
EOF
ClePowa=3FC6A9B2ACDD4CF3 && gpg --keyserver pgpkeys.mit.edu --recv-key $ClePowa && gpg -a --export $ClePowa | apt-key add -
apt-get update

If you don't have access right for the latest repo, you have to replace latest by the version you want (probably the last)

Let's go

mkdir /var/lib/xivo/
touch /var/lib/xivo/disabled
apt-get install -y xivo

# As dahdi can't run on the Pi, we have to modify the init script
sed -i 's/  status)/  status)\n\texit 0/g' /etc/init.d/dahdi

The last reboot!

reboot

Connect with a browser directly on the IP address of the Raspberry-Pi, launch the setup GUI, take a beer, two beers, maybe one good Whisky, and 20 minutes later it's done !

The Iris-Network team.

Comments !

links