• About
  • Everyday Linux Commands

<roughCode/>

~ …so I can find it

Tag Archives: linux

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

More installing Java on CentOS

14 Monday Jul 2014

Posted by Scott in Java, Linux / UNIX

≈ Comments Off on More installing Java on CentOS

Tags

Java, linux, Linux Java

from .bash_history…

sudo yum install java-1.6.0-openjdk-devel

well…where did that install to? Check out the crazy stuff @ /usr/lib/jvm/

sudo JAVA_HOME=/usr/lib/jvm/java-openjdk
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH

Continue reading →

IPTABLES to redirect 80 to 8080 for Tomcat

14 Monday Jul 2014

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

≈ Comments Off on IPTABLES to redirect 80 to 8080 for Tomcat

Tags

linux, tomcat

This is partially noted in some earlier posts, but the full detail is missing…

sudo /sbin/iptables -I INPUT 1 -p tcp –dport 8080 -j ACCEPT
sudo /sbin/iptables -I INPUT 1 -p tcp –dport 80 -j ACCEPT
sudo iptables -t nat -A PREROUTING -p tcp -m tcp –dport 80 -j REDIRECT –to-ports 8080
sudo service iptables save
sudo service iptables restart

Adding user to CentOS sudoers

14 Monday Jul 2014

Posted by Scott in Linux / UNIX

≈ Comments Off on Adding user to CentOS sudoers

Tags

centos, linux

edit /etc/sudoers and blunt trauma a user into it:

bob    ALL=(ALL)       ALL

Quick reference:

http://wiki.centos.org/TipsAndTricks/BecomingRoot

 

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)

CentOS activate eth0 and get dhcp working

27 Friday Jul 2012

Posted by Scott in Linux / UNIX

≈ Comments Off on CentOS activate eth0 and get dhcp working

Tags

linux

During an install from the minimal CentOS iso, I forgot to set eth0 to connect automatically. Since the default setting on CentOS is for eth0 to be disabled, this resulted in having to remember how to use vi to edit /etc/sysconfig/network-scripts/ifcfg-eth0 to update the configuration.

Update the following:

BOOTPROTO=dhcp
ONBOOT=yes
NM_CONTROLLED=no

…and restart the network.  NM_CONTROLLED turned out to be a big deal, because until I updated that from yes to no, I wasn’t getting an IPv4 address.  And IPv6 wasn’t getting any name resolution.  Don’t know if that was due to my host (this was a VirtualBox instance that I’m setting up as a demo for a friend, and I don’t know what the IPv6-ability of my old sitting around on the couch laptop is) or an issue with my 1st gen Time Capsule with integrated olde-school Air Port…

← Older posts

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