Linux-Misc Digest #366, Volume #26               Tue, 21 Nov 00 19:13:04 EST

Contents:
  Re: serial port (Jean-David Beyer)
  Re: SCO 'tar' media with Linux? (Mike Castle)
  Re: !! PLEASE HELP THIS NEWBEE ("Mike Hewett")
  Re: serial port (Max Lungarella)
  Star Office (Myriam Abramson)
  Re: Screw KDE 2.0!! - Im going crazy trying to install it. (bob_more)
  Re: Screw KDE 2.0!! - Im going crazy trying to install it. (Robert Kiesling)
  Re: logitech USB mouse won't work ("Anthony")
  NVidia GeForce 256 DDR Acceleration (Kevin Brown)
  Re: LinkSys betrayed us! Poor prospects for Linux. ("Michael Westerman")
  lpd network permissions problems (doug reeder)

----------------------------------------------------------------------------

From: Jean-David Beyer <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.app
Subject: Re: serial port
Date: Tue, 21 Nov 2000 16:41:56 -0500

Max Lungarella wrote:

> hi jean-david
>
> > P.S.: You did malloc your newtio structure, I hope? Otherwise garbage will ensue.
> > And free it later to avoid memory leaks... . I hope I am not insulting your
> > intelligence, but one never knows... .
>
> here part of my code:
>
> 
>--------------------------------------------------------------------------------------
>
> bool SerialCom::initConnection(const char *const portname, const char
> *const param)
> {
>    Parser parseObj;
>    struct termios newtio;
>
>   if (_port>=OK)                                // Port already open
>      _err.sys("** Port already open");
>
>   _port = open(portname, O_RDWR | O_NDELAY | O_NOCTTY);
>      fcntl(_port, F_SETFL, 0);
>
>    // Error
>    if (_port<0)
>       _err.sys("** Error while opening the serial port");
>    else
>    {
>       if ( tcgetattr(_port, &_oldtio) < 0)      // Save current port
> settings
>         _err.ret("** Error while reading the serial port settings");
>
>       bzero(&newtio, sizeof(newtio));                   // Clear struct for new port
> settings
>
>       newtio.c_oflag &= ~OPOST;                            // Raw output
>       newtio.c_cflag |= (CLOCAL | CREAD);
>       newtio.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);            // Raw
> input

I do not remember if this is right. If you turn off ICANON, do you really need to turn 
off ECHOE?
The man page says:

  ECHOE  if ICANON is also set, the ERASE  character  erases
              the  preceding  input  character, and WERASE erases
              the preceding word.

But in your case, ICANON is NOT also set.

>       parseObj.parse(param, &newtio);  // Parse parameter string
>
>       cfsetispeed(&newtio, B9600);     // Activation after 'tcsetattr'
>       cfsetospeed(&newtio, B9600);
>
>       newtio.c_cc[VTIME] = 0;
>       newtio.c_cc[VMIN] = 0;
>
>       tcflush(_port, TCIFLUSH);                           // clean serial port ...
>
>       if (tcsetattr(_port, TCSANOW, &newtio) < 0);   // ... activate
> settings for the port
>          _err.ret("** Error during activation of the serial port
> settings");
>
>       return true;
>    }
>
>    // Remember owner of port
>    stat(portname, &_stt);
>    _port_uid = _stt.st_uid;
>    _port_gid = _stt.st_gid;
>
>    // Give it to us!!
>    if (_real_uid != 0)
>       chown(portname, (uid_t)_real_uid, (gid_t)_real_gid);
> }
>
> 
>-----------------------------------------------------------------------------------------------
>
> perhaps you are able to see the problem, i'd appreciate it very much.
>
> thx a lot.
>         max

I do not see it, but I have not done that kind of thing since about 1991 or so, so I 
would not
expect to see it. What I would suggest, however, is to copy _oldio (whereever that is) 
into newtio
first, and then change only the bits you absolutely must change. I know I could never 
get it right
by setting everything up the way I thought it should be.

--
 .~.   Jean-David Beyer           Registered Linux User 85642.
 /V\                              Registered Machine    73926.
/( )\  Shrewsbury, New Jersey
^^-^^  4:25pm up 1 day, 1:38, 2 users, load average: 4.62, 3.85, 2.87




------------------------------

From: [EMAIL PROTECTED] (Mike Castle)
Crossposted-To: alt.linux,alt.os.linux
Subject: Re: SCO 'tar' media with Linux?
Date: Tue, 21 Nov 2000 15:20:40 -0600

In article <CbBS5.6715$[EMAIL PROTECTED]>,
Scott M. Navarre <[EMAIL PROTECTED]> wrote:
>devices - i.e. can't do a "tar xv6" to extract files from a floppy disk)
>

I've used tar on floppies quite a bit.  Give it the device:

tar xf /dev/fd0

mrc


-- 
       Mike Castle       Life is like a clock:  You can work constantly
  [EMAIL PROTECTED]  and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen

------------------------------

From: "Mike Hewett" <[EMAIL PROTECTED]>
Crossposted-To: 
alt.comp.linux,alt.comp.linux.isp,alt.os.linux,alt.os.linux.dial-up,alt.os.linux.suse,casema.linux,comp.os.linux.networking,comp.os.linux.setup,linux.admin.isp,linux.help,linux.misc
Subject: Re: !! PLEASE HELP THIS NEWBEE
Date: Tue, 21 Nov 2000 15:28:41 -0600

you cant login as root from a telnet session
that would be a security hole...

create a user account using useradd and then log in via the telnet session
with that username. then "su" to root

Mike

"Circles" <[EMAIL PROTECTED]> wrote in message
news:3a170baf$0$12226@reader2...
> Hi,
> Can anyone tell me how i can login to a linux box as root
> by a telnet client ?
> Thanx
>
>



------------------------------

From: Max Lungarella <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.app
Subject: Re: serial port
Date: Tue, 21 Nov 2000 23:12:44 +0100

Floyd Davidson wrote:
> 
> Max Lungarella <[EMAIL PROTECTED]> wrote:
> >hi there
> >
> >i'm trying to use the serial port to control a device connect to it. the
> >code compiles without warnings, but while setting the attributes of the
> >port i get a funny error message: "Function not implemented"
> >(errno=ERRSYS). Here is the simplified code snippet:
> >
> >struct termios *newtio;
> >port = open(portname, O_RDWR | O_NDELAY);
> >...
> >tcflush(port, TCIFLUSH);
> >if (tcsetattr(port, TCSANOW, &newtio)<0)
> >       cout << "Error" << endl;
> 
> You have a pointer to a termios struct that has not been
> initialized, but not termios struct.  

you're right. the code was right, but i wrote the wrong thing.

> The tcsetattr() function
> is being given the address of the pointer, rather than the
> address of a termios struct.  It certainly will not find useful
> data at that address.
> 
> struct termios newtio;
> port = open(portname, O_RDWR | O_NDELAY);
> ...
> tcflush(port, TCIFLUSH);
> if (tcgetattr(port, TCSANOW, &newtio)<0)
>         cout << "Error" << endl;
> 
> // make whatever changes are required to the termios structure
> // here
> 
> if (tcsetattr(port, TCSANOW, &newtio)<0)
>         cout << "Error" << endl;
> 
> --
> Floyd L. Davidson                          [EMAIL PROTECTED]
> Ukpeagvik (Barrow, Alaska)

 bests.
        max

------------------------------

From: Myriam Abramson <[EMAIL PROTECTED]>
Subject: Star Office
Date: 21 Nov 2000 16:58:49 -0500


Does anybody know of a newsgroup or mailing list for Star Office? 

Thanks,

-- 
                                          myriam

Go Proverb:

Make yourself empty before each move. (Mark Boon)

------------------------------

Subject: Re: Screw KDE 2.0!! - Im going crazy trying to install it.
Crossposted-To: alt.os.linux,linux.redhat.install,alt.linux
From: bob_more <[EMAIL PROTECTED]>
Date: Tue, 21 Nov 2000 17:31:27 -0500

Robert Kiesling <[EMAIL PROTECTED]> wrote:
> bob_more <[EMAIL PROTECTED]> writes:
>=20
> <text deleted>
>=20
> > i've heard this myself, as an alternative, true diehards love slackwa=
re, I've
> > used caldera with great stability since version 1.1, just remember th=
at redhat
> > aint the only game in town. shop around.
>=20
> No longer true, if I can believe what I'm reading.  Stability seems
> about the same across distributions.  But the window manager and/or
> GUI desktop make a difference.  I've found that only Motif is
> sufficiently stable for development work.
>=20
> But if you install LOUDLY, that certainly makes the system more
> stable.

i am curious about your motif comment, as in, what IDe are you using BX P=
ro?,
I've had plenty of fun with the various kdevelops


------------------------------

Crossposted-To: alt.os.linux,linux.redhat.install,alt.linux
Subject: Re: Screw KDE 2.0!! - Im going crazy trying to install it.
From: Robert Kiesling <[EMAIL PROTECTED]>
Date: Tue, 21 Nov 2000 22:40:04 GMT


bob_more <[EMAIL PROTECTED]> writes:

> Robert Kiesling <[EMAIL PROTECTED]> wrote:
> > bob_more <[EMAIL PROTECTED]> writes:
> > 
> > <text deleted>
> > 
> > > i've heard this myself, as an alternative, true diehards love slackware, I've
> > > used caldera with great stability since version 1.1, just remember that redhat
> > > aint the only game in town. shop around.
> > 
> > No longer true, if I can believe what I'm reading.  Stability seems
> > about the same across distributions.  But the window manager and/or
> > GUI desktop make a difference.  I've found that only Motif is
> > sufficiently stable for development work.
> > 
> > But if you install LOUDLY, that certainly makes the system more
> > stable.
> 
> i am curious about your motif comment, as in, what IDe are you using BX Pro?,
> I've had plenty of fun with the various kdevelops

I beg your pardon?  I've never used BXPro.  My primary GUI builder
is Perl/Tk, which is probably the reason for my experiences, which
you can infer from the above comment.

-- 
Robert Kiesling
Linux FAQ Maintainer 
[EMAIL PROTECTED]
http://www.mainmatter.com/linux-faq/toc.html  http://www.mainmatter.com/
---
Tired of spam?  Please forward messages to [EMAIL PROTECTED]

------------------------------

From: "Anthony" <[EMAIL PROTECTED]>
Subject: Re: logitech USB mouse won't work
Date: Wed, 22 Nov 2000 06:41:42 +0800

In article <8vehgt$b7$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:

> I'm using Linux Mandrake 7.1 on a laptop. The laptop does not have ps/2
> or serial, only USB. So I'm left with the touchpad or a usb mouse. I
> have the logitech optical wheel mouse with usb, but I can't get it to
> work. I've run mouseconfig, chose USB, still nothing. All that did was
> cause an error with gpm and stopped my touchpad mouse from working too.
> I've also tried editing the XF86Config file in the "Pointer" section to
> use IMPS/2 protocol (with /dev/mouse -> /dev/usbmouse). I tried all
> sorts of combinations of using mouseconfig and XF86Config. The kernel
> has mouse usb as module. All this and I still haven't had it working.
> Does it matter which USB port it is in? The optical red light glows with
> both, so I know they are mechanically functional.
> 
> If anyone has got their usb mouse to work, let me know how you did it
> and what linux distrib. Even if you just plugged it in and it worked or
> if you did one of the things I did above. Perhaps I can tell which way
> works best and see if I made a mistake. Thanks.

I have the mouse on the ps/2 port under Linux 2.2.17 and I have tested it
with the USB port on W98, both method work.  On the USB port the refresh
rate is even higher (200).

The kernel that Mandrake 7.1 use is 2.2.16 or below, so the usb support
is an old 2.4 backport.  The latest USB drivers are in 2.4 and 2.2.18pre.
You might want to try out 2.2.18pre or wait for 2.2.18.  The latest
2.4test is not that stable, I couldn't even boot it the last time I tried.


====== Posted via Newsfeeds.Com, Uncensored Usenet News ======
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
=======  Over 80,000 Newsgroups = 16 Different Servers! ======

------------------------------

From: Kevin Brown <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.x
Subject: NVidia GeForce 256 DDR Acceleration
Date: Tue, 21 Nov 2000 23:07:23 GMT

I am trying to get an NVidia GeForce 256 DDR working in linux.  I want
the 3-D acceleration to work, specifically with IRIS Performer 2.3.1.  I
had it working before in Linux Mandrake 7.1, but somehow I broke it and
couldn't get it back.

I have tried two different distros, both using NVidia drivers 0.9-5:

RedHat 7.0:
    When building the nvidia kernel from either the tar.gz or rpm, I get
an error that says kernels above 2.2 are not supported and the headers
don't match.  I am running the base kernel that comes with 7.0, which is
2.2.16-??.  Is there something that is telling the nvidia kernel the
wrong core kernel version?

Mandrake 7.2:
    The nvidia kernel builds fine, but when trying to insmod it I get
unresolved dependencies.  All of them have something to do with AGP,
like agp_backend and stuff like that.  The glx builds fine, but when
starting X it can't find the kernel module and stops.

Can anyone tell me how to get it working in either of these
distributions?  If not, can someone recommend another distribution where
the setup would go easily?

The system is a Dell Dimension with 1GHz Pentium III and 512MB RAM.  The
video board is made by Dell I think, but the reference drivers work fine
in windows, and the NVidia 0.9-2 drivers worked before in Mandrake 7.1
with XF86 4.0.

Thanks,
Kevin
[EMAIL PROTECTED]


------------------------------

From: "Michael Westerman" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.networking
Subject: Re: LinkSys betrayed us! Poor prospects for Linux.
Date: Wed, 22 Nov 2000 09:31:26 +1000

do you stop the network first ?

since you have io and local host interfaces.

mabey read the stuff on multiple netcards.

do you need to pass anything to lilo eg eth0= "0x320,15....."

or simila (example only ) to specify options for your card.
or in /etc/modules.conf ?




Henry_Barta <[EMAIL PROTECTED]> wrote in message
news:8v4if6$3o$[EMAIL PROTECTED]...
> In comp.os.linux.hardware Henry_Barta <[EMAIL PROTECTED]> wrote:
> > In comp.os.linux.hardware Ray <[EMAIL PROTECTED]> wrote:
>
> >     (I agree that if 'ping' works, then everuything else should
> >     too.  After I get through with this, I'll put the old card back
> >     in and see if things still work.)
>
>     'Old' card still works. results from 'netstat -rn' and 'ifconfig' are:
> [root@pswin /root]# netstat -rn
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
> 207.229.129.252 0.0.0.0         255.255.255.255 UH        0 0          0
ppp0
> 192.168.100.100 0.0.0.0         255.255.255.255 UH        0 0          0
eth0
> 192.168.100.0   0.0.0.0         255.255.255.0   U         0 0          0
eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo
> 0.0.0.0         207.229.129.252 0.0.0.0         UG        0 0          0
ppp0
> [root@pswin /root]# ifconfig eth0
> eth0      Link encap:Ethernet  HWaddr 00:40:05:30:63:D6
>           inet addr:192.168.100.100  Bcast:192.168.100.255
Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:17 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           Interrupt:15 Base address:0xe000
>
> > [hbarta@pswin hbarta]$ netstat -rn
> > Kernel IP routing table
> > Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
> > 207.229.129.252 0.0.0.0         255.255.255.255 UH        0 0          0
ppp0
> > 192.168.100.100 0.0.0.0         255.255.255.255 UH        0 0          0
eth0
> > 127.0.0.1       0.0.0.0         255.255.255.255 UH        0 0          0
lo
> > 192.168.100.0   0.0.0.0         255.255.255.0   U         0 0          0
eth0
> > 127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo
> > 0.0.0.0         207.229.129.252 0.0.0.0         UG        0 0          0
ppp0
> > [hbarta@pswin hbarta]$ /sbin/ifconfig eth0
> > eth0      Link encap:Ethernet  HWaddr 45:C4:45:C4:45:C4
> >           inet addr:192.168.100.100  Bcast:192.168.100.255
Mask:255.255.255.0
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:29 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:100
> >           Interrupt:15 Base address:0x9000
>
>     I have another question. I have vague recollections about having
>     to specify exactly which Ethernet was being used. These were
>     (if my fading memery serves...) 802.3, DIX ??? Are these
>     relavent? I suspect that everything is 802.3 these days.
>
>     Anyway, the difference between these two setups is the cards
>     and the driver. With the old card, the default driver loads
>     and works. With the new card, the driver (tulip.o) fails to
>     load at boot time and I load pci-scan and tulip modules by hand
>     and then start the network by running:
>
> '/etc/rc.d/init.d/network start'
>
>     And the old card works.
>
> --
> Hank Barta                            White Oak Software Inc.
> [EMAIL PROTECTED]                   Predictable Systems by Design.(tm)
> Beautiful Sunny Winfield, Illinois



------------------------------

From: [EMAIL PROTECTED] (doug reeder)
Crossposted-To: osu.sys.linux
Subject: lpd network permissions problems
Date: 21 Nov 2000 23:38:12 GMT


I have lpr working fine when it prints to a printer connected to the
parallel port, but other machines cannot print to this print queue
over the network:

[root@slendro /root]# lpr /etc/fstab
[root@slendro /root]# lpq
slendro.som.ohio-state.edu: sending to yodel.som.ohio-state.edu
Rank   Owner      Job  Files                                 Total Size
1st    root       7    /etc/fstab                            915 bytes

connection to yodel.som.ohio-state.edu is down




The printcap entry on the machine with the printer attached is:

##PRINTTOOL3## LOCAL laserjet 300x300 letter {} LaserJet Default {}
lp:\
        :sd=/var/spool/lpd/lp:\
        :mx#0:\
        :sh:\
        :lp=/dev/lp0:\
        :if=/var/spool/lpd/lp/filter:

The printcap entry on the machine trying to print over the network is:

##PRINTTOOL3## REMOTE 
lp:\
        :sd=/var/spool/lpd/lp:\
        :mx#0:\
        :sh:\
        :rm=yodel.som.ohio-state.edu:\
        :rp=lp:

I have added the remote machine to the hosts.lpd file on the machine
with the printer:

[root@yodel /root]# cat /etc/hosts.lpd
# hosts.lpd
eroica.som.ohio-state.edu
tactus.som.ohio-state.edu
slendro.som.ohio-state.edu

lpd is running fine on both hosts:

[root@yodel /root]# /etc/rc.d/init.d/lpd status
lpd (pid 667 513) is running...
[root@yodel /root]# ps -e | grep lp
  513 ?        00:00:00 lpd
  667 ?        00:00:00 lpd


[root@slendro /root]# /etc/rc.d/init.d/lpd status
lpd (pid 777 513) is running...
[root@slendro /root]# ps -e | grep lp
  513 ?        00:00:00 lpd
  777 ?        00:00:00 lpd




and all other network communication between the two machines runs fine.

Is there some other place I need to enable this?

-- 
P. Douglas Reeder      Lecturer, Computer. Science. Dept., Ohio State Univ..
[EMAIL PROTECTED]  http://www.cis.ohio-state.edu/~reeder/reeder.html
GE/S d+ s+:- a C+@$ UH+ P+ L E W++ N+ o? K? w !O M+ V PS+() PE Y+ PGP- t 5+ !X
R>+ tv+ b+++>$ DI+ D- G e+++ h r+>+++ y+>++

------------------------------


** 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
******************************

Reply via email to