Shell Scripting

Monday, October 12, 2015

How to Set a Static IP in Ubuntu 14.04

By default the Ubuntu 14.04 server sets the interface to use DHCP, here’s how to set a static IP address.

Edit “/etc/network/interfaces”.  In this example set-up we’ll use 192.168.10.207 as our server IP address:

$sudo nano /etc/network/interfaces

To find out an ipadress in Linux
Ifconfig eth0 | grep "inet addr:"
Sample o/p: inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0

How to download youtube videos in Ubuntu

You can install youtube-dl and use it to download YouTube videos.

 sudo apt-get install youtube-dl

 youtube-dl https://www.youtube.com/watch?v=TA1MSeWA6Wk

Install weblogic in 64 bit mode

Use below command to install weblogic in 64 bit mode
 
java -d64 -jar wlsversion_generic.jar -mode=console

Post java install in Linux, installing dependency packages

After extracting downloaded java setup, In the terminal when I type: java -version It comes back with the below errors

krishna@lifebookah531:~/jdk1.7.0_79$ java -version
The program 'java' can be found in the following packages:
 * default-jre
 * gcj-4.8-jre-headless
 * openjdk-7-jre-headless
 * gcj-4.6-jre-headless
 * openjdk-6-jre-headless
Try: sudo apt-get install <selected package>

As per above error, default-jre package was not properly installed. BY using the below command, installed required packages.

command: sudo apt-get install default-jre

















































now able to see java version details

 

Sunday, October 11, 2015

How to install Putty in Ubuntu

Step:1 Issue the below Command to install Putty

# sudo apt-get install putty




















Step 2: Type Putty at prompt and putty window will get opened like below