Saturday, 30 July 2016

Java 8 Installation in Linux


Open a Linux terminal (command prompt) and issue these commands:
You will be prompted "Do you want to continue?". Hit y and enter When completed it will return to the shell prompt. Now issue this command:
Now, install java 8 using below command. Hit Ok when get asked and  continue. Java 8 will download Oracle Java 8 and install it


To verify that Oracle Java 8 can be found and is the right version issue this command:
To configure:
If you ever wish to remove Oracle Java 8 you can use this command:

Sunday, 14 February 2016

Add Environmental (Path) Variable in Linux

1. Open .bashrc file.

      gedit .bashrc

2. Add path in basrc file like this: (In this care our runnable file is in bin directory.)

PATH=/usr/ansys_inc/v162/ansys/bin:$PATH
export PATH


3. Update the environmental.

source .bashrc

Done!




How to add user into sudoers in Red Hat Linux server


Manual way:
  • change to root
  • change directories to /etc
  • allow to write to sudoers file which READ-ONLY by default
  • add line with user in question and allow him to use sudo
su
cd /etc
ls -l
chmod +w sudoers
gedit sudoers
--- scroll down in file and find line (root ALL=(ALL) ALL) ---
---- right there add this for the user (example userid: ranjeet)---
root ALL=(ALL) ALL
ranjeet ALL=(ALL) ALL

Exit & Save
chmod -w sudoers  (make the sudoers READ-ONLY again)
All is done and now user “ranjeet” can use elevated right with use of sudo before the command. However if you have too many users to add, it would make sense add them to group and and add the group to sudoers instead of all separate users :-)
 


Friday, 19 June 2015

Wednesday, 10 September 2014

How to create desktop shortcut for eclipse on Ubuntu

This tutorial shows how to create desktop shortcut for eclipse on Ubuntu.
STEPS
----------
For this example eclipse is first extracted to the a folder where you want to keep it.

1) Create a text file on Desktop and type the following line:

[Desktop Entry]
Name=Eclipse
Exec=/path to eclipse directory/eclipse/eclipse
Icon=/path to eclipse directory/eclipse/icon.xpm
Type=Application

2) Click Save it on Desktop with name as: "eclipse.desktop"
3) Close gedit
4) Right-click eclipse.desktop
5) Click Properties
6) Click Permissions
7) Check Allow executing file as program
8) Click Close
9) Eclipse shortcut is ready!

Tuesday, 9 September 2014

Seismic Unix Installation in Ubuntu

Download the installation file from CWP website:  click here to download.

After downloading the file, extract the file, you will get a folder called "src"

Now, Make a Directory, where you want to install Seismic Unix...in my case, i am creating "cwp" directory in home directory:
mkdir cwp
Now move the "src" folder in "cwp" directory:  copy "src" and paste it in "cwp".
mv src /cwp/              if src is in your home directory
Go to src/cwp directory:
cd cwp/src
Then type the following command one by one in terminal: Make sure you are in "src" directory.
echo "export CWPROOT=~/cwp" >> ~/.bashrc
echo "export PATH=$PATH:~/cwp/bin" >> ~/.bashrc
source ~/.bashrc
make install 
sudo apt-get install libx11-dev
sudo apt-get install libxt-dev
make xtinstall  
 Now Seismic Unix is installed in your system if you don't get any error up to now. To check it, run this:
suplane | suximage title="My first test" &
 For any query, please, write a comment..........thank you!