• About
  • Everyday Linux Commands

<roughCode/>

~ …so I can find it

Category Archives: Networking

SCP on Mac (and a tool for Windows)

15 Monday Sep 2014

Posted by Scott in Linux / UNIX, Networking, Windows

≈ Comments Off on SCP on Mac (and a tool for Windows)

Tags

linux, tools

From http://web.presby.edu/support/Terminal/scp.html :

Downloading a file:

scp username@hostname:pathname/filename .

For example:

$ scp jtbell@web.presby.edu:/Library/WebServer/Documents/support/FireFTP/PopupMenu.jpg .

Don’t forget the space before the final “.”.

Continue reading →

Advertisement

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

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…)

Today’s links and stuff to sort

03 Friday Aug 2012

Posted by Scott in Apache Tomcat, Application Servers, Networking

≈ Comments Off on Today’s links and stuff to sort

Tags

Linux Java

Tomcat memory error starting an application: http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/

Jenkins/Maven generate WAR file missing files (and additional directories) from inside /WEB-INF/classes/ event though MyEclipse was building it correctly.
added the following to the pom.xml file…

      <resource>
      	<directory>${basedir}/src/main/resources</directory>
      	<filtering>false</filtering></resource>
    </resources>

 

 

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(?)

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