30 Nov

Linux + Java Info

Installing Java



Installing Tomcat

  1. Download Tomcat
    1. Using a browser and downloading http://tomcat.apache.org/download-80.cgi
    2. wget http://www.apache.org/dist/tomcat/tomcat-8/v8.0.30/bin/apache-tomcat-8.0.30.tar.gz  <== puts the file in the current working directory
  2.  Extract the tar file by cd to directory above
    1. sudo tar -zxvf apache-tomcat-8.0.30.tar.gz -C /var/local
  3. Start tomcat
    1. udo /var/local/apache-tomcat-8.0.30/bin/startup.sh
  4. Verify it is running
    1. sudo netstat -tulpn | grep 8080
      results is something like : tcp6       0      0 :::8080                 :::*                    LISTEN      13765/java
    2. in a browser type: http://localhost:8080 . You should get:
    3. tomcat_default_page
  5. Stop tomcat
    1. sudo /var/local/apache-tomcat-8.0.30/bin/shutdown.sh

Using Tomcat

  • Tomcat can be managed through the web-manager. Web manager is password protected, requires user name and password to access. Only the user with the “manager-gui” role is allowed to access, these users and roles are defined in tomcat-users.xml. By default “manager-gui” role not defined that file, you have  to add it manually.
    • edit
    • to include:
      ?xml version='1.0' encoding='utf-8'?>
      <tomcat-users xmlns="http://tomcat.apache.org/xml"
                    xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
      <role rolename="manager-gui"/><!-- allows access to the HTML GUI and the 
          status pages -->
      <role rolename="manager-status"/><!-- allows access to the status pages only -->
      <role rolename="manager-script"/><!-- allows access to the text interface and 
      the status pages -->
      <role rolename="manager-jmx"/><!-- allows access to the JMX proxy and the 
      status pages-->
      <!--Users with the manager-gui role should not be granted either the manager-script or manager-jmx roles. -->
      <user username="tomcat" password="1234" roles="manager-gui"/>
9 Nov

Considering a new laptop

My 5 year old out of warranty Dell Inspiron fan is giving out and battery is almost shot, so considering getting a new laptop. I have not interest in Windows 10 as long as it has a “lack of privacy” so it is either Linux or Apple.

Apple has solid hardware and support but is relatively expensive compared to the various Linux platforms. Linux has a variety of distributions which offer different look and feel but only a small handful of vendors provide Linux “certified” hardware platforms:

  • ZaReason – provides Linux specific hardware and your selection of distros
  • System76 – provides Linux specific hardware and Ubunto distro
  • Los Alamos Linux – sells Lenovo Thinkpads which are configured to run a variety of distros

Levno, Asus and others don’t support Linux on their platforms however Linux users have installed various distros on these platforms and provide support for these through sites like Askubuntu and Linuxquestions. Dell offers Ubuntu on their XPS13 and M3880 devices, but I’ve read mixed stories about their support

My use for a laptop is

  • surfing the web – Firefox, Chrome
  • programming in PHP, Java  – Eclipse
  • using an “office suite”  – LibreOffice
  • some accounting (if I remember) – Quicken
  • routing for motorcycle trips – Garmin Basecamp

In the recent past I used a Asus eeePC and our computer while on motorcycle trips but Basecamp is not supported on XP and the eeePC does not support Windows 7 or higher. The eeePC was convenient has it has a 11″ screen, uses a SSD (solid state drive), and small.

My Inspiron is a 17″ and HDD which is too big and subject to vibration on the bikes. So I’m looking at a 14″ or 15″ display with SSD drive(s)