1.Installing Intellij IDEA on ubuntu
install using scripts
step 1
-
Download the script accordingly from following links
intellij-idea-community_xxxx.xx-1_all.deb (community version)
step 2
-
Then open terminal via Ctrl+Alt+T or by searching for it
from app launcher, and run command to install the script:
sudo dpkg -i ~/Downloads/intellij-idea-community_*_all.deb
Replace
community in
the command with ultimate
for ultimate version.2.Installing JDK 8
Check Do you have JDK alredy installed or not.
java -v
If you have OpenJDK installed on your system it may look like this:
- java version "1.7.0_15"
OpenJDK Runtime Environment (IcedTea6 1.10pre) (7b15~pre1-0lucid1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
If you have OpenJDK installed on your system, you have the wrong vendor version of Java installed
Type/Copy/Paste: sudo apt-get purge openjdk-\*
This command will completely remove OpenJDK/JRE from your system
Type/Copy/Paste: sudo mkdir -p /usr/local/java
This command will create a directory to hold your Oracle Java JDK and JRE binaries.
Download the Oracle Java JDK/JRE for Linux.
Copy the Oracle Java binaries into the /usr/local/java directory. In most cases, the Oracle Java binaries are downloaded to: /home/"your_user_name"/Downloads.
-
32-bit Oracle Java on 32-bit Ubuntu Linux installation instructions:
Type/Copy/Paste: cd ~/Downloads
Type/Copy/Paste: sudo cp -r jdk-8u152-linux-i586.tar.gz /usr/local/java
Type/Copy/Paste: sudo cp -r jre-8u152-linux-i586.tar.gz /usr/local/java
Type/Copy/Paste: cd /usr/local/java
- Type/Copy/Paste: cd ~/Downloads
If you downloaded the JDK then Type/Copy/Paste: sudo cp -r jdk-8u152-linux-x64.tar.gz /usr/local/java
- If you downloaded the JDK then Type/Copy/Paste: sudo tar xvzf jdk-8u152-linux-x64.tar.gz
Type/Copy/Paste: ls -a
jdk1.7.0_45
Type/Copy/Paste: sudo gedit /etc/profile
If you are installing the JDK then Type/Copy/Paste:
JAVA_HOME=/usr/local/java/jdk1.7.0_45
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH
If you are installing the JDK then Type/Copy/Paste: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.7.0_45/jre/bin/java" 1
If you are installing the JDK then Type/Copy/Paste: sudo update-alternatives --set java /usr/local/java/jdk1.7.0_45/jre/bin/java
Type/Copy/Paste: . /etc/profile
REBOOT
3. installing mysql 5.5
-
Uninstall any existing version of mysql
sudo rm /var/lib/mysql/ -R
-
Delete the mysql profile
sudo rm /etc/mysql/ -R
-
Automatically uninstall mysql
sudo apt-get autoremove mysql* --purge sudo apt-get remove apparmor
-
Download version 5.5.51 from MySQL site
wget https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz
-
Add mysql user group
sudo groupadd mysql
-
Add mysql (not the current user) to mysql user group
sudo useradd -g mysql mysql
-
Extract to /usr/local
sudo tar -xvf mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz /usr/local/
-
Create mysql folder in /usr/local by moving the untarred
folder
cd /usr/local sudo mv mysql-5.5.49-linux2.6-x86_64 mysql
-
Set mysql directory owner and user group
cd mysql sudo chown -R mysql:mysql *
-
Install the required lib package (works with 5.6 as well)
sudo apt-get install libaio1
-
Execute mysql installation script
sudo scripts/mysql_install_db --user=mysql
-
Set mysql directory owner from outside the mysql directory
sudo chown -R root .
-
Set data directory owner from inside mysql directory
sudo chown -R mysql data
-
Copy the mysql configuration file
sudo cp support-files/my-medium.cnf /etc/my.cnf (mysql 5.5) sudo cp support-files/my-default.cnf /etc/my.cnf (mysl 5.6)
-
Start mysql
sudo bin/mysqld_safe --user=mysql & sudo cp support-files/mysql.server /etc/init.d/mysql.server
-
Initialize root user password
sudo bin/mysqladmin -u root password '[your new password]'
-
Add mysql path to the system
sudo ln -s /usr/local/mysql/bin/mysql /usr/local/bin/mysql
-
Reboot the system
-
Start mysql server
sudo /etc/init.d/mysql.server start
-
Stop mysql server
sudo /etc/init.d/mysql.server stop
-
Check status of mysql
sudo /etc/init.d/mysql.server status
-
Enable myql on startup
sudo update-rc.d -f mysql.server defaultsDisable mysql on startup (Optional)
sudo update-rc.d -f mysql.server remove
-
Reboot the system
-
Now directly use the command below to start mysql if it
hasn’t
sudo service start mysql -u root -p
No comments:
Post a Comment