• About
  • Everyday Linux Commands

<roughCode/>

~ …so I can find it

Monthly Archives: October 2012

Dump of ~/.histfile while setting up a Tomcat instance

31 Wednesday Oct 2012

Posted by Scott in Apache Tomcat, Application Servers, Linux / UNIX, Networking, Operating Systems

≈ Comments Off on Dump of ~/.histfile while setting up a Tomcat instance

Tags

tomcat

Just because I keep having to do this over and over again, here’s a cheat sheet for setting up a tomcat instance…

sudo cp apache-tomcat-6.0.35.tar.gz /usr/local
cd /usr/local
sudo tar -xvzf apache-tomcat-6.0.35.tar.gz
ls
sudo ln -s /usr/local/apache-tomcat-6.0.35 /usr/local/tomcat
sudo groupadd tomcat 
sudo useradd -g tomcat -c "Tomcat User" -d /usr/local/tomcat tomcat
sudo passwd tomcat TomTheCat
sudo chown tomcat:tomcat /usr/local/tomcat
sudo chown -R tomcat:tomcat /usr/local/apache-tomcat-6.0.35
sudo mkdir /usr/local/tomcat_ect
sudo chown tomcat:tomcat /usr/local/tomcat_ect
sudo cp -pr /usr/local/tomcat/* /usr/local/tomcat_ect/
cd /usr/local/tomcat_ect
cd conf
sudo nano server.xml
cd /etc
cd init.d
sudo service httpd stop
sudo chkconfig --del httpd
sudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables-save
ls /etc/init.d/
sudo nano /etc/init.d/iptables
sudo cp tomcat_ect /etc/init.d/
sudo nano /etc/init.d/tomcat_ect
ls -la /etc/init.d
ls -la /etc/init.d/
sudo chkconfig --add tomcat_ect
sudo chkconfig --level 234 tomcat_ect on          
sudo service tomcat_ect start
cd /usr/local/tomcat_ect/conf
sudo nano tomcat-users.xml
sudo service tomcat_ect stop
sudo service tomcat_ect start
cd /usr/local/tomcat_ect/bin
ls
sudo nano catalina.sh
sudo service tomcat_ect stop
sudo service tomcat_ect start
Advertisement

C# List to string

26 Friday Oct 2012

Posted by Scott in C#, Code Samples

≈ Comments Off on C# List to string

Tags

C#

This may already be here somewhere, but I use it a lot.
http://www.dotnetperls.com/convert-list-string
given:

List a = new List()
// add some things
string r = string.Join(",", a.ToArray());

 

 

Eclipse tips and tricks (because it’s not Visual Studio)

09 Tuesday Oct 2012

Posted by Scott in Java

≈ Comments Off on Eclipse tips and tricks (because it’s not Visual Studio)

Tags

eclipse, Java

A quick list of things I keep trying to learn in my transition form Visual Studio to Eclipse…more to come (and I might make this a page if I gather together enough of them)

The Display view = immediate window
(see http://blog.singhanuvrat.com/tech/eclipse-display-view-for-interactive-debugging )

and hover over a variable or method and get a little pop-up menu to open the declaration or implementation or other such code location. Like right-click Go To Definition, etc in Visual Studio

The Outline view is great for navigating code. Kinda like the drop-down of declarations and methods in Visual Studio’s tool bar…

 

Validate your JAVA_OPT values in a Tomcat instance

04 Thursday Oct 2012

Posted by Scott in Apache Tomcat, Application Servers, Code Samples, Java, Linux / UNIX

≈ Comments Off on Validate your JAVA_OPT values in a Tomcat instance

Tags

jsp, tomcat

Short version (to be edited later) add the code after the jump to a JSP page in your Tomcat instance. I just copied index.jsp in the default ROOT application and added some thing like this (thanksĀ http://threebit.net/mail-archive/tomcat-users/msg09868.html)

Continue reading →

Quick link dump using Interfaces

01 Monday Oct 2012

Posted by Scott in C#

≈ Comments Off on Quick link dump using Interfaces

http://www.c-sharpcorner.com/UploadFile/rmcochran/csharp_interrfaces03052006095933AM/csharp_interrfaces.aspx?ArticleID=cd6a6952-530a-4250-a6d7-54717ef3b345

was just looking for a quick syntax example…

Recent Posts

  • Bulk commands to install PHP and MySQL on CentOS 7
  • Four year gap? No, had just been self-hosting for a while
  • winhttpcertcfg.exe Example
  • Configure Tomcat 7 to use HTTPS
  • SCP on Mac (and a tool for Windows)

Archives

  • November 2018
  • October 2018
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012

Categories

  • Apache Tomcat
  • Apache Web Server
  • Application Servers
  • C#
  • CMS
  • Code Samples
  • Databases
  • Development Tools
  • Drupal
  • IIS
  • Java
  • Linux / UNIX
  • MS SQL Server
  • Networking
  • Operating Systems
  • Oracle
  • Uncategorized
  • Video Games
  • Windows
  • WordPress

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • <roughCode/>
    • Already have a WordPress.com account? Log in now.
    • <roughCode/>
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar