Linux-Misc Digest #584, Volume #18 Tue, 12 Jan 99 13:13:17 EST
Contents:
Re: need some terminfo/telnet advice - At386 (0/1) (Max Jerome)
Re: What happened to blackdown.org (Java-Linux porting project?) ("bob")
Re: Acessing binary file from the code without open(argv[0] ..) ("David Z. Maze")
Re: linuxberg: wow (Collin VanDyck)
Re: Consumer Poll Says Microsoft Is Good For Consumers (Daniel Pead)
Re: Can't setup printer (Frank Miles)
Re: Can't setup printer <Long Answer> (J.M. Paden)
setuid for ppd ("Rick Glunt")
Re: does the Diamond SupraExpress 56i Modem do linux? (Andy Johnson)
Backgroup graphic on xterm ? ([EMAIL PROTECTED])
Re: compiler for linux (Michael Powe)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Max Jerome )
Crossposted-To: comp.os.linux.networking,comp.os.linux.setup
Subject: Re: need some terminfo/telnet advice - At386 (0/1)
Date: Tue, 12 Jan 1999 15:26:01 GMT
here is the term entry that I have been using, the guy said he
modified it, but I have no idea what he did to it, as I dont know
anything about these term databases. scoansi will work as well but it
is black and white only, and has some screen problems too.
On 11 Jan 1999 16:40:29 GMT, "T.E.Dickey" <[EMAIL PROTECTED]>
wrote:
>In comp.os.linux.misc Max Jerome <blah> wrote:
>> hi all,
>> I have been trying to get foxpro 2.6 for unix running under linux for
>> medium sized multiuser app. I have made some real progress with the
>> help of some nice people, but I have a few issues left to deal with.
>> The main on is that if I telnet in, the screen does not clear/refresh
> ^^^^^^^^^ (from what type of terminal?)
>
>> like it should. It was much worse before I got terminfo file from a
>> guy that he edited it so it run foxpro correctly on the console. I
>
>"console" on Linux is the "linux" terminal type. It usually isn't the
>same as something that you would telnet in from (unless you are running
>in the console on another Linux system).
>
>> have tried several telnet programs and have found that net term shows
>> everything else correctly and shows foxpro better than anything else.
>> Does any body have any idea where to get a term info file that will
>> work or know how to edit one? any help would be greatly appreciated
>
>Terminfo for different terminal types differs (sometimes slightly,
>sometimes a lot). If you know the terminal type you're using, you
>can find the correct terminfo.
------------------------------
From: "bob" <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.java.help
Subject: Re: What happened to blackdown.org (Java-Linux porting project?)
Date: 12 Jan 1999 15:24:51 GMT
Yesterday, when I first read this, I connected to blackdown and got the
same result of a bad home page. I just tried it and all is well now.
Something must have been screwed up in the IP address server.
cheers...bob
Mike Werner <[EMAIL PROTECTED]> wrote in article
<[EMAIL PROTECTED]>...
> I just went and looked and http://www.blackdown.org/java-linux.html went
> to the Java Linux page. Perhaps it was temporarily down when you
> checked?
> --
------------------------------
From: "David Z. Maze" <[EMAIL PROTECTED]>
Subject: Re: Acessing binary file from the code without open(argv[0] ..)
Date: 12 Jan 1999 11:32:14 -0500
"Pedro Ribeiro" <Pedro.Ribeiro> writes:
PR> Can anyone tell-me how can i access the binary file i'm executing
PR> from the code under Linux (without open(argv[0], ...) ???
Uh, *why* do you want to do this? (Also note that open(argv[0], ...)
is not guaranteed to work, given that, among other possibilities, the
binary file may have been deleted between the start of the program and
the open() call.)
PR> It should be any way to know the addresses where the binfile was
PR> paged an simply access them with a pointer no ??
I'm confused as to why you can't use, say, a pointer to static data in
C code. This seems like a much more reliable and portable way to deal
with embedding data in the executable itself. Lots of programs
content themselves with putting huge chunks of data in an external
file, which seems like a perfectly reasonable approach to me.
--
_____________________________
/ \ "Dad was reading a book called
| David Maze | _Schroedinger's Kittens_. Asexual
| [EMAIL PROTECTED] | reproduction? Only one cat is in the box."
| http://donut.mit.edu/dmaze/ | -- Abra Mitchell
\_____________________________/
------------------------------
From: Collin VanDyck <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.ms-windows.advocacy
Subject: Re: linuxberg: wow
Date: Tue, 12 Jan 1999 09:00:35 -0600
Jason Costomiris wrote:
> Even more interesting would be to find out who decided that pico
> was somehow better than vim. Pico was rated better than emacs as well.
> Personally, I think emacs is the ultimate in overbloat, but if you like
> it, go for it. At least you'll get lots of finger exercise, doing those
> ctrl+meta+alt+left-shift key combos. :-)
I kind of view emacs like I do linux. Higher learning curve, but once
you get over that, it is superior to the others, in my opinion. It's
usually the case that the most popular choice follows the path of least
resistance :)
Collin
--
Collin VanDyck | H: 847-925-8933
Software Engineer | W: 847-576-1097
Private Radio Networks |
Motorola | [EMAIL PROTECTED]
------------------------------
From: Daniel Pead <[EMAIL PROTECTED]>
Crossposted-To:
alt.destroy.microsoft,comp.os.linux.advocacy,comp.os.os2.advocacy,gnu.misc.discuss,uk.comp.os.linux
Subject: Re: Consumer Poll Says Microsoft Is Good For Consumers
Date: Tue, 12 Jan 1999 11:51:04 +0000
In article <[EMAIL PROTECTED]>,
David Kastrup <[EMAIL PROTECTED]> writes
>> Microsoft is where it is today
>> because lots of people who should have known better bought MS-DOS PCs in
>> favour of technically superior alternatives. One dominant monopoly
>> (IBM) was replaced with another. The IT industry as a whole has yet to
>> admit this as a mistake, let alone take steps to stop it happening
>> again.
>
>Unification of computing platforms was not a mistake per se.
Well, IMHO unification in the sense of making all computing platforms
use not just the same OS, but substantially the same hardware *was* a
serious mistake. Unix-type operating systems offer a degree of
"unification" but there's a choice of half-a-dozen flavours which will
run on virtually any processor or architecture. There's a parallel
problem with software: as long as industry accepts software which stores
data in proprietary formats which change annually then it will get tied
into one product and someone will have a monopoly to abuse.
>> There's no point prosecuting Microsoft. If the industry continues to
>> embrace restrictive, proprietary solutions then its doomed to a
>> succession of Microsofts.
>
>It is not illegal to offer restrictive, proprietary solutions and
>should not be.
Fine - but they're still restrictive with a small "r".
>It *is* illegal to push this sort of solutions by
>anticompetitive measures not allowed by the law. To find whether this
>has happened and what to do about it is the purpose of the trial.
And if they're proved illegal? Bill has to pay a fine (damn! can't
afford to buy California this month), and make the minimum necessary
change to his practices to make them comply with the law. Spot the
difference! At worst, MS gets split into OS and applications divisions -
both with huge industry dominance. Is the DOJ going to go round
businesses and tell them to switch to Netscape and WordPerfect for Unix?
Nope.
OTOH if industry catches a dose of common sense and thinks "Hey, we
wouldn't dream of becoming dependent on a number 17 grommet if we
couldn't second-source it - why the hell haven't we applied the same
principle to IT?" then MS *will* be forced to change or go under.
Monopolies/anti-trust legislation is as much use as an inflatable
dartboard as long as consumers insist on buying the product with the
most expensive advert.
--
Daniel Pead
Email: [EMAIL PROTECTED] WWW: http://www.octpen.demon.co.uk/
------------------------------
From: [EMAIL PROTECTED] (Frank Miles)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: Can't setup printer
Date: 12 Jan 1999 16:06:57 GMT
In article <77eo8o$4j4$[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
> I am trying to configure Printer on my PC, but I can't even see lp when I do
> cat /proc/devices. I did try put lp=0x378,0 on lilo.conf, but it seem doesn't
> work.
Do you have the appropriate /dev/lp* entries? With the right ownership
and permissions? What's your distribution? Under Debian, at least, installing
the package 'lpr' pretty much does it all for you. Other distributions
probably have something roughly comparable.
-frank
------------------------------
From: [EMAIL PROTECTED] (J.M. Paden)
Subject: Re: Can't setup printer <Long Answer>
Date: Tue, 12 Jan 1999 15:57:44 GMT
[EMAIL PROTECTED] wrote:
> I am trying to configure Printer on my PC, but I can't even see lp when I do
> cat /proc/devices. I did try put lp=0x378,0 on lilo.conf, but it seem doesn't
> work.
>
> Can anybody give me a hand
>
>-----------== Posted via Deja News, The Discussion Network ==----------
>http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
The following is a copy of a checklist I developed while struggling to
get my own printer working under linux for the first time.
lpd will not function unless you are configured for tcp/ip, even if
you are not using it to connect to a network or the internet. For
Slackware look in Disk n5. lpr is located within tcpip.tgz file now.
Note: The following exception has been noted by C.J. Read:
"However there are exceptions, notably the lpd in
slakware/a1/bsdlpr.tgz (only 70k of tarball too!). I have a laptop
with no networking installed but lpr functions, as does
"magicfilter"."
You can make the necessary configuration changes by logging in as
"root" and using the command:
netconfig
This will prompt you for ENTER HOSTNAME: pick any name you want to,
but I suggest you use all lowercase. You will then be asked for
domain, which in your case will be eaze.net. You should also say yes
to "Only use loopback".
As for /etc/HOSTNAME:
<name_you_have_assigned_your_box>
My linux box is known as trivium and this is the
only entry in etc/HOSTNAME. You can name your box anything
you wish.
When you configured your kernel at time of installation, did you say
yes to parallel printer support? If not, do so when you reinstall.
I suggest you doublecheck. I just finished changing from an
old kernel to 2.0.33 and distinctly remembered several entries in my
configuration that did not make it into the .config file. I am not
sure if it was because of my typing, or whether there is an occasional
problem in the software that causes this problem. To double check you
can:
cd /usr/src/linux
ls -a
less .config
Note: Make sure you use the "." in ".config".
There should be an entry under the #character
devices section
CONFIG_PRINTER=y
To confirm the identity of the printerport:
dmesg | more
This should show something like "lp1 at 0x0378, using polling
device
0x378 is /dev/lp1
Do you actually have a filter in /var/spool/lpd/lp? If you
don't, you will need to put one there. If you do, check to see if any
part of it looks wrong.
There are some occasions where the printer is actually on what
linux considers to be lp0, instead of lp1.
I suggest you try the following:
cd /etc
edit the printcap file with vi or whatever editor you prefer.
Put a # in front of :lp=dev/lp1:\
insert a new line:
:lp=/dev/lp0:\
Then try to print to see if this changes anything. If it does
not, then remove the line re lp0 and the # in front of the old line re
lp1.
If you are running syslogd, you can look in your logs for
messages from lpd. If there is one saying it "cannot execv "name of
input filter", your problem is with the filter.
syslogd messages are available in two files. You can access them
by:
As root
cd /var/log
less syslog
or
As root
cd /var/adm
less syslog
or
tail -50 /var/adm/syslog
This will show you the last 50 lines of the syslog.
cat /proc/devices
Is there a 6lp? If there is, then lp is loaded.
cat filename > /dev/lp0
and if that doesn't work, then try /dev/lp1 or /dev/lp2 --
still no printer action, then you might have to recompile your kernel.
ps -ax | grep lpd
If you get something like 48 ? S 0:00 /usr/sbin/lpd, then lpd
is running.
Did you create a spool file? Something like
mkdir /usr/spool/lpd/some name for your printer
Does it have the right ownership and permissions? If you do not have
the x (execute permission) nothing will work.
chown root.daemon /usr/spool/lpd
chown root.daemon /usr/spool/lpd/some name for your printer
chmod ug=rwx, o=rx /usr/spool/lpd
chmod ug=rws, o=rx /usr/spool/lpd/some name for your printer
Did you create the additional files in your spool directory?
cd /usr/spool/lpd/some name for your printer
touch .seq errs status lock
chown root.daemon .seq errs status lock
chmod ug=rw,o=r .seq errs status lock
Note:
You use "touch" to create files and establish the creation
date for files. You need all four of the files
(.seq errs status and lock). The .seq file will contain the job
number counter for lpr to assign. errs is the place lpd sends errors
for logging. status is the file that contains messages that will be
reported when you type: lpc stat. The lock file is used to prevent
lpd from trying to print two files on the same printer at one time.
Do you have these files? Note the "." in the ".seq" file. You can
only see it if you use ls -a. If you do not have these files then
create them with the touch command.
Are you using a filter? Is it properly included in your printcap
file?
Do all the lines (except for the final line) of your printcap file end
with a backslash "\" ? If any of them, except for the last line, fail
to have a trailing backslash, the process is stopped.
Is there a trailing "ghost" space or tab after any of the "\" which
end the lines of your printcap? If in typing the printcap entries you
inadvertently hit a spacebar or tab, there will be a "ghost" space or
tab. You will not be able to see them, but they will cause a failure
in the execution of the printcap at that point. You can search for
the "ghosts" by :
vi /etc/printcap
Do not hit the "i" for insert, but move the cursor to the end of each
line in the printcap file by using arrows and
"end". If there are hidden spaces/tabs the cursor will go beyond the
"\" at the end of the line. If there are any spaces there, eliminate
them by using "x".
I suggest you also try:
echo $PRINTER
This will identify what your printer is identified as
within the file /etc/profile.
If the response does not match your printer, then type:
PRINTER=lp | export PRINTER
or
add a line to the /etc/profile
cd /export
vi profile
hit "i"
export PRINTER= lp
hit Shift-:
type: wq
Enter
Is your device initialized?
try 'ls > /dev/lp0' or 'ls > /dev/lp1'
Make sure you are root when you do this as only root can
write directly to the device)
There should be a symbolic link between /usr/spool -> /var/spool
ln -s /usr/spool /var/spool
My own printing problems were solved when I downloaded a copy
of apsfilter and installed it. The apsfilter program took over the
creation of all the necessary entries in printcap and established the
files and dependencies for me. If you continue to have problems, I
recommend that you try apsfilter. You can find it at :
sunsite.unc.edu/pub/Linux/system/Printing/aps-4.9.1.tgz
If you are able to successfully print, but at some later date
suddenly find that you begin receiving messages that the lpd daemon is
not present, there may be some printing files that have been left in
the queue that your filter cannot identify. Delete these files and
then try again. This may cure the problem.
Regards,
[EMAIL PROTECTED]
"The last temptation is the greatest treason:
To do the right deed for the wrong reason."
--T.S. Eliot
------------------------------
From: "Rick Glunt" <[EMAIL PROTECTED]>
Subject: setuid for ppd
Date: Mon, 11 Jan 1999 11:12:53 -0500
I have my Linux box setup with a ppp-on and ppp-off script to
connect/disconnect to my ISP. Scripts were created under root but when I
try to run them using another user (for security purposes) I get and error
'must be root to run /usr/sbin/pppd, since it is not setuid-root'. What do
I need to do to give access to another user?
------------------------------
From: Andy Johnson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,linux.redhat.misc,linux.redhat.install
Subject: Re: does the Diamond SupraExpress 56i Modem do linux?
Date: Tue, 12 Jan 1999 00:12:42 -0600
[EMAIL PROTECTED] wrote:
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] wrote:
> > No it is not. I just picked up one of these to replace a SupraMax modem
> > which is. It'll work fine.
> >
> > john
> >
>
> I was guessing that it wasn't because when I run the isapnp program my machine
> just hangs. Did you have to do anything special to configure it?
>
> Thanks, Tone
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
I'm posting this using a SupraExpress 56i V.90, and it works fine. You have to
set the IRQ on the card using the jumpers; don't leave it set to use Plug and
Pray. You'd have to set the IRQ for NT anyway, if you have that. Also, since
mine is on COM3, setting it to IRQ 11 eliminated conflicts with COM1.
Andy Johnson
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.x,comp.windows.x,comp.os.linux.setup
Subject: Backgroup graphic on xterm ?
Date: Tue, 12 Jan 1999 06:08:56 GMT
Could anybody know that how to set the backgroup graphic on xterm and KDE
terminal ? I wonder can it be done on X windows.
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: Michael Powe <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x,comp.os.linux.setup
Subject: Re: compiler for linux
Date: 11 Jan 1999 22:51:57 -0800
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
>>>>> "Brandon" == Brandon <[EMAIL PROTECTED]> writes:
Brandon> b/c thats part of the grade. So I need to know if I make
Brandon> a program using C in linux and compile with gcc if it
Brandon> would work once I put it on a win95 machine? I know that
Brandon> I woul dhave to convert the executable from either a.out
Brandon> or elf format to .exe which Win95 uses, which I would
Brandon> also need to knwo how to do that.
You might want to check this url for linux -> MSDOS cross-compilers.
Could be a fun project ... or, it could be hell.
ftp://sunsite.unc.edu/pub/Linux/devel/msdos
mp
8<---------------how-easy-is-it-to-demunge-an-address?------------------->8
#! /usr/bin/perl # if you are [EMAIL PROTECTED] (Another Luser):
while ($line = <>){ if ($line =~ m/^\s*$/ ){ last; }
if ($line =~ m/^From: (\S+) \(([^()]*)\)/){ $from_address = $1; } }
if ($from_address =~ m/\S+NOSPAM\S+/){ $x = index($from_address, NOSPAM);
substr($from_address, $x, 6+1) = ""; printf("The real address is %s\n",
$from_address);}else { printf("No munge, just plain %s\n",$from_address);}
printf("\nBrought to you by the Truth In Mail Headers Foundation\n");
8<-----------------------here's-one-example------------------------------>8
- --
Michael Powe
[EMAIL PROTECTED] http://www.trollope.org
Portland, Oregon USA
=====BEGIN PGP SIGNATURE=====
Version: GnuPG v0.9.0 (GNU/Linux)
Comment: Encrypted with Mailcrypt 3.5.1 and GNU Privacy Guard
iD8DBQE2mvDd755rgEMD+T8RAlGEAJ4/GeAaQrxKlH3tCGr/RUm+RKaI4gCgj2+k
P71oXkfZ8cEOwJm84kaWZQQ=
=gG09
=====END PGP SIGNATURE=====
------------------------------
** 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
******************************