Tuesday, December 28, 2021

How To Install Asterisk 18 VoIP Server on 𝐀𝐥𝐦𝐚𝐋𝐢𝐧𝐮𝐱 𝟖.𝟓 (𝐀𝐫𝐜𝐭𝐢𝐜 𝐒𝐩𝐡𝐲𝐧𝐱)

Asterisk is a powerful digital PBX and VoIP server released under an open-source license, so you can use it free of charge. VoIP is a technology used to establish and control telephone calls between multiple endpoints. It is used in VoIP gateways, conference servers, call centers, carriers, and government institutions around the world. It runs on Linux, BSD, and OS X and allows you to turn your local system or server into a communication server.
__________________________________________________________________________________________________
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧:-
𝐎𝐬 : 𝐀𝐥𝐦𝐚𝐋𝐢𝐧𝐮𝐱 𝟖.𝟓 (𝐀𝐫𝐜𝐭𝐢𝐜 𝐒𝐩𝐡𝐲𝐧𝐱)                     | 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞:                         | 𝐈𝐏 𝐀𝐝𝐝𝐫𝐞𝐬𝐬 𝐨𝐟 𝐒𝐞𝐫𝐯𝐞𝐫:
__________________________________________________________________________________________________
                            cat /etc/os-release ; getconf LONG_BIT ; hostname ; hostname -I
 
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf config-manager --set-enabled powertools
dnf install wget gcc gcc-c++ svn make bzip2 patch libedit-devel uuid-devel libuuid-devel libxml2-devel sqlite sqlite-devel nano openssl openssl-devel -y
dnf groupinstall "Development Tools"
git clone https://github.com/akheron/jansson.git
cd jansson ; autoreconf -i
./configure --prefix=/usr/
make ; make install

cd
git clone https://github.com/pjsip/pjproject.git
cd pjproject
./configure CFLAGS="-DNDEBUG -DPJ_HAS_IPV6=1" --prefix=/usr --libdir=/usr/lib64 --enable-shared --disable-video --disable-sound --disable-opencore-amr
make dep ; make ; make install
ldconfig

cd
wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-18-current.tar.gz
tar -xvzf asterisk-18-current.tar.gz
cd asterisk-18.9.0/ ; ./configure --libdir=/usr/lib64
make menuselect
contrib/scripts/get_mp3_source.sh
make
make install
make samples
make config
ldconfig


groupadd asterisk
useradd -r -d /var/lib/asterisk -g asterisk asterisk
usermod -aG audio,dialout asterisk
chown -R asterisk.asterisk /etc/asterisk /var/{lib,log,spool}/asterisk /usr/lib64/asterisk
nano /etc/sysconfig/asterisk
AST_USER="asterisk"
AST_GROUP="asterisk"
nano /etc/asterisk/asterisk.conf
runuser = asterisk ; The user to run as.
rungroup = asterisk ; The group to run as.
systemctl restart asterisk ; systemctl enable asterisk ; systemctl status asterisk
asterisk -rvv
core show channels
core show uptime
quit
_________________________________________________________________________________________________

Sunday, December 19, 2021

How To Set Up MySQL 5.7 For Remote Access on Ubuntu 18.04 LTS

How To Set Up Mariadb For Remote Access on Ubuntu 18.04 LTS

 By default, remote access to the mariadb database server is disabled for security reasons. However, sometimes you need to provide remote access to database server from home or a web server.
MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL
__________________________________________________________________________________________________________________________
Our Server Specification:-
Os : Ubuntu 18.04.1 LTS Bionic Beaver 64Bit     || Hostname: www.yourdomain.com         || IP Address of Server:
__________________________________________________________________________________________________________________________
lsb_release -cd  ; getconf LONG_BIT ; hostname ; hostname -I
apt-get update ; apt-get upgrade -y
apt install net-tools build-essential software-properties-common curl wget git mariadb-server mariadb-client -y
mysql_secure_installation                                                              
systemctl restart mariadb ; systemctl enable mariadb
gedit /etc/mysql/mariadb.conf.d/50-server.cnf &>/dev/null

mysql -u root -p
create database dbname;
grant all privileges on dbname.* to 'dbuser'@'%' identified by'dbpassword' with grant option;
flush privileges;
exit
systemctl restart mariadb ; systemctl status mariadb
__________________________________________________________________________________________________________________________
192.168.153.234

Client Side:
lsb_release -cd  ; getconf LONG_BIT ; hostname ; hostname -I
apt-get update ; apt-get upgrade -y
apt install net-tools build-essential software-properties-common curl wget git mariadb-server mariadb-client -y
mysql_secure_installation
systemctl restart mariadb ; systemctl enable mariadb
mysql -h 192.168.153.234 -u dbuser -p

Friday, December 17, 2021

How To Setup Install Kooboo CMS On Ubuntu 18.04 LTS

 Kooboo is a cross-platform content management system (CMS) that you can use to develop static pages or complex and powerful websites… Kooboo supports Windows, Mac OS and Linux systems..||
Offcial Website: https://kooboo.com/  |
___________________________________________________________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |            IP address- 192.168.1.50                 | Hostname :www.yourdomain.com
___________________________________________________________________________________________________________________________________________________
lsb_release -cd  ; getconf LONG_BIT ; whoami ; hostname -f ; hostname -I ; apt-get update ; apt install -y build-essential software-properties-common curl wget nano git net-tools lsb-release apt-transport-https

wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get update ; apt-get install aspnetcore-runtime-2.1=2.1.5-1 -y

cd /tmp ; wget https://www.kooboo.com/download/kooboolinux.zip
unzip kooboolinux.zip -d $HOME
cd $HOME/Kooboo
dotnet Kooboo.App.dll
Or
nohup dotnet Kooboo.App.dll &

http://127.0.0.1
admin- admin

How To Setup IRedMail Server on Ubuntu 18.04 LTSs

 iRedMail is a free, open source mail server solution that automatically installs and configure all necessary mail server components on your server. iRedMail allows you to create as many mailboxes as you want through their built-in web interface. It provides a web-based interface for managing mails, folders, sieve filters. It uses OpenLDAP, MySQL, MariaDB, PostgreSQL to stores mailboxes. IRedMail server is made from several components including, Postfix, Dovecot, Nginx, OpenLdap, Amavised, SpamAssassin, ClamAV, Roundcube, SOGo, Netdata and Fail2ban.
Offcial Website: https://www.iredmail.org/index.html
_____________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   | IP address- 192.168.1.50  | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
hostname -f

lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt update ; apt install -y build-essential software-properties-common curl gdebi net-tools wget sqlite3 dirmngr nano lsb-release apt-transport-https -y

wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.9.9.tar.bz2
tar xjf iRedMail-0.9.9.tar.bz2
cd iRedMail-0.9.9
bash iRedMail.sh
reboot

* - Username: postmaster@yourdomain.com
* - Password: password

https://www.yourdomain.com/mail/
https://www.yourdomain.com/iredadmin/
* - Roundcube webmail: https://www.yourdomain.com/mail/
* - netdata (monitor): https://www.yourdomain.com/netdata/

How To Setup Searx On Ubuntu 18.04 LTS With apache2

 Searx is an open-source, free to use metasearch engine that aggregates results from more than 70 search services, including Google and Bing.
https://asciimoo.github.io/searx/
___________________________________________________________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |            IP address- 192.168.1.50                 | Hostname :www.yourdomain.com
___________________________________________________________________________________________________________________________________________________
lsb_release -cd  ; getconf LONG_BIT ; whoami ; hostname -f ; hostname -I ; apt-get update ; apt install -y build-essential software-properties-common curl wget nano git net-tools lsb-release apt-transport-https python-babel zlib1g-dev libffi-dev libssl-dev libxslt-dev python-dev python-virtualenv apache2 -y
a2enmod proxy rewrite proxy_http

cd /opt/ ; git clone https://github.com/asciimoo/searx.git        [ Config File Path :  /opt/searx/searx/settings.yml ]
cd /opt/searx ; virtualenv searx-ve
source searx-ve/bin/activate
./manage.sh update_packages
nohup python searx/webapp.py &
netstat -tlpn

nano /etc/apache2/sites-available/searx.conf
<VirtualHost *:80>
    ServerName www.yourdomain.com

    ProxyPass / http://127.0.0.1:8888/
    ProxyPassReverse / http://127.0.0.1:8888/
</VirtualHost>

a2ensite searx.conf ; a2dissite 000-default ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts
systemctl enable apache2 ; systemctl reload apache2
http://www.yourdomain.com

How To Setup Radicale On Ubuntu 18.04 LTS

Radicale is a small but powerful CalDAV (calendars, todo-lists) and CardDAV (contacts) server, that:
Shares calendars through CalDAV, WebDAV and HTTP.
Shares contacts through CardDAV, WebDAV and HTTP.
Supports events, todos, journal entries and business cards.
Works out-of-the-box, no installation nor configuration required.
Can warn users on concurrent editing.
Can limit access by authentication.
Can secure connections.
Works with many CalDAV and CardDAV clients.
Is GPLv3-licensed free software.
Offcial Website: https://radicale.org/
___________________________________________________________________________________________________________________________________________________
Our Server Specification-    
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |            IP address- 192.168.1.50                 | Hostname :www.yourdomain.com
___________________________________________________________________________________________________________________________________________________
lsb_release -cd  ; getconf LONG_BIT ; whoami ; hostname -f ; hostname -I ; apt-get update ; apt install -y build-essential software-properties-common curl wget nano git net-tools lsb-release apt-transport-https python3-pip python3-pkg-resources

python3 -m pip install --upgrade radicale
python3 -m pip install --upgrade passlib bcrypt

useradd --system --home-dir / --shell /sbin/nologin radicale
mkdir -p /var/lib/radicale/collections && chown -R radicale:radicale /var/lib/radicale/collections
chmod o-x /var/lib/radicale/collections/ && mkdir /etc/radicale && touch /etc/radicale/config

gedit /etc/systemd/system/radicale.service &>/dev/null
[Unit]
Description=A simple CalDAV (calendar) and CardDAV (contact) server
After=network.target
Requires=network.target

[Service]
ExecStart=/usr/bin/env python3 -m radicale
Restart=on-failure
User=radicale
# Deny other users access to the calendar data
UMask=0027
# Optional security settings
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
NoNewPrivileges=true
ReadWritePaths=/var/lib/radicale/collections

[Install]
WantedBy=multi-user.target

touch /etc/radicale/users ; chown radicale:radicale /etc/radicale/users ; chmod 400 /etc/radicale/users
systemctl enable radicale.service ; systemctl start radicale.service

http://127.0.0.1:5232
admin admin