Saturday, April 25, 2020

How to install MySql on Ubuntu 18.04




                                     How to install MySql on Ubuntu 18.04



Update Ubuntu

    # sudo apt-get update



Upgrade Ubuntu:

    #sudo apt-get upgrade




Check MySql is installed or not:

    #mysql –version



If MySql is not installed then:


Install Mysql Server:

    #sudo apt-get install mysql-server





Check the status of MySql:

    #sudo systemctl status mysql


Install MySql (Secure):

    #sudo mysql_secure_installation


Run MySql:

    #sudo mysql







==================== Enjoy ================================


Thursday, April 23, 2020

How to install vlc on Ubuntu 18.04 by snap




VLC is a open source cross-platform media player that plays most multimedia files.


=> Check snapd is installed or not:

#snap version



=> if snapd is installed then:


#sudo snap install vlc



=> It will install VideoLAN software.

Go to Application (Bottom left)
          Search Bar
              Type: vlc



You will get your media player









How to install snap on Ubuntu 18.04




Snap is a software deployment and package management system.
We will install snapd.



#sudo apt-get update

 

#sudo apt-get upgrade



=> Check snapd is installed or not:



#snap version



=> If snapd is not installed then:

#sudo apt-get install snapd







=> After installation again check:


#snap version
 





 => Install other package by snap:


#sudo snap install <pkg name>



=>It will install your required software/app




===================== Enjoy ==============



Tuesday, April 7, 2020

How to install Sublime text editor on CentOS7


## Sublime text editor installation on CentOS: 7


Check Sublime text editor installed or not:

#subl --version

[root@localhost ~]# subl --version
Sublime Text Build 3210

If its not installed then:


1. Update your Linux by command line:

# yum -y update



2. Import GPG key

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

[root@localhost ~]# sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg



3. Download Subline repos:


[root@localhost ~]# sudo wget -P /etc/yum.repos.d/ https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo



4. Install DNF package for installing sublime text editor:

# yum -y install dnf

[root@localhost ~]# yum -y install dnf


5. Install Sublime text editor:

#sudo dnf install sublime-text

[root@localhost ~]# sudo dnf install sublime-text


6. Check:

#subl --version

[root@localhost ~]# subl --version
Sublime Text Build 3210



7. Run Sublime text editor

#subl



## Open an editor




== Enjoy your new editor ===


Saturday, April 4, 2020

How to Check and Verify Python on CentOS7


Run CenOS7

Open Terminal:

# python --version

[root@localhost ~]# python --version
Python 2.7.5


Run Python:

#python

root@localhost ~]# python
Python 2.7.5 (default, Aug  7 2019, 00:51:29) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 



Help Command:

>>>help()

>>> help()

Welcome to Python 2.7!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/2.7/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help>


Quit from help command line:

help> quit

help> quit

Simple Program:

>>>print ("Hello World")

>>> print ("Hello World")
Hello World
>>> 


Quit from Python:

>>>quit()

>> 
>>> quit()
[root@localhost ~]# 



=== End ===