Posts

Showing posts from September, 2021

How to install Docker on Ubuntu Desktop, Ubuntu Server & AWS Ubuntu Server https://youtu.be/EiGZlkqPuN0

 How to install Docker in Ubuntu Desktop, Ubuntu Server & AWS Ubuntu Server... 1. sudo apt update 2. sudo apt install apt-transport-https ca-certificates curl software-properties-common 3. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 4. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" 5. sudo apt update 6. apt-cache policy docker-ce 7. sudo apt install docker-ce 8. sudo systemctl status docker 9. docker run hello-world 10. docker search ubuntu 11. docker pull ubuntu 12. docker images 13. docker run -it ubuntu 14. apt update 15. apt install nodejs 16. node -v 17. exit 18. docker ps 19. docker ps -a 20. docker ps -l Thanks For Watching ..... https://youtu.be/EiGZlkqPuN0

How to Install Apache, MySQL and PHP on Ubuntu 20.10

 How to Install Apache, MySQL and PHP on Ubuntu 20.10 1. Install Apache :- sudo apt-get update -y #using the -y option will automatically accept the conditions of the source update sudo apt-get install apache2 -y  sudo apt-get install apache sudo systemctl start apache 2. Install MySQL:- sudo apt-get install mysql-server -y sudo /usr/bin/mysql_secure_installation 3. Install PHP:- sudo apt-get install php -y sudo apt-get install -y php-{bcmath,bz2,intl,gd,mbstring,mcrypt,mysql,zip} sudo apt-get install libapache2-mod-php -y sudo systemctl enable apache service sudo systemctl enable mysql.service systemctl restart apache service cd /var/www/html/ rm index.html gedit index.html     save and exit Press 

How to install Apache JMeter in Ubuntu 20.04

 How to install Apache JMeter in Ubuntu 20.04 JMeter supports the load and performance testing om many different server/protocol types such as:       Web Servers  are HTTP, HTTPS     SOAP / REST       FTP          Database via JDBC     LDAP     Mail - SMTP, POP3, and IMAP     MongoDB (NoSQL)     Native commands or shell scripts     TCP Steps to Install JMeter:- Step 1) Install Java:- sudo apt-get update sudo apt-get install default-jre sudo apt-get install default-jdk Installing Oracle JDK (optional) sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer sudo update-alternatives --config java Setting the "JAVA_HOME" environment variable sudo nano /etc/environment JAVA_HOME="java path" source /etc/environment Apache JMeter 4.0 (Requires Java 8 or 9.) Download Jmeter:-   http://jmeter.apache.o...

How to Install and Use NPM (Node Package Manager) on Ubuntu 20.04:-

 How to Install and Use NPM (Node Package Manager) on Ubuntu 20.04:- sudo apt-get update sudo apt-get install nodejs npm node --version npm --version npm update npm search “web framework” Installing Node.js Module using NPM:--- mkdir node-demo && cd node-demo npm install express sudo npm -g install express-generator express --version npm list npm -g list    ( install globally installed Node.js Modules)

How to Enable SSH in Ubuntu 20.10 LTS Install open ssh-server

How to Enable SSH in Ubuntu 20.10 LTS Install open ssh-server (Install openssh-server) 1. ssh 2. ssh localhost 3. sudo apt-get update 4. sudo apt-get install openssh-server 5. sudo service ssh status 6. press q for quit 7. ssh localhost 8. chage ssh port   sudo nano/etc/ssh/sshd_config

How to create Bootable USB Drive in Ubuntu 20.10

 How to create Bootable USB Drive in Ubuntu 20.10 Press Alt+Ctrl+T       open terminal 1. sudo apt-get update 2. sudo apt-get install gparted 3. sudo apt-get install unetbootin 4. Launch unetbootin from dash bord 5. xhost si:localuser:root 6. sudo QT_X11_NO_MITSHM=1 /usr/bin/unetbootin  Other Options :- 1. Launch Startup Disk Creator How to enable root login:-  Open Terminal sudo nano /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf Step 2: Add the following statement. greeter-show-manual-login=true Step 3: Save and close nano. sudo passwd root

How Install GIMP image editor in Ubuntu 20.10

 How Install GIMP image editor in Ubuntu 20.10 Press Alt+Ctrl+T   open Terminal   1.sudo add-apt-repository ppa:otto-kesselgulasch/gimp 2. sudo apt-get update 3. sudo apt-get install gimp Uninstall GIMP image editor:- 1. sudo apt-get install ppa-purge 2.sudo ppa-purge ppa:otto-kesselgulasch/gimp

How do I fix a system running on low-graphics mode in Linux/Ubuntu

 How do I fix a system running on  low-graphics mode in Linux/Ubuntu 1. “ Ctrl- Alt- F1”  2. User Name & Password 3.  sudo apt-get update 4.  sudo apt-get -d install --reinstall gdm 5.  sudo apt-get remove --purge gdm 6.  sudo apt-get install gdm 7.   sudo reboot

How To Install the Apache Web Server on Ubuntu Server 20.10

 How To Install the Apache Web Server on Ubuntu Server 20.10 :- sudo apt update sudo apt install apache2 sudo ufw allow 'Apache' (Adjusting the Firewall) sudo systemctl status apache2 http://your_server_ip Setting Up Virtual Hosts (Recommended) Create the directory for aryanchoudhary: sudo mkdir /var/www/aryanchoudhary Assign ownership of the directory: sudo chown -R $USER:$USER /var/www/aryanchoudhary   The permissions of your web roots should be correct if you haven’t modified your unmask value, but you can make sure by typing: sudo chmod -R 755 /var/www/aryanchoudhary   Create a sample index.html page using nano or your favorite editor: nano /var/www/aryanchoudhary/index.html   Inside, add the following sample HTML: <html>     <head>         <title>Welcome to aryanchoudhary!</title>     </head>     <body>         <h1>Success!  The aryanchoudhary vir...

How to Install apache-tomcat server in Ubuntu 20.10

 How to Install apache-tomcat server in Ubuntu 20.10 Open Terminal --- Alt+Ctrl+T 1. sudo apt-get update 2. sudo apt-get install default-jdk 3. sudo apt-get update 4. apt-get install software-properties-common 5. add-apt-repository ppa:webupd8team/java (add-apt-repository ppa:webupd9team/java) 6. apt-get update 7. apt-get install oracle-java8-installer  (apt-get install oracle-java9-installer) 8. java -version 9. update-alternatives --config java 10. nano /etc/environment     JAVA_HOME="/usr/lib/jvm/java-8-oracle"     (save and close file) 11. source /etc/environment 12  echo $JAVA_HOME Install Apache Tomcat:---- 1.  Download the latest version of Apache Tomcat 2. cd /opt/ 3. sudo tar -xvzf ~/Downloads/apache-tomcat-8.0.26.tar.gz 4. sudo mv apache-tomcat-8.0.26/ apache-tomcat/ 5. sudo chmod -R 777 apache-tomcat/ 6. sudo gedit /etc/environment 7. CATALINA_HOME="/opt/apache-tomcat"     [Unit] Description=Apache Tomcat Web Application ...

How to create and install ssl certificate on IIS web Server on windows server 2019 & Domain

 How to create and  install ssl certificate on iis windows server 2019 & Domain  :-  1. host website in iis server  2. set public ip in your domain 3. check doamin working/ open your web site with domain name  4.Download   https://www.win-acme.com/  file 5. Paste in C drive and extret file and run as administrator 6. next setp please see video  https://youtu.be/M-PI8MHPj2k 7. wait 5-10 mintues  8. thanks for watching 

How to install yugabyte on Ubuntu 20.10

How to install yugabyte on Ubuntu 20.10 wget https://downloads.yugabyte.com/yugabyte-2.5.2.0-linux.tar.gz tar xvfz yugabyte-2.5.2.0-linux.tar.gz && cd yugabyte-2.5.2.0/ ./bin/post_install.sh ./bin/yugabyted start open sql shell ./bin/ysqlsh

User management for Samba4 Active Directory Domain Controller Samba : Samba AD DC : Basic User Management

User management for Samba4 Active Directory Domain Controller Samba : Samba AD DC : Basic User Management [1] Display domain users list. root@smb:~# samba-tool user list Administrator krbtgt ubuntu Guest [2] Add a domain user. root@smb:~# samba-tool user create ubuntu New Password:     # set password Retype Password: User 'ubuntu' created successfully # see many other options with "samba-tool user create --help" [3] Delete a domain user. root@smb:~# samba-tool user delete ubuntu Deleted user ubuntu [4] Reset password for a user. root@smb:~# samba-tool user setpassword ubuntu New Password: Changed password OK [5] Set expiry for a user. root@smb:~# samba-tool user setexpiry ubuntu --days=7 Expiry for user 'ubuntu' set to 7 days. [6] Disable/Enable user account. root@smb:~# samba-tool user disable ubuntu root@smb:~# samba-tool user enable ubuntu Enabled user 'ubuntu' [7] Display domain groups list. root@smb:~# samba-tool group list Allowed R...

Ubuntu server 20.10 set static ip

 Ubuntu server 20.10 set static ip :-  sudo ls /etc/netplan sudo vi /etc/netplan/ --installer-config.ymail.com [Change bleow setting] network:   version: 2    ethernets:     enp0s3:       dhcp4: false       addresses:       - 192.168.1.6/24       gateway4: 192.168.1.1       nameservers:           addresses:           - 192.168.1.1           - 8.8.8.8           - 4.2.2.2    sudo netplan generate sudo netplan apply sudo netplan --debug apply

How to configure Ubuntu Linux server as a Domain Controller, Samba 4 Active Directory Domain Controller on Ubuntu 20.10 Server

 How to configure Ubuntu Linux server as a Domain Controller Samba 4 Active Directory Domain Controller on Ubuntu 20.10 Server How to install Active Directory on Ubuntu 20.10 LTS First, assign a static IP to your server. Ubuntu Server uses netplan for network management. Your network configuration will look similar to this: sudo ls /etc/netplan sudo vim /etc/netplan/ file name  --- network:   ethernets:     enp0s3:       dhcp4: no       addresses:       - 192.168.1.51/24       gateway4: 192.168.1.1       nameservers:         addresses: [8.8.8.8, 8.8.4.4]         search: []   version: 2 --- Apply the network config sudo netplan apply Check if time synchronization with an Internet server is working timedatectl Update the apt cache sudo apt update Change the hostname and update the hosts file sudo vim /etc/hostname --- dc1.aryan.com --- sudo vim /...

Ubuntu Server 20.10 GUI installation step by step

 Ubuntu Server  20.10 GUI installation step by step:-  sudo apt update sudo apt install tasksel Next, select the GUI you wish to install. Below table shows  main desktop environments available for installation :-   tasksel --list-tasks sudo tasksel install ubuntu-desktop reboot In case the GUI is not starting at all, make sure your system  boots into the graphical target. To do so execute: sudo systemctl set-default graphical.target

How to Mount a Windows Share on an Ubuntu Server

 How to Mount a Windows Share on an Ubuntu Server:- 1. sudo apt-get install smbfs 2. sudo apt-get install cifs-utils 3. sudo mkdir /mnt/backup 4. sudo vi /etc/fstab      add bleow line :-  //192.168.1.177/sharedata /mnt/backup cifs domain=192.168.1.177 0 0      :wq 6. sudo mount -a 7. Auto Mounting sudo nano /etc/fstab //192.168.1.177/sharedata /mnt/backup cifs domain=192.168.1.177,file_mode=0755,dir_mode=0755 0 0 Run the following command to mount the share sudo mount /mnt/backup

How to install Oracle Java and JDK on Ubuntu 20.10

 How to install Oracle Java and JDK on Ubuntu 20.10:-  1. sudo apt-get update 2. sudo mkdir /usr/lib/jvm 3. cd /usr/lib/jvm 4. sudo tar -xvzf /mnt/jdk-8u221-linux-x64.tar.gz 5. sudo gedit /etc/environment 6. PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk1.8.0_221/bin:/usr/lib/jvm/jdk1.8.0_221/db/bin:/usr/lib/jvm/jdk1.8.0_221/jre/bin" J2SDKDIR="/usr/lib/jvm/jdk1.8.0_221" J2REDIR="/usr/lib/jvm/jdk1.8.0_221/jre" JAVA_HOME="/usr/lib/jvm/jdk1.8.0_221" DERBY_HOME="/usr/lib/jvm/jdk1.8.0_221/db" 7.sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_221/bin/java" 0   sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_221/bin/javac" 0   sudo update-alternatives --set java /usr/lib/jvm/jdk1.8.0_221/bin/java   sudo update-alternatives --set javac /usr/lib/jvm/jdk1.8...

Installing and Configuring Redis Ubuntu Server 20.10

 Installing and Configuring Redis Ubuntu Server 20.10 sudo apt update sudo apt install redis-server sudo systemctl enable redis-server sudo systemctl status redis Connect to Redis Server:- redis-cli    ping set test "It's working!" get test exit   sudo netstat -lnp | grep redis redis-cli info redis-cli info stats redis-cli info server sudo ufw allow proto tcp from 192.168.1.1/24 to any port 6379 Locate the line that begins with bind 127.0.0.1 ::1 and comment it. sudo nano /etc/redis/redis.conf #bind 127.0.0.1 ::1 protected-mode no sudo systemctl restart redis-server redis-cli -h 192.168.1.4 ping

Install phpMyAdmin on Ubuntu Server 20.10

 Install phpMyAdmin on Ubuntu Server 20.10 :-  Step 1: Install Apache sudo apt update sudo apt install apache2 sudo systemctl stop apache2.service sudo systemctl start apache2.service sudo systemctl enable apache2.service http://localhost Step 2: Install MariaDB sudo apt install mariadb-server mariadb-client sudo systemctl stop mariadb.service sudo systemctl start mariadb.service sudo systemctl enable mariadb.service sudo mysql_secure_installation When prompted, answer the questions below by following the guide. Enter current password for root (enter for none): Just press the Enter Set root password? [Y/n]: Y New password: Enter password Re-enter new password: Repeat password Remove anonymous users? [Y/n]: Y Disallow root login remotely? [Y/n]: N Remove test database and access to it? [Y/n]:  Y Reload privilege tables now? [Y/n]:  Y Restart MariaDB server sudo systemctl restart mariadb.service sudo mysql Then run the commands below to change to disable mysql_native_p...

How to setup SFTP(SSH File Transfer Protocol) on Ubuntu Server 21.10

 How to setup SFTP(SSH File Transfer Protocol) on Ubuntu Server 21.10 :-  How to setup SFTP(SSH File Transfer Protocol) on Ubuntu Server 21.10 sudo apt install ssh sudo nano /etc/ssh/sshd_config  (end of file add line) Match group sftp ChrootDirectory /home X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp sudo service ssh restart sudo addgroup sftp  (create Group) sudo useradd -m sftpuser -g sftp (create user) sudo passwd sftpuser   (user passwd set) sudo chmod 700 /home/sftpuser/  (change access permissions to the user) Open filezila abd connect ftp user  open cmd in windows:- sftp sftpuser@ubuntu pc ip  cd sfftpuser  ls  mkdir rm   

How To Set or Change Time zone on Ubuntu Server 20.10

 How To Set or Change Time zone on Ubuntu Server 20.10 :- How To Set or Change Timezone on Ubuntu Server 20.10 :- sudo -i Checking the Current Timezone :-  timedatectl ls -l /etc/localtime cat /etc/timezone Changing the Timezone Using the timedatectl Command:- timedatectl list-timezones timedatectl set-timezone Asia/Kolkata timedatectl Changing the Timezone by Reconfiguring tzdata:- echo "Asia/Kolkata" | sudo tee /etc/timezone sudo dpkg-reconfigure --frontend noninteractive tzdata cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime Restart the server Done Changing the Timezone Using the GUI:- 

How to install Tomcat 9 with admin user on Ubuntu 20.10

 How to install Tomcat 9 with admin user on Ubuntu 20.10 :- How to install Tomcat 9 with admin user on Ubuntu 17.10 sudo apt-get update java -version sudo apt install default-jre  sudo apt install openjdk-8-jre-headless sudo apt install openjdk-15-jre-headless sudo apt-get install tomcat9 sudo apt-get install tomcat9 tomcat9-docs tomcat9-admin tomcat9-examples http://localhost:8080 sudo nano /var/lib/tomcat9/conf/tomcat-users.xml add the following:- <role rolename="manager-gui"/> <role rolename="admin-gui"/> <user username="admin" password="password" role="manager-gui,admin-gui"/> {Save the File}  sudo service tomcat9 restart sudo systemctl restart tomcat9 sudo service tomcat9 status service tomcat9 stop service tomcat9 start

How to install Docker on ubuntu 20.10

 How to install  Docker on ubuntu 20.10 :-  Installing Docker in ubuntu 20.10 -- sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" sudo apt update apt-cache policy docker-ce sudo apt install docker-ce sudo systemctl status docker
 How To Install the Apache Web Server on Ubuntu Server 20.10 :- How To Install the Apache Web Server on Ubuntu Server 20.10 :- sudo apt update sudo apt install apache2 sudo ufw allow 'Apache' (Adjusting the Firewall) sudo systemctl status apache2 http://your_server_ip Setting Up Virtual Hosts (Recommended) Create the directory for aryanchoudhary: sudo mkdir /var/www/aryanchoudhary Assign ownership of the directory: sudo chown -R $USER:$USER /var/www/aryanchoudhary   The permissions of your web roots should be correct if you haven’t modified your unmask value, but you can make sure by typing: sudo chmod -R 755 /var/www/aryanchoudhary   Create a sample index.html page using nano or your favorite editor: nano /var/www/aryanchoudhary/index.html   Inside, add the following sample HTML: <html>     <head>         <title>Welcome to aryanchoudhary!</title>     </head>     <body>   ...