Tuesday, June 5, 2012

How to reset a Root Password In Fedora

Entering Recovery Mode 1. While you system is starting up, hold down the Ctrl key or Esc to see the boot loader menu. After you see the menu: 2. Use the arrows to select the boot entry you want to modify. 3. Press e to edit the entry. 4. Use the arrows to go to kernel line. 5. Press a or e to append this entry. 6. At the end of the line add the word single or the number 1. 7. Press Enter to accept the changes. 8. Press b to boot this kernel. As root, changing password does not ask for your old password. Run the command: # passwd

Wednesday, March 28, 2012

VMWare extend boot partition

i. Open up a command prompt and issue the following command: vmware-vdiskmanager -x 12GB “Windows Server 2003 Standard Edition.vmdk” where 12GB is the desired size of the expanded volume.

ii. Mount harddisk with another image.

iii.

Wednesday, January 18, 2012

SVN Installation on Fedora

References:
http://www.if-not-true-then-false.com/2010/install-svn-subversion-server-on-fedora-centos-red-hat-rhel/

Friday, October 28, 2011

Fedora install tomcat 6

yum install tomcat6 tomcat6-admin-webapps tomcat6-webapps
chmod g+x /usr/share/tomcat6/logs
chmod g+x /etc/tomcat6
chmod g+x /usr/share/tomcat6/webapps/
chmod g+x /usr/share/tomcat6/temp
chmod g+x /usr/share/tomcat6/work
chmod g+x /var/cache/tomcat6
chown -R tomcat:tomcat /etc/tomcat6/Catalina
chmod g+x /var/lib/tomcat6/

Ok. Now try start tomcat again:
service tomcat6 restart
Open browser: http://localhost:8080/

Sunday, October 9, 2011

How to list the files installed by a yum package

If you don’t have repoquery you’ll need to install it first:

% yum install yum-utilsThen you can run it like so:

% repoquery --list *package*repoquery writes the list of files for the specified package to standard output. For example, to see the files installed by the nmh package, use:

% repoquery --list nmh
/etc/nmh
/etc/nmh/MailAliases
/etc/nmh/components
/etc/nmh/digestcomps
/etc/nmh/distcomps
...

#Referenced from http://cimarron-taylor.appspot.com/html/0901/090107-yum.html

YUM command

yum gets the list of packages from repository /etc/yum.repos.d

install additional repository into top folder
- wsget *.repo

Saturday, April 16, 2011

JavaServlet\WebService Security Constraint

Reference: http://blogs.sun.com/monzillo/entry/web_xml_security_constraints_best