Re: [CentOS] For you old-timers, an RS232 question about data rate confirmation.

2009-09-01 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John R Pierce wrote:

> I'd replace /dev/null with large_file_copy, then run md5sum on both to 
> confirm things are working reliably.

John

Nice tweak!

Thanks -- I'll make that change.

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFKnYdaCFu3bIiwtTARArbVAJ92BSuqzftza6qRWLH+fQdb6Am1igCfVE11
25Yk6xqqBsqdnvtMF1D+bdw=
=H5i4
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] For you old-timers, an RS232 question about data rate confirmation.

2009-09-01 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

nate wrote:
> Barry L. Kline wrote:
> 
>> Short of writing my own program, can anyone point me to a good tool for
>> that purpose.   yum search RS232 and yum search serial haven't provided
>> what I'm looking for and I can't imagine that this isn't already done.
> 
> For writing have you tried dd ?

I used dd to create the file I'm sending, so that every test is starting
 with the same data and length.

Thanks!

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFKnYczCFu3bIiwtTARArJ5AJ9RmBwjuydzvgYU91VFXVrikfkFvgCfZfoA
xHWFg3q0nNK1G2aVVirG5GA=
=qsq/
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] For you old-timers, an RS232 question about data rate confirmation.

2009-09-01 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

R P Herrold wrote:

> As I understand the problem it may be that the signal could 
> degrade from whatever max data rate the circuit is rated for. 
> I am not aware of a resampling routine in any recent kit that 
> CentOS ships

Hi Russ.

This RF-WAN is a 450 MHz data radio that alleges to get 12.5KBps.  They
are connected such that the most appropriate allegory would be a number
of TCP/IP hosts connected to a hub (not a switch).

What I need to verify is the kind of throughput I'm actually seeing and
Stephen's solution may give me what I want.   I know how much data is
going to be crossing this, I just need to find out what kind of time its
going to take.

Thanks!

Barry



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFKnYVkCFu3bIiwtTARAsbdAJ4pEDnglhrP2X6AED4+Uayp+cqs1QCgloyW
bxW9Cs/6Ux0pssF0IMpwnsY=
=9ILh
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] For you old-timers, an RS232 question about data rate confirmation.

2009-09-01 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stephen Harris wrote:

> Since you have loopback adapter connected you need to read/write from
> the device at the same time.  So...  first attempt:
>   cat  /dev/null &
>   time cat large_file > /dev/ttyr00
> 
> Been a long time since I played with serial comms, but that'd be my first
> attempt.
> 
> Second attempt would be to make a full serial connection to another machine
> (port on the same machine?) and use "ckermit" to transfer a file.
> 

Thanks  Stephen.

Your first attempt was what I was trying to accomplish.   The second
attempt may be what I next try.

Barry

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFKnYSACFu3bIiwtTARAk4eAJ470twpUOLlja+TA55HtpRVqSrsngCfYgSp
eL7Oi9q0DO8vVMeml4khqM0=
=JFxg
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] For you old-timers, an RS232 question about data rate confirmation.

2009-09-01 Thread Barry L. Kline
Hello all.

This is a question that I should be able to answer, but the old grey
cells aren't working. My Google-Fu must not be up to snuff, either.

I have a MOXA IP-RS232 converter that I'm going to be using over an RF
WAN and I need to confirm the actual data rate that I'll be able to
achieve.  I have the drivers loaded (/dev/ttyr00) and a loopback plug on
the end of the device.  I am able to confirm that it works fine with
minicom, but I'd like to be able to have a program read/write the device
with a largish file and give me a throughput rating.

Short of writing my own program, can anyone point me to a good tool for
that purpose.   yum search RS232 and yum search serial haven't provided
what I'm looking for and I can't imagine that this isn't already done.

Thanks!

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


Re: [CentOS] advice needed about "554 Too many recipients"

2009-08-17 Thread Barry L. Kline
John R Pierce wrote:

> I've setup Mailman for announce-only lists for several people and 
> they've generally been quite happy with it.   You configure it as a 
> moderated list and only allow the pre-approved moderators to send to the 
> list, and you configure the list so replies go back to a predetermined 
> address (often I create an alias that forwards to a few people).Once 
> you've initially set it up, all list management is done with a web 
> interface.   Mailman handles double-opt-in subscriptions so users can 
> add and remove themselves from the list...  Tweak the listinfo and 
> footer text to suit the use, and you're off and running.

John, I have to agree with you.   I have mailman serving in this
capacity for quite a few lists.   It works great!

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


Re: [CentOS] QuickBooks Enterprise DB Server

2009-04-22 Thread Barry L. Kline
Joseph L. Casale wrote:

> I am getting there, trust me:) I can't believe support! Just useless.
> Their forums are filled with equally upset people, but one of the list
> members has contacted me and hopefully I can see what he did right!
> 
> Its working for him.

If you find out please tell us what the secret is.  I'd love to know.

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


Re: [CentOS] QuickBooks Enterprise DB Server

2009-04-22 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joseph L. Casale wrote:
> Anyone running this POS on CentOS and can spare some info? Support
> is useless, and it's just not working:)I am not getting a qbdir.dat
> file created, and the error log is, well, empty!

We threw in the towel on this POS and just purchased a full XP license
to run under VMWare to host it.

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFJ7zfwCFu3bIiwtTARAqM4AKCYfjkSovl2MpYdSWqOp9YYwEUlLwCeOB18
nbtTFsPO2R76/wr38yx0wNc=
=zkcP
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Getting ready for CentOS 5.4

2009-03-23 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

mbneto wrote:

> 
> So, if this is really the case I'd suggest making some sort of campaign
> to raise money and provide the necessary resources in order to speed
> things up.  If RH maintains the 4-6 month schedule it can happen again
> in less than three months.

There is already a "donate" link on the centos.org web page.  You could
easily start that campaign and herd people to the site to make donations.

Barry

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFJx3oTCFu3bIiwtTARAi3PAJ9PYTFQNhxKitW3hLgm35fofnA4iwCfeWt1
sz1OPeShDExlG5HryNqrpJY=
=ZXKd
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Anyone successfully using CentOS 5 and a Keyspan USA-19HS USB-Serial Adapter?

2009-02-26 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I occasionally need to connect to a serial device and in the past have
used minicom and the Keyspan USA-19HS adapter.  It has worked
flawlessly.  Once I upgraded, I could never seem to make this work.  The
kernel recognizes the adapter, it gets properly assigned as
/dev/ttyUSB0, and minicom seems to transmit data to it (as evidenced by
the green LED on the device that flashes whenever I hit a keystroke.

The problem is, it never returns any data.   If I use VMWare to boot up
WinXP I can access anything connected to the adapter, but it grinds me
to have to boot up 'doze for that purpose.

This morning I ran into the problem again and did some googling to see
anyone else had this problem.  I found this entry in
http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/old/patch-2.6.20-git4.log



Date:   Wed Jan 3 15:36:25 2007 +0100

fix for bugzilla #7544 (keyspan USB-to-serial converter)

At least the Keyspan USA-19HS USB-to-serial converter supports
two different configurations, one where the input endpoints
have interrupt transfer type and one where they are bulk endpoints.
The default UHCI configuration uses the interrupt input endpoints.
The keyspan driver, OTOH, assumes that the device has only bulk
endpoints (all URBs are initialized by calling usb_fill_bulk_urb
in keyspan.c/ keyspan_setup_urb). This causes the interval field
of the input URBs to have a value of zero instead of one, which
'accidentally' worked with Linux at least up to 2.6.17.11 but
stopped to with 2.6.18, which changed the UHCI support code handling
URBs for interrupt endpoints. The patch below modifies to driver to
initialize its input URBs either as interrupt or as bulk URBs,
depending on the transfertype contained in the associated endpoint
descriptor (only tested with the default configuration) enabling
the driver to again receive data from the serial converter.

Greg K-H reworked the patch.

Signed-off-by: Rainer Weikusat 
Signed-off-by: Greg Kroah-Hartman 


As you'll note, the keyspan stopped working at 2.6.18, which is the
kernel used by CentOS 5.   My question is whether or not this bug still
exists in CentOS5 or if someone is successfully using the Keyspan with
CentOS5.

Thanks!

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFJptFUCFu3bIiwtTARAl/sAJ4uWLxJiyCJmHDk5JzH4xZ0l5BTigCdGOgu
U2mbgLck+HC/tUjQBqxf5Yk=
=JFdo
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script

2008-09-30 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

MHR wrote:

> Second, that won't work.  Sed does not perform on files in place - its
> output is sent to stdout unless it is redirected, and you can't
> redirect it back to the original file.  To do something this way,
> you'd need a script that replaced the input file and used 'sed' to
> generate the new one (and then the script would have to rename it).

Au contraire:

- From the sed man page:

   -i[SUFFIX], --in-place[=SUFFIX]

  edit files in place (makes backup if extension supplied)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFI4rJJCFu3bIiwtTARArCgAJ9Ov/hR5rZJZxn3t2vqqJYwcCHztQCgldo+
aqaYmuuDKk/eWwTR/8f5qPg=
=IkKM
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mysql data

2008-03-31 Thread Barry L. Kline

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ray Leventhal wrote:

| Where does mysql actually store databases and tables in the filesystem?

If you're asking because you're concerned about backup/restore then
you'll want to forget about the location of the data files and instead
use the mysqldump command to make your backups.

If you're interested from the capacity planning standpoint then the
answer is that CentOS configures MySQL to live in the /var/lib/mysql
directory.

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFH8VnsCFu3bIiwtTARAqr6AJ4+4ebIBElzscaAv4V2lzvWlawSqQCfW3pz
mpjjqFcZM08jrOS6GK6r4Ho=
=7vI8
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] MySQL 4.1 on Centos 5 ?

2008-03-13 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sergej Kandyla wrote:
> Hi All,
> 
> 
> Could anyone tell me, how to correctly install MySQL4.1 on Centos 5 ?
> By default Centos 5 comes with mysql5… If I will compile mysql4 from
> sources to separate prefix, some features may be unavailable (unix
> sockets for example).
> 
> I’m moving some critical application (online booking) based on java,
> tomcat5, mysql4.1 from old server fedora 4 to new server running Centos
> 5. So, I don’t want update mysql to new version this time.
> 

In the time it takes you to figure out how to cleanly install MySQL 4.1
on CentOS 5 you could just use the included MySQL 5 and do some
extensive tests to ensure that nothing breaks.  You're going to have to
do the testing for the 4.1 on CentOS so you may as well do the upgrade
and be done with it, assuming that you ignore the advice to load CentOS
4 -- which already has the testing for MySQL 4.1 done.

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFH2YlMCFu3bIiwtTARAi7QAJ4/M8SBUsKvA5cL9eEMqsq34MPTZQCcCKQJ
4a6U7rM8uEEFiL2v+kFJcPw=
=EH6p
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] crypto, readline and zlib libraries - Postgres install

2008-03-03 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Karl Denninger wrote:

> That doesn't help (I'm trying to built it from source)
> 
> Without readline, zlib and the crypto libraries you can't build the full
> 8.3 release... and installing 8.1 as a distro doesn't get you the
> libraries you need to build.
> 

You may want to check out http://yum.pgsqlrpms.org/ to see if they have
compiled in everything that you need.  You can get 8.3 for CentOS 4/5 in
a repository that enables you to manage PG updates via yum.

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFHzHyzCFu3bIiwtTARAosTAJ4k/CflS2c6EssCmqay6w79JukWqgCeJh0Y
xlVeSpIrHAZ10y40MK6Zpts=
=6Sgr
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Set hardware clock manually

2008-02-07 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joseph L. Casale wrote:
> I can't reboot a server to set the hardware clock to UTC time, but CentOS was 
> installed with the assumption that the PC was running UTC.
> Is it possible to update the hardware clock to the right time and therefore 
> allow CentOS to maintain the right time without rebooting? I am hoping to use 
> this route for consistency versus changing how CentOS interprets the time so 
> all servers are the same.
> 

rdate -s   e.g.   rdate -s clock.psu.edu

hwclock --systohc

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFHqz6MCFu3bIiwtTARAr7QAJ415HJSabLjIHMs7CGJ4sQCaLu9hQCeO+Bg
3Na0TL0lgi3DUlTmc+M3SII=
=zlaZ
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mounting & partitioning Seagate FreeAgent external HD

2008-01-02 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim McGeary wrote:

> I can see the device in my /proc/bus/usb/devices file, but fdisk -l
> doesn't show it at all.  I was trying to mount and partition it using
> Webmin, but I can't figure out the device name I need to give it to
> mount and partition it.  How is the best way to figure that out?  This
> particular server is running CentOS 4.

Unplug the drive.
from root:   tail -f /var/log/messages

Now plug in the drive and watch the messages scroll by.  That'll tell
you very easily what the drive assignment is.

Barry

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFHfGmYCFu3bIiwtTARAlKHAJ9xfgxa/p5R/2oT/8ZsTTs8rFc53gCfbad9
VYhaPdFzEnLTbhaXidvgh4I=
=J90j
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Scripting a directory change on CentOS

2007-07-30 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

James B. Byrne wrote:
> This is probably a FAQ item but despite searching extensively with google
> I am unable to find an answerer to this question.  Perhaps I am using the
> wrong words. In any case, at the risk of inducing some mirth at my
> ignorance, how can one script a cd command so that that the user remains
> in that directory when the script exits?
> 

pushd  newdir  # at the beginning of the script
popd   # before exiting


Alternately:

curdir=$(pwd)  # at the beginning of the script
cd $curdir # before exiting


For further information (and to find a list of the really useful
features of the  BASH shell) do:   man bash

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFGrhn3CFu3bIiwtTARAmv6AJ4kb6VG4HSyj/aChZgzJ9M64PW8SwCfYHV6
kJhMc6RYuZVW7JXSpYOPczg=
=I0qY
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] migrating users from linux to centos

2007-07-24 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

simon wrote:
> Dear All,
> 
> I have been running linux 9 server as a dns and mail server and is workin
> fine..
> 
> i want to install CENTOS 5 with all the latest mail server software and
> bind as well as all the libraries on another machine whic is already done
> 
> also the data is backed up and will be tranferred.
> 
> 
> but i would like to know
> 
> i have about existing 100 mail users
> 
> how could i tranfer these usernames and passwrd to the new CENtos 5 server ..
> 
> if i copy the /etc/passwd from my linux server it gonna overite my centos5
> /etc/passwd file as there r new users n also new groups create when i
> installed centos5 n software
> also i see that the /etc/shadow has only read permisson for root so cant
> be over written
> 
> is there a way i cd possiblly have the existing users with thier password
> on centos5 so i dont have to ask them for their passwords n create all
> users again
> 

Create copies of /etc/{passwd,shadow,group} from the original system.
Edit the copies to EXCLUDE existing user/groups.
Append the remaining entries to the existing file.

e.g.:

cp /etc/passwd /etc/passwd.old   # from the old system
vim passwd.old  (and edit out the existing entries)
copy passwd.old   to the new system
cat passwd.old  >> /etc/passwd   (notice the '>>')

Repeat for group & shadow.

Barry

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFGpkkLCFu3bIiwtTARAmBqAJ9vr7WLzUbHsTVlfjQOHNgkxY5o8QCgm7UE
gwploWjfp54KlMQ1OF7rkYQ=
=NMBd
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Migration help please - moving OS to a different LVM partition

2007-06-19 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Robert Moskowitz wrote:
> I have set up a migration between two drives.  fIrst I got Centos 5
> working how I wanted on this drive, then set about copying it to another
> drive.

Hi Robert.

It's a little late now, but the way I'd do this kind of thing is to
install on the first drive, creating a partition for /boot and a
partition for LVM under which I'd carve up into my other partitions.

Once I have installed to the first drive, I would add the second drive,
and partition it so that there is a partition for /boot, which you'd
then copy the data from the primary /boot to this one and then use
'grub' to make the second drive bootable.

Next, create a physical volume on the new disk's LVM partition and then
add it into the existing volume group.  Next, use the pvmove command to
move the data from the pv on the first drive to the pv on the second
drive.  Once you've done that, you can pvremove the first pv (from the
first drive) from the volume group.  At this point, you should have all
of your data on the second drive.  Double-check that the LABEL on the
/boot partition is correct and then shut down the computer.  Remove the
first drive and reboot.

I'm writing this off the top of my head (having done is a couple of
months ago to upgrade my laptop hard drive), and I may be missing some
of the LVM incantations, but this should be close and get you started,
anyway.

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFGeEb3CFu3bIiwtTARAuLvAKCa2i48vv3mr1MiDL2poZuClwKbXwCfWUCQ
K9oA8Oj/wLa78/W1Wmm4Xa4=
=8+uI
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos