New Scratch Instructions for Centos and Ubuntu

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

New Scratch Instructions for Centos and Ubuntu

Postby carpenox » Mon Apr 26, 2021 4:59 pm

I have added scratch install instructions for centos 8(thx steve@GenxOutsourcing.com for your help) and for Ubuntu 18(should work for 20 or 21 as well) to my blog at the.cyburhacker.com

please report any errors you may receive so I can clean up the instructions, I always seem to miss a step when I write it up....


thanks, I hope this helps..

-Nox
Leap 15.2 | Version: 2.14-814a | BUILD: 210608-2108 | SVN Version: 3452 | DB Schema Version: 1635 | Asterisk 16.17.0-vici
www.CyburityLLC.com -:- 844-PC-SATA-2 -:- My Blog: the.cyburhacker.com -:- Whatsapp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 1347
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: New Scratch Instructions for Centos and Ubuntu

Postby gcd135 » Sun May 02, 2021 1:13 am

Hi capenox

I followed centos8 scratch

the settings set on vicidial admin vicidial_user doesn't get updated at the database

where is the link for scratch install ubuntu 18?
gcd135
 
Posts: 6
Joined: Fri Apr 23, 2021 12:41 pm

Re: New Scratch Instructions for Centos and Ubuntu

Postby carpenox » Tue May 04, 2021 1:39 pm

there is many diff scratch installs on my blog or on the viciwiki but if you werent able to update a table are you sure the perl-DBD-MySQL package installed correctly? ive had this problem recently on some scratch installs where that particular package doesnt seem to install correctly therefore causing that issue
Leap 15.2 | Version: 2.14-814a | BUILD: 210608-2108 | SVN Version: 3452 | DB Schema Version: 1635 | Asterisk 16.17.0-vici
www.CyburityLLC.com -:- 844-PC-SATA-2 -:- My Blog: the.cyburhacker.com -:- Whatsapp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 1347
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: New Scratch Instructions for Centos and Ubuntu

Postby gcd135 » Fri Jun 04, 2021 1:10 am

Thanks to viewtopic.php?f=2&t=40337&p=144581&hilit=mariadb+10#p144581 !!!

settings are now updated at the database
gcd135
 
Posts: 6
Joined: Fri Apr 23, 2021 12:41 pm

Re: New Scratch Instructions for Centos and Ubuntu

Postby carpenox » Fri Jun 04, 2021 11:25 am

great addition to this post, thx GCD
Leap 15.2 | Version: 2.14-814a | BUILD: 210608-2108 | SVN Version: 3452 | DB Schema Version: 1635 | Asterisk 16.17.0-vici
www.CyburityLLC.com -:- 844-PC-SATA-2 -:- My Blog: the.cyburhacker.com -:- Whatsapp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 1347
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: New Scratch Instructions for Centos and Ubuntu

Postby arx001 » Thu Jun 10, 2021 10:01 am

carpenox wrote:I have added scratch install instructions for centos 8(thx steve@GenxOutsourcing.com for your help) and for Ubuntu 18(should work for 20 or 21 as well) to my blog at the.cyburhacker.com

please report any errors you may receive so I can clean up the instructions, I always seem to miss a step when I write it up....


thanks, I hope this helps..

-Nox


I tried several times to do the installation on centos 8, from the one on the site I encountered several problems, I'll list them for you :

No match for argument: libopen

No match for argument: ntp

mv: cannot stat '/var/log/mysqld.log': No such file or directory

-bash: rdate: command not found

/usr/src/asterisk/dahdi-linux-complete-3.1.0+3.1.0/linux/include/dahdi/kernel.h:62:10: fatal error: linux/pci-aspm.h: No such file or directory
#include <linux/pci-aspm.h>
removing the # gives me another "<" error and so on, I tried to remove everything but nothing
then I did some research,
git clone -b next git://git.asterisk.org/dahdi/linux dahdi-linux
cd dahdi-linux
make install

installed correctly but it gives me this other kind of problem with libpri
pritest.c:50:10: fatal error: dahdi/tonezone.h: No such file or directory
#include <dahdi/tonezone.h>

can you help me solve?
arx001
 
Posts: 6
Joined: Mon Mar 15, 2021 7:36 am

Re: New Scratch Instructions for Centos and Ubuntu

Postby carpenox » Thu Jun 10, 2021 10:50 am

sure, hit me up on skype and then we can report the fix back here
Leap 15.2 | Version: 2.14-814a | BUILD: 210608-2108 | SVN Version: 3452 | DB Schema Version: 1635 | Asterisk 16.17.0-vici
www.CyburityLLC.com -:- 844-PC-SATA-2 -:- My Blog: the.cyburhacker.com -:- Whatsapp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 1347
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: New Scratch Instructions for Centos and Ubuntu

Postby arx001 » Fri Jun 11, 2021 8:00 am

carpenox wrote:sure, hit me up on skype and then we can report the fix back here

ok skype contact?

I went ahead with the installation:

I removed the #include line: /linux/pci-aspm.h

dahdi-linux-complete-3.1.0+3.1.0]# make config
make: Nothing to be done for 'config'.

asterisk:
bash /usr/src/asterisk/asterisk-16.17.0-vici/contrib/scripts/install_prereq install
cp /usr/src/asterisk/asterisk-16.17.0-vici/contrib/init.d/rc.redhat.asterisk /etc/init.d/asterisk
these go after downloading asterisk
wget http://download.vicidial.com/beta-apps/ ... ici.tar.gz
tar -xzvf asterisk-16.17.0-vici.tar.gz

after installing asterisk successfully, it gives this error when launching the command
/usr/share/astguiclient/start_asterisk_boot.pl
-bash: /usr/share/astguiclient/start_asterisk_boot.pl: No such file or directory
create the directory but there are not all the files and folders as in the box or another installation on centos7, most are missing


going ahead put the permissions
/usr/src/astguiclient/trunk/install.pl
-bash: /usr/src/astguiclient/trunk/install.pl: Permission denied

the strange thing is that not even in var / www / html he copied, maybe some permissions problem to be set at the beginning

rc.local not found

modify
[root@localhost ~]# vi /usr/lib/systemd/system/rc-local.service
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.d/rc.local is executable.
[Unit]
Description=/etc/rc.d/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.d/rc.local
Requires=network-online.target
After=network-online.target

[Service]
Type=forking
ExecStart=/etc/rc.d/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

[Install]
WantedBy=multi-user.target

systemctl enable rc-local
systemctl start rc-local


in the menu he tells me
Version: 2.14b0.5
SVN Version: 0
DB Schema Version: 1635 WARNING: Code expects different schema: ?
DB Schema Update Date: 2021-06-11 14:06:01

there is no sip module, returns this error:
sip show peers
No such command 'sip show peers' (type 'core show help sip show' for other possible commands)

there is pjsip and not sip, maybe it wasn't better asterisk 13 and not 16 which is in beta app?

However, phone registration problems remain

I think the php.ini should also be changed to this:
error_reporting = E_ALL & ~E_NOTICE
memory_limit = 48M
short_open_tag = On
max_execution_time = 330
max_input_time = 360
post_max_size = 48M
upload_max_filesize = 42M
default_socket_timeout = 360
date.timezone = Europe/Rome


also because on the interface it gives me time not what I have set, but always gmt + 0,however the time on the server is correct
timedatectl set-timezone Europe/Rome
arx001
 
Posts: 6
Joined: Mon Mar 15, 2021 7:36 am

Re: New Scratch Instructions for Centos and Ubuntu

Postby carpenox » Sun Jun 13, 2021 1:23 pm

Thank you arx001 for helpung me debug the instructions and getting them working fully, here is the updated instructions for anyone who wants to give it a try and report back

https://cyburityllc.com/?p=2033

Thx

-Nox
Leap 15.2 | Version: 2.14-814a | BUILD: 210608-2108 | SVN Version: 3452 | DB Schema Version: 1635 | Asterisk 16.17.0-vici
www.CyburityLLC.com -:- 844-PC-SATA-2 -:- My Blog: the.cyburhacker.com -:- Whatsapp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 1347
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 9 guests