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

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