Re: xmms crashing at startup (Solved)

2007-10-05 Thread Fabian Keil
Robert Marella <[EMAIL PROTECTED]> wrote:

> On Thu, 4 Oct 2007 10:52:41 -1000
> Robert Marella <[EMAIL PROTECTED]> wrote:

> > [EMAIL PROTECTED] ~> xmms
> > Gdk-ERROR **: BadMatch (invalid parameter attributes)
> >   serial 1463 error_code 8 request_code 72 minor_code 0
> > 
> > All ports are up to date as of today.

> In the time honored FreeBSD tradition of answering my own email, I have
> XMMS working again.
> 
> I moved the .xmms directory in my home directory to old.xmms and
> started XMMS again. Low and behold it created a new .xmms directory and
> XMMS started. The only problem that I have is I can no longer douvle
> the size of the graphic player. 

Try starting it with:

XLIB_SKIP_ARGB_VISUALS=1 xmms

Fabian


signature.asc
Description: PGP signature


Re: Booting a GELI encrypted hard disk

2007-10-10 Thread Fabian Keil
Roland Smith <[EMAIL PROTECTED]> wrote:

> On Wed, Oct 10, 2007 at 09:04:34AM -0400, Steve Bertrand wrote:

> > I am voraciously attempting to get a FreeBSD system to boot from a GELI
> > encrypted hard disk, but am having problems.
> 
> You don't need to encrypt the whole harddisk. You can encrypt separate
> slices. There is no need to encrypt stuff like / or /usr; what is there
> that needs to be kept secret?

Encryption isn't only useful for private data,
it also reduces the risk of third parties replacing
your binaries with Trojans while your away.

Fabian


signature.asc
Description: PGP signature


Re: www.freebsd.org won't load in IE 7.x in vista box.

2007-10-16 Thread Fabian Keil
Lisandro Grullon <[EMAIL PROTECTED]> wrote:

> After troubleshooting from all angles this problem i have run out of
> imagination/sense. I loaded a machine with Windows Vista a work and try
> accessing the www.freebsd.org website. The web site didn't load, yet I
> try again in 10 other machines to see if it was a machine issue. Lastly
> I try loading the size in a Windows XP machine and it works ok. What
> seems to be the problem in this case? I have run out of ideas and even
> ask a few colleges at work and they don't seem to have a clue either.

Try disabling IPv6 in either your browser or your operating system,
or use a proxy that only does IPv4.

Fabian


signature.asc
Description: PGP signature


Re: SOS failure on mkisofs on FreeBSD-6.1-R amd64

2007-10-18 Thread Fabian Keil
[EMAIL PROTECTED] wrote:

>Trying to make a bootable CD, I did the following according to
> FreeBSD doc:

Where does one find this "FreeBSD doc"?

>#mkisofs -R -no-emul-boot -b /boot/cdboot -o /home/user/0S to
> be burned  /home/user/cdboot
> 
> 
>And I got the message: "uh, oh I can't find the boot
> image /boot/cdboot"
> 
>Suggestions?

Check the man page:

   -b eltorito_boot_image
  Specifies  the  path  and  filename of the boot image to be used
  when making an "El Torito" bootable CD.  The  pathname  must  be
  relative  to  the source path specified to mkisofs. [...]

and use a relative path as required.

Fabian


signature.asc
Description: PGP signature


Re: geli and soft-updates

2008-09-22 Thread Fabian Keil
Oliver Peter <[EMAIL PROTECTED]> wrote:

> On Sat, Sep 20, 2008 at 09:45:29PM -0400, Vinny wrote:
> > ...
> > >> P.S. Anyone running ZFS on multiple geli providers?
> > > 
> > > as above.
> > 
> > Does that mean you are/aren't or have/haven't run
> > ZFS on top of, say, 3 geli encrypted disks?  I'm curious
> > as to whether there are many people who have tried it,
> > and use it.
> 
> I'm using ZFS on geli on my production server with 2 SATA2 disks.
> Just create and attach the geli devices in /dev and then create
> a zpool i.e. with 
> 
>   # zpool create crypt /dev/ad3.eli /dev/ad6.eli
> 
> Works splendid.

I'm using ZFS on three geli encrypted slices,
the only problem I ran into was:

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/117158
"zpool scrub causes panic if geli vdevs detach on last close"

Fabian


signature.asc
Description: PGP signature


Re: tangoGPS && FreeBSD 7.0

2008-10-30 Thread Fabian Keil
Matthias Apitz <[EMAIL PROTECTED]> wrote:

> Is anybody aware of a port of tangoGPS
> http://www.tangogps.org/gps/cat/About to FreeBSD 7.0? It runs it in my
> Linux based cellphone Openmoko FreeRunner and it would be nice to have
> it as well in my eeePC (just for having better capacity for cached maps
> of OpenStreetMap and a bigger display). What kind of USB based GPS
> devices could be used in this eeePC with FreeBSD 7.0?

Using your FreeRunner seems like an obvious choice to me.

I got one as well, but I'm not aware of a tangoGPS port
for FreeBSD and haven't looked into how much effort
porting it would take either.

Fabian


signature.asc
Description: PGP signature


Re: copying 'holey' files ...

2008-11-03 Thread Fabian Keil
"Marc G. Fournier" <[EMAIL PROTECTED]> wrote:

> I have a disk img for qemu that is 4G, but disk usage is only 650M ... due to 
> how the image is created, it will grow to 4G, but only uses as much as it 
> needs 
> ... but, if I run a simple 'cp' on the file, it goes from:
> 
> image: debian.img
> file format: raw
> virtual size: 4.0G (4294967296 bytes)
> disk size: 652M
> 
> to:
> 
> image: dtc.img
> file format: raw
> virtual size: 4.0G (4294967296 bytes)
> disk size: 4.0G
> 
> Is there a way of moving things around such that it *maintains* the holes, 
> instead of fills them in?

Quoting dd(1):

| conv=value[,value ...]
|  Where value is one of the symbols from the following list.
[...]
|  sparse   If one or more output blocks would consist solely of
|   NUL bytes, try to seek the output file by the required
|   space instead of filling them with NULs, resulting in a
|   sparse file.

I haven't actually tested it with qemu images, though.

Fabian


signature.asc
Description: PGP signature


Re: tangoGPS && FreeBSD 7.0

2008-11-04 Thread Fabian Keil
Matthias Apitz <[EMAIL PROTECTED]> wrote:

> El día Thursday, October 30, 2008 a las 07:51:05PM +0100, Fabian Keil 
> escribió:
> 
> > Matthias Apitz <[EMAIL PROTECTED]> wrote:
> > 
> > > Is anybody aware of a port of tangoGPS
> > > http://www.tangogps.org/gps/cat/About to FreeBSD 7.0? It runs it in my
> > > Linux based cellphone Openmoko FreeRunner and it would be nice to have
> > > it as well in my eeePC (just for having better capacity for cached maps
> > > of OpenStreetMap and a bigger display). What kind of USB based GPS
> > > devices could be used in this eeePC with FreeBSD 7.0?
> > 
> > Using your FreeRunner seems like an obvious choice to me.
> > 
> > I got one as well, but I'm not aware of a tangoGPS port
> > for FreeBSD and haven't looked into how much effort
> > porting it would take either.
> 
> tangoGPS compiled and works just fine in FreeBSD, just the usual way:
> 
> ./configure
> make
> make install

Good to know. Are you already working on a port?

> it needs a gps daemon which is in the ports, and you need some GPS
> device RS232 or USB based and the web pages of gpsd have a long list
> of compatibel devices, for sure not all tested with FreeBSD; will see if
> I could check some out in the near future;

I was thinking about running tangoGPS on FreeBSD and
connecting it to the gpsd already running on the Freerunner.

Fabian


signature.asc
Description: PGP signature


Re: "High Noonn" DVD??

2008-11-15 Thread Fabian Keil
On Sat, 15 Nov 2008 13:37:26 +0100, Roland Smith <[EMAIL PROTECTED]> wrote:

> On Sat, Nov 15, 2008 at 12:46:03AM -0800, Gary Kline wrote:
> > 
> > Do any of you guys know why the DVD version of HIGH NOON won't play on 
> > my
> > computers?  I've tried everything I can think of.  Zero.   I watched the
> > *original* in the theater (I think); then have watched the tape in '98,
> > and the DVD just now.  I'm not that nutty to waste a DVD-R on it; I'm
> > just wondering my none of my players won't play it.
> 
> Different region? Most players are locked to a certain region, and won't
> play disks from other regions. Although it is possible to install
> upgraded or modified firmware that removes the region encoding, that
> usually needs a windows program. And it can brick your player when done
> incorrectly.

IIRC respecting the region is only necessary for players with a
licensed CSS implementation. If the player cracks CSS anyway,
it usually ignores the region as well so messing with the firmware
shouldn't be necessary.

Fabian


signature.asc
Description: PGP signature


Re: "High Noonn" DVD??

2008-11-16 Thread Fabian Keil
Roland Smith <[EMAIL PROTECTED]> wrote:

> On Sat, Nov 15, 2008 at 01:47:14PM +0100, Fabian Keil wrote:
> > On Sat, 15 Nov 2008 13:37:26 +0100, Roland Smith <[EMAIL PROTECTED]> wrote:
> > 
> > > On Sat, Nov 15, 2008 at 12:46:03AM -0800, Gary Kline wrote:
> > > > 
> > > > Do any of you guys know why the DVD version of HIGH NOON won't 
> > > > play on my
> > > > computers?  I've tried everything I can think of.  Zero.   I 
> > > > watched the
> > > > *original* in the theater (I think); then have watched the tape 
> > > > in '98,
> > > > and the DVD just now.  I'm not that nutty to waste a DVD-R on 
> > > > it; I'm
> > > > just wondering my none of my players won't play it.
> > > 
> > > Different region? Most players are locked to a certain region, and won't
> > > play disks from other regions. Although it is possible to install
> > > upgraded or modified firmware that removes the region encoding, that
> > > usually needs a windows program. And it can brick your player when done
> > > incorrectly.
> > 
> > IIRC respecting the region is only necessary for players with a
> > licensed CSS implementation. If the player cracks CSS anyway,
> > it usually ignores the region as well so messing with the firmware
> > shouldn't be necessary.
> 
> OK, that's nice to know. All the DVDs that I have play fine with
> mplayer, but they're probably all region 2 disks. So I should be able to
> play region 1 disks with mplayer?

I think so. I play different regions with both mplayer and vlc all the time.

Fabian


signature.asc
Description: PGP signature


Re: "High Noonn" DVD??

2008-11-16 Thread Fabian Keil
Nikola Lečić <[EMAIL PROTECTED]> wrote:

> On Sat, 15 Nov 2008 14:46:00 +0100
> Roland Smith <[EMAIL PROTECTED]> wrote:
> 
> > OK, that's nice to know. All the DVDs that I have play fine with
> > mplayer, but they're probably all region 2 disks. So I should be able
> > to play region 1 disks with mplayer?
> 
> That's exactly what I am trying to do at this moment, with no success.
> I'm in the region 2 and I set my DVD drive accordingly (with a small C
> programme). Now I got some region 1 DVDs and libdvdcss is not sufficient
> as such.

Which programs did you try?
Do you get an error message?
Can you rip the disc with vobcopy?
Did you try playing or ripping the discs on a GNU/Linux system?

Fabian


signature.asc
Description: PGP signature


Re: "High Noonn" DVD??

2008-11-16 Thread Fabian Keil
Gary Kline <[EMAIL PROTECTED]> wrote:

> On Sat, Nov 15, 2008 at 01:37:26PM +0100, Roland Smith wrote:
> > On Sat, Nov 15, 2008 at 12:46:03AM -0800, Gary Kline wrote:
> > > 
> > >   Do any of you guys know why the DVD version of HIGH NOON won't play on 
> > > my
> > >   computers?  I've tried everything I can think of.  Zero.   I watched the
> > >   *original* in the theater (I think); then have watched the tape in '98,
> > >   and the DVD just now.  I'm not that nutty to waste a DVD-R on it; I'm
> > >   just wondering my none of my players won't play it.
> > 
> > Different region? Most players are locked to a certain region, and won't
> > play disks from other regions. Although it is possible to install
> > upgraded or modified firmware that removes the region encoding, that
> > usually needs a windows program. And it can brick your player when done
> > incorrectly.

>   I just realized that last night the DVD jumped right into the Start of
>   the film.  No FBI threats of extraordinary rendition to those who would
>   copy, no pre-list of places to jump to.  The extra features were at the
>   end, only.  So it's probably a bad disc.  

There are quite a few discs that do that by design, especially older ones.
 
Fabian


signature.asc
Description: PGP signature


Re: "High Noonn" DVD??

2008-11-16 Thread Fabian Keil
Nikola Lečić <[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: RIPEMD160
> 
> On Sat, 15 Nov 2008 18:23:05 +0100
> cpghost <[EMAIL PROTECTED]> wrote:
>  
> > On Sat, Nov 15, 2008 at 08:41:21AM -0800, Jeremy Chadwick wrote:
> > > On Sat, Nov 15, 2008 at 05:23:23PM +0100, Nikola Le??i?? wrote:
> > > > On Sat, 15 Nov 2008 14:46:00 +0100
> > > > Roland Smith <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > > OK, that's nice to know. All the DVDs that I have play fine with
> > > > > mplayer, but they're probably all region 2 disks. So I should
> > > > > be able to play region 1 disks with mplayer?
> > > > 
> > > > That's exactly what I am trying to do at this moment, with no
> > > > success. I'm in the region 2 and I set my DVD drive accordingly
> > > > (with a small C programme). Now I got some region 1 DVDs and
> > > > libdvdcss is not sufficient as such. Of course, I can change DVD
> > > > drive region setting temporarily, but the drive allows just 4 or
> > > > 5 such changes. Does anyone know how to avoid this counting?
> > > 
> > > Changing the region encoding setting on your DVD drive involves
> > > setting a bit or code somewhere in the flash/EEPROM inside of the
> > > DVD drive. The limit of 4-5 changes is purely a DVD drive firmware
> > > thing; there's no technical limit, instead it's a limit imposed by
> > > the firmware.
> > > 
> > > There are websites nowadays which offer "hacked" firmwares which
> > > remove region encoding altogether (or remove the 4-5 set limit).
> > > However, they're only available for very specific models of DVD
> > > drives.  If this is important to you, you should considering
> > > purchasing a drive that can be flashed with a "hacked" firmware.
> > 
> > Check out for RPC1 modded firmwares.
> > 
> > http://forum.rpc1.org/portal.php
> 
> Thanks! The DVD drive is
> 
>   cd0:  Removable CD-ROM SCSI-0 device

I had the same drive for a few days and returned it
because it wouldn't work properly under FreeBSD.

It didn't recognise discs that worked in other drives,
ripping was real slow and it caused system or application
hangups every now and then.

It caused less problems on GNU/Linux, but even there
ripping some problematic discs was too slow and watching
them from disc without stuttering impossible.

I'm still looking for a replacement, so if anyone can
name a drive that properly plays or rips all discs from
the Al Bundy box without issues (under FreeBSD),
I'd appreciate it.

Fabian


signature.asc
Description: PGP signature


Re: "High Noonn" DVD??

2008-11-17 Thread Fabian Keil
Nikola Lečić <[EMAIL PROTECTED]> wrote:

> On Sun, 16 Nov 2008 16:08:27 +0100
> Fabian Keil <[EMAIL PROTECTED]> wrote:
>  
> > Nikola Lečić <[EMAIL PROTECTED]> wrote:
> > 
> > > On Sat, 15 Nov 2008 14:46:00 +0100
> > > Roland Smith <[EMAIL PROTECTED]> wrote:
> > > 
> > > > OK, that's nice to know. All the DVDs that I have play fine with
> > > > mplayer, but they're probably all region 2 disks. So I should be
> > > > able to play region 1 disks with mplayer?
> > > 
> > > That's exactly what I am trying to do at this moment, with no
> > > success. I'm in the region 2 and I set my DVD drive accordingly
> > > (with a small C programme). Now I got some region 1 DVDs and
> > > libdvdcss is not sufficient as such.
> > 
> > Which programs did you try?
> > Do you get an error message?
> 
> I tried mplayer, vlc and ogle and experienced the same symptoms like
> when this DVD drive was in virgin state (with no region-code set) and
> when I tried to play normal region 2 DVD, which means:
> 
>   * vlc - no output at all
>   * mplayer - sound ok, video scrambled in colourful squares, producing
> a lot of errors like this:
> 
> a52: CRC check failed!  0.046 ct: -0.029  21/ 18 11%  1% 23.4% 0 0 
> a52: error at resampling
> A:   1.5 V:   1.7 A-V: -0.197 ct: -0.036  23/ 20 11%  0% 22.8% 0 0 
> demux_mpg: 24000/1001fps progressive NTSC content detected, switching 
> framerate.
> a52: CRC check failed!  0.045 ct:  0.100  34/30 ??% ??% ??,?% 0 0 a52: error 
> at resampling

If this was a classical "wrong region code"
problem, the disc shouldn't play at all.

I just had a quick look at:
/usr/ports/multimedia/mplayer/work/MPlayer-1.0rc2/libdvdcss/libdvdcss.c
An excerpt from the comment on top:

 * \li \b DVDCSS_METHOD: sets the authentication and decryption method
 * that \e libdvdcss will use to read scrambled discs. Can be one
 * of \c title, \c key or \c disc.
 * - \c key is the default method. \e libdvdcss will use a set of
 *   calculated player keys to try and get the disc key. This can fail
 *   if the drive does not recognize any of the player keys.
 * - \c disc is a fallback method when \c key has failed. Instead of
 *   using player keys, \e libdvdcss will crack the disc key using
 *   a brute force algorithm. This process is CPU intensive and requires
 *   64 MB of memory to store temporary data.
 * - \c title is the fallback when all other methods have failed. It does
 *   not rely on a key exchange with the DVD drive, but rather uses a
 *   crypto attack to guess the title key. On rare cases this may fail
 *   because there is not enough encrypted data on the disc to perform
 *   a statistical attack, but in the other hand it is the only way to
 *   decrypt a DVD stored on a hard disc, or a DVD with the wrong region
 *   on an RPC2 drive.

Maybe there's a communication problem that prevents
libdvdcss from detecting that the first two methods
aren't working properly and that the last one has
to be used.

You could try patching mplayer to only use the last one.

>   * ogle - the flood of these kernel messages with syslogd eating a lot
> of CPU:
> 
> Nov 16 22:21:58 black kernel: acd0: setting up DMA failed
> Nov 16 22:21:58 black kernel: ata2: FAILURE - non aligned DMA transfer 
> attempted
> 
> After setting the region of my DVD drive to 2, I never experienced
> such errors (after uncountable number of local DVDs) until I got there
> region 1 ones. That's why I was so confident that libdvdcss is a
> problem.

I think it's only part of the problem.

> > Did you try playing or ripping the discs on a GNU/Linux system?
> 
> Hmm, my home is currently FreeBSD-only. :-) But I managed to try it and
> - -- yes, it works. Strange. In the light of your post about LITE-ON
> DVDRW LH-20A1S 9L08, is it possible that DVD drive causes all these
> problems?

I assume this could be a controller problem as well.
Trying another drive is probably the easiest way to
find out.

Fabian


signature.asc
Description: PGP signature


Re: FreeBSD + ZFS on a production server?

2008-06-08 Thread Fabian Keil
"Anders Häggström" <[EMAIL PROTECTED]> wrote:

> I plan to install a web server for production use and ZFS looks very
> interesting, especially since it has built-in support for RAID and
> checksum.
> 
> The hardware is already purchased, a 1U-casis with a PhemonX4 9550
> CPU, 4GB ECC RAM @ 800MHz and 2x500GB SATA disks and I am about to
> select the operating system to use.
> 
> The choice is probably between "Debian 4.0r3", "FreeBSD 7.0" and
> "OpenSolaris 2008.05". All of them have their pros and cons.

Just in case you assume that ZFS on OpenSolaris 2008.05
would be superior to ZFS on FreeBSD, this hasn't been my
experience.

On a system with an Athlon 1700+ and only 512 MB of RAM,
receiving snapshots on OpenSolaris renders the GUI pretty
much useless.

On FreeBSD ZFS operations can cause delays as well, but it's
significantly better than on OpenSolaris, even though FreeBSD's
ZFS pool lies on a geli-encrypted gmirror while OpenSolaris uses
the disk directly.

Note that the system is below Sun's recommended specifications
for ZFS, though. Things may look differently on more powerful
systems.

> I think Debian / Linux, almost falls off because it lacks support for
> native ZFS and I have not found any alternative filesystem that offer
> checksums on the fly.
> 
> My main question is: How is the support for ZFS on FreeBSD? Is it
> sufficiently stable and fast enough to be used in production yet?

It probably depends on your workload, you'll find several complaints
in the archives. It works fine for me, but I haven't tried it on web
servers yet. If I were to install a web server today, though,
I'd definitely go with ZFS (on FreeBSD).

> If not, is there any alternative filesystem that offers checksums on
> the fly or other similar technology to reduce the risk of a corrupt
> filesystem that at the same time plays well with software RAID (RAID-1
> in particular)?

You can use geli(8) for checksumming, it can be combined with gmirror
but unless with ZFS, you don't get automatic "self-healing".

Fabian


signature.asc
Description: PGP signature


Re: FreeBSD + ZFS on a production server?

2008-06-08 Thread Fabian Keil
"Christian Walther" <[EMAIL PROTECTED]> wrote:

> 2008/6/8 Fabian Keil <[EMAIL PROTECTED]>:
> > "Anders Häggström" <[EMAIL PROTECTED]> wrote:
> >
> [...]
> > Just in case you assume that ZFS on OpenSolaris 2008.05
> > would be superior to ZFS on FreeBSD, this hasn't been my
> > experience.
> >
> > On a system with an Athlon 1700+ and only 512 MB of RAM,
> > receiving snapshots on OpenSolaris renders the GUI pretty
> > much useless.
> >
> > On FreeBSD ZFS operations can cause delays as well, but it's
> > significantly better than on OpenSolaris, even though FreeBSD's
> > ZFS pool lies on a geli-encrypted gmirror while OpenSolaris uses
> > the disk directly.
> >
> This hasn't anything to do with ZFS but on the different configuration
> of the clockrate. FreeBSD uses 1000 ticks, while it's 500 on Solaris.

With OpenSolaris 2008.05 the GUI becomes unresponsive for
multiple-seconds on my system, and it's not clear to me
how the clock rate difference would explain that.

Fabian


signature.asc
Description: PGP signature


Re: FreeBSD's backwards webdesign / corporate identity

2012-04-09 Thread Fabian Keil
Polytropon  wrote:

> On Sun, 8 Apr 2012 14:40:12 +0200, Tony wrote:

> > As much as I love FreeBSD, I'm a bit alarmed by its webdesign / corporate
> > identity.
> 
> What's wrong with it? It's very accessible (especially for
> blind users) and it presents the availabe information in a
> structured way. Sure, it does not use many of today's "modern"
> extensions to get simple things done, as it uses _simple_ things
> to get them done (e. g. a href= for a link istead of "Flash"),
> but that's not a problem in my opinion. The pages load fast,
> they display well in all four major browsers (Firefox, Chrome,
> Safari, Opera), and it even renders properly in browsers with
> limited abilities (lynx, links, w3m, dillo).

Actually the site does not "display well" in all
four major browsers in general:
http://www.freebsd.org/cgi/query-pr.cgi?pr=91539

It might work with your browser configuration but it
fails with others.

And while it might (or might not) be accessible for blind users,
visually impaired users run into problems if they increase
the browser's default font size.

Fabian


signature.asc
Description: PGP signature


Re: zpool creation on geli failed with FreeBSD-9.0

2012-04-12 Thread Fabian Keil
"Christopher J. Ruwe"  wrote:

> On Tue, 10 Apr 2012 08:13:36 +1000
> Da Rock  wrote:
> 
> > On 04/10/12 02:07, Christopher J. Ruwe wrote:
> > > I was trying to install FreeBSD 9.0 using a geli encrypted disk and
> > > ZFS on my ThinkPad R500 this weekend. I failed.
> > >
> > > Having sucessfully initialized the geli part and having attached the
> > > provider, my attempt to create a zpool on the geli section thus
> > >
> > > $>  zpool create ntank /dev/ada0p2.eli
> > >
> > > failed with the message
> > >
> > > Cannot create 'ntank': invalid argument for this pool operation.
> > >
> > > I could not convince the system to create the zpool on the geli
> > > part, so I gave up and created the zpool on the unencrypted
> > > partition instead to have a working machine for the week. I would,
> > > however, like to have my data on an encrypted partition though. Has
> > > anyone witnessed and resolved this issue or does anyone have other
> > > ideas?

I have never seen this error message and its meaning isn't
obvious to me either (which is why I didn't comment earlier,
before Da Rock "provoked" me).

You could try truss'ing the operating to see what is actually
going on.

You could also try to see if it makes a difference if you
put a label on top of the eli geom and try to create the
pool on that.

> > Someone using ZFS will be able to verify this, but from my
> > understanding ZFS runs on the hardware and you can *possibly* put
> > geli on top of ZFS.

While you can indeed put geli on a ZFS volume, putting the
ZFS pool on geli is supposed to work as well and does work
for me:

fk@r500 ~ $zpool status tank
  pool: tank
 state: ONLINE
  scan: scrub repaired 0 in 3h1m with 0 errors on Sun Mar 25 20:47:28 2012
config:

NAME   STATE READ WRITE CKSUM
tank   ONLINE   0 0 0
  ada0s1d.eli  ONLINE   0 0 0

errors: No known data errors

The pool was created with a command rather similar to the one
used by Christopher:

fk@r500 ~ $sudo zpool history | head -n 2
History for 'tank':
2009-08-09.02:53:52 zpool create tank ad4s1d.eli

While I'm using this pool on a 10.0-CURRENT system, the pool worked
with previous FreeBSD versions in the past. I currently have no
9.0 system to test with.

Here's a more recently created pool where the eli is on a label:

fk@r500 ~ $zpool status lexmark
  pool: lexmark
 state: ONLINE
  scan: scrub repaired 0 in 0h2m with 0 errors on Sun Mar 11 22:10:49 2012
config:

NAME STATE READ WRITE CKSUM
lexmark  ONLINE   0 0 0
  label/lexmark.eli  ONLINE   0 0 0

errors: No known data errors
fk@r500 ~ $sudo zpool history lexmark | head -n 2
History for 'lexmark':
2012-02-04.13:41:05 zpool create lexmark /dev/label/lexmark.eli

This is the configuration I usually use for external
devices, as it makes automatically importing the pool
easier.

While this configuration is known to trigger bugs under
certain conditions, I don't know for sure that using less
geoms would actually help:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/162010
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/162036

> > You can put geom on ZFS but not the other way around.

Except for test pools, I always use geoms as vdevs.
This has been working (for me) since I started using
ZFS shortly after Pawel imported it.

> I had a zpool on a geli on FreeBSD-8.0 to 8.2 and
> 8-stable. I opted for a complete reinstall of 9.0 instead of upgrading
> due to issues with xmonad, which I did not understand then. I am
> "furious" at my decision now that I have seen that a update would
> possibly have been much easier than to reinstall, had I at that time
> understood what was causing problems with xmonad.

Do you know if you used the same zpool command and the same
vdev in the past?

Fabian


signature.asc
Description: PGP signature


Re: trying to learn systems programming, fear I have not understood and thus messed up

2011-10-22 Thread Fabian Keil
"Christopher J. Ruwe"  wrote:

> On Fri, 21 Oct 2011 18:53:33 +0200
> "Christopher J. Ruwe"  wrote:
> 
> > [...]
> > 
> > I have tried to follow the suggestion from the comment by modifiying
> > the else-statement thus:
> > 
> > } else {
> >   struct passwd *trgpwd;
> >   if (!(trgpwd = GETPWNAM(arg->val)))
> >  errx(EX_DATAERR, "User %s does not exist", arg->val);
> >
> >if (strcmp(a_name->val,"root") == 0)
> >   errx(EX_DATAERR, "can't change uid of `root' account");
> >if (strcmp(trgpwd->pw_name, "root") == 0)
> >   warnx("WARNING: account `%s' will have a uid of 0 (superuser
> > access!)", pwd->pw_name);
> > 
> >pwd->pw_uid = (uid_t) (trgpwd->pw_uid);  
> >edited = 1;
> > } 
> > 
> > What happens is not what I intended. I invoke as "sudo ./pw usermod
> > testuser1 -u testuser2". I can get testuser2's pwd-entry by GETPWNAM
> > allright, but when I assign the pw_uid, so as to make testuser2's uid
> > the same as testuser1's and imgaining to retain all other values, ./pw
> > reports "pw: user 'testuser2' disappeared during update" and the
> > testuser2's /etc/passwd entry is replaced by testuser1's.
> > 
> > I fear I have not understood GETPWNAM correctly, as it seems to
> > replace the struct pwd as some sort of sideeffect. I could manually
> > set all pwd-members to the correct ones (those of testuser2), but I
> > fear that I have messed something up beforehand.
> > 
> > I am grateful for any suggestions and/or correction. 
> 
> It seems I have indeed not understood GETPWNAM correctly. I have worked
> out a method which works by calling GETPWNAM twice:
> 
>else {
>/*
> * operation as follows:
> * a_name->val is passed as usermod 
> * arg->val is passed as -u 
> *
> * first check if we do someting stupid, i.e., want
> * to set root uid to some other users uid or
> * to set some user accout's uid to root uid.
> * then get pwd to that of uname passed as -u .
> * store uid from that pwdent.
> * get pwd to that of uname passed as usermod 
> * change uid of that latter uid to the one stored
> */
>   
> if(strcmp(a_name->val,"root") == 0)
>   errx(EX_DATAERR, "can't change uid of `root' account");
> 
> if(strcmp(arg->val, "root") == 0)
>   warnx("WARNING: account `%s' will have a uid of 0 (superuser
> access!)", pwd->pw_name);
> 
> if(!(pwd = GETPWNAM(arg->val))) /* -u */
>   errx(EX_DATAERR, "User %s does not exist", arg->val);
> int alias_uid = pwd->pw_uid; 
> 
> if(!(pwd = GETPWNAM(a_name->val))) /*usermod */
>   errx(EX_DATAERR, "User %s does not exist", a_name->val);
> 
> pwd->pw_uid = (uid_t) alias_uid;
> warnx("User %s's uid changed to %d", pwd->pw_name, pwd->pw_uid);
> edited = 1;
>   }
> 
> As I stil do not know why the latter variant of my code worked and the
> former does not, I would still appreciate any comment or explanation
> which would help me understanding GETPWNAM and getpwnam.

I'm not familiar with the code you're working with,
but according to the man page getpwnam() isn't thread
safe so you probably shouldn't mess with the returned
pointer in the first place and only treat the one
returned by the last call as valid.

Did you try using getpwnam_r() instead?

Fabian


signature.asc
Description: PGP signature


Re: trying to learn systems programming, fear I have not understood and thus messed up

2011-10-22 Thread Fabian Keil
"Christopher J. Ruwe"  wrote:

> On Sat, 22 Oct 2011 16:45:08 +0200
> Fabian Keil  wrote:
> 
> > "Christopher J. Ruwe"  wrote:
> > 
> > > On Fri, 21 Oct 2011 18:53:33 +0200
> > > "Christopher J. Ruwe"  wrote:

> > > As I stil do not know why the latter variant of my code worked and
> > > the former does not, I would still appreciate any comment or
> > > explanation which would help me understanding GETPWNAM and getpwnam.
> > 
> > I'm not familiar with the code you're working with,
> > but according to the man page getpwnam() isn't thread
> > safe so you probably shouldn't mess with the returned
> > pointer in the first place and only treat the one
> > returned by the last call as valid.
> > 
> > Did you try using getpwnam_r() instead?

> You are quite right, GETPWNAM() is a macro to getpwnam(), which is not
> thread safe. GETPWNAM() is called throughout the code of pw and pw
> itself is not threaded, so it should not matter whether the functions
> called are thread-safe or not. I am not completely sure on my last
> statement though. Do you have other experience regarding this topic?

My point is that if getpwnam() isn't thread safe because
separate calls are using the same static buffer to return
their result (which I didn't verify), and you do something
like:

pwd = GETPWNAM(...)
[...]
trgpwd = GETPWNAM(...)
pwd->pw_uid = (uid_t) (trgpwd->pw_uid);

the second getpwnam() call is going to reuse the memory
pointed to by pwd. While I assume your intention was to
only change pwd->pw_uid, the second getpwnam() call already
had the side effect of overwriting all the other members as
well.

This would happen in a single-threaded application as well.

Fabian


signature.asc
Description: PGP signature


Re: Geom Gate usage and perf

2011-11-18 Thread Fabian Keil
Jerome Herman  wrote:

> Just wondering if anyone is using geom gate and could help me with huge 
> perf issue I am having.
> Right now the set up is such : 3 drives on the same machine A, exported 
> through geom gate and connected to machine B.
> On machine B I format the drives as freebsd-vinum and mount them in 
> stripping+mirroring.
> 
> The end goal is to have High Availability drives.
> 
> The setup is working, but the perf are awfull. Thinking It was due to 
> software stripping and mirroring slowing the process down I tried with 
> only one drive with a standard UFS format.
> 
> The perf are still horrible. When the drive is mounted locally on 
> machine A and I copy data with rsync from machine B; I have a steady 
> 12MB/s data transfer rate.
> When the same drive is mounted with geom gate on machine B, the copy 
> rate is around 6KB/s to 25KB/s
> 
> The drive was tested for I/O problems twice, and nothing was found.
> 
> Any idea or suggestion as to where the problem might come from ?

I haven't used ggate in years, but if I remember correctly
I had performance issues as well until I significantly
increased the send and receive buffers for ggatec and ggated.

I think I never reached the performance I had hoped for,
but at least it got good enough to be usable.

Fabian


signature.asc
Description: PGP signature


Re: Was I Sourced?

2013-02-12 Thread Fabian Keil
"Teske, Devin"  wrote:

> On Tue, 12 Feb 2013, Tim Daneliuk wrote:
> 
> > Is there a way for script to determine whether is was sourced
> > or forked off as a subprocess when it was invoked?
> > 
> 
> Not that I'm aware of.

sysutils/zogftw, which has to find and parse itself to
generate the verbose help, does the following:

zogftw_location="$0"

if [ "zogftw" != $(basename "${zogftw_location}") ]; then
# Looks like zogftw has been sourced.
# Try to get the zogftw location through the PATH.
zogftw_location="$(which zogftw)"
fi

The check is expected to fail if the user renamed the shell to
zogftw, or the script to something else, but that's unlikely to
happen by accident and the functionality is not essential anyway.

A more reliable method might be investigating $$ and its parents
with ps and friends, but it would also require a lot more code.

I don't remember ever having never seen a ps-based check in the
real world and my impression is that looking at $0 is "best practice"
if the check doesn't have to be perfect.

Fabian


signature.asc
Description: PGP signature


Re: growisofs does not burn folders correctly all files are flat on the disk no folders

2013-03-11 Thread Fabian Keil
CeDeROM  wrote:

> I have problem with growisofs - I get all files flat on the disk there
> are no directories as on the source drive :-( I had this once with BD
> and once with DVD disk on my new 9.1-RELEASE machine.
> 
> growisofs -Z/dev/cd2 -dvd-compat -R -J -iso-level 3 -udf *
> 
> % growisofs --version
> * growisofs by , version 7.1,
>   front-ending to mkisofs: mkisofs 3.00 (amd64-unknown-freebsd9.1)
> Copyright (C) 1993-1997 Eric Youngdale (C) 1997-2010 J�rg Schilling
> 
> Any hints welcome :-)

I've never used growisofs, but given that it's a mkisofs front-end
I suspect that you may want to change the pathspec from "*" to the
path to the directory that contains the directory structure you want
on the disc.

For example ".", if it's also the current working directory.

For details see mkisofs(8).

Fabian


signature.asc
Description: PGP signature


Re: Attaching GELI device on boot

2013-03-24 Thread Fabian Keil
Stephan Schindel  wrote:

> i've got a problem attaching a geli device on boot. My setup:
> 
> ada0 and ada1 full geli setup (no partition schemes). ZFS on both. ada0
> is my root device. I can boot into the system there is no problem with
> it. But now I want to attach ada1 on boot as well using a single
> keyfile. My rc.conf looks like this:
> 
> ...
> geli_autodetach="NO"
> geli_devices="ada1"
> geli_ada1_flags="-p -k /root/ada1.key"
> ...
> 
> The problem is that geli does not want to attach the device at first. It
> claims about (missing?) metadata and inappropriate file format (I dont
> know where geli logs this). It tries to attach the device 3 times which
> is the default option with no success.

Are you sure that "It" is the geli rc script and not the kernel
itself which could happen if the BOOT flag was set on ada1.

You can increase the geli log level with kern.geom.eli.debug.
For details see "man geli".

> BUT once the system is booted up and I can login, I can manually start
> 
> /etc/rc.d/geli onestart
> 
> and it will successfully attach the device.

Does this result in the "Configuring Disk Encryption for ..." message?

> So configuration seems to be
> fine, only the order the services started seems to be wrong (e.g. devd
> is being started AFTER geli tries to attach the device, why??)

devd is supposed to be started between geli and geli2:

fk@r500 ~ $rcorder /etc/rc.d/* | egrep devd\|geli
/etc/rc.d/geli
/etc/rc.d/devd
/etc/rc.d/geli2

> Also there is a problem with sabnzbd which is being started before the
> network is set-up, which is wrong as well.

That seems to be an unrelated problem so probably it belongs
in a different thread. I don't use sabnzbd and thus have no
opinion on this.

Fabian


signature.asc
Description: PGP signature


Re: FreeBSD 8.2 as wifi client

2013-07-24 Thread Fabian Keil
Laszlo Danielisz  wrote:

> Yesterday I've received a usb wifi card.
> I've successfully connected to my home network with wpa-psk but I couldn't 
> make it to connect via boot.
[...]
> I've also added the following lines to my rc.conf:
> 
> wlans_run0="wlan0"
> wpa_supplicant_enable="YES"
> ifconfig_wlan0="192.168.1.201"

The previous line seems to be missing the 'WPA' attribute:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html#network-wireless-wpa-wpa-psk

Fabian


signature.asc
Description: PGP signature


Re: Wireless NIC in FreeBSD 6.0 ?

2005-12-25 Thread Fabian Keil
Yuan Jue <[EMAIL PROTECTED]> wrote:

> Does anybody success to use wireless NIC in FreeBSD6.0 in HP NC6000?
> Back to FreeBSD 5.4, my wireless card just works, but not in FreeBSD
> 6.0.
> 
> I use the following steps to try to use my wireless card:
> 1.change to root, then "kldload if_ath"
> after this, I can use "kldstat" to see this:
> Id Refs AddressSize Name
>  19 0xc040 328db0   kernel
>  21 0xc0729000 bc40 kqemu.ko
>  3   16 0xc0735000 5683cacpi.ko
>  61 0xc296a000 e000 if_ath.ko
>  71 0xc2978000 3000 ath_rate.ko
>  81 0xc297b000 24000ath_hal.ko
> and use "ifconfig" to see this:
> bge0: flags=8843 mtu 1500
> options=1a
> inet 166.111.208.143 netmask 0xfe00 broadcast
> 166.111.209.255 ether 00:0d:9d:90:e0:68
> media: Ethernet autoselect (100baseTX )
> status: active
> lo0: flags=8049 mtu 16384
> inet 127.0.0.1 netmask 0xff00
> ath0: flags=8802 mtu 1500
> ether 00:11:85:1b:21:79
> media: IEEE 802.11 Wireless Ethernet autoselect
> status: no carrier
> ssid "" channel 1
> authmode OPEN privacy OFF txpowmax 100 protmode CTS
> 
> 2.I use DHCP to get my IP address. "dhclient ath0"
> the response is this:
> DHCPREQUEST on ath0 to 255.255.255.255 port 67
> DHCPREQUEST on ath0 to 255.255.255.255 port 67
> DHCPREQUEST on ath0 to 255.255.255.255 port 67
> DHCPACK from 166.111.208.1
> bound to 166.111.208.137 -- renewal in 3600 seconds.
> and use "ifconfig" can see:
> ath0: flags=8843 mtu 1500
> inet 166.111.208.137 netmask 0xfe00 broadcast
> 166.111.209.255 ether 00:11:85:1b:21:79
> media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps)
> status: associated
> ssid A314b channel 11 bssid 00:09:5b:d1:fa:c4
> authmode OPEN privacy OFF txpowmax 30 protmode CTS bintval 100
> 
> it seems that the wireless NIC should be working now, right?
> but when i try to ping some IP which definitely should be connected
> from the IP address I have got, like :
> ping 166.111.8.28 (this is the DNS server)
> the result is this:
> PING 166.111.8.28 (166.111.8.28): 56 data bytes
> ping: send to: No route to host
> ping: send to: No route to host
> ping: send to: No route to host
> ping: send to: No route to host
> ping: send to: No route to host
> ping: send to: No route to host
> ping: send to: No route to host
> ping: send to: No route to host
> ^C
> --- 166.111.8.28 ping statistics ---
> 17 packets transmitted, 0 packets received, 100% packet loss
> 

What does netstat -r say?

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: dlink wireless adapter

2005-12-28 Thread Fabian Keil
"Martin P. Hansen" <[EMAIL PROTECTED]> wrote:

> On Mon, 26 Dec 2005, Imran Imtiaz wrote:
> > how can i make my dlink DWL-G122 wireless usb adapter work with
> > freebsd?
> 
> I can't find it in the list of native supported devices (the wi(4)
> and ath(4) drivers). You might try your luck with the ndis(4)
> converter.
> 
> This process is described in detail in the handbook's wireless
> section:
> 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html

The ndis part is outdated. Nowadays you use ndisgen to create an
additional kernel module with the driver. It no longer is in if_ndis.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: FBSD 6.0 - Canyon WF-511 Wireless card setup

2006-01-02 Thread Fabian Keil
"Keith McKay" <[EMAIL PROTECTED]> wrote:

>  I'm having a problem trying to setup the above box with the above
> wireless card to my home network.  I have a Dlink DL-624+ wireless
> router which has two wired WINXP boxes and a wireless WINXP laptop
> connected to it all of which work seemlessly.  The wireless card on
> the freeBSD box can detect the router when I scan for access points
> and I can associate the wireless router with the freebsd box however
> I cant get an IP address from the wirless router using the DHCP
> server of the router.  I know the wireless router can detect the
> freebsd box because I can see the mac address on the wireless card in
> the router log.  If I run dhclient ral0 and it trys to find the
> server without success.
> 
> I have all the settings on the wireless card entered, wepkey, station,
> channel etc. 
> 
> Any suggestions as to what I am doing wrong?

With the new dhclient the usage changed. You can't just use dhclient
ral0. I don't use DHCP myself, but I'm sure man dhclient will help

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: need help setting up wireless on my computer

2006-01-02 Thread Fabian Keil
Brian John <[EMAIL PROTECTED]> wrote:

> I just went to compUSA and bought their generic 802.11g PCI wireless 
> card.  I was able to install it using the windows drivers at ndis0
> (see output from ifconfig below).
> 
> The problem I'm having is I seem to be able to connect, but can't
> talk to anything.  I am using WEP encryption and I am not
> broadcasting my SSID.  My laptop running windows works flawlessly.
> 
> I've tried this command to connect to the network:
> ifconfig ndis0 inet 192.168.0.10 netmask 255.255.255.255 ssid Brian 
> wepmode on wepkey  channel 9
> 
> ...and it seems to connect (see output from ifconfig after connected 
> below).  However, I can't ping my router and I can't get on the 
> Internet.  Can someone please help me out?

> ifconfig ndis0
> ndis0: flags=8843 mtu 1500
> inet6 fe80::20e:2eff:fe6d:4c9d%ndis0 prefixlen 64 scopeid 0x4
> inet 192.168.0.10 netmask 0x broadcast 192.168.0.10
> ether 00:0e:2e:6d:4c:9d
> media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
> status: associated
> ssid Brian 1:Brian
> channel 9 authmode OPEN powersavemode OFF powersavesleep 100
> rtsthreshold 2312 protmode CTS
> wepmode MIXED weptxkey 1
> wepkey 1:40-bit

Check the netmask. It probably should be 255.255.255.0.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Anybody using wep encryption with ndis on a recent FreeBSD 5.4?

2006-01-03 Thread Fabian Keil
Since about a month ago I can no longer use wep encryption
with up to date ndis.

[EMAIL PROTECTED] ~ $uname -a
FreeBSD TP51.local 5.4-STABLE FreeBSD 5.4-STABLE #28: Mon Jan  2
12:37:11 CET 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/THINKPAD  i386

[EMAIL PROTECTED] /root #ifconfig ndis0 wepkey 0x$key
ifconfig: SIOCS80211: Invalid argument

On FreeBSD 6.0 this means you have to kldload wlan_wep.ko,
but on FreeBSD 5.4 there is no wlan_wep.ko.

ATM I use ndis modules from an older build without trouble.

Is anybody else seeing this?

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Problems reading CDRW after writing

2006-01-03 Thread Fabian Keil
Marc Evans <[EMAIL PROTECTED]> wrote:
 
> I am running FreeBSD 6.0-STABLE as of Dec-15-2005 on a P4 system. I
> have a CDRW drive attached, which identifies as follows:
> 
>   acd0: CDRW  at ata1-slave UDMA33
> 
> I wish to use this device to produce CDRW backup disks periodically.
> I use the following commands to produce the backup:
> 
>   burncd erase
>   sleep 2 # needed to avoid READY error
>   tar czf - ... | burncd data - fixate
> 
> This appears to work fine, from the perspective of the output of the
> commands, e.g. I see output like:
> 
> blanking CD - 100 % done
> next writeable LBA 0
> writing from stdin
> written this track 633420 KB total 633420 KB
> fixating CD, please wait..

> I have also tried writing an ISO9660 image and mounting it, with
> similar problems at mount time.
> 
> The above said, I am able to create CD-R data disks and mount them or
> otherwise use them. I have tried several different CD-RW media, and
> played with -s (the media is rated as 12x), but have observed no
> changes.

You could use readcd's c2scan option to check if your CD-RWs are OK.
readcd is part of (/usr/ports/sysutils/cdrtools/) if you don't have
atapicam in your kernel you have to kldload it.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Problems reading CDRW after writing

2006-01-04 Thread Fabian Keil
Marc Evans <[EMAIL PROTECTED]> wrote:

> Thank you for your suggestion. I have managed to get camcontrol to 
> function, which implies to me that the atapicam module is
> functioning. However, I am not succeeding at getting the readcd
> command to work:
> 
> # camcontrol devlist
>at scbus1 target 1 lun 0
> (cd0,pass0) # camcontrol inquiry cd0
> pass0:  Removable CD-ROM SCSI-0 device
> pass0: 33.000MB/s transfers
> # readcd dev=/dev/cd0 -c2scan

Use readcd dev=1,1,0 -c2scan.

> readcd: Invalid argument. Open by 'devname' not supported on this OS. 
> Cannot open SCSI driver.
> readcd: For possible targets try 'readcd -scanbus'.
> readcd: For possible transport specifiers try 'readcd dev=help'.
> # readcd -scanbus
> readcd: Error 0. Cannot open SCSI driver.

I don't know yet if this is a general readcd problem or just a problem
with the ports version, however readcd -scanbus fails here as well.
cdrecord -scanbus still works. 

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: wicontrol -L output (was: field description)

2006-01-14 Thread Fabian Keil
Imran Imtiaz <[EMAIL PROTECTED]> wrote:

> when i do w
> wicontrol ath0 -L
> it shows me the aps that are currently running i am pasting the output
[...]
> can anyone tell me what does Capinfo field means e.g; ess = ?? priv
> = ?? shpr = ?? shst = ??

My guess is "Extended Service Set", "Privacy", "Short Preamble" and
"Short slot time".

On FreeBSD 6.0 and later these options are described in man ifconfig in
the scan section.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: dvdwriter - icybox - usb problem

2006-01-15 Thread Fabian Keil
Guido Van Hoecke <[EMAIL PROTECTED]> wrote:

> I have to connect my Plextor PX-716A dvd-writer via an external 
> IDE-to-USB/1394 Icybox (IB-550UE-B-BL) to my freebsd-6.0-RELEASE pc. 
> This pc is an IBuddy Desknote A928 without room for internal extra 
> devices. So I bought an Icybox enclosure, put the plextor in it and 
> connected the icybox through USB:
> 
> umass0: vendor 0x0402 USB 2.0 Storage Device, rev 2.00/1.05, addr 2
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0:  Fixed Direct Access SCSI-0 device
> da0: 40.000MB/s transfers
> da0: 0MB (1 0 byte sectors: 0H 0S/T 0C)
> 
> [EMAIL PROTECTED]:~> sudo cdrecord -scanbus
> Cdrecord-Clone 2.01 (i386-unknown-freebsd6.0) Copyright (C) 1995-2004 
> Jörg Schilling
> Using libscg version 'schily-0.8'.
> ...
> scsibus3:
>   3,0,0   300) 'USB 2.0 ' 'Storage Device  ' '0111' Disk
> ...
> [EMAIL PROTECTED]:~>
> 
> How do I tell FreeBSD that this is a DVD-writer rather than a hard
> disk?

Have you tried to use it? 

Does cdrecord dev=3,0,0 -prcap show false information as well?

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Boot with ACPI

2006-01-17 Thread Fabian Keil
Crispy Beef <[EMAIL PROTECTED]> wrote:

> When I boot my laptop running 6.0-RELEASE I need to boot with ACPI as 
> otherwise it crashes.  Was wondering how to make booting with ACPI
> the default?
> 
> To be honest I'm not bothered about the boot menu at all as I'm quite
> happy with the system booting without any interaction.  Sometimes I
> need to reboot remotely which isn't possible at the moment.  I've
> read a bit about loader.conf and have used it for various things, is
> it as easy as putting a line in there to get this working?

If ACPI isn't enabled on your system by default it means your system
is blacklisted.

To overwrite the blacklist you can set hint.acpi.0.disabled to 0
in /boot/loader.conf. See man acpi for more ACPI tunables.

If your system works with ACPI, you probably should file an PR.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: FreeBSD vs Linux

2006-01-17 Thread Fabian Keil
[EMAIL PROTECTED] wrote:

> What is the essential difference
> between FreeBSD and Linux (Fedora for instance)?
> Where can I find any list of differences?
> What/Where are the advantages of FreeBSD vs Linux?

http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Why I haven't device /dev/cd0

2006-01-18 Thread Fabian Keil
cblasius <[EMAIL PROTECTED]> wrote:

> I want to use DVD+RW. I looked in handbook and I saw there:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-dvds.html
> 
>  >>16.7.5 Using a DVD+RW
>  >>
>  >>Unlike CD-RW, a virgin DVD+RW needs to be formatted before first
>  >>use. The growisofs(1) program will take care of it automatically
>  >>whenever appropriate, which is the recommended way. However you
>  >>can use the dvd+rw-format command to format the DVD+RW:
>  >>
>  >># dvd+rw-format /dev/cd0
> 
> It is a mistake?
> In my folder /dev/ I have only the following devices for DVD:
> /dev/acd0
> and this (I do not remember exactly it name)
> /dev/acd0t01
> 
> Where is /dev/cd0?

You probably didn't read chapter "16.7.2 Configuration"
on the same page.

If you're using 6.0 you can

kldload atapicam.ko

and the "missing" device should appear.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: NIC

2006-01-19 Thread Fabian Keil
"Vitalie Apostu" <[EMAIL PROTECTED]> wrote:

> When I unplug UTP cable from NIC card and plug it back the system
> cannot ping any host in network. 
> Does anybody know how to fix it?

Did you try ifconfig $nic_device up?

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: NIC

2006-01-19 Thread Fabian Keil
Please don't top post and don't forget to CC
[EMAIL PROTECTED]

"Vitalie Apostu" <[EMAIL PROTECTED]> wrote:

> It will work if I do ifconfig up or restart. Why do not do
> automatically?
> 
> -----Original Message-
> From: Fabian Keil [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 19, 2006 7:29 AM
> To: [EMAIL PROTECTED]
> Cc: freebsd-questions@freebsd.org
> Subject: Re: NIC
> 
> "Vitalie Apostu" <[EMAIL PROTECTED]> wrote:
> 
> > When I unplug UTP cable from NIC card and plug it back the system 
> > cannot ping any host in network.
> > Does anybody know how to fix it?
> 
> Did you try ifconfig $nic_device up?

I guess it would violate POLA, I for one wouldn't expect the
NIC to get up by itself.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: atapicam load question

2006-01-21 Thread Fabian Keil
dick hoogendijk <[EMAIL PROTECTED]> wrote:

> When I "kldload atapicam" the permissions in /etc/devfs.conf for cd0
> are _not_ honored. (I want cd0 to have 0666)
> When I put atapicam_load="YES" in /boot/loader.conf the permissions
> are set the way I want them.
> 
> I would like to make the choice for atapicam later if posssible, so my
> question is: why are the permissions not honored by devfs.conf when it
> creates a /dev/cd0 device after a "kldload" ?

/etc/devfs.conf is for boot-time configuration only.
What you're looking for is /etc/devfs.rules.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Problem with if_bridge?

2006-01-23 Thread Fabian Keil
Dan Swartzendruber <[EMAIL PROTECTED]> wrote:
 
> This has got to be something silly I'm doing, but the man pages don't 
> tell me what.  I've googled a fair amount and likewise nothing.
> Anyway...
> 
> I've got a box running 6.0-RELEASE-p3.  Two network cards present, an 
> intel pro/100 (fxp0) and a cisco aironet card (ath0).  I want to 
> bridge the wireless users onto the LAN, but can't get it to work.  I 
> was told to use if_bridge instead of bridge.  Recommended steps:
> 
> ifconfig bridge0 create
> ifconfig addm fxp0
> ifconfig addm ath0

Try:
ifconfig bridge0 create
ifconfig bridge0 addm fxp0 addm ath0 up
ifconfig ath0 up
ifconfig fxp0 up

> There has GOT to be something obvious and/or stupid here, but I'm
> stumped :(

I think you just missed a few "up"s.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: VPN / Bridge

2006-01-24 Thread Fabian Keil
Bob Kersten <[EMAIL PROTECTED]> wrote:

> I've been trying to create a tunnel/bridge between two networks
> which both reside behind a FreeBSD router using NAT. I've achieved it
> using the handbook example in chapter 14.10. Clients on network A are
> able to ping clients on network B and clients on network A are able
> to map samba shares on the NAT box/gateway of network B. The example
> however uses two different subnets to route traffic between both
> networks. Unfortunately broadcasts will not travel through the tunnel
> which causes Apple's bonjour (called rendezvous earlier) not being
> able to discover clients on the other network.
> 
> What I want to achieve is what I believe a bridge between both  
> networks. The entire network A should be on the same subnet as  
> network B:
> 
> network A
> range 192.168.100.100 - 192.168.100.199 / 255.255.255.0
>|
> FreeBSD gateway A
> en1: IP: 192.168.100.101 / 255.255.255.0
> en0: public IP: 25.25.25.1
>|
> Internet
>|
> FreeBSD gateway B
> en0: public IP: 25.25.25.2
> en1: IP: 192.168.100.1 / 255.255.255.0
>|
> Network B
> range 192.168.100.1 - 192.168.100.99 / 255.255.255.0
> 
> Using the example from the handbook there was no additional  
> configuration necessary on the clients on both networks, the FreeBSD  
> gateways handled all the necessary routing. It would be great if
> this new setup should also not require any additional settings on
> the clients aswell.
> 
> Can anyone give me an example or the necessary steps to create this  
> kind of VPN?

If you use FreeBSD 6.0 see man if_bridge, else see man bridge.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: VPN / Bridge

2006-01-25 Thread Fabian Keil
CC'd to freebsd-questions@freebsd.org again.

Bob Kersten <[EMAIL PROTECTED]> wrote:

> On 24-jan-2006, at 17:28, Fabian Keil wrote:
> 
> >> What I want to achieve is what I believe a bridge between both
> >> networks. The entire network A should be on the same subnet as
> >> network B:
> 
> > If you use FreeBSD 6.0 see man if_bridge, else see man bridge.
> 
> So i've create a tunnel device gif0 and have it set to tunnel
> between the two public ip addresses. I've got stuck when i've tried
> to add this gif0 device to the bridge. FreeBSD complained and said
> that gif0 was not an ethernet device.
> 
> Maybe you have a step-by-step solution?

Maybe someone else could help you if you would post your FreeBSD
version, the commands you used and the exact error message.

ATM I don't use a VPN therefore I can't give you a known to work
step-by-step solution. However I couldn't reproduce your problem
on 6.0 with the following commands:

[EMAIL PROTECTED] ~ #ifconfig gif0 tunnel 1.2.3.4 5.6.7.8 up
[EMAIL PROTECTED] ~ #ifconfig bridge0 create
[EMAIL PROTECTED] ~ #ifconfig bridge0 addm ndis0 addm gif0 up
[EMAIL PROTECTED] ~ #ifconfig bridge0
bridge0: flags=8043 mtu 1500
ether ac:de:48:f4:4e:9c
priority 32768 hellotime 2 fwddelay 15 maxage 20
member: gif0 flags=3
member: ndis0 flags=3

BTW: man if_config says all members of the bridge are required to
have the same MTU, but ifconfig doesn't seem to check it.
My setup wouldn't work as gif0 has a MTU of 1280.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: VPN / Bridge

2006-01-26 Thread Fabian Keil
Bob Kersten <[EMAIL PROTECTED]> wrote:
 
> > ATM I don't use a VPN therefore I can't give you a known to work
> > step-by-step solution. However I couldn't reproduce your problem
> > on 6.0 with the following commands:
> >
> > [EMAIL PROTECTED] ~ #ifconfig gif0 tunnel 1.2.3.4 5.6.7.8 up
> > [EMAIL PROTECTED] ~ #ifconfig bridge0 create
> > [EMAIL PROTECTED] ~ #ifconfig bridge0 addm ndis0 addm gif0 up
> > [EMAIL PROTECTED] ~ #ifconfig bridge0
> > bridge0: flags=8043 mtu 1500
> > ether ac:de:48:f4:4e:9c
> > priority 32768 hellotime 2 fwddelay 15 maxage 20
> > member: gif0 flags=3
> > member: ndis0 flags=3
> 
> Where did your gif0 interface come from? I've added it using  
> 'ifconfig gif0 create', but when I try to add it to the bridge I'm  
> getting the following response:
> 
> [~] [EMAIL PROTECTED]> ifconfig bridge0 addm gif0
> ifconfig: BRDGADD gif0: Operation not permitted
> 
> I've noticed that in /var/log/messages it said that the mtu didn't  
> match, so I've solved that an put both mtu's to 1500. However, the  
> message still pops up when trying to add gif0 to the bridge.

gif0 was created with 'ifconfig gif0 create', I just forgot to copy
and paste it.

I get the "Operation not permitted" error only when I haven't
enough privileges:

[EMAIL PROTECTED] ~ $ifconfig bridge0 addm gif0
ifconfig: BRDGADD gif0: Operation not permitted

Does your user bob have root privileges and did you try
it as root?

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: VPN / Bridge

2006-01-27 Thread Fabian Keil
Bob Kersten <[EMAIL PROTECTED]> wrote:

> On 25-jan-2006, at 11:57, Fabian Keil wrote:
> 
> > [EMAIL PROTECTED] ~ #ifconfig gif0 tunnel 1.2.3.4 5.6.7.8 up
> > [EMAIL PROTECTED] ~ #ifconfig bridge0 create
> > [EMAIL PROTECTED] ~ #ifconfig bridge0 addm ndis0 addm gif0 up
> > [EMAIL PROTECTED] ~ #ifconfig bridge0
> > bridge0: flags=8043 mtu 1500
> > ether ac:de:48:f4:4e:9c
> > priority 32768 hellotime 2 fwddelay 15 maxage 20
> > member: gif0 flags=3
> > member: ndis0 flags=3
> >
> > BTW: man if_config says all members of the bridge are required to
> > have the same MTU, but ifconfig doesn't seem to check it.
> > My setup wouldn't work as gif0 has a MTU of 1280.
> 
> Gjee ... I'm still not able to add the gif0 device to my bridge0.
> 
> I'm using FreeBSD6.0 and I've fixed the mtu on my gif0 device to be  
> 1500. These are the steps that I take:
> 
> [/] [EMAIL PROTECTED]> ifconfig gif0 create
> [/] [EMAIL PROTECTED]> ifconfig gif0 tunnel 1.2.3.4 5.6.7.8 mtu 1500 up
> [/] [EMAIL PROTECTED]> ifconfig bridge0 create
> [/] [EMAIL PROTECTED]> ifconfig bridge0 addm fxp0
> [/] [EMAIL PROTECTED]> ifconfig bridge0 addm gif0
> ifconfig: BRDGADD gif0: Invalid argument
> 
> [/] [EMAIL PROTECTED]> ifconfig
> fxp0: flags=8943 mtu  
> 1500
>  options=8
>  inet6 fe80::202:a5ff:fe26:6e45%fxp0 prefixlen 64 scopeid 0x1
>  inet 192.168.100.101 netmask 0xff00 broadcast  
> 192.168.100.255
>  ether 00:02:a5:26:6e:45
>  media: Ethernet autoselect (100baseTX )
>  status: active
> rl0: flags=8843 mtu 1500
>  options=8
>  inet6 fe80::2e0:::%rl0 prefixlen 64 scopeid 0x2
>  inet 1.2.3.4 netmask 0xfe00 broadcast 83.160.3.255
>  ether 00:e0:4c:a2:b5:f6
>  media: Ethernet autoselect (100baseTX )
>  status: active
> lo0: flags=8049 mtu 16384
>  inet6 ::1 prefixlen 128
>  inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
>  inet 127.0.0.1 netmask 0xff00
> gif0: flags=8051 mtu 1500
>  tunnel inet 1.2.3.4 --> 5.6.7.8
>  inet6 fe80::202:a5ff::%gif0 prefixlen 64 scopeid 0x4
> bridge0: flags=8000 mtu 1500
>  ether ac:de:48:ee:6a:cf
>  priority 32768 hellotime 2 fwddelay 15 maxage 20
>  member: fxp0 flags=3
> 
> The 'fake' ip addresses don't matter, it doesn't work with real  
> addresses either. It seems as if gif0 is not accepted as 'real'  
> ethernet device when trying to add it to the bridge. Maybe this
> isn't the right way to achive the VPN with all clients in the same
> subnet.

I don't know if it means anything, but our bridges seem to be
different. Yours doesn't have the broadcast flag.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: ARP CACHE

2006-01-28 Thread Fabian Keil
KRISTA BALL <[EMAIL PROTECTED]> wrote:

> My systems arp cache needs cleaning, how do I go about it?

arp -ad

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: WLAN not detected on Acer TM 292ECLi

2006-01-31 Thread Fabian Keil
[EMAIL PROTECTED] wrote:

> anyone having WLAN working on an Acer Travelmate 290E? It doesn't
> seem to be detected at all on my laptop, which is a model 292ECli. As
> a Centrino laptop, it should have a Intel PRO Wireless 2200BG built
> in.

You could check it with pciconf -lv.
 
> I installed iwi-firmware from ports, built a custom kernel (world and
> kernel from -STABLE today) and checked that I have "options pci" and
> "options wlan" in it, just as man iwi says. I tried to load iwi as
> module with kldload, at boot time by setting if_iwi_load="YES" to
> loader.conf, and also tried to build it statically into the kernel.
> At no time, I get iwi mentioned in dmesg. kldstat says it is loaded
> when I load it dynamically.

I don't think you read and followed the port's instructions:

|You must choose the correct mode depending on how you want to
|use your adapter.
|
|For instance, to download firmware for BSS mode:
|
|  # iwicontrol -i iwi0 -d /boot/firmware -m bss
|
|The port has installed a startup script (iwi.sh). Add these lines
|to /etc/rc.conf to use it :
|
|  - iwi_enable (bool) : defaults to "NO", set it to "YES" to
|use the startup script.
|  - iwi_interfaces (str) : defaults to "iwi0", override it to
|change to interface names list (optional).
|  - iwi_mode_ (str) : defaults to "bss", possible values
|are bss, ibss and sniffer (optional).

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: How many IP address aliases can practically be used on one physical Ethernet interface?

2006-01-31 Thread Fabian Keil
[EMAIL PROTECTED] wrote:
 
> I am implementing and using a test bed simulating a huge amount of IP 
> clients, each preferable having a unique IP address. There is no, no 
> way to have an individual physical interface for each simulated
> client so I use IP aliases. Currently it runs on Linux and there is a
> limit of 256 IP addresses per interface, among other things due to a
> hard array limit in Linux net-tools ifconfig. There also seems to be
> other limitations like linear searches in net-tools as well as in
> kernel networking code. Just changing the array limit changed the
> problem to being one of stability and performance.
> 
> So I became quite optimistic reading about Virtual Hosts and IP
> aliases in the FreeBSD handbook chapter 11.9:
> 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-vi
> rtual-hosts.html
> 
> "A given network interface has one "real" address, and may have any 
> number of "alias" addresses".
> 
> So is this really true and where is the catch? Will a FreeBSD 6.0 
> accept for example 8190 IP address aliases  each on say five physical 
> Ethernet interfaces? Will IP addresses be manageable to add, list and 
> delete? And how much will networking performance degrade compared to 
> using just a few aliases?

After a short test I don't think 8190 aliases will be a problem.

[EMAIL PROTECTED] ~ #ifconfig re0| grep inet | wc -l
   18008
[EMAIL PROTECTED] ~ #ifconfig re0 -alias 192.168.10.100
[EMAIL PROTECTED] ~ #ifconfig re0| grep inet | wc -l
   18007
[EMAIL PROTECTED] ~ #ifconfig re0 alias 192.168.10.100
[EMAIL PROTECTED] ~ #ifconfig re0| grep inet | wc -l
   18008

I don't know if there is a performance degradation on
better hardware, but for my re0 the ftp performance
seems to be the same as with only one IP.

The only "catch" I can see is that it takes a while
to create a few thousand aliases ;-)
On my AMD Athlon(tm) XP 1900+ (1578.59-MHz 686-class CPU)
I get about five aliases per second.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: D-Link DWL-630 wireless

2006-02-02 Thread Fabian Keil
Philip Juels <[EMAIL PROTECTED]> wrote:

> Anyone able to get a D-Link DWL-630 wireless PCMCIA card working
> under FreeBSD 6.0?  What's the correct driver? (under linux it's
> listed as ath0, if that's any clue)

Try kldload if_ath.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: k3b hardware detection

2006-02-04 Thread Fabian Keil
Andrea Venturoli <[EMAIL PROTECTED]> wrote:

> I just tryed installing k3b and I did follow all the instruction from 
> pkg-message5.
> The problem now is that my burner is detected as a cd-rom read only
> device.
> 
> First of all:
> 
> _ I'm using FreeBSD 6-STABLE; I followed the instruction for FreeBSD 
> 5.x, since that's what I was presented with; there are no
> instructions for 6, but I guess those are good;
> 
> _ here are my relevant dmesg:
> 
> > sym0: <895> port 0xd800-0xd8ff mem
> > 0xd5202000-0xd52020ff,0xd5201000-0xd5201fff irq 15 at device 10.0
> > on pci0 sym0: Tekram NVRAM, ID 7, Fast-40, LVD, parity checking
> > sym0: [GIANT-LOCKED]
>  > ...
> > cd1 at sym0 bus 0 target 6 lun 0
> > cd1:  Removable CD-ROM SCSI-2 device
> > cd1: 20.000MB/s transfers (20.000MHz, offset 15)
> > cd1: Attempt to query device size failed: NOT READY, Medium not
> > present - tray closed
> ...
> > cd0 at sym0 bus 0 target 4 lun 0
> > cd0:  Removable CD-ROM SCSI-2 device
> > cd0: 20.000MB/s transfers (20.000MHz, offset 15)
> > cd0: cd present [207330 x 2048 byte records]
> 
> 
> _ camcontrol devlist gives:
> 
>  >at scbus0 target 0 lun 0
>  > (da0,pass0)   at scbus0 target 4
>  > lun 0 (cd0,pass1)   at scbus0
>  > target 5 lun 0 (da1,pass2)  at
>  > scbus0 target 6 lun 0 (cd1,pass3)
> 
> Notice everything is true SCSI.
 
> K3B sees the two following readonly devices:
> 
>  > YAMAHA CRW8824S
>  > PLEXTOR CD-ROM PX-40TS
 
> Obviously the first shoud be listed in Writer Devices...
> 
> BTW cdrecord & co. work fine.

Just a guess, but maybe the drive reports false capabilities
which are then checked by k3b.

You could try cdrecord's prcap option to see if the drive
advertises it self as a writer.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: enlightenment-0.16.999.023 does not build on 4.X

2006-02-11 Thread Fabian Keil
"RYAN M. vAN GINNEKEN" <[EMAIL PROTECTED]> wrote:

> Is this port broken ?? or am i just to tired to make it work right

The port requires FreeBSD 5.x or later.

From the Makefile:
 
.if ${OSVERSION} < 50
IGNORE= does not build on 4.X
.endif

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Thunderbird vs Evolution...

2006-02-11 Thread Fabian Keil
Norberto Meijome <[EMAIL PROTECTED]> wrote:

> Anyone has preferences on one or the other for heavy use of email?
> Stability on Thunderbird 1.5 has been **shocking** lately (running
> with enigmail 0.94.0, Remove duplicate msgs 0.1.02, Notary 0.2,
> Signature switch 1.02) , so right now is my main concern,...

You might want to look at Sylpheed-Claws as well, it has similar
features.

I have no problems with stability either, but with 2.0.0
language changing for the spell checker is a mess and X11 style
copy and paste doesn't work anymore. I haven't yet found a way to
reenable these functions, but other than that it's fine. 

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: ifconfig wepkey on 6.0

2006-02-12 Thread Fabian Keil
"kalin mintchev" <[EMAIL PROTECTED]> wrote:

>   according to the man page of ifconfig in 6.0 the wepkey should be 5
> or 13 characters. the wep key i always had is way longer than 13
> characters 128 bit - one key only..  so when i try to set it up to
> the wi0 i get:
> 
> # ifconfig wi0 wepkey 1:0xWEPKEY128BITENCRYPTIONBLAHBLA
> ifconfig: SIOCS80211: Invalid argument

Did you look in /var/log/messages?

It probably tells you to load wlan_wep.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: need help with pcmcia wireless network card

2006-02-13 Thread Fabian Keil
Teemu Korhonen <[EMAIL PROTECTED]> wrote:

> I have a laptop with freebsd-6.0 and I've got everything working
> except my Buffalo WLI-CB-G54S wireless network card.
> When I insert the card I get following message "cardbus0: 
> at device 0.0 (no driver attached)"
> 
> I found two pages that seems to be instructions to get the card
> working:
> 
> http://geocities.yahoo.co.jp/gl/stealth_daemon/view?.date=20050623&.utc=1133948970
> 
> http://geocities.yahoo.co.jp/gl/stealth_daemon/view?.date=20051207&.utc=1133982628
> 
> as they are japan, I can't get but the main idea.
> 
> So far the ndisgen doesn't work it fails to build the .ko file, but
> I've had better luck with ndiscvt which made and if_ndis.ko

You don't have to build if_ndis.ko and ndis.ko manually,
they should already be present in /boot/kernel.

If ndisgen "doesn't work" you usually get an error message.
Without knowing the error message and how you got it,
it's hard to tell what's wrong.
 
Try running ndisgen /path/to/INF /path/to/SYS
an press return a few times. Afterwards you should
either have the kernel module containing the firmware,
or a reason why the build failed.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Concerns about wording of man blackhole

2006-02-16 Thread Fabian Keil
Chuck Swiger <[EMAIL PROTECTED]> wrote:

> Fabian Keil wrote:

> >> Most people use a firewall because they are running services (and
> >> thus have open ports) which they do not want the rest of the
> >> Internet to be able to connect to.
> > 
> > What does this have to do with "blackhole".  
> 
> The "blackhole" sysctl makes it somewhat harder for an intruder to
> figure out which ports are really closed versus which ports are being
> filtered, and how/where that filtering is being done.
> 
> Firewalls are used to make open ports appear "filtered" to external
> connection attempts.  Someone who assumes that all filtered ports are
> really closed is not making a correct assumption.

OK I didn't think about the problem that the firewall can't reset
the connection on behalf of a system behind it (at least I don't know
if there is a firewall which sends resets with faked IPs) and dropping
is the only way to go.

While reading man blackhole I was configuring PF on my laptop,
and with the possibility to let ports appear as closed, blackhole
doesn't look that good. 
 
> >> If there exists someone who assumes all "filtered" ports are
> >> closed, well, wouldn't that fact demonstrate that the blackhole
> >> mechanism does help...?
> >  
> > Help with what? From the attacker's point of view it makes little
> > difference if a port appears as filtered or closed.
> 
> A knowledgeable security analyst or a blackhat trying to crack the
> network would certainly not assume "closed" and "filtered" are the
> same thing.

You're right again, I was only thinking of the case where the firewall
is running on the target system and faking closed ports is as easy as
letting them appear as filtered.
 
> [ ... ]
> >>>> These reconnection attempts will greatly slow down attempts to
> >>>> scan ports rapidly.
> >>> Which shouldn't result in a DOS anyway. The reconnection attempts
> >>> will even increase the inbound traffic.
> >> Yes, but to ports that aren't actually open.
> >>
> >> It's relatively cheap and easy to process such packets by just
> >> dropping them, compared with processing them in a userland daemon.
> > 
> > What userland daemon?
> 
> The canonical example is inetd, but any process which listen()s on a
> port and accept()s incoming connections would qualify as a "userland
> daemon".

I know what a userland daemon is, but on a closed port there shouldn't
be one.
 
> >> [ ... ]
> >>> Again I don't see the gain. Eventually the port scan will be
> >>> finished and open ports found.
> >> If you can flip a sysctl which increases the time it takes for
> >> Slammer or Nimda or some other worm to scan through all of the IP's
> >> on your network, the admins there have more time to respond, and
> >> there is a better chance that AV software will get updates to block
> >> the malware before too many systems get infected.
> > 
> > If you already have the firewall to drop those unwanted connections
> > you might as well just reset them.
> 
> Unfortunately, a firewall can only affect traffic which passes by
> it.  There are plenty of cases where someone opens an attachment in a
> malicious email, which infects their system and causes it to
> scan/probe LAN IPs.
> 
> Having a firewall won't do a thing to protect you from local scans.
> Using "blackhole" on internal machines can help this scenario
> somewhat.

You mean just by slowing the scan down, or is there another effect
I didn't think of?

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: newly built kernel fails to boot

2006-02-16 Thread Fabian Keil
Andrew <[EMAIL PROTECTED]> wrote:

> I've just had a go at configuring and rebuilding a kernel for my
> desktop machine. I read the section in handbook, and skimmed over
> NOTES and the GENERIC config. I then copied GENERIC to NETVISTA and
> commented out drivers/devices that I didn't think were relevant to my
> hardware. config(8) is happy with my file, and 'make buildkernel' and
> 'make installkernel' proceed without any errors. So, I ran
> nextboot(8) and rebooted, but the new kernel hangs right after the
> first line printed to the console; the first portion of which is
> 'acpi.ko'. 
 
> # NETVISTA Kernel Config
> # ACPI Video Extensions (LCD backlight/brightness, video output, etc.)

> deviceacpi_video

Just guessing, but man acpi says:

|BUGS
| If the acpi driver is loaded as a module when it is already linked as
| part of the kernel, odd things may happen.

Maybe having acpi_video in the kernel and then loading acpi as
module triggers "odd things" as well.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Every 12-hrs -- "ad0: TIMEOUT - WRITE DMA"

2006-02-17 Thread Fabian Keil
"V.I.Victor" <[EMAIL PROTECTED]> wrote:

> For the last 4-days, our (otherwise OK) 5.4-RELEASE machine has been
> reporting:
> 
> Feb 12 12:08:05 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=2701279
> Feb 13 00:08:51 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=2701279
> Feb 13 12:09:38 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=2963331
> Feb 14 00:10:24 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=2705947
> Feb 14 12:11:09 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=2706335
> Feb 15 00:12:02 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=2832383
> Feb 15 12:12:57 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=139839
> Feb 16 00:13:50 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=131391
> Feb 16 12:14:36 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=131391
> 
> The system was created Jan 08 and, prior to the above, the ad0: timeout had
> only been reported twice:
> 
> Jan 25 11:43:34 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=17920255
> Feb 6 11:59:42 : ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) 
> LBA=2832383

If smartd doesn't report any problems try changing the ATA cable.

Worked for me once, although my messages didn't come every 12 hours
and would later result in an disconnected system disk leading to a
crash.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Cool listing script (needs a fix)

2006-02-21 Thread Fabian Keil
Kristian Vaaf <[EMAIL PROTECTED]> wrote:

> When running this:
> 
> --
> 
> #!/usr/local/bin/bash
> #
> #   Print a structured file and folder list.
> #   $ARBA: tree.sh,v 1.0 2007/11/11 15:05:09 vaaf Exp $
> #
> #   Include files: -a, --all
> #
> 
> argument="-type d"
> 
> case $1 in -a | --all) argument="" ;; esac
> 
> tree='s,^.$,,
>   /^$/d
>   s,[^/]*/\([^/]*\)$,+-\1,
>   s,[^/]*/,| ,g'
> 
> pwd; find -s . $argument -print | sed -e "$tree"

> How can I make the same script include an END notice?

> # tree -a
> /home/vaaf/usr
> +-commands.txt
> +-lyrics.txt
> +-people.txt
> +-public.txt
> |
> | END

> Anybody know how?

echo "|"
echo "| END"

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Automatically changing modes on the DVD writer for K3b

2006-02-23 Thread Fabian Keil
Donald T Hayford <[EMAIL PROTECTED]> wrote:

> To get K3b to work I need to change the mode of the following devices to 
> 664 (or 666) from 644.
> 
> /dev/xpt0
> /dev/cd0 and /dev/cd1
> /dev/pass0 and /dev/pass1
> 
> Is there a way to do this automatically on boot-up?  Now I do it using a 
> script that I run as root but, of course, I always forget to run the 
> script before I run K3b.

Use /etc/devfs.conf:

permxpt00664
permcd0 0664
permcd1 0664
permpass0   0664
permpass1   0664

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: trouble finding burner (k3b)

2006-02-23 Thread Fabian Keil
Duane Whitty <[EMAIL PROTECTED]> wrote:

> Peter wrote:
> > This k3b program is great but it I find it very picky.  Currently it
> > cannot detect my DVD/CD burner (/dev/acd1) anymore.  It can find my CDROM
> > (/dev/acd0) allright but it claims the permissions may be wrong on the
> > burner.  I checked and these devices have the same permissions.  I even
> > gave them both 777 without success in detection.  They are also both owned
> > by root:operator and my invoking user is in group operator.  This used to
> > work great.  I haven't tried to burn anything recently so I don't know
> > when things fell apart but what I can say is yesterday I recompiled my
> > kernel.  I used the same config file with one line being added (for USB
> > 2.0 support; ehci).  Anyone have any ideas?  I'm running 5.4 although
> > today I was surprised that dmesg showed this:

> I have a similar problem in that k3b cannot find 
> my DVD/CD burner.  However I haven't received any 
> messages about permissions.
> 
> On a hunch I started X as root and k3b was then 
> able to find my hardware.  This doesn't really 
> solve the problem but it was a quick work-around 
> for me until I figure this out.
> 
> Note: I too changed permissions to 666 on 
> /dev/acd0 and /dev/cd0 to no avail.

The user needs to have access to /dev/xpt0 and /dev/pass0 as well.  

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Converting a Regex into plain text

2006-02-23 Thread Fabian Keil
Warren Liddell <[EMAIL PROTECTED]> wrote:

> is there any pkg avilable that'll convert a regex into plain txt ?

What do you mean? What would the plain text translation of 

<(div|p)[^>]*(id|class)=\"(Ad.*|Logo|SidebarAds|Tips|Item)\"

be?

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: wireless question

2006-02-25 Thread Fabian Keil
dick hoogendijk <[EMAIL PROTECTED]> wrote:

> Up 'till now all my (home) netwrok computers are cabled.
> My FreeBSD-6.1PR is hidden in the closet (I want no noise!)
> 
> The problem is my new notebook -- it's wireless. so now I have to
> learn how to deal with this.
> 
> I don't want my server leaving the closet (too much noise).
> Can someone give me some reading pointers on how to tackle this
> problem?

man ifconfig
man ath
man if_bridge
 
> I.e.: is it possible to connect an wireless access point to my router?

It's possible and probably the easiest solution,
but neither the cheapest nor the best.

> Or is it better to change the router into a wireless router (can
> signals go through wooden doors?. It's all very confusing and I'm
> willing to learn! ;-)

If you already have a FreeBSD-based router, just add a wlan nic which
has hostap support. You will pay less and get a far more powerful
system.

Wooden doors shouldn't be a problem, but you'll have to see for
yourself.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Why doesn't burn cdrdao BIN/CUE on 6.0-R ?

2006-02-26 Thread Fabian Keil
"Robert Eckardt" <[EMAIL PROTECTED]> wrote:

> after trying for some hours now to burn a videocd with cdrdao
> under 6.0-R, I reverted to nero on XP. :-(

> 18:45 gluon: roberte/CD-Stuff/tmp 0%# cdrdao write --device 0,1,0
> --driver generic-mmc-raw --speed 16 Video1.cue

Did the same command work before?

It doesn't answer your question, but cdrecord has basic cue
sheet support, too. You could give it a try.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: VPN & Jail(s) ...

2006-02-26 Thread Fabian Keil
"Marc G. Fournier" <[EMAIL PROTECTED]> wrote:

> On Sun, 26 Feb 2006, Igor Robul wrote:
> 
> > On Wed, Feb 22, 2006 at 09:03:26PM -0400, Marc G. Fournier wrote:
> >>
> >> I asked this a little while ago, and had alot of good answers ...
> >> but, after doing some thinking, I'm wondering if there might be a
> >> better way of doing it, that removed the requirement for 'hitting'
> >> the base operating system ...
> >>
> >> If I ran something like FreeBSD in VMWare, would that work?  Are
> >> there any OSS VMWare-like solutions available out there?
> > emulators/qemu
> 
> Yup, found it, but can't seem find any information on whether or not 
> running a 'VPN Hub' within it will work ... do you know?  I've got
> lots that confirm it works as a client, just not as 'the server' :(

I don't see why it should make a difference if you run a client
or a server inside the guest OS. They both need a network connection.
However, QEMU's guest OS can behave like a real system on the network.

Have a look at 
for a setup description. Of course you don't have to use bridge,
it works with if_bridge and NAT, too.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: NDIS problems with D-Link DSL-200B1 driver

2006-03-02 Thread Fabian Keil
Андрей Перминов <[EMAIL PROTECTED]> wrote:

> I'm using  D-Link DSL-200 B1 ADSL modem and wished to make it work
> under my FreeBSD 6.0-RELEASE. My ISP uses RFC 2684 IPoATM Bridged LLC
> Encapsulation (LAN driver mode) so eciadsl won't help me.
> I have glausb.in_, glausb.sys and mon_ac_w.bin driver files. There are
> 2 dll, but I think they aren't necessary (coinst.dll and gsindi.dll).
> I'm trying to convert this driver with NDIS. I run successfully
> ndisgen and got glausb_sys.ko, which I moved to /boot/kernel/.
> After that I'm trying to load it with kldload glausb_sys.ko. But it
> just returns
> 
> no match for IoOpenDeviceRegistryKey
> no match for ZwSetValueKey
> no match for [EMAIL PROTECTED]
> no match for [EMAIL PROTECTED]
> 
> glausb_sys.ko appears in kldstat, but modem is staying ugen0.

AFAIK ndis doesn't work with usb devices.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: wireless question

2006-03-02 Thread Fabian Keil
Lorin Lund <[EMAIL PROTECTED]> wrote:

> WiFi works for Windows XP on my dual-boot Toshiba notebook.  But with
> FreeBSD it is doing nothing.
> I have PCCard enabled in rc.conf.
> I added the recommended line to loader.conf (per wi0 man page) that
> didn't seem to make any difference

Looks like you have device wi already in the kernel.
 
> ifconfig wi0 scan
>   shows nothing.
> ifconfig wi0 list scan
>   shows nothing
> ifconfig wi0 list ap
>   shows nothing

You have to do a

ifconfig wi0 up

first.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Trouble with if_bridge and wlan nic in infrastructure mode

2006-03-11 Thread Fabian Keil
I have a problem with if_bridge if one of the members
is a wlan nic in infrastructure mode.

Bridges between the following device combinations work:

em0 and tap0;
em0 and wi0 in hostap mode;
em0 and ath0 in hostap mode;
rl0 and re0 (different system);

Bridges between the following don't:

em0 and ndis0 in infrastructure mode;
em0 and wi0 in infrastructure mode;
em0 and ath0 infrastructure mode;
tap0 and ndis0 in infrastructure mode; 

My bridge is a ThinkPad R51 running
FreeBSD 6.1-PRERELEASE #11: Fri Mar 10 13:05:07 CET 2006.

PF is disabled and all net.link.bridge sysctls are set to 0.

I tested two Access Points for the infrastructure mode,
a Netgear WGT624 and another Laptop running Anonym.OS.

The ThinkPad can ping the AP and the system behind em0
(or tap0), but the system behind em0 (or tap0) can't reach
the AP and can't be reached by the AP either. Both systems
between the bridge can ping the bridge itself. 

If I run tcpdump on the members of the bridge I can see
arp requests (who has IP foo tell bar) on both members,
but answers coming in on em0 don't appear on the wlan nic
in infrastructure mode and the wlan nic doesn't get any
answers which could be bridged to em0 at all. 

I'm under the impression that even the arp requests
coming in on em0 and shown on the wlan nic in infrastructure
mode aren't send out. At least I can't see them on the AP
running Anonym.OS.

Arp requests made my the AP are bridged and answered by
the system behind em0, but the answers itself aren't bridged.

man if_bridge's wi0 example assumes "the 802.11 interface is in
ad-hoc mode" but it doesn't say wlan bridging would be limited
to ad-hoc and hostap mode.

I worked around the problem by using NAT, but I'm still interested
if anybody is using an if_bridge member in infrastructure mode or
if there's a reason why it shouldn't work. 

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: ERROR: version of config(8) does not match kernel

2006-03-12 Thread Fabian Keil
Kiffin Gish <[EMAIL PROTECTED]> wrote:

> I've update my src directory, but keep getting the following error
> (see below).
> 
> Yes I understand what it is saying, but how can I fix it?! I ran
> cvsup a couple of times, but it doesn't seem to help.
> 
> # cat cvs-supfile
> *default host=cvsup3.nl.freebsd.org
> *default base=/usr/local/etc/cvsup
> *default prefix=/usr
> *default tag=RELENG_6_0
> *default release=cvs delete use-rel-suffix compress
> src-all
> ports-all tag=.
> doc-all tag=.
> 
> # make buildkernel KERNCONF=WEBSERVER
> 
> --
> >>> Kernel build for WEBSERVER started on Sun Mar 12 16:36:23 CET 2006
> --
> ===> WEBSERVER
> mkdir -p /usr/obj/usr/src/sys
> 
> --
> >>> stage 1: configuring the kernel
> --
> cd /usr/src/sys/i386/conf;
> PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/u
> sr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src
> /tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:
> /bin:/usr/sbin:/usr/bin  config
> -d /usr/obj/usr/src/sys/WEBSERVER  /usr/src/sys
> /i386/conf/WEBSERVER
> ERROR: version of config(8) does not match kernel!
> config version = 500013, version required = 63
> 
> Make sure that /usr/src/usr.sbin/config is in sync
> with your /usr/src/sys and install a new config binary
> before trying this again.
> 
> If running the new config fails check your config
> file against the GENERIC or LINT config files for
> changes in config syntax, or option/device naming
> conventions
> 
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> 

Did you do a make buildworld before you tried building the kernel?

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Help with WEP keys on FreeBSD 6.0

2006-03-15 Thread Fabian Keil
Warren Toomey <[EMAIL PROTECTED]> wrote:

> With WEP enabled on the WRT54G, I run these commands on FreeBSD:
> 
> ifconfig iwi0 10.10.2.20 netmask 255.255.255.0 channel 6 ssid fred
> ifconfig iwi0 wepmode on wepkey 0x3f352a2149646c675e5e2abcde
> 
> and ifconfig iwi0 then shows:
> 
> iwi0: flags=8843 mtu 1500
>   inet 10.10.2.20 netmask 0xff00 broadcast 10.10.2.255
>   ether 00:16:6f:4b:98:57
>   media: IEEE 802.11 Wireless Ethernet autoselect
>   status: associated
>   ssid fred channel 6 bssid 00:14:bf:74:d4:5e
>   authmode OPEN privacy ON deftxkey UNDEF wepkey 1:104-bit
> txpowmax 100 protmode CTS bintval 100
> 
> However, pings from the laptop (10.10.2.20) to the AP (10.10.2.1)
> fail. I have wlan_wep built into the kernel. Can anybody think what I
> might be doing wrong?

Since FreeBSD 6 you have to tell ifconfig which key to use as default,
it no longer defaults to the first one. As you see you have
"deftxkey UNDEF", your key isn't used.

Try:
ifconfig iwi0 wepmode on wepkey 1:0x3f352a2149646c675e5e2abcde deftxkey 1

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: kldload if_ndis file exists

2006-03-18 Thread Fabian Keil
Darrel <[EMAIL PROTECTED]> wrote:

> - install ZyAIR G-302

> - login to FreeBSD Prerelease 6.1, amd64
> - 'su' to root
> - 'ifconfig -a' and 'dmesg -a | less'

Was the card detected? Does it show up in pciconf -lv?
 
> # cp t1130_XP.sys /usr/src/sys/modules/if_ndis/
> # cp TNET1130.INF /usr/src/sys/modules/if_ndis/
> # cd /usr/src/sys/modules/ndis
> # make && make install
> # cd ../if_ndis
> # ndiscvt -i TNET1130.INF -s t1130_XP.sys -o ndis_driver_data.h
> # make && make install
> # kldload ndis

You should use ndisgen.

> - move wireless card from amd64 to i386 running FreeBSD 6.0:
>same procedure and same results
> 
> - these files exist in the driver folder:
> 04.Nov.04  18:5592,836 FwRad16.bin
> 04.Nov.04  18:5594,192 FwRad17.bin
> 04.Nov.04  18:5696,336 FwRad19.bin
> 01.Dec.04  18:36   438,432 t1130_9x.sys
> 01.Dec.04  18:35   438,912 t1130_XP.sys
> 24.May.05  00:32 9,373 tnet1130.cat
> 10.May.05  18:5112,964 t1130_XP.sys
> 01.Dec.04  18:2969,632 tnetwcoinst.dl

> Does someone know which file(s) to run 'ndiscvt -f' on or do I make a
> directory in /compat called ndis and just move the binary there?

You need an inf file. Try the one from your ndiscvt command
together with t1130_XP.sys, if the resulting module still
doesn't work try adding combinations of the bin files as well.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: xset dpms during X startup?

2006-03-20 Thread Fabian Keil
"Darren Spruell" <[EMAIL PROTECTED]> wrote:

> Is it possible to configure xset(1) DPMS settings in a ~/.xsession
> file for when a login session starts?
> 
> I have the following ~/.xsession file:
> 
>  /usr/X11R6/bin/xset -b
>  /usr/X11R6/bin/xset dpms 1800 7200 14400
>  /usr/X11R6/bin/xscreensaver -no-splash &
>  exec startfluxbox
> 
> But after logging into XDM after X is restarted 'xset q' still shows:
> 
> DPMS (Energy Star):
>   Standby: 7200Suspend: 7200Off: 14400
>   DPMS is Disabled
> 
> Option "DPMS" is enabled in my xorg.conf.
> 
> Is there something I don't know about DPMS and .xsession?
> 
> FreeBSD 6.0-RELEASE-p4
> xorg-6.9.0
> fluxbox-devel-0.9.14_1

Did you check your xorg log file if dpms is enabled?

Even without using xset you should see something like:

(**) Option "dpms"
(**) RADEON(0): DPMS enabled

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: USB external drive size limitations?

2006-03-25 Thread Fabian Keil
"Jonathan Horne" <[EMAIL PROTECTED]> wrote:

> Last night I plugged in a 300GB Maxtor USB drive into my FreeBSD 6.0
> server (with a fat filesystem), and it told me it was too big!!

> Haha, its full of my backups from my previous operating system
> (fedora) and now im going to have a fun time getting those files onto
> my new FreeBSD server!  Can someone recommend a course of action for
> me here?  Google isn't really turning up anything interesting
> relating to size of external drives.
 
Do you already have "options MSDOSFS_LARGE" in your kernel?

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: USB external drive size limitations?

2006-03-25 Thread Fabian Keil
Fabian Keil <[EMAIL PROTECTED]> wrote:

> "Jonathan Horne" <[EMAIL PROTECTED]> wrote:
> 
> > Last night I plugged in a 300GB Maxtor USB drive into my FreeBSD 6.0
> > server (with a fat filesystem), and it told me it was too big!!
> 
> > Haha, its full of my backups from my previous operating system
> > (fedora) and now im going to have a fun time getting those files
> > onto my new FreeBSD server!  Can someone recommend a course of
> > action for me here?  Google isn't really turning up anything
> > interesting relating to size of external drives.
>  
> Do you already have "options MSDOSFS_LARGE" in your kernel?

Forgot to mention that it isn't perfect. I believe the limitations
described in http://www.freebsd.org/releases/5.3R/relnotes-i386.html
are still true:

|The MSDOSFS_LARGE kernel option has been added to support FAT32 file
|systems bigger than 128GB. This option is disabled by default. It uses
|at least 32 bytes of kernel memory for each file on disk; furthermore
|it is only safe to use in certain controlled situations, such as
|read-only mount with less than 1 million files and so on. Exporting
|these large file systems over NFS is not supported.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: what is the process for migrating a pre-built kernel to a new machine?

2006-03-26 Thread Fabian Keil
"Jonathan Horne" <[EMAIL PROTECTED]> wrote:

> So if when you say "copy the kernel", do you just mean the contents
> of the /boot/kernel directory, and that's as plain as it is?  Or is
> there more to it?

You should make sure that userland and the new kernel are in sync.
 
> The reason I'm asking, is that I always plan for disaster recovery,
> and after a build, easily the single longest task for bringing my
> particular system totally back online, is compiling the kernel (im
> still running my 5 year old dual p3 800).  For time's sake during
> recovery, I would like to skip at least that process.

If you do a make installkernel /boot/kernel is copied
to /boot/kernel.old. If your new kernel doesn't work,
you can still use your old one.

Of course if you build two broken kernels in a row,
the kernel from /boot/kernel.old doesn't work either,
therefore it doesn't hurt to copy a known to work kernel
directory to /boot/whatever, to make sure it's not
overwritten.
 
> Can you give me more specifics on exactly what should be moved/copied?

It depends on your kernel configuration.

The easiest way to make sure you don't forget anything is to
export /usr/src and /usr/obj on your build machine, mount them
on the target machine and run make installkernel from there.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Starting privoxy at startup

2006-03-31 Thread Fabian Keil
Oliver Iberien <[EMAIL PROTECTED]> wrote:

> Sorry to drag this out, but I still have not got this to work. I've
> looked at the permissions of the files involved but nothing untoward
> shows up. I think. There is just the conf file and the stuff
> in /var/log, right? How should their permissions look?

If you comment out

\
1>/dev/null 2>&1

in the start script, Privoxy should give you a reason why it
doesn't start.

And no, Privoxy also needs at least read access to the filter
and action files. Read access to the templates will be appreciated
as well, but shouldn't cause start problems.

You probably want Privoxy to be able to write to the action files,
otherwise you can't modify them with the web interface.
 
> If I wanted to have two flags for privoxy in rc.conf -- the one below
> and one pointing to /usr/local/etc/privoxy/conf -- what would that
> look like? 

I believe you can change the configfile only in the start
script itself.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: printing on firefox results in irq storm on printer port

2006-04-08 Thread Fabian Keil
Oliver Iberien <[EMAIL PROTECTED]> wrote:

> I was printing with native Firefox 1.5.0.1 (FreeBSD 6.0) with CUPS,
> which Firefox sees and recognizes. The printer (Xerox N17, local,
> parallel port) started cycling through waiting-processing-waiting
> messages. Rebooting, I saw a message about an IRQ storm on the
> printer port being "throttled". Killing the job took care of this.
> 
> Has anyone else had an issue like this? Firefox printing isn't
> critical but it's always nice to know what's going on. 

The default value of hw.intr_storm_threshold is easily reached
by a printer connected through the parallel port.

Have a look at: .

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: help with tcpdump cmd syntax

2006-04-08 Thread Fabian Keil
"fbsd_user" <[EMAIL PROTECTED]> wrote:

> I tried 
>tcpdump -i rl0 src host 218.166.163.180 -w /usr/tcpdump.data
>tcpdump -i rl0 host 218.166.163.180 -w /usr/tcpdump.data
>tcpdump -i rl0 src ip 218.166.163.180 -w /usr/tcpdump.data  
> 
> but got syntax error msg with no hint of what was wrong
> 
> If I remove the -w stuff it works. Meaning it prints to the screen.
> But I want to write to file
> 
> Can you help me out here on the syntax error?

According to the man page the expression comes last.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: cdrecord on Thinkpad T43

2006-04-08 Thread Fabian Keil
"Erin Sharmahd" <[EMAIL PROTECTED]> wrote:

> I've been having some problems getting cdrecord to work on my
> thinkpad.
> 
> http://www.mathematik.uni-marburg.de/~schmidtm/ibm/index.php says:
> "To burn CDs with cdrecord don't forget to enable atapicam during
> kernel configuration."
> 
> In his kernel config, he used this with "device atapicd", so I ran:

He doesn't use atapicam in his kernel configuration.

> [amon-re /root] cat /sys/i386/conf/GENERIC | grep atapicd
> device  atapicd # ATAPI CDROM drives
> 
> In the past (on Linux), I had always used 'cdrecord dev=/dev/cdrom',
> so I initially tried 'cdrecord dev=/dev/acd0', but I learned from
> 'cdrecord dev=help' that apparently "open via UNIX device" is not
> supported.  "SCSI Bus scanning" is supposed to be supported, but when
> I run 'cdrecord -scanbus', it gives:
> [amon-re /root] cdrecord -scanbus
> Cdrecord-Clone 2.01 (i386-unknown-freebsd6.1) Copyright (C) 1995-2004
> Jörg Schilling
> cdrecord: Error 0. Cannot open SCSI driver.
> cdrecord: For possible targets try 'cdrecord -scanbus'.
> cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
> 
> (it would be nice if cdrecord -scanbus didn't tell me to run it
> again... but that's a different issue)
> 
> Here is some (hopefully) relevant information about my system:
> 
> [amon-re /root] uname -a
> FreeBSD amon-re 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Sat Feb 11
> 21:55:30 MST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
> 
> [amon-re /root] sysctl -a | grep -i cd
> kern.cam.cd.changer.min_busy_seconds: 5
> kern.cam.cd.changer.max_busy_seconds: 15
>   allocdirect 4 1K   -79793  128
>acd_driver 1 2K   -1  2048
>  cdev31 4K   -   31  128
> debug.sizeof.cdev: 184
> debug.sizeof.cdev_priv: 216
> dev.acpi_ec.0.%desc: Embedded Controller: GPE 0x1c, ECDT
> dev.cbb.0.%location: slot=0 function=0 handle=\_SB_.PCI0.PCI1.CDBS
> dev.acd.0.%desc: MATSHITADVD-RAM UJ-822S/1.61
> dev.acd.0.%driver: acd
> dev.acd.0.%parent: ata1
> 
> [amon-re /root] dmesg | grep -i cd
> acpi_ec0:  port 0x62,0x66 on
> acpi0 acd0: DVDR  at ata1-master UDMA33

You didn't enable atapicam.

You can either kldload atapicam or add it to
your kernel configuration as "device atapicam".

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: [freebsd-questions] ndis setup

2006-04-09 Thread Fabian Keil
hernan <[EMAIL PROTECTED]> wrote:

> Hey folks.  I'm setting up FreeBSD 6.0-RELEASE and I'm having a little
> trouble getting my wireless NIC recognized.  The card is a Linksys
> WMP64G and I'm trying to set things up to run with the FreeBSD
> NDISulator as described in the FreeBSD handbook
> (http://www.freebsd.org/doc/handbook/network-wireless.html).

This chapter is outdated.
 
> Here's what I'm doing (as root):
> 
> 1) Verifying with 'pciconf -lv' that the PCI card is there.  Also, I
> know the card works, it was running fine on Windows.
> 
> 2) Building ndis itself:

> 3) Building the if_ndis module:

> 4) Loading the ndis and if_ndis modules:
>   kldload ndis
>   I verify at this point using kldstat that both ndis and if_ndis are
> in fact loaded.
> 
> I see nothing in dmesg or in my console during the kldload.  Also, it
> doesn't appear that the driver found the card, there's no signs of
> life.  I've tried using ndisgen, and have had the same results (with
> much less typing).  In either case, I get nothing in dmesg and no
> usable enabled NIC.

After you run ndisgen you should have a third kernel module with
a name similar to the name of your sys file. If you load
this module you should at least get an error message.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: DS WiFi fbsd6

2006-04-09 Thread Fabian Keil
dick hoogendijk <[EMAIL PROTECTED]> wrote:

> On 08 Apr Pgold wrote:
> > I don't know about compatibility with FreeBSD, but the Nintendo DS
> > Wi-Fi Adapter only works with the DS, and costs 50USD. For the same
> > 50USD you can buy a simple Wi-Fi router. If the DS Wi-Fi adapter
> > won't work with FreeBSD, i guess you should go with the Wi-Fi
> > router.(I don't know if USB Wi-Fi dongles will work with the DS,
> > gotta check that!)
> > 
> > On 4/8/06, dick hoogendijk <[EMAIL PROTECTED]> wrote:
> > > Does somebody using freebsd-6.1 have Nintendo's WiFi up and
> > > running for his/her DS?
> 
> OK, this sounds like a better solution. I remember someone's advice
> some time ago to install a wireless networkcard and fiddle with
> bridge(?) This might be an even better solution(?)

On 6.1 you should use if_bridge instead of bridge.
 
> ONE question though: what ath0 based wireless network card(s) work
> flawlessly under fbsd-6.x ? If you guys give me some brands I can
> check the availability of these cards over here (in the Netherlands).
 
I have a D-Link AirPlus XtremeG DWL-G650 which works without problems
in all supported modes, but you should be aware of the fact that
vendors often change chip sets without changing the name of the product.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: [freebsd-questions] ndis setup

2006-04-11 Thread Fabian Keil
hernan <[EMAIL PROTECTED]> wrote:

[Quoting adjusted, please don't top post.]

> On 4/9/06, Fabian Keil <[EMAIL PROTECTED]> wrote:
> > hernan <[EMAIL PROTECTED]> wrote:
> >
> > > Hey folks.  I'm setting up FreeBSD 6.0-RELEASE and I'm having a
> > > little trouble getting my wireless NIC recognized.  The card is a
> > > Linksys WMP64G and I'm trying to set things up to run with the
> > > FreeBSD NDISulator as described in the FreeBSD handbook
> > > (http://www.freebsd.org/doc/handbook/network-wireless.html).
> >
> > This chapter is outdated.
> >
> > > Here's what I'm doing (as root):
> > >
> > > 1) Verifying with 'pciconf -lv' that the PCI card is there.
> > > Also, I know the card works, it was running fine on Windows.
> > >
> > > 2) Building ndis itself:
> >
> > > 3) Building the if_ndis module:
> >
> > > 4) Loading the ndis and if_ndis modules:
> > >   kldload ndis
> > >   I verify at this point using kldstat that both ndis and if_ndis
> > > are in fact loaded.
> > >
> > > I see nothing in dmesg or in my console during the kldload.
> > > Also, it doesn't appear that the driver found the card, there's
> > > no signs of life.  I've tried using ndisgen, and have had the
> > > same results (with much less typing).  In either case, I get
> > > nothing in dmesg and no usable enabled NIC.
> >
> > After you run ndisgen you should have a third kernel module with
> > a name similar to the name of your sys file. If you load
> > this module you should at least get an error message.

> Thanks Fabian, that helped me move forward.  My next question is how
> to interpret the segfault I get when loading the new kernel module I
> created with ndisgen.  The error happens when I do the 'kldload' on
> the new module, my machine dies and reboots.
> 
> Does this mean I'm out of luck with using NDIsulator?  Let me know if
> you have any hints.

My hint is to post slightly more information.

While I probably won't be able to help any further, there a lot of
knowledgeable people on this list who could help if they had a better
description of your problem. 

You could start with:

- the relevant output of pciconf -lv
- which .inf and .sys file you used
- an exact description what you did to get to the reboot
- why you are sure it was caused by a segfault 

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Setting hw.intr_storm_threshold

2006-04-13 Thread Fabian Keil
Oliver Iberien <[EMAIL PROTECTED]> wrote:

> On Saturday 08 April 2006 04:22, Fabian Keil wrote:
> > Oliver Iberien <[EMAIL PROTECTED]> wrote:
> > > I was printing with native Firefox 1.5.0.1 (FreeBSD 6.0) with
> > > CUPS, which Firefox sees and recognizes. The printer (Xerox N17,
> > > local, parallel port) started cycling through
> > > waiting-processing-waiting messages. Rebooting, I saw a message
> > > about an IRQ storm on the printer port being "throttled". Killing
> > > the job took care of this.
> > >
> > > Has anyone else had an issue like this? Firefox printing isn't
> > > critical but it's always nice to know what's going on.
> >
> > The default value of hw.intr_storm_threshold is easily reached
> > by a printer connected through the parallel port.
> >
> > Have a look at: <http://www.lemis.com/grog/diary-dec2005.html#8>.

> sysctl hw.intr_storm_threshold=20
> 
> resets the value just for the session. I am guessing that putting the
> line
> 
> hw.intr_storm_threshold=20
> 
> into /etc/sysctl.conf will make the change permanent?

You guessed right.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: make install problems

2006-04-13 Thread Fabian Keil
<[EMAIL PROTECTED]> wrote:

> I've encontered a problem when I tried to make install xfce4 from
> ports collection. When pango was installing the error occured
> "libexpat.so.5 needed by /usr/X11R6/lib/libfontconfig.so not found.
> Error code 1" 
> I've tried to locate and give the path through -rpath parameter but
> it's nowhere on the disk. I've also tried to:
> pkg_add -r pango
> but it gave the same result.
> make install OPTIONS=FORCE_PKG_REGISTER
> is not helping in this case
> How to solve this problem??

Update x11-fonts/fontconfig.

> PS. Can absence of libexpat.so.5 be caused by the way I've build my
> kernel??

More likely by the way you update your ports.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: /etc/hosts isn't being read

2006-04-13 Thread Fabian Keil
Josh Paetzel <[EMAIL PROTECTED]> wrote:

> I have a stock 6.0-RELEASE box that doesn't seem to be 
> reading /etc/hosts
> 
> In /etc/hosts I have:
> 
> 192.168.1.101 example example.example.org
> 
> /etc/nsswitch.conf is stock:
> 
> group: compat
> group_compat: nis
> hosts: files dns
> networks: files
> passwd: compat
> passwd_compat: nis
> shells: files
> 
> $ host example
> Host example not found: 3(NXDOMAIN)
> 
> $ host example.example.org
> Host example not found 3(NXDOMAIN)

Did host ever query /etc/hosts?
 
> What am I doing wrong here that is keeping /etc/hosts from being read?

Does ping ignore /etc/hosts as well?

[EMAIL PROTECTED] ~ $host localhost
Host localhost not found: 3(NXDOMAIN)
[EMAIL PROTECTED] ~ $ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.383 ms
^C
--- localhost ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.383/0.383/0.383/0.000 ms

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Production Release 5.3 Installation Won't Boot

2005-01-02 Thread Fabian Keil
On Friday 31 December 2004 14:03, Andrew L. Gould wrote:
> On Friday 31 December 2004 05:19 am, babaloo munchies wrote:

> > I downloaded ISO images disc 1 & disc 2 & the boot
> > disk for FreeBSD 5.3 to install on a Pentium MMX
> > machine.  None of these discs will boot for the
> > installation!  What happens is the CD drive fires up,
> > I see a couple of lines from FreeBSD--the bootloader
> > or something--it acts like it's trying to boot.  The
> > CD drive spins up, the two or three lines flash on the
> > screen but then the whole computer restarts.  It keeps
> > doing this over and over again for each disc.
> >
> > I had an old FreeBSD 4.8 disc and it booted fine.  I
> > thought maybe my burner had problems so I burned a
> > Linux distro and it booted fine.
> >
> > So the problem cannot be the CD medium (3 cds w/ same
> > problem?), not the CD burner and not the machine.
> > What's going on?  This is the third time I've tried
> > FreeBSD and failed to get it to work.  I just give up
> > and revert to linux because at least I can install it
> > each and every time.  But I want to use FreeBSD.
> >
> > Any help would be appreciated.
> >
> Perhaps the problem is with the iso image.  Try downloading the iso file 
> for CD1 again.

Comparing the md5sum of the image with the one at the server
might save bandwidth. 

Regards
Fabian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Please help: burncd errors

2005-01-02 Thread Fabian Keil
On Saturday 01 January 2005 17:45, [EMAIL PROTECTED] wrote:
> On Sat, Jan 01, 2005 at 05:35:39PM +0100, Xinizul Xinizul wrote:

> > Could I use another burner tool ?
> 
> Of course. You can try cdrecord from /usr/ports/sysutils/cdrtools.
> 
> For this to work, you need to add
>   device atapicam
> to your kernel config file, recompile, reinstall and reboot the kernel.
> Once you've done that, you should see a device 'cd0' in dmesg and /dev.
> You can try burncd on /dev/cd0, or cdrecord with the appropriate SCSI ID:
> 
> # cdrecord -scanbus
> should then give you the correct SCSI ID a,b,c to use.
> 
> # cdrecord -v dev=a,b,c speed=4 mp3_1.iso
> for data CDs.
> 
> # cdrecord -v dev=a,b,c speed=1 -audio track*.wav
> for audio CDs.

I'd be surprised, if the drive supported speed=1.

"Low speed == better quality" is a myth, so I'd change
the speed option with -sao (I believe -tao is still the default)
and burn at maximum speed.

Regards
Fabian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Writing speed impact on writing quality (was: Please help: burncd errors)

2005-01-08 Thread Fabian Keil
On Sunday 02 January 2005 14:48, Nikolas Britton wrote:
> Fabian Keil wrote:
> 
> >
> >"Low speed == better quality" is a myth
> >  
> >
> why so?

Because writing quality is affected by several factors,
not just speed. Most of the time, bad writing quality is
a sign of missing compatibility between drive and media.

There might be some cases where a drive produces
better quality at lower writing speed, but if it does,
the firmware is crap and OPC (optimum power calibration)
isn't working. With low quality firmware you can have the
different affect as well, so this doesn't mean anything.

While comparing the writing quality of a LiteOn LTR-48125W
and a Plextor PlexWriter Premium, I did some C1-Scans.
I used different media and writing speed.

The results show, that as long as you stick with good media,
the writing quality is not affected by the writing speed.

Have a look at
<http://www.fabiankeil.de/c1-scans-mit-cd-doctor/liteon-ltr-48125w.html>
and
<http://www.fabiankeil.de/c1-scans-mit-cd-doctor/plextor-plexwriter-premium.html>.
The pages are in German, but as they aren't commented yet,
it shouldn't matter ;-).

"Rohling" means "label of the media",
"Hersteller" means "manufacturer of the media",
"Freigabe" is how fast you should burn the media
at maximum if you listen to it's label,
"Gewählt" is the speed I have chosen,
in the "Bild" column you find links to the graphical
results. The rest of the table head allready is in English.

HTH
Fabian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mkisofs and growisofs

2005-01-09 Thread Fabian Keil
On Sunday 09 January 2005 14:46, Mike Jeays wrote:
> Where are they?  They don't seem to exist on my 5.3 system, and I can't
> find any trace of them in /usr/ports.  pkg_add -r doesn't find them
> either.

/usr/ports/sysutils/dvd+rw-tools/ contains growisofs,
mkisofs is part of /usr/ports/sysutils/cdrtools.

Regards
Fabian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make depend error - FreeBSD 5.2.1

2005-01-09 Thread Fabian Keil
On Sunday 09 January 2005 15:48, Gable Barber wrote:
> Howdy all,
> I am trying to build a new kernel to support the on board sound on my
> motherboard.
> 
> When I try to " make depend " I get this error:
> 
> make: don't know how to make depend. Stop
> 
> Anyhelp would be greatly appreciated.

Are you sure you're running make in the right directory?

Nevertheless you might try building the Kernel the "New Way"
as it is described in 


Regards
Fabian


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: D-Link NIC.

2005-03-06 Thread Fabian Keil
"Subhro" <[EMAIL PROTECTED]> wrote:

> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:owner-freebsd-
> > [EMAIL PROTECTED] On Behalf Of gabriel
> > Sent: Sunday, March 06, 2005 2:57
> > To: freebsd-questions
> > Subject: Re: D-Link NIC.
> > 
> > Can anyone provide any insight?
> > 
> > ndis0: flags=8802 mtu 1500
> > ether 00:11:95:87:8b:e4
> > media: IEEE 802.11 Wireless Ethernet autoselect
> > status: no carrier
> > ssid ""
> > channel -1 authmode OPEN powersavemode OFF powersavesleep 100
> > rtsthreshold 2312 protmode CTS
> > wepmode OFF weptxkey 1
> > dolores#

How do you set up the NIC?

I use a small script to load and unload the driver:

#!/bin/sh

case "$1" in

start)
echo "Activating WLAN"
kldload ndis
kldload if_ndis

ifconfig ndis0 ssid ec60bfg3b4 wepkey 1:0x12345678911234567891123456 
wepmode on
ifconfig ndis0 inet 192.168.1.49

route add 0.0.0.0 192.168.1.1
;;
stop)
echo "Deactivating WLAN"
kldunload if_ndis
kldunload ndis
;;
esac

exit 0

DHCP works as well, but I don't use it.

> > if I try to use dhcp the ip address will just go to zeroes. :\
> 
> 
> Are you positive that the DHCP function of your AP works perfectly? I am
> asking thing because I have come across a couple of routers which happily
> routes packets to static IPs but messes everything up as soon as it is asked
> to handle DHCP.

I guess the DHCP server is working, but Gabriel's kernel is lacking "device bpf"
which is needed for dhclient.

Otherwise the IP is set to 0.0.0.0 without error message, just as described.
 
> Also I strongly feel something fishy in the WLAN interface being detected as
> ndisX instead of wiX.

This is expected behaviour.

Regards
Fabian
-- 
http://www.fabiankeil.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: D-Link NIC.

2005-03-11 Thread Fabian Keil
gabriel <[EMAIL PROTECTED]> wrote:

> Hey, sorry about replying only to you but I'm just wondering if you
> can help with answering this question. Your script worked in the sence
> that I can see a log entry from the wless card intot he AP logs and it
> has a static ip set. I'm wondering, do you know how to make your
> script do DHCP? - This is the result of your script:
> 
> ndis0: flags=8843 mtu 1500
> inet 10.0.0.11 netmask 0xff00 broadcast 10.255.255.255
> inet6 fe80::211:95ff:fe87:8be4%ndis0 prefixlen 64 scopeid 0x4 
> ether 00:11:95:87:8b:e4
> media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
> status: associated
> ssid [EMAIL PROTECTED] 1:[EMAIL PROTECTED]
> channel 8 authmode OPEN powersavemode OFF powersavesleep 100
> rtsthreshold 2312 protmode CTS
> wepmode MIXED weptxkey 1
> wepkey 1:104-bit
> dolores#

If your system configuration was right, putting the line
dhclient ndis0
in the script should do the trick. But if it doesn't work
if you type it by hand, it won't work in the script either.
 
> Problem is .11 isnt pingable and plus, I'd rather it be dhcp. If you
> can help, I'd be extremely greatful as I could probably get some
> sleep.

Is pinging the only problem aside the dhcp issue?
If it is, you might have a look in the AP configuration.
Some manufacturers consider ping a security problem,
and block ICMP echo requests by default. 

Regards
Fabian
-- 
http://www.fabiankeil.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: D-Link NIC.

2005-03-11 Thread Fabian Keil
gabriel <[EMAIL PROTECTED]> wrote:

> Okay, so I've managed to get the Wless nic talking to the Access Point
> (per the logs) but I'm having problems getting an ip address. Check
> out the dhclient output:
> 
> dolores# dhclient -v ndis0
> Internet Systems Consortium DHCP Client V3.0.1
> Copyright 2004 Internet Systems Consortium.
> All rights reserved.
> For info, please visit http://www.isc.org/products/DHCP
> 
> Listening on BPF/ndis0/00:11:95:87:8b:e4
> Sending on   BPF/ndis0/00:11:95:87:8b:e4
> Sending on   Socket/fallback
> DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 4
> DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 11
> DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 14
> DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 13
> DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 19
> No DHCPOFFERS received.
> No working leases in persistent database - sleeping.
> dolores#
> 
> here's the ifconfig ndis0 output:
> 
> ndis0: flags=8843 mtu 1500
> inet6 fe80::211:95ff:fe87:8be4%ndis0 prefixlen 64 scopeid 0x4 
> inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255
> ether 00:11:95:87:8b:e4
> media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
> status: associated
> ssid [EMAIL PROTECTED] 1:[EMAIL PROTECTED]
> channel 8 authmode OPEN powersavemode OFF powersavesleep 100
> rtsthreshold 2312 protmode CTS
> wepmode MIXED weptxkey 1
> wepkey 1:104-bit
> 
> Anyone that has experienced this before? Any ideas?

As you can read below, I already assumed, that you don't
have "device bpf" in your kernel. Can you confirm or deny it?
 
> On Sun, 6 Mar 2005 11:00:58 -0800, gabriel <[EMAIL PROTECTED]> wrote:
> > Thats a good script. How did you install the ndis driver/wrapper? -
> > Cause I think some of the problem may be there.
 
> > On Sun, 6 Mar 2005 19:54:38 +0100, Fabian Keil
> > <[EMAIL PROTECTED]> wrote:
> > > "Subhro" <[EMAIL PROTECTED]> wrote:
> > >
> > > > > -Original Message-
> > > > > From: [EMAIL PROTECTED] [mailto:owner-freebsd-
> > > > > [EMAIL PROTECTED] On Behalf Of gabriel
> > > > > Sent: Sunday, March 06, 2005 2:57
> > > > > To: freebsd-questions
> > > > > Subject: Re: D-Link NIC.

> > > > Are you positive that the DHCP function of your AP works perfectly? I am
> > > > asking thing because I have come across a couple of routers which 
> > > > happily
> > > > routes packets to static IPs but messes everything up as soon as it is 
> > > > asked
> > > > to handle DHCP.
> > >
> > > I guess the DHCP server is working, but Gabriel's kernel is lacking 
> > > "device bpf"
> > > which is needed for dhclient.
> > >
> > > Otherwise the IP is set to 0.0.0.0 without error message, just as 
> > > described.

Regards
Fabian
-- 
http://www.fabiankeil.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: D-Link NIC.

2005-03-11 Thread Fabian Keil
gabriel <[EMAIL PROTECTED]> wrote:

> Thats a good script. How did you install the ndis driver/wrapper? -
> Cause I think some of the problem may be there.

I copied the files "w22n50.sys" and "w22n51.inf" out of the
Windows partition to /usr/src/sys/modules/if_ndis,

ndiscvt -i w22n51.inf -s w22n50.sys ndis_driver_data.h
make install

did the rest.

Regards
Fabian
-- 
http://www.fabiankeil.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: D-Link NIC.

2005-03-15 Thread Fabian Keil
Fabian Keil <[EMAIL PROTECTED]> wrote:

> gabriel <[EMAIL PROTECTED]> wrote:
> 
> > Thats a good script. How did you install the ndis driver/wrapper? -
> > Cause I think some of the problem may be there.
> 
> I copied the files "w22n50.sys" and "w22n51.inf" out of the
> Windows partition to /usr/src/sys/modules/if_ndis,
> 
> ndiscvt -i w22n51.inf -s w22n50.sys ndis_driver_data.h
> make install
> 
> did the rest.

After updating to 5.4-PRERELEASE yesterday and trying to rebuild
if_ndis, I noticed that the above is incomplete. The correct way
to generate the ndis_driver_data.h is:

ndiscvt -i w22n51.inf -s w22n50.sys -o ndis_driver_data.h

Otherwise the header is printed to stdout.

Regards
Fabian
-- 
http://www.fabiankeil.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FB 5.3 with wireless connection

2005-03-16 Thread Fabian Keil
Albert Shih <[EMAIL PROTECTED]> wrote:

> With a FB 5.3-P5 how can I configure a wifi card with 128 bits key wep ?
> 
> My wifi card is 
> 
> wi0:  at port 0xe000-0xe03f irq 5 
> function 0 config 1 on pccard1
> 
> When I use
> 
> [EMAIL PROTECTED] ifconfig wi0 wepkey xx up
> ifconfig: string too long
> [EMAIL PROTECTED] ifconfig wi0 weptxkey xx up
> ifconfig: SIOCS80211: Invalid argument

The recommended way is to specify the wepkey in hexadecimal digits.
ifconfig wi0 wepkey 0x1deadc0dedeadc0dedeadc0de1

man ifconfig:
>  wepkey key|index:key
>  For IEEE 802.11 wireless interfaces, set the selected WEP key.
>  If an index is not given, key 1 is set.  A WEP key will be either
>  5 or 13 characters (40 or 104 bits) depending of the local net-
>  work and the capabilities of the adaptor.  It may be specified
>  either as a plain string or as a string of hexadecimal digits
>  proceeded by `0x'.  For maximum portability, hex keys are recom-
>  mended; the mapping of text keys to WEP encryption is usually
>  driver-specific.  In particular, the Windows drivers do this map-
>  ping differently to FreeBSD.  A key may be cleared by setting it
>  to `-'.  If WEP is supported then there are at least four keys.
>  Some adaptors support more than four keys.  If that is the case,
>  then the first four keys (1-4) will be the standard temporary
>  keys and any others will be adaptor specific keys such as perma-
>  nent keys stored in NVRAM.

Regards
Fabian
-- 
http://www.fabiankeil.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NDIS installation problem with WMP54G v4 wireless card

2005-03-25 Thread Fabian Keil
"Texas Consultant" <[EMAIL PROTECTED]> wrote:

> Just put together a new BSD 5.3 machine, and compiled NDIS for use with a 
> Linksys WMP54g v4 card; it's a wireless card that uses the Ralink RT2500 
> chipset.
> 
> Everything works so far; major steps are:
> 
> 1. make ndis
> 2. copy over NDIS driver files
> 3. make if_ndis
> 4. kldload ndis
> 
> However, kldload if_ndis returns an error:
> 
> /sbin/kldload -v /usr/src/sys/modules/if_ndis/if_ndis.ko
> kldload: can't load
> link_elf: symbol rt2500_sys_drv_data_start undefined
> /usr/src/sys/modules/if_ndis/if_ndis.ko: No such file or directory
> *** Error code 1
> 
> Stop in /usr/src/sys/modules/if_ndis.

I had a similar problem after updating from 5.3 to 5.4-PRERELEASE.
I rebuilded if_ndis, but forgot to first recreate ndis_driver_data.h.

After rebuilding ndis_driver_data.h with the right sources it worked again.

Could your sources by out of sync with the system?

Fabian
-- 
http://www.fabiankeil.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Samba problems

2005-03-26 Thread Fabian Keil
Alejandro Pulver <[EMAIL PROTECTED]> wrote:

> I am using FreeBSD 5.3 with Samba 3.0.7,1.
> 
> I can read all files from a Windows 2000 Pro. But when
> I try to access a mount point that is an NTFS filesystem, I have no read
> permission (files and directories appear as zero length files) until I
> access them from the server machine (like doing an 'ls').
> 
> My configuration file is as follows:
> 
> = BEGIN =
> # Samba config file created using SWAT
> # from 127.0.0.1 (127.0.0.1)
> # Date: 2004/12/11 19:24:02
> 
> # Global parameters
> [global]
>   workgroup = VARNET
>   server string = FreeBSD 5.3
>   security = SHARE
>   log file = /var/log/samba/log.%m
>   max log size = 50
>   dns proxy = No
> 
> [mnt]
>   comment = Mounted Filesystems
>   path = /mnt
>   guest ok = Yes
> 
> [printers]
>   comment = All Printers
>   path = /var/spool/samba
>   printable = Yes
>   browseable = No
> 
> [ale]
>   comment = Ale's Home DIrectory
>   path = /home/ale
>   guest ok = Yes
> = END ===
> 
> Note: I have subdirectories under '/mnt' like 'w2k', 'wxp', 'cam', and
> 'tmp'.
> 
> What am I doing wrong?

Who owns the subdirectories and who is your guest user?

I'm using samba version 3.0.11 and can't reproduce the described behavior.

My smb.conf is:

[global]

   workgroup = W62
   netbios name = TP51
   server string = Samba Server auf Laptop
   security = user
   encrypt passwords = yes
   log file = /var/log/samba/log.%m
   max log size = 50
   socket options = TCP_NODELAY
   wins support = yes
   dns proxy = no 

[fk]
   comment = No place like home
   path = /home/fk
   valid users = fk
   public = no
   writable = yes
   printable = no

[mnt]
   comment = Quick test
   path = /mnt
   valid users = fk
   public = no
   writable = yes
   printable = no

[EMAIL PROTECTED] /mnt $ls -l
total 8
drwxr-xr-x  1 fk  wheel 0 Apr 22  2009 ad0s1
drwxr-xr-x  1 fk  wheel  4096 Jan  1  1980 ad0s2
drwxr-xr-x  5 fk  wheel   512 Mar 25 19:14 datenspeicher
drwxr-xr-x  2 fk  wheel   512 Mar 26 19:03 test

ad0s1 is ntfs, ad0s2 is fat32. Both can be used without any problems.

I just noticed the strange dates. If I unmount ad0s1 and ad0s2,
the dates make more sense.

[EMAIL PROTECTED] /mnt #ls -l
total 8
drwxr-xr-x  2 fk  wheel  512 Mar 26 18:58 ad0s1
drwxr-xr-x  2 fk  wheel  512 Mar 26 15:03 ad0s2
drwxr-xr-x  5 fk  wheel  512 Mar 25 19:14 datenspeicher
drwxr-xr-x  2 fk  wheel  512 Mar 26 19:03 test

Interesting. I'm using FreeBSD 5.4-PRERELEASE #2: Fri Mar 25 17:53:21 CET 2005.

Fabian
-- 
http://www.fabiankeil.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A Riddle

2005-03-26 Thread Fabian Keil
[EMAIL PROTECTED] wrote:

> --- Chris <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] wrote:
> > > Hmm, I wonder if the lack of performance, or the
> > unwanted
> > > emails were more heavily weighted in the
> > decision?
> > >
> > > If there was any intelligent life on the list you
> > could
> > > counter what you call "Trolls" with solid technical
> > > arguments. This reminds me of the old bsdi
> > > list. A bunch of half-wits who are just happy
> > > to belong to something and have other half-wits
> > > to correspond with.
> > >
> > > FreeBSD used to have open discussions between
> > > users and developers and it used to be real
> > > good. Now it sucks and the developers are
> > > detached, off in their own little world. See
> > > a pattern?
> > >
> > > But with a user base from places like gnu-rox.org
> > > and makeworld.com, what do you expect I
> > > guess?

Please have a look at your own email address.

> As an aside, all of the major web mail providers
> default to "top posting". Google (ever hear
> of them?) only shows the top N lines of a post.
> So if you bottom post, you don't see the message
> you want to see
> without having to make an effort. So when are
> you troglodytes going to climb out of your
> 1994 hibernations and get with the times?

They don't default to top posting, they put
the cursor on top, so you can read the whole
message and cut irrelevant parts before replying.

If Google doesn't display the whole message,
the interface is crap. That's not the fault of
anybody on this list.

> You may prefer one over the other, but its
> hardly a capital offense to do otherwise. Most
> of us have evolved out of our unix newsreaders.

If you want to be read by as many people
as possible on this list, the easiest way is
to write well formed mails.

Unfortunately, you are not only top posting,
your mailing software also inserts line breaks
where there shouldn't be any and makes it
hard to see who wrote what.

Have a look at the beginning of this mail.
Your quotation is a mess.

> Anyone with a brain is using web mail for
> mailing lists these days: no more whining
> about spam or "wasted bandwidth".

Having a brain is good, but  using it is even better.
If the web interface produces garbage, changing
the interface could be a smart move.

Just my two brainless cents.
 
Fabian
-- 
http://www.fabiankeil.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Samba problems

2005-03-27 Thread Fabian Keil
Alejandro Pulver <[EMAIL PROTECTED]> wrote:

> On Sat, 26 Mar 2005 20:37:51 +0100
> Fabian Keil <[EMAIL PROTECTED]> wrote:
> 
> > Alejandro Pulver <[EMAIL PROTECTED]> wrote:
> > 
> > > I am using FreeBSD 5.3 with Samba 3.0.7,1.
> > > 
> > > I can read all files from a Windows 2000 Pro. But when
> > > I try to access a mount point that is an NTFS filesystem, I have no
> > > read permission (files and directories appear as zero length files)
> > > until I access them from the server machine (like doing an 'ls').
> > > 
> > > My configuration file is as follows:
> > > 
> > > = BEGIN =
> > > # Samba config file created using SWAT
> > > # from 127.0.0.1 (127.0.0.1)
> > > # Date: 2004/12/11 19:24:02
> > > 
> > > # Global parameters
> > > [global]
> > >   workgroup = VARNET
> > >   server string = FreeBSD 5.3
> > >   security = SHARE
> > >   log file = /var/log/samba/log.%m
> > >   max log size = 50
> > >   dns proxy = No
> > > 
> > > [mnt]
> > >   comment = Mounted Filesystems
> > >   path = /mnt
> > >   guest ok = Yes
> > > 
> > > [printers]
> > >   comment = All Printers
> > >   path = /var/spool/samba
> > >   printable = Yes
> > >   browseable = No
> > > 
> > > [ale]
> > >   comment = Ale's Home DIrectory
> > >   path = /home/ale
> > >   guest ok = Yes
> > > = END ===
> > > 
> > > Note: I have subdirectories under '/mnt' like 'w2k', 'wxp', 'cam',
> > > and'tmp'.
> > > 
> > > What am I doing wrong?
> > 
> > Who owns the subdirectories and who is your guest user?

> My guest user is 'nobody', but I also tried with 'ale' and 'root' (wich
> owns the mount point).

Did you see in samba's log that the guest user was changed?
How did you change it, with "guest user" or with "force user"?

As your problem can be reproduced, increasing samba's debug
level might help. Samba should log why read access was denied.

If you access the samba share with mount_smbfs, do you see
the same behavior?
 
> The directory '/mnt/w2k' is owned by 'root' and the group 'wheel', the
> permissions are rwxr-xr-x.

If you only want read access, this looks fine.

Fabian
-- 
http://www.fabiankeil.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Samba problems

2005-03-28 Thread Fabian Keil
Alejandro Pulver <[EMAIL PROTECTED]> wrote:

> On Sun, 27 Mar 2005 11:02:44 +0200
> Fabian Keil <[EMAIL PROTECTED]> wrote:
> 
> > Alejandro Pulver <[EMAIL PROTECTED]> wrote:
> > 
> > > On Sat, 26 Mar 2005 20:37:51 +0100
> > > Fabian Keil <[EMAIL PROTECTED]> wrote:
> > > 
> > > > Alejandro Pulver <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > > I am using FreeBSD 5.3 with Samba 3.0.7,1.
> > > > > 
> > > > > I can read all files from a Windows 2000 Pro. But when
> > > > > I try to access a mount point that is an NTFS filesystem, I have
> > > > > no read permission (files and directories appear as zero length
> > > > > files) until I access them from the server machine (like doing
> > > > > an 'ls').
> > > > > 
> > > > > My configuration file is as follows:
> > > > > 
> > > > > = BEGIN =
> > > > > # Samba config file created using SWAT
> > > > > # from 127.0.0.1 (127.0.0.1)
> > > > > # Date: 2004/12/11 19:24:02
> > > > > 
> > > > > # Global parameters
> > > > > [global]
> > > > >   workgroup = VARNET
> > > > >   server string = FreeBSD 5.3
> > > > >   security = SHARE
> > > > >   log file = /var/log/samba/log.%m
> > > > >   max log size = 50
> > > > >   dns proxy = No
> > > > > 
> > > > > [mnt]
> > > > >   comment = Mounted Filesystems
> > > > >   path = /mnt
> > > > >   guest ok = Yes
> > > > > 
> > > > > [printers]
> > > > >   comment = All Printers
> > > > >   path = /var/spool/samba
> > > > >   printable = Yes
> > > > >   browseable = No
> > > > > 
> > > > > [ale]
> > > > >   comment = Ale's Home DIrectory
> > > > >   path = /home/ale
> > > > >   guest ok = Yes
> > > > > = END ===
> > > > > 
> > > > > Note: I have subdirectories under '/mnt' like 'w2k', 'wxp',
> > > > > 'cam', and'tmp'.
> > > > > 
> > > > > What am I doing wrong?
> > > > 
> > > > Who owns the subdirectories and who is your guest user?
> > 
> > > My guest user is 'nobody', but I also tried with 'ale' and 'root'
> > > (wich owns the mount point).
> > 
> > Did you see in samba's log that the guest user was changed?
> > How did you change it, with "guest user" or with "force user"?
> > 
> > As your problem can be reproduced, increasing samba's debug
> > level might help. Samba should log why read access was denied.
> > 
> > If you access the samba share with mount_smbfs, do you see
> > the same behavior?
> >  
> > > The directory '/mnt/w2k' is owned by 'root' and the group 'wheel',
> > > the permissions are rwxr-xr-x.

> I saw in SWAT that the connection from the other machine was mapped to
> the desired local user in all cases (I tried "nobody", "ale" and
> "root"). I used "guest account = ".
> 
> Something strange is happening: I can access the sahre '/mnt' (and
> 'w2k') with 'smbclient' (using the 'guest' user), but if I do it with
> 'mount_smbfs //[EMAIL PROTECTED]/mnt /home/ale/tmp' then the problem appears,
> even with 'root' (I can not see/access entries until I list them with
> any user from '/mnt/w2k').
> 
> I think the problem is with Samba, not 'mount_smbfs'.
> 
> This message appears (many times) in debug level 0:
> 
> [2005/03/27 15:04:38, 1] smbd/service.c:make_connection_snum(648)
>   mariana (192.168.1.1) connect to service mnt initially as user nobody
> (uid=65534, gid=65534) (pid 1217)[2005/03/27 15:04:44, 0]
> locking/posix.c:posix_fcntl_lock(657)  posix_fcntl_lock: WARNING: lock
> request at offset 0, length 4096 returned[2005/03/27 15:04:44, 0]
> locking/posix.c:posix_fcntl_lock(658)  an Invalid argument error. This
> can happen when using 64 bit lock offsets[2005/03/27 15:04:44, 0]
> locking/posix.c:posix_fcntl_lock(659)  on 32 bit NFS mounted file
> systems.
> 
> The other message I noticed (but I think it is no

  1   2   3   >