Re: kernel panic at boot on any 6.x OS

2007-02-25 Thread Daan Vreeken [PA4DAN]
On Sunday 25 February 2007 08:59, Kip Macy wrote:
 It looks as if you've hit a device driver that is trying to print out
 a null string. The message you've given doesn't provide any more
 information than that. If you install a snapshot kernel it will
 probably have ddb compiled in which will allow you to at least get a
 backtrace. I'm sorry you're having trouble.

Grepping the source tree on 6.2-RELEASE shows this message can only have com 
from one place : sys/kern/kern_conf.c in the function prep_cdevsw() :

if (devsw-d_version != D_VERSION_01) {
printf(
WARNING: Device driver \%s\ has wrong version %s\n,
devsw-d_name == NULL ? ??? : devsw-d_name,
and is disabled.  Recompile KLD module.);

Looks like the kernel and the modules are out of sync.


 On 2/24/07, Joe Auty [EMAIL PROTECTED] wrote:
  Hello,
 
  (sorry, don't know whether kernel problems should go to questions or
  hackers, or both)..
 
  This has been a long-standing problem of mine, but I always ignored
  it hoping it would go away on its own with a future 6.x release, but
  it remains...
 
  No matter whether I boot into safe mode or regular mode, with all
  kernel extensions disabled in /boot/loader.conf, I get the following
  panic late at boot of a fresh RELENG_6_2 kernel (with only a few
  services left to bring up). The 6.x kernels I've tried all build and
  installed cleanly without any errors...
 
   WARNING: Device driver 
  
   Fatal trap 12: page fault while in kernel mode
   fault virtual address = 0x40
   fault code = supervisor read, page not present
   instruction pointer = 0x20:0xc06d4614
   stack pointer = 0x28:0xf015491c
   frame pointer = 0x28:0xf015491c
   code segment = base 0x0, limit 0xff, type 0x1b
  = DPL 0, pres 1, def32 1, gran 1
   processor eflags = interupt enabled, resume, IOPL = 0
   current process = 898 (kldload)
   trap number = 12
   panic: page fault
   uptime: 36s
   cannot dump. No dump device defined
   automatic reboot in 15 seconds
 
  This problem does not occur within any 5.x OS for me. I would
  certainly like to resolve this issue now, but this sort of debugging
  is over my head beyond running fsck (which I've tried). Any ideas here?
 
  Thanks in advance for your help!
 
 
 
 
 
  ---
  Joe Auty
  NetMusician: web publishing software for musicians
  http://www.netmusician.org
  [EMAIL PROTECTED]

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

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


Re: Transparent redirect to another interface ?

2007-02-22 Thread Daan Vreeken [PA4DAN]
Hi Frank,

On Thursday 22 February 2007 12:55, Frank Bonnet wrote:
 Hello

 I have a new mailhub with two ethernet gigabit interfaces, and I would like
 to transparently redirect IMAP or POP3 requests to the second interface
 which have a different IP address, to let the first interface drive the
 SMTP traffic only.

 Is it possible ? This will avoid thousands of email clients
 re-configuration to let users grab their incomming emails.

natd can be used to do this.

The following example assumes your external interface is called sk0 and the 
seconde interface, connecting to the second server, is called sk1 :

# Start natd and tell it to forward pop3 traffic to the second server
natd -n sk0 -redirect_port tcp ip_of_second_server_here:110 110

# Add ipfw rule to send incoming pop3 traffic through natd
ipfw add 1000 divert natd tcp from any to me 110 via sk0
# Add ipfw rule to send responses from second server through natd
ipfw add 1010 divert natd tcp from ip_of_second_server_here 110 to any via
   sk0

# or just use one ipfw rule :
ipfw add 1000 divert natd all from any to any via sk0

But this will send ALL traffic through natd, only sending traffic that needs 
to be redirect through it is far more efficient.

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


Re: skype on diskless machine

2006-11-30 Thread Daan Vreeken [PA4DAN]
Hi Laszlo,

On Thursday 30 November 2006 13:15, Laszlo Nagy wrote:
   Hello,

 I have an appserver (6.1-RELEASE-p10) and many diskless clients
 connected to it. I'm using the diskless clients as X terminals (gdm is
 running on the appserver). Any user is able to use any terminal, because
 they run all applications on the appserver. Here is the basic problem:
 users need to use skype. I have two options:

 #1 Run skype on the diskless machine. Then it can handle audio I/O
 correctly, but the users cannot save their login names and passwords.
 (This option is also good because the diskless machine can kldload
 linux while the appserver does not need to, e.g. the appserver will be
 able to run application in native mode only).
 #2 Run skype on the appserver. Then users can save their skype login
 information but they are not able to make calls. Well, I could forward
 the audio output to the client using a sound daemon (e.g. esd
 -promiscuous -tcp -pubic -port 1500 on the diskless and esddsp -v -s
 diskless101:1500 skype_bin) but I could not find out how to forward
 digital input.  I see no way to forward digital input through a sound
 daemon, so using a microphone would be impossible.

 The question is, how can I solve this problem? Should I use #1 and tell
 my users that they must not save their skype login names and passwords?
 Or should I use #2 in combination with a special sound daemon that is
 able to forward digital input as well? (How?)

Why not just run skype on the diskless PC and have the user's home directory 
mountend over NFS?
That way you can have both things you want.

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


Re: Interrupt using all the CPU

2006-07-03 Thread Daan Vreeken [PA4DAN]
On Monday 03 July 2006 10:38, nocturnal wrote:
 Hi

 I'm having a few problems with a webserver. Today the idle was at 0.0
 and it's still like this. It doesn't look like it's affecting web
 services but it looks weird and i'm afraid that the CPU is working it's
 ass off with something. Of course nothing shows up in top or ps that
 could indicate which process is taking up all this cpu and since
 interrupt is the one using it i'm not even sure anything is actually
 using up CPU since i don't know what interrupt is. Any hints or pointers
 would be appreciated.

 It looks like interrupt and system are fighting for percents, interrupt
 has 100% constantly and as soon as interrupt drops system takes exactly
 what's left over and sometimes system doesn't do it so idle gets a few
 percents. It's weird to me simply because i can't find a description of
 what interrupt shows in top anywhere in the manuals.

Try vmstat -i to show you what device is causing the interrupts.

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


Re: Interrupt using all the CPU

2006-07-03 Thread Daan Vreeken [PA4DAN]
On Monday 03 July 2006 12:26, nocturnal wrote:
 Hi

 The clock?

 interrupt  total   rate
 irq0: clk   25130235 99
 irq1: atkbd0   4  0
 irq6: fdc0 1  0
 irq7: ppc0 1  0
 irq8: rtc 288300  1
 irq11: atapci1637852  2
 irq12: vr0 uhci0+3890833 15
 irq13: npx01  0
 irq14: ata0   54  0
 Total   29947281119

Hmm.. There seems to be nothing wrong with these numbers. If you were 
suffering from an interrupt storm I would have expected much larger numbers 
in the rate column. The column rate shows the average number of 
interrupts / second. In total your system handles about 120 interrupts / 
second, so that shouldn't be a problem.
Are you using powerd perhaps? Could it be that your system goes into a too 
deep sleep state where interrupt handling costs significantly more time?

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


Re: qpopper for root

2006-06-02 Thread Daan Vreeken [PA4DAN]
On Friday 02 June 2006 12:34, Robin Becker wrote:
 Robin Becker wrote:
  I am trying to use qpopper for delivering mail to my PC based mail
  client from a freeBSD 6.0 release system
 
  -ERR [AUTH] root: access denied.

 whoops hit the wrong key too soon.

 I have added user x and user root to the APOP data base, and have checked
 that user x can do pop3 with the client thunderbird.

 However, I get the above message for the root account. Is there some
 problem with root using APOP authentication?

Using pop3 to get root's email means you are sending root's login password in 
plain text to the pop3 server. It's unwise to change qpopper to allow you to 
login as root.
Simply create a normal user and create a mail alias address so that all mail 
to root gets forwarded to the normal user. Then setup your mail client to 
login to pop3 using the username  passwd of the normal user.

Setting up an alias is easy. Simply add the following line to /etc/aliases to 
forward root's email to normal_user :
root: normal_user

After editing the aliases file you should run newaliases to rebuild the 
alias database.

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


Writing to ntfs partitions?

2006-04-29 Thread Daan Vreeken [PA4DAN]
Hi All,

I am trying to help a friend recover her Wind0ws harddisk. I have a backup of 
all files on a UFS2 partition and I have a new and freshly 
partitioned/formatted harddisk with a number of NTFS partitions. man 
mount_ntfs mentions write support for ntfs partitions with some limitations, 
but I can't seem to write anything to any of the ntfs partitions :(
I must be doing something wrong. Can anyone shed some light on this?

Here is a transcript of what I've tried :
[EMAIL PROTECTED] /mnt/1]# uname -a
FreeBSD Chemobox.An.LAN 6.1-RC1 FreeBSD 6.1-RC1 #3: Sat Apr 29 11:33:34 CEST 
2006 [EMAIL PROTECTED]:/home/src/sys/i386/compile/Chemobox  i386

[EMAIL PROTECTED] /mnt]# mount -t ntfs /dev/ad4s5 /mnt/1
[EMAIL PROTECTED] /mnt]# cd /mnt/1

[EMAIL PROTECTED] /mnt/1]# ls -l
total 28596
-rwxr-xr-x  1 root  wheel  2560 Apr 22  2009 $AttrDef
-rwxr-xr-x  0 root  wheel 0 Apr  6 22:18 $BadClus
-rwxr-xr-x  1 root  wheel163920 Apr 22  2009 $Bitmap
-rwxr-xr-x  0 root  wheel  8192 Apr  6 22:18 $Boot
drwxr-xr-x  0 root  wheel 0 Apr  6 22:18 $Extend
-rwxr-xr-x  0 root  wheel  28966912 Apr  6 22:18 $LogFile
-rwxr-xr-x  0 root  wheel  4096 Apr  6 22:18 $MFTMirr
-rwxr-xr-x  0 root  wheel 0 Apr 22  2009 $Secure
-rwxr-xr-x  1 root  wheel131072 Apr 22  2009 $UpCase
-rwxr-xr-x  0 root  wheel 0 Apr  6 22:18 $Volume
drwxr-xr-x  0 root  wheel 0 Apr  6 22:35 System Volume Information

[EMAIL PROTECTED] /mnt/1]# mkdir test
mkdir: .: No such file or directory

[EMAIL PROTECTED] /mnt/1]# mkdir test.dir
mkdir: .: No such file or directory

[EMAIL PROTECTED] /mnt/1]# echo foo bar.txt
su: bar.txt: No such file or directory

[EMAIL PROTECTED] /mnt/1]# mount
/dev/ad4s2a on / (ufs, local, soft-updates)
devfs on /dev (devfs, local)
/dev/ad4s3d on /home (ufs, local, soft-updates)
/dev/ad4s5 on /mnt/1 (ntfs, local)

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


Re: Intel Macs and FreeBSD?

2006-04-27 Thread Daan Vreeken [PA4DAN]
On Thursday 27 April 2006 22:03, Mark Edwards wrote:
 Does anyone know if the Intel Macs can boot and install FreeBSD, now
 that the firmware includes BIOS compatibility?  Has anyone seen it
 happen?

 I'm thinking of using a Mac Mini as a quiet living-room server.  Thanks!

Have a look at the mailinglist archives of the FreeBSD-current mailling list. 
There was a discussion over there about this about 2-3 weeks ago. Maxim 
Sobolev got FreeBSD to boot on a Mac Intel after some minor changes.

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


Re: OT: Domain Registration

2006-04-25 Thread Daan Vreeken [PA4DAN]
Hi Martin,

On Tuesday 25 April 2006 13:44, [EMAIL PROTECTED] wrote:
 Hi All,

I know this is off topic, but I can't think of a good place to ask this
 where knowledgable people will answer, and this list usually has a high
 tolerence of ot but technical questions (plus I will be using a FreeBSD
 server, so it is not _entirely_ OT :)

I'm looking to setup my server as a domain name server. I already have
 it setup for internal use, but last time when I tried to have the
 internet at large using it, I had real trouble explaining to my ISP
 that I wanted my server as the main domain controller, the best they
 could do was pointing www.domain to my server. They wern't even
 able/willing to point the mx record directly to my server, it goes
 through their relay first.

It has done the job so far, and there is really no reason why I can't
 manage with this, but I am getting a new domain and would like to get
 it all sorted out the way I would like (my main justification for
 hosting it myself is the flexibility to add on sub-domains and such,
 but the real reason is that I am a control freak and like to tinker).

   I assume what should happen is

   - I buy a domain from registrar X
   - X sets that domain to point to my dns server as the master server
   - X hosts a secondary dns server
   - I can then add subdomains to my domain which will directly
 propagate on the internet, set the various MX and ilk to whatever I
 want etc. without having to contact a 3rd party

   My further assumptions are
   - The secondary server will either update from my server directly OR
 I will need to contact X to add anything new for me.

   My questions are -
  a) Are my assumptions correct?
  b) What would be the best way to explain this to a phone drone?
  c) Can anyone recommend a good registrar that will be able to set
 this up with minimum fuss (and cost)?

Have a look at http://Joker.com
They let you specify your own nameservers if you want and they are cheap. I 
have registered the domain Vitsch.net at Joker.com and I run my own 
nameservers.
Not sure if they offer secondary DNS services though. (I run 3 nameservers 
myself for the domain, so I've never needed it.)

  d) Are there any good reasons not to do it this way (remember, this
 is not a mission critical setup, and its main purpose is to tinker)

 Regards,
 Martin McCann

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


Re: TCP/IP source Code

2006-04-04 Thread Daan Vreeken [PA4DAN]
On Tuesday 04 April 2006 19:11, Chava Leviatan wrote:
 Hello,

 How can i get the TCP/IP source code , mainly sys/netinet.

 I have been browsing the site for a while , but havn'yt managed to discover
 how can I get those simple .c, .h files

 Any help is highly appreciated

The following link will take you to the cvsweb-interface. Click on any file 
you desire and follow the download link of the latest version of the file.

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


Re: TCP/IP source Code

2006-04-04 Thread Daan Vreeken [PA4DAN]
On Tuesday 04 April 2006 23:01, Daan Vreeken [PA4DAN] wrote:
 On Tuesday 04 April 2006 19:11, Chava Leviatan wrote:
  Hello,
 
  How can i get the TCP/IP source code , mainly sys/netinet.
 
  I have been browsing the site for a while , but havn'yt managed to
  discover how can I get those simple .c, .h files
 
  Any help is highly appreciated

 The following link will take you to the cvsweb-interface. Click on any file
 you desire and follow the download link of the latest version of the
 file.

Will someone please kick me? :)
Here's the URL I promised you :
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet/


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


Re: flp wont load to floppies

2006-03-31 Thread Daan Vreeken [PA4DAN]
Hi A B,

On Friday 31 March 2006 19:02, A B wrote:
 1)  either by copying to destop, then floppy,
   or directly from FTP site,
   the floppy disks does not have enough space for the
   release 6.0 disks... boot, fixit, kern1.suggestions?

The *.flp files are byte-for-byte images of the floppy, not files you should 
place on a floppy. If you want to create FreeBSD install-floppies from DOS or 
Windows you need the fdimage.exe utility. You can find it on a FreeBSD ftp 
server in the tools directory.

For details on how to use fdimage see (section 1.3) :
http://www.freebsd.org/relnotes/6-STABLE/installation/i386/index.html

   2)  I'm using a IBM Thinkpad 600e 400mHz without much sucess.
   Will FreeBSD install on this machine?

It should. I run FreeBSD on much older systems.

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


Re: Wireless Card and SSID

2004-11-30 Thread Daan Vreeken [PA4DAN]
On Monday 29 November 2004 23:51, RL wrote:
 Sending again... I really need to solve this.

 I have a Netgear WAG511 PC Card and am using the ath driver. In my
 /etc/rc.conf I have ath0 to use DHCP and also I have:
 ifconfig_ath0=ssid myssid.  Now, I can set this all up manually
 using ifconfig and it works till I reboot. When I set it in my rc.conf
 and I boot it up, I get ath0: association failed (reason 12) for
 00:0f:66:02... flash on my screen one right after another. And when I
 do ifconfig, it shows no IP address NOR the ssid I set.  For some
 reason it doesn't see the SSID or DHCP I set up in rc.conf.
You can't combine use DHCP and use this SSID in /etc/rc.conf .
To do both, you need to create a startup script that sets the interface 
options (ssid / wep key / etc) and then just set /etc/rc.conf to use DHCP.

In /etc/rc.conf put this :
ifconfig_ath0=DHCP

Then place this in a file called /etc/start_if.ath0  :

ifconfig ath0 ssid some network wepmode on wepkey 0x1234567890123

--- end of /etc/start_if.ath0 ---


The RC scripts will now first execute /etc/start_if.ath0 on boot, and then try 
to get an ip address on the interface with dhclient.

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


Re: USB mouse support

2004-11-29 Thread Daan Vreeken [PA4DAN]
On Saturday 27 November 2004 23:13, you wrote:
 Daan Vreeken [PA4DAN] wrote:
 On Saturday 27 November 2004 21:28, Trey Sizemore wrote:
 I've just installed FreeBSD 5.3 on my desktop machine (P4 2.8GHz with
 512MB RAM) and cannot get my mouse pointer to move in KDE.  It is a
 Microsoft Wireless Optical 2.0 mouse (USB) and I have the following
 section in my /etc/X11/xorg.conf file:
 
 Driver mouse
 Option Protocol Auto
 Option Device /dev/sysmouse
 Option Buttons 7
 Option ZAxisMapping 4 5
 
 I have installed FreeBSD from the disc 1 ISO file and installed
 everything by default.  I have not done a kernel recomple at this point.
 
 Is this an issue with my xorg.conf file or a USB issue that requires a
 kernel recompile?  I did not see anything helpful in the Using X11 in
 the manual.
 
 Make sure you have usbd running and have set usbd_enable=YES in
  /etc/rc.conf

 Both of  these are done.

 When a mouse is plugged in usbd should start moused to handle the input.
 The debug output on your console should state ums0 being attached when the
 mouse is plugged in.

 How do I see this?
 Thanks.
Bright white text should show up on your text console (ttyv0) starting with 
ums0: . The same text should also end up in the output of the dmesg 
command.

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


Re: wireless driver for dell latitude d505?

2004-11-29 Thread Daan Vreeken [PA4DAN]
On Monday 29 November 2004 22:02, Paul Schmehl wrote:
 --On Monday, November 29, 2004 02:51:53 PM -0500 Brian Barto

 [EMAIL PROTECTED] wrote:
  Hi all, I have a dell latitude c505 laptop that has a build-in wireless
  nic, but when I loaded freebsd 5.3 it did not detect it. I'm guess i have
  to load a driver via kldload but I have no idea what driver it could be.
  Anyone know off hand? Dell's website isn't any help.

 I'm pretty sure all the Dell built-ins are Orinoco cards.  man wi(4) should
 be the right one.  It lists the Dell Truemobile card.

 If your wireless network uses wep, you need to issue a command similar to
 this:

 ifconfig wi0 inet 192.168.0.20 netmask 0xff00 ssid my_net \
wepmode on wepkey 0x8736639624

 Or, in /etc/rc.conf, use something like this:

 ifconfig_wi0=inet 192.168.0.20  netmask 0xf00 ssid my_net\
 wepmode on wepkey 0x8736639624

 If you're using dhcp for ip/mask assignment, then something like this:

 ifconfig_wi0=inet ssid my_net wepmode on wepkey 0x8736639624
That will result in errors...
You're trying to set the ip-address of the interface to ssid.

If you want to use DHCP and also want to set specific options to the interface 
(like the ssid / wep-key), you'll need to create a startup-script for the 
interface.

In /etc/rc.conf you just say you want wi0 to get an address via DHCP :
ifconfig_wi0=DHCP

And in a file named /etc/start_if.wi0 :
ifconfig wi0 ssid the name of the network wepmode on wepkey 0x1234567890

grtz,
Daan








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


Re: Breaking password on FreeBSD 5.2.1 box

2004-11-27 Thread Daan Vreeken [PA4DAN]
On Thursday 25 November 2004 15:22, Andrew Lewis wrote:
 Hi list,

 We have a client running a fBSD 5.2.1 box that needed its root password
 hacked.

 I couldn't boot into single user mode w/o the root password, so I
 installed fBSD 5.3 on another machine, and slaved the drive from the
 5.2.1 box in mine.

 Then I tried editting its master.passwd file and removing the root
 password: didn't work.

 So then I tried setting it to the hash of a password I knew: didn't
 work.
After you have changed /etc/master.passwd, you have to run pwd_mkdb to 
generate the new password database. If you have the second disk mounted 
on /mnt, try this after changing the hashes :

pwd_mkdb -d /mnt/etc /mnt/etc/master.passwd

 So then I editted /etc/ttys and set 'secure', booted up in single user
 mode, ran 'passwd' and it came back with some failure in pam_chauthtok -
 I forget the exact message, but it wasn't any more specific than what
 I've described.
That's probably passwd failing because the root filesystem is mounted 
read-only in single user mode. Try mount -a before you start passwd.

 What to do now? Did I do something very wrong? :( Please CC your
 response to me (non-subscriber)...

 Thanks...

 Best,
 -AL.

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


Re: USB mouse support

2004-11-27 Thread Daan Vreeken [PA4DAN]
On Saturday 27 November 2004 21:28, Trey Sizemore wrote:
 I've just installed FreeBSD 5.3 on my desktop machine (P4 2.8GHz with
 512MB RAM) and cannot get my mouse pointer to move in KDE.  It is a
 Microsoft Wireless Optical 2.0 mouse (USB) and I have the following
 section in my /etc/X11/xorg.conf file:

 Driver mouse
 Option Protocol Auto
 Option Device /dev/sysmouse
 Option Buttons 7
 Option ZAxisMapping 4 5

 I have installed FreeBSD from the disc 1 ISO file and installed
 everything by default.  I have not done a kernel recomple at this point.

 Is this an issue with my xorg.conf file or a USB issue that requires a
 kernel recompile?  I did not see anything helpful in the Using X11 in
 the manual.
Make sure you have usbd running and have set usbd_enable=YES in /etc/rc.conf
When a mouse is plugged in usbd should start moused to handle the input.
The debug output on your console should state ums0 being attached when the 
mouse is plugged in.

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


Re: Hello !!!

2004-11-05 Thread Daan Vreeken [PA4DAN]
On Friday 05 November 2004 12:34, [EMAIL PROTECTED] wrote:
 FreeBSD gnome.kenesh.kg 5.2-RELEASE FreeBSD 5.2-RELEASE #0:
 Thu Nov  4 09:57:07 KGT 2004
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERNEL  i386

 What means this message: kernel: arp: 192.168.10.3 is on rl1
 but got reply from 00:02:44:1b:75:c1 on rl0
 Thank you!
It probably means that you have connected both RL0 and RL1 to the same 
network. On RL1 you have selected an IP address in the 192.168.10.X range, so 
FreeBSD expects packets in the 192.168.10.x-range to arrive at RL1. Now it 
sees packets in the 192.168.10.x-range arriving at RL0 and displays the 
message you are seeing.

grtz,
Daan

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


Re: custom shell script .. OT maybe .

2004-11-04 Thread Daan Vreeken [PA4DAN]
On Thursday 04 November 2004 08:42, faisal gillani wrote:
 Hello there ...

 well i want to make a simple/wieard shell script :)
 which checks somehow
 connection with the internet  rename some file files
 if it finds
 connectivity with the internet ,  do nothing of it
 dont find connectivity
 with the internet ...is it possible with simple shell
 script ? or do i have
 to learn some scripting language for that ?
 CAN U HELP !!! :)

Try something like this :
 cut here -
#!/bin/sh

connection=0
ping -c 5 -t 6 some.host.on.the.internet  connection=1

if [ ${connection} = 1 ]; then
# This will be executed if we can ping the host
echo We have internet. :)
else
# This will be executed if we can't ping the host (no connection)
echo Oh no!! Someone please help me.
echo We're not connected!!
fi
 end of script ---

The ping command tries to ping some host on the internet 5 times and waits 
for a maximum of 6 seconds for a reply. If ping gets a reply, the variable 
connection will be set to 1.
The if statement checks the connection variable and executes whatever you 
want to do then.

grtz,
Daan

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


Re: Dlink-g520 Wireless and WEP more

2004-10-26 Thread Daan Vreeken [PA4DAN]
On Tuesday 26 October 2004 03:47, scott renna wrote:
 So I am still having a go at getting this Dlink card
 to work here's what i got:

 pluto# ifconfig ath0 inet 192.168.2.180 netmask
 255.255.255.0 ssid  wepmode on authmode open
 wepkey 0x1234567890
 ifconfig: SIOCS80211: Invalid argument

Try changing : wepkey 0x1234567890 into :
weptxkey 1 wepkey 1:0x1234567890

Which tells the device to use key 1, and then specifies key 1.
You need to start the argument of wepkey with the key number, it's a bit 
confusing.

 pluto# ifconfig ath0 remove
 ifconfig: ioctl (SIOCDIFADDR): Can't assign requested
 address

 I can't remove the interface nor configure it.
remove isn't a valid option to ifconfig. If you want to remove the 
ip-address you have assigned to ath0, try :
ifconfig ath0 delete 192.168.2.180
or
ifconfig ath0 delete
(to delete all addresses assigned to ath0)

 any ideas?
Try the above, if something fails, let me (and the list) know.

A last tip :
You can turn on/off the wireless card by entering :
ifconfig ath0 down
ifconfig ath0 up

grtz,
Daan

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


Re: Dlink-g520 Wireless and WEP more

2004-10-26 Thread Daan Vreeken [PA4DAN]
On Tuesday 26 October 2004 15:59, you wrote:
 Here's what I got:

 This is my ifconfig for this device ath0 before
 executing a new ifconfig command:

 pluto# ifconfig ath0

 ath0:
 flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu
 1500
 inet6 fe80::20f:3dff:fea9:3645%ath0 prefixlen
 64 scopeid 0x2
 ether 00:0f:3d:a9:36:45
 media: IEEE 802.11 Wireless Ethernet
 autoselect (DS/11Mbps)
 status: associated
 ssid  1:
 channel 5 authmode OPEN powersavemode OFF
 powersavesleep 100
 wepmode MIXED weptxkey 1
 wepkey 1:40-bit

 See it says it's associated and has picked up a
 channel, but no IP!

 pluto# ifconfig ath0 inet 192.168.2.180 netmask
 255.255.255.0 ssid  wepmode on weptxkey
 1:0x123456789
 ifconfig: ioctl (SIOCAIFADDR): File exists

ifconfig says this if you already have another interface with an ip-address in 
the same range. I think you have another interface on your system with an 
192.168.2.X ip address. Remove the address from the other interface and try 
again.

grtz,
Daan

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


Re: Dlink-g520 Wireless and WEP more

2004-10-26 Thread Daan Vreeken [PA4DAN]
On Tuesday 26 October 2004 17:38, scott renna wrote:
 ok, well this system has a 3com, xl0 holding an ip of
 192.168.2.150
 Does this mean that I need to have each interface
 having an IP on a different subnet?
 maybe I could change the mask on the xl0 to
 255.255.248.0 and it might work?
Nope, that won't help.

 I wanted to have the wireless card on the same subnet
 as the rest of the LAN and keep the wired card up and
 running just for testing before permanently migrating
 to this wireless card(i'm using encrypted protocols
 locally so wep weaknesses should not be an issue).

 is there a way to have both cards be on the same
 subnet and have the same subnet mask?
Nope.
If you would do that, FreeBSD wouldn't know on what interface it should send 
packets destined for a PC on that subnet. (That's why ifconfig refuses to set 
the ip address).

If you want to be able to switch between LAN and WLAN, you'll have to turn off 
one of the interfaces...
If you want to run over WLAN, type :
ifconfig xl0 down
ifconfig ath0 192.168.2.150 etc etc etc...

If you want to switch back to LAN, type :
ifconfig ath0 down
ifconfig xl0 up

You can assign the same ip address to multiple interfaces, but you can only 
have one of the up at a time.

good luck,
Daan

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


Re: photoshop

2004-10-25 Thread Daan Vreeken [PA4DAN]
On Monday 25 October 2004 21:36, Gert Cuykens wrote:
 What is the best aplication on freebsd for editing pictures ?
Try the Gimp for image editting and have a look at Sodipodi if you're 
interested in Vector graphics. Both can be found in the ports-tree.

grtz,
Daan

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


Re: Dlink-g520 Wireless and WEP

2004-10-23 Thread Daan Vreeken [PA4DAN]
On Saturday 23 October 2004 05:21, scott renna wrote:
 So,

 Thanks to a fellow list member I got my 5.2.1 System
 to see my Dlink card.  The trouble now I'm having
 involves setting up WEP.  I am currently running WEP
 on a Netgear Wireless router 802.11b.  The Dlink does
 802.11b/g. Here's what I'm running into when turning
 on WEP.  The router has a 26 character string for
 128-bit WEP that I created via a passphrase.  Windows
 takes it and works well wirelessly but when I
 configure my card, here's wha t happens on BSD:

  ifconfig ath0 192.168.2.175 netmask 255.255.255.0
 ssid SSID_NAME wepmode on wepkey
 0xyx

Try this :
ifconfig ath0 192.168.2.175 netmask 255.255.255.0 wepmode on weptxkey 1 wepkey 
1:0xdead0beef0

Make sure you have the number of hex digits right : 10 digits for 64 bit 
encryption or 26 for 128 bit encryption).

grtz,
Daan

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


Re: 128 GiB+ disks on Intel PIIX4

2004-10-18 Thread Daan Vreeken [PA4DAN]
On Monday 18 October 2004 13:03, Svein Halvor Halvorsen wrote:
 Is this at all possible? My BIOS don't seem to recognize my brand new 200
 GB disk, but that is nothing new. I can initialize a new slize, setup
 bsdlabel and do newfs on if without problems. How can I verify that the
 entire disk is usable without filling it all up (or past the 128 GiB
 barrier), and then reading everything back out?
Try copying the entire disk to /dev/null   :

dd if=/dev/ad1 of=/dev/null

If it succeeds without errors, you should also be able to write the entire 
disk.

grtz,
Daan

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


Re: 128 GiB+ disks on Intel PIIX4

2004-10-18 Thread Daan Vreeken [PA4DAN]
On Monday 18 October 2004 14:30, you wrote:
 [Daan Vreeken [PA4DAN], 2004-10-18]

   dd if=/dev/ad1 of=/dev/null
 
   If it succeeds without errors, you should also be able to write the
  entire disk.

 It is not possible that the controller will rotate when it reaches its
 28bit address barrier, and that the controller will return the first part
 of the disk, when asking for the last?
I don't believe that is possible without the kernel complaining, but I'm not 
100% sure.
To be really 100% sure you'll have to fill up the disk and re-read it...

grtz,
Daan

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


Re: Question about Wireless USB Adapter

2004-09-03 Thread Daan Vreeken [PA4DAN]
On Friday 03 September 2004 00:21, Vince Hoffman wrote:
 On Thu, 2 Sep 2004, Daan Vreeken [PA4DAN] wrote:
  On Thursday 02 September 2004 05:53, Will Lieu wrote:
   Hello,
  
 I was just wondering if FreeBSD is going/does it support the
   following Wireless USB Adapter: Netgear MA111.  If not do you know
   where I can get the drivers for this?  I've searched around around and
   seemed to come up empty. Your reply would be greatly appreciated.
 
  As far as I could find, your device is based on the Prism-2 chipset.
  Linux claims to support the device with the wlan-ng driver, but as far as
  I know, FreeBSD doesn't have support for it (at this moment).

 from man wi

 The wi driver provides support for wireless network adapters based around
  the Lucent Hermes, Intersil PRISM-II, Intersil PRISM-2.5, Intersil
  Prism-3, and Symbol Spectrum24 chipsets.  All five chipsets provide a
  similar interface to the driver.

 however i have no idea if this includes USB adapters,
Nope.
At this moment it doesn't.

 the only usb
 wireless driver i came across (or ever looked for for that matter) for
 Freebsd was for Atmel based USB WLAN adapters
 http://vitsch.net/bsd/atuwi/
 it seemed to work quite well when i tried it.
I wrote it :)

I have a Prism-II USB WLAN adapter here at home, I just haven't had the time 
(yet) to look at it. Before I look at it I first want the atuwi driver to be 
in a more finished state..
At this moment I think the atuwi driver is the only USB WLAN driver for 
FreeBSD. All adapters based on other chipset are unsupported at this moment.

grtz,
Daan

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


Re: Question about Wireless USB Adapter

2004-09-02 Thread Daan Vreeken [PA4DAN]
On Thursday 02 September 2004 05:53, Will Lieu wrote:
 Hello,

   I was just wondering if FreeBSD is going/does it support the following
 Wireless USB Adapter: Netgear MA111.  If not do you know where I can get
 the drivers for this?  I've searched around around and seemed to come up
 empty. Your reply would be greatly appreciated.
As far as I could find, your device is based on the Prism-2 chipset.
Linux claims to support the device with the wlan-ng driver, but as far as I 
know, FreeBSD doesn't have support for it (at this moment).

grtz,
Daan

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


Re: Serial Device Views

2004-05-30 Thread Daan Vreeken [PA4DAN]
On Sunday 30 May 2004 15:52, Grant Peel wrote:
 Hi all,

 Here is the second most embarrasing question I have ever asked.

 I have a switch (managed), that I can use HyperTerminal (when connected to
 a windows box of course) to view the console.

 I seem to be going blind reading the docs on how to view the same console
 when I connect the Switch to the Serial (RS-232 port on any of my FreeBSD
 servers.

 Any hints, comments on how to set up freebsd to allow access to the switch
 console would be appreciated.
Try installing minicom. It's in the ports-tree in : /comms/minicom .
There are other programs to talk to serial ports on FreeBSD, but this is what 
I often use. It's a console program with a nice user interface.

grtz,
Daan

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


Re: FreeBSD and Debugging?

2004-04-10 Thread Daan Vreeken [PA4DAN]
On Saturday 10 April 2004 07:23, Brandon Erhart wrote:
 Thank you. You are my new god. I had checked out a version of valgrind for
 BSD (one of the patches) and it failed to compile.

 Everything seems to be working, except I get this warning at the beginning
 of the program:

 Warning: ignoring --pointercheck=yes, because i386_set_ldt failed
 (errno=45)
Sounds like you need options   USER_LDT in you kernel.

grtz,
Daan

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


Re: USB Wireless card -

2004-02-28 Thread Daan Vreeken [PA4DAN]
On Thursday 26 February 2004 19:53, Derrick wrote:
 I picked up one of these :
 http://www.pcchipsusa.com/prod-usbwirelesslanadaptor.asp

 (nice deal, buy for 29.95, and get a 29.95 rebate.)
 i know the Intersil Prism 3.0 is supported, on some wi - but is this
 device supported? I don't think it is, but am just wanting to confirm
Nope. At this moment there's no driver for USB WLAN devices based on the Prism 
chipset. I have one of those laying around here and when I have the time I 
might try to write a driver for it, but for now I think you're out of luck.

For the Atmel USB WLAN chipsets there is a driver though :
http://vitsch.net/bsd/atuwi

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


Re: mac address

2004-01-26 Thread Daan Vreeken [PA4DAN]
On Tuesday 13 January 2004 14:31, Daan Vreeken [PA4DAN] wrote:
 On Tuesday 13 January 2004 13:54, Malik Blent wrote:
  hello
 
  i use freebsd5.1 and i want to reject some computers  whose according to
  Mac Addresses and i recompiled kernel with
  options IPFIREWALL
 
  then i made ipfw.sh with touch and wrote in ;
  ipfw add deny MAC 00:60:67:28:0c:1e any
  ipfw add deny MAC any 00:60:67:28:0c:1e
 
  but I couldn't reject above machine
  What shall i do ?

 You have to it first with a sysctl :
Oops, typo, should have been :
You have to enable it first with a sysctl

 # sysctl -w net.link.ether.ipfw=1

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

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


Re: Thank you

2004-01-22 Thread Daan Vreeken [PA4DAN]
On Thursday 22 January 2004 09:44, Khoi - San Zulu wrote:
 Good day.

 I would like to extend to you, whomever you are, my
 heartfelt gratitude for this operating system.

 I come from a poor community in the heart of South
 Africa. I learned about computers and how they work,
 using Microsoft operating systems. I have had no
 experience with any other operating system besides
 this.

 Windows NT, 2000 and XP. I was given a copy of FreeBSD
 release 5.0 by a gentleman I happened to meet whom is
 into the Unix Operating system. He gave me 2 CD-Rom
 disks and 2 Stiffy disks. I have read your site, I
 found it most informative. I installed the FreeBSD
 Operating System onto a Pentium II computer. It worked
 first time, Great  I searched on Google for
 commands and have found some.

 I searched your site, but my burning question is, How
 do I start the Graphical Interfaces, KDE and Gnome? I
 did a Custom Installation following the directions of
 the website. I installed all the packages and Ports. I
 want to learn everything.
You should have XFree86 and KDE or Gnome installed. When you're done with that 
it's time to configure your video card. This can be done in 2 ways : 
graphical or in text-mode by selecting your hardware from a list.
The command to start the graphical configuration utility is :
xf86cfg
And the command to start the text-based configuration utility is :
xf86config

When you're done, make sure that you have the config-file that has been 
generated in /etc/X11/XF86Config .

Now when you type kdm you should get a graphical login-screen where you can 
login with your username and password. After logging in KDE should apear.

 I am of the understanding that the Operating System
 loves command line. I dont feel that I am at that
 level yet to configure from the command line. An old
 adage in South AFrica goes, work from what you know,
 to what you don't know. I want to learn everything
 about the Operating System. I see its Potential is
 GREAT So much can be done for the people who
 cannot afford old or new computers never mind the
 licenses for the Other operating systems here like
 Novell and Microsoft.  I desperately want to learn
 about this. I have come to an internet cafe to educate
 myself further. My problem is that resources are
 limited here regarding our access to Alternative
 Operating Systems and equipment. The potential that
 the discovery of this Operating System and what it
 offers makes me salivate with happiness. I can make a
 meal of this and do so many things within the
 community along the lines of empowerment I have
 heard about Linux, but have read from a few sources
 that the FreeBSD Operating system is amongst the more
 secure out there as well as that FreeBSD 5.0 has the
 ability to emulate linux. So In my understanding I get
 multiple Operating Systems, with Multiple capabilities
 all roled into 1 ( well 2 disks!).

 Please help in this regard. If possible, please help
 me with the commands or where I can find them!!!  I
 would appreciate this greatly
First of all : Remember, Google is your friend :)
With Google you can find a lot of shell introduction pages (searching for 
things like shell script commands or learning shell scripts )
A good example of a page that explains some basic shell commands can be found 
here :
http://www.ii.uned.es/~apm/Doc/Shell1.html


Good luck finding your way into FreeBSD !

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


Re: USB sound device questions (multiples!)

2004-01-21 Thread Daan Vreeken [PA4DAN]
On Wednesday 21 January 2004 02:53, Ethan wrote:
 Hello all,

  I am thinking about trying to use 4 to 6 USB sound devices on a single
 FreeBSD system.
  Can anyone advise me if I will run into a case where on every reboot they
 all get different pcmX devices? Or will they stay static?
If they are all plugged in during boot they will get probed in the same order 
every time you boot, so yes, they will be static.
Be sure to calculate if you have enough bandwidth available to drive such a 
great number of devices at the same time though :
48KHz * 16-bits sample * stereo * 6 devices = about 48 * 2 * 2 * 6 =
 1152 KB/sec .
That's about the maximum you can get over USB 1.0, so I'm not sure if you will 
be able to use them all at the same time at maximum playback rate... So it 
depends on the quality and sample-rate you need.

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


Re: USB sound device questions (multiples!)

2004-01-21 Thread Daan Vreeken [PA4DAN]
On Wednesday 21 January 2004 13:47, you wrote:
  If they are all plugged in during boot they will get probed in the same
  order every time you boot, so yes, they will be static.
 Okay, because this is going to be a fixed installation that will be pretty
 much hands off.

  Be sure to calculate if you have enough bandwidth available to drive such
  a great number of devices at the same time though :
  48KHz * 16-bits sample * stereo * 6 devices = about 48 * 2 * 2 * 6 =
   1152 KB/sec .
  That's about the maximum you can get over USB 1.0, so I'm not sure if you
  will be able to use them all at the same time at maximum playback rate...
  So it depends on the quality and sample-rate you need.
 I figured I would split them across two USB interface cards?
That should solve the bandwidth problems yes...

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


Re: Updating ports over Proxy (was: no subject)

2004-01-20 Thread Daan Vreeken [PA4DAN]
On Tuesday 20 January 2004 14:46, saad Hage (hotmail) wrote:
 Hi,

  How I can update Ports via Wingate Proxy? Actually I receive an error
 saying me he cannot found the host name.
Try setting HTTP_PROXY and FTP_PROXY before you upgrade / add a package like 
this :
export HTTP_PROXY=the.proxy.addres:8080
(Change the address  port to that of the proxy server)

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


Re: ftp authentication problem

2004-01-18 Thread Daan Vreeken [PA4DAN]
On Sunday 18 January 2004 19:39, Peter Ulrich Kruppa wrote:
 On Sun, 18 Jan 2004, asker survey wrote:
  Hello everybody;
  I upgraded my 4.4 FreeBSD to 4.9. I backed up the
  /usr/home directory and /etc/*. After installing
  FreeBSD 4.9 I copied passwd , master.passwd and the
  home directories. Now the users can log in through
  telnet or ssh. But when trying to access ftp this
  message is displayed after typing the username:
  530 User testuser access denied.
  Login failed.
 Please check, if the ftp line in /etc/inetd.conf is uncommented.
 If not, remove the # and reboot.
You wouldn't get 530 access denied if ftp is disabled in inetd.conf . If it 
was you would have gotten connection refused.

Check if the user testuser has a valid shell that is listed in /etc/shells .
There are some more criteria a user has to comply to before it is allowed to 
use ftp, for more details see man ftpd.

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


Re: ipfw rules for letting ssh requests in

2004-01-18 Thread Daan Vreeken [PA4DAN]
On Monday 19 January 2004 00:47, Andrew L. Gould wrote:
 I can't seem to get the ipfw rules right for letting ssh clients access a
 ssh server.  I can use ssh on the server to connect to the client; but if I
 try to connect from the client to the server, the operation times out.

 I have my rules in /etc/ipfw.rules.  Executing 'ipfw show' displays all of
 the rules as expected.  It also shows packets having been allowed at rule
 300 after an attempt to connect has been made.

 I have copied the top portion of /etc/ipfw.rules:

 #!/bin/sh

 # Andrew L. Gould's firewall rules.

 fwcmd=/sbin/ipfw -q
 ${fwcmd} -f flush


 # Basic rules that should not be changed
 ${fwcmd} add 00100 pass all from any to any via lo0
 ${fwcmd} add 00110 deny all from any to 127.0.0.0/8
 ${fwcmd} add 00120 deny ip from 127.0.0.0/8 to any


 # Allow specified service requests in
 # ssh
 ${fwcmd} add 00300 allow tcp from any to me 22
 ${fwcmd} add 00301 allow udp from any to me 22

 Does anyone have any idea why the operation is timing out or what I have
 done wrong?
You forgot the packets in the other direction... This should do the trick :

${fwcmd} add 00300 allow tcp from any to me 22
${fwcmd} add 00301 allow tcp from me 22 to any

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


Re: mac address

2004-01-13 Thread Daan Vreeken [PA4DAN]
On Tuesday 13 January 2004 13:54, Malik Blent wrote:
 hello

 i use freebsd5.1 and i want to reject some computers  whose according to
 Mac Addresses and i recompiled kernel with
 options IPFIREWALL

 then i made ipfw.sh with touch and wrote in ;
 ipfw add deny MAC 00:60:67:28:0c:1e any
 ipfw add deny MAC any 00:60:67:28:0c:1e

 but I couldn't reject above machine
 What shall i do ?
You have to it first with a sysctl :
# sysctl -w net.link.ether.ipfw=1

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


Re: freebsd 5.1 and devfs

2004-01-13 Thread Daan Vreeken [PA4DAN]
On Tuesday 13 January 2004 18:51, Frederick Thomas wrote:
 shalom,
   I read the manpage on devfs and can't make heads or tails of it. I've
 a cs4236 onboard pnp sound card that took 2 months to finally get running
 and I'm gonna wait that long this time. My box is a dell optiplex gx1 and
 using old school rules catted dmesg.boot and found pcm0my card but when I
 tried to run sh MAKEDEV snd0 I find that makedev is now deprecated. please
 assist in my using devfs to make device nodes please reply to address
 above. Thanks
If the card is detected as pcm0 and devfs is running, you should have entries  
 
for the device in /dev named dsp*

cat /dev/sndstat should also list the device.

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


Re: The Booting Process

2003-12-24 Thread Daan Vreeken [PA4DAN]
On Thursday 25 December 2003 00:25, gffds fsdff wrote:
 Is there a way, when booting, to have an application launch?
 Ex:
 exec /usr/servers/bots/zDSBot3/zDSBot3 
Have a look at /usr/local/etc/rc.d
All scripts that are executable and end in .sh in that directory get 
executed at boot-time. You could create your own scripts in that directory 
that starts your application.

On boot the scripts are executed with the first agrument being start. On 
shutdown the scripts are executed with stop as first argument. By checking 
the argument in your script you can determine if you should start the 
application or not. (Don't start it at shutdown :)

A simple rc.d-script could look something like this :
--- cut here ---
#!/bin/sh
case $1 in
start)
/some/dir/some-app  echo -n ' some-app'
;;
stop)
;;
*)
echo Usage: `basename $0` {start|stop} 2
;;
esac
exit 0
--- cut here ---

The echo -n line is the output you see when you boot your system after :
Local package initialization :
This only works on applications that daemonize (dissapear into the background 
when you start them). If your program doesn't daemonize, you should start it 
with an  sign behind it...

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


Re: Atmel WLAN Driver

2003-12-22 Thread Daan Vreeken [PA4DAN]
(to stop cross-posting please 'cc' follow-ups to -questions)

On Monday 22 December 2003 19:10, Markus Kovero wrote:
 Hi. I Have Belkin 11MBps wlan adapter F5D6020 ver.2 that uses atmel
 chipset. I noticed that support for freebsd hasnt been made yet but I
 found leenox driver for it. So I thought to ask would it be possible to
 port leenox driver to freebsd so I could use my wlan pcmcia card.
 Linux driver I found: http://atmelwlandriver.sourceforge.net/news.html
I have been (and still am) working on a FreeBSD driver for the USB version of 
this adapter. The driver homepage can be found here :
http://vitsch.net/bsd/atuwi/

If you want to try to get the PCMCIA version working, you could have a look at 
the driver to start with, since the device itself is the same, only the 
interface to it is different.

 Thanks.
 Peaceful xmas and happy newyear! Greets Markus Kovero
grtz,
Daan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NATD config remote management

2003-12-13 Thread Daan Vreeken [PA4DAN]
On Saturday 13 December 2003 17:25, Jack L. Stone wrote:
 Dear list:
 I manage a remote gateway/nat/router/fw server where it is not convenient
 for anyone to go downtown to the colo and do reboots.

 I've managed to do everything here remotely from my own console, including
 reboots when updating the OS requires it -- that is except when
 reconfiguring the natd.conf file to add another forwarding service. I can
 reboot and it comes up okay, but rather would avoid a reboot. BUT, if I try
 to kill/restart the natd daemon remotely, it kills my SSH session -- no
 restart of NATD -- cannot log back in and that means a 30-min trip for
 someone to the colo. That gets old and rather just reboot which is a lot
 less inconvenient.

 Obviously, when I do the kill of natd, it disconnects my SSH session and I
 can't restart the daemon so it can reread the natd.conf file for my
 changes.

 I've tried a background script, but that hasn't worked either. Perhaps a
 second session would stay alive either SSH or even a telnet session
 just for the duration for this event??? Or a better background script...??
The simple answer is : a better background script :)
I manage a bunch of remote machines and sometimes have to fool around with 
NATD remotely. When I do this, I make a cron entry that starts 
/root/ipfw-rescue .
In there there's something like :
/sbin/natd -f flush
/sbin/natd 1 divert natd all from any to any via xl0
/sbin/natd 5 pass all from any to any
killall -KILL natd
/sbin/natd -n xl0

This way the machine will always recover from ipfw or natd tests within 10 
minutes.

When loading firewall rules remotely, I direct the output of ipfw to /dev/null 
to be sure ipfw loads the entire rule set.
If for example you have a rc.firewall file like this :

${fwcmd} -f flush
${fwcmd} add blah blah
${fwcmd} add blah blah2
${fwcmd} add 5000 pass all from any to any

And you start it over SSH with :
sh /etc/rc.firewall
You will get locked out because ipfw prints every rule it adds. So after ipfw 
-f flush it will print ruleset flushed, but packets aren't allowed to 
travel outside over the SSH connection (since the ruleset is empty) so 
execution of rc.firewall stops there... :(
Loading the ruleset like this does work :

sh /etc/rc.firewall /dev/null 2/dev/null
(Direct both stdout and stderr to /dev/null)
Alternatively you could direct the output to a log-file so you can verify if 
anything went wrong. (And don't forget to remove the cron-entry when you're 
done)

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


Re: Serial Ports are there, but not in /dev

2003-12-12 Thread Daan Vreeken [PA4DAN]
On Friday 12 December 2003 16:18, Dr. Lyman Hazelton wrote:
 I have a pair of standard serial ports which show up in dmesg thus:

 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 16550A
 sio1 at port 0x2f8-0x2ff irq 3 flags 0x10 on isa0
 sio1: type 16550A

 However, they don't show up as devices in /dev.  Anyone have some idea
 why the system might not like them, and how I can get them to show up
 as devices?  I have a serial PalmPilot (actually, a Kyocera phone)
 I'd like to be able to use with KPilot.
Thay should be in /dev, but they are called /dev/cuaa0 and /dev/cuaa1 which is 
a bit confusing :)
If you really don't have these and you are running an older version of FreeBSD 
(without devfs) you might want to try :
cd /dev
sh MAKEDEV cuaa0

grtz,
Daan

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


Re: which tool for a screenshot?

2003-12-06 Thread Daan Vreeken [PA4DAN]
On Saturday 06 December 2003 21:28, Gary Kline wrote:
 Folks,

   Which tool is best (easiest) to capture screenshots to
   be included in an HTML file?  I need to capture several
   screen of a web app for a tutorial I've been writing.
The GIMP can take screenshots and has a nice GUI.
Alternatively you could take a look at xwd in combination with ImageMagick's 
convert to create screenshots from the command line.

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


Re: Artsd process running // What is It ??

2003-12-05 Thread Daan Vreeken [PA4DAN]
On Friday 05 December 2003 10:11, Greg Bernard wrote:
 Hello,

 I have a process called artsd running on my server and I was wondering what
 this process could be ??

 Seems to be related to some kind of audio device...

 As I am not the one that has started this process, I would be interested in
 knowing where It has been started from and It is supposed to do ??
Artsd gets started by KDE by default. It's a sound-daemon just like ESD. It 
allows multiple programs to play sound at the same time.
If you don't need/want the artsd running you can disable it in the KDE control 
pannel.

 No man pages could be found...
But a quick google search for artsd gives :
http://docs.kde.org/en/3.1/kdemultimedia/artsbuilder/artsd.html

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


Re: localhost pingable, inaccessible on browser

2003-12-05 Thread Daan Vreeken [PA4DAN]
On Friday 05 December 2003 15:21, Marty Landman wrote:
 At 09:02 AM 12/5/2003, Lowell Gilbert wrote:
 Sounds like you don't have an http server running on the machine.

 Sorry I wasn't more clear. Apache2's running and afaik working well
 excepting this issue.

 If you do, then maybe a local firewall is getting in the way.
 ipfw isn't running. What are the other possibilities?
Sounds like you have configured apache to listen only on 192.168.0.x .
Do you have something like this in your httpd.conf ? :
Listen 192.168.0.x:80

If so, try adding
Listen 127.0.0.1:80
or change it into
Listen 80

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


Re: usb wireless lan cards

2003-12-04 Thread Daan Vreeken [PA4DAN]
On Thursday 04 December 2003 17:04, Paulo Roberto wrote:
 Is there any project related to porting externel usb wireless
 interfaces to FreeBSD?
 I am stuck with a Linksys WUSB11 and have to run Windows on my laptop
 just because the damn winmodem and this damn usb network interface.
A quick Google search shows that it's adapter with Atmel chipset on it. I have 
written a driver for these devices for FreeBSD 5.X .
You can find it here :
http://vitsch.net/bsd/atuwi/

The latest driver I've released only supports Ad-hoc mode, but I have made a 
lot of changes to the code since then. At this moment I have Infrastructure 
mode working (in beta). Please contact me if you want to try out the newer 
code.

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


Re: FreeBSD 5.0

2003-12-03 Thread Daan Vreeken [PA4DAN]
On Wednesday 03 December 2003 18:10, WF Nix wrote:
 Will FreeBSD 5.X run on a Pentium 133 with 48 megs of ram?

 I tried 5.0 before it was in -release and it wouldn't even boot...Just
 wondering, thanks.
I have a system here running 5.X with as little as 16MB of ram, so it should 
work.

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


Re: USB and routing...

2003-10-21 Thread Daan Vreeken [PA4DAN]
On Tuesday 21 October 2003 17:26, Henrik W Lund wrote:
 ...but not necessarily in relation to one another. ;-)

 This is my second go at FreeBSD, and it's my umpteenth one with UNIXes in
 general. Having done my share of Linux (with one recent battle being
 setting up a web/mail/NFS/NIS/Samba server for a school project. *puh* I
 thought I knew what frustration was, but boy was I wrong!), I've moved onto
 FreeBSD because - well, I think it's easier to set up, and you don't have
 to relate to several different versions of the same OS. Now, onto my
 questions:

 1. I have installed onto a laptop computer, with a USB mouse and a
 touchpad. Now, up until very recently, the USB mouse worked fine when I
 inserted it and took it out while the system was on, and the console output
 showed usbd doing its thing. However, the other day this stopped working,
 and I now have to have the USB mouse inserted at startup for it to function
 at all. This is, of course, no biggie, but it kinda defeats the purpose of
 the whole USB thing, doesn't it? The touchpad, however, works perfectly,
 always.
I think you don't have usbd running.
Check if you have usbd_enable=YES in /etc/rc.conf

 2. I have one built-in NIC and a Wireless NIC, both of which work
 perfectly, the way they're supposed to. Now, my beef is that the Wireless
 NIC is used for home, and gets IP via DHCP from my router. The built-in NIC
 is used for school, must have IP assigned manually (from rc.conf), and has
 a totally different IP range that my network at home. This, of course,
 leads to mayhem when the default route is to be established. If I enter the
 gateway at school statically, my laptop gets online at school, but not at
 home. If I don't, my laptop gets online at home, but I have to manually
 route add default etc everytime I want to go online at school. Is there a
 tidy way to do this automatically? One default route per NIC, for instance?
You could create a script that checks every X-seconds if the network card is 
connected. If the status goes to active, add your schools gateway. If the 
status goes to no carrier, change to your wireless gateway.
(you can get the status from ifconfig)

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


Re: terminal emulation

2003-10-05 Thread Daan Vreeken [PA4DAN]
On Sunday 05 October 2003 23:35, Alexey Koptsevich wrote:
 Hi,

 I would like to use FreeBSD machine as a serial console to another FreeBSD
 machine. Server part is described in the Handbook, but I have found
 nothing about client part. Which program should I use for terminal
 emulation? How can I make, for instance, xterm to communicate to the
 serial port?
Try minicom, it's in the ports at comms/minicom

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


Re: Wireless USB Network Adapter Problem

2003-09-04 Thread Daan Vreeken [PA4DAN]
On Thursday 04 September 2003 07:29, Srinivasan Rajagopal Iyengar wrote:
 Hi,

 Has anyone had success hooking up to the net with a Belkin F5D6050
 Wireless USB Network Adapter (802.11b) and the Belkin F5D6231 Wireless-B
 Broadband router, with FreeBSD (4.8 or 5.1)?
After a bit of googling the device seems to be a AT76c503 with RFMD radio 
inside.
2 days ago I have released a (working beta) driver for these USB wireless 
devices. It's written for FreeBSD-5.1 and should work for your adapter after 
adding the USB VID  PID to the device matching table.

At this moment the driver only supports Ad Hoc mode (because I don't have an 
access point to test here).

You can find the driver here :
Driver home page :
http://www.vitsch.net/bsd/atuwi/
Release 0.1 file overview :
http://www.vitsch.net/bsd/atuwi/0.1/
Or grab the tarball imediately :
http://www.vitsch.net/bsd/atuwi/0.1/atuwi-0.1.tar.gz

If you want to give this driver a try and need help I am most willing to help 
you out :)

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


Re: Tar question

2003-09-03 Thread Daan Vreeken [PA4DAN]
On Wednesday 03 September 2003 13:22, Charles Howse wrote:
 I'm a little confused about the arguments for tar.
 I want to tar the contents of a directory and save that .tgz file for
 backup purposes.

 Problem is, when I copy larry.tgz to /disk2 and:
 Tar xvfz larry.tgz
 It creates the /disk2 file structure within /disk2.

 # cd
 # ls /disk2
 # freebsd larry (directories)
 # tar cvfz larry.tgz /disk2
 # cp larry.tgz /disk2
 # cd /disk2
 # tar xvfz larry.tgz
 # ls
 # freebsd larry disk2 (directories)

 How can I make tar not create the directory structure within the same
 directory?
 Does that make sense?

What about :
cd /disk2
tar -cvfz larry.tgz *

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


Re: Network interfaces

2003-08-14 Thread Daan Vreeken [PA4DAN]
On Tuesday 12 August 2003 00:34, Tkachenko, Artem N wrote:
 Hi,

 I have a Inspiron 5100 and I install FreeBSD 4.8 on it. The computer has an
 integrated NIC. After installation and typing ifconfig I see the there was
 no network interfaces detected. Typing /stand/sysinstall and checking the
 network interfaces configuration I see the fallowing:

 faith0unknown network interface type
 sl0   SLIP interface on device /dev/cuaa0 (COM1)
 ppp0  PPP interface on device /dev/cuaa0 (COM1)
I don't have an inspiron to test this, but I found the following link with 
Google :
http://jturner.tapetrade.net/docs/installing_freebsd_on_inspirion5100.html

Basically the page says your laptop has a broadcom 4400 NIC which can be used 
through an unsupported driver. Hope this helps...

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


Re: Simple cron script to copy remote webpage locally?

2003-07-27 Thread Daan Vreeken [PA4DAN]
On Sunday 27 July 2003 16:51, Dragoncrest wrote:
 I've got a webpage that updates dynamically on one of our servers and
 lists a bunch of statistics about spam and such on our servers.  Problem
 is, the script puts a load on the server if too many people access it
 and it eventually kills the server.  I would like to lower the traffic
 on this server by setting up a script on a remote server that is
 activated every 10 minutes by cron and automatically loads the remote
 script then copies the results to a local file on the new public server
 which people can then view at their leasure without killing our stats
 server.  What is going to be the easiest way to do this?  I'm sure there
 has to be a simple way to do this, but I'm kinda drawing a blank on how.
  Can anyone help?

Take a look at the fetch program
basically you just need to supply it a URL and a local file-name.

# man fetch

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


Re: Writing to parallel port

2003-07-25 Thread Daan Vreeken [PA4DAN]
On Friday 25 July 2003 19:22, Mark wrote:
 Hello,

 Has anyone an idea how to set/unset a bit on a parallel port in freebsd
 4.7? I installed Device::ParallelPort from CPAN (Perl 5.8.0), but that does
 nothing (seems made for linux).

 Or if someone could point me to a little c-source, that would be helpful
 too; all I need is to toggle a bit to switch a relay.
Have a look at this piece of code if wrote :
http://vitsch.net/cgi-bin/gpl/cat.cgi/lampd/v1.0?lampd.c
It's a very small udp network daemon to control my roomlights over the LAN.

Basically you need to open /dev/io to get io read/write permission, after that 
you are free to bang all IO-ports you want.

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


Re: Re[2]: configuration NAT

2003-07-02 Thread Daan Vreeken [PA4DAN]
On Wednesday 02 July 2003 12:58, Ruslan Sulemanov wrote:
 KH On Wed, 2 Jul 2003, Ruslan Sulemanov wrote:
  I'm try configuration NAT (ipfw + natd),
  how i need start natd ?
 
  Kernel options:
 
  options IPDIVERT
  options IPFIREWALL

 KH /etc/rc.conf:
 KH firewall_enable=YES   # Set to YES to enable firewall
 functionality KH firewall_type=open# Firewall type (see
 /etc/rc.firewall) KH^
 KHOr whatever you want ...
 KH natd_enable=YES   # Enable natd (if firewall_enable ==
 YES). KH natd_interface=de0# Public interface or IPaddress
 to use. KH ^
 KH Fill in here the device name of your network adapater.

 I do it. How i can start natd?
natd_enable=YES in your /etc/rc.conf will tell FreeBSD to automatically 
start it when your system boots.
You can start it manually with :
natd -n de0
(assuming de0 is your outside-interface)

 in my /etc/rc.firewall this rules:
 ipfw -f flush
 ipfw add divert natd all from any to any via fxp0
 ipfw add allow all from any to any
That should get it working

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


Re: ipfw final rule

2003-06-03 Thread Daan Vreeken [PA4DAN]
On Monday 02 June 2003 18:02, Gary Aitken wrote:
I was considering turning on bridging, which requires the final ipfw
rule to be allow, not deny.
So I added a deny rule at 65534, but temporarily left the default deny
rule in place in the kernel.

Interestingly, my log shows the following:
  65534   582   58547 deny ip from any to any
  65535 3 234 deny ip from any to any

 This looks like an impossible situation, since the last 3 should have been
 caug ht by the previous rule.
I think they got caught in the split second between the time of flushing out 
all rules and loading a new ruleset.
At that time 65535 was the only rule in the ruleset and 3 packets must have 
reached your machine...

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


Re: LPT1 Port in ASM or C

2003-04-03 Thread Daan Vreeken [PA4DAN]
On Friday 04 April 2003 09:31, [EMAIL PROTECTED] wrote:
 Hi all!
 I want to know how I can control the lpt1 port in asm or C.
 I'm a newbie.
 Any help would be greatly appreciated.

There are two ways to do that.
1. Directly poke around with the ports
2. open /dev/lpt0 and communicate with that

I have never looked at the second way, but I can tell you how to do it the 
first way :)
In FreeBSD to have direct port-access you application needs to open /dev/io
Once it has done that, it can directly write to any port it wants.

Opening /dev/io should look something like :
FILE  *IO;
IO = fopen(/dev/io,rw);

And then you can write/read ports with this little piece of assembly :

void outp(unsigned short Port, unsigned char Data)
{
  unsigned char   D = Data;
  
  __asm __volatile(outb %0,%%dx : : a (D), d (Port) );
}

unsigned char inp(unsigned short Port)
{
unsigned char   Data = 0;

__asm __volatile(inb %%dx,%0 : =a (Data) : d (Port) );
return Data;
}

With the following command you should create a nice 1-0-1-0 bit pattern on the 
parallel port :
outp(0x378,0xaa);


I have some example code (that does much more than controlling the port) here:
http://danovitsch.dnsq.org/cgi-bin/gpl/cat.cgi/lampd/v1.0?lampd.c

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


Re: loading ipfw module without default-deny

2003-03-06 Thread Daan Vreeken [PA4DAN]
On Thursday 06 March 2003 12:19, Josh Brooks wrote:
 Hello,

 I want to:

 kldload ipfw.ko

 but I am not near the physical machine, and cannot type in an allow rule
 after loading the module - by default all traffic will be denied.
 How can I load the ipfw.ko module but not knock myself off the network ?

try this :

kldload ipfw.ko ; ipfw add 5 allow ip from any to any
or even better :
kldload ipfw.ko ; sh /etc/rc.firewall

 My only thought was to put an `ipfw add` rule into a cron job to run one
 minute after I load the module, but that seems silly :)

grtz,
Daan

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Ezonics EZCam Pro USB

2003-02-28 Thread Daan Vreeken [PA4DAN]
On Friday 28 February 2003 13:21, Alistair Phillips wrote:
 Hi all,

 I've got a USB based WebCam made by Ezonics .  When I plug the USB device
 into my system (4.8PRE-RELEASE) the following information comes up:

 ugen0: vendor 0x052b product 0xd001, rev 1.00/1.00, addr 3
The device IS listed on this page :
http://alpha.dyndns.org/ov511/cameras.html
Apperantly it uses a OV511 chipset, so maybe you can get it to work with this 
software :
http://ovtvid-bsd.sourceforge.net/

grtz,
Daan

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message