Monday, December 7, 2020
How To Install TimescaleDB On Ubuntu 18.04 With PostgreSQL
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TimescaleDB is an open-source database designed to make SQL scalable for time-series data.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sunday, December 6, 2020
How To install setup Landing CMS On Ubuntu 18.04 LTS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Landing CMS is a simple and cross-platform for management landing pages. It doesn't use any databases.
Offcial Website: https://github.com/Elias-Black/Landing-CMS.git
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification-
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit |IP address- 192.168.1.50 | Hostname :www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y apache2 php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php-imagick php-pear
a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf
systemctl start apache2 ; systemctl enable apache2
wget https://codeload.github.com/Elias-Black/Landing-CMS/zip/master
unzip master
mv Landing-CMS-master /var/www/html/
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Setting up Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/Landing-CMS-master/
ServerName www.yourdomain.com
<Directory /var/www/html/Landing-CMS-master/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thursday, December 3, 2020
How To Install Emby Media Server on Ubuntu 18.04 With Apache Web Server
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Emby Server is a personal media server with apps on just about every device.
It features a REST-based API with built-in documention to facilitate client development. We also have client libraries for our API to enable rapid development.
Offcial Website:https://emby.media/ || Emby Premiere:- https://emby.media/premiere.html
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 apache2
a2enmod dir env headers mime rewrite setenvif proxy proxy_http ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf
systemctl start apache2 ; systemctl enable apache2
wget https://github.com/MediaBrowser/Emby.Releases/releases/download/4.1.1.0/emby-server-deb_4.1.1.0_amd64.deb
gdebi emby-server-deb_4.1.1.0_amd64.deb
gedit /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
#Domain Name
ServerName yourdomain.com
ServerAlias www.yourdomain.com
#HTTP proxy/gateway server
ProxyRequests off
ProxyPass / http://127.0.0.1:8096/
ProxyPassReverse / http:/127.0.0.1:8096/
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest
echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com
chmod -R 777 /home/ubuntu/Music
Username:admin | Password:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Monday, November 30, 2020
How To install & Configure Elefant CMS On Ubuntu 18.04
Elefant is a refreshingly simple PHP content management system and web framework. Elefant is a fast, lean tool for building everything from simple websites to complete web applications.
Offcial Website: https://www.elefantcms.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 ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git sudo unzip socat bash-completion
MariaDB Repositories & Php PPA:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main' && add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-snmp php7.2-xsl php7.2-recode php-imagick php-pear php-memcache php-apcu
a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation
Create Mariadb Database :
mysql -u root -p
SET GLOBAL sql_mode='';
CREATE USER elefant;
CREATE DATABASE elefantdb;
GRANT ALL PRIVILEGES ON elefantdb.* TO 'elefant'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
curl -sS https://getcomposer.org/installer | php ; mv composer.phar /usr/local/bin/composer ; chmod +x /usr/local/bin/composer
cd /var/www/html/ ; composer create-project elefant/cms --stability=dev
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/cms/
ServerName www.yourdomain.com
<Directory /var/www/html/cms/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Saturday, November 28, 2020
How To install Sonerezh on Ubuntu 18.04 LTS with Apache2 Php 7.0
Sonerezh is a self-hosted, web-based music streaming server written in PHP and HTML5. It’s lightweight compared to Subsonic which is written in Java. Sonerezh is open-source software, distributed under the terms of AGPL.
Offcial Website: https://www.sonerezh.bzh/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 install -y build-essential software-properties-common curl gdebi wget aptitude nano git net-tools lsb-release apt-transport-https ffmpeg
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main'
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.0 php7.0-cli libapache2-mod-php7.0 php7.0-fpm php7.0-cgi php7.0-bcmath php7.0-curl php7.0-gd php7.0-intl php7.0-json php7.0-mbstring php7.0-mysql php7.0-opcache php7.0-sqlite3 php7.0-xml php7.0-zip php7.0-snmp php7.0-json php7.0-imap php7.0-common php7.0-tidy php7.0-mcrypt php7.0-pgsql php-pear
systemctl start apache2 mariadb ; systemctl enable apache2 mariadb
mysql_secure_installation
a2enmod dir env headers mime rewrite setenvif
sed -i "s/;date.timezone.*/date.timezone = UTC/" /etc/php/7.0/cli/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
quit
cd /var/www/html ; wget https://www.sonerezh.bzh/downloads/latest.tar.gz
tar -zxf latest.tar.gz
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Apache VirtualHost :
gedit /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/sonerezh/app/webroot
ServerName www.yourdomain.com
<Directory /var/www/html/sonerezh/app/webroot/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest
echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com
DB Details:
Database Host: localhost
Database name: db
Database username: dbuser
Database password: dbpass
chmod -R 777 /home/ubuntu/Music/
/home/ubuntu/Music/
Email: yourmail@yourdomain.com Password: YourPasswordB4r2nd9nTR
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
How To Deploy MariaDB on Docker Without Dockerfile On Ubuntu 20.04
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MariaDB is an open source relational database management system (DBMS).
Docker is an open source virtualization and containerization technology for building and containerizing your applications. It's a tool that allows you to create isolated containers that can be used to run your apps.
Offcial Website -https://www.docker.com/
MariaDB Dockerhub link - https://hub.docker.com/_/mariadb
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 20.04 LTS Hostname - www.yourdomain.com - ip Address - 192.168.1.10
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch apt-transport-https ca-certificates curl gnupg-agent docker.io docker-compose
systemctl enable --now docker ; docker --version ; docker-compose version
usermod -aG docker $USER ; newgrp docker
docker pull mariadb
docker run -d --name mariadb1 \
-p 33061:3306 \
-v ~/Docker/mariadb1/config:/etc/mysql/conf.d \
-v ~/Docker/mariadb1/datadir:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=root123 \
-e MYSQL_DATABASE=dbtest \
mariadb
docker ps
docker logs mariadb1
docker exec -it mariadb1 bash
mysql --user=root --password=root123
show databases;
Container-id -
Container-id - $ docker ps -aq
Stop Container - $ docker stop ed2896902b49
Start Container - $ docker start ed2896902b49
Check Container logs- $ docker logs ed2896902b49
Delete a Docker Image - $ docker rmi ed2896902b49
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thursday, November 12, 2020
How To Install Refinery CMS (Ruby On Rails) On Ubuntu 18.04
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Refinery CMS, often shortened to Refinery, is a free and open-source content management system written in Ruby as a Ruby on Rails web application with jQuery used as the JavaScript library. Refinery CMS supports Rails 3.2 and Rails 4.2 and Rails 5.1.
Offcial Website: https://www.refinerycms.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
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update ; sudo apt-get install nodejs yarn zlib1g-dev build-essential libpq-dev libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev libffi-dev nodejs libpq-dev mysql-client mysql-server libmysqlclient-dev linuxbrew-wrapper -y
cd ~/ ; git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.5.3
rbenv global 2.5.3
gem install bundler
rbenv rehash
gem install rails -v 5.2.1
rbenv rehash
gem update --system
gem install rdoc
brew install imagemagick
gem install refinerycms
refinerycms rickrockstar
cd rickrockstar/
rails server
http://localhost:3000/refinery
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Subscribe to:
Posts (Atom)