Sunday, May 31, 2020

How To install OpenCV with Python 3.8.3 And Pip On Windows 10

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


OpenCV is a library of programming functions mainly aimed at real-time computer vision. Originally developed by Intel, it was later supported by Willow Garage then Itseez. The library is cross-platform and free for use under the open-source BSD license.

Offcial Website -https://opencv.org/

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Testing Environment: Windows 10 64Bit

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step 1 - installing Python 3.8.3 And Pip

python --version

pip --version

python

exit()


Step 2 - installing OpenCV

pip install opencv-python

python

import cv2


Step 3 - Check OpenCV Version

cv2.__version__

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Friday, May 29, 2020

How To Setup Anaconda Python , Anaconda Navigator ,Jupiter , Spyder And Qtconsole On Windows 10

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Anaconda Navigator is a desktop graphical user interface (GUI) included in Anaconda distribution that allows you to launch applications and easily manage conda packages, environments, and channels without using command-line commands.


Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.


Spyder is an open source cross-platform integrated development environment for scientific programming in the Python language.


Qtconsole is a very lightweight application that largely feels like a terminal, but provides a number of enhancements only possible in a GUI, such as inline figures, proper multiline editing with syntax highlighting, graphical calltips, and more.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Testing Environment: Windows 10 64 Bit

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Anaconda Installers - https://www.anaconda.com/products/individual


conda --version

python --version

conda info

jupyter notebook --version

jupyter-notebook

anaconda-navigator

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Thursday, May 28, 2020

How To Install Wine And Run Windows Applications on Ubuntu 20.04 LTS

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Wine is an open-source compatibility layer that allows you to run Windows applications on Unix-like operating systems such as Linux, FreeBSD, and macOS. Wine stands for Wine Is Not an Emulator. It is an interface that translates Windows system calls into equivalent POSIX calls used by Linux and other Unix-based operating systems.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Testing Environment:

Ubuntu 20.04 LTS                     Hostname - www.yourdomain.com  - ip Address - 192.168.1.10 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

sudo dpkg --add-architecture i386

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

sudo apt update

sudo apt install --install-recommends winehq-stable build-essential

wine --version

winecfg

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Wednesday, May 27, 2020

How To Setup (SSH , FTP , Webmin , LAMP, PHPMyAdmin ) On Ubuntu 20.04 LTS

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

SSH, or Secure Shell, is a remote administration protocol that allows users to control and modify their remote servers over the Internet.


FTP is short for File Transfer Protocol.

Offcial Wesbite - https://security.appspot.com/vsftpd.html


Webmin is a web-based interface for system administration for Unix.

Website - http://www.webmin.com/


LAMP is a well-known abbreviation for Linux, Apache, MySQL, and PHP.


PhpMyAdmin is an open-source PHP application designed to handle the administration of MySQL and MariaDB servers over a web-based interface.

Offcial wesbite - https://www.phpmyadmin.net/

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Testing Environment: Ubuntu 20.04 LTS        Hostname - www.yourdomain.com         ip Address - 192.168.1.10

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Default ssh port - 22 | Vsftpd Default Port - 21 | Webmin default port - 10000

apt update ; apt install build-essential net-tools curl git software-properties-common neofetch


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Setup SSH (Secure Shell) -

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

apt -y install openssh-server

nano /etc/ssh/sshd_config

PermitRootLogin no

systemctl restart ssh ; systemctl status ssh                                 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Setup FTP  -

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

nano /etc/vsftpd.conf

write_enable=YES

ascii_upload_enable=YES

ascii_download_enable=YES

chroot_local_user=YES

chroot_list_enable=YES

chroot_list_file=/etc/vsftpd.chroot_list

ls_recurse_enable=YES

# add to the end : specify chroot directory

# if not specified, users' home directory equals FTP home directory

local_root=public_html

# turn off seccomp filter if cannot login normally

seccomp_sandbox=NO


nano  /etc/vsftpd.chroot_list

# add users you allow to move over their home directory

ubuntu

systemctl restart vsftpd ; systemctl status vsftpd      


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Setup Webmin-

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

apt -y install python apt-show-versions libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl

curl -L -O http://www.webmin.com/download/deb/webmin-current.deb

dpkg -i webmin-current.deb


nano /etc/webmin/miniserv.conf

allow=127.0.0.1 192.1.68.1.0/24

systemctl restart webmin


https://www.yourdomain.com:10000/  

______________________________________________________________________________________________________________

Setup LAMP PHPMyAdmin -

______________________________________________________________________________________________________________

apt install apache2 apache2-utils libapache2-mod-php mysql-server mysql-client php-fpm php-cli php-curl php-mysql php-curl php-gd php-mbstring php-pear php-cgi php-imap php-intl php-snmp php-tidy php-zip php-mbstring php-json php-pgsql php-opcache php-mysql php-ldap php-bz2 php-xml phpmyadmin -y


mysql_secure_installation

systemctl enable apache2 php7.4-fpm ; systemctl start apache2 mysql php7.4-fpm

a2enconf php7.4-cgi ; a2enmod rewrite headers


sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini

echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf


nano /etc/apache2/conf-enabled/security.conf

ServerTokens Prod

nano /etc/apache2/mods-enabled/dir.conf

index.php


nano /etc/apache2/sites-enabled/000-default.conf

<VirtualHost *:80>

    ServerName yourdomain.com

    ServerAlias www.yourdomain.com

    ServerAdmin webmaster@localhost

    DocumentRoot /var/www/html/

    ErrorLog ${APACHE_LOG_DIR}/error.log

    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>


apachectl configtest ; echo '<?php phpinfo(); ?>' > /var/www/html/info.php ; echo "This is Test Page on www.yourdomain.com" > /var/www/html/index.html ; chown -R $USER:$USER /var/www/html/ ; chmod -R 755 /var/www/html/


mysql -u root -p

create user Test@'localhost' identified by 'StrongPassword';

grant all privileges on *.* to Test@'localhost';

flush privileges;

exit


systemctl restart apache2 php7.4-fpm mysql

http://www.yourdomain.com | http://www.yourdomain.com/info.php  | http://www.yourdomain.com/phpmyadmin/

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Sunday, May 24, 2020

How To Setup X2Go Server & Windows 10 Client On Linux Mint 19.3

Video Tutorial -  https://youtu.be/zjqIC3YIHE8

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

X2Go is a remote desktop application to access X-Desktop enviroments over a network connection, it is well suited for low bandwidth connections, has support for sound with PulseAudio and allows desktop sharing. The application has two parts, the x2goclient for the client side and x2goserver (which has to be installed on the desktop system that shall be accessed). The X2Go client software is available for Windows, Mac OS X and Linux.


Offcial Website -https://wiki.x2go.org/doku.php/start
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification:-
Os : Linux Mint 19.3 Tricia   |  Hostname: www.example.com   | IP Address of Server:192.168.1.30
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd  ; getconf LONG_BIT ; hostname ; hostname -I && apt install -y build-essential net-tools curl git software-properties-common

apt update
sudo apt-get install x2goclient x2goserver x2goserver-xsession xfce4 -y

X2Go Client Download Link - https://wiki.x2go.org/doku.php/start

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To install Haxe on Ubuntu 20.04 LTS

Video Tutorial - https://youtu.be/87i-bx4gbNM

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
Offcial Website -https://haxe.org/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ubuntu 20.04 LTS                     Hostname - www.yourdomain.com  - ip Address - 192.168.1.10 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
add-apt-repository ppa:haxe/releases -y
apt-get update ; apt-get install haxe -y
mkdir ~/haxelib && haxelib setup ~/haxelib
haxe --version
haxe --help

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To install iojs (io.js) on Ubuntu 20.04

 Video Tutorial -https://youtu.be/274KMIlcl30

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 io. js is an npm compatible platform originally based on Node. js and is a fork of Joyent's Node. js.
Offcial Website -https://iojs.org/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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
wget https://iojs.org/dist/v1.0.2/iojs-v1.0.2-linux-x64.tar.gz
tar zxf iojs-v1.0.2-linux-x64.tar.gz
cd iojs-v1.0.2-linux-x64
cp bin/* /usr/bin
iojs -v

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thursday, May 21, 2020

How to Start, Stop or Restart Services in Linux Mint 19.3 Tricia

Video Tutorial - https://youtu.be/6Incr-fHYXQ

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Services are essential background processes that are usually run while booting up and shut down with the OS.
Linux Mint is an elegant, easy to use, up to date and comfortable GNU/Linux desktop distribution.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
OS - Linux Mint 19.3 Tricia
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
List all services in Linux Mint - service --status-all

Syntax : - sudo systemctl [action] [service name]

To start a service: sudo systemctl start ufw
To stop a service: sudo systemctl stop ufw
To restart a service: sudo systemctl restart ufw
To check the status of service: sudo systemctl status ufw


Start/Stop/Restart Services with service command on Linux Mint
To start a service: sudo service ufw start
To stop a service: sudo service ufw stop
To restart a service: sudo service ufw restart
To check the status of a service: sudo service ufw status

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Reset Change Admin Password of GitLab

 Video Tutorial -https://youtu.be/YLKi_btvHEY

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

GitLab is an open source repository manager based on Rails developed by GitLab Inc.
Offcial Website -https://docs.gitlab.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ubuntu 18.04.4 LTS bionic            Hostname - www.yourdomain.com  - ip Address - 192.168.1.40
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GitLab Docs - https://docs.gitlab.com/ee/security/reset_root_password.html

Default gitlab Username - root 
gitlab-rails console -e production
user = User.where(id:1).first       
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
user.save!


None Root User GitLab Password Reset -
gitlab-rails console -e production
user = User.find_by(email: 'admin@yourdomain.com')
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
user.save!
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Setup Apache Guacamole On Ubuntu 20.04 LTS

Video Tutorial -  https://youtu.be/cBruGm7fbEY

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Apache Guacamole is a clientless HTML5 web based remote desktop gateway which provides remote access to servers and desktops through a web browser. It supports standard protocols like VNC, RDP, and SSH.
Offcial Website -https://guacamole.apache.org/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Os : Ubuntu 20.04 LTS (focal fossa) 64Bit   |  Hostname: www.yourdomain.com   |   IP Address of Server:192.168.1.10
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd  ; getconf LONG_BIT ; hostname ; hostname -I

apt install -y gcc g++ libcairo2-dev libjpeg-turbo8-dev libpng-dev libtool-bin libossp-uuid-dev libavcodec-dev libavutil-dev libswscale-dev freerdp2-dev libpango1.0-dev libssh2-1-dev libvncserver-dev libtelnet-dev libssl-dev libvorbis-dev libwebp-dev build-essential net-tools curl git software-properties-common tomcat9 tomcat9-admin tomcat9-common tomcat9-user

wget https://downloads.apache.org/guacamole/1.1.0/source/guacamole-server-1.1.0.tar.gz
tar xzf guacamole-server-1.1.0.tar.gz ; cd guacamole-server-1.1.0 ;
./configure --with-init-dir=/etc/init.d
make
make install
ldconfig
systemctl enable guacd ; systemctl start guacd ; systemctl status guacd

mkdir /etc/guacamole
wget https://downloads.apache.org/guacamole/1.1.0/binary/guacamole-1.1.0.war -O /etc/guacamole/guacamole.war
ln -s /etc/guacamole/guacamole.war /var/lib/tomcat9/webapps/
systemctl restart tomcat9 ; systemctl restart guacd
mkdir /etc/guacamole/{extensions,lib} ; echo "GUACAMOLE_HOME=/etc/guacamole" >> /etc/default/tomcat9

nano /etc/guacamole/guacamole.properties
guacd-hostname: localhost
guacd-port:     4822
user-mapping:   /etc/guacamole/user-mapping.xml
auth-provider:  net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider

ln -s /etc/guacamole /usr/share/tomcat9/.guacamole
echo -n password | openssl md5

nano /etc/guacamole/user-mapping.xml
<user-mapping>
    <!-- Per-user authentication and config information -->
    <!-- A user using md5 to hash the password
         guacadmin user and its md5 hashed password below is used to
             login to Guacamole Web UI-->
    <authorize
            username="guacadmin"
            password="5f4dcc3b5aa765d61d8327deb882cf99"
            encoding="md5">

        <!-- First authorized Remote connection -->
        <connection name="ubuntu">
            <protocol>ssh</protocol>
            <param name="hostname">192.168.1.10</param>
            <param name="port">22</param>
              </connection>

        <!-- Second authorized remote connection -->
        <connection name="Windows 10">
            <protocol>rdp</protocol>
            <param name="hostname">192.168.1.100</param>
            <param name="port">3389</param>
            <param name="ignore-cert">true</param>
        </connection>
    </authorize>
</user-mapping>

systemctl restart tomcat9 guacd
http://192.168.1.10:8080/guacamole/.

apt -y install openssh-server
nano /etc/ssh/sshd_config  [ PermitRootLogin no ]
systemctl restart ssh

Example-
User-guacadmin              Password -password

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Change Default Backup location Path in GitLab on Ubuntu 18

Video Tutorial -https://youtu.be/cJ5mOsc1vJM

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

GitLab is an open source GIT repository manager based on Rails and developed by GitLab Inc. It is a web-based GIT repository manager that allows your team to work on code, perform feature requests, track bugs, and test and implement applications. GitLab provides features such as a wiki, issue tracking, code reviews, activity feeds, and merge management. It is able to host multiple projects.

Offcial Website -https://docs.gitlab.com/

Backup Create documentation-

https://docs.gitlab.com/ee/raketasks/backup_restore.html#creating-a-backup-of-the-gitlab-system

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Testing Environment:

Ubuntu 18.04.LTS Bionic              Hostname - www.yourdomain.com  - ip Address - 192.168.1.40

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

mkdir /mnt/new-backups

sudo gedit  /etc/gitlab/gitlab.rb &>/dev/null

gitlab_rails['backup_path'] = " /mnt/new-backups"

gitlab-ctl reconfigure

gitlab-rake gitlab:backup:create

cd /mnt/new-backups/ ; ls -l


gitlab-rake gitlab:env:info

gitlab-rake gitlab:check SANITIZE=true

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



Monday, May 18, 2020

How To Create a New Project in GitLab

Video Tutorial - https://youtu.be/nJw6PJ8Vmns

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

in This Tutorial you Will Learn "How To create a new project in GitLab."
GitLab is a GitHub-like service that provides web-based DevOps internal management of Git repositories.
Offcial Website -https://docs.gitlab.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 18.04.4 LTS bionic            Hostname - www.yourdomain.com  - ip Address - 192.168.1.40
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
git config --global user.name "root"
git config --global user.email "admin@yourdomain.com"
git config --global --list

git clone http://www.yourdomain.com/root/NAME-OF-PROJECT.git 
cd NAME-OF-PROJECT
touch README.md
nano README.md
#General information
#Usage
Subscribe share Like

git add README.md
git commit -m "add README"
git push -u origin master

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Set up SSH key in GitLab On Ubuntu 18

Video Tutorial - https://youtu.be/MBL3eYUWXJc

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

in This Tutorial you will learn "How To Create and add your SSH key in Gitlab Account"
GitLab is a web-based open-source Git repository manager written in Ruby |
SSH keys allow you to establish a secure connection between your computer and GitLab.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ubuntu 18.04.4 LTS bionic            Hostname - www.yourdomain.com  - ip Address - 192.168.1.40
GitLab Version - GitLab-CE 12.10.3
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install xclip git openssh-server -y
Creating SSH Key - ssh-keygen -t rsa -C "www.yourdomain.com" -b 4096     [StrongPassword]
nano /etc/ssh/sshd_config 
PermitRootLogin no


xclip -sel clip < ~/.ssh/id_rsa.pub                                      [Paste - control -v ]
Test your SSH connection - ssh -T git@www.yourdomain.com    

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Create Gitlab Admin User after authentication with AD On Ubuntu 18

Video Tutorial - https://youtu.be/TdH5MQm5ZAo

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

GitLab is a self-hosted git repository management system. Offcial wesbite -https://about.gitlab.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 18.04.LTS Bionic              Hostname - www.yourdomain.com  - ip Address - 192.168.1.40
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Gitlab Version - GitLab CE 12.10.3

gitlab-rails console -e production
user = User.find_by(username: "ojal")              
user.admin = true
user.save!
exit
gitlab-ctl reconfigure

http://www.yourdomain.com/

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Sunday, May 17, 2020

How To Run Secure GitLab with Self-Signed SSL Certificate On Ubuntu 18

Video Tutorial - https://youtu.be/LH7sXWhLr2M

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

GitLab is a self-hosted git repository management system. Offcial Website -https://docs.gitlab.com/
Gitlab SSL Configuration Doc - https://docs.gitlab.com/omnibus/settings/ssl.html
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 18.04.LTS Bionic              Hostname - www.yourdomain.com  - ip Address - 192.168.1.40
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Gitlab Version - GitLab CE 12.10.3

cd /etc/gitlab/ ; openssl genrsa -aes128 -out server.key 2048
openssl rsa -in server.key -out server.key
openssl req -new -days 3650 -key server.key -out server.csr
openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 3650
chmod 400 server.*

sudo gedit /etc/gitlab/gitlab.rb &>/dev/null
external_url 'https://www.example.com'

nginx['enable'] = true
nginx['client_max_body_size'] = '250m'
nginx['redirect_http_to_https'] = true
nginx['ssl_certificate'] = "/etc/gitlab/server.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/server.key"
nginx['ssl_protocols'] = "TLSv1.2 TLSv1.3"
gitlab-ctl reconfigure

updatedb
locate gitlab.yml
sudo gedit /var/opt/gitlab/gitlab-rails/etc/gitlab.yml &>/dev/null
https://www.example.com
gitlab-rake gitlab:check  

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2 Ways To Install Julia Programming Language On Ubuntu 20

Video Tutorial - https://youtu.be/39qQQajPoMM

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

“Julia is a high-level general-purpose dynamic programming language that was originally designed to address the needs of high-performance numerical analysis and computational science, without the typical need of separate compilation to be fast, also usable for client and server web use, low-level systems programming or as a specification language.”
Offcial Website -https://julialang.org/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch

Method: 1
wget https://julialang-s3.julialang.org/bin/linux/x64/1.4/julia-1.4.1-linux-x86_64.tar.gz
tar -xvzf julia-1.4.1-linux-x86_64.tar.gz
cp -r julia-1.4.1 /opt/
ln -s /opt/julia-1.4.1/bin/julia /usr/local/bin/julia
julia


Method: 2
apt update ; apt install snapd -y
snap install julia --classic
julia

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Saturday, May 16, 2020

How To Install Eclipse IDE 2020‑03 On Windows 10

Video Tutorial - https://youtu.be/Pbg0UEHaAcM

 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 Eclipse is a well-known, widely used Integrated Development Environment for developing JAVA application all around the world. It is written in C and Java and released under Eclipse Public License.

Eclipse is not only used for developing applications in various programming languages including COBOL, Ada, C, C++, Perl, PHP, Python, R, Ruby (including Ruby on Rails framework), Clojure, Scala, Groovy, and Scheme.

Development environments include the Eclipse Java development tools (JDT) for Java, Eclipse CDT for C/C++ and Eclipse PDT for PHP, among others.
Offcial Website -https://www.eclipse.org/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------_______________________________________________________________________________________________________________
Step -1 Java SE Downloads Link -  https://www.oracle.com/technetwork/java/javase/overview/index.html
Step -2 Eclipse IDE Download Link: https://www.eclipse.org/downloads/

C:\Program Files\Java\jdk\bin
C:\Program Files\Java\jdk

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install Java 14 JDK And Set JAVA_HOME On Windows 10 System

 Video Tutorial -https://youtu.be/x42zPbaBDPg

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Java is one of the most popular programming languages used to build different kinds of applications and systems. Java runs on all major operating systems and devices. You can find applications developed in Java on your laptop, phone, and game console.

Offcial Website -https://www.oracle.com/index.html

JAVA_HOME is an operating system (OS) environment variable which can optionally be set after either the Java Development Kit (JDK) or the Java Runtime Environment (JRE) is installed. The JAVA_HOME environment variable points to the file system location where the JDK or JRE was installed.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Testing Environment: Windows 10 64 Bit

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Java SE Downloads Link -  https://www.oracle.com/technetwork/java/javase/overview/index.html

C:\Program Files\Java\jdk\bin

To Set JAVA_HOME -

C:\Program Files\Java\jdk

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To install Jupyter Notebook with Python 3 Pip on Ubuntu 20.04 LTS

 Video Tutorial -https://youtu.be/PqHHf6sWyAk

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Jupyter Notebook is an open source and interactive web app that you can use to create documents that contain live code, equations, visualizations, and explanatory text. Jupyter Notebook supports more than 40 programming languages.
Offcial Website -https://jupyter.org/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment Setup- Ubuntu 20.04 LTS (focal fossa)  
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common python3-pip python3-dev
python3 --version ; pip3 --version

sudo -H pip3 install --upgrade pip
sudo -H pip3 install virtualenv
mkdir ~/new_project_dir ; cd ~/new_project_dir
virtualenv new_project_env
source new_project_env/bin/activate
pip install jupyter
jupyter notebook --help-all
jupyter notebook password
jupyter notebook
jupyter notebook --allow-root
jupyter notebook --ip=' *'
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install Tensorflow Keras Spyder Jupyter Using Anaconda Navigator On Ubuntu 18

Video Tutorial -  https://youtu.be/5R09xVBAGPc

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  Anaconda Navigator is a desktop graphical user interface (GUI) included in Anaconda® distribution that allows you to launch applications and easily manage conda packages, environments, and channels without using command-line commands. Navigator can search for packages on Anaconda Cloud or in a local Anaconda Repository. It is available for Windows, macOS, and Linux.

Offcial wesbite - https://docs.anaconda.com/
Anaconda Navigator Documentation - https://docs.anaconda.com/anaconda/navigator/

TensorFlow- https://www.tensorflow.org/
TensorFlow is a free and open-source software library for dataflow and differentiable programming across a range of tasks. It is a symbolic math library, and is also used for machine learning applications such as neural networks.

Keras-
Keras is one of the leading high-level neural networks APIs.

Spyder is an open source cross-platform integrated development environment for scientific programming in the Python language. Offcial website - https://www.spyder-ide.org/

Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more. Offcial web -https://jupyter.org/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:Ubuntu 18.04.LTS Bionic
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common python3-pip neofetch

curl https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh --output anaconda.sh
sha256sum anaconda.sh
bash anaconda.sh
source ~/.bashrc
anaconda-navigator

Tensorflow -
python
import tensorflow as tf
print(tf.__version__)

Keras Version - python -c 'import keras; print(keras.__version__)'
jupyter-notebook --allow-root 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install TensorFlow & TensorFlow 2.0 Hello World Example on Ubuntu 18.04

Video Tutorial - https://youtu.be/8BxiqakueYw

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

TensorFlow is a free and open-source platform for machine learning built by Google. It is used by a number of organizations including Twitter, PayPal, Intel, Lenovo, and Airbus.
https://www.tensorflow.org/  || https://www.tensorflow.org/tutorials

TensorFlow Install -https://www.tensorflow.org/install/pip
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 18.04.LTS Bionic              Hostname - www.yourdomain.com  - ip Address - 192.168.1.40
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch python3-venv
hostname -I ; hostname

mkdir my_tensorflow ; cd my_tensorflow
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -U setuptools
pip install --upgrade tensorflow
python -c 'import tensorflow as tf; print(tf.__version__)'


TensorFlow 2.0 Hello World -  Tensorflow Hello World Program Example
python
import tensorflow as tf
msg = tf.constant('TensorFlow 2.0 Hello World')
tf.print(msg)

deactivate

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Friday, May 15, 2020

How To Install Anaconda /Anaconda Navigator on Ubuntu 18.04

Video Tutorial - https://youtu.be/IzwM4SUgGcs

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Anaconda is an open-source package manager, environment manager, and distribution of the Python and R programming languages. It is commonly used for data science, machine learning, large-scale data processing, scientific computing, and predictive analytics.
Offcial Website -https://docs.anaconda.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment: Ubuntu 18.04 LTS 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common python3-pip neofetch

curl https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh --output anaconda.sh
sha256sum anaconda.sh
bash anaconda.sh

source ~/.bashrc
anaconda-navigator
conda list

Setting Up Anaconda Environments - conda search "^python$"
conda create --name NEW_env python=3
conda activate NEW_env
conda info --envs
conda deactivate
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Setup Anaconda and Jupyter Notebook , Tensorflow, Keras On Ubuntu 18.04

Video Tutorial - https://youtu.be/AwyplkF8Dqo

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Anaconda is an open-source package manager, environment manager, and distribution of the Python and R programming languages. It is commonly used for data science, machine learning, large-scale data processing, scientific computing, and predictive analytics.
Offcial Website -https://www.anaconda.com/

Jupyter Notebook is an open source and interactive web app that you can use to create documents that contain live code, equations, visualizations, and explanatory text. Jupyter Notebook supports more than 40 programming languages.
Offcial Website -https://jupyter.org/

TensorFlow is a free and open-source platform for machine learning built by Google. It is used by a number of organizations including Twitter, PayPal, Intel, Lenovo, and Airbus.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment: Ubuntu 18.04 LTS 64 Bit
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common python3-pip python3-setuptools python3-dev

curl https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh --output anaconda.sh
sha256sum anaconda.sh
bash anaconda.sh
source ~/.bashrc
conda upgrade conda
conda upgrade --all
conda info
conda create --name NEW_env python=3
conda activate NEW_env
conda install notebook ipykernel jupyterlab
conda install python=3.6.6
pip install tensorflow         [ pip install --upgrade tensorflow ]
pip install Keras
pip show tensorflow
python
import tensorflow as tf
print(tf.__version__)
jupyter-notebook -allow-root
Keras Version - python -c 'import keras; print(keras.__version__)'
conda deactivate
jupyter-notebook --allow-root &
jupyter-notebook stop

 

TensorFlow 2.0 Hello World -

import tensorflow as tf
msg = tf.constant('TensorFlow 2.0 Hello World')
tf.print(msg)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thursday, May 14, 2020

How To Install Oracle Java 14 & Java SE Development Kit 14 On Ubuntu 20.04 LTS

 Video Tutorial -https://youtu.be/dCc0BUIzGeY

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Tutorial On How To Install Oracle Java 14 & Java SE Development Kit 14  & Test Java Installation On Ubuntu 20.04 LTS

Java is a popular programming language created in 1995 and used for developing mobile, web and Desktop Applications among many others.
Java SE Development Kit comprises of a set of tools required by Developers to write, compile, run and debug Java Applications.
Offcial Website -https://www.oracle.com/index.html
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 curl gdebi

Visit JDK 14 releases page To download the latest archive.- https://jdk.java.net/14/
curl -O https://download.java.net/java/GA/jdk14/076bab302c7b4508975440c56f6cc26a/36/GPL/openjdk-14_linux-x64_bin.tar.gz
tar xvf openjdk-14_linux-x64_bin.tar.gz
mv jdk-14 /opt/

tee /etc/profile.d/jdk14.sh <<EOF
export JAVA_HOME=/opt/jdk-14
export PATH=\$PATH:\$JAVA_HOME/bin
EOF
source /etc/profile.d/jdk14.sh
echo $JAVA_HOME ; java -version


Java SE Development Kit 14 Download Link - https://www.oracle.com/java/technologies/javase/jdk14-archive-downloads.html

dpkg -i jdk-14.0.1_linux-x64_bin.deb
For any dependency errors, resolve with the command: - apt -f install

cat <<EOF | sudo tee /etc/profile.d/jdk14.sh
export JAVA_HOME=/usr/lib/jvm/jdk-14
export PATH=\$PATH:\$JAVA_HOME/bin
EOF
source /etc/profile.d/jdk14.sh ; java -version

Test Java Installation-
nano HelloWorld.java
public class HelloWorld {

    public static void main(String[] args) {
        // Prints "Hello, World" to the terminal window.
        System.out.println("Hello, World");
    }

}
javac HelloWorld.java
java HelloWorld

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

installing VMware Workstation 15 on Ubuntu 20.04 LTS / Linux Mint 19.3 Tricia

Video Tutorial - https://youtu.be/5QtG4U62vDg

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

VMware is a mature and stable virtualization solution that allows you to run multiple, isolated operating systems on a single machine.
Offcial Website :https://www.vmware.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Os : Ubuntu 20.04 LTS (focal fossa) 64Bit ||         Linux Mint 19.3 Tricia
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -a
apt install -y build-essential net-tools curl git software-properties-common

VMware Workstation Download Link - http://www.vmware.com/go/tryworkstation-linux-64
chmod -R 777
./
apt update ; apt install open-vm-tools -y

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Fix "Unable to install “package-name”: snap “package-name” has “install-snap” change in progress

Video Tutorial - https://youtu.be/lSNXnAdIT4Q

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

in This Tutorial you will learn "How To solve error: snap “packagename” has “install-snap” change in progress error in ubuntu Linux"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
OS - Ubuntu 18.04.LTS Bionic 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
snap changes
snap abort
snap refresh
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
in This Tutorial you will learn How To Solve Fix Error -
Unable to install “<PACKAGE>”: snap “<PACKAGE>” has “install-snap” change in progress
Unable to install "VLC": snap "VLC" has "install-snap" change in progress"
Solve Error -Unable to install “<PACKAGE>”: snap “<PACKAGE>” has “install-snap” change in progress

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Tuesday, May 12, 2020

How To Create SFTP User without Shell Access on Ubuntu 20.04 LTS

Video Tutorial - https://youtu.be/N5j0q3A6ePg

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 This Video tutorial will help you to create SFTP only user (without ssh access) on Ubuntu systems. The user can connect the server with SFTP access only and allowed to access the specified directory.

SFTP – SSH Secure File Transfer Protocol -
SFTP (SSH File Transfer Protocol) is a secure file transfer protocol. It runs over the SSH protocol. It supports the full security and authentication functionality of SSH.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Os : Ubuntu 20.04 LTS (focal fossa)  ip Address - 192.168.1.20 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
sudo apt update ; sudo apt install -y build-essential net-tools curl git software-properties-common ssh
sudo adduser --shell /bin/false sftpuser            [ Username - sftpuser ]
sudo mkdir -p /var/sftp/files
sudo chown sftpuser:sftpuser /var/sftp/files
sudo chown root:root /var/sftp ; sudo chmod 755 /var/sftp
sudo nano /etc/ssh/sshd_config
Match User sftpuser
    ForceCommand internal-sftp
    PasswordAuthentication yes
    ChrootDirectory /var/sftp
    PermitTunnel no
    AllowAgentForwarding no
    AllowTcpForwarding no
    X11Forwarding no
sudo systemctl restart ssh
Test SFTP Connection - sftp://192.168.1.20
user - sftpuser   Password - yourpassword

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install Strapi API with Apache2 Web Server on Ubuntu 20.04 LTS

Video Tutorial - https://youtu.be/neQoSdeaI54

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Strapi is an open-source, Node.js based, headless CMS to manage content and make it available through a fully customizable API. It is designed to build practical, production-ready Node.js APIs in hours instead of weeks.
Offcial Website -https://strapi.io/  || https://strapi.io/getting-started/

Apache is the most popular web server software in use today.|| Offcial website - https://httpd.apache.org/
Reverse Proxy Guide - https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
apt install nodejs -y ; node -v ; npm -v

npm install strapi@alpha -g --silent
strapi new myproject
cd myproject
npm install forever -g  --silent
forever start --minUptime 1000 --spinSleepTime 1000 -c "npm start" ./

apt update ; apt install apache2 -y
a2enmod proxy proxy_http
sudo 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:1337/
    ProxyPassReverse / http:/127.0.0.1:1337/    
</VirtualHost>

a2dissite 000-default.conf ; a2ensite yourdomain
apache2ctl configtest
systemctl daemon-reload ; systemctl reload apache2
echo "192.168.1.10 www.yourdomain.com"  >> /etc/hosts

http://www.yourdomain.com   | http://www.yourdomain.com/admin

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install Strapi API with Nginx on Ubuntu 20.04 LTS

Video Tutorial - https://youtu.be/a2UeL0Jhrsw

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Strapi is an open-source, Node.js based, headless CMS to manage content and make it available through a fully customizable API. It is designed to build practical, production-ready Node.js APIs in hours instead of weeks.
Offcial Website -https://strapi.io/  || https://strapi.io/getting-started/

Nginx (pronounced engine x) is open source Web server software that also performs reverse proxy, load balancing, email proxy and HTTP cache services.
Offcial Website - https://www.nginx.com/
NGINX Reverse Proxy - https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 nginx
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
apt install nodejs -y
node -v ; npm -v

npm install strapi@alpha -g  --silent
strapi version
strapi new myproject
cd myproject

npm install forever -g  --silent
forever start --minUptime 1000 --spinSleepTime 1000 -c "npm start" ./

nano /etc/nginx/conf.d/yourdomain.com.conf
server {
        listen 80;
        server_name www.yourdomain.com;

        location / {
                proxy_pass http://127.0.0.1:1337;
                proxy_set_header Host $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
        }
}
nginx -t
netstat -tlpn | grep 1337 
systemctl daemon-reload ; systemctl restart nginx
echo "192.168.1.10 www.yourdomain.com"  >> /etc/hosts

http://www.yourdomain.com
http://www.yourdomain.com/admin

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Change Authentication Plugin Method in MySQL

Video Tutorial - https://youtu.be/jde2jn-fwBw

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

in This Tutorial you will learn " How To Change Authentication Plugin Method "auth_socket To mysql_native_password in MySQL "

MySQL is an open-source relational database management system.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mysql
Check Current Authentication plugin - select user,authentication_string,plugin,host FROM mysql.user;

alter user 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'NewPassword';
flush privileges;
select user,authentication_string,plugin,host FROM mysql.user;
exit
systemctl daemon-reload ; systemctl restart mysql 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2 Ways To install VMware Tools On Linux Mint 19.3 "Tricia

Video Tutorial - https://youtu.be/mzFuQR1vSUA

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

VMware Tools enhances your VM experience by allowing you to share clipboard and folder among other things.
VMware Tools improves video resolution, mouse movement, and adds the ability to share files between a host and guest system.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
VM - Install VMware Tools
cd Downloads/
sudo ./vmware-install.pl -f
vmware-toolbox-cmd --version


Method:2
sudo apt update ; sudo apt install open-vm-tools-desktop -y

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ubuntu 20.04 Reset Root Password

Video Tutorial - https://youtu.be/Os_GwMOGuQ4

 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Forgot your Ubuntu login password? Well, this quick tutorial is going to show you how to reset user (or root) password in Ubuntu 20.04 LTS.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
OS - Ubuntu 20.04 LTS  
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Press Esc Or Shift key  - Boot into Grub menu

Press -e    Add -init=/bin/bash
Press Ctrl+X or F10

1. Remount Ubuntu system with read and write permission:
mount -rw -o remount /

Check the username if you forgot it:
ls /home

3. Reset password via command:
passwd USERNAME_HERE

exec /sbin/init

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Reset Recover Change MySQL Or MariaDB 10.3 Root Password On Linux

Video Tutorial - https://youtu.be/89M6ZWPX3Ag

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

MySQL root password allows the root user to have full access to the MySQL database.
MySQL is an open-source relational database management system.MariaDB is an open source relational database management system (DBMS).
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Os - Linux Mint 19.3 Tricia | ubuntu 20.04 LTS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mysql -V
systemctl stop mysql ; mkdir -p /var/run/mysqld
chown mysql:mysql /var/run/mysqld ; /usr/sbin/mysqld --skip-grant-tables --skip-networking &
mysql -u root
use mysql;
update user set authentication_string=PASSWORD("NewPassword123") where User='root';
update user set plugin="mysql_native_password" where User='root';
flush privileges;
quit;

pkill mysqld
systemctl start mysql ; systemctl status mysql
mysql -u root -p
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Mariadb Server version: 10.3
mysql -V
systemctl stop mariadb ; systemctl status mariadb
mysqld_safe --skip-grant-tables --skip-networking &
mysql -u root
use mysql;
update user SET PASSWORD=PASSWORD("YourNewPaasword") WHERE USER='root';
flush privileges;
exit
pkill mysqld
systemctl stop mariadb ; systemctl start mariadb ; systemctl status mariadb
mysql -u root -p
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Monday, May 11, 2020

How To Install AnyDesk On Ubuntu 20.04 LTS Desktop

Video Tutorial - https://youtu.be/-xAOQJg09Bw

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

AnyDesk is a remote support solution that helps users access files and documents on any device across multiple locations. Key features of this platform include online collaboration, file sharing, access control and personalized user interface.

Offcial Website - https://anydesk.com/en  ; AnyDesk Feature - https://anydesk.com/en/features
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification:-
Os : Ubuntu 20.04 LTS (focal fossa) 64Bit   |  Hostname: www.yourdomain.com   |  IP Address of Server:192.168.1.50
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd  ; getconf LONG_BIT ; hostname ; hostname -I && apt install -y build-essential net-tools curl git software-properties-common

wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add -
echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk.list
sudo apt update ; sudo apt install anydesk -y
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install SquirrelMail with Postfix Dovecot On Ubuntu 18.04 LTS

Video Tutorial - https://youtu.be/b2PX1L1Jcrs

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

SquirrelMail is a web-based email client that supplements desktop software for sending and retrieving emails from an SMTP (Simple Mail Transfer Protocol) and IMAP (Internet Message Access) Protocol.
Postfix is a popular open-source Mail Transfer Agent (MTA) that can be used to route and deliver email on a Linux system.
Dovecot is an IMAP and POP3 mail server for Linux.
Offcial Website -https://squirrelmail.org/
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 18.04 LTS                     Hostname - www.yourdomain.com  - ip Address - 192.168.1.40 
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -a ; hostname -I ; hostname
apt update ; apt install -y build-essential net-tools curl git software-properties-common dovecot-imapd dovecot-pop3d postfix tasksel
tasksel install lamp-server
mysql_secure_installation
systemctl restart postfix dovecot ; systemctl status postfix dovecot

wget http://downloads.sourceforge.net/project/squirrelmail/stable/1.4.22/squirrelmail-webmail-1.4.22.zip
unzip squirrelmail-webmail-1.4.22.zip
mv squirrelmail-webmail-1.4.22/ /var/www/html/mail
chown -R www-data:www-data /var/www/html/mail ; chmod 755 -R /var/www/html/mail
cp /var/www/html/mail/config/config_default.php  /var/www/html/mail/config/config.php
sudo gedit /var/www/html/mail/config/config.php &>/dev/null
$domain = 'www.yourdomain.com';
$data_dir = '/var/www/html/mail/data/';
systemctl daemon-reload ; systemctl reload apache2

cd /var/www/html/mail ; ./configure
http://www.yourdomain.com/mail        Username - ubuntu   Password - yourubuntupassword

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Sunday, May 10, 2020

How To Install Genymotion 3.1.0 Android Emulator on Linuxmint 19.3

Video Tutorial - https://youtu.be/ezw4NNIMKao

 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

GenyMotion is a Android emulator which comes with per-configured Android (x86 with OpenGL hardware acceleration) images, suitable for application testing.
Offcial Website -https://www.genymotion.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment: Linux Mint 19.3 Tricia
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common virtualbox virtualbox-qt
virtualbox &>/dev.null

Offcial Website - Genymotion Download Linux package - https://www.genymotion.com/download/
wget https://dl.genymotion.com/releases/genymotion-3.1.0/genymotion-3.1.0-linux_x64.bin
chmod +x genymotion-3.1.0-linux_x64.bin
./genymotion-3.1.0-linux_x64.bin
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------                   

installing ZoneMinder On Ubuntu 18.04.4 LTS bionic

Video Tutorial - https://youtu.be/yR1Btrrv64s

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
Offcial Website -https://zoneminder.com/  | Github - https://github.com/ZoneMinder/zoneminder
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 18.04.4 LTS bionic            Hostname - www.yourdomain.com  - ip Address - 192.168.1.40
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -a ; hostname -I ; hostname
apt update ; apt install -y build-essential net-tools curl git software-properties-common tasksel
tasksel install lamp-server

add-apt-repository ppa:iconnor/zoneminder-1.34 -y
apt install zoneminder -y

nano /etc/mysql/mysql.conf.d/mysqld.cnf
sql_mode = NO_ENGINE_SUBSTITUTION
systemctl restart mysql ; systemctl status mysql

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql     
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload
[ Password -toor ]


chmod 740 /etc/zm/zm.conf ; chown root:www-data /etc/zm/zm.conf
adduser www-data video
a2enmod cgi rewrite ; a2enconf zoneminder
chown -R www-data:www-data /usr/share/zoneminder/
systemctl enable zoneminder ; systemctl start zoneminder ; systemctl reload zoneminder
http://www.yourdomain.com/zm/

https://zoneminder.readthedocs.io/en/stable/installationguide/ubuntu.html

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To install & Uninstall Remove GNS3 On Ubuntu 20.04 LTS

 Video Tutorial -https://youtu.be/OoQDTrgUWys

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

GNS3 is an open source, free Network Simulator used by hundreds of thousands of network engineers worldwide to emulate, configure, test and troubleshoot virtual and real networks. GNS3 has helped in virtualizing real hardware devices and preparation for certification exams such as the Cisco CCNA, CCNP, CCIE, Juniper certifications e.t.c.
Offcial Website -https://www.gns3.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment: Ubuntu 20.04 LTS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
sudo add-apt-repository ppa:gns3/ppa -y ; sudo apt-get update ; sudo apt-get install gns3-gui build-essential net-tools curl git software-properties-common -y
gns3

Uninstall or Remove Gns3 -
sudo apt-get remove --auto-remove gns3-server gns3-gui
sudo apt autoremove 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install Gitlab with Docker on Ubuntu 18.04

Video Tutorial - https://youtu.be/DLzH9pFkZSs

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

GitLab is a web-based DevOps lifecycle tool that provides a Git-repository manager providing wiki, issue-tracking and continuous integration/continuous deployment pipeline features, using an open-source license, developed by GitLab Inc.

Docker is an open source platform for building, deploying, and managing containerized applications.
Offcial Website -https://about.gitlab.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 18.04.4 LTS bionic            Hostname - www.yourdomain.com  - ip Address - 192.168.1.40
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common  ca-certificates curl openssh-server ufw apt-transport-https

sudo gedit /etc/ssh/sshd_config &>/dev/null
systemctl restart sshd ; systemctl status sshd

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt update
apt install docker-ce -y
systemctl status docker
usermod -aG docker $USER
su - ${USER}
docker run hello-world

curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
curl -L https://raw.githubusercontent.com/docker/compose/1.24.1/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose

docker-compose --version
docker pull gitlab/gitlab-ee:latest
docker images

sudo docker run --detach \
  --hostname www.yourdomain.com \
  --publish 443:443 --publish 80:80 --publish 22:22 \
  --name gitlab \
  --restart always \
  --volume /srv/gitlab/config:/etc/gitlab \
  --volume /srv/gitlab/logs:/var/log/gitlab \
  --volume /srv/gitlab/data:/var/opt/gitlab \
  --env GITLAB_OMNIBUS_CONFIG="external_url 'https://www.yourdomain.com/';" \
  gitlab/gitlab-ee:latest

https://www.yourdomain.com
docker ps

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------