Friday, 15 March 2013

Install Shrewsoft VPN client in Ubuntu for Juniper Firewall


1. Download ike-2.2.0-rc-2.tgz or Latest Version from http://www.shrew.net/download.

2. Unzip the Downloaded file by following command $tar -xzvf shrewsoft-client.tgz

3. Go through the Readme file in extracted folder.

4. Install the prerequisites for Shrewsoft VPN client. like following.

sudo apt-get install gcc flex bison cmake openssl libssl-dev qt4-dev-tools libedit-dev build-essential

5. Go to the extracted folder IKE

6. Run following commands one by one.

$cmake -DCMAKE_INSTALL_PREFIX=/usr/local-DQTGUI=YES -DETCDIR=/etc -DNATT=YES
$cmake
$make
$sudo make install

$sudo cp ~/Downloads/ike/source/iked/iked.conf.sample /usr/local/etc/iked.conf

7. Use a text editor to edit (as root) /etc/sysctl.conf
8. Change the following Entries from 1 to 0 (if these values are not defined you will need to add
them in order to override the default setting of 1).
net.ipv4.conf.default.rp _ filter=0
net.ipv4.conf.all.rp _ filter=0
9. Use a text editor to edit (as root) /etc/sysctl.d/10-network-security.conf
10. Change the following Entries from 1 to 0 (if these values are not defined you will need to add
them in order to override the default setting of 1).
net.ipv4.conf.default.rp _ filter=0
net.ipv4.conf.all.rp _ filter=0
11. Reboot the PC.
12. Execute the following command to confirm settings change has taken affect:
$> sysctl -a | egrep rp_filter | egrep -v arp
net.ipv4.conf.all.rp _ filter = 0
net.ipv4.conf.default.rp _ filter = 0
net.ipv4.conf.lo.rp _ filter = 0
net.ipv4.conf.eth0.rp _ filter = 0

13. start IKED
$sudo iked

14. Start GUI and configure the VPN or Import Porifile.
$qikea

15. If GUI not starting install it. $ sudo apt-get install ike-qtgui

Thursday, 14 March 2013

VNC Server in RHEL, CentOS 5 & 6


1.Install VNC Server (EL:5 Servers)

#yum install vnc-server

2.create VNC login password

#vncpasswd

3.Edit following file and uncomment the two lines as mentioned in file.

#vi .vnc/xstartup

4.start an instance of VNC server & Check the log for moredetails.

#vncserver

5. Start VNC client in hostname field type ipaddress and :1 (xxx.xxx.xxx.xxx:1) and for authentication use the password set in Step two.




1.Install VNC Server (EL:6 Servers)

#yum install tigervnc-server

2.create VNC login password

#vncpasswd

3.Edit following file and  add two lines like following.

#vi /etc/sysconfig/vncservers

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"

4.start an instance of VNC server & Check the log for moredetails.

#service vncserver start

5. Start VNC client in hostname field type ipaddress and :1 (xxx.xxx.xxx.xxx:1) and for authentication use the password set in Step two.


Install VNC in CentOS-7

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-remote-access-for-the-gnome-desktop-on-centos-7

Wednesday, 25 April 2012

Run Oracle E-Business suite / forms in ubuntu firefox

There are two options One is through PPA and another Manual.

Option-1 (PPA)

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer (for Java-7)
sudo apt-get install oracle-java8-installer (for Java-8)

Option-2 (Manual)

Step1: Download java from http://www.java.com/en/ as per you operating system (32 / 64 Bit)


Step 2 Install Oracle JAVA (Here i used Version 7 Update 55 64Bit)

Open Terminal go to the in which we downloaded JAVA (Mostly Downloads)

 Unzip the tar file

$ tar -xvf jre-7u55-linux-x64.tar.gz

$ sudo mv jre1.7.0_55 /usr/lib/jvm/

$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.7.0_55/bin/java" 1

$ sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/usr/lib/jvm/jre1.7.0_55/lib/amd64/libnpjp2.so" 1


IMPORTANT choose the java you installed as default (SUN / Oracle JAVA)

 $ sudo update-alternatives --config java
 $ sudo update-alternatives --config mozilla-javaplugin.so

There is a security issue for self signed certificates, to get rid of this issue.

open control panel by executing following command

$ /usr/lib/jvm/jre1.7.0_55/bin/ControlPanel

Add site name with port number like follows.

http://vision.testing.com:8000


Restart Firefox now oracle forms will start working.

Check size of a current folder in Linux

du -sk .