Author: David Dietrich

  • Setting the Session Timeout in Tomcat

    You can specify the timeout of a session in the deployment descriptor of your web application (web.xml): <web-app> <session-config> <session-timeout>60</session-timeout> </session-config> … </web-app> The number within the session-timout element must be expressed in minutes. Be sure to restart Tomcat to take the new setting.

  • Using QEMU for operating system virtualization

    Fortunately, it’s not the only game in town. Different ways of tackling virtualization have led to a number of different software packages including VMware, Xen, VirtualPC, and Usermode Linux. Another virtualization program is called QEMU and it’s a lot like VMware in concept. The first step is to grab QEMU from the project Web site.…

  • How to mount a Windows share in Linux

    Here is an example of how to connect to a Windows share from Linux: >mkdir -p /mnt/winShare >mount -t cifs //192 over at this website.168.x.x/e$ /mnt/winShare -o username=Administrator First put in the connection information in Linux style notation //IP/ShareName. The share can be a root directory, like the e$ above, or it can be any…

  • Windows Vista how to boot up without network

    For security, sometimes you do not want your computer to automatically start up allowing network connections. In Windows Vista there is a way to ensure that when your machine reboots, network connections will not be enabled. They will only be enabled once you log in the first time. To do this, go to Control Panel…

  • Dropping a DB2 database

    Normally, to drop a database in DB2, you run the following command: >db2 drop db YourDb If you run into errors trying to drop the database, you may need to recatalog the database. You can run the following series of commands: >db2 uncatalog db YourDb >db2 catalog database Restart DB2. Then run: >db2 drop db…

  • Changing a DB2 server name

    If you find DB2 not being able to start because of a server name problem, it most likely is caused by moving a virtual machine and not renaming the DB2 database. To update DB2 to the proper name: Stop DB2 as administrator (db2inst user). >su – db2inst >db2stop If there are open database connections, then…

  • Access to MySQL

    To gain access to MySQL run the following command: mysql -u root -p mysql You will be prompted for the root password. mysqladmin command to change root password If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To setup root password…

  • Slow SSH in Ubuntu

    If you are experiencing long delays when connecting to Ubuntu through SSH, this is most likely a protocol issue investigate this site. In your SSH_CONFIG file, set: GSSAPIAuthentication no Restart the ssh daemon, and you should be quickly connecting to your Ubuntu server from now on.

  • Jasper Server timezone issue

    In Jasper Server 2.x and greater, there is an issue where reports will appear to off by one day. This is most likely a timezone configuration issue with your datasource. To avoid this problem, when you configure a data source, be sure to leave the time zone information blank. That’s right, don’t select your local…

  • How to copy Subversion repositories to another server

    Ensure you have a working Subversion installation with Apache installed on your system. On the source machine, dump each repository: > svnadmin dump /path/to/repository > repository-name.dmp Copy repository-name.dmp to the target server. Load the repository into the new server: > cd /path/to/new-repository > svnadmin create repository-name > svnadmin load repository-name < repository-name.dmp Reassign apache permissions:…