Monthly Archives: December 2013

Linux Notes

Stumbled across these useful commands today: Display Environment variables set   # prints environment variables, includes stuff like: BASH_ARGC=() printenv #prints environment variables, seems to be a much shorter list env # prints environment variables, seems to be a much shorter

Posted in Linux

SSH without password

Easy guide to follow: Summary: Use PuttyGen.exe to generate rsa key Copy the public key into ~/.ssh/authorized_keys Save the private key on desktop Load private key into putty under SSH > Auth Permissions: chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys

Posted in Linux, Security

VisualVM with firewall

Helpfull article which explains how to get JVisualVM running on a Linux system with a firewall: The trick was to setup a Listener in Tomcat’s server.xml : <!– JMX  –>   <Listener className=”org.apache.catalina.mbeans.JmxRemoteLifecycleListener”     rmiRegistryPortPlatform=”8000″ rmiServerPortPlatform=”8001″ /> The rmiRegistryPortPlatform

Posted in Java, Performance, Testing

Tomcat Installation details (Linux)

tomcat installation details —– apt-get install tomcat7 # start | stop tomcat sudo service tomcat7 stop sudo service tomcat7 start # CATALINA HOME (bin) /usr/share/tomcat7 # CATALINA BASE (instance) /var/lib/tomcat7 # enable debugging: /etc/default/tomcat7 # logs /var/lib/tomcat7/logs Excellent overview of

Posted in Linux, Tomcat