Thursday, March 30, 2006

configure a wireless network interface

iwconfig
is the command for the wireless network configeration
This will configure the wireless network as our preferences.
example :
To get this wireless interface activeted on the Fedora Core 4 first had to get the firmware upgraded by adding the firmware patch to the kernal
ipw2200-firmware
This was applied initially
yum update
=====================================
Package Arch Version Repository Size
=====================================
Installing:
ipw2200-firmware noarch 2.4-2 freshrpms 708 k

Transaction Summary
=====================================

And then by executing these commands I can activate my wireless connection
iwconfig eth1 essid WSO2 key 1212121212
dhclient eth1


Connected :)


check the kernal boot up ring params

NAME
dmesg - print or control the kernel ring buffer

SYNOPSIS
dmesg [ -c ] [ -n level ] [ -s bufsize ]

used exaple is needed to know wether the wireless eathernet was started at the kernal booting level.

dmesg | grep ipw

ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.0.0
ipw2200: Copyright(c) 2003-2004 Intel Corporation
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: ipw-2.2-boot.fw load failed: Reason -2
ipw2200: Unable to load firmware: 0xFFFFFFFE
ipw2200: failed to register network device
ipw2200: probe of 0000:04:02.0 failed with error -5

Monday, March 27, 2006

extract tar.bz2

tar -jxf archives/Azureus_2.4.0.2_linux.tar.bz2

This will extract the archive to the current folder

-j, -I, --bzip filter the archive through bzip2. Note: -I is deprecated and may get a different meaning in the near future.

Wednesday, March 22, 2006

all about yum

First set your rpm repos on the /etc/yum.conf as

[freshrpms core]
name=Fedora Linux $releasever - $basearch - core
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/core
#gpgcheck=1

[freshrpms updates]
name=Fedora Linux $releasever - $basearch - updates
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/updates
#gpgcheck=1

[freshrpms extras]
name=Fedora Linux $releasever - $basearch - extras
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/extras
#gpgcheck=1

[freshrpms]
name=Fedora Linux $releasever - $basearch - freshrpms
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms
#gpgcheck=1


Then import the key from the Fresh rpm site otherwise you wornt get the yum succesfully working on your thing.
su -
rpm --import http://ftp.freshrpms.net/pub/freshrpms/RPM-GPG-KEY

The serch a thing
yum search

The install a thing using yum
yum install

To erase a thing
yum erase

Thursday, March 02, 2006

ftp made easy

[lsandakith@eng1 Desktop]$ ftp
ftp> open ralph
Connected to ralph.sl.valista.com.
220 ralph FTP server (SunOS 5.8) ready.
500 'AUTH GSSAPI': command not understood.
500 'AUTH KERBEROS_V4': command not understood.
KERBEROS_V4 rejected as an authentication type
Name (ralph:lsandakith): oracle
331 Password required for oracle.
Password:
230 User oracle logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put GemplusIssue_DaemonLoop_030306.tar.gz
local: GemplusIssue_DaemonLoop_030306.tar.gz remote: GemplusIssue_DaemonLoop_030306.tar.gz
227 Entering Passive Mode (172,16,80,11,149,215)
150 Binary data connection for GemplusIssue_DaemonLoop_030306.tar.gz (10.30.1.237,61450).
226 Transfer complete.
15419 bytes sent in 0.13 seconds (1.1e+02 Kbytes/s)
ftp>

Wednesday, March 01, 2006

how to use tomcat server manager

It would be quite unsafe to ship Tomcat with default settings that allowed anyone on the Internet to execute the Manager application on your server. Therefore, the Manager application is shipped with the requirement that anyone who attempts to use it must authenticate themselves, using a username and password that have the role manager associated with them. Further, there is no username in the default users file ($CATALINA_HOME/conf/tomcat-users.xml) that is assigned this role. Therefore, access to the Manager application is completely disabled by default.

To enable access to the Manager web application, you must either create a new username/password combination and associate the role name manager with it, or add the manager role to some existing username/password combination. Exactly where this is done depends on which Realm implementation you are using:

* MemoryRealm - If you have not customized your $CATALINA_HOME/conf/server.xml to select a different one, Tomcat 5 defaults to an XML-format file stored at $CATALINA_HOME/conf/tomcat-users.xml, which can be edited with any text editor. This file contains an XML for each individual user, which might look something like this:
which defines the username and password used by this individual to log on, and the role names he or she is associated with. You can add the manager role to the comma-delimited roles attribute for one or more existing users, and/or create new users with that assigned role.

Search for a class file inside a jar

This is the power of shell scripting ---->
find -name '*.jar' -exec grep DiscountProgram {} \; -print