Wednesday, December 30, 2020
How To Setup Emby Media Server on Ubuntu 18.04 Bionic Beaver With Apache Web Server
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Emby Server is a personal media server with apps on just about every device.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
How To Deploy MongoDB With Docker On Ubuntu 20.04
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Mongo - Docker Hub - https://hub.docker.com/_/mongo
MongoDB document databases provide high availability and easy scalability. Docker is an open source platform for building, deploying, and managing containerized applications.
Offcial Website -https://www.docker.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 mongo:4.2.2
docker images
mkdir -p /mongodata
docker run -it -v /data/db:/mongodata -p 27017:27017 --name mongodb -d mongo
docker ps
docker exec -it mongodb bash
mongo -host localhost -port 27017
show dbs
docker logs mongodb
docker stop mongodb
docker start mongodb
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
How To Run PostgreSQL on a Docker Container On Ubuntu 20.04
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Docker is an open-source platform where we can create, deploy, and run applications by using containers. Docker is similar to virtual machines (VM), but in VM you need to create a virtual operating system, while Docker allows applications to use the system kernel.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 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 postgres
Or
docker pull postgres:11.5
docker run --name my_postgres -e POSTGRES_PASSWORD=password -d postgres:11.5
docker ps
docker exec -it my_postgres bash
/usr/bin/psql -U postgres postgres
\q
docker logs my_postgres
docker stop my_postgres
docker start my_postgres
docker rm -f my_postgres
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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.
PostgreSQL, also known as Postgres, is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Offcial Website: https://www.timescale.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 update ; apt install -y build-essential software-properties-common git curl gdebi net-tools wget sqlite3 dirmngr nano lsb-release apt-transport-https -y
add-apt-repository ppa:timescale/timescaledb-ppa -y
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
cat >/etc/apt/sources.list.d/pgdg.list<<EOF
deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main
EOF
apt-get update ; apt install timescaledb-postgresql-10 postgresql-10 -y
su - postgres
psql -c "alter user postgres with password 'toor'"
leafpad /etc/postgresql/10/main/postgresql.conf &>/dev/null
shared_preload_libraries = 'timescaledb'
systemctl restart postgresql
su - postgres
psql
CREATE database test_db;
\c test_db
CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;
psql -U postgres -h localhost -d test_db
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Subscribe to:
Posts (Atom)