Re: [CentOS] A new blog on the block for Linux newbies

2008-09-03 Thread Spiro Harvey, Knossos Networks Ltd

 I've created a blog to help newbies in the world of Linux. Can you
people see it and tell what departments that I've to improve more to help
the grate community of Linux.


1) The world has plenty of sites already catering to linux newbies. I 
just googled linux for newbies and got 330,000 results.


2) Why can you possibly help if you yourself are a newbie? It's just the 
blind leading the blind.


3) Your difficulty in grasping simple concepts like how to write an 
email reaffirms point 2 in my mind.


4) Your grasp of the English language is at best mediocre. This will add 
another barrier to conveying information to newbies.


my recommendation is that you forget your website and devote that time 
into learning linux better yourself. Spend time on various forums, and 
read read read.


A final point I'll note is that this is a CentOS list, aimed at helping 
people with CentOS. It's not a place to spam with ads for your website 
unless they are CentOS specific.




--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] rc.local

2008-08-31 Thread Spiro Harvey, Knossos Networks Ltd

Ric Moore wrote:

I note that there are two 'rc.local' files. One is in /etc and the other
in /etc/rc.d   Which has precedence and is the one to use? Thanks, Ric



if you do an 'ls -lad /etc/rc.local', what do you get?

Mine's a symlink to rc.d/rc.local. The rc.d directory is where the 
startup stuff should all be for the bootup scripts. I don't know why one 
would be in etc, but if you've got two separate files, the one in /etc 
is probably going to be ignored (at least I would hope so).




--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] strange httpd error page using apache

2008-08-31 Thread Spiro Harvey, Knossos Networks Ltd

Ric Moore wrote:

I get this error page re-direct while opening a local webpage on my
server, which carries me to yahoo for the error page filled with
adverts. I'd really like to know how this one got here, as I just
installed centOS a few weeks ago. 


http://h.found-not-help.com/search?qo=www.wayward4now.netrn=3D9F6PY8wdYwGYXrg=


I'm really not suicidal enough to click on that link..

what does the A HREF tag on your page that you're clicking on say?


--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Unable to install CentOS 5.2 on New HP Intel Core 2 Quad

2008-08-27 Thread Spiro Harvey, Knossos Networks Ltd

They stop on kernel startup when trying to boot the CentOS 5.2 boot CD.
It is during ACPI.
Fedora 10 Live will not but up either.
I am using Fedora 9 from Live and DVD Install to teach a fall class and it
works fine.


Are the CentOS and fed 10 DVDs of a similar type, and different to the 
DVD you used with fed 9?


Or is your CentOS on CDs?

A common problem I have is that some DVD drives really don't like some 
brands of disc. Some have issues with DVD-R's, some have issues with 
DVD+R's, some seem to be completely random.


ymmv, but if the failing discs are the same brand, it's probably your 
cheapest quickest solution to reburn on a different brand and see if 
that helps.



--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] yum provides on centos 5.2

2008-08-27 Thread Spiro Harvey, Knossos Networks Ltd

Include the path:


Doesn't that defeat the purpose? My favourite use of the whatprovides 
feature of yum is could find things that aren't on my system. I'd prefer 
not to go on a wild path chase. :)


This looks like a bug to me.


On CentOS 5.1 (yum 3.0.5):

# yum provides uname | awk '/i386|noarch/ {print $1}'
uucp.i386
man-pages-de.noarch
man-pages-de.noarch
bash.i386
kdevelop.i386
kdevelop.i386
kdevelop.i386
man-pages-ja.noarch
man-pages-ja.noarch
man-pages-ko.noarch
man-pages-ko.noarch
coreutils.i386
coreutils.i386
python-tools.i386
man-pages-fr.noarch
man-pages-es.noarch
kdewebdev.i386
man-pages-ru.noarch
man-pages-cs.noarch
epic.i386
man-pages.noarch
man-pages.noarch
man-pages.noarch
man-pages-it.noarch
inn.i386
man-pages-pl.noarch
man-pages-pl.noarch
man-pages.noarch
bash.i386
coreutils.i386



on CentOS 5.2 (yum 3.2.8), No Matches found



--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] yum provides on centos 5.2

2008-08-27 Thread Spiro Harvey, Knossos Networks Ltd

Steve Tindall wrote:

Looks like the new “feature� went a bit too far the other way.


Roger that.

From too much to not enough. We must bring balance back to the force.


--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] nash on centos 5.2

2008-08-19 Thread Spiro Harvey, Knossos Networks Ltd

ln -sf /sbin/nash sleep
sleep 5
nash cannot open 5: no such file or directory
Why doesnt that work?


for the same reason that running nash 5 won't work.

the first parameter of nash is expected to be a script name.

if you want to feed sleep 5 into nash, you would give:

sleep 5 | /sbin/nash


man nash is your friend.

--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Re: gcc editor for newbie (Emacs or vim or ?)

2008-08-12 Thread Spiro Harvey, Knossos Networks Ltd

Edlin


aarrgh my eyes...

I don't know who to credit the quote to, but I think it's best described by:

Windows. From the company that brought you edlin.



--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-11 Thread Spiro Harvey, Knossos Networks Ltd

Sean Carolan wrote:

Is there a flag for the df command to get the total disk space used on
all filesystems as one number?  I have a server with a lot of mounted
shares.  I'm looking for a simple way to measure rate of data growth
across all shares as one total value.


You've had a few replies as to the actual command(s) to use to achieve 
this, but what about looking at it from a different perspective?


Is having one number useful for different data volumes? If one is a SQL 
database that remains static, and another is a shared disk used by the 
marketing department and its usage changes by gigs a week, then you're 
not really able to judge when a particular disk is going to need more 
capacity. One overall number has very limited use.


Of course maybe that really is what you're after, in which case all this 
is redundant.. :)


But another way to measure usage would be to feed the data daily (or 
weekly, or hourly, or whatever) into something like RRD Tool. Then it 
will come up with some pretty graphs of usage per disk. Then you can 
also calculate the total as well as another field, but I believe that 
separate data volumes warrant measuring separately.


RRD Tool can be a bit complex to talk to directly, but if you use 
something like Cacti (http://www.cacti.net/), then I think you will get 
more value out of your data. I've never used Cacti myself, but it looks 
like a very nice package. And it makes talking to RRD Tool much easier.


That and you can produce lots of pretty graphs for management that prove 
you need upgrades and more imortantly, *where*. :)



--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Yum

2008-08-05 Thread Spiro Harvey, Knossos Networks Ltd

You'd think that, however there seems to be a growing (or at least
their users are complaining more vocally on irc) number of VPS
providers using a very stripped down version of centos. They ship it
without yum, which would imply that folks are not able to get basic
security updates via the normal route (if at all).


Perhaps it's the high cost of CentOS driving people into the 
competitions' arms. Maybe it's time we looked at dropping the cost, 
especially with the inevitable christmas rush.


--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Ideas for stopping ssh brute force attacks

2008-07-21 Thread Spiro Harvey, Knossos Networks Ltd

iptables -N SSHSCAN
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j SSHSCAN
iptables -A SSHSCAN -m recent --set --name SSH
iptables -A SSHSCAN -m recent --update --seconds 300 --hitcount 3 --name SSH
-j DROP


hey, this is awesome. we're currently filtering log files looking for 
multiple failed connections, then adding them to iptables for a few 
minutes. this is much cleaner. :)


thanks.

--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Spamassassin as root and pyzor

2008-07-20 Thread Spiro Harvey, Knossos Networks Ltd
Ideally I would like a link to a webpage entitled How I learnt to stop 
worrying and run spamass-milter as root.


We've got a few boxen running spamd as non-privileged user, but 
spamassassin milter runs as root with no problems.


On the flip-side to your query, I haven't found anything that states 
spamass milter shouldn't be run as root.


Also, a related question: is it worth installing pyzor, or will 
spamassassin on its own be enough? I ask because pyzor doesn't seem to 
be in any of the main repositories.


Don't know about Pyzor specifically, but we use Vipal's Razor with 
success. Our situation is that we're an ISP, so we like the extra 
checking to be as absolutely sure as possible that we're only rejecting 
real spam. of course a few spams still trickle through but we haven't 
had a single false positive.


--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Understanding iptables

2008-07-13 Thread Spiro Harvey, Knossos Networks Ltd

  Could you post /etc/sysconfig/iptables?
 /etc/sysconfig/iptables doesn't necessarily reflect what is running
 right now, and you can't include the counters with it.

 I'm not interested in the counters  I want to see how the rules are

I think he's trying to tell you that any changes made since the *last* 
write to /etc/sysconfig/iptables won't be reflected in that file. Or 
rather, what if that file has been written to, but not read from? The 
fact remains that iptables -L is more useful because it is a live state.


In fact, I've got a few machines where all my rules are only kept in 
running memory. They're all activated/reactivated/modified using 
scripts. No state is stored on disk.



[snip]
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source   destination
ACCEPT all  --  anywhere anywhere
[/snip]
What are we accepting here?  All packets?  If this is the case then there is 
no need for the rest of the rules in this chain.


depends on the INPUT rule that references this. but yes, once a packet 
has been filtered to get here, then it will be accepted.


see? you can read this output.




--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Understanding iptables

2008-07-10 Thread Spiro Harvey, Knossos Networks Ltd

P.S.: Once again: although it's great that you are digging into the
problem, using iptables, and learning a lot on the process, you should
*REALLY* consider ditching rsh/rlogin and sticking to SSH. I would
consider using rsh/rlogin instead of SSH today about the same as using
gopher instead of the WWW these days (for those of you who still
remember it).


what are you talking about? I'm writing a Tor wrapper that funnels all 
my http requests thru gopher for extra security. It's called Gor. And 
I'm writing it in GW-BASIC!


we don't need no steenkin new fangled tecnomologies.

next you'll be telling me our internets shouldn't use tubes.


--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] share folder as USB mass storage device

2008-07-08 Thread Spiro Harvey, Knossos Networks Ltd

Maybe I'm just being silly here, but I'm wondering if anybody has ever
used their computer for sharing files over USB. That is, the computer
pretends to be a USB mass storage device.
Surely, somebody must have thought of this before :-D


Yes, Apple thought of it years ago. Plug a Mac/laptop to another Mac via 
Firewire (and I think USB too), boot it while holding down the T key 
(I'm pretty sure it's T), and it boots as a slave drive.


This was a standard feature used when you upgraded hardware and wanted 
to migrate your data across. Not sure if it works on Intel Macs, but 
don't see why it wouldn't.


However, this feature also relied on the BIOS. PCs don't have this. And 
if you just plugged two PCs together via USB, each end would be 
connected to a motherboard, or a PCI host card, not an actual device.


I have never seen this done in PC land, and it would probably require 
hardware/BIOS changes before someone implemented this in Linux.



--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Message size rejected

2008-07-03 Thread Spiro Harvey, Knossos Networks Ltd

  SMTP error: 552 5.3.4 Message size exceeds fixed limit
Reporting-MTA: dns; borg2.lydgate.lan
I presume that this is a configurable limit, but I'm not sure where to look.  
Since it says MTA I'm thinking that it's probably postfix.  Can someone 
please tell me what parameter I'm looking for?  Thanks




postfix (main.cf):
message_size_limit=numberOfBytes



sendmail (sendmail.mc):
define(`confMAX_MESSAGE_SIZE', `numberOfBytes')


sendmail will need a 'make' to be run in the conf dir (probably /etc/mail)

--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Re: CentOS 5.2 kernel [2.6.18-92.1.1.el5] crashes on dual-PIII Compaq ProLiant 3000

2008-07-03 Thread Spiro Harvey, Knossos Networks Ltd

Not on this one!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Yes it does. :) That URL has a link to the archives.

--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Can't run a bash script from USB drive

2008-07-03 Thread Spiro Harvey, Knossos Networks Ltd

How can I control this (i.e., allow 'exec' on my USB drive(s))?


either:

mount /media/usb -o remount,exec

or more preferable, add exec into the /etc/fstab entry for your usb 
drive (you might have to create one). It'll look something like:


/media/usb  /dev/sdb1  vfatexec,user0 0



/media/usb is the point you will mount to, and /dev/sdb1 is the actual 
usb device. vfat is the filesystem type, and may be something else if 
you've formatted the stick; but if it's an actual hard drive, it could 
be something like ntfs. man fstab has a list of all the filesystems.


user will let non-root mount it.


--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Re: To upgrade or not

2008-06-25 Thread Spiro Harvey, Knossos Networks Ltd
5.1 is not a different distro than 5.2. If you update 5.1 it becomes 
5.2. You don't go out and say update to 5.2, you just yum update, and 
it becomes 5.2.
Think of it in Windows terms as Centos 5 sp1 (service pack 1) or Centos 
5 sp2.

If you want to stay with 5.1 you no longer get updates.


are you speaking as an official representative of CentOS?



--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Awk help

2008-06-23 Thread Spiro Harvey, Knossos Networks Ltd

I have csvde dump from active directory I process on my postfix mta.
It takes output like this:
CN=Curtis xxx,OU=Domain Users,OU=xxx xxx,DC=xxx-xxx,DC=local,X400:c=US\;a= 
\;p=xxx xxx xxx\;o=Exchange\;s=xxx\;g=xxx\;;SMTP:[EMAIL PROTECTED]
and should return a relay_recipient map in the form of:
[EMAIL PROTECTED] OK
Everything up to the awk is working, it drops the smtp: but its putting OK's 
all over the darn place.
Anyone familiar enough with awk and printf that can suggest why this happens?


you can simplify that line down to:

awk 'BEGIN { FS=: } /(smtp|SMTP)/ { printf %-30sOK\n, $NF }' $1

the -30 will make sure that everything aligns, because with just a tab 
to separate the email addresses, you'll end up with a wonky OK column. 
-30 pads out the first column to 30 characters.


also, I recommend changing the /(smtp|SMTP)/ to just /SMTP/ because if a 
program is producing output like this from AD or LDAP, then the SMTP 
will always be caps. You risk matching other lines in the log file that 
don't match this format.


basically, this script separates a line by colons ':' and prints the 
last field if the line fed to it contains 'smtp' or 'SMTP'. The $NF is 
Number of Fields, so effectively prints the last field.





--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Re: CentOS 5.2 is ***NOT*** here!

2008-06-23 Thread Spiro Harvey, Knossos Networks Ltd

I'm running Centos-5.1 but am a complete Centos newbie.
What is the best way of installing Centos-5.2 ?
Is a fresh installation recommended,
or can one do a yum upgrade?
Or is there any other way of proceeding?


wait for the announcement. all the info will be available at that time.


--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Directory compare

2008-06-22 Thread Spiro Harvey, Knossos Networks Ltd

I have 2 drive sets that are supposed to be identical [I use CentOS 5]:
A: 1.6Tb
B: 1.49Tb
I need to find the differences, any suggestion?


diff will do it.

diff -q /dir-a/ /dir-b/

the -q will just tell you what files are different, not what's different 
inside the files.




--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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


Re: [CentOS] Directory compare

2008-06-22 Thread Spiro Harvey, Knossos Networks Ltd

I would like to do the same among two, several boxes, that is take thier dir
listing to a certain depth, and compare it for differences as an integrity
check that they have the same installation files?


then, maybe run a find to extract all filenames, then feed each one into 
sha1sum or md5sum to get a list of checksums. rinse and repeat on other 
server, then compare the two resulting sets of data.


I can't think of a single tool to do this all rolled into one.


--
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz

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