Sharing software installed in linux to all users
To do this you need to copy the installation to the following location
/ usr / local / bin
Then the software or program will be available for all the users of that machine.
Setting classpath for JAXB
export jWSDP_HOME=/home/venkitesh/installs/jwsdp-2.0
export jaxb_lib=$JWSDP_HOME/jaxb/lib
export jaxp_lib=$JWSDP_HOME/jaxp/lib/endorsed
export jwsdp_lib=$JWSDP_HOME/jwsdp-shared/lib
export CLASSPATH=$jwsdp_lib/jax-qname.jar:$jwsdp_lib/namespace.jar:$jaxb_lib/jaxb-api.jar:$jaxb_lib/jaxb-libs.jar:$jaxb_lib/jaxb-ri.jar:$jaxb_lib/jaxb-xjc.jar:$jaxp_lib/dom.jar:$jaxp_lib/sax.jar:$jaxp_lib/xalan.jar:$jaxp_lib/xercesImpl.jar:$jaxp_lib/xsltc.jar:$jaxp_lib/../jaxp-api.jar:.
Reloading the grub after windows reinstallation
Follow the procedure to reload the grub after wondows reinstallation(Since the windows will wipe out the boot menu)
Needed : A linux cd which you can boot and use as a live cd( can be ubuntu )
Steps
1) Boot into the LIVE CD
2) Open a TERMINAL window
3) Command 1 –> Sudo grub
4) Command 2 –> find /boot/grub/stage1
This will return a location. If you have more than one, select the installation that you want to provide the grub files.Next, THIS IS IMPORTANT, whatever was returned for the find command use it in the next line (you are still at grub>. when you enter the next 3 commands)
5) Command 3 –> root (hd?,?)
[Replace the "?" with the specification command 2 had returned]
6) Command 4 –> setup (hd?)
[ "?" should be replaced by the result returned by the command 2 like you used for command 3]
7) Exit
Try it out…
Select an attribute value from XML( in XSL )
<xsl:for-each select="parentNode/node">
<tr>
<td><xsl:value-of select="@att"/></td>
</tr>
</xsl:for-each>
* @att - @+Attribute Name
AXIS 2 – XMLBeans
1) Downloading XMLBeans
If you have SVN installed on your machine you can issue the following commands to get XMLBeans source:
# get the version of XMLBeans under development svn co http://svn.apache.org/repos/asf/xmlbeans/trunk/ xmlbeans # or, get the 1.x version of XMLBeans svn co http://svn.apache.org/repos/asf/xmlbeans/branches/1.x/ xmlbeans # or, just get the samples for XMLBeans svn co http://svn.apache.org/repos/asf/xmlbeans/trunk/samples/ xmlbeans-samples 2)Building XMLBeans XMLBeans requires that you have Ant installed (1.6.5 works fine).Windows
After the steps above you should see an "xmlbeans" directory (or you can choose a different name in the previous step, of course):cd xmlbeans\ xbeanenv antThis will create a build directory containing the executables. The xbean.jar is in the xmlbeans\ar directory. Try ant -projecthelp to see other build options.
Unix
Building on Unix or Cygwin is essentially the same as for Windows:
cd xmlbeans/ ./xbeanenv.sh ant 3)Set Environment Variables The following instructions assume you're using the XMLBeans release, whose directory structure looks like this:<xmlbeans-version> bin (location of tools) docs lib (location of xbean.jar)On UNIX/Linux, update your environment as follows:
- export XMLBEANS_HOME=<location of XMLBeans root>
- export PATH=$PATH:$XMLBEANS_HOME/bin
- export CLASSPATH=$XMLBEANS_HOME/lib/xbean.jar:$CLASSPATH(or, if you built XMLBeans from source, export CLASSPATH=$XMLBEANS_HOME/build/lib/xbean.jar:$CLASSPATH)
- For XMLBeans V2, export CLASSPATH=$CLASSPATH:$XMLBEANS_HOME/lib/jsr173[_1.0]_api.jar(or, if you built XMLBeans from source, export CLASSPATH=$CLASSPATH:$XMLBEANS_HOME/build/lib/jsr173[_1.0]_api.jar)
To get it started:
http://xmlbeans.apache.org/docs/2.0.0/guide/conGettingStartedwithXMLBeans.html
FTP server
To get connected with FTP, open a terminal window then type in the following commands
FTP <server_ip>
It will ask for a username
Type in : Anonymous
And as a password, you can either type in your email address or just hit enter
There you can access the FTP server using the FTP commands
FTP commands(very few are added up: you can google to find more commands)
1) cd <Directory Name> — To change the remote directory
2)lcd <Directory Name> — To change the local directory
3)get <File Name> — Copies the file into the current local directory
4)put <File Name> –Copies the file into the remote system
5)mget — Gets multiple files from th server to the local machine
6)mput — Used to put multiple files into the FTP server
7)ls — Prints the full path relative to our location where we stand
8)delete <FIle Name>–Deleted a file
9)chmod 777 — To change the access rights (Read,Write,Execute)
10)ASCII/BINARY — Changing the transfer mode( BINARY is good when taken care of file transmission)
Accessing files from svn(Remote)
We can actuallt access the files from the SVN server using the following command provided there is a registered user whose username and password is known.
Command is shown as follows
ssh <username>@<server IP> -Y
Example:
ssh jacky@192.168.3.121 -Y
Thank You
Venk!
To checkout SVN
use the following command to checkout files from SVN
SVN checkout svn:[repo_name]
Ex:
SVN checkout svn://192.168.1.234/ubuntu
where ubuntu is the repo name and the ip given is the ip address of the server in which CVS is setup.
Updation in Ubuntu
To get an update
sudo apt-get update
To Install all available packages
sudo apt-get upgrade
To search for a package
apt-cache search packagename
To Install a package
sudo apt-get install package
To Remove a package
sudo apt-get remove packagename
To List other apt commands
apt – get help
Add user to sudo group in ubuntu
Add user to sudo group
1) Graphical Method
System>Administration>Users and groups
2) Command Line
#sudo adduser <username>
Add a group ( create a group)
#sudo addgroup <groupname>
Add user to an Existing group
#sudo adduser <username> groupname
September 22, 2009
July 21, 2009
July 19, 2009