Linux-Misc Digest #722, Volume #26                Sat, 6 Jan 01 05:13:01 EST

Contents:
  Re: ppp problem with ISP (Bill Unruh)
  Re: Installing a CDRW Drive on a Linux System (Bill Unruh)
  Re: "no space left on disk" .. but there is (Bill Unruh)
  Re: ftp but not telnet (Bill Unruh)
  Re: Journalled Filesystem on a laptop (Srihari Vijayaraghavan)
  How to use interrupts > 15? ("Lloyd Llewellyn")
  White block mouse in X-Window (#CHEN HUAYUAN#)
  Re: output to /dev/nul (Steve Connet)
  Re: ipchains question ("Leon Bourassa")
  Re: Xenix fs support under Linux (fred smith)
  Re: network shutdown by itself?? ("Peter T. Breuer")
  Re: output to /dev/nul (Erik de Castro Lopo)
  Re: output to /dev/nul ("Peter T. Breuer")
  Re: Trying to get sendmail working...(RH6.2) (Bo Berglund)
  Chown problem ("Andrew Chan")
  Re: Where's my memory?? (ASF)

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

From: [EMAIL PROTECTED] (Bill Unruh)
Crossposted-To: comp.os.linux.networking
Subject: Re: ppp problem with ISP
Date: 6 Jan 2001 06:41:12 GMT

In <[EMAIL PROTECTED]> Glitch <[EMAIL PROTECTED]> writes:


>My ISP uses PAP for ppp connections. I can login fine using Win98 but
>kppp won't login using PAP.  Neither OS will work usinga terminal window

Yes, it will.

>as my ISP has changed their menu system to where a person can't initiate
>a ppp link manually therefore it has to be done automatically.
>Unforutnately that doesn't work in Linux, as I said.

It does.

>I'm getting teh 'receive serial link is not 8-bit clean". I'm reading

Are you presently using a chat script under kppp? Get rid of it.
Choose the pap authentication.
If you keep having trouble, post your logs after switching on debugging
for ppp (NOT kdebug)

>curently from search results at Google this error usually means that my
>ISP didnt' have ppp running on yet on their end. If that is the case
>then how is it Win98 can make a connection to my ISP w/o my
>intervention? What does Win98 do that Linux isn't doing to force the
>server to start a ppp link? There is no way I can use a expect/send
>script (in a terminal window) with kppp like i used to. The closest I

YEs, that is the WRONG thing to do.

>can get is using PAP but ppp times out b/c it says I tried to start ppp
>when the server wasn't ready so it just dies. But I dont know how to get
>the server to start ppp. 

You need to tell us exact error messages.


>I've also read that it may be something to do with the number of bits or
>the settings of how those bits are sent, like 8 bits are sent with Non
>parity , something like that. Right now Win98 is configured with an 8N1

No. Not the problem.

>setting. Where do i look to see if ppp in Linux is setup the same way
>and how would i change it if it's not like that?


For detailed help ( but not with kppp) see
www.theory.physics.ubc.ca/ppp-linux.html

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

From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: Installing a CDRW Drive on a Linux System
Date: 6 Jan 2001 06:48:09 GMT

In <jms56.22$[EMAIL PROTECTED]> [EMAIL PROTECTED] (Martin McCormick) 
writes:


]If I install an IDE CDRW drive on a Linux system, is it likely to
]work?  I wonder how much of the functionality of the drive is
Yes. Make sure it is an ATAPI device.

]hard-wired in to the device and how much requires special drivers.  Of
]course the drive comes with a boat-load of software applications all
]designed for Windows systems, but all that will be just so many extra
]CDROM's in this situation.

]       What is a good course of action?

Buy the CDRW, install it.
edit /etc/lilo.conf and put the line
append="hdc=ide-scsi"
into the file in the section under the linux bootup section (or whatever
the name you gave to boot up linus)

Place
modprobe ide-scsi
at the end of /etc/rc.d/rc.local 
Reboot.
You may want to also do
ln -sf /dev/scd0 /dev/cdrom



]       This drive will get a slot on an IDE cable plus the power
]connection and that's pretty much it.
Yup, that's pretty much it.


]       I don't have a specific drive bought or even picked out yet,
]so any suggestions are much appreciated.

I'm using a new LG (Lucky Goldstar) 8081B and so far it has worked fine
(8-4-32)
I have also used a Yamaha which worked fine.
Read the cdrecord docs ( get the latest 1.9 version) for detailed help
and statements about drives that it is compatible with. (You will use
cdrecord to burn the disks, even if you also get a front end like 
XCDRoast)




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

From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: "no space left on disk" .. but there is
Date: 6 Jan 2001 06:51:30 GMT

In <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Carl Fink) writes:

]On Fri, 05 Jan 2001 20:33:15 -0600 Herb Stein <[EMAIL PROTECTED]> wrote:
]>Can we ask what the problem is that you are trying to solve?

]You could, you know, read the rest of the thread.

]The person who started this had a logging bug that was creating
]literally thousands of zero-length "log files", using up all his
]inodes.  He wanted to delete them, but there were so many that shell
]globbing produced an argument list that was too long.

rm -r /var/log/mail
rm -r /var/log/news
mkdir /var/log/{mail,news}


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

From: [EMAIL PROTECTED] (Bill Unruh)
Crossposted-To: comp.os.linux.networking
Subject: Re: ftp but not telnet
Date: 6 Jan 2001 06:56:25 GMT

In <JAv56.32120$[EMAIL PROTECTED]> "datagram" 
<[EMAIL PROTECTED]> writes:
>is it possible to stop people accessing ftp vas telnet ?

(vas?) 
comment out the lines you want to in /etc/inetd.conf. (Or edit the files
in /etc/xinit.d)


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

From: Srihari Vijayaraghavan <[EMAIL PROTECTED]>
Subject: Re: Journalled Filesystem on a laptop
Crossposted-To: comp.os.linux.portable
Date: Sat, 6 Jan 2001 18:11:25 +1100

Erik de Castro Lopo wrote:

> Hi all,
> 
> I've got a laptop running Linux. As it often runs from battery
> I get the occasional power down with out a proper shutdown
> before hand. This sometimes results in a screwed up disk.
> 
> I'm not complaining about the time to fsck, but I would like
> to prevent the loss of data on the drive.
> 
> Has anybody tried the various journaled filesystems to overcome
> problems like this?
> 
> TIA,
> Erik
Hello,

Reiser works even fine on /boot filesystem in my computers.

Refer: www.namesys.com/news.html for more information.

In short, you need to use Lilo 21.6 for /boot with reiserfs support. 
(alternately you can use GRUB too)

Thank you,
Hari.

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

From: "Lloyd Llewellyn" <[EMAIL PROTECTED]>
Subject: How to use interrupts > 15?
Crossposted-To: comp.os.linux.hardware,linux.redhat.install,linux.redhat.misc
Date: Sat, 06 Jan 2001 07:16:51 GMT

I cannot get my sound card (Turtle Beach Pinnacle) to work under Redhat 7.0. 

I'm dual-booting with Win2K.  It appears that under Windows, my SCSI controller
is using interrupts above 15; but in Linux, it's using the interrupts that my
sound card is set to.  

I presume these higher numbers are a Win2K naming convention for dealing with
shared interrupts?

The sound card is ISA in non-PnP mode.  Because of the available interrupts in
my system, and the IRQ's that my sound card will use, its current setting is
about the only one that works under Windows, so I want to use the same resource
settings under Linux.

How can I get the SCSI card to use the same higher (shared) interrupts as used
under Win2K?  Not having my music library available as I work is probably the
primary reason I don't spend as much time in Linux as I'd like to  :-)

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

From: #CHEN HUAYUAN# <[EMAIL PROTECTED]>
Subject: White block mouse in X-Window
Date: Sat, 6 Jan 2001 15:37:27 +0800 

Hi, all,

I installed Redhat 6.2 on my computer. I selected generic PS/2 mouse
during installation. However, the mouse becomes a white block instead of
an arrow in X-Window. But during setup (GUI interface), the mouse is in
normal shape. 
I checked the XF86Config file, it seems ok. My CPU is AMD athlon 850.
The Linux kernel version is 2.2.17. Can anyone help me solve the
problem?

Thanks a lot!

hychen



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

Crossposted-To: linux.redhat.misc
From: Steve Connet <[EMAIL PROTECTED]>
Subject: Re: output to /dev/nul
Date: Sat, 06 Jan 2001 07:24:32 GMT

On Fri, 5 Jan 2001, Christopher W. Aiken wrote:

> On Fri, 5 Jan 2001, Steve Connet wrote:
> 
> <SNIP>
> 
> (pan 1>/dev/null 2>&1) &
> 
> The "1>/dev/null" diverts "standard output" to /dev/null.
> 
> The "2>&1" diverts "standard error" to "standard output" which
> is already being sent to /dev/null by the previous note.
> By doing this ALL "output" and "errors" are sent to /dev/null.
> 
> The "()" groups the whole command and I/O diverts into a "job".
> 
> The ending "&" places that job in the background.


In a C program, I wonder what the command line arguments it receives when
you divert stdout and stderr to /dev/null as you did. ie.

int main(int argc, char* argv[])
{
   // wonder what argv[1] and arv[2] is????
   // or does the ">" redirection symbol prevent
   // the arguments being passed to the app?

   return EXIT_SUCCESS;
}


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

From: "Leon Bourassa" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.redhat,linux.redhat.misc
Subject: Re: ipchains question
Date: Sat, 06 Jan 2001 08:18:26 GMT

IPChains checks rules in order, most of the info I have seen, is that
default deny rules are created off the start, then are deleted at the end
once everything is set up.  The ideal way of doing this is to explicitly
allow what you want, and then, deny everything else.

This should work for ya:

####################SAMPLE IPCHAINS SCRIPT########################
##
# Get the external Internet IP Address
EXTERNAL_IP=`/sbin/ifconfig eth0 | grep "inet addr:" | \
        awk -F: {'print $2'} | cut -d\  -f 1`

ipchains -F
ipchains -I input 1 -j DENY
ipchains -I output 1 -j DENY
ipchains -I forward 1 -j DENY

##
# Set default policies for all chains to DENY
ipchains -P input DENY
ipchains -P output DENY
ipchains -P forward DENY

##
#  Allow DNS queries (for hostname lookups)
ipchains -A input -p tcp -s 0.0.0.0/0 domain -d 0.0.0.0/0 -b -j ACCEPT
ipchains -A output -p tcp -s 0.0.0.0/0 domain -d 0.0.0.0/0 -b -j ACCEPT
ipchains -A input -p udp -s 0.0.0.0/0 domain -d 0.0.0.0/0 -b -j ACCEPT
ipchains -A output -p udp -s 0.0.0.0/0 domain -d 0.0.0.0/0 -b -j ACCEPT

# Permit the connections in and out on port 80 for the external device
ipchains -A input -p tcp -s 0.0.0.0/0 -d $EXTERNAL_IP www:www -b -j ACCEPT
ipchains -A output -p tcp -s 0.0.0.0/0 -d $EXTERNAL_IP www:www -b -j ACCEPT

##
# Catch all rules to ensure that anything not dealt with above is denied
# and logged (Will also help with debugging stuff that isn't working)
ipchains -A input -s 0.0.0.0/0  -d 0.0.0.0/0 -l -j DENY
ipchains -A output -s 0.0.0.0/0 -d 0.0.0.0/0 -l -j DENY
ipchains -A forward -s 0.0.0.0/0 -d 0.0.0.0/0 -l -j DENY

##
# Delete the first blocking rules so that stuff can start working.
ipchains -D input 1
ipchains -D output 1
ipchains -D forward 1

#########################END SCRIPT#########################

This should help.  need anymore, just ask :)
Leon Bourassa
Network Admin

Londonboy <[EMAIL PROTECTED]> wrote in message
news:X0n56.191217$[EMAIL PROTECTED]...
> I am trying to tighten the security of my server by using IPCHAINS,  and I
> read a lot of articles on the web about that. There are 2 methods:
>
> 1. Some of them don't suggest change the INPUT policy to DENY, it should
> remind ACCEPT, and then block/open all the "known" ports.
>
> 2. There are articles suggest INPUT policy should be set to DENY first,
and
> then open necessary ports.
>
> So I followed the instructions of (2) but I experienced a lot of problems,
> for example FTP didn't work, SSH login become very slow, strange!! Then I
> switched to the frist method, everything works fine.
>
> Can anyone tell me why the 2nd one doesn't work well??
>
> Thanks
>
> Linux Newbie
>
>



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

From: fred smith <[EMAIL PROTECTED]>
Subject: Re: Xenix fs support under Linux
Date: Sat, 6 Jan 2001 00:58:26 GMT

Phil Botha <[EMAIL PROTECTED]> wrote:
: Hi all,
: Anyone know how to replicate a Xenix filesystem onto a new, bigger HD under
: Linux?
: I am using Mandrake 7.2 on an i686 and need to duplicate an existing Xenix
: installation on a 270MB ide hdd onto a 4.3 GB ide hdd.
: The drive is used in an i386 PC and contains software which the owner relies
: on and would like to continue using but for which no source or support is
: available any more...

: Any suggestions would be appreciated

I'm not entirely sure that you can, but don't take that as gospel.
I do know that LInux can mount Xenix filesystems if they are on floppy.
But SCO-format hard drives use a "divvy" program to manipulate partitions
and it has been my understanding that the LInux driver for the Xenix
filesystem doesn't understand divvied partitions. 

Do any of you have better knowledge?

Fred
-- 
---- Fred Smith -- [EMAIL PROTECTED] ----------------------------
                       I can do all things through Christ 
                              who strengthens me.
============================== Philippians 4:13 ===============================

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: network shutdown by itself??
Crossposted-To: comp.os.linux.redhat,linux.redhat.misc
Date: Sat, 06 Jan 2001 08:35:02 GMT

In comp.os.linux.misc Londonboy <[EMAIL PROTECTED]> wrote:
> I don't have a DNS server, I am connecting to the cable modem via DHCP on

You must have a dns server or else you can't look up the IP addresses
of hostnames, and hence can't contact them by name. I think you mean
that you don't have your OWN dns server. Please say what you mean, and
not something else!

> the external interface. Is it why it caused the problem?

Is WHAT why it caused the problem? Being connected to a cable modem?

You can't be connected VIA dhcp ..  before connection you can use DHCP
to give you some details such as an IP address, and a DNS server IP
address.  So you are CONFIGURED via DHCP.  Is that what you are doing?
If so, yes, you do have a DNS server.  Look in your resolv.conf.  That
will enable you to answer the question "where is your DNS server".

Peter

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

From: Erik de Castro Lopo <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc
Subject: Re: output to /dev/nul
Date: Sat, 06 Jan 2001 08:44:33 GMT

Steve Connet wrote:
> 
> In a C program, I wonder what the command line arguments it receives when
> you divert stdout and stderr to /dev/null as you did. ie.
> 
> int main(int argc, char* argv[])
> {
>    // wonder what argv[1] and arv[2] is????
>    // or does the ">" redirection symbol prevent
>    // the arguments being passed to the app?
> 
>    return EXIT_SUCCESS;
> }

It does not have any affect on the command line arguments, only
on the sdtin, stdout and (possibly) stderr.

Erik
-- 
+----------------------------------------------------------+
  Erik de Castro Lopo  [EMAIL PROTECTED] (Yes its valid)
+----------------------------------------------------------+
The mouse has been moved. Windows must be restarted for the change
to take effect. Reboot now?

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: output to /dev/nul
Crossposted-To: linux.redhat.misc
Date: Sat, 06 Jan 2001 08:45:03 GMT

In comp.os.linux.misc Steve Connet <[EMAIL PROTECTED]> wrote:
> On Fri, 5 Jan 2001, Christopher W. Aiken wrote:
>> (pan 1>/dev/null 2>&1) &

> In a C program, I wonder what the command line arguments it receives when
> you divert stdout and stderr to /dev/null as you did. ie.

There were no arguments passed to "pan". Learn to parse shell language
and you will see.

Peter

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

From: [EMAIL PROTECTED] (Bo Berglund)
Crossposted-To: comp.os.linux.help,comp.os.linux.networking
Subject: Re: Trying to get sendmail working...(RH6.2)
Reply-To: [EMAIL PROTECTED]
Date: Sat, 06 Jan 2001 08:42:26 GMT

On Sat, 06 Jan 2001 00:26:32 +0000, "Steve Cox"
<[EMAIL PROTECTED]> wrote:
>
>
>Sendmail can be configured via linuxconf (simple configurations anyway) .
>Alternatively you couyld try a simpler MTA like postfix but you'll have
>to remove sendmail first. 
>
>As for sendmail, it sounds like you need to add you ISP smtp server as
>the relay.

Why do I need a relay? My Linux box is on the Internet and can ping
anywhere so it should be able to deliver to the destination by itself,
should it not?


Bo Berglund
[EMAIL PROTECTED]

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

From: "Andrew Chan" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Chown problem
Date: Sat, 6 Jan 2001 17:27:59 +0800

I want to change a file's owner to andrew.chan. But if I type chown
andrew.chan abc, it will recogize the user as andrew and group as chan since
there is a period between the name and the firstname. Chown delimits user
and group using period. So how do I put a username with a period in between?



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

From: ASF <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc
Subject: Re: Where's my memory??
Date: Sat, 6 Jan 2001 10:53:22 +0100

Linux has a cache memory. This means that it keeps somewhere the last
datas you use so you can "reget" them more quickly. This doesn't really
use your RAM. Use the command called "free": you will see what I mean.

Regards,

ASF


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


** 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 by posting to comp.os.linux.misc.

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