How to add Scala plugin in IntelliJ IDEA on Ubuntu





Basically, IntelliJ IDEA is a Java-related IDE for developing software developed by JetBrains. Here we discussing how to install Scala plugin in IntelliJ IDEA on the Ubuntu operating system.

For, first time users in IntelliJ IDEA we checked whether Scala Plugin is available or not. But here is Scala is not available.

Install Scala plugin in IntelliJ IDEA:

Step 1: Go to the Menu bar on top of the IDEA  “File” -> “Settings”

Step 2: Click on “Plugins” then search Scala, it will be showing like “Scala Install”. Click on the Install button and then click on “OK” at the bottom.

Step 3: After successfully installed the Scala plugin then “Restart IDE”. Then we get the notification “IDE and Plugin Updates”, Restart it.

Step 4: After Restarted IntelliJ IDEA then click on “New Project” it showing programming languages including Scala also.

Step 5: Choose Scala and Sbt then click on the “Next” button on the bottom of the IntelliJ IDEA.

Step 6: Change your  Project Name and Location as per your compatibility. Check your JDK version, Sbt version, and Scala version then click on the “Finish” button.

Getting Scala version for Sbt, downloading Maven Repos from scala official website then it showing [SUCCESSFUL] in IntelliJ IDEA console. It will take some more time to set up the Scala project structure and get external library files for Java, Scala from the internet.

IntelliJ IDEA default programming languages and its libraries in below:

Java
Groovy
Android
Kotlin
Maven,etc

If you need any programming language like Scala, Python, and etc just add a plugin like the above steps then simply will get the plugin on IntelliJ IDEA.



Note: IntelliJ IDEA one of the best IDE for developing code in Java, Scala, Python, etc.
Nowadays technology is day by day updated to simplify the time complexity, optimization, etc.
So need to update the programming language in IDEs using related plugins like the above steps.

How to add Scala Plugin in STS (Eclipse IDE) on Ubuntu




Simple steps to add Scala Plugin in Eclipse IDE (STS) in Ubuntu 16.04

Step 1: First install Eclipse IDE (STS ) in your operating system.

Step 2: Launch the Eclipse IDE with proper directory to store the Spring or Java application on your machine.

Step 3:Goto “Help” option on top of your Eclipse IDE in the dashboard.

Step 4: Click on “Eclipse Market place”

Step 5: Search on the “Scala” keyword. For what do you want to add a plugin on our Eclipse IDE. Then we get like below snapshot

Step 6: Click on the “Install” icon for the complete installation of Scala IDE with the version on your IDE.

Step 7: In this step, it showing more options like Scala IDE for Eclipse etc, then take default option and click on the “Confirm” option.

Step 8: Here is showing Apache License then click on “I accept the terms of the license agreements”. After that click on the “Finish” button.

Step 9: After that Eclipse IDE (STS) asked for the “Restart” window.




Step 10: Goto Right corner of the Eclipse IDE, click on “Open Perspective” then choose “Scala”. Like the below snapshot.

After that will write programs in Scala (Functional Programming) including Java also.

Summary: The above-mentioned steps to add Scala plugin in Eclipse IDE (Integrated Development Environment) or Spring Tool Suite in Ubuntu 16.04 for developers. Basically Scala is used for Functional programming language including the OOPS concept also. But here is less coding style with higher-order functions for developing code. For Spark need either Java or Scala in one environment we use this type setup. I think the Spring Tool Suite is the best choice because it is very fast and easier compared to Eclipse IDE.
Otherwise, download the Scala IDE from Scala official website for Ubuntu and then install it like Eclipse IDE. If you didn’t work for the above steps then uninstall Eclipse then again install it.

How to install STS(Spring Tool Suite) on Ubuntu 16.04 with pictures





STS: Spring Tool Suite is ready to run a time environment for Java, Scala, Groovy, Kotlin, and etc programming languages. It is used to deploy Spring applications directly. It is working like Eclipse IDE but very fast and easier to Spring applications.

Prerequisites :

Ubuntu 16.04 version operating system

JDK 1.7 or more version for compatibility

Installation of STS on Ubuntu 16.04:

Step 1: Goto  Spring official website: https://spring.io/tools3/sts/all
then select the Linux operating system to download the tarball from the site.

Step2: After downloading the tarball, move into Java path for better compatibility.

Step3: Change the permission of the Spring tarball using below command:

chmod 777 spring-tool-suite-tarball.x86_64.tar.gz

Step 4: Extract the tarball using below command from the command prompt:

tar -xzvf spring-tool-suite-tarball.x86_64.tar.gz

Output: We get three folders like legal, pivotal-tc-server and sts-version.RELEASE

Step5: Goto sts-version.RELEASE folder then runs the “STS” application directly. Will get “Spring Tool Suite 3 Launcher”. Click on the “Launch” button.

Step 6: We get the Spring Tool Suite Dashboard for Spring writing, deploying Applications for easier.
Creating a simple Spring Application:

Step 7: Goto top corner left of the STS Eclipse IDE click on the below option:

"File" - > "New" -> "Spring Starter Project"

Step 8: Give your name of the Spring Starter Project Name, then choose Type version either Maven or other options.




Step 9: Then prove Group, Artifacts of your project details. Click on “Next” then choose Spring Boot Version. If you want Cloud-based then choose the AWS, GCP etc, then click on “Finish” simply.

Step 10: Then automatically create a simple Spring project in STS with main, test files including pom.xml file in the project.

Step 11: The above steps are very simple to create projects in STS.

Summary: Here is the Installation of Spring Tool Suite on Ubuntu 16.04(Linux operating system) and creating a sample Spring project with details of the project including cloud bases also. It same as Windows operating system for installation and creating projects on STS.

How to Install Jupyter on Ubuntu 16.04 with Pictures| Commands | Errors | Solution




Installation of Jupyter notebook on Ubuntu 16.04 with commands:

Here is step by step processing to the installation of Jupyter. you will need some prerequisites:

  • Ubuntu 16.04 version.
  • Python 2.7 or more version

First, we will update the packages lists from the repositories using the below command.

sudo apt-get update

Jupyter notebook needs a Python, and Python Development kit. so check the Python version and Python pip version.

python --version

Check  the Python pip version

pip --version

If Python and Python pip is not available then, install Python and its development kit for Jupyter notebook.

sudo apt-get -y install python2.7 python-pip python-dev


After installation of Python and Python pip then check the version. Now we will install Ipython and Jupyter Notebook, Ipython means an interactive command-line interface to Python. It is used for the web interface to many languages.

sudo apt-get -y install ipython  ipython-notebook

In this step, we will install Jupyter Notebook using the below command.

sudo - H pip install jupyter

It will take some more time for the installation of the Jupyter Notebook on the Ubuntu operating system. In the output stament it showing like “You should consider upgrading using the ‘pip install –upgrade pip,  it has shown this command , then use this in the command line prompt simply.

sudo -H pip install --upgrade pip

After the successful installation of the Jupyter Notebook then check whether installed properly or not.

jupyter notebook

Jupyter Notebook running on a system with JavaScript installed if it is successful running no problem, otherwise will get this type of error from the command prompt :

Error:

sreekanth@sreekanth-Inspoiron-5537:~# jupyter notebook
Traceback (most recent call last):
File "/usr/local/bin/jupyter", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/jupyter_core/command.py", line 230, in main command = _jupyter_abspath(subcommand)
File "/usr/local/lib/python2.7/dist-packages.jupyter_core/command.py", line 133, in_jupyter_abspath 'Jupyter command '{}' not found.".format (jupyter_subcommand)
 Exception: Jupyter command  'jupyter-notebook' not found.

Solution:




Go to root user the run the below command then automatically upgrade the Python pip and forcefully reinstall the packages and libraries. After that, it will collecting Jupyter Notebook packages and libraries.

pip install --upgrade --force-reinstall --no-cache-dir jupyter

The above command takes around 5 mins for collecting packages.

After completion of the above step then try to open Jupyter Notebook in root user. We get below error on your CLI, so exit from root user using “exit” command then go to normal user.

"Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret [] Running as root is not recommended. Use --allow-root to bypass."

Existing root user then open jupyter notebook command on CLI like below command :

Here it showing Jupyter Notebook is running status, then automatically go to the browser server otherwise will access the below hostname with the port number.



http://localhost:8888

We will get below WebUI on your browser:

How to check Ubuntu version with pictures

In Ubuntu/Linux operating system, simple three resolutions are there one is “system settings” and another one is “terminal  (command line)”.
Here first will check with the settings:



Solution 1:

To find out Ubuntu versions with simple solutions for the ubuntu-users like below steps. We have a simple option to open “search our computer” Menu bar then search “details”:

After clicking of Details icon will get the Ubuntu version, Memory, Hard Disk and Processor, and Operating System type like below snapshot.

If you have confused/conflicts then go with other steps like below:

Solution 2:

Step 1: Goto ubuntu sidebar then find out “System settings icon” :

Step 2:  Find out “Details” icon then click on the icon like below snapshot.

Step 3: Then simply check your Ubuntu operating system version.

Solution 3:

Step 1: Open your “terminal (command line)” on Ubuntu machine.

Step 2: Use “lsb_release – a” command then showing description and version of the Ubuntu/Linux distributions.

Above steps are to find out the latest version of Ubuntu or Linux distributions like CentOS, Mint, etc.




Summary: Ubuntu OS is an open-source, in Linux distributions with different features, compatibility, and software applications, etc.  Sometimes we need the version for compatibility issue so check with our Ubuntu version. Here to provide different solutions to find out Ubuntu latest versions for users.

How to Install IntelliJ IDEA on Linux/Ubuntu with Pictures




Simple Installations of IntelliJ IDEA on Ubuntu/Linux:

IntelliJ IDEA is one of the best IDE (Integrated Development Environment) tool for developing programs having some functions by developed by Jetbrains. With simple syntax to develop the code either JAVA, SCALA, Python, Ruby, Node JS and PHP etc in the help of JDK 1.7 or above version of (JDK) Java Development Kit on Linux/Ubuntu operating systems like Sublime, Atom IDEs with different feature functions. simple steps to installation with step by step process:

Prerequisites to Installation of IntelliJ IDEA on Linux:

1. Linux 64-bit version with minimum 2GB RAM and recommended 8 GB.

2.Free space on your Linux operating system at least 5 GB Hard Disk or more.

3.Java Development Kit (JDK 1.7) or above version is mandatory for standalone edition.

Standalone mode installation on Linux/Ubuntu:

Step 1: Download tarball from Jetbrain official website like below preference with the below snapshot:

Step 2: For simple practice programming and Andriod programs download to free, open-source community edition is enough otherwise will go with the Ultimate edition for web developing related. Then download “IntelliJ IDEA tar ball”

Step 3: Extract directly from that tarball or using below simple command for tarball extraction:
“tar -xzvf  ideaIC-20XX.X.X.tar.gz” on your location.

Step 4: Go to idea-IC- folder in the bin folder then run the idea.sh then simple to open IntelliJ IDEA otherwise set the environment variables and path for “IntelliJIDEA_HOME ” than simple to open the IDE




Step 5: To check Path Variables for set correctly or not by using below:
“echo $IntelliJIDEA_HOME”.

Step 6: Then simply execute the command on the terminal using “./idea.sh”

Summary: The above simple steps for IntelliJ IDEA installations in Ubuntu/Linux operating systems. It is an open-source and as well as community edition with some features for web-developing. Nowadays IntelliJ IDEA for Spark with Scala programming, Java and JavaScript programming,  Andriod and iOS developing for programmers.

How to install PyCharm(Python) on Linux/Ubuntu and How to create project




PyCharm Installation on Linux:

Step 1: Download tarball from PyCharm official website from JetBrains for Professionals(For both Scientific and Web Python development) and Community (For Python development) edition than simply Download the Community edition.

Step 2: After downloaded tarball then extract it by using ” command and then find out the folder in the directory

tar -xzvf pycharm-community-2019.2.tar.gz"

Step 3: Go to /home/sreekanth/Downloads/pycharm-community-2019.2/bin folder

Step 4: Run the “pycharm.sh” file using below command in the bin folder.

"bash pycharm.sh "

 

Step 5: Then automatically open the PyCharm window like below image:

If you want to check every Tip click on “Next Tip” otherwise directly click on “Close”

Step 6: Go to Top left side click on File -> New Project for creating a new project

Step 7: After clicking on the “New Project” option then choose the Project Location where you will choose for applications like below snapshot.




If choosing a location then click on the “Create” button.

Step 7: After created your project and completed the programming then execute will check the results in the “Python Console”. If you want to write sample programs then directly write and execute simple.

Example:  >> print(“Hello”) then click on the enter button will see the results

Summary: Above steps are to install the PyCharm community edition on Linux or Ubuntu operating system. Here is provided step by step processing with pictures.

Linux Basic and Advanced Commands for Beginners





Ubuntu is an open source operating system for all users. Here Ubuntu/Linux basic and advanced commands for beginners and admins.

Ubuntu/Linux commands for Ubuntu users:

SYSTEM COMMANDS:

Below commands related to the system by using the terminal

uname -a — Display LINUX system information

uname -r — Display kernel release information


uptime — Show how long the system has been running + load


hostname — Show system hostname

hostname -i — Display the IP address of the host


last reboot — Show system reboot history


date — Show the current date and time


cal — Show this month calendar


whoami — Who you are logged in as        

FILE COMMANDS:

Is -al –Display all information about files/ directories

pwd –Show the path of the current directory


mkdir directory-name –Create a directory

cp  file l   file 2 –Copy file l to file 2


cp -r dir 1 dir 2 –Copy dir 1 to dir 2, create dir 2 if it doesn’t exist


mv file l file 2 –Rename source to dest / move source to directory


touch file –Create or update file


cat > file –Place standard input into file


more file –Output contents of the file


head file –Output first 10 lines of file


tail file –Output last 10 lines of file


wc –print the number of bytes, words, and lines in files

xargs –Execute command lines from standard input.

rm file-name –Delete file

rm -r directory-name –Delete directory recursively

rm -f file-name –Forcefully remove file

rm -rf directory-name –Forcefully remove directory recursively

PROCESS RELATED COMMANDS:

ps –Display your currently active processes


pmap –Memory map of the process


top –Display all running processes

bg –Resumes suspended jobs without bringing them to the foreground

fg –Brings the most recent job to foreground
fg n –Brings job n to the foreground

kill pid –Kill process with     mentioned pid id
kill all proc –Kill all processes named proc
pkill process-name –Send signal to a process with its name

ps aux | grep ‘telnet’ –Find all process id related to telnet process

 

NETWORK COMMANDS:

ifconfig — Display ip address in ubuntu

ip addr show –Display all network interfaces and ip address 

ip address add 192.168.0.1 dev eth0 –Set IP address
    

mii-tool eth0 –Linux tool to show ethernet status
ping host –Send echo request to test

dig domain –Get DNS information for the domain


dig -x host –Reverse lookup host


host commandstech.com –Lookup DNS ip address for the name


hostname -i –Lookup local ip address

wget file –Download file


netstat -tupl –Listing all active listening     ports.

 

INSTALL PACKAGE COMMANDS:

rpm -i pkg name.rpm –Install rpm based package
rpm -e pkg name –Remove package





HARDWARE COMMANDS:

dmesg –Detected hardware and boot messages


cat /proc/cpuinfo –CPU model


cat /proc/meminfo –Hardware memory


cat /proc/interrupts –List the number of inturrepts per CPU per I/O device


lshw –Display information on hardware configuration of the system


lsblk –Displays block device-related information in LINUX


free -m –Used and free memory(-m for MB)


lspci -tv –Show PCI devices


lsusb -tv –Show USB divices

dmidecode –Show hardware info from the BIOS

 

USER COMMANDS:

id –Show the active user id with login and group

last –Show last logins on the system

who –Show who is logged on the system

usermod –Modify user information.

groupadd admin –Add group “admin”
useradd -c “Sam Tomshi” –g admin -m sam #Create user “sam”
userdel sam –Delete user sam
adduser sam –Add user “sam”

 

FILE PERMISSION RELATED COMMANDS:

chmod octal file-name –Change the permissions of file to octal
chmod 777 /data/test.c –Set rwx permission for owner,group,world
chmod 755 /data/test.c –Set rwx permission for owner,rx for group and world
chown owner-user file –Change owner of the file
chown owner-user:owner-group file-name –Change owner and group owner of the file
chown owner-user:owner-group directory –Change owner and group owner of the directory.

 

COMPRESSION/ARCHIVES COMMANDS:

tar cf home.tar home –Create tar named home.tar containg home
tar xf file.tar –Extract the files from file.tar
tar czf file.tar.gz files –Create a tar with gzip compression
gzip file –Compress file and renames it to file.gz

 

DISC USAGE COMMANDS:

df -h –Show free space on mounted filesystems
df -i –Show free inodes on mounted filesystems
fdisc -l –Show discs partitions sizes and types
du -ah –Display disc usage in human readable form
du -sh –Display total dosc usage on the current directory
findmnt –Displays target mount point for all filesystem
mount device-path mount-point –Mount a device

DIRECTORY TRAVERSE COMMANDS:

cd .. –To go up one level of the directory tree
cd –goto $HOME directory
cd/test –Change to/Test directory




How to Install Ubuntu/Linux Operating System in your PC

Nowadays one of the best-operating systems is Ubuntu/Linux by using USB or Pendrive here step by step installation of Ubuntu/Linux with Pictures.

Step1: By Using USB Drive or Pendrive
Most newer computers can boot from USB.you might need to press the F12(or depends upon machine) key to bring up the boot menu

Step2: Prepare to Install Ubuntu for Download updates or third-party installing 

Step3: Click on Ubuntu Software whether to select all the options or what we need to select it

Step4: Allocate drive space here little bit more focus on it because of one option Erase disk and Install Ubuntu it clear all files. If you have any operating system please copy all files into another disk otherwise will lose data

Step5: If Error Comes to Go back

Step6: Select your  present location(Geographical)

 

Step7: Select your preferred keyboard layout whether you are from the US or any other language please select it.

Step8: Enter your login and password details. Here Install as a superuser so must and should give your name, computer’s name and choose a password as per your convince. Finally, click on Require my password to log in.

Step 9: After completion of the above steps: Install Complete-Restart System it means that successfully installation of your Ubuntu/Linux operating system in your PC.

Step 10: After Restart your Ubuntu/Linux operating system ask your PC password as per your credentials open your operating system.

Above steps are very simple to Install of Ubuntu/Linux operating system in your laptop after that open your dashboard. Open terminal check version and packages.