Re: Problems Installing X

2001-03-07 Thread Stefan Srdic

[EMAIL PROTECTED] wrote:


Hi,
I had installed Storm Linux which is based on potato and tried to upgrade
by using the unstable distribution.  I got the following error after
upgrading to XFree86 version 4.02...  "cannot stat etc/X11/X"   I then made
boot floppies and installed a completely clean install by using boot
floppies, reinitializing the partition and using dselect to install from
the unstable distribution but received the same error.  I read over the
HowTo's but couldn't find anything that would help.  I ran xf86config but
nothing seems to fix it.  What is the next step?

David




I had a problem when I installed the XFree86-4.0.2 binaries over the 
default 3.3.6 release that comes with Patato. The problem that I was 
encountering was that the X Font Server would literally freeze the 
system at boot time or when switching run levels. TO fix this I had to 
mv the xfs init script to the root users directory so that the X Font 
Server would no longer initialize.




DNS caching only name server: 1 simple question

2001-03-07 Thread Stefan Srdic
I've recently learned how-to configure BIND as an DNS caching-only server.
So far the DNS caching server configuration of BIND has proven to be awesome!! 
 That combined with a few TCP/IP tweaks in the /proc filesystem and this 
 Penguin flys :-D


Throughout my testing I've only encountered one problem. Perhaps some of you might have some advice on it.


In order to query the local DNS caching server you must change some of the 
 resolver library settings in /etc/resolv.conf. Basically, you set up your 
 local IP address (127.0.0.1) as the primary nameserver on your network.
   

It looks like this once I'm done with it:


domain telusplanet.net

search telusplanet.net

nameserver 127.0.0.1

nameserver 199.185.220.36

nameserver 199.185.220.56


The problem that I am encountering is that whenever I reboot, my ISP's DHCP 
 server re-assigns the nameserver IP addresses, even though the IP's of my
 ISP's DNS servers are static!!

 This in affect re-writes  the /etc/resolv.conf file to:


nameserver 199.185.220.36

nameserver 199.185.220.52

nameserver 199.80.55.1


The only resources that I've read on BIND was the DNS HOW-TO over at www.linuxdoc.org and the chapter on DNS configuration in the Linux Network Administrators Guide. None of which address this issue. Any ideas?


Thanks

Stef




Re: DNS caching only name server: 1 simple question

2001-03-08 Thread Stefan Srdic

MaD dUCK wrote:


also sprach Phil Brutsche (on Wed, 07 Mar 2001 10:27:54PM -0600):


The problem that I am encountering is that whenever I reboot, my ISP's
DHCP  server re-assigns the nameserver IP addresses, even though the
IP's of my ISP's DNS servers are static!!



if you are using dhcpcd as your dhcp client, add -R to the OPTIONS
line in /etc/dhcpc/config.

martin

[greetings from the heart of the sun]# echo madduck@ !#:1:[EMAIL PROTECTED]|tr -d " 
"


Thanks for the advice, I was going to attempt to write a scrit that 
would edit /etc/resolv.conf for me but I figure that editing my DHCP 
client settings would be a lot simpler.


I still consider myslef a newbie when it comes to Linux, I've been using 
Linux for less then one year. Anyway, I found out that my system is 
running pump to configure my host via DHCP. Where would I find 
information on pump, and how could I configure it for my setup?




Loading SB16 modules...

2000-12-22 Thread Stefan Srdic
I have a Creative Vibra 16x (Sound Blaster 16) that I'm trying to 
configure so that I can listen to music in Debian. Where do I find the 
proper kernel modules for my card and how do I load them in Debian?


I know which IRQ, DMA 8 and DMA 16 plus I/O that the card uses but do 
not no which module[s] are needed to load this card.


Any suggestions?

Thanks

Stef



Re: Loading SB16 modules...

2000-12-24 Thread Stefan Srdic
Michael Steiner wrote:

> You will find my config, below, just change io irq and dma's to your
> needs.
> If it is an ISA card like my one see the isapnp.conf file too.
>
> Michael
>
> --
> Michael Steiner, Minorgasse 35, A-1140 Vienna, Austria
>
> in /etc/modutils/sb
>
>options sb io=0x220 irq=5 dma=1 dma16=5
>
> in /etc/modules
>
>soundcore
>sound
>uart401
>sb
>...
>
> in /etc/isapnp.conf
>
> ##
> # VIBRA16
> ##
>
> (READPORT 0x0273)
> (ISOLATE PRESERVE)
> (IDENTIFY *)
> (VERBOSITY 2)
> (CONFLICT (IO FATAL)(IRQ FATAL)(DMA FATAL)(MEM FATAL)) # or WARNING
> # SB 16 and OPL3 devices
> (CONFIGURE CTL0070/-1 (LD 0
> (INT 0 (IRQ 5 (MODE +E)))
> (DMA 0 (CHANNEL 1))
> (DMA 1 (CHANNEL 5))
> (IO 0 (SIZE 16) (BASE 0x0220))
> (IO 1 (SIZE  2) (BASE 0x0330))
> (IO 2 (SIZE  4) (BASE 0x0388))
> (NAME "CTL0070/-1[0]{Audio   }")
> (ACT Y)
> ))
>
> # Joystick device - only if you need it :-/
>
> (CONFIGURE CTL0070/-1 (LD 1
> (IO 0 (SIZE 1) (BASE 0x0200))
> (NAME "CTL0070/-1[1]{Game}")
> (ACT Y)
> ))
> (WAITFORKEY)

Thanks for the info, I edited /etc/modules and /etc/modutils/sb along with
/etc/isapnp.conf and could not get my sound card initialized.

Here's a clip from dmesg:

Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996
SB 4.16 detected OK (220)
sb: Interrupt test on IRQ7 failed - Probable IRQ conflict

At first I thought that my sound card was fighting over my winmodems IRQ, so I
removed the winmodem from my computer. I later received the same error message 
at
boot time.

Here a clip from cat /proc/interrupts

  CPU0
  0:  39755  XT-PIC  timer
  1:   1527  XT-PIC  keyboard
  2:  0  XT-PIC  cascade
  7:  2  XT-PIC  soundblaster
  8:  1  XT-PIC  rtc
  9:914  XT-PIC  eth1
 10:   1570  XT-PIC  eth0
 12:  32798  XT-PIC  PS/2 Mouse
 13:  1  XT-PIC  fpu
 14: 108499  XT-PIC  ide0
 15: 14  XT-PIC  ide1
NMI:  0

As you can see the soundblaster card has attached itself to IRQ 7 (its a PnP
card). This should be no problem since I have mostly PCI hardware (besides the
soundcard) and I'm running PnP BIOS. Is there any way I can auto-detect my sound
card's hardware settings so that I can use those options for the sb module?

Stef



Creative Ensoniq modules..

2001-01-14 Thread Stefan Srdic
I just upgraded my sound card from an Vibra 16x to a Creative Ensoniq
PCI. My question is, which modules do I need to use this card. I know
that the es1371.o module will work with the card, but what other modules

do I need to load in order to play midi and wave files and to listen to
audio CDs?

Thanks

Stef



Re: Creative Ensoniq modules..

2001-01-14 Thread Stefan Srdic
mike wrote:

> Well i use es1371 also, but lsmod only shows es1371. In any case you
> can try modprobe es1371 and it will automatically load any dependencies.
> Its been working with gtcd and XMMS for mp3.

I get an (unused) remark beside my es1371 module after listing the currently
loaded modules.

Module  Size  Used by
af_packet   6040   0  (autoclean)
serial 19564   0  (autoclean)
autofs  9088   0  (unused)
parport_pc  7236   0  (unused)
parport 7280   0  [parport_pc]
es1371 25344   0  (unused)
sound  57592   0  (unused)
soundcore   2628   7  [es1371 sound]
soundlow 416   0  [sound]
ne2k-pci4072   1
83906036   0  [ne2k-pci]
3c59x  18656   1
ide-scsi7080   0
unix   10212  88  (autoclean)

At first I though that the modules where conflicting with the old soundblaster
modules (sb), I removed their configuration files from /etc/modutils and added
one for the es1371 module then re-ran module-update. I have specified the io
port and irq that the device is using in the option file. I found this
information by doing a cat /proc/pci | more. I just dont understand why the
module is not detecting the PCI card. Any advice on how to solve this?

Stef






Re: Creative Ensoniq modules..

2001-01-15 Thread Stefan Srdic
"Francisco M . Neto" wrote:

> » mike said this and I say that:
>
> > On at 11:39 on Sun 14 Jan, Stefan Srdic wrote:
> > > mike wrote:
> > >
> > > > Well i use es1371 also, but lsmod only shows es1371. In
> > any case you
> > > > can try modprobe es1371 and it will automatically load any dependencies.
> > > > Its been working with gtcd and XMMS for mp3.
> > >
> > > I get an (unused) remark beside my es1371 module after listing the
> > currently loaded modules.
>
> I also use es1371, and `lsmod` gives me sound, soundcore and
> es1371 itself. When I do `modprobe es1371` it loads those ones.
> Everything is working fine. I'm using linux 2.4.0.
>
> --
> []'s,
>
> francisco m. neto
>
> "Some nice quote goes here."
> -- myself
>

I've had no luck whatsoever trying to initialize my sound card through those
modules (es1371, sound, soundcore) I attempted to configure the device through
the ALSA-Configurator (deb package = alsaconf). From what the support
documentation says, I should only load the ALSA modules and no others for the
card. After I configured the device using alsaconf I found the following in my
modules.conf file:

### update-modules: start processing /etc/modutils/alsa

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 0.4.2 ---
alias char-major-116 snd
alias snd-card-0 snd-card-ens1371
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm1-oss
alias sound-service-0-12 snd-pcm1-oss
options snd snd_major=116 snd_cards_limit=1 snd_device_mode=0660
snd_device_gid=29 snd_device_uid=0
options snd-card-ens1371 snd_index=1 snd_id=Ensoniq snd_dac1_frame_size=68
snd_dac2_frame_size=68 snd_adc_frame_size=68
# --- END: Generated by ALSACONF, do not edit. ---

With all of this I still can't get my sound card to work, I do know that the
device works because I have ran esd and heard the sample that plays. But I cant
used any programs like XMMS or CD playing software. What gives?

Stef





Re: Creative Ensoniq modules..

2001-01-15 Thread Stefan Srdic
"John S. J. Anderson" wrote:

> Permissions problem on /dev/dsp? User not in audio and/or cdrom
> groups?
>
> john.

Thank you so much for your words of wisdom :-D I edited the /etc/group file and
inserted my user name beside the audio group. I've been able to access my 
Ensoniq
card ever since..

I've been studying for my LPI certification, I used to using Mandrake but I 
found
that that distro did too much for me and never allowed me to learn the basics.
With Debian, I'm constantly learning new ways of accomplishing things and 
solving
my problems.

I love it :-D

Thanks

STef




/proc filesystem information??

2001-01-18 Thread Stefan Srdic

--- Begin Message ---
Where can I find information on the hardware settings and certain
software settings (swap space, TCP/IP) settings that are run-time
configurable in the /proc filesystem?

I know of a few (listed below) settings that improve TCP/IP transfer
speed, but I have noticed a lot more settigns that I can play with, only
I have no documentation on these settings.

Does anybody have any recomendations on where I can find factual
information on these settings?


Stef




TCP/IP settings that I have played with so far :-D

# Set TCP FYN packet timeout value
echo '30' > /proc/sys/net/ipv4/tcp_fin_timeout
# Set TCP socket keepalive time
echo '1800' > /proc/sys/net/ipv4/tcp_keepalive_time
# Enable TCP Window Scaling
echo '1' > /proc/sys/net/ipv4/tcp_window_scaling
# Enable selective acknowlegments
echo '1' > /proc/sys/net/ipv4/tcp_sack
# Enable TCP timestamps
echo '1' > /proc/sys/net/ipv4/tcp_timestamps
# Set default and maximum Rx to 64KB
echo '65535' > /proc/sys/net/core/rmem_default
echo '65535' > /proc/sys/net/core/rmem_max
# Set default and maximum Tx to 64KB
echo '65535' > /proc/sys/net/core/wmem_default
echo '65535' > /proc/sys/net/core/wmem_max
#

--- End Message ---


X Font Server problems

2001-01-21 Thread Stefan Srdic
I'm running Debian 2.2 (Patato, I think :-D) at home. I recently
upgraded from XFree86-3.3.6 to XFree86-4.0.2

I installed XFree-4.0.2 from the binaries available at ftp.xfree86.org.
Installing the new X server was pretty straightforward and simple. I had
only one minor bug to deal with after the ordeal.

For some reason, after I installed the new version of XFree86 my Debain
box would freeze at boot time when attempting to load the xfs (x font
server). To work around this I had to boot into single user mode and
move the /etc/init.d/xfs file into my root directory. Now, when
switching runlevels the symbolic links found in /etc/rc[1-6].d are
broken and my Debian box no longer freezes.

My questions are:

Is this a bug in the xfs code? Or, is this a configuration problem
between Debian and XFree86? And, what should I do to perminetly fix this
problem?

Thanks

Stef



fstab entry for cd-rw device?

2001-01-24 Thread Stefan Srdic
I'm trying to get my cd-burner working under Debian 2.2. I've configured
my system so that the ide-scsi module is loaded at boot time and I've
also added the "hdd=ide-scsi" parameters to my LILO configuration.

I know that the module is loaded and functional because I can see the
following when reading the boot prompt. ->

scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.

However, I'm not sure which paramaters to add in the /etc/fstab file. My
thoughts are to add something like the following:

#

/dev/scd0 /cdburneriso9660
defaults,user,noauto00

Will this work? Or is there a better way to mount my cd-rw?





Re: fstab entry for cd-rw device?

2001-01-27 Thread Stefan Srdic
Thanks for all of your replys guys. I still have been unable to get my cd-rw
working under Linux. I think that the ide-scsi module is conflicting with 
another
scsi module at boot-time. (*see dmesg output at the end of this message)

Why this module is loading I have no idea, I do not have any scsi hardware and 
do
not load any scsi modules at boot time besides the scsi emulation module
(ide-scsi).

I can mount the device as /dev/hdc but cannot mount it as /dev/cdrom or even
/dev/scd0.  The error messages I receive are:

mount: the kernel does not recognize /dev/scd0 as a block device
   (maybe `insmod driver'?)
or

mount: the kernel does not recognize /dev/cdrom as a block device
   (maybe `insmod driver'?)

This puzzles me too since ide-scsi is loaded according to lsmod:

sg 15320   0  (autoclean) (unused)
ip_masq_raudio  2936   0  (unused)
ip_masq_ftp 2456   0  (unused)
af_packet   6040   0  (autoclean)
serial 19564   0  (autoclean)
ide-scsi7080   0
autofs  9088   0  (unused)
nvram   3460   0  (unused)
es1371 25344   1
soundcore   2628   4  [es1371]
ne2k-pci4072   1
83906036   0  [ne2k-pci]
3c59x  18656   1
unix   10212  81  (autoclean)

cdrecord -scanbus does not reveal my cd-rw as well. I'm I missing some
configurations for the ide-scsi module in /etc/modules.conf ? Do I need to
recompile the kernel and exclude native scsi support, or can I simply turn it 
off
by adding some syntax to /etc/modules.conf?

I'm running out of ideas here and would apreciate all the help you can give me.


Thanks

Stef


Linux version 2.2.17 ([EMAIL PROTECTED]) (gcc version 2.95.2 2313 (Debian
GNU/Linux)) #1 Sun Jun 25 09:24:41 EST 2000
Detected 553884 kHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1104.28 BogoMIPS
Memory: 126984k/131008k available (1732k kernel code, 416k reserved, 1736k data,
140k init)
Dentry hash table entries: 16384 (order 5, 128k)
Buffer cache hash table entries: 131072 (order 7, 512k)
Page cache hash table entries: 32768 (order 5, 128k)
VFS: Diskquotas version dquot_6.4.0 initialized
CPU: L1 I Cache: 64K  L1 D Cache: 64K
CPU: L2 Cache: 512K
CPU: AMD Athlon(tm) Processor stepping 01
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.35a (19990819) Richard Gooch ([EMAIL PROTECTED])
PCI: PCI BIOS revision 2.10 entry at 0xfd9e1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Enabling I/O for device 00:00
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
TCP: Hash tables configured (ehash 131072 bhash 65536)
Starting kswapd v 1.5
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.13)
apm: disabled on user request.
Real Time Clock Driver v1.09
RAM disk driver initialized:  16 RAM disks of 4096K size
loop: registered device at major 7
VP_IDE: IDE controller on PCI bus 00 dev 21
VP_IDE: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio
hda: Maxtor 92041U4, ATA DISK drive
hdc: ZIPCD 4x650, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: Maxtor 92041U4, 19541MB w/512kB Cache, CHS=2491/255/63
hdc: ATAPI 24X CD-ROM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.11
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
md driver 0.36.6 MAX_MD_DEV=4, MAX_REAL=8
scsi:  Detection failed (no card)
NCR53c406a: no available ports found
sym53c416.c: Version 1.0.0
Failed initialization of WD-7000 SCSI card!
IBM MCA SCSI: No Microchannel-bus support present -> Aborting.
megaraid: v107 (December 22, 1999)
aec671x_detect:
3w-: tw_findcards(): No cards found.
scsi : 0 hosts.
scsi : detected total.
Partition check:
 hda: hda1 hda2 hda3 < hda5 hda6 hda7 hda8 hda9 >
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 140k freed
NET4: Unix domain sockets 1.0 for Linux NET4.0.
Adding Swap: 96352k swap-space (priority -1)
3c59x.c:v0.99H 12Jun00 Donald Becker and others
http://www.scyld.com/network/vortex.html
eth0: 3Com 3c900 Cyclone 10Mbps TPO at 0xd400,  00:50:da:7a:f7:c5, IRQ 10
  8K byte-wide RAM 5:3 Rx:Tx split, 10baseT interface.
  Media override to transceiver type 0 (10baseT).
  Enabling bus-master transmits and whole-frame receives.
ne2k-pci.c:vpre-1.00e 5/27/99 D. Becker/P. Gortmaker
http://cesdis.gsfc.nasa.gov/linux/drivers/ne2k-pci.html
ne2k-pci.c: PCI NE2000 clone 'RealTek RTL-8029' at I/O 0xd000, IRQ 9.
eth1: RealTek RTL-8029 found at 0xd000, IRQ 9, 00:60:67:3

Re: fstab entry for cd-rw device?

2001-01-27 Thread Stefan Srdic
"David B. Harris" wrote:

> Try adding the following parameters to your kernel:
>
> ignore=hdc hdc=ide-scsi
>
> You can do this with lilo.conf's:
>
> append="ignore=hdc hdc=ide-scsi"
>
> Or right at the boot prompt.
>
> David Barclay Harris, Clan Barclay
> Aut agere, aut mori. (Either action, or death.)
>

I have added both of those arguments to my append line in the /etc/lilo.conf
file.  I still cannot get my cd-rw working, one thing I have noticed is that
when the ide-scsi module is loaded at boot time it does not list or detect my
cd-rw. How can I correct this?



Kernel compiling questions....

2001-01-28 Thread Stefan Srdic
I got the source, I've read some of the kernel documentation, now its
time to compile this thing.

I've got a few questions though. Currently I'm running Debian 2.2 with
Helix Gnome and XFree86-4.0.2. I'm running this self-modified distro on
a Asus K7M mobo with an Athlon 550Mhz cpu/128MB of RAM.

For perephirals I got a Voodoo 3 PCI, a Creative Ensoniq, 3Com Vortex
10Mbs NIC and an A-Open NE2k-pci compatible NIC (cat pci shows it as a
Realtek 8029). And I also happen to have a Maxtor ATA-66 HDD (Maxtor
92041U4) and a iOmega 2x2x24 CD-RW (ZIPCD 4x650)

My goal is to compile a kernel which performs greatly but is also very
small with only the basic requirements compiled into the kernel and
everything else compiled as modules.

So far I've decided on compiling support for my CPU (Athlon/K7), Chipset
(VIA 82C586), and primary network interface (Vortex) directly into the
kernel.  I also plan on compiling PCI and EISA PnP support along with
AGP support so that I will not have to recompile the kernel when I
upgrade some of my hardware.

I'm not sure if I should compile support for my harddrive, floppy and
CD-RW directly into the kernel or as modules. I do know that I will be
compiling support for my Voodoo 3, Ensoniq, and Realtek NIC as modules.

What should compiled directly into the kernel, and what should be
compiled into modules? Are there some modules that can be left out all
together if I'll never use that sort of hardware with Linux (ie: USB)

Thanks

Stef



So close, yet so far....

2001-01-28 Thread Stefan Srdic
I'm in the middle of compiling the new 2.4.0 kernel. However I'm running
into some minor problems when attempting to compile the new kernel
modules. When I try to compile the kernel modules I get a weird error
and a sudden exit.

I've pipe the standard output of my compiling attemp and attached it to
this message. Can one of you guru's out there help me with this one.
This is the first kernel that I've attempted to compile and feel that
I'm almost there. I just need a little advice from the Debian
collective.

Thanks

Stef
make -C  kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux/include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe 
-mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE 
-DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h" 
MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux/kernel'
make -C  drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux/include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe 
-mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE 
-DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h" 
MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux/drivers'
make -C block modules
make[2]: Entering directory `/usr/src/linux/drivers/block'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux/drivers/block'
make -C cdrom modules
make[2]: Entering directory `/usr/src/linux/drivers/cdrom'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux/drivers/cdrom'
make -C char modules
make[2]: Entering directory `/usr/src/linux/drivers/char'
make -C agp modules
make[3]: Entering directory `/usr/src/linux/drivers/char/agp'
ld -m elf_i386  -r -o agpgart.o agpgart_fe.o agpgart_be.o
make[3]: Leaving directory `/usr/src/linux/drivers/char/agp'
make -C drm modules
make[3]: Entering directory `/usr/src/linux/drivers/char/drm'
ld -m elf_i386 -r -o tdfx.o tdfx_drv.otdfx_context.o 
drmlib-mod.a
make[3]: Leaving directory `/usr/src/linux/drivers/char/drm'
make[2]: Leaving directory `/usr/src/linux/drivers/char'
make -C ide modules
make[2]: Entering directory `/usr/src/linux/drivers/ide'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux/drivers/ide'
make -C md modules
make[2]: Entering directory `/usr/src/linux/drivers/md'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 
-march=i686 -malign-functions=4  -DMODULE -DMODVERSIONS -include 
/usr/src/linux/include/linux/modversions.h   -c -o lvm.o lvm.c
lvm.c: In function `lvm_do_vg_extend':
lvm.c:2024: warning: implicit declaration of function 
`lvm_do_create_proc_entry_of_pv'
lvm.c: In function `lvm_do_create_proc_entry_of_lv':
lvm.c:3016: `pde' undeclared (first use in this function)
lvm.c:3016: (Each undeclared identifier is reported only once
lvm.c:3016: for each function it appears in.)
lvm.c: At top level:
lvm.c:3044: warning: type mismatch with previous implicit declaration
lvm.c:2024: warning: previous implicit declaration of 
`lvm_do_create_proc_entry_of_pv'
lvm.c:3044: warning: `lvm_do_create_proc_entry_of_pv' was previously implicitly 
declared to return `int'
lvm.c: In function `lvm_do_create_proc_entry_of_pv':
lvm.c:3050: `pde' undeclared (first use in this function)
lvm.c: At top level:
lvm.c:147: warning: `lvm_short_version' defined but not used
make[2]: *** [lvm.o] Error 1
make[2]: Leaving directory `/usr/src/linux/drivers/md'
make[1]: *** [_modsubdir_md] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [_mod_drivers] Error 2


Using Linux to automate Win9x installations.

2001-02-04 Thread Stefan Srdic
I've recently gotten a contract with a "rent to own" company in the
city. I will be verifying computer hardware and installing the operating
system (Win9x) on all of the computers that they deal with.

My goal is to write an installation floppy that will handle the entire
installation process.  The floppy will be responsible to boot the
computers into real-mode (MS-DOS) and connect to my Linux host via
serial ports. On my Linux host I will have a "master image" of the
operating system CD and a Windows installation script. Once connected
the computers will access an installation script that will start an
automated Windows installation over the serial cables This will enable
me to start multiple OS installations at once and periodically check on
them all.

Why go with serial cable? Because most of the computers will not be
equiped with ethernet cards. I have though about purchasing Norton
Ghost, but I will be dealing with multiple version of the Windows
operating system as well as several different hardware configurations.

I already made a few serial cables using low capacitance cable and a few
db9 and db25 connectors along with a few gender changers. I plan to get
an old 10Mbps ISA NIC that runs under Linux and plug it into my hub, I
then can use a few ethernet -> serial adapters and have up too 4
computers (4 ports on the HUB) running through the installation process
at once!!!

The best part is, I can configure my Linux host to masquerade the
internet to the computers. With that I can run Windows update and
install the apropriate drivers for the hardware too.

This idea of mine sounds great but I'm not sure if it will work. For
example, to connect to the Linux host via the serial ports I will need
some sort of serial network driver for MS-DOS, where do I find it? And,
what type of service will I need on my Linux hosts in order for the
DOS clients to mount network shares? Will I be able to configure the DOS
clients for TCP/IP networking?

Thanks in advance

Stef









Removing symbolic links...

2001-02-07 Thread Stefan Srdic
While attempting to get my CD-Burner up and operational under Debian, I
managed to muck up a few things under the /dev directory.

ls -l cdrom hdc scd0
lrwxrwxrwx1 root root4 Jan 24 15:08 cdrom -> scd0
lrwxrwxrwx1 root root9 Jan 27 08:50 hdc -> /dev/scd0

brw-rw1 root cdrom 11,   0 Jan 24 13:35 scd0


As you can see, I need to delete the symbolic that leads hdc to
/dev/scd0. How can I do this without further damaging my filesystem?

Stef





Re: Removing symbolic links...

2001-02-08 Thread Stefan Srdic
Ethan Benson wrote:

> looks like you replaced the /dev/hdc device node with a symlink, so
> just do the following to fix that:
>
> cd /dev
> rm -f hdc
> ./MAKEDEV hdc
>
> that should take care of it.
>
> --
> Ethan Benson
> http://www.alaska.net/~erbenson/
>
>   
>Part 1.2Type: application/pgp-signature

Thanks, I knew that I could remove /dev/hdc but I wasnt sure how to
reconstruct a /dev file. Anyways, now when I attemp to mount my cdrom I get
the following error message:

mount /dev/cdrom
mount: /dev/cdrom has wrong major or minor number

Any thoughts on this one?

Stef



Tmpfs questions

2001-06-21 Thread Stefan Srdic
I'm running Debian Patato with kernel 2.4.5.

I've been recently experimenting with mounting /tmp as a Tmpfs and I
have a few questions.

1. How do I control the size of a Tmpfs?

2. Is it recomended to mount /tmp as a Tmpfs by using the following in
fstab:

tmpfs/tmptmpfsdefaults00

or is there a better way of acomplishing this?

3. Can I use the same options for mounting a Tmpfs? ex: mount with
nosuid,noexec,nodev set?

Thanks

Stef



Re: Tmpfs questions

2001-06-22 Thread Stefan Srdic
Herbert Xu wrote:

> Stefan Srdic <[EMAIL PROTECTED]> wrote:
>
> > 2. Is it recomended to mount /tmp as a Tmpfs by using the following in
> > fstab:
>
> > tmpfs/tmptmpfsdefaults00
>
> Replace defaults with size= where  is some sane limit based
> on the amount of swap and RAM you have.

Thanks, I could'nt find any relative information for tmpfs on the web or in the
manual pages.

I reduced my tmpfs to 128MB with the size option. I had to add a k at the end of
my interger to specify a value in kilobytes.

Just another question, would it be more efficient to use a ramfs instead of a
tmpfs to mount /tmp onto?

Stef





RE: Auto starting iptables

2001-11-23 Thread Stefan Srdic


--
From:   Tzafrir Cohen[SMTP:[EMAIL PROTECTED]
Sent:   Friday, November 23, 2001 12:23 PM
To: Lance Levsen
Cc: John Mautz; debian-firewall@lists.debian.org; 
debian-user@lists.debian.org
Subject:Re: Auto starting iptables 

On Thu, 22 Nov 2001, Lance Levsen wrote:

> make an iptables script in /etc/init.d/iptables
> chmod 755 this file
>
> run $ update-rc.d iptables defaults 10 (not sure about this
> syntax, read the manpage.)

Note, however, that this script will be called again before you shut down
the computer (since K??rc.firewall will probably be created in both rc6.d
[reboot] and rc0.d [halt]) . In most cases there is nothing wrong with
running this script again before shutting down the interface.

Note that according to the debin policy, an init.d script should be able
to accept 'start', 'stop' and 'restart' as parameters and act accordingly.
There's nothing wrong with deviating from the debian policy for your
personal system, but then it is your job to guarantee that things still
work properly. Also see a message by me from a couple of weeks ago as to
why a 'real' init.d firewall script is a good idea.

Also note that debian made a strange (IMHO) decision to start networking
in the very first stage of the startup scripts: in rcS.d (see
/etc/rcS.d/README) . This means that if you have a network interface that
is configured through dhcp, then when you boot in 'single', that interface
is up, and the dhcp client is connecting to the daemon to accept
configuration (or stuck for 1/2 a minute if the network configuration is
screwed up)

(for those cases you have INIT=/bin/bash , but you should be careful with
that one, as it is easy to forget a filesystem mounted before you reboot)

This means that if you want to run a script before the network is up, you
have to put it in the very first stages of rcs.d .

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir


Just edit the /etc/init.d/networking rc script and make your iptables script 
executable from there. That way, when you stop networking services you can 
clear your firewall rules or reset them.

Stef



Creating an encrypted root filesystem.

2001-04-25 Thread Stefan Srdic
I'm running kernel 2.4.3 on patato with Helix Gnome 1.2 (want to move to
Helix Gnome 1.4 but there server is always busy).

Anyway, I've recently compile the Encrypted LoopBack Module from :

http://lwn.net/2001/0419/a/filecrypto.php3

and was wundering if it was possible to use it to encrypt my root
partition which is formated as ReiserFS?

The readme includes instructions on *creating* encrypted partitions and
filesystems but does not specify if it is possible to manipulate an
existing filesystem.

Does anybody have any insight?

Thanks

Stef



Creating an initrd

2001-05-08 Thread Stefan Srdic
I've compiled the 2.4.3 kernel on my patato box. I'm interrested in
creating my own initial RAM disk (initrd) to speed up my boot process.

Does anybody know of any good HOW-TO's on initrd's?

Does anybody have some insight to share?


Stef




Building SPICE3 deb packages.

2001-05-09 Thread Stefan Srdic
I know that SPICE3 is BSD software, and that it comes with the same
license as BSD, but I want to build a SPICE3 deb package so that I can
use it with Oregano from the unstable.

I've found some documentation on building deb packages out of SPICE3 at:

http://www.eda.ei.tum.de/~mcp/spicedeb/

and have attempted to compile it. However, when I try to
dpkg-buildpackage I get an funky error. I'm not experienced with
building Debian packages and would apreciate some assistance from you
developpers out there.

This is what I get bashed with:

NodeFilter:/home/stef/SPICE3/spice-3f5# dpkg-buildpackage -b -us -uc
dpkg-parsechangelog: error: cannot open debian/changelog to find format:
No such file or directory
dpkg-buildpackage: unable to determine source package
NodeFilter:/home/stef/SPICE3/spice-3f5#

I'm assuming that the error is related to dpkg-buildpackage. I beleive
that I need to create "debian/changelog" in order to compile this thing
as spice_3f5-1_i386.deb

Any thoughts?



Stef



Re: Creating an initrd

2001-05-09 Thread Stefan Srdic
Alvin Oga wrote:

> hi stefan...
>
> mkinitrd  ...
>
> or take an existing initrd.gz file...decompress it
> into /dev/ram  or /dev/loop
>
> than change the kernel to your version, add your libs/commands
> and other stuff you want in the initrd to make your system
> bootable
>
> and compress that /dev/loop image into  your_initrd.gz   and add that
> as your initrd image in lilo
>
> or so goes the simplified 3-line howto...
>
> either way...you need to make sure you have minixfs and /dev/ram enabled
> in your kernel to be able to create initrd files
>
> i created a full system in about 2.5Mb that expands into 8-16Mb of
> linux hierachy that runs in memory ( /dev/ramxx )
> ( put that on a 4Mb flash and you've got a nice firewall ?? )
>
> you can try tomsrtbt too but, its bash is too small as is its libraries
>
> have fun
> alvin

I though that its possible to use the ext2 filesystem to use with initrd>? Is 
there
an advantage of using the minixfs filesystem over the ext2 filesytem in this
application?

Anyway, I just want to make an initrd so that I can have etx2 and ReiserFS 
support
compiled as modules and also load a frame buffer module at boot time.

Most of this can be done through mkinitrd, the configuration file are a little
complicated though.


Stef



Re: Building SPICE3 deb packages.

2001-05-09 Thread Stefan Srdic
Carl Greco wrote:

> Take a look at SPICE OPUS ``SPICE with integrated OPtimization
> UtilitieS'' [http://fides.fe.uni-lj.si/spice/]
>
> --
> Carl Greco
> [EMAIL PROTECTED]
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Thanks, SPICE OPUS works great, its the only version of SPICE that I found that
actually compiles correctly!! The only downfall of it is that Oregano is a
front-end to SPICE ver3f4. You use the GUI to design your circuit and SPICE to
analise it.

I've tried using SPICE OPUS with Oregano, it just does'nt want to work properly.
Too bad, Oregano is a nice circuit design tool. But, it just isn't complete
without some sort of analysis program attached to it. Perhaps theres a way to
use ng-nice with it :-D

Stef



Re: How do I set route at boot time ?

2001-05-10 Thread Stefan Srdic
"Michael Janssen (CS/MATH stud.)" wrote:

> In Franck Routier's email, 10-05-2001:
> > Hello,
> >
> > I want to set up the route to a new box on my LAN.
> > If the route is not set, the connexion is refused (I think this is an otion
> > in the kernel networking configuration)
> >
> > Where should I put this route ?
> >
> >  From the docs I have found it should go in /etc/network/interfaces, but I
> > can't figure out what the syntax is...
> >
> > thanks,
> >
> > Franck
>
> taking a quick glance at interfaces(5), the most obvious thing for you
> to do would be to add a 'up' command that gets executed.  Then after
> the interface comes up you could have a short script that just calls
> `route` to set the correct route.  If it's a dynamic IP and route this
> might be a little tricky though.  There are other similar methods for
> 'down' to remove the routes..
>
> --
> Michael Janssen - Jamuraa - [EMAIL PROTECTED] - [EMAIL PROTECTED]
> GPG Fingerprint: 87F1 92C4 44AA 4105 B1C4  EDEC D995 9620 C00E 9159
>
>   
>Part 1.2Type: application/pgp-signature

I'm interrested in the same thing, only I want to be able to edit my routing
table upon startup to define the mss and window of my LAN and external gateway.
Is there some sort of text stream I can run through to accomplish this?

Stef



Re: UDMA with Kernel-2.4.3 and hdparm -X68

2001-05-10 Thread Stefan Srdic
mike polniak wrote:

> I just got a new Maxtor HD to go along with my IBM hd. With Kernel
> 2.4.3 and using >hdparm -d 1 to set DMA on, i get disk reads of 30MB/sec
> on the IBM. The Maxtor DiaMax UDMA (ATA 100) yields only 3 MB/sec.
> The IBM is auto detected at UDMA mode4. With the Maxtor i have to
> run >hdparm -X68 -d 1 to set the xfermode to UDMA mode4.But obviously
> it doesn't work (the drive info still says maxDMA=0(slow)).
>
> If i use Kernel 2.2.18pre21 the -X68 option of hdparm successfully
> enables the Maxtor to transfer at UDMA mode4 (about 33 MB/sec)
> even though the drive info still reports maxDMA=0(slow).
>
> Any thoughts on getting the Maxtor to be enabled with Kernel-2.4.3.
> Is this a known issue with DMA that will change in later kernels?
> Or should i just replace the Maxtor with another IBM?
>
>

Make sure that you have thre proper IDE chipset support compiled into your
kernel. You could also try the  ide0=ata100 flag at boot time to force ata100
transfer mode.




Re: bind problem

2001-05-10 Thread Stefan Srdic
Angel Parra wrote:

> Hello!
>
> I have a mini-router (linux) with ipmasq, and an internal server. My
> small server has the bind server, and on normal botting the bind server
> only servers the names filed on my own database ... but if I stop the
> bind server and start it again, it works fine. And it also works if I
> change the booting secuence of bind to be startted-up after network.
> What it's happening I am using Debian 2.2.
>
> Thank you for all
>
> Angel
>

Make sure you've edited /etc/resolv.conf to tell the resolver routines that your
localhost is also your nameserver.

I run bind (named) on my router, I have it configure as a caching-only
nameserver. One problem that I ran into is that whenever I would restart my
networking services my DSL providers DHCP server would re-write /etc/resolv.conf
and exclude my localhost from the equation. So, if your external IP is
configured via DHCP, edit your DHCP client configuration files to exclude DNS
configuration.

Stef



Re: funky hardware problem

2001-05-12 Thread Stefan Srdic
Monte Milanuk wrote:

> A while back I 'rescued' an old P5-133 w/ 16MB of RAM to be a firewall
> machine.  The original CDROM didn't work, so I replaced it w/ another, and
> replaced the HD w/ a WD 3.2GB HD.  Everything seemed to work ok for a while,
> but then the CD started acting up, i.e. whenever I inserted a disk, it would
> sit there blinking non-stop, unable to access the CD.  I robbed a CD drive
> out of another machine, same thing?!!?  Played musical chairs w/ the drives
> on the ide cables, the whole nine yards.  Nothing helped.  Suddenly, the HD
> started 'clunking' ominously.  Went and got a 'new' 1.2GB HD from the local
> computer shack for about $10-15, and magically everything worked perfectly.
> Played around w/ it for a while, messed w/ RH 6.2 on the system.  Now trying
> Debian 2.2r2 on it, and it worked ok, other than it took literally a day or
> so for it to crunch it's way thru the secondary install.  Ended up rebooting
> and installing the packages from dselect.  But, again, one CD wouldn't be
> recognized.  It was an extra, so I wasn't too worried.
>
> Now I'm to the point where ~50% of my CD's aren't recognized in the drive,
> regardless of whether they are Debian install CD's, RedHat, CDRW's, music
> CD's, whatever.
>
> Anyone w/ a good idea of WTF is going on her please let me know.  I'm at the
> end of my rope on this one.  This box is about one hop from the trash
> dumpster if it doesn't get fixed soon.  I've already expended far more in
> time/effort/material than what the stupid thing is worth.  Right now the
> only thing keeping me working on it is a grudge match sort of thing ;)
>
> TIA,
>
> Monte
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Well, your running an Pentium class system so that rules out improper jumper
settings on the hard drive controller :-D

Try to put the CD-ROM on its own IDE channel and configure it as the master
device. If that doesn't work try to diable the CD-ROM in the system BIOS and
then let Linux try to detect the device. Try passing a few arguments to LILO at
boot time (ex: ide1=autotune hdc=cdrom) and see what happens.


Stef



Re: 3c509B driver, trouble configuring

2001-05-14 Thread Stefan Srdic
Mithras wrote:

> : /lib/modules/2.2.17/net/3c509.o: invalid parameter parm_io

That error reports that the I/O parameter used is invalid. Your base address for
your card should read 0x210.

Test this by directly using the insmod command:

insmod 3c509 io=0x210 irq=11

If you see something like " Using /lib/modules/2.2.17/net/3c509.o"

You can also pass a few extra module parameters, check out the link below for
more information. Also read the module source, sometimes it can contain a few
extra settings as well :-D


http://www.scyld.com/network/vortex.html

Stef



Re: 3c509B driver, trouble configuring

2001-05-15 Thread Stefan Srdic
Bob Wilkinson wrote:

> Also see http://www.scyld.com/network/3c509.html

Sorry, I cut and pasted the wrong link...

>
>
> Only the IRQ and transceiver setting may be overridden when using
> the driver as a module. Setting two cards to 10base2/IRQ10 and
> AUI/IRQ11 is done by using the xcvr and irq module options:
>
>   options 3c509 xcvr=3,3 irq=10,11
>
> i.e. the option io *is not* available when the code is loaded as a
> module - hence the error. You may have to play with the values for
> xcvr - I think I got by with xcvr=3 irq=10 (but try xcvr=0 if this
> doesn't work).
>
> Bob
> --
> He who has the courage to laugh is almost as much a master of the world
> as he who is ready to die.
> -- Giacomo Leopardi

Usually, when you enter a I/O parameter incorrectly insmod cries about it. I've 
never
actually dealt with this type of NIC and assumed that it's very compatible with 
the
3Com Vortex card.

Guess not :-D

Glad to hear things worked out in the end.

Stef



Re: Two Problems

2001-05-20 Thread Stefan Srdic
Sidney Brooks wrote:

> So far no luck.
>
> Neither lpd nor minicom is present on my official three disk set of Potato.
>
> I tried replacing ATZ with ATX3, they both dial and connect but never get
> on the internet.
>
> I have the same problem of not getting connected with gnome-ppp and kpp.
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Did you try to apt-get install them?

apt-get install lpd

apt-get install minicom

Anyway, I just ran magicfilterconfig and configured my printer about 5 minutes
ago. I ran into two problems, first my users never had permission to use lpd;
and second I never created the proper spool directory under /var/spool/lpd/

Try that and see if it helps :-D

Stef





Re: Caching-only nameserver - which bind

2001-05-26 Thread Stefan Srdic
Paul Wright wrote:

> Hi all,
>
> I'm about to configure a caching only nameserver for my dialup box, and I
> noticed that there are two variants of the bind package available, bind
> and bind9.  I know that the bind package is version 8.x
>
> Which version should I use?
>
> Is there an advantage or disadvantage to the newer version?
>
> Is configuration for bind-9 so different that I should stick with bind-8?
>
> Thanks, I look forward to any advice offered.
>
> --
> Paul T. Wright <[EMAIL PROTECTED]>
> -currently seeking employment-
>

Just apt-get install bind or maybe even apt-get install named. For more
information on BIND and the differences between major version numbers read
Chapter 6 of the Linux Network Administrators Guide at Linuxdoc.org ->
http://www.linuxdoc.org/LDP/nag2/x-087-2-resolv.html

BIND works great as a caching only nameserver, its also very usefull if your
running a Masquerading box. The setup of BIND as a caching-only nameserver is
pretty easy. Here's how I did it:

First edit the named configuration file located @ /etc/bind/named.conf

options {
directory "/var/cache/bind";
query-source address * port 53;

 forwarders {
Your ISP's nameservers;
 };

 listen-on {
  Your internal network range;
  127/8;
   };
};

logging {
 category lame-servers { null; };
 category cname { null; };
};

zone "." {
type hint;
file "/etc/bind/db.root";
};

zone "localhost" {
type master;
file "/etc/bind/db.local";
};


Restart BIND and then just edit /etc/resolv.conf and insert:

domain 

At the prompt you can enter in DNS queries to complete the test, try your ISP's
website and see what happens:

> www.telus.net
Server:  localhost
Address:  127.0.0.1

Name:www.telus.net
Addresses:  207.194.28.174, 207.194.28.74, 207.194.28.80

And that should do it.

Stef





Problems with symbolic links under /dev

2001-05-30 Thread Stefan Srdic
I'm running Patato with kernel 2.4.4 (self compiled) and XFree 4.0.2 and
the XFce desktop from unstable.

I'm having problems with my CD-Burning device.

I have compiled ide-scsi support directly into the kernel as well as
SCSI CD support, this eliminates the need for any ide-cd drivers to be
compiled into the kernel.

When I test my kernel dmesg reports the following about my CD-Burning
device located on hdc.

SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: IDE-CDModel: R/RW 4x4x24   Rev: 1.2C
  Type:   CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12

This looks right to me, one thing that I have noticed thats different is
the vendor, my CD-R is an IOmega zip CD 4x4x24.

Anyway, after I compiled and tested the kernel I attempted to create a
symbolic link from scd0 to cdrom so that I could mount cd's and play
music through my cd-burner.

Basically, everything looks like:

[EMAIL PROTECTED]:/dev# ls -l cdrom hdc scd0 sr0
lrwxrwxrwx1 root root4 May 30 19:48 cdrom -> scd0
brw-rw1 root disk  22,   0 Apr 15 00:54 hdc
brw-rw1 root cdrom 11,   0 May 26 15:22 scd0
lrwxrwxrwx1 root root4 May 26 15:22 sr0 -> scd0

Now when I use cdrecord to test my cd-burner configuration I get:

[EMAIL PROTECTED]:/dev# cdrecord --scanbus
Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you
are root.

Can anybody point me towards insight?

Thanks

stef



Re: Firewalling a DHCP client the Right Way (TM)

2002-03-29 Thread Stefan Srdic
On 29 Mar 2002 12:24:37 +0900
Olaf Meeuwissen <[EMAIL PROTECTED]> wrote:

> Dear .debs,
> 
> I have a DHCP client that receives a lot of its networking information
> from our DHCP servers.  Things like routers, mail and name servers.  I
> would like to put an iptables based packet filtering firewall on this
> client that by default drops everything unless explicitly allowed.
> 
> I set the default policy through a script in /etc/network/if-pre-up.d/
> and add logging of everything that is dropped as a result of policy by
> means of a script in /etc/network/if-up.d/.  So far no problems.
> 
> Now I am wondering how to organise setting up the rest of the rules so
> I don't go nuts.  If it weren't for DHCP, I would have just added more
> scripts in /etc/network/if-up.d/.  Of course, you need to take care of
> their ordering and cater to the possibility of running more than once
> if you have multiple interfaces, but that is manageable.
> 
> However, how do I cater to DHCP telling me that the IP address of the
> name server has changed, for example, or, tux forbid, the client's own
> IP address.  Any ideas on how to go about this are welcome.
> 
> Debian GNU/Linux 3.0
> kernel 2.4.18 (custom), iptables 1.2.5-7, dhcp-client 2.0pl5-7
> -- 
> Olaf MeeuwissenEpson Kowa Corporation, CID
> GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97  976A 16C7 F27D 6BE3 7D90
> LPIC-2   -- I hack, therefore I am -- BOFH
> 

I'm not sure if this is what your looking for but it might help.

You can use dhclient to re-run your iptables script after a DHCP release/renew 
cycle. SO when your lease is up and your network parameters change you renew 
your iptables rules to reflect the changes of your network.

Read the dhclient-script manual page for details :)

Here's a simple /etc/dhclient-exit-hooks script that works for me:

#!/bin/sh

logger -t dhclient-exit-hooks "Reason is $reason"

case "$reason" in
RENEW)
/etc/rc.d/init.d/iptables stop
/etc/rc.d/init.d/iptables start
;;
REBIND)
/etc/rc.d/init.d/iptables stop
/etc/rc.d/init.d/iptables start
;;
BOUND)
/etc/rc.d/init.d/iptables stop
/etc/rc.d/init.d/iptables start
;;
RELEASE)
/etc/rc.d/init.d/iptables stop
esac

Stef


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



NFS share problems

2006-02-16 Thread Stefan Srdic
Hi, I've got one laptop running Debian Etch and a server running FreeBSD
6.0. The server has NFS and ssh setup and configured. I use ssh for
administration and NFS to store and backup files onto my remote home
directory.

I've recently tried to use my NFS storage to compile a kernel, however,
I was unable to execute any files on the server during make menuconfig
of gconfig:

[EMAIL PROTECTED]:/mnt/nethome/stef/linux/linux$ make gconfig
  HOSTCC  scripts/basic/fixdep
/bin/sh: scripts/basic/fixdep: Permission denied
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

I am able to mount the NFS share as the user, create and delete files or
directories with no problems, but I can't compile the kernel sources.

The shares mount options are:
noauto,nosuid,exec,user,rw,hard,intr,rsize=8192,wsize=8192 and I still
can't compile the sources!! Any advice?

Thanks

Stefan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: NFS share problems

2006-02-16 Thread Stefan Srdic
Sinan Nalkaya wrote:

>it seems the source is trying to use binaries and libraries located at
>your local pc, so you need a su rights to compiled kernel on your local
>pc.
>
>
>  
>
Okay, tried it manually as root. I was able to get the gconf
configuration menu up and running. How can I do this as a user? I
currently have things set up so both of the nfs users on both machines
have the same uid,gid and login name, I'm able to get read/write
permission that way. How can I get execute permissions for the user?

Thanks

Stefan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: NFS share problems

2006-02-16 Thread Stefan Srdic
Sinan Nalkaya wrote:

>it seems the source is trying to use binaries and libraries located at
>your local pc, so you need a su rights to compiled kernel on your local
>pc.
>
>
>  
>
Here's the exports file on the FreeBSD server, my remote uid is 1000 and
so is the users uid of the shared home directory.

# You should replace these lines with your actual exported filesystems.
# Note that BSD's export syntax is 'host-centric' vs. Sun's 'FS-centric'
one.
/home   -maproot=1000   192.168.0.100  
/cdrom  -ro 192.168.0.100 

Thanks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Intel ICH5R fake raid installation

2006-02-16 Thread Stefan Srdic
Fábio Dias wrote:

>Hi everyone,
>I hope this is the right place for doing that, and I didn't find any
>good information about my problem, so here I go.
>
>I have an ASUS P4P800 SE mobo, with ICH5R south bridge, 2 SATA 80Gb
>hard drives in raid 0 config. In windows, everything is OK, but any
>linux installation see these disks as one. All seems two independent
>unused disks.
>
>I read something about dmraid tool, and cross installing of debian
>(appendix of installation man). Does not sound so tricky, but I don't
>know how to make a cross install on this fake raid system. I don't
>know if it will work when I reboot my machine.
>
>Anyone have some idea?
>
>Thanks in advance
>
>Fábio Dias
>
>
>  
>
You can create RAID arrays in woody installer, I've done it on the same
chipset The MBR should be installed in the primary hardrive. The only
problem is the default Debian initrd images tend not to load raid
drivers at boot, so you'll need to regenerate a RAID capable initrd
image to use with the default kernel. Also, try to keep /boot on a
non-raid partition, lilo and grub tend not to recognize raid arrays.
Makes it harder to load initrd images :)

Stefan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Intel ICH5R fake raid installation

2006-02-16 Thread Stefan Srdic
Fábio Dias wrote:

>I tried. My partitions where already made during win2k installation (I
>think I forgot to tell I'm trying to make a dual boot config.). The
>raid manager on the installer doesn't recognize them. Should I install
>linux before windows??
>  
>
I've never done a dual boot raid configuration before, are you able to
split up your arrays with the BIOS Raid manager?


>Well, I didn't understood this very well, and I don't have another
>drive, but I can make something else, like a CD or floppy, if its
>possible.  I didn't find any 'dummy' howto on this problem, with a god
>help, I think its possible write one. I'm really open to new ideas
>(explained for a dummy like me, of course=] ).
>
>Fábio
>
>
>  
>
http://xtronics.com/reference/SATA-RAID-debian-for-2.6.html

You should find a lot of information if you google for Debian RAID
howto, there;s always tldp.

Stefan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Intel ICH5R fake raid installation

2006-02-16 Thread Stefan Srdic
Fábio Dias wrote:

>
>
>the bios manager only let me create and destroy full size RAID arrays
>(i think, I don't remeber exactly if the size can be changed, but I
>don't think so). I made the partitions during win2k installation...
>
>  
>
Then you've got hardware raid, some linux devs call these type of
on-board raid chipsets as soft-raid because they use the cpu to do the
work instead of a raid controller. It's still hardware raid, just half
ass hardware raid ;)

You still need to load the proper kernel modules for your chipset and
raid type.  Since your using SATA RAID you'll need to load the proper
SATA chipset support and the raid0 kernel module.

 Also, you need to create your raid arrays through the bios manager,
then format them through the installer.

Stefan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]