Linux-Misc Digest #245, Volume #25 Wed, 26 Jul 00 21:13:02 EDT
Contents:
Re: Newbie ->Mysql & perl ("Andrew N. McGuire ")
prob with Part Magic for Omnibook, alternatives. (Uwe Brauer)
Re: UPS with serial port (David C.)
Re: Linux & free ISPs ("G Pollack")
Re: Automating Linux Driver/Module Compilation Using GNU (Chem-R-Us)
Re: Which IDE linux C programers use? (Johan Kullstam)
Re: Handling Interrupts on LINUX (Michel Catudal)
Re: This Blackbox user needs help (Andrew Purugganan)
Re: problems running Linux Mandrake in GUI (Andrew Purugganan)
Re: Transparent desktop icons (Andrew Purugganan)
Building a Linux Server from scratch: Experiences? (David Steuber)
Re: Linux verwendet UNIX 4.4 BSD (SUN) und SVR4 (AT&T) - kostenlos? (Smitty)
Re: 'Possible to remotely run root through telnet? (Michel Catudal)
Re: MP3's skip when I perform other activities (Gordon Gilbert)
----------------------------------------------------------------------------
From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: Newbie ->Mysql & perl
Date: Wed, 26 Jul 2000 18:59:00 -0500
On Wed, 26 Jul 2000, INVALIDINVALID_ADDRESS quoth:
][ Hello, I have a bit of an issue with Mysql running on Redhat 6.1. I have
][ installed the Mysql database and I belive I have installed the perl mods
][ and DBI mods for it. Below is a script I have written which should just
][ connect and query. This might be the issue it self, since I am very new
][ to writing perl scripts.
So, would this have changed if you were running your script on FreeBSD,
or Solaris. This is a Perl/MySQL issue, and these areas have their own
NG's.
][ #!/usr/bin/perl -w
'-w', good!
][ use Mysql;
use strict; # Good practice.
][ $database-qasrip
][ $dbh = Mysql->Connect
The above two statements are not separated. This will not compile.
';' is the statement separator.
][ $dbh->SelectDB($database);
][ $sth = $dbh->Query("SELECT * FROM info");
][
][ when I run it I get the errors below, does someone know how to fix this
][ ?
][
][ ####################################
][ Can't load
][ '/usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBD/mysql/mysql.so' for
][ module DBD::mysql:
][ /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBD/mysql/mysql.so:
][ undefined symbol: uncompress at
][ /usr/lib/perl5/5.00503/i386-linux/DynaLoader.pm line 169.
][
][ at /usr/lib/perl5/site_perl/5.005/i386-linux/Mysql.pm line 13
][ BEGIN failed--compilation aborted at ./connect2.pl line 3.
Do you even have the DBI/DBD modules installed? Were they installed
properly. I am not a DB programmer, but I would check these. Try
posting your question to comp.lang.perl.misc, after correcting your
code, and searching the perlfaq, Deja, and Google.
PS. If your find that you are missing modules, CPAN is the place to go!
HTH && HAND,
anm
--
/*------------------------------------------------------------------------.
| Andrew N. McGuire |
| [EMAIL PROTECTED] |
| perl -le'print map?"(.*)"?&&($_=$1)&&s](\w+)]\u$1]g&&$_=>`perldoc -qj`' |
`------------------------------------------------------------------------*/
------------------------------
From: Uwe Brauer <[EMAIL PROTECTED]>
Subject: prob with Part Magic for Omnibook, alternatives.
Date: 26 Jul 2000 18:58:14 +0000
Hello
So far I have installed Linux on various PC clones and a Dell
Notebook. When trying a HP Omnibook I was faced with the following
problem. When executing partition Magic in order to part the hard
disk I got an error Message: error 255 in Partition table.
Indeed MS fdisk showed me 2 partitions. The first small one without a
format and the second one with FAT32.
Now I now that for example Compaq Notebook have a special partition for
their configuration files and it seems that this Omnibook has the same
features. However I am surprised that this partition has no format.
Now does anybody know what to do with this particular problem: are
there other partitions programs around which can deal with such a situation?
Thanks in advance
Uwe Brauer
------------------------------
From: [EMAIL PROTECTED] (David C.)
Crossposted-To: comp.os.linux.hardware
Subject: Re: UPS with serial port
Date: 26 Jul 2000 20:22:21 -0400
David Steuber <[EMAIL PROTECTED]> writes:
>
> I don't understand this. I thought there were two types of RS-232
> cable: a straight cable and a null-modem cable. What is APC doing
> different?
The APC interface, although it is 9-pins and connects to a PC serial
port, is not really an RS-232 port.
The basic signalling (which the BackUPS and BackUPS Pro models use) is
done by setting and clearing the various out-of-band signal wires (like
DTR, CTS, etc.)
I think the advanced signalling (used by SmartUPS) actually uses the
serial tx/rx lines to transfer real data, but I'm not certain of that.
Regardless, the two devices require different cables.
I still don't understand why different operating systems also require
different cables.
-- David
------------------------------
From: "G Pollack" <[EMAIL PROTECTED]>
Subject: Re: Linux & free ISPs
Date: Thu, 27 Jul 2000 00:44:27 GMT
In article <[EMAIL PROTECTED]>, Robert Heller
<[EMAIL PROTECTED]> wrote:
> Netzero just uses normal PPP. You need to run the silly MS-Windows
> sign-up hack, but once you have 'signed up', you can use a normal Linux
> PPP connection to hook up with Netzero. Yes, it bypasses their ads bar,
> but I have not noticed that they know, care, or check to make sure your
> are running their ads bar hack -- I use Netzero from time to time
> (when my local ISP is busy, etc.) -- I friend set me up (I don't have
> MS-Windows myself).
>
> m> m> m> MST m>
>
>
I've set up a netzero account under windows (access via a lan), but when I
try to log in under linux through a dial-up connection (using minicom) my
password isn't accepted. Could you provide some specifics about how you
connect?
Thanks
------------------------------
Date: Wed, 26 Jul 2000 17:52:08 -0700
From: Chem-R-Us <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions
Subject: Re: Automating Linux Driver/Module Compilation Using GNU
Robert Young wrote:
>
> Hi,
>
> Does anyone know how to write the GNU automake (Makefile.am) script to just
> compile a source code (C programs) as a linux driver/module? Here is the
> scenario:
>From /usr/doc/automake-1.4/README:
: Automake has a page on the web. See:
:
: http://www.gnu.org/software/automake/
:
: Mail suggestions and bug reports to [EMAIL PROTECTED]
--
Chem-R-Us
------------------------------
Subject: Re: Which IDE linux C programers use?
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: Thu, 27 Jul 2000 00:53:25 GMT
Tomislav Nakic-Alfirevic <[EMAIL PROTECTED]> writes:
> Jan Schaumann <[EMAIL PROTECTED]> wrote:
> > On Wed, 26 Jul 2000 18:48:16 +0200, Luis Yanes <[EMAIL PROTECTED]> wrote:
>
> > I only know Glade and KDevelop as compelte IDE's, but many would consider
> > (X)Emacs and/or vi(m) as alternatives.
>
> > -Jan
>
> Offtopic, has anyone ever managed to put a breakpoint in a program and make
> the compiler acctually stop there (in KDevelop)?
the compiler? #error can stop the c pre-processor. a major syntax
error should halt the compiler itself.
> I tried with KDevelop 1.1, if I'm not mistaken. I'm not the only one who
> stumbled upon this...glitch?
i am not sure what you are asking for.
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
Don't Fear the Penguin!
------------------------------
From: Michel Catudal <[EMAIL PROTECTED]>
Subject: Re: Handling Interrupts on LINUX
Date: 26 Jul 2000 19:54:05 -0500
[EMAIL PROTECTED] a �crit :
>
> Hi,
> I've got an application which has an acquisition board (with 48 digital isolated
>inputs) that'll be used for sampling
> sensors status. This polling shall be done in every exact 2ms.
> I believe there's two possibilities to do so: 1) use the CPU clock to generate an
>interruption; and 2) to use the trigger interruption
> of the data acquisition board itself (but I don't know how to do Linux identify an
>interruption request in this situation).
> QUESTIONS: 1)Could you please help me if you know how can it be done?
> 2) Where shall I find relevant informations for that, such as a source
>code example or something like that???
> 3)Could you indicate me some good discussion list in order to find some
>valuable informations?
>
I think that you must write a device driver to use interrupts. If you don't wish to do
that you will have to
run the app as root or get root privileges. The reason is that you can't access the
hardware without root privileges.
If you keep in mind that an io access takes 1 uSec you can make a nice wait loop that
will guaranty access in that
time period. You have to remember that linux is not real time and using the system
delay will not give you short
timings.
For example, I found an Atmel IC programmer on the net. It would take 3 to 4 minutes
to program an AT90S8535.
I changed it a bit and it takes 30 Secs now, which is pretty good considering that my
rom based version with
an AT90S8515 takes 17Secs. The major change was to switch from system timings to short
loops using the knowledge
of how long a io cyle is. If you are interested in seeing that code let me know by
EMAIL and I will send it to you.
--
Vous en avez plein l'casse du plantage avec Ti-Mou?
C'est l'temps d'essayer Linux
http://www.netonecom.net/~bbcat/
We have software, food, music, news, search,
history, electronics and genealogy pages.
------------------------------
From: [EMAIL PROTECTED] (Andrew Purugganan)
Subject: Re: This Blackbox user needs help
Date: 27 Jul 2000 00:49:03 GMT
John David Bowden ([EMAIL PROTECTED]) wrote:
[ Sounds like an old version of bbpager. What versions of bbpager/blackbox
[ are you using?
blackbox at 0.60.3-2
bbpager at 0.2.8-1 binary (previously 0.1.6-1)
think I installed it wrong, I attempted only a -replacefiles not an
-erase of the previous version
--
jazz
Registered linux user no. 164098 +--+--+--+ Litestep user no. 386
Doesn't it bother you, that we have to search for intelligent life
--- OUT THERE??
------------------------------
From: [EMAIL PROTECTED] (Andrew Purugganan)
Subject: Re: problems running Linux Mandrake in GUI
Date: 27 Jul 2000 00:53:45 GMT
[EMAIL PROTECTED] wrote:
[ thing again. After the reboot i came up in the X interface and even i
[ rebooted the system once and came up fine.. The problem started when i
[ shut down the system. Later when i turned on my computer it didnt go to
[ the X interface but in the console. I tried giving all types of commands
[ and still would give me the error message. Can somebody help me? I'm
What's the error message?
And how did you shut off the system?
Also try http://www.mandrakeuser.org they have a search utility for
common questions
--
jazz
Registered linux user no. 164098 +--+--+--+ Litestep user no. 386
Doesn't it bother you, that we have to search for intelligent life
--- OUT THERE??
------------------------------
From: [EMAIL PROTECTED] (Andrew Purugganan)
Subject: Re: Transparent desktop icons
Date: 27 Jul 2000 00:44:33 GMT
James McIntyre ([EMAIL PROTECTED]) wrote:
[ How do I make my dektop icons trasnparent?
for GNOME and KDE it's just a matter of going to the Control Center and
Display Properties and checking 'transparent icons'
So what's your window manager
--
jazz
Registered linux user no. 164098 +--+--+--+ Litestep user no. 386
Doesn't it bother you, that we have to search for intelligent life
--- OUT THERE??
------------------------------
Crossposted-To: comp.os.linux.hardware
Subject: Building a Linux Server from scratch: Experiences?
From: David Steuber <[EMAIL PROTECTED]>
Date: Thu, 27 Jul 2000 01:00:04 GMT
When the FedEx guy gets here with my CPU, I will finally have all the
hardware for a complete computer. This is my first go at building my
own computer from scratch. It's mission: to serve HTTP connections
with Apache and run a smallish database with PostgreSQL. The web
pages will contain dynamic content using mod_perl and PostgreSQL. For
remote configuration and programming, I will be using SSH.
But this post is about the hardware side of things.
I have been in the Intel world ever since the 386 came out. All my
computers have been pre-built by some other manufacture. The two
computers I have running now on a home LAN are both made by Gateway
2000. Since getting my first Gateway 2K, I have gone from a solid
Windows user to a Linux zelot. It just happened. Now I am building a
server that I am hoping will be able to handle traffic as high as 1000
page views per hour. I don't think I will see that sort of traffic
for a while though. When I do reach that level, perhaps I will be
able to add more hardware.
My first instinct was to look for a pre-built system. That is the
easiest thing to do. VA Linux was attractive to me because they seem
to have good prices and are pre-configured with Linux. There is no
Windows tax with their systems, unlike with GW2K, Dell, and others.
I speced out a system for $855 which was about as much as I wanted to
pay for the box. Then a friend of mine convinced me that I could do
much better if I built my own. I decided to give it a go. The
possiblity of saving money was very attractive to me. All I had to do
was make sure I bought Linux friendly hardware.
Being new to the build your own PC game, I looked around the Internet
for a few web sites that tell you how to do it. The ones with the
most basic tutorials were well out of date. When some site talks
about a hot new Pentium processor instead of the more affordable 486,
you know time has passed since the author put the page together. A
lot of time. After all, one human year is about 70 computer years.
I looked around at tomshardware.com until my eyes popped out. I could
hear things flying over my head at warp speed. I checked out
pricewatch.com for hardware sources. Eventually, I made my
selections. I choose two vendors. I would have gone with just one,
and perhaps that would have been better. I don't know. All I know is
I wanted to keep the shipping charges down so that they wouldn't wipe
out any savings in hardware cost. I also ended up going with a system
that had a bit more iron in it than the one speced out on the VA Linux
site.
>From the few things I picked up on tomshardware.com, with my Intel
bias still strongly rooted in place, I settled on a Socket 370 board.
A board that while listed by Abit, was apparantly already obsolete. I
ended up ordering the following board:
http://www.abit-usa.com/english/product/vh6.htm
The one that the vendor said was no longer available was the ZH6.
I also started trying to get the 500Mhz Celeron FC-PGA Socket 370
CPU. It was cheaper than the 500Mhz PPGA version. At the time, I had
no clue what the difference was. Well, the CPUs were something that
liked to suddenly be no longer available. I had started trying to get
the ZH6 with 500 Mhz Celeron FC-PGA only to be told that the PPGA was
the only fit for that board. Fine. Oh, but the board is no longer
available. How about the VH6? It also works with the FC-PGA. The
CPU is cheaper, but the board costs a bit more. Total increase in
cost worked out to $12. Fine. But the 500Mhz Celeron isn't available
anymore. How about the 533? Ok. While I'm at it, I order the heat
sink with fan a 128MB DIMM, and an ATI 4MB AGP video card, the
cheapest they had.
The stuff arrives, but it turns out that the CPU is back ordered.
WTF? Naturally I am quite pissed. The stuff was in stock when I
ordered it. I call to find out that they won't be getting any more
533s for a while. I rant and rave for a bit and end up being talked
into a 566 for another $10. Now, as I am typing this, the FedEx guy
arrives. Does he have my CPU? The invoice says yes. The box says
no. Inside is a Tyan S1834 Tiger 133 motherboard with dual CPU slot 1
sockets. No CPU. Well, at least I can hold these people hostage
now. I suspect some other customer is pissed at getting a CPU instead
of a motherboard!
I'll start naming names on my web page when I get everything up and
running. Maybe I should say if I get everything up and running.
Another problem I had was with the UDMA/66 (AKA Utral ATA/66 IDE)
ribbon cable that comes with the board. One of the wires was cut. I
needed another cable anyway as I wasn't going to hook the HD and
CD-ROM to the same controller, but it turns out that CompUSA likes to
charge about 4x wholesale on these little items. When I called the
vendor to complain about this, I was transfered to customer service
who cut me off.
These people are giving me a real headache! I will get satisfaction
now that I have a hostage. Come to think of it, I can get them for
credit card fraud now that they charged me for something I did not
receive. I think they will be very receptive to my demands for
satisfaction as all I want is the CPU I asked for. And a refund on
the cable. The price *I* paid for the replacement. I'll give them
back the defective one.
The things I got from the other vendor were a 40GB Maxtor IDE drive, a
CD-ROM (so I could load linux and maybe use it for other stuff), a
floppy drive, just in case I need it, and a NIC. They hit me a bit
hard on the shipping.
I bought a computer case with 250w power supply localy. I wanted to
see what I was getting and not be killed by shipping charges. It's a
nice box, all steel except for the front, made by A Open. Anyone
heard of them? Anyway, the motherboard's mounting holes lined up with
the studs reasonably well so that I could use six screws to secure it
in place. All the components are easy to access when the damn ribbon
cables aren't in the way. The box wasn't exactly cheap, but it wasn't
outrageously priced either. After PA sales tax of 6% it came out to
$90.10. As long as the ATX formfactor is in use, that box will be
useful.
At this point in time, I have speced a system that is a bit more
powerful than the one from VA Linux. I have saved very little money.
I have incurred some frustration to make up for that. On top of all
that, I recently found this on Tom's Hardware:
http://www.tomshardware.com/cpu/00q2/000619/index.html
It makes me think I might have gone with a Duron instead, or even an
Athelon. It seems that AMD has become a real chip maker when I wasn't
looking.
Has anyone else had similar experiences to mine? Does life get easier
in the build your own PC game? I feel a lot like I should have just
gone with VA Linux and be done with it.
Now I have an e-mail to send.
--
David Steuber | Hi! My name is David Steuber, and I am
NRA Member | a hoploholic.
http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=hoplite&submit=Look+it+up
The problem with AI is that it has a mind of its own
--- Devon Miller
------------------------------
From: Smitty <[EMAIL PROTECTED]>
Subject: Re: Linux verwendet UNIX 4.4 BSD (SUN) und SVR4 (AT&T) - kostenlos?
Date: Wed, 26 Jul 2000 20:58:47 -0400
Doni wrote:
>
> Wer kann mir bitte erkl�ren, warum der Linuxkernel copyleft vertrieben wird,
> obwohl er - so wie ich gelesen habe - auf o.g. kommerziellen UNIX-OS
> basiert? Oder was genau hat L.T. programmiert?
Ich glaube Sun BSD und SVR4 sind nicht kostenlos. Der Linuxkernel ist
auch nicht auf UNIX basiert.
Stimmtlich, Linux ist Unixclone.
Smitty
------------------------------
From: Michel Catudal <[EMAIL PROTECTED]>
Subject: Re: 'Possible to remotely run root through telnet?
Date: 26 Jul 2000 20:06:02 -0500
blowfish a �crit :
>
> Dances With Crows wrote:
> >
> > On Wed, 26 Jul 2000 18:50:01 GMT, Steve Buxton wrote:
> > >I want to be able to remotely administer my Redhat workstation connected to
> > >the internet. Can I do this through a remote shell?
> >
> > Of course you can, but:
> > 0. Don't use telnet, use ssh
> > 1. You can't directly log in as root if you're not at the console--log
> > in as a normal user and su to root.
> >
> > ssh is available all over the place. Do a websearch on Openssh or go to
> > http://www.ssh.com/ for the goods. Once you've installed ssh and gotten
> > the sshd daemon up and running on the machine you want to connect to,
> > close off the telnet port as telnet is much less secure than ssh.
> >
> > --
> > Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
> > Brainbench MVP for Linux Admin / Tyranny is always better organized
> > http://www.brainbench.com / than freedom.
> > -----------------------------/ --Charles Peguy
>
> OpenBSD WON'T even allow you to login as root from anywhere other than
> from the local terminal.
>
On linux it depends on the distribution. With SuSE I can override if I want to. This
can be very
usefull if you have several computers or a computer connected to a terminal and are
not connected
at all on an outside system for the particular computer(s). For instance with a
computer serving only
as an MP3 player not connected to the internet, the hell with the security and being
able to disable
some security allows an easy access with my televideo terminal.
For a computer hooked to the internet you should never permit login from other
computers as there are
too many assholes just looking for a way to break into your system.
--
Vous en avez plein l'casse du plantage avec Ti-Mou?
C'est l'temps d'essayer Linux
http://www.netonecom.net/~bbcat/
We have software, food, music, news, search,
history, electronics and genealogy pages.
------------------------------
From: Gordon Gilbert <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake
Subject: Re: MP3's skip when I perform other activities
Date: Wed, 26 Jul 2000 21:07:34 -0400
Tomislav Nakic-Alfirevic wrote:
>
> In alt.os.linux.mandrake Richard Watson <[EMAIL PROTECTED]> wrote:
> >> screen).
>
> > what are you using to play mp3s? Do you have the same problem if you
> > do
>
> > mpg123 mymp3.mp3
>
> > from the command prompt?
>
> Same problem. I've been listening to the discussion and it's definitly not
> CPU power... xmms uses under 1% of my CPU time yet it skips during massive
> disk activity. No improvement with mpeg123, either.
I read that this is do to poor driver buffering in the case of the
Aureal beta drivers. I just downloaded some modified drivers and
that stops lockups with programs like sox, but the skip problem is
still there. The web page there suggested changing the priority
(using nice) of esd and when running xmms so that it's -20 and that
supposedly prevents all the skips. Unfortunately, that'll do
nothing for a program that spawns another program (e.g. a frontend)
if it doesn't use esound. The real solution needed is to fix the
sound card driver. Since Aureal went bankrupt, I don't think that's
ever going to happen by them. I'm starting to think the best answer
may be to just get a new sound card that works properly. The
commercial OSS supports the MX300 (beta too), but it looks like it
has less features enabled than Aureal's driver plus you have to PAY
for it, which is something I refuse to do when I could buy a
different sound card for the same price basically. It beats the
heck out of me anyways why Linux is using a lite version of a
commercial sound system. I would have thought it would have a fully
open source system as its default.
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.misc) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Misc Digest
******************************