• About
  • Everyday Linux Commands

<roughCode/>

~ …so I can find it

Category Archives: Operating Systems

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

New VPS server testing

25 Tuesday Sep 2012

Posted by Scott in Networking, Operating Systems

≈ Comments Off on New VPS server testing

Tags

hosting, minecraft, PieServ, vps

Checking out a new VPS service with two new hosts. One of them is a Minecraft server. Needless to say, I have high hopes. I’ve never paid for Minecraft hosting before.

I’ll be posting some once my new PieServ game server is online. (1st ding against them, it’s been “pending” for about an hour. The other VPS host, a CentOS box, was up and running instantly…)

OpenJDK on CentOS missing javac

02 Thursday Aug 2012

Posted by Scott in Java, Linux / UNIX, Operating Systems

≈ Comments Off on OpenJDK on CentOS missing javac

Tags

linux

CentOS6 with OpenJDK 6 previously installed…Jenkins failed to build a project because it couldn’t find javac. Today’s lesson, OpenJDK is just the JRE package. You need to install java-1.6.0-openjdk-devel to get a real JDK.

see http://openjdk.java.net/install/

the rub — be sure to run

sudo yum install java-1.6.0-openjdk-devel

Running Tomcat as a service on CentOS

30 Monday Jul 2012

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

≈ Comments Off on Running Tomcat as a service on CentOS

Tags

linux, tomcat

see http://www.tech-problems.com/install-tomcat-7-on-fedoracentos/

…hmmm…had updates this post will some config files and must not have hit Update…will fix tomorrow when I can grab the files again…

Configure Apache Tomcat to use Apache httpd web server

30 Monday Jul 2012

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

≈ Comments Off on Configure Apache Tomcat to use Apache httpd web server

Tags

linux, tomcat

see this: http://fijiaaron.wordpress.com/2008/07/30/configuring-an-apache-virtualhost-to-use-tomcat/

and here’s a sample from my /etc/httpd/conf/vhosts/a-vhost-config.conf:

ProxyRequests Off

AddDefaultCharset Off
Order deny,allow
Allow from all

ProxyPass / ajp://localhost:8019/
ProxyPassReverse / ajp://localhost:8019/

Created /etc/httpd/conf/workers.properties:

# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8019

 

Networking fails moving VirtualBox Linux guest to another host

29 Sunday Jul 2012

Posted by Scott in Linux / UNIX, Networking, Operating Systems

≈ Comments Off on Networking fails moving VirtualBox Linux guest to another host

Tags

linux

(because the mac changed)
https://forums.virtualbox.org/viewtopic.php?f=2&t=27220

…and the mac address in the eth0 config file at /etc/sysconfig/network-scripts/ifconfig-eth0 needs to match the mac address in the rules file at /etc/udev/rules.d/70-persistent-net.rules…

The gist is…

You can edit the /etc/udev/rules.d/70-persistent-net.rules or you can delete the rules and Linux will configure it on the next boot.

Or bypass the whole issue and use the same mac address as the original vm…which shouldn’t be a problem behind different NAT firewalls(?)

Linux commands I always forget

27 Friday Jul 2012

Posted by Scott in Linux / UNIX, Operating Systems

≈ Comments Off on Linux commands I always forget

Tags

linux

Un-TAR a file: tar -zxvf yourfile.tar.gz

 

(actually decided to re-do this as a page…see the link up top)

Linux link dump for current project (to be sorted later)

25 Wednesday Jul 2012

Posted by Scott in Apache Tomcat, Apache Web Server, Linux / UNIX, Operating Systems

≈ Comments Off on Linux link dump for current project (to be sorted later)

Tags

apache, linux

Working on a new project and the server guys made me a new RHEL server for the dev team to use.  And IT said “here you go, good luck”.  Now, in a previous career choice I was a Windows server admin, and I’ve dabbled in your various Linux and UNIX and Solaris environments.  I have not, however, been a big Apache Tomcat user. The Apache httpd server, sure, but not Tomcat.  So here are some links I’ve been reading to get my local CentOS VM configured before I start trying to blow up configure the dev server that my team will be using to support multiple virtual sites and Tomcat instances…
  • http://articles.slicehost.com/2010/5/19/apache-virtual-hosts-on-centos-part-1
  • http://articles.slicehost.com/2010/5/20/installing-apache-on-rhel
  • http://articles.slicehost.com/2010/7/17/linux-file-permission-concepts
  • http://www.networkclue.com/os/Linux/commands/chcon.aspx
  • http://www.linuxquestions.org/questions/linux-general-1/chcon-cant-apply-partial-context-to-unlabeled-file-371977/
  • http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-6-on-fedora-centos-red-hat-rhel/
  • (setting up tomcat) http://bobcares.com/blog/?p=451

SELinux again on AJP connection: http://sysadminsjourney.com/content/2010/02/01/apache-modproxy-error-13permission-denied-error-rhel/

 

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

Create a free website or 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