Re: [CentOS] Tomcat 6 and Java 1.6

2009-08-25 Thread brad
On Tue, 2009-08-25 at 22:24 +0800, CentOS List wrote:
> 
> 
> > Is SELinux running?  Have you checked /var/log/messages
> > or /var/log/audit/audit.log if you have it?  Is there anything in your
> > tomcat logs?  Do you get an error when you try to pull up the website? 
> 
> SElinux is setup to disabled. There is no log or anyting related. 
> I do have a folder tomcat5 in /var/log/ and the only file is
> catalina.out. 
> 

You might try a simple index.html under with some text in it before
trying your application just to make sure that tomcat is working.  We
use a custom tomcat setup so I am unsure of the defaults as it's
shipped, but there should be an access log somewhere as well.

Brad

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tomcat 6 and Java 1.6

2009-08-25 Thread brad
On Tue, 2009-08-25 at 21:47 +0800, CentOS List wrote:
> >>>> I did a yum -y install tomcat5 and tomcat got installed with openjdk.
> But
> >>>> somehow if I goto http://localhost:8080 I am unable to get to the
> tomcat
> >>>> 
> >>>> default site.
> >>>>
> >>>> Any insight?
> >>>> 
> >>> Does netstat show anything listening on 8080?  Do you have a firewall
> that
> >>> 
> >>> hasn't been adjusted to allow access to port 8080?
> > 
> >> Thanks for the reply. Netstat does not show port 8080. Iptables is not
> >> running.
> >> 
> 
>  
> 
> > Netstat is calling port 8080 webcache, so tomcat is listening.  Have you
> > checked your firewall?
> 
> I do not have a firewall.. Iptables is off
> 

Is SELinux running?  Have you checked /var/log/messages
or /var/log/audit/audit.log if you have it?  Is there anything in your
tomcat logs?  Do you get an error when you try to pull up the website? 

Brad

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tomcat 6 and Java 1.6

2009-08-25 Thread brad
On Tue, 2009-08-25 at 21:34 +0800, CentOS List wrote:
> >> I did a yum -y install tomcat5 and tomcat got installed with openjdk. But
> somehow if I goto http://localhost:8080 I am unable to get to the tomcat
> 
> >> default site.
> >>
> >> Any insight?
> 
> > Does netstat show anything listening on 8080?  Do you have a firewall that
> 
> > hasn't been adjusted to allow access to port 8080?
> 
> Thanks for the reply. Netstat does not show port 8080. Iptables is not
> running.
> 
> Proto Recv-Q Send-Q Local Address   Foreign Address
> State
> tcp0  0 *:mysql *:*
> LISTEN
> tcp0  0 localhost.localdomain:8005  *:*
> LISTEN
> tcp0  0 *:8009  *:*
> LISTEN
> tcp0  0 *:webcache  *:*
> LISTEN
> tcp0  0 *:http  *:*
> LISTEN
> tcp0  0 *:ssh   *:*
> LISTEN 
> 
> But tracking the log /var/log/tomcat5/catalina.out  I have it running
> 
> Aug 26, 2009 5:33:05 AM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal performance in
> production environments was not found on the java.library.path:
> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client:/usr/lib/jvm/jav
> a-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0
> /jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
> Aug 26, 2009 5:33:05 AM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Aug 26, 2009 5:33:05 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 780 ms
> Aug 26, 2009 5:33:05 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Aug 26, 2009 5:33:05 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
> Aug 26, 2009 5:33:05 AM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Aug 26, 2009 5:33:05 AM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Aug 26, 2009 5:33:06 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Aug 26, 2009 5:33:06 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/28  config=null
> Aug 26, 2009 5:33:06 AM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Aug 26, 2009 5:33:06 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 435 ms
> 
> 

Netstat is calling port 8080 webcache, so tomcat is listening.  Have you
checked your firewall?

Brad

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] ipsec net-to-net problem

2009-02-16 Thread brad
2350) reqid=0(0x)
E: 3des-cbc  b63a5538 c6a2dd3b f449df6e c594cd16 644a59d4 cb45dfef
A: hmac-sha1  5d8d015c f8e8e12f d117dc5b fc64d2ed f3ca79b5
seq=0x replay=4 flags=0x state=mature
created: Feb 16 12:45:57 2009   current: Feb 16 12:47:35 2009
diff: 98(s) hard: 3600(s)   soft: 2880(s)
last:   hard: 0(s)  soft: 0(s)
current: 0(bytes)   hard: 0(bytes)  soft: 0(bytes)
allocated: 0hard: 0 soft: 0
sadb_seq=1 pid=15049 refcnt=0
10.10.1.10 xx.xx.xx.xx
ah mode=tunnel spi=84103999(0x0503533f) reqid=0(0x)
A: hmac-sha1  022dbd45 248b1ffa 05d94068 22e3c530 5485a468
seq=0x replay=4 flags=0x state=mature
created: Feb 16 12:45:57 2009   current: Feb 16 12:47:35 2009
diff: 98(s) hard: 3600(s)   soft: 2880(s)
last:   hard: 0(s)  soft: 0(s)
current: 0(bytes)   hard: 0(bytes)  soft: 0(bytes)
allocated: 0hard: 0 soft: 0
sadb_seq=0 pid=15049 refcnt=0

Here are the ifcfg-ipsec files for each host.

Host A:

TYPE=IPSEC
ONBOOT=NO
IKE_METHOD=PSK
SRCGW=10.10.2.254
DSTGW=10.10.1.10
SRCNET=10.10.2.0/24
DSTNET=10.10.1.0/24
DST=yy.yy.yy.yy

Host B:

TYPE=IPSEC
ONBOOT=no
IKE_METHOD=PSK
SRCGW=10.10.1.10
DSTGW=10.10.2.254
SRCNET=10.10.1.0/24
DSTNET=10.10.2.0/24
DST=xx.xx.xx.xx

Here are the routes from each host.

Host A:
10.10.1.0   10.10.2.254 255.255.255.0   UG0  00 eth1

Host B:
10.10.2.0   yy.yy.yy.yy255.255.255.0   UG0  00 bond0

Let me know if I should post the racoon.conf files.

Thanks,

Brad


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] command for brand of monitor

2008-07-02 Thread Brad Zynda
Jerry Geis wrote:
> Is there a linux command that would tell me what model of monitor is
> presently attached to my computer?
> Thought about automating different setups based on the monitor
> connected. X config files basically.
> 
> Could be done with different kickstart files - but would like to not go
> there if I dont have to.
> 
> Jerry
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
http://www.cyberciti.biz/faq/howto-use-linux-ddcprobe-command/

-- 
Brad Zynda, NOC Technician, Team Cymru
http://www.cymru.com/  | +1 312 924 4051 | [EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mysql and windows

2007-09-28 Thread Brad Beyenhof

Peter Arremann wrote:

On Friday 28 September 2007, Miark wrote:

On Fri, 28 Sep 2007, [EMAIL PROTECTED] wrote:

Mysql is to databases what Lincoln logs are to cinder blocks.


What open source DB progs do you like--if any?


You shouldn't have asked that question... :)

When the dust settles at the end of the religious war you just 
started, you'll usually end up with people mostly agreeing on the 
following points:

[snip a bunch of well-presented decision factors]

What about for new database users? I assume there's boatloads of
documentation for all options, but which tends to work well for those
attempting to learn DB management?

I'm a sysadmin, bash scripter, and aspiring Pythonista, if such
knowledge influences the recommendation.

--
Brad Beyenhof
Systems Administrator
UC San Diego, Laboratory of Cognitive Imaging
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS 4.5: Print on custom paper size?

2007-09-19 Thread Brad Beyenhof
I'd like to print on an index card. My printer (an HP LaserJet 2100) 
supports it, but I can't figure out how to get a 3x5 inch option in 
CentOS's "Printer Properties" dialog.


Thanks for any help or direction that can be provided!

--
Brad Beyenhof
Systems Administrator
UC San Diego, Laboratory of Cognitive Imaging
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum proxy username with @ character

2007-09-13 Thread Brad Beyenhof

Clint Dilks wrote:
http_proxy understands the format :@proxy>: so in this case the @ is probably being interpreted 
as server identifier.  I would try enclosing the user name in single 
quotes or adding a \ before the @.  If these do not work your only 
option may be to contact the proxy admin and obtain a username without 
the @


If putting '\@' to escape the at sign didn't work, have you tried using 
the URL escape code of '%40' to represent it?


--
Brad Beyenhof, Systems Administrator
UC San Diego, Laboratory of Cognitive Imaging
9500 Gilman Drive #0949, La Jolla, CA 92093-0949
phone: (858) 534-4108   email: [EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sudo path

2007-07-21 Thread Brad Oaks

And while you're at it, you might as well supply the full path to su.
Quite a while ago I was taught to give the full path to su.  This
instruction was given with a warning that it's more secure in case a
malicious user was able to get a command named 'su' into your path
ahead of the binary you're intending to execute.

I use:
sudo /bin/su -

Although, presumably under this logic, someone could have snuck
another binary in named 'sudo', too.  To take my own medicine, I
should be doing:
/usr/bin/sudo /bin/su -

Putting my $0.02 in where it wasn't necessarily asked for,
--bradoaks

On 7/21/07, Johnny Hughes <[EMAIL PROTECTED]> wrote:

centos wrote:
> Hello
>
> Any time I am running sudo, I should have full path to the command,
> for example sudo /sbin/ifconfig
>
> Is there any way to set the path for sudo ?

use this command to get that (instead of just sudo):

sudo su -



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos