Linux-Setup Digest #999, Volume #20 Fri, 6 Apr 01 11:13:11 EDT
Contents:
Re: Loading modules at startup (Colin)
Re: "to many files are open"?? ("michael.fengler")
Re: chmod (Steve Martin)
lpd problem (Hilde Vernieuwe)
Re: Slackware 7.1 invalid compressed format (err=2) (Steve Martin)
Re: Where is smbpasswd? (Rod Smith)
Re: chmod (H.Bruijn)
Re: LFS (Linux From Scratch) ("" <[EMAIL PROTECTED]>)
Re: hdb boot ("Andrey Shcherbina")
Re: LFS (Linux From Scratch) ("J. E. Garrott Sr")
Re: LFS (Linux From Scratch) ("J. E. Garrott Sr")
Re: cdrom does not mount. ("Kenny@BUI")
Re: cdrom does not mount. ("Kenny@BUI")
Re: ATI Radeon ("ne...")
Re: Loading modules at startup (Accesnonautorise)
Re: buiding router and firewall with SUSE 7.1 (David Efflandt)
Re: Time server setup ("Roman Badertscher")
----------------------------------------------------------------------------
From: Colin <[EMAIL PROTECTED]>
Subject: Re: Loading modules at startup
Date: 06 Apr 2001 09:02:17 -0400
[EMAIL PROTECTED] (Accesnonautorise) writes:
> Hi,
>
> I'd like to load the following modules at startup:
> bttv.o
> tuner.o
> msp3400.o
> Instead of logging as root and typing /sbin/modprobe <modulename> at every
> startup, could Linux automatically load them, and then unload when shutting
> down ?
> I like to avoid logging as root.
> Thanks a lot.
If you have a /etc/modules file, that's where they go (without the ".o"
extension).
--
These largely uninformed opinions are not those of my employer
in any way, shape, or form.
------------------------------
From: "michael.fengler" <[EMAIL PROTECTED]>
Subject: Re: "to many files are open"??
Date: Tue, 3 Apr 2001 07:55:59 +0200
Reply-To: <[EMAIL PROTECTED]>
On Thu, 29 Mar 2001, Glitch wrote:
>Carsten Bliessen wrote:
>
>> Hi together,
>>
>> have a problem with an debian system. I=B4ve installed it with minimum
>> config and set an Samba on it.
>>
>> Everything is working well. But if I copy many files over the network,
>> after some hours the System hang and the windows clients couldnt write
>> or read anything and on the console i can=B4t execute anything. Only
>> Ctrl alt and del. restarts the computer.
>>
>> The system say : to many files are open.
>>
>> Do anybody have an idea about that ?
>>
>> THX
>> Carsten Bliessen
>
>there is a limit on the number of files that can be open on the system.
>I believe the limit is set in ulimits.h(or maybe ulimit.h). AFter u
>change the limit u have to recompile your kernel.
Try "echo 4069 > /proc/sys/fs/file-max" (assuming kernel 2.4.3, else
you may have to search around in /proc). You do *not* have to recompile
the kernel for this.
- mike
------------------------------
From: Steve Martin <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: chmod
Date: Fri, 06 Apr 2001 08:15:53 -0400
Mikkel Jakobsen wrote:
> I have put a new hdd into my linux box, it has fat 32 , with a lot of
> windows stuff on it. now i wont to "chmod" of one of the directoryes,
> so that i can read and write to it, with Samba 2.0.7.
> but how do i chmod on a fat 32 hdd ?
I don't think you can chmod a fat32 directory. The chmod
command manipulates some bits in the directory structure,
and those bits don't exist in a fat/fat32/vfat filesystem.
(Microsoft didn't put user/group/other permissions in
their filesystem, so Linux can't manipulate them.)
------------------------------
From: Hilde Vernieuwe <[EMAIL PROTECTED]>
Subject: lpd problem
Date: Fri, 06 Apr 2001 15:11:54 +0200
Hello,
Recently I started using Mandrake 7.2. At work, there are two printers:
one oki attached to a linux-server and a HP laserjet printer. For those
printers we have some configuration files and a filter. When I want to
connect one printer everything is allright, but when I want to connect
the second printer (placing the configuration files and the filter in
the /var/spool/lpd/lp0 directory) a second lpd starts so printing
becomes impossible. I already tried to kill the lpd and restart one,
but everytime I want to print a file, the second lpd starts up. Does
someone know what's the problem here?
Thank you very much
Hilde Vernieuwe
------------------------------
From: Steve Martin <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Slackware 7.1 invalid compressed format (err=2)
Date: Fri, 06 Apr 2001 08:20:35 -0400
Bill Lucas wrote:
> With my windows startup disk, I ran fdisk, created 1 primary dos
> drive, formatted drive.
>
> Changed bios to boot CDROM first.
> got the boot: prompt
>
> then,
> Loading initrd.img.......
> Loading vmlinuz.....
> uncompressing Linux
> invalid compressed format (err=2) or (err=1)
Are you dead set on having the drive formatted as a Windows
drive? If you're planning on running only Linux, then you
should re-partition the drive using Linux's "fdisk", then
allow the Slackware install to format the disk using its
own formatting with "mke2fs". If you're going to do a dual-
boot, then you'll probably have better luck making two
partitions, a Linux one and a Windows one. (Trying to run
Linux contained in a Windows partition gives me the same
warm-and-fuzzy feeling I get when I know that someone has
spit in my soup; there's something there you want, but you
know that it's mixed in with something that makes ya sick. ;)
------------------------------
From: [EMAIL PROTECTED] (Rod Smith)
Crossposted-To: linux.redhat.misc,linux.samba
Subject: Re: Where is smbpasswd?
Date: Fri, 06 Apr 2001 13:24:04 -0000
Reply-To: [EMAIL PROTECTED]
[Posted and mailed]
In article <9aja6a$[EMAIL PROTECTED]>,
"Hiawatha Bray" <[EMAIL PROTECTED]> writes:
> I need it to set up encrypted passwords in Samba, but when I installed RH 7,
> smbpaswd did NOT get installed, and I have no idea where it is. Help!
Just to clarify: There've been four responses so far, two of which focus
on one meaning of smbpasswd, the other two of which focus on another.
There are *TWO* smbpasswd files in Samba. One is a data file, located in
/etc, /etc/samba, /etc/samba.d, or some place similar. This file
contains encrypted passwords, and is not installed by default because
it's a system-specific configuration file. You create this file by using
a program with an identical name -- smbpasswd. This should be installed
with the main Samba package. On my Caldera and Mandrake systems, it's in
/usr/bin. To create an smbpasswd password file, you issue a command like
the following:
smbpasswd -a watha
This command adds an encrypted password for the user watha. If the
password file doesn't exist, you'll get a warning message and the
program will create the file.
--
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux & multi-OS configuration
------------------------------
From: [EMAIL PROTECTED] (H.Bruijn)
Subject: Re: chmod
Date: 6 Apr 2001 13:33:11 GMT
Reply-To: [EMAIL PROTECTED]
On Fri, 6 Apr 2001 14:53:26 +0200, Mikkel Jakobsen allegedly wrote:
>Hello ...
>
>I have put a new hdd into my linux box, it has fat 32 , with a lot of
>windows stuff on it. now i wont to "chmod" of one of the directoryes,
>so that i can read and write to it, with Samba 2.0.7.
>but how do i chmod on a fat 32 hdd ?
Remember that windows filesystems fat32/vfatetc don't have native owners
and permissions so that trying to change them, whith chmod, or using
chown is impossible.
They are set in the mount options in /etc/fstab. See "man mount" and
"man fstab" for more info, especially in the FAT and VFAT sections.
And the permissions are set for aech and every file on the partition.
My suggestion would thus be to make the windows partition completely
owned by an user, by adding the options uid=mikkel,guid=mikkel where
you substitute mikkel with the correct (g)uid. You can find those with
the "id" command, when logged in as mikkel, or by reading the
/etc/groups and /etc/passwd files.
The default permissions are set with umask variable, umask=002 is pretty
standard.
The result would be something like:
/dev/hda5 /mnt/win vfat user,uid=1001,guid=501,exec,umask=002 0 0
The mount option "user" means the partition isn't mounted at boot, but
can be mounted by any user as needed. Other would be to use the option
"auto" the partition is then mounted at boot.
The "umask" works like this. By default files are created with
permissions set as " 666 - umask" and directories will have permissions
" 777 - umask" so an umask value of 023 will set the permissions of all
files you create by default to 643 = "-rw-r---wx" and directories to
754 = "drwxr-xr--" Most common default umask=022.
The octal number for permissions are as follows:
The first number is the user permissions, which hold for the user owning
the file. Second number defines the group permissions, which hold for
all members of the group owning the file. And the third the "world"
permissions, for everyone who isn't covered by the first two.
The number is an increment for the possible perms,
1 make the the file execuatble
2 write permissions
3 = 1 + 2 = executable + writeable
4 read permissions.
5 = 1 + 4 = executable + read
6 = 2 + 4 = read + write
7 = 1 + 2 + 4 = executable + read + write
So now the windows partition is owned by a user and a group which both
have read and write permissions on the windows disk. You do not want
every one to be able to write there, imagine someone rewriting
win32.dll.
I would imagine that samba runs not as root but as a process under a
different UID/GUID I don't have it running myself. Make the samba user
a member of the group that has read/write permissions on the windows
partition.
I also seem to remeber that you can use the samba configuration file can
be used to set more finegrained permissions for the directories on the
windows partition for samba users.
--
If a trainstation is the place where trains stop, what is a workstation?
========================================================================
Herman Bruijn website: http://hermanbruijn.com
The Netherlands
------------------------------
From: "<toor>" <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.install,linux.redhat.misc
Subject: Re: LFS (Linux From Scratch)
Date: Fri, 6 Apr 2001 09:33:35 -0400
So I should try Debian then? Debian is similar to LFS?
Brian Bisaillon wrote in message ...
>I made my own Linux distribution and even though it was very time consuming
>it was an extremely rewarding experience. My Linux distribution is powering
>a few servers right now as a matter of fact :-) Check out
>irc.linuxfromscratch.org and you can get in touch with the main guys! I
used
>to hangout there all the time although I haven't been in quite a while...
>
>"<toor>" <[EMAIL PROTECTED]> wrote in message
>news:9aiihk$o33$[EMAIL PROTECTED]...
>> I am thinking of making my own linux system, is it worth the trouble. I
>> checked out the documents from http://www.linuxfromscratch.com/
>>
>> Thanks
>>
>>
>>
>
>
------------------------------
From: "Andrey Shcherbina" <[EMAIL PROTECTED]>
Subject: Re: hdb boot
Date: Fri, 6 Apr 2001 09:52:38 -0400
No, I don't use NT loader. On boot it says MBR, then LILO and bunch of "01"
or just LI and stuck.
I'll try your suggestions, thanks.
"Eric" <[EMAIL PROTECTED]> wrote in message
news:9ahpif$hlg$[EMAIL PROTECTED]...
> First of all, how do you boot linux?
> through the NT loader? Or are have you changed the
> bootorder in the BIOS?
>
> If it is the latter, add to lilo.conf
>
> disk=/dev/hdb
> bios=0x80
> disk=/dev/hda
> bios=0x81
> disk=/dev/hdc
> bios=0x82
>
> The numbers depend on what your BIOS does when you
> choose to boot from hdb. I suppose it will number as above,
> but cannot be sure. It doesn't hurt to try though.
>
> > cat /etc/lilo.conf returned the following (I left only few lines that
> > matter):
>
> let's hope you're right.
> I'd rather see it all, and then decide what matters
>
> > lba32
> > boot=/dev/hdb3
>
> And you're sure that nothing was written to hdb's MBR?
> If there's an old/incorrect piece of LILO code, it could be the cause.
> I'd try to run `/sbin/lilo -v` once more. See if that changes anything.
> (Something may have gone wrong the first time).
>
> If it stil doesn't boot, change the line to boot=/dev/hdb
> and rerun `/sbin/lilo -v`
>
> <snip>
>
> The rest looks good.
>
> Eric
>
>
------------------------------
From: "J. E. Garrott Sr" <[EMAIL PROTECTED]>
Subject: Re: LFS (Linux From Scratch)
Date: Fri, 06 Apr 2001 05:56:13 -0700
"" wrote:
>
> I am thinking of making my own linux system, is it worth the trouble. I
> checked out the documents from http://www.linuxfromscratch.com/
>
> Thanks
I found it was. I run a triple boot system --
Slackware7.1, LFS, and (cough, cough) W98. The
experience gained in building the LFS system
has been invaluable. (Besides being loads of fun :)
John
------------------------------
From: "J. E. Garrott Sr" <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.install,linux.redhat.misc
Subject: Re: LFS (Linux From Scratch)
Date: Fri, 06 Apr 2001 06:04:57 -0700
"" wrote:
>
> So I should try Debian then? Debian is similar to LFS?
>
SNIP
Actually, no. Debian is a distribution that contains
everything that the Debian folks thought necessary.
The LFS manual only guides you through just barely
enough to get a minimally usable system running
(No X window, no ghostscript, etc). When you finish
the book, you will have something resembling MSDOS
before Windows came along. It's up to you to add
all the rest of the stuff you consider necessary
for a good working system.
LFS does take a lot of work (and some patience :)
but you get a system taylored to you. I don't
really recommend it for a total newbie. Use
Slackware, or Debian, or Redhat, or SUSE, etc for
a year or so, until you have some understanding of
what goes on in a Linux system. Then go to LFS
and "roll your own".
John
------------------------------
From: "Kenny@BUI" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: cdrom does not mount.
Date: Fri, 6 Apr 2001 10:10:13 -0400
thank you for responding.
kenny.
------------------------------
From: "Kenny@BUI" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: cdrom does not mount.
Date: Fri, 6 Apr 2001 10:28:30 -0400
where do i put these or type it in.
/home/user>cat /proc/ide/hda/model
Maxtor 90645D3
/home/user>cat /proc/ide/hdc/model
NEC CD-ROM DRIVE:288
Try these on your system to see where the CDROM is attached.
Then see if the link /dev/cdrom still exists, and points to the correct
device
------------------------------
From: "ne..." <[EMAIL PROTECTED]>
Subject: Re: ATI Radeon
Date: Fri, 06 Apr 2001 14:27:36 GMT
On Apr 6, 2001 at 15:09, Olivier Colliot eloquently wrote:
>Hi
>
>Does anybody know a distribution that supports ATI Radeon
Surely asking ATI would be more profitable. I assume your
problem is with X. Check out the XFree86 site and see what
they say.
--
Registered Linux User # 125653 (http://counter.li.org)
"Little else matters than to write good code."
-- Karl Lehenbauer
10:22am up 20 days, 10:22, 8 users, load average: 0.00, 0.00, 0.00
------------------------------
From: [EMAIL PROTECTED] (Accesnonautorise)
Date: 06 Apr 2001 14:33:58 GMT
Subject: Re: Loading modules at startup
Thank you.
>Subject: Re: Loading modules at startup
>From: "ne..." [EMAIL PROTECTED]
>Date: 06/04/01 13:58 Paris, Madrid (heure d'�t�)
>Message-id:
><[EMAIL PROTECTED]>
>
>On Apr 6, 2001 at 11:02, Accesnonautorise eloquently wrote:
>
>>Hi,
>>
>>I'd like to load the following modules at startup:
>>bttv.o
>>tuner.o
>>msp3400.o
>>Instead of logging as root and typing /sbin/modprobe <modulename> at every
>>startup, could Linux automatically load them, and then unload when shutting
>>down ?
>That's what rc.local is for.
>
>--
>Registered Linux User # 125653 (http://counter.li.org)
>Whitehead's Law:
> The obvious answer is always overlooked.
> 7:53am up 20 days, 7:53, 8 users, load average: 0.00, 0.00, 0.00
>
>
>
>
>
>
>
------------------------------
From: [EMAIL PROTECTED] (David Efflandt)
Subject: Re: buiding router and firewall with SUSE 7.1
Date: Fri, 6 Apr 2001 14:41:03 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]
On Tue, 03 Apr 2001 14:54:45 GMT, Jon Levesque <[EMAIL PROTECTED]> wrote:
>Check, ip_forwarding is turned on!
>
>What does SuSEconfig do by the way, I ran it, really don't know what it
>accomplished.
It coordinates everything according to rc.config, and other config scripts
(like firewall.rc.config). You don't need to do it if making changes with
YaST or YaST2 which do it automatically when you complete any settings
changes with it.
Your routing appears to be correct now, or at least similar to what it
looks like when I have ppp0 and eth0 up in place of your eth0 and eth1
respectively. However, I don't know netmasks.
I don't know if you need aliases on eth0 for your eth1 internet IPs.
Perhaps you need to set up /etc/rc.config.d/firewall.rc.config with your
internal "internet" IPs or range as a DMZ and START_FW in rc.config. But
I only masquerade a private LAN and allow certain ports in from
FW_DEV_WORLD.
>"David Efflandt" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> On Mon, 02 Apr 2001 15:46:34 GMT, Jon Levesque <[EMAIL PROTECTED]>
>wrote:
>> >Hello,
>> >
>> >I've installed a base system of SUSE 7.1 with two nics. eth0 and eth1.
>I
>> >have Ip_forwarding enabled but routing does not seem to be working. My
>> >routing table is below.
>> >
>> >Protected servers sit on eth1, T1 on eth0. On the suse box I can ping
>any
>> >machine on eth1 and any site on eth0. But from machines on the eth1 side
>I
>> >cannot ping across the suse box. eth1 has ip 204.83.38.4 and eth0 has ip
>> >204.83.38.3 and gateway is 204.83.38.1. clients have ip 204.83.38.4 as
>their
>> >gateway and can ping it successfully, but as I said not across.
>> >
>> >Destination Gateway Genmask Flags Metric REF UseIface
>> >
>> >204.83.38.1 0.0.0.0 255.255.255.255 uh 0 0 eth0
>> >
>> >204.83.38.0 0.0.0.0 255.255.255.128 u 0 0 eth1
>> >
>> >0.0.0.0 204.83.38.1 0.0.0.0 UG 0 0 eth0
>>
>> cat /proc/sys/net/ipv4/ip_forward
>>
>> If that is 0 instead of 1, ip forward is not enabled. Check the
>> IP_FORWARD setting in /etc/rc.config. Then run SuSEconfig.
>>
>> --
>> David Efflandt [EMAIL PROTECTED] http://www.de-srv.com/
>> http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
>> http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
>
>
--
David Efflandt [EMAIL PROTECTED] http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
------------------------------
From: "Roman Badertscher" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Time server setup
Date: Fri, 6 Apr 2001 16:48:08 +0200
"Kerry Cox" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I'm looking to create a ntpd or ntpdate time server running Red hat
[snip]
Meinberg, a company in Germany, offers an NTP time server solution which is
based on Linux.
We have used the solution for a customer and it works very well.
See http://www.meinberg.de/english/products/lantime.htm for more info.
Roman
------------------------------
** 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.setup.
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-Setup Digest
******************************