Searching \ for '[OT]: Help with Linux and UPS' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=help+with+linux
Search entire site for: 'Help with Linux and UPS'.

Exact match. Not showing close matches.
PICList Thread
'[OT]: Help with Linux and UPS'
2004\04\20@160608 by Herbert Graf

picon face
Just bought myself a UPS with Linux support.

I installed the package (called cupsd, which is the identical name of the
printing daemon in Linux...) and it isn't working. :(

The daemon keeps reporting "UPS connection error".

There is very little documentation that I can find with regards to it.
However the readme does state the following:

In order to use the package, you must have an available
serial port.  This serial port should not be running getty or any
other communications software.  The permissions on the serial
port should also be changed to mode 600, to prevent malicious
users from killing the power.
The possible choice is "/dev/ttyS0" or "/dev/ttyS1".

I have it set to ttyS0.

Anyone know how I go about checking (and removing) the "getty or any other
communications software" on this port?

I'm running Redhat 9.0.

Thanks for any help. TTYL

----------------------------------
Herbert's PIC Stuff:
http://repatch.dyndns.org:8383/pic_stuff/

--
http://www.piclist.com hint: To leave the PICList
spam_OUTpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu

2004\04\20@162928 by Alex Harford

flavicon
face
On Tue, Apr 20, 2004 at 04:07:02PM -0400, Herbert Graf wrote:
>
> I installed the package (called cupsd, which is the identical name of the
> printing daemon in Linux...) and it isn't working. :(
>
> The daemon keeps reporting "UPS connection error".
>
> There is very little documentation that I can find with regards to it.
> However the readme does state the following:
>
> Anyone know how I go about checking (and removing) the "getty or any other
> communications software" on this port?

ps ax | grep tty

You should see something like this:

1510 tty1     S      0:00 /sbin/mingetty tty1
1511 tty2     S      0:00 /sbin/mingetty tty2
1512 tty3     S      0:00 /sbin/mingetty tty3
1513 tty4     S      0:00 /sbin/mingetty tty4
1514 tty5     S      0:00 /sbin/mingetty tty5
1515 tty6     S      0:00 /sbin/mingetty tty6
2595 pts/7    S      0:00 grep tty



tty1-6 are the virtual terminals.


You could always connect another computer to that serial port and see what the
daemon is sending over the serial port.

--
Alex Harford
http://www.alexharford.com
.....alex-spamKILLspamspam@spam@alexharford.com       Tel: (604) 738-5674

--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestspamKILLspammitvma.mit.edu

2004\04\20@164804 by cisco J. A. Ares

flavicon
face
I don't know RH in details, but if you didn't change any basic
configuration, there should be no program running on a serial port.

But you can check it with "ps -A" . This will show you the gettys on
tty0 through tty6 and nothing should be on ttyS0 or ttyS1. If there is
something, kill it with the number of the process shown with "ps -A" .
You can get a short list with "ps -A | grep tty".

If you find something running on any serial, look into files
/etc/rc.local and more probably on /etc/inittab for something getting
started by the "init" process.

You can also rename the package, but you'll need to be *very* cautious.
I mean it. You would have to rename the executables and the init
scripts, including the names of the executables inside those scripts. As
Linux cares for upper/lower case, you can simply change one or two
letters for capitals.

The scripts are located in  /etc/rc.d/init.d/  or /etc/init.d/  and
there should be symbolic links in /etc/rc.d/rcX.d with X from 1 to 5 or
6 that also needs to be erased and generated again for the new file names.

Too weird, though.

BTW, have you connected the serial cable?  ;-)  just kidding!!!

Hope this helps
Francisco


Herbert Graf wrote:

{Quote hidden}

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspam_OUTspamTakeThisOuTmitvma.mit.edu

2004\04\20@180130 by Sergio Masci

picon face
I don't know redhat specifics but...

you may have /dev/modem or /dev/mouse symbolicly linked to /dev/ttyS0 or
/dev/ttyS1

Also IIRC /dev/cua0 and /dev/cua1 are special cases of /dev/ttyS0 and /dev/ttyS1
so these (cua) devices could be in use which might screw up something else
trying to use S0 and S1.

If I were in your position I would search the startup scripts (rc.* - probably
hanging off /etc) for references to all the above named devices.

you could also try looking for other symbolic links to your serial ports, try
something like

       ls -al /dev | grep ttyS | less

Regards
Sergio Masci


{Original Message removed}

2004\04\20@185003 by Robert L Cochran

flavicon
face
What distribution are you using? What kernel version are you using?

Bob Cochran


Herbert Graf wrote:

{Quote hidden}

--
Bob Cochran
Greenbelt, Maryland, USA
http://greenbeltcomputer.biz/

--
http://www.piclist.com hint: To leave the PICList
@spam@piclist-unsubscribe-requestKILLspamspammitvma.mit.edu

2004\04\20@203738 by Herbert Graf

flavicon
face
> What distribution are you using? What kernel version are you using?
>
> Bob Cochran

       Thanks to all for the help. Turns out the port on the computer was bad,
switched things around and all is working fine now. Thanks again. TTYL

----------------------------------
Herbert's PIC Stuff:
http://repatch.dyndns.org:8383/pic_stuff/

--
http://www.piclist.com hint: To leave the PICList
KILLspampiclist-unsubscribe-requestKILLspamspammitvma.mit.edu

2004\04\21@042631 by Hulatt, Jon

flavicon
face
You've been helped with the getty problem, so I won't comment on that. But
I'd recommend that you junk the software that came with the UPS, and use new
stuff:- read the HOWTO: http://www.linux.com/howtos/UPS-HOWTO/index.shtml

> {Original Message removed}

2004\04\21@200315 by Robert L Cochran

flavicon
face
Written by Eric Raymond, too.

Bob

Hulatt, Jon wrote:

> You've been helped with the getty problem, so I won't comment on that. But
> I'd recommend that you junk the software that came with the UPS, and use new
> stuff:- read the HOWTO: http://www.linux.com/howtos/UPS-HOWTO/index.shtml
>
>
>>{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2004 , 2005 only
- Today
- New search...