Posts

Showing posts from 2012

Solaris Networking Tips

How to find all the network interfaces on a solaris machine: dladm show-dev   or  prtconf -D | grep network  or  grep -i net /etc/path_to_inst How to Bring up an interface ifconfig <Interface Name> plumb ifconfig <Interface Name> <Ip Address> netmask <Netmask> ifconfig <Interface Name> up How to view SAN device connected to your Solaris machine luxadm probe Solaris 10 multicast interface route -n delete -interface 224.0/4 -gateway 10.1.1.77 route -n add -interface 224.0/4 -gateway 100.1.1.77

X Forwarding with Putty on Windows

Image
Courtesy  http://www.math.umn.edu/systems_guide/putty_xwin32.html Intro to X Forwarding Unix machines have been able to run software on a remote machine and display the GUI locally for almost two decades. Linux and Mac OS X support X Forwarding with no extra software. Any terminal on Linux should do X Forwarding, Mac users need to run " Applications > Utilities > XTerm ". In a command line terminal run " ssh -Y jdoe@compute.example.edu matlab " and you'll be running matlab on " compute.example.edu " but seeing it on your desktop. Windows users need two pieces of software: an secure shell program (ssh) to establish the remote connection and an X Server to handle the local display. Prerequisites Putty  for SSH Xming  for the XServer Configuring Putty Add Unix hostname Switch Protocol to SSH Type name of session in saved sessions Click 'Save' Expand the 'SSH' tab from the 'Category' list Choose 'X1...

LINUX

Installing Java in Linux using rpm 1)Download the rpm from oracle website.[http://java.com/en/download/manual.jsp ] 2) Make the file executable by running the command:  chmod a + x jre-7u3-linux-i586-rpm.bin 3) Install the package using the command:  ./jre-7u3-linux-i586-rpm.bin 4) To list the installed jre rpm packages run the command:  rpm -qa | grep jre How to find if processor is 64 bit / 32 bit: getconf LONG_BIT Finally run command to get all CPU related info:  less /proc/cpuinfo Opening port 8080 on linux machine iptables -I INPUT -p tcp -i eth3 5 --dport 8080 -m state --state NEW, ESTABLISHED -j ACCEPT To the list with iptables interface options iptables --line -vnL Add swap partition # mkswap /dev/sde1 # swapon /dev/sde1 Cat # /etc/ fstab /dev/sde1 swap swap defaults 0 0 Add swap file # dd if =/dev/ zero of =/root /swapfile bs=1M count=1024 1024 + 0 records in 1024 + 0 records out # chmod 600 / root / swapfile # mkswap ...

Oracle Issues and Getaways.

if after oracle upgrade the databse doesnt come up cd $ORACLE_HOME/rdbms/admin sqlplus "/as sysdba" SQL>startup upgrade; SQL>@catupgrd.sql SQL>shutdown immediate; SQL>startup; SQL>@utlrp.sql Mario Alcaide #################################### Offending key in /.ssh/known_hosts:8 RSA host key for 10.204.4.53 has changed and you have requested strict checking. Host key verification failed. Solution #1: Remove keys remove the entery from /.ssh/known_hosts and try connecting again. 1.Open up /etc/ssh/sshd_config and set "PermitRootLogin" to "yes". (Your ISP probably set it to "without-password") 2.You also need to restart the sshd process. This is done by killing the existing one (use ps -aux|grep sshd to get the process ID, then use kill to zap it), then restarting /usr/sbin/sshd #################################################### By default, Fedora Core 6 systems come with an old Java software installed...