Re: Configuring Bash

2008-05-15 Thread Wojciech Puchar

PS1 = ' [EMAIL PROTECTED] '
case `id -u` in
 0) PS1='${PS1} # ';; # root
 *) PS1='${PS1} $ ';; # everyone else

When I log in, I am greeted with:
${PS1} $ $


$PS1 nie ${Ps1}



However, if I su to root, I get:
[EMAIL PROTECTED] /home/user]#

That is what I wanted, but for some reason it is not working for a
normal user.  I thought perhaps the problem could be that .bash_profile
is only loaded when a non-login shell is spawned, but a quick
consultation of man bash revealed that bash reads ~/.bash_profile when
it is invoked as a login shell.

My next thought was that it was a permissions issue, but:
su
chmod 777 .bash_profile
exit
logout
login

That did not change the results, the output was still the same as above.
This is all being done at the console, by the way.

Appreciate any advice,

montag
--
Give the people contests they win by remembering the words to more popular songs or 
the names of state capitals or how much corn Iowa grew last year. Cram them full of 
non-combustible data, chock them so damned full of 'facts' they feel stuffed, but 
absolutely 'brilliant' with information. Then they'll feel they're thinking, they'll get 
a sense of motion without moving.

___
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: arplookup 0.0.0.0 failed: host is not on local network

2008-05-15 Thread Christer Solskogen

Jon Radel wrote:


to see what you can catch.



First of all, thanks for taking time to help me on this.

[EMAIL PROTECTED] ~]# tcpdump -vvv -n -l -e arp
tcpdump: listening on nfe0, link-type EN10MB (Ethernet), capture size 96 
bytes
08:58:46.337968 00:1d:60:36:34:a6  ff:ff:ff:ff:ff:ff, ethertype ARP 
(0x0806), length 60: arp who-has 192.168.0.3 tell 192.168.0.12
08:58:46.337974 00:18:f3:29:d8:15  00:1d:60:36:34:a6, ethertype ARP 
(0x0806), length 42: arp reply 192.168.0.3 is-at 00:18:f3:29:d8:15
08:59:46.842884 00:1d:60:36:34:a6  ff:ff:ff:ff:ff:ff, ethertype ARP 
(0x0806), length 60: arp who-has 192.168.0.3 tell 192.168.0.12
08:59:46.842890 00:18:f3:29:d8:15  00:1d:60:36:34:a6, ethertype ARP 
(0x0806), length 42: arp reply 192.168.0.3 is-at 00:18:f3:29:d8:15
09:00:47.349826 00:1d:60:36:34:a6  ff:ff:ff:ff:ff:ff, ethertype ARP 
(0x0806), length 60: arp who-has 192.168.0.3 tell 192.168.0.12
09:00:47.349833 00:18:f3:29:d8:15  00:1d:60:36:34:a6, ethertype ARP 
(0x0806), length 42: arp reply 192.168.0.3 is-at 00:18:f3:29:d8:15
09:01:47.854742 00:1d:60:36:34:a6  ff:ff:ff:ff:ff:ff, ethertype ARP 
(0x0806), length 60: arp who-has 192.168.0.3 tell 192.168.0.12
09:01:47.854748 00:18:f3:29:d8:15  00:1d:60:36:34:a6, ethertype ARP 
(0x0806), length 42: arp reply 192.168.0.3 is-at 00:18:f3:29:d8:15
09:02:48.359670 00:1d:60:36:34:a6  ff:ff:ff:ff:ff:ff, ethertype ARP 
(0x0806), length 60: arp who-has 192.168.0.3 tell 192.168.0.12
09:02:48.359677 00:18:f3:29:d8:15  00:1d:60:36:34:a6, ethertype ARP 
(0x0806), length 42: arp reply 192.168.0.3 is-at 00:18:f3:29:d8:15
09:03:48.864618 00:1d:60:36:34:a6  ff:ff:ff:ff:ff:ff, ethertype ARP 
(0x0806), length 60: arp who-has 192.168.0.3 tell 192.168.0.12
09:03:48.864624 00:18:f3:29:d8:15  00:1d:60:36:34:a6, ethertype ARP 
(0x0806), length 42: arp reply 192.168.0.3 is-at 00:18:f3:29:d8:15
09:04:49.370546 00:1d:60:36:34:a6  ff:ff:ff:ff:ff:ff, ethertype ARP 
(0x0806), length 60: arp who-has 192.168.0.3 tell 192.168.0.12
09:04:49.370551 00:18:f3:29:d8:15  00:1d:60:36:34:a6, ethertype ARP 
(0x0806), length 42: arp reply 192.168.0.3 is-at 00:18:f3:29:d8:15



There is this line saying:
00:1d:60:36:34:a6  ff:ff:ff:ff:ff:ff
and nothing has ff:ff:ff:ff:ff:ff as a mac address :)


[EMAIL PROTECTED] ~]# tcpdump -vvv -n -l -e -s 128 arp or ip | grep 0.0.0.0
tcpdump: listening on nfe0, link-type EN10MB (Ethernet), capture size 
128 bytes
09:10:51.405030 00:18:f3:29:d8:15  00:01:c0:03:7c:09, ethertype IPv4 
(0x0800), length 66: (tos 0x10, ttl 64, id 58427, offset 0, flags [DF], 
proto TCP (6), length 52, bad cksum 0 (-6565)!) 192.168.0.3.22  
62.97.242.6.61121: ., cksum 0xf139 (incorrect (- 0x5ca1), 
13136:13136(0) ack 481 win 8320 nop,nop,timestamp 1359099282 347410448
09:11:42.703020 00:01:c0:03:7c:09  00:18:f3:29:d8:15, ethertype IPv4 
(0x0800), length 66: (tos 0x0, ttl 53, id 17642, offset 0, flags [DF], 
proto TCP (6), length 52) 82.137.33.24.35497  192.168.0.3.52332: ., 
cksum 0x7181 (correct), 938:938(0) ack 843885 win 65160 
nop,nop,timestamp 4052665 1969055395
09:11:51.809030 00:01:c0:03:7c:09  00:18:f3:29:d8:15, ethertype IPv4 
(0x0800), length 66: (tos 0x0, ttl 53, id 19037, offset 0, flags [DF], 
proto TCP (6), length 52) 82.137.33.24.35497  192.168.0.3.52332: ., 
cksum 0x2a5b (correct), 1135:1135(0) ack 982794 win 65160 
nop,nop,timestamp 4053576 1969064662


$ arp -a
hugs.carebears.lan (192.168.0.1) at 00:01:c0:03:7c:09 on nfe0 [ethernet]
shine (192.168.0.3) at 00:18:f3:29:d8:15 on nfe0 permanent [ethernet]
funshine.carebears.lan (192.168.0.12) at 00:1d:60:36:34:a6 on nfe0 
[ethernet]

? (192.168.0.255) at ff:ff:ff:ff:ff:ff on nfe0 permanent [ethernet]


I'll take you tip on shutting down one machine at a time to see which 
machine who do this. Somehow I suspect my Windows 2008 Server box :)


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


Re: arplookup 0.0.0.0 failed: host is not on local network

2008-05-15 Thread Christer Solskogen

Christian Walther wrote:


I don't want to point you into the wrong direction, but is it possible
that this arp entry is actually a sign of an ARP spoofing attempt?
http://en.wikipedia.org/wiki/ARP_spoofing



I suspect that, but I just want to know if might be something else.


Do you run a wireless network?


Yes I do. And that means that I will also try to be even more pedantic 
in the security on that box.


--
chs


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


Regarding client configs

2008-05-15 Thread Nas Abdulla

Hi,

I followed the guide at 
http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_mini-HOWTO.html 
to the T, except that I didnot slappasswd my rootpw or any other 
password. The output of the finger command is


[EMAIL PROTECTED] finger nabdulla
Login: nabdulla Name: TestUser
Directory: /home/test   Shell: /bin/csh
Never logged in.
No Mail.
No Plan.

[EMAIL PROTECTED] id nabdulla
uid=1000(nabdulla) gid=1000 groups=1000

the when I try to login

[EMAIL PROTECTED] ssh [EMAIL PROTECTED]
Password:
Password:
Password:
Permission denied (publickey,keyboard-interactive).

The following are the contents of nss_ldap.conf

host rule115.caia.swin.edu.au
uri ldap://rule115.caia.swin.edu.au
ldap_version 3
binddn cn=admin,dc=rule115,dc=caia,dc=swin,dc=edu,dc=au
bindpw secret
port 389
pam_password clear
nss_base_passwd 
ou=people,dc=rule115,dc=caia,dc=swin,dc=edu,dc=au?one

nss_base_group  ou=group,dc=rule115,dc=caia,dc=swin,dc=edu,dc=au?one



In the pam.d/sshd ,I have added the following lines

authsufficient  /usr/local/lib/pam_ldap.so no_warn 
try_first_pass
authrequiredpam_unix.so no_warn 
try_first_pass


passwordsufficient  /usr/local/lib/pam_ldap.so no_warn 
try_first_pass
passwordrequiredpam_unix.so no_warn 
try_first_pass



Why can't I login to the server if I can excecute id and finger with 
results?




FreeBSD rule40.caia.swin.edu.au 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri 
Nov  5 04:19:18 UTC 2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386


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


Re: FreeBSD 7.0 and Denyhosts 2.6_1?

2008-05-15 Thread Glenn Sieb

Nevermind :) I think I solved the issue.

Thanks anywho :)

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


raid6 on freebsd7 only showing 61GB instead of 4TB

2008-05-15 Thread Oliver Howe


I bought a new storage server and installed freebsd7 onto it. it came with two 
raid partitions, one of 32GB which i used for the o/s and one of 4.7TB which i 
am planning to use as a nfs partition. everything went fine during the install, 
fdisk said that there was 4.7TB on the second partition which i labelled 
/export. but when the machine booted up and i did df -h it said that that 
partition only has 61GB and not 4.7TB

$ uname -a
FreeBSD pmstorage3.uk1.bibliotech.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun 
Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  
i386
$

$ df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a496M128M328M28%/
devfs  1.0K1.0K  0B   100%/dev
/dev/da1s1d 61G4.0K 56G 0%/export
/dev/da0s1e496M 12K456M 0%/tmp
/dev/da0s1f 22G515M 20G 2%/usr
/dev/da0s1d4.1G1.3M3.8G 0%/var
$


server details are

CyberServe 38512  
3U  Chassis 16 x Hot Swap HDD, 5.25 Slim line CD, FDD Redundant 700 Watt PSU
X7 DBE Main Board
1 x 5420 2.5GHz Intel Xeon Low power Processor 2 x 6Mb  1333 FSB
16 GB DDR Memory ( Low Powered Ram)
3 Ware 16 Port Hardware RAID Controller, 0,1,0+1,5,50  6
16 x WD 500 Gb SATA HDDs Green Drives (Raid 6 System Drives Total Usable Volume 
size 4.79 TB )
2xGbE LAN ports, 



does anyone know why this is?


thanks,

oliver




-- 
Confidentiality Notice: This email is confidential and may also be privileged. 
If you are not the intended recipient, please notify the sender IMMEDIATELY; 
you should not copy the email or use it for any purpose or disclose its 
contents to any other person. General Statement: Any statements made, or 
intentions expressed in this communication, may not necessarily reflect the 
view of Spider Networks, that no content herein may be held binding upon Spider 
Networks or any associate or any associated company unless confirmed by the 
issuance of a formal contractual document or purchase order.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid6 on freebsd7 only showing 61GB instead of 4TB

2008-05-15 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Oliver Howe wrote:
 
 I bought a new storage server and installed freebsd7 onto it. it came
 with two raid partitions, one of 32GB which i used for the o/s and
 one of 4.7TB which i am planning to use as a nfs partition.
 everything went fine during the install, fdisk said that there was
 4.7TB on the second partition which i labelled /export. but when
 the machine booted up and i did df -h it said that that partition
 only has 61GB and not 4.7TB

fdisk partitioning only supports up to 2TB I believe.  For larger filesystems
you'll need to use gpt(8) instead -- this isn't possible to set up via 
sysinstall
and it is still very much a work in progress.  Your other alternatives are 
to divide your 4TB area into sub-2TB partitions, or to use zfs(1M).  There are
pros and cons to all of these solutions which have been discussed at length on
various @freebsd.org mailing lists.

Cheers

Matthew
 
- -- 
Dr Matthew J Seaman MA, D.Phil.   Flat 3
  7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW, UK
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREDAAYFAkgsIpkACgkQ3jDkPpsZ+Vb7KQCdGO8U+xcFsw8amiFkspPOUpCw
gfIAnidlR/NtdBbOreBVB7jgv+MHP6pm
=CPFB
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Does FBSD 7 support 802.11N cards? G suggestions?

2008-05-15 Thread Walter

(Sorry Roland; re-sending after I noticed my reply went directly
to you rather than the List.)

Roland Smith wrote:


On Wed, May 14, 2008 at 12:23:44PM -0500, Walter wrote:
 


I'm trying to get a Broadcom-based wireless-N card running
under FBSD 7. ...



 See Chapter 20 of the FreeBSD handbook, especially §20.2.

20 is The Vinum Volume Manager 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/vinum-vinum.html.
Did you mean 29 Advanced Networking 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/advanced-networking.html, 
and 29.3 Wireless Networking 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html?

Or http://www.freebsd.org/releases/7.0R/hardware.html#ETHERNET


If N isn't supported, is there any problem anyone knows about
with the LevelOne WNC0301 or with LinkSys WMP54G cards?
CircuitCity has the LevelOne for $25 and the WMP54G for $39.
Can someone advise me?
   



The problem is that a lot of wireless manufacturers have the habit of
changing wireless chipsets without changing model numbers. So a revision
X might work while revision Y won't.

Try and look at the card. Sometimes the chipset is visible and you can
look for it in the manual pages. But often it is enclosed in a metal cover.

In my experience, asking shop clerks which chipset a card uses only
produces puzzled looks.

Second best thing is to download the driver for the revision of the card
that you want to buy. Unpack the driver and read the .inf files. That
will probably yield the chipset type. If not, use strings(1) on the
drivers themselves.

Roland
 


It's a crap shoot?  Yikes.  I guess I'll just pick one and take
my chances, but - no fault to FBSD - it appears to be a sorry
state of affairs in the computer driver arena.  I can guess
the latest rev listed on the support web site is what I'll get
when I buy the box?? (Maybe not, as I got a rev A router
last December when the latest was rev B.)  Later I'll work
on getting the driver downloaded and unpacked on my
Windows machine (as my Mac won't process those .exe
files).

Did I read that there's a way to use Windows drivers in FBSD 7?
There are places I can download those for XP/Vista, so if I could
use those - even if they're not the optimal solution - it'll get me
going.

Thanks for your reply.

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


Re: raid6 on freebsd7 only showing 61GB instead of 4TB

2008-05-15 Thread Pieter de Goeje
On Thursday 15 May 2008, Oliver Howe wrote:
 I bought a new storage server and installed freebsd7 onto it. it came with
 two raid partitions, one of 32GB which i used for the o/s and one of 4.7TB
 which i am planning to use as a nfs partition. everything went fine during
 the install, fdisk said that there was 4.7TB on the second partition which
 i labelled /export. but when the machine booted up and i did df -h it
 said that that partition only has 61GB and not 4.7TB

 $ uname -a
 FreeBSD pmstorage3.uk1.bibliotech.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0:
 Sun Feb 24 19:59:52 UTC 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 $

 $ df -h
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/da0s1a496M128M328M28%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/da1s1d 61G4.0K 56G 0%/export
 /dev/da0s1e496M 12K456M 0%/tmp
 /dev/da0s1f 22G515M 20G 2%/usr
 /dev/da0s1d4.1G1.3M3.8G 0%/var
 $


 server details are

 CyberServe 38512
 3U  Chassis 16 x Hot Swap HDD, 5.25 Slim line CD, FDD Redundant 700 Watt
 PSU X7 DBE Main Board
 1 x 5420 2.5GHz Intel Xeon Low power Processor 2 x 6Mb  1333 FSB
 16 GB DDR Memory ( Low Powered Ram)
 3 Ware 16 Port Hardware RAID Controller, 0,1,0+1,5,50  6
 16 x WD 500 Gb SATA HDDs Green Drives (Raid 6 System Drives Total Usable
 Volume size 4.79 TB ) 2xGbE LAN ports,



 does anyone know why this is?


 thanks,

 oliver

You cannot use fdisk slices (partitions) with disks over 2TB. Use of GPT is 
recommended. See gpt(8) and:

http://www.freebsd.org/projects/bigdisk/index.html

Another way would be to simply newfs/mount /dev/ad1 instead (without 
partitioning).

-- 
Pieter de Goeje

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


hammer

2008-05-15 Thread Johan Hendriks
Will the hammer filesystem from DragonflyBSD  make it into FreeBSD?

 

It looks like a very useable filesystem.

 

Regards,

Johan Hendriks

 

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


Re: arplookup 0.0.0.0 failed: host is not on local network

2008-05-15 Thread Jon Radel

Christer Solskogen wrote:


[EMAIL PROTECTED] ~]# tcpdump -vvv -n -l -e arp
tcpdump: listening on nfe0, link-type EN10MB (Ethernet), capture size 96 
bytes
08:58:46.337968 00:1d:60:36:34:a6  ff:ff:ff:ff:ff:ff, ethertype ARP 
(0x0806), length 60: arp who-has 192.168.0.3 tell 192.168.0.12
08:58:46.337974 00:18:f3:29:d8:15  00:1d:60:36:34:a6, ethertype ARP 
(0x0806), length 42: arp reply 192.168.0.3 is-at 00:18:f3:29:d8:15

...snip...


There is this line saying:
00:1d:60:36:34:a6  ff:ff:ff:ff:ff:ff
and nothing has ff:ff:ff:ff:ff:ff as a mac address :)


ff:ff:ff:ff:ff:ff is the broadcast address.  That looks like a rather 
mundane arp request broadcast followed by a reply from the machine with 
the address in question.


The trick will be to see if you see anything with tcpdump at the time 
one of the syslog messages about 0.0.0.0 gets logged.


BTW, just for the record, personally I doubt this is anything serious to 
worry about, but as I have no real evidence for that feeling  You 
may, however, find http://en.wikipedia.org/wiki/0.0.0.0 at least mildly 
interesting.


--Jon Radel


smime.p7s
Description: S/MIME Cryptographic Signature


Re: hammer

2008-05-15 Thread Vince Hoffman
Johan Hendriks wrote:
 Will the hammer filesystem from DragonflyBSD  make it into FreeBSD?
 
  
 
 It looks like a very useable filesystem.
 

last I saw
http://leaf.dragonflybsd.org/mailarchive/kernel/2008-04/msg00133.html
it was still pre-alpha.
once it gets into a stable state I'm sure someone will have a look at
the possibility of porting it.


Vince
  
 
 Regards,
 
 Johan Hendriks
 
  
 
 ___
 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: hammer

2008-05-15 Thread Vince Hoffman
Vince Hoffman wrote:
 Johan Hendriks wrote:
 Will the hammer filesystem from DragonflyBSD  make it into FreeBSD?

  

 It looks like a very useable filesystem.

 
 last I saw
 http://leaf.dragonflybsd.org/mailarchive/kernel/2008-04/msg00133.html
 it was still pre-alpha.
 once it gets into a stable state I'm sure someone will have a look at
 the possibility of porting it.
 
 
 Vince

Oops seems I'm a little out of date
http://kerneltrap.org/DragonFlyBSD/HAMMER_Stabilizing

but I doubt its stablised that much in a month ;)


Vince


 Regards,

 Johan Hendriks

  

 ___
 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]

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


RE: Unable to talk to tap(4)

2008-05-15 Thread Bob McConnell
From: Wojciech Puchar

 The basic setup sequence is:

  ifconfig tap0 create
  ifconfig tap0 inet 10.3.4.254/24
  route -v add 10.3.4.0/24 10.3.4.254

 ifconfig tap0 up

 ?


'ifconfig' already showed the interface flag UP. Adding this command
to the sequence has no effect on it. I also tried 'ifconfig tap0
promisc'.

Is EFAULT really a memory access exception?


 At this point, I can ping that address and my application can open
 either /dev/net/tap0 or /dev/tap0. But when I try to read() from
those
 devices, I have problems.

 /dev/net/tap0 always returns with errno = 19 (ENODEV - Operation not
 supported?).

 /dev/tap0 returns errno = 14 (EFAULT - bad address). At this point,
 'ifconfig' shows that the inet address is no longer attached and
 'netstat -rn' shows the route I added above has been dropped.

 I have been searching for several days to find more information about
 this device, but have not found anything specific to FreeBSD. All of
the
 examples and instructions are for Linux or tun(4), both of which are
 significantly different devices.

 My code so far:

 - tear along dotted line -
  tapFD = open (/dev/tap0, O_RDWR);
  if (tapFD  0) {
fprintf (stderr, Failed to open /dev/tap0: %d.\n, tapFD);
exit (2);
  }

  fprintf (stderr, Successfully opened /dev/tap0.\n);

  unsigned char * buffer = (unsigned char*)malloc(1514);
  if (buffer = NULL) {
fprintf (stderr, No memory available.\n);
close (tapFD);
exit(3);
  }
  int lenth = 0;

 again:
  lenth = read(tapFD, buffer, 1514);
  if (lenth  0) {
int error = errno;
if (error == EINTR)
  goto again;
fprintf (stderr, tap read error: %d\n, error);
  }
  else {
int index;

fprintf (stdout, %d bytes received.\n, lenth);
for (index = 0; index  lenth; ++index) {
  fprintf (stdout,  %02x, buffer[index]);
  if (index % 16 == 15)
fprintf (stdout, \n);
}
fprintf (stdout, \n);
  }

  close (tapFD);
 - tear along dotted line -

 Just in the interest of full disclosure, I am running a stock
 installation of FreeBSD 7.0 in a VMWare 5.5.4 session on WinXP. There
 are also two virtual Ethernet cards, one connected to a host only
 subnet, the other bridged onto a real Ethernet segment. I am using
IPFW
 with DummyNet to inject some measure of reality into this system.

 This is the beginnings of a test bench for several commercial
 applications. My goal, once I get this device working, is to write an
 application for tap(4) that will emulate a few hundred embedded
devices,
 each opening a socket directly to a server, which currently resides
in
 another VM session on the host only network. This setup, coupled with
 real devices on the external network should give us a much more
 realistic environment for stress testing our systems.

 Thank you,

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


Re: Does FBSD 7 support 802.11N cards? G suggestions?

2008-05-15 Thread Gerard
On Thu, 15 May 2008 06:54:53 -0500
Walter [EMAIL PROTECTED] wrote:

 (Sorry Roland; re-sending after I noticed my reply went directly
 to you rather than the List.)
 
 Roland Smith wrote:
 
 On Wed, May 14, 2008 at 12:23:44PM -0500, Walter wrote:
   
 
  I'm trying to get a Broadcom-based wireless-N card running
  under FBSD 7. ...
 
   See Chapter 20 of the FreeBSD handbook, especially §20.2.
 
 20 is The Vinum Volume Manager 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/vinum-vinum.html.
 Did you mean 29 Advanced Networking 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/advanced-networking.html,
  
 and 29.3 Wireless Networking 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html?
 Or http://www.freebsd.org/releases/7.0R/hardware.html#ETHERNET
 
 If N isn't supported, is there any problem anyone knows about
 with the LevelOne WNC0301 or with LinkSys WMP54G cards?
 CircuitCity has the LevelOne for $25 and the WMP54G for $39.
 Can someone advise me?
 
 
 
 The problem is that a lot of wireless manufacturers have the habit of
 changing wireless chipsets without changing model numbers. So a
 revision X might work while revision Y won't.
 
 Try and look at the card. Sometimes the chipset is visible and you
 can look for it in the manual pages. But often it is enclosed in a
 metal cover.
 
 In my experience, asking shop clerks which chipset a card uses only
 produces puzzled looks.
 
 Second best thing is to download the driver for the revision of the
 card that you want to buy. Unpack the driver and read the .inf
 files. That will probably yield the chipset type. If not, use
 strings(1) on the drivers themselves.
 
 Roland
   
 
 It's a crap shoot?  Yikes.  I guess I'll just pick one and take
 my chances, but - no fault to FBSD - it appears to be a sorry
 state of affairs in the computer driver arena.  I can guess
 the latest rev listed on the support web site is what I'll get
 when I buy the box?? (Maybe not, as I got a rev A router
 last December when the latest was rev B.)  Later I'll work
 on getting the driver downloaded and unpacked on my
 Windows machine (as my Mac won't process those .exe
 files).
 
 Did I read that there's a way to use Windows drivers in FBSD 7?
 There are places I can download those for XP/Vista, so if I could
 use those - even if they're not the optimal solution - it'll get me
 going.

I have done something similar to that myself. Go to the linksys site
and download the latest available driver for your card. Then visit:

http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html

and follow the directions there.


-- 
“Gerard”
[EMAIL PROTECTED]

   THE DAILY PLANET

SUPERMAN SAVES DESSERT!
Plans to Eat it later


signature.asc
Description: PGP signature


FreeBSD, Xorg, Geode LX 500Mhz

2008-05-15 Thread Fred Schnittke
Hi:

I'm using FreeBSD 7.0 Release and I'm trying to get X to run on a Geode
LX 500Mhz embedded board.

When I startx, I get the following in the log file:

   c000:0282: A2 ILLEGAL EXTENDED X86 OPCODE!
   (EE) VESA(0): Set VBE Mode failed!
   Fatal server error:
   AddScreen/ScreenInit failed for driver 0


I've tried some drivers:

   xserver-xorg-video-geode_2.9.0.orig.tar.gz
   xserver-xorg-video-amd_2.7.6.5+git20070208.orig.tar.gz

They ./configure fine, but I get all kinds of errors when I Make them.

Any help would be appreciated




Regards,


Fred Schnittke
Network Administrator
--
There are 10 types of people in the world:
Those who understand binary and those who don't...



Powered by Execulink Webmail
http://www.execulink.com/

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


Re: Configuring Bash

2008-05-15 Thread Reid Linnemann
Written by Montag on 05/14/08 19:20
 This should be a fairly simple process, I don't really know what I am
 missing.
 
 I've got the following in the .bash_profile of a basic user account:
 
 # set prompt [EMAIL PROTECTED]/dir] $ (# for root)
 PS1 = ' [EMAIL PROTECTED] ' 
 case `id -u` in
   0) PS1='${PS1} # ';; # root
   *) PS1='${PS1} $ ';; # everyone else
 
 When I log in, I am greeted with:
 ${PS1} $ $
 
 However, if I su to root, I get:
 [EMAIL PROTECTED] /home/user]# 
 
 That is what I wanted, but for some reason it is not working for a
 normal user.  I thought perhaps the problem could be that .bash_profile
 is only loaded when a non-login shell is spawned, but a quick
 consultation of man bash revealed that bash reads ~/.bash_profile when
 it is invoked as a login shell.  
 
 My next thought was that it was a permissions issue, but:
 su
 chmod 777 .bash_profile
 exit
 logout
 login
 
 That did not change the results, the output was still the same as above.
  This is all being done at the console, by the way.
 
 Appreciate any advice,
 
 montag
 --
 Give the people contests they win by remembering the words to more popular 
 songs or the names of state capitals or how much corn Iowa grew last year. 
 Cram them full of non-combustible data, chock them so damned full of 'facts' 
 they feel stuffed, but absolutely 'brilliant' with information. Then they'll 
 feel they're thinking, they'll get a sense of motion without moving.

There are a few problems with what you are attempting here.

Your ~/.bash_profile is executed once, only when you log in. When you su
to root, a shell is started for root (according to root's shell set in
/etc/passwd) and that shell will do whatever it wants to do as far as
dotfile processing is concerned. Your ordinary user's .bash_profile is
ignored.

Since the ordinary user's .bash_profile is only executed once, when the
user's shell starts, the *) condition is always met in the case
statement, so that expression is executed:

PS1='${PS1} $ ';;

This will always result in PS1 being the literal '${PS1} $ ' for that
user. Why? Because if you read your bash manual you'll see that variable
expansion does not happen in single quoted strings.

PS1=${PS1} \$ ;;

The above string will do what you intend, it will set PS1 to whatever
${PS1} is expanded to, plus the extra ' $ ' (you have to escape a
literal $ in a double quoted string).

As has been mentioned before, what you really want is to use the '\$'
literal to clue in the sh/bash to use a # for root and $ for all other
users.

PS1=${PS1} \\$ ;;

That is the PS1 that will do it.

But again, because su invokes a new shell, if root's shell is not a sh
variant that uses $PS1, like the default csh, your prompt will not carry
over. csh will uses its own internal prompt variable and ignore sh's PS1
environment variable.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring Bash

2008-05-15 Thread Gerard
On Thu, 15 May 2008 09:46:27 -0500
Reid Linnemann [EMAIL PROTECTED] wrote:

 Written by Montag on 05/14/08 19:20
  This should be a fairly simple process, I don't really know what I
  am missing.
  
  I've got the following in the .bash_profile of a basic user account:
  
  # set prompt [EMAIL PROTECTED]/dir] $ (# for root)
  PS1 = ' [EMAIL PROTECTED] ' 
  case `id -u` in
0) PS1='${PS1} # ';; # root
*) PS1='${PS1} $ ';; # everyone else
  
  When I log in, I am greeted with:
  ${PS1} $ $
  
  However, if I su to root, I get:
  [EMAIL PROTECTED] /home/user]# 
  
  That is what I wanted, but for some reason it is not working for a
  normal user.  I thought perhaps the problem could be
  that .bash_profile is only loaded when a non-login shell is
  spawned, but a quick consultation of man bash revealed that bash
  reads ~/.bash_profile when it is invoked as a login shell.  
  
  My next thought was that it was a permissions issue, but:
  su
  chmod 777 .bash_profile
  exit
  logout
  login
  
  That did not change the results, the output was still the same as
  above. This is all being done at the console, by the way.
  
  Appreciate any advice,
  
  montag
  --
  Give the people contests they win by remembering the words to more
  popular songs or the names of state capitals or how much corn Iowa
  grew last year. Cram them full of non-combustible data, chock them
  so damned full of 'facts' they feel stuffed, but absolutely
  'brilliant' with information. Then they'll feel they're thinking,
  they'll get a sense of motion without moving.
 
 There are a few problems with what you are attempting here.
 
 Your ~/.bash_profile is executed once, only when you log in. When you
 su to root, a shell is started for root (according to root's shell
 set in /etc/passwd) and that shell will do whatever it wants to do as
 far as dotfile processing is concerned. Your ordinary
 user's .bash_profile is ignored.
 
 Since the ordinary user's .bash_profile is only executed once, when
 the user's shell starts, the *) condition is always met in the case
 statement, so that expression is executed:
 
 PS1='${PS1} $ ';;
 
 This will always result in PS1 being the literal '${PS1} $ ' for that
 user. Why? Because if you read your bash manual you'll see that
 variable expansion does not happen in single quoted strings.
 
 PS1=${PS1} \$ ;;
 
 The above string will do what you intend, it will set PS1 to whatever
 ${PS1} is expanded to, plus the extra ' $ ' (you have to escape a
 literal $ in a double quoted string).
 
 As has been mentioned before, what you really want is to use the '\$'
 literal to clue in the sh/bash to use a # for root and $ for all other
 users.
 
 PS1=${PS1} \\$ ;;
 
 That is the PS1 that will do it.
 
 But again, because su invokes a new shell, if root's shell is not a sh
 variant that uses $PS1, like the default csh, your prompt will not
 carry over. csh will uses its own internal prompt variable and ignore
 sh's PS1 environment variable.

I placed the following in my ~/.bash_profile file.

# This is the .bash_profile file
# Read on bash login and similar to .profile
# This file passes control to the '.bashrc' file if it is present

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

Then in my ~/.bashrc file, I created an alias:

alias su='su -m'

Now, whenever I go to root, the environment is not modified and I still
have bash as my shell. I don't know if this will work for you or not.
It should not hurt to try it.



-- 
“Gerard”
[EMAIL PROTECTED]

Love is in the offing.  Be affectionate to one who adores you.


signature.asc
Description: PGP signature


Perl not creating symlink when installed from package

2008-05-15 Thread FreeBSD

Hi everyone,

I have a problem with perl-5.8.8_1. When I install it from the ports 
(via make install clean or make package-recursive clean), it creates 
symlinks from /usr/local/bin/perl to /usr/bin/perl:


[...]
Removing stale symlinks from /usr/bin...
Skipping /usr/bin/perl
Skipping /usr/bin/perl5
Done.
Creating various symlinks in /usr/bin...
Symlinking /usr/local/bin/perl5.8.8 to /usr/bin/perl
Symlinking /usr/local/bin/perl5.8.8 to /usr/bin/perl5
Done.
[...]

But, when I install the package created with 'make package-recursive 
clean', it didn't create those symlinks. So, the dependencies that rely 
on perl and expect to find it in /usr/bin/perl can't find it and the 
installation fails.


Did someone have any information on this issue?

Thanks for the support,

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


Autoloader Compatability

2008-05-15 Thread Jay Hall

Ladies and Gentlemen,

I am getting ready to start my journey into the world of tape 
autoloaders.  At this point in time, I have an HP ML350-G5, and I am 
looking at an HP 1/8 G2 Tape Autoloader Ultrium 920.


I did not find this device specifically listed on the compatability 
list.  Where can I look to find out if this device will work with FBSD 
7.0?


Thanks,



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


Storage projects

2008-05-15 Thread Onkar
Can anyone please suggest me a good storage(File system ,SCSI/iSCSI  stack,
TCP/IP ) project . I have 2 AMD 64 PCs each with 1 GB RAM and 350 GB SATA
HDD,

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


Re: FreeBSD 7.0 and Denyhosts 2.6_1?

2008-05-15 Thread FreeBSD

Glenn Sieb a écrit :

Nevermind :) I think I solved the issue.

Thanks anywho :)

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


Hi,

May I ask you what you did to solve your problem? I had a similar 
problem but didn't solve it.


Thank you,

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


number of partitions

2008-05-15 Thread Carlo . Capponi


hello,
I would like to create a large number of partitions.
how to do it ?
I need to create something like 16 partitions on a disk.
I tryed and after the 7th partition the dev is assigned to
/dev/X

looks like I cannot create more than 8 partitions at boot time on a single 
disk.

how to overcome this problem ?
thanks

Rick


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


Xorg with multiple cards

2008-05-15 Thread Mike Ginsburg

A question to all of your xorg experts.

I'm running FreeBSD 6.2-RELEASE-p8 with xorg-7.3.1.  Up until today I 
was running on an PCIe RV280 (9200 Pro) with a dvi splitter to give me 2 
monitors.


Today I added a 2nd PCI card (Radeon 9260) over VGA.  For the life of me 
I can't seem to configure my xorg.conf to work with the 2nd card and 3rd 
monitor.  I have attached a tarball with my working xorg.conf, and my 
attempts at configuring the 2nd card (xorg.conf.broken).


Any and all help is appreciated.  If you need more information, please 
feel free to ask and I'll provide it.  Thank you.


Mike Ginsburg
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x4015



mikeg_xorg.conf.tar
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Does FBSD 7 support 802.11N cards? G suggestions?

2008-05-15 Thread Walter

Gerard wrote:


I have done something similar to that myself. Go to the linksys site
and download the latest available driver for your card. Then visit:

http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html

and follow the directions there.
 



I found the direction at 11.8.1 helpful, and was able to use /ndisgen/
and /kldload/ to bring up the card. (Yea!)

Now I need to configure it - I'm printing out 29.3 now.  But I can't
get the interface to be brought up at boot, a la:



You can configure the system to load the NDIS modules at boot time in 
the same way as with any other module. First, copy the generated module, 
W32DRIVER.ko, to the /boot/modules directory. Then, add the following 
line to /boot/loader.conf:


W32DRIVER_load=YES


   

but I can bring it up manually from the modules directory.

Can anyone tell me what's wrong?

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


Re: Configuring Bash

2008-05-15 Thread Reid Linnemann
Written by Gerard on 05/15/08 10:03
 On Thu, 15 May 2008 09:46:27 -0500
 Reid Linnemann [EMAIL PROTECTED] wrote:
 
 Written by Montag on 05/14/08 19:20
 This should be a fairly simple process, I don't really know what I
 am missing.

 I've got the following in the .bash_profile of a basic user account:

 # set prompt [EMAIL PROTECTED]/dir] $ (# for root)
 PS1 = ' [EMAIL PROTECTED] ' 
 case `id -u` in
   0) PS1='${PS1} # ';; # root
   *) PS1='${PS1} $ ';; # everyone else

 When I log in, I am greeted with:
 ${PS1} $ $

 However, if I su to root, I get:
 [EMAIL PROTECTED] /home/user]# 

 That is what I wanted, but for some reason it is not working for a
 normal user.  I thought perhaps the problem could be
 that .bash_profile is only loaded when a non-login shell is
 spawned, but a quick consultation of man bash revealed that bash
 reads ~/.bash_profile when it is invoked as a login shell.  

 My next thought was that it was a permissions issue, but:
 su
 chmod 777 .bash_profile
 exit
 logout
 login

 That did not change the results, the output was still the same as
 above. This is all being done at the console, by the way.

 Appreciate any advice,

 montag
 --
 Give the people contests they win by remembering the words to more
 popular songs or the names of state capitals or how much corn Iowa
 grew last year. Cram them full of non-combustible data, chock them
 so damned full of 'facts' they feel stuffed, but absolutely
 'brilliant' with information. Then they'll feel they're thinking,
 they'll get a sense of motion without moving.
 There are a few problems with what you are attempting here.

 Your ~/.bash_profile is executed once, only when you log in. When you
 su to root, a shell is started for root (according to root's shell
 set in /etc/passwd) and that shell will do whatever it wants to do as
 far as dotfile processing is concerned. Your ordinary
 user's .bash_profile is ignored.

 Since the ordinary user's .bash_profile is only executed once, when
 the user's shell starts, the *) condition is always met in the case
 statement, so that expression is executed:

 PS1='${PS1} $ ';;

 This will always result in PS1 being the literal '${PS1} $ ' for that
 user. Why? Because if you read your bash manual you'll see that
 variable expansion does not happen in single quoted strings.

 PS1=${PS1} \$ ;;

 The above string will do what you intend, it will set PS1 to whatever
 ${PS1} is expanded to, plus the extra ' $ ' (you have to escape a
 literal $ in a double quoted string).

 As has been mentioned before, what you really want is to use the '\$'
 literal to clue in the sh/bash to use a # for root and $ for all other
 users.

 PS1=${PS1} \\$ ;;

 That is the PS1 that will do it.

 But again, because su invokes a new shell, if root's shell is not a sh
 variant that uses $PS1, like the default csh, your prompt will not
 carry over. csh will uses its own internal prompt variable and ignore
 sh's PS1 environment variable.
 
 I placed the following in my ~/.bash_profile file.
 
 # This is the .bash_profile file
 # Read on bash login and similar to .profile
 # This file passes control to the '.bashrc' file if it is present
 
 if [ -f ~/.bashrc ]; then
 . ~/.bashrc
 fi
 
 Then in my ~/.bashrc file, I created an alias:
 
 alias su='su -m'
 
 Now, whenever I go to root, the environment is not modified and I still
 have bash as my shell. I don't know if this will work for you or not.
 It should not hurt to try it.
 
 
 

Nice, I missed that flag for su. I'll take advantage of that for certain.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Does FBSD 7 support 802.11N cards? G suggestions?

2008-05-15 Thread Roland Smith
On Thu, May 15, 2008 at 06:54:53AM -0500, Walter wrote:
 (Sorry Roland; re-sending after I noticed my reply went directly
 to you rather than the List.)
 
 Roland Smith wrote:
 
 On Wed, May 14, 2008 at 12:23:44PM -0500, Walter wrote:
  
 I'm trying to get a Broadcom-based wireless-N card running
 under FBSD 7. ...
 
  See Chapter 20 of the FreeBSD handbook, especially §20.2.
 
 20 is The Vinum Volume Manager 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/vinum-vinum.html.

I'm talking about The Cutting Edge 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html

 The problem is that a lot of wireless manufacturers have the habit of
 changing wireless chipsets without changing model numbers. So a revision
 X might work while revision Y won't.
 
 Try and look at the card. Sometimes the chipset is visible and you can
 look for it in the manual pages. But often it is enclosed in a metal cover.
 
 In my experience, asking shop clerks which chipset a card uses only
 produces puzzled looks.
 
 Second best thing is to download the driver for the revision of the card
 that you want to buy. Unpack the driver and read the .inf files. That
 will probably yield the chipset type. If not, use strings(1) on the
 drivers themselves.

 It's a crap shoot?  

That's about the size of it.

 Yikes. 

Indeed.

 I guess I'll just pick one and take
 my chances, but - no fault to FBSD - it appears to be a sorry
 state of affairs in the computer driver arena. 

More and more chipsets are being supported on BSD, with OpenBSD leading
the way. But it remains difficult to see which chipset is used in a
card. Manufacturers hardly ever list it in their docs.

 I can guess
 the latest rev listed on the support web site is what I'll get
 when I buy the box?? (Maybe not, as I got a rev A router
 last December when the latest was rev B.) 

Usually there is a sticker on the packaging that says model FOO
rev. X. or something like that.

 Later I'll work
 on getting the driver downloaded and unpacked on my
 Windows machine (as my Mac won't process those .exe
 files).

You could try unzip. Some of those exe files are self-extracting ZIP ziles.

 Did I read that there's a way to use Windows drivers in FBSD 7?

Yes. It's called ndis(4). Only works on i386 architecture though, not amd64.

Do realize that you're sticking a piece of windows software of unknown
quality in your _kernel_.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpZ34llOP3m7.pgp
Description: PGP signature


DHCP server with no persistent storage

2008-05-15 Thread Luke Dean


I'm running FreeBSD on a Soekris net4801.  It boots from a read-only flash 
card, and has no permanent writable storage media - only memory disks.  It 
runs several critical network services for me like DNS, and a firewall.


One important service that it does not currently run is a DHCP server.  My 
network has always been made up of a small number of machines with fixed 
IP addresses, but it's growing, and I'm feeling the need for DHCP.  The 
handbook recommends the net/isc-dhcp3-server port, so that's what I'm 
looking at installing.


I'm wondering what the implications of not having permanent writable 
storage will be for the DHCP service.  Right now, without DHCP, if I pull 
the plug out of the wall then restart the box, the network comes right 
back up with no problems whatsoever.  All I lost was some state tables and 
the DNS cache, which will be rebuilt automatically as needed.  Will 
the DHCP server be this trouble-free if I switch my whole network to 
dynamic IPs?


When the DHCP server goes offline, then comes back online, what happens?

I'm hoping that the DHCP clients will renew their old leases based on the 
contents of their /var/db/dhclient.leases files, and that the server will 
comply with their wishes and repopulate DNS with their names when that 
happens.
However I've read that the server keeps its own dhcpd.leases file. This 
file will disappear when I restart the server, because it will only exist 
on a memory disk.  What will happen when a client says you gave me 
192.168.1.5 but the server has no record of this in its dhcpd.leases 
file?


I suppose a worse scenario would be if the DHCP clients did nothing until 
their leases expired.  They'd be missing from the DNS table for awhile if 
that happened.  Running around and rebooting every machine on the network 
just because the DHCP server went down for a minute is not something I 
want to have to do.

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


Re: number of partitions

2008-05-15 Thread Roland Smith
On Thu, May 15, 2008 at 09:36:06AM -0600, [EMAIL PROTECTED] wrote:
 
 looks like I cannot create more than 8 partitions at boot time on a single 
 disk.
 how to overcome this problem ?
 thanks

Use fdisk to make up to 4 slices on the disk; e.g. ad0 gets ad0s1 to ad0s4.
you can then create up to 6 usable partitions on each slice.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpwt9JvmkKXG.pgp
Description: PGP signature


Re: DHCP server with no persistent storage

2008-05-15 Thread Peter Boosten

Quoting Luke Dean [EMAIL PROTECTED]:


Will the DHCP server be this trouble-free if I switch my whole
network to dynamic IPs?

When the DHCP server goes offline, then comes back online, what happens?



M0n0wall does it (http://m0n0.ch).  I run M0n0 on my 4801 (I'm not  
using any DHCP on it however), but it seems to work.


Maybe you'll find your answers at their site?

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


Newbie make release question - Rolling a customized release

2008-05-15 Thread Michael Graziano
Hey all, I'm trying to eliminate a headache and I'm hoping you guys  
can aim me in the right direction -


I'm trying to roll a custom FreeBSD release - nothing fancy, just a  
stock 7-STABLE plus a few ports  some stuff under /usr/local - and  
I'm a bit confused as to the best way to go about building the release  
distributions/CDs with my custom changes.



I *think* what I would like to do is customize the universe that gets  
built under the chroot directory and roll a release from that, but I'm  
not sure how I go about getting make release (or the mk script?) to  
pick up my changes when it re-rolls the base tarball.


I thought this would be as simple as making my changes inside the  
chroot, deleting {chroot}/usr/obj/usr/src/release/release.[2-8] and  
running the mk script from inside the chroot, but my results were less  
than spectacular (the mk script blew up :)



Any pointers would be much appreciated - I'd love to get away from my  
12-year-old collection of builder shell scripts and not have to baby- 
sit complies/package installations anymore.  Collected pointers and  
(hopefully) successful results to be turned into a howto for future  
clueless dingbats like myself if such a thing doesn't already exist :)


Thanks,


-MG

(PS - I know I can do what I want by rolling a local package with my  
changes, but I was hoping for a trained-monkey fire and forget kind of  
installation :)

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


FreeBSD and multi-port serial cards

2008-05-15 Thread Andy Miller
I have a multi-port serial card that uses the puc driver. It doesn't work
out of the box, but I found a patch on the hackers list that claims to
fix the problem. My problem now is that it seems that the code for this
driver has been completely redone in FreeBSD 7.0. Can someone help me
translate the patch below to work on a 7.0 system?

--- pucdata.c.org   Sat Dec 16 00:31:37 2006
+++ pucdata.c   Thu Mar 22 13:03:32 2007
@@ -865,6 +865,17 @@
},
},
 
+   {   Oxford Semiconductor Ltd OX16PCI954 Quad UART,
+   {   0x1415, 0x9501, 0x131f, 0x2050 },
+   {   0x, 0x, 0x, 0x },
+{
+   { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 10 },
+   { PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ * 10 },
+   { PUC_PORT_TYPE_COM, 0x10, 0x10, COM_FREQ * 10 },
+   { PUC_PORT_TYPE_COM, 0x10, 0x18, COM_FREQ * 10 },
+   },
+   },
+
{   SIIG Cyber 4S PCI 16C650 (20x family),
{   0x1415, 0x9501, 0x131f, 0x2051 },
{   0x, 0x, 0x, 0x },

Thanks.

--
Andy Miller


pgpUUTyUTEXeH.pgp
Description: PGP signature


Re: Does FBSD 7 support 802.11N cards? G suggestions?

2008-05-15 Thread Gerard
On Thu, 15 May 2008 11:39:08 -0500
Walter [EMAIL PROTECTED] wrote:

 Gerard wrote:
 
 I have done something similar to that myself. Go to the linksys site
 and download the latest available driver for your card. Then visit:
 
 http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html
 
 and follow the directions there.
   
 
 
 I found the direction at 11.8.1 helpful, and was able to use /ndisgen/
 and /kldload/ to bring up the card. (Yea!)
 
 Now I need to configure it - I'm printing out 29.3 now.  But I can't
 get the interface to be brought up at boot, a la:
 
 
 
 You can configure the system to load the NDIS modules at boot time in 
 the same way as with any other module. First, copy the generated
 module, W32DRIVER.ko, to the /boot/modules directory. Then, add the
 following line to /boot/loader.conf:
 
 W32DRIVER_load=YES
 
 
 
 
 but I can bring it up manually from the modules directory.
 
 Can anyone tell me what's wrong?

Have you checked user/group ownership? I think it has to be root/wheel.
It should also be executable, 0755 if I remember correctly.

Are there any warning or error messages displayed at boot-up that might
indicate what is happening?


-- 
“Gerard”
[EMAIL PROTECTED]

Your son still sliding down the banisters?
We wound barbed wire around them.
That stop him?
No, but it sure slowed him up.


signature.asc
Description: PGP signature


RE: Unable to talk to tap(4)

2008-05-15 Thread Bob McConnell
From: Bob McConnell 
From: Wojciech Puchar

 The basic setup sequence is:

  ifconfig tap0 create
  ifconfig tap0 inet 10.3.4.254/24
  route -v add 10.3.4.0/24 10.3.4.254

 ifconfig tap0 up

 ?


 'ifconfig' already showed the interface flag UP. Adding this command
 to the sequence has no effect on it. I also tried 'ifconfig tap0
promisc'.

 Is EFAULT really a memory access exception?


 At this point, I can ping that address and my application can open
 either /dev/net/tap0 or /dev/tap0. But when I try to read() from
those
 devices, I have problems.

 /dev/net/tap0 always returns with errno = 19 (ENODEV - Operation not
 supported?).

 /dev/tap0 returns errno = 14 (EFAULT - bad address). At this point,
 'ifconfig' shows that the inet address is no longer attached and
 'netstat -rn' shows the route I added above has been dropped.

 I have been searching for several days to find more information
about
 this device, but have not found anything specific to FreeBSD. All of
the
 examples and instructions are for Linux or tun(4), both of which are
 significantly different devices.

 My code so far:

 - tear along dotted line -
  tapFD = open (/dev/tap0, O_RDWR);
  if (tapFD  0) {
fprintf (stderr, Failed to open /dev/tap0: %d.\n, tapFD);
exit (2);
  }

  fprintf (stderr, Successfully opened /dev/tap0.\n);

  unsigned char * buffer = (unsigned char*)malloc(1514);
  if (buffer = NULL) {
fprintf (stderr, No memory available.\n);
close (tapFD);
exit(3);
  }

When I replace the malloc with an automatic array, the
error goes away and I get the data I am looking for. i.e.:

   unsigned char buffer[1514];

So why can't I use malloc to create that buffer?

  int lenth = 0;

 again:
  lenth = read(tapFD, buffer, 1514);
  if (lenth  0) {
int error = errno;
if (error == EINTR)
  goto again;
fprintf (stderr, tap read error: %d\n, error);
  }
  else {
int index;

fprintf (stdout, %d bytes received.\n, lenth);
for (index = 0; index  lenth; ++index) {
  fprintf (stdout,  %02x, buffer[index]);
  if (index % 16 == 15)
fprintf (stdout, \n);
}
fprintf (stdout, \n);
  }

  close (tapFD);
 - tear along dotted line -

 Just in the interest of full disclosure, I am running a stock
 installation of FreeBSD 7.0 in a VMWare 5.5.4 session on WinXP.
There
 are also two virtual Ethernet cards, one connected to a host only
 subnet, the other bridged onto a real Ethernet segment. I am using
IPFW
 with DummyNet to inject some measure of reality into this system.

 This is the beginnings of a test bench for several commercial
 applications. My goal, once I get this device working, is to write
an
 application for tap(4) that will emulate a few hundred embedded
devices,
 each opening a socket directly to a server, which currently resides
in
 another VM session on the host only network. This setup, coupled
with
 real devices on the external network should give us a much more
 realistic environment for stress testing our systems.

 Thank you,

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


time drift

2008-05-15 Thread Volker Jahns
FreeBSD 6.2 running on X86 hardware (FSC) shows a remarkable time drift

running ntpdate every half hour shows that the system looses about 10-14 sec 
each time.
15 May 10:06:48 ntpdate[7200]: step time server 192.53.103.108 offset 
-13.799602 sec
15 May 10:36:48 ntpdate[7515]: step time server 192.53.103.108 offset 
-12.813941 sec
15 May 11:06:48 ntpdate[7879]: step time server 192.53.103.108 offset 
-13.651921 sec
15 May 11:36:50 ntpdate[8079]: step time server 192.53.103.108 offset 
-11.109298 sec
15 May 12:06:50 ntpdate[8289]: step time server 192.53.103.108 offset 
-11.836499 sec


FreeBSD 7.0 on an otherwise almost identical system has a time drift of a few 
millisecs
every half hour.
15 May 10:35:00 ntpdate[7999]: adjust time server 192.53.103.108 offset 
0.009963 sec
15 May 10:35:51 ntpdate[8007]: adjust time server 192.53.103.108 offset 
-0.004890 sec
15 May 10:50:00 ntpdate[8042]: adjust time server 192.53.103.108 offset 
0.010734 sec
15 May 11:05:00 ntpdate[8088]: adjust time server 192.53.103.108 offset 
0.004523 sec
15 May 11:20:01 ntpdate[8114]: adjust time server 192.53.103.108 offset 
0.005800 sec

The 6.2 system is a production system, has a uptime of almost 300 days and I 
don't want 
to experiment a lot with acpi, battery or so. 

What would be your suspicion on the large time drift of the FreeBSD 6.2 system?

-- 
Volker Jahns, [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: Does FBSD 7 support 802.11N cards? G suggestions?

2008-05-15 Thread Walter

Gerard wrote:


On Thu, 15 May 2008 11:39:08 -0500
Walter [EMAIL PROTECTED] wrote:I found the direction at 11.8.1 
helpful, and was able to use /ndisgen/



and /kldload/ to bring up the card. (Yea!)

Now I need to configure it - I'm printing out 29.3 now. But I can't
get the interface to be brought up at boot, a la:



You can configure the system to load the NDIS modules at boot time in
the same way as with any other module. First, copy the generated
module, W32DRIVER.ko, to the /boot/modules directory. Then, add the
following line to /boot/loader.conf:

W32DRIVER_load=YES




but I can bring it up manually from the modules directory.

Can anyone tell me what's wrong?


Have you checked user/group ownership? I think it has to be root/wheel.
It should also be executable, 0755 if I remember correctly.

Are there any warning or error messages displayed at boot-up that might
indicate what is happening?

 



Sorry for not checking that this made it to the List.
I had replied to myself and the reply didn't go to Question...

I had a typo...

And, actually, it seems to work now.   
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: time drift

2008-05-15 Thread Chuck Swiger

On May 15, 2008, at 11:57 AM, Volker Jahns wrote:
FreeBSD 6.2 running on X86 hardware (FSC) shows a remarkable time  
drift


running ntpdate every half hour shows that the system looses about  
10-14 sec each time.
15 May 10:06:48 ntpdate[7200]: step time server 192.53.103.108  
offset -13.799602 sec
15 May 10:36:48 ntpdate[7515]: step time server 192.53.103.108  
offset -12.813941 sec
15 May 11:06:48 ntpdate[7879]: step time server 192.53.103.108  
offset -13.651921 sec
15 May 11:36:50 ntpdate[8079]: step time server 192.53.103.108  
offset -11.109298 sec
15 May 12:06:50 ntpdate[8289]: step time server 192.53.103.108  
offset -11.836499 sec


While you should run ntpdate -b at system boot, running ntpdate  
periodically via cron is not the right thing to do-- you should run  
ntpd instead, and that will figure out the intrinsic correction your  
chosen system clock needs to keep better time via the ntp.drift file.


You should also take a look at the output of sysctl  
kern.timecounter, and possibly switch to a different mechanism, if  
the existing choice doesn't work out well for your machine...


Regards,
--
-Chuck

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


Re: Does FBSD 7 support 802.11N cards? G suggestions?

2008-05-15 Thread Walter

Doh!!  Did it again.  Sorry about that Roland.

Roland Smith wrote:


On Thu, May 15, 2008 at 06:54:53AM -0500, Walter wrote:
 

I'm talking about The Cutting Edge 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html


 

It's a crap shoot?  
   



That's about the size of it.

 

Yikes. 
   



Indeed.

 


I guess I'll just pick one and take
my chances, but - no fault to FBSD - it appears to be a sorry
state of affairs in the computer driver arena. 
   



More and more chipsets are being supported on BSD, with OpenBSD leading
the way. But it remains difficult to see which chipset is used in a
card. Manufacturers hardly ever list it in their docs.

 


I can guess
the latest rev listed on the support web site is what I'll get
when I buy the box?? (Maybe not, as I got a rev A router
last December when the latest was rev B.) 
   



Usually there is a sticker on the packaging that says model FOO
rev. X. or something like that.

 


Later I'll work
on getting the driver downloaded and unpacked on my
Windows machine (as my Mac won't process those .exe
files).
   



You could try unzip. Some of those exe files are self-extracting ZIP ziles.

 


Did I read that there's a way to use Windows drivers in FBSD 7?
   



Yes. It's called ndis(4). Only works on i386 architecture though, not amd64.

Do realize that you're sticking a piece of windows software of unknown
quality in your _kernel_.

Roland
 


Thanks, Roland.  I ended up using ndis and after a little hunting
around for instructions I got WPA running so it connects to my
COTS wireless router from the FBSD7 machine with the Buffalo
'BCM43XNG 802.11n Network Adapter'.

Not too much trouble, really, once you figure out what to do.  I'll
reply to my original post asking for help on that card (which got
no replies).

I will be using the machine mainly for a router so I don't mind -
I hope I don't regret saying this - that a Windows driver is in the
kernel.

Thanks.  I appreciate the responses, which keep me on track and
help me know I'm not crazy. (Well, maybe just a little bit.)

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


RE: time drift

2008-05-15 Thread Bob McConnell
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Volker Jahns
Sent: Thursday, May 15, 2008 2:58 PM
To: freebsd-questions@freebsd.org
Cc: [EMAIL PROTECTED]
Subject: time drift

FreeBSD 6.2 running on X86 hardware (FSC) shows a remarkable time drift

running ntpdate every half hour shows that the system looses about 10-14
sec each time.
15 May 10:06:48 ntpdate[7200]: step time server 192.53.103.108 offset
-13.799602 sec
15 May 10:36:48 ntpdate[7515]: step time server 192.53.103.108 offset
-12.813941 sec
15 May 11:06:48 ntpdate[7879]: step time server 192.53.103.108 offset
-13.651921 sec
15 May 11:36:50 ntpdate[8079]: step time server 192.53.103.108 offset
-11.109298 sec
15 May 12:06:50 ntpdate[8289]: step time server 192.53.103.108 offset
-11.836499 sec


FreeBSD 7.0 on an otherwise almost identical system has a time drift of
a few millisecs
every half hour.
15 May 10:35:00 ntpdate[7999]: adjust time server 192.53.103.108 offset
0.009963 sec
15 May 10:35:51 ntpdate[8007]: adjust time server 192.53.103.108 offset
-0.004890 sec
15 May 10:50:00 ntpdate[8042]: adjust time server 192.53.103.108 offset
0.010734 sec
15 May 11:05:00 ntpdate[8088]: adjust time server 192.53.103.108 offset
0.004523 sec
15 May 11:20:01 ntpdate[8114]: adjust time server 192.53.103.108 offset
0.005800 sec

The 6.2 system is a production system, has a uptime of almost 300 days
and I don't want 
to experiment a lot with acpi, battery or so. 

What would be your suspicion on the large time drift of the FreeBSD 6.2
system?

-- 
Volker Jahns, [EMAIL PROTECTED]
--

It loses 28 seconds per hour 28/3600 = 0.007, or less
than 1 percent slow. That is well within normal parts tolerances for a
new computer, and the drift usually gets worse as the hardware ages. I
believe you are also looking at the software clock, not the hardware
clock. The latter may be a little more accurate, since the former may be
slowed down by interrupts and software that disables them.

Install ntpd and let it adjust the clock for you.

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


Re: time drift

2008-05-15 Thread Volker Jahns
On Thu, May 15, 2008 at 12:18:57PM -0700, Chuck Swiger wrote:
 On May 15, 2008, at 11:57 AM, Volker Jahns wrote:
 FreeBSD 6.2 running on X86 hardware (FSC) shows a remarkable time  
 drift
 
 running ntpdate every half hour shows that the system looses about  
 10-14 sec each time.
 15 May 10:06:48 ntpdate[7200]: step time server 192.53.103.108  
 offset -13.799602 sec
 15 May 10:36:48 ntpdate[7515]: step time server 192.53.103.108  
 offset -12.813941 sec
 15 May 11:06:48 ntpdate[7879]: step time server 192.53.103.108  
 offset -13.651921 sec
 15 May 11:36:50 ntpdate[8079]: step time server 192.53.103.108  
 offset -11.109298 sec
 15 May 12:06:50 ntpdate[8289]: step time server 192.53.103.108  
 offset -11.836499 sec
 
 While you should run ntpdate -b at system boot, running ntpdate  
 periodically via cron is not the right thing to do-- you should run  
 ntpd instead, and that will figure out the intrinsic correction your  
 chosen system clock needs to keep better time via the ntp.drift file.
Running ntpd on this system results in time drift of approx. 1-2 hrs a day. 
That is not an acceptable option.
 
 You should also take a look at the output of sysctl  
 kern.timecounter, and possibly switch to a different mechanism, if  
 the existing choice doesn't work out well for your machine...
Thanks for the hint.

-- 
Volker Jahns, [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: Buffalo/Broadcom wireless N card

2008-05-15 Thread Walter

Walter wrote:


I'm trying to compile support for a wireless router into FBSD 7
using instructions off a FBSD help page I can't locate just now.
(I'm working on building a network bridge.)

[EMAIL PROTECTED]:0:10:0:class=0x028000 card=0x03531154 chip=0x432914e4 
rev=0x01 hdr=0x00

   vendor = 'Broadcom Corporation'
   device = 'BCM43XNG 802.11n Network Adapter'
   class  = network

When it boots in the machine which has the card (I compiled
on another computer) it blows out with a kernel error (writing
not a non-existent page, I think) when the device shows up.
It shows as device bge0 but identified as BCM 5701 (iirc).

Can someone point me in the right direction?  Has anyone
gotten this card to work?


With help from the List I got this to work:

The answer, maybe not the BEST answer, but the answer that
works, is to use the Windows XP driver and FBSD's 'ndis'.  My
goal was to build a FBSD router with wireless access to my COTS
wireless router to provide network access in another part of the house.

Get the driver files (.sys  .inf) either from the CD that came with
the card or from the Buffalo web site:
http://www.buffalotech.com/support/downloads/

Then, per instructions from the Handbook (11.8.2)
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html
run 'ndisgen' on the driver files:

# ndisgen netg300n.inf cbg300n.sys

A .ko file will be generated: cbg300n_sys.ko.  It can be loaded
using 'kldload ./cbg300n_sys.ko' but I wanted it loaded at boot.
So, as 11.8.2 says, copy this file to /boot/modules and add the
following line to /boot/loader.conf:

  cbg300n_sys_load=YES

Also, as I wanted WPA encryption, I added two other lines to
loader.conf:
  wlan_ccmp_load=YES
  wlan_tkip_load=YES
The wireless setup instructions are in the handbook section 29;
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html

Then in /etc/rc.conf add this:
  ifconfig_ndis0=WPA DHCP
The device 'ndis0' is created by the ndis driver when it handles a
Windows driver.  I guess if you have more than one Windows
device and driver you get to sort out the various ndis0/1/2/3/4/5/etc.
If you don't want WPA just use DHCP and you don't need the
two extra lines above in loader.conf.

For WPA you need to create the WPA config file:
/etc/wpa_supplicant.conf:
  network={
 ssid=your wireless network name
 psk=your personal access key
  }

Somehow, it all magically started working.  (No doubt due to the
hard work of many FBSD coders.)

I hope I didn't leave out any major part.  I'm posting this not only
so other can benefit if they run into a similar problem, but in case
this box burns (HD fails) I'll have a record of what I did to recreate
it. g

Thank you again to those that helped.

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


Thanks and another problem ...

2008-05-15 Thread John Wynstra
Thanks for the solution to my Firefox/Thunderbird woes.  All cured now.  
The answer was to add prefs to Thunderbird to allow Firefox in as 
suggested by Tore Lund.  Since these preferences do not exist already 
they need to be added manually to a file.


Now I am trying to build Open Office for access to word files.  The make 
install dies at the point where the java files need to be manually 
installed.  I did that but this version of Open Office requires older 
versions of java.  How do I get older versions of tzupdater?  I tried a 
trick involving a symbolic link from the new ...


-rw-r--r--  1 root  wheel  57749554 May 15 15:12 
jdk-1_5_0_13-fcs-src-b05-jrl-25_sep_2007.jar
-rw-r--r--  1 root  wheel   2211512 May 15 15:14 
jdk-1_5_0_13-fcs-bin-b05-jrl-25_sep_2007.jar

-rw-r--r--  1 root  wheel263679 May 15 15:24 tzupdater-1_3_5-2008b.zip
-rw-r--r--  1 root  wheel778641 May 15 15:27 bsd-jdk15-patches-7.tar.bz2
lrwxr-xr-x  1 root  wheel25 May 15 15:41 
tzupdater-1_3_0-2007h.zip - tzupdater-1_3_5-2008b.zip

[root@ /usr/ports/distfiles]# rm -i tzu*
remove tzupdater-1_3_0-2007h.zip? y
remove tzupdater-1_3_5-2008b.zip? n
[root@ /usr/ports/distfiles]# cd -
/usr/ports/editors/openoffice.org-2
[root@ /usr/ports/editors/openoffice.org-2]# make install
===   openoffice.org-2.3.1 depends on executable: zip - found
===   openoffice.org-2.3.1 depends on executable: unzip - found
===   openoffice.org-2.3.1 depends on executable: gcp - found
===   openoffice.org-2.3.1 depends on executable: gpatch - found
===   openoffice.org-2.3.1 depends on file: 
/usr/local/lib/perl5/site_perl/5.8.8/Archive/Zip.pm - found

===   openoffice.org-2.3.1 depends on executable: bash - found
===   openoffice.org-2.3.1 depends on executable: imake - found
===   openoffice.org-2.3.1 depends on executable: ant - not found
===Verifying install for ant in /usr/ports/devel/apache-ant
===  Installing for apache-ant-1.7.0_1
===   apache-ant-1.7.0_1 depends on executable: classpath - found
===   apache-ant-1.7.0_1 depends on file: /usr/local/jdk1.5.0/bin/java 
- not found
===Verifying install for /usr/local/jdk1.5.0/bin/java in 
/usr/ports/java/jdk15

===  jdk-1.5.0.13p7_1,1 :
Due to licensing restrictions, certain files must be fetched manually.

Please open http://java.sun.com/javase/downloads/index.jsp
in a web browser and follow the Download link for
JDK US DST Timezone Update Tool - 1.3.0 to obtain the
time zone update file, tzupdater-1_3_0-2007h.zip.

Please place the downloaded file(s) in /usr/ports/distfiles
and restart the build.

.*** Error code 1

Stop in /usr/ports/java/jdk15.
*** Error code 1

Stop in /usr/ports/devel/apache-ant.
*** Error code 1

Stop in /usr/ports/editors/openoffice.org-2.

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


Re: time drift

2008-05-15 Thread Volker Jahns
On Thu, May 15, 2008 at 09:53:02PM +0200, Volker Jahns wrote:
 On Thu, May 15, 2008 at 12:18:57PM -0700, Chuck Swiger wrote:
  On May 15, 2008, at 11:57 AM, Volker Jahns wrote:
  FreeBSD 6.2 running on X86 hardware (FSC) shows a remarkable time  
  drift
  
  running ntpdate every half hour shows that the system looses about  
  10-14 sec each time.
  15 May 10:06:48 ntpdate[7200]: step time server 192.53.103.108  
  offset -13.799602 sec
  15 May 10:36:48 ntpdate[7515]: step time server 192.53.103.108  
  offset -12.813941 sec
  15 May 11:06:48 ntpdate[7879]: step time server 192.53.103.108  
  offset -13.651921 sec
  15 May 11:36:50 ntpdate[8079]: step time server 192.53.103.108  
  offset -11.109298 sec
  15 May 12:06:50 ntpdate[8289]: step time server 192.53.103.108  
  offset -11.836499 sec
  
  You should also take a look at the output of sysctl  
  kern.timecounter, and possibly switch to a different mechanism, if  
  the existing choice doesn't work out well for your machine...
 Thanks for the hint.
A few years ago a time drift problem had been observed by a German freebsd
user (http://www.freebsd.de/rachive/de-bsd-questions.200304/0643.html).
Time drift 15 sec every half hour, ntpd dies away running on his machine.

Setting kern.timecounter.hardware to TSC had been recommended as a solution.
--
Volker Jahns, [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: Thanks and another problem ...

2008-05-15 Thread Jonathan Chen
On Thu, May 15, 2008 at 04:32:37PM -0400, John Wynstra wrote:
 Thanks for the solution to my Firefox/Thunderbird woes.  All cured now.  
 The answer was to add prefs to Thunderbird to allow Firefox in as 
 suggested by Tore Lund.  Since these preferences do not exist already 
 they need to be added manually to a file.
 
 Now I am trying to build Open Office for access to word files.  The make 
 install dies at the point where the java files need to be manually 
 installed.  I did that but this version of Open Office requires older 
 versions of java.

I built openoffice and jdk15 just last week without any problems. There
was no requirement for an older version of java, just jdk15. Have
you updated your ports tree?

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]
---
I love deadlines. I like the whooshing sound they make as they fly by
- Douglas Adams
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


force file permission

2008-05-15 Thread Mister Olli
hi list...

I have to administrate a fileserver based on freebsd-7 where users have
access to via SMB and SSH.

my permission setup is configured, so that a user needs to be in a
special group to have access to certain files. for that all file must
have permissions set to 660 and directories to 770.

The samba part is not a problem, there quite a few options to solve this
problem, and it works great.

but not the access via SSH/SCP. Is there any way to accomplish this? the
solution needs to cover the following:
- files created on the fileserver itself (during SSH session) need to
have the permissions
- files copied to the fileserver via SCP/SFTP need to have the
permissions

the old fileserver was linux-based and used some scripts that were
triggerd by cron/ dnotify, but the solution became unhandy with growing
amount of files.


thanks,

olli

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


Re: time drift

2008-05-15 Thread David Kelly
On Thu, May 15, 2008 at 08:57:59PM +0200, Volker Jahns wrote:
 FreeBSD 6.2 running on X86 hardware (FSC) shows a remarkable time
 drift
 
 running ntpdate every half hour shows that the system looses about 10-14 sec 
 each time.
 15 May 10:06:48 ntpdate[7200]: step time server 192.53.103.108 offset 
 -13.799602 sec
 15 May 10:36:48 ntpdate[7515]: step time server 192.53.103.108 offset 
 -12.813941 sec
 15 May 11:06:48 ntpdate[7879]: step time server 192.53.103.108 offset 
 -13.651921 sec
 15 May 11:36:50 ntpdate[8079]: step time server 192.53.103.108 offset 
 -11.109298 sec
 15 May 12:06:50 ntpdate[8289]: step time server 192.53.103.108 offset 
 -11.836499 sec

[...]

 What would be your suspicion on the large time drift of the FreeBSD
 6.2 system?

Its PC commodity-grade. Not all that unusual even for stuff sold
claiming to be a server. This is in no small part why ntpd exists.

nptd calculates a correction coefficient and (under FreeBSD) stores it
in /var/db/ntpd.drift for use on next start so as to more quickly
establish a lock.

So in short ntpd calibrates your clock in order to minimize the
corrections required. Is The Right Thing To Do.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: time drift

2008-05-15 Thread Christopher Cowart
David Kelly wrote:
 Its PC commodity-grade. Not all that unusual even for stuff sold
 claiming to be a server. This is in no small part why ntpd exists.
 
 nptd calculates a correction coefficient and (under FreeBSD) stores it
 in /var/db/ntpd.drift for use on next start so as to more quickly
 establish a lock.
 
 So in short ntpd calibrates your clock in order to minimize the
 corrections required. Is The Right Thing To Do.

We run a large number of FreeBSD servers under vmware. We've seen ntpd
silently die, because the drift becomes insane. What do others do in
this situation? (We've resorted to croning ntpdate for VMs.)

-- 
Chris Cowart
Network Technical Lead
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgpU238ai1J1l.pgp
Description: PGP signature


Re: time drift

2008-05-15 Thread Bruce Cran

Volker Jahns wrote:

On Thu, May 15, 2008 at 09:53:02PM +0200, Volker Jahns wrote:

On Thu, May 15, 2008 at 12:18:57PM -0700, Chuck Swiger wrote:

On May 15, 2008, at 11:57 AM, Volker Jahns wrote:
FreeBSD 6.2 running on X86 hardware (FSC) shows a remarkable time  
drift


running ntpdate every half hour shows that the system looses about  
10-14 sec each time.
15 May 10:06:48 ntpdate[7200]: step time server 192.53.103.108  
offset -13.799602 sec
15 May 10:36:48 ntpdate[7515]: step time server 192.53.103.108  
offset -12.813941 sec
15 May 11:06:48 ntpdate[7879]: step time server 192.53.103.108  
offset -13.651921 sec
15 May 11:36:50 ntpdate[8079]: step time server 192.53.103.108  
offset -11.109298 sec
15 May 12:06:50 ntpdate[8289]: step time server 192.53.103.108  
offset -11.836499 sec
You should also take a look at the output of sysctl  
kern.timecounter, and possibly switch to a different mechanism, if  
the existing choice doesn't work out well for your machine...

Thanks for the hint.

A few years ago a time drift problem had been observed by a German freebsd
user (http://www.freebsd.de/rachive/de-bsd-questions.200304/0643.html).
Time drift 15 sec every half hour, ntpd dies away running on his machine.

Setting kern.timecounter.hardware to TSC had been recommended as a solution.


There's also a FreeBSD PR open about this problem: 
http://www.freebsd.org/cgi/query-pr.cgi?pr=i386/123462



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


How to delete One line on tcsh history....??

2008-05-15 Thread Agus
Hi guys,

I've been trying to delete one line from my user tcsh history cause i made a
su and it seems didnt hit enter very well so i typed the password on the
console...Now anyone that can look my history will see my pass...

I tried to edit and delete a few lines but it all comes againtried
history clear but when i login again it apperas all again..hehe...
Its so secure and cool tcsh taht i have no idea how to do it...been a bash
user...

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


Re: time drift

2008-05-15 Thread Chuck Swiger

On May 15, 2008, at 2:16 PM, Christopher Cowart wrote:

We run a large number of FreeBSD servers under vmware. We've seen ntpd
silently die, because the drift becomes insane. What do others do in
this situation? (We've resorted to croning ntpdate for VMs.)


You run ntpd in the parent OS, rather than in the emulated machines.

--
-Chuck

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


Re: How to delete One line on tcsh history....??

2008-05-15 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Agus wrote:
| Hi guys,
|
| I've been trying to delete one line from my user tcsh history cause i
made a
| su and it seems didnt hit enter very well so i typed the password on the
| console...Now anyone that can look my history will see my pass...
|
| I tried to edit and delete a few lines but it all comes againtried
| history clear but when i login again it apperas all again..hehe...
| Its so secure and cool tcsh taht i have no idea how to do it...been a bash
| user...

You can clear your history (the whole history will be lost!!) by
| history -c

No clue whether you can remove a single line..

| Cheers and thanks,
| Agustin

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkgssGYACgkQwMJqmJVx944nJwCeNA0pEAxNW2MAa+p09T61ZIuy
LnEAoJSvP23/4hTq3iDW0xf/tGmfNfTS
=xmcm
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: time drift

2008-05-15 Thread D Hill

On Thu, 15 May 2008 at 14:16 -0700, [EMAIL PROTECTED] confabulated:


David Kelly wrote:

Its PC commodity-grade. Not all that unusual even for stuff sold
claiming to be a server. This is in no small part why ntpd exists.

nptd calculates a correction coefficient and (under FreeBSD) stores it
in /var/db/ntpd.drift for use on next start so as to more quickly
establish a lock.

So in short ntpd calibrates your clock in order to minimize the
corrections required. Is The Right Thing To Do.


We run a large number of FreeBSD servers under vmware. We've seen ntpd
silently die, because the drift becomes insane. What do others do in
this situation? (We've resorted to croning ntpdate for VMs.)


I've also found running FreeBSD 6.2, 6.1 and 6.0 in VMWare, I've had to 
reduce kern.hz in /boot/loader.conf. I had to reduce it to 50. Otherwise 
the clock really lost time.

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


Re: Storage projects

2008-05-15 Thread Bob Johnson
On 5/15/08, Bob Johnson [EMAIL PROTECTED] wrote:
 Do you want a programming project, or a figure-out-how-to-do-it project?

 One thing that pops up once in a while is the need for a real-time
 distributed file server. I.E. two or more fileservers serving the same
 files from physically separate locations, while keeping the files
 synchronized in real time. One scenario is a business that has
[...]

It also appears that Dragonfly BSD's Hammer filesystem is an attempt
at solving this problem (as well as several other problems).

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


Re: Storage projects

2008-05-15 Thread Bob Johnson
Do you want a programming project, or a figure-out-how-to-do-it project?

One thing that pops up once in a while is the need for a real-time
distributed file server. I.E. two or more fileservers serving the same
files from physically separate locations, while keeping the files
synchronized in real time. One scenario is a business that has
multiple offices and would like to reduce inter-office network traffic
by having a synchronized file server at each local office, so read
access is to the local file server, and only the (relatively rare)
changes need to propagate across the network. Another quite common
scenario is a laptop that you want to keep synchronized with your home
fileserver regardless of where it happens to be on the Internet.


There are assorted partial solutions to this problem, but I don't know
of any that are entirely satisfactory for the general case (I admit,
I'm not up on the state of the art in this area). For instance,
running gmirror with one provider accessed via ggated is good for some
situations, but doesn't encrypt the network traffic, and really just
gives you one fileserver with real-time off-site backup.

CMU's Coda filesystem purports to be a solution to this problem, but
has pretty weak documentation (unless that has changed recently) and
unknown reliability (setting up Coda on a pair of FreeBSD systems,
documenting how to do it, getting some measurement of reliability, and
reporting on the results would be a useful project, but if you are
looking for a programming project I doubt it qualifies).

Lots of people have written papers on related ideas. One collection of
links is at http://www.cypherspace.org/links.html .  You might get
some ideas there.

- Bob


On 5/15/08, Onkar [EMAIL PROTECTED] wrote:
 Can anyone please suggest me a good storage(File system ,SCSI/iSCSI  stack,
 TCP/IP ) project . I have 2 AMD 64 PCs each with 1 GB RAM and 350 GB SATA
 HDD,

 regards,
 Onkar
 ___
 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: How to delete One line on tcsh history....??

2008-05-15 Thread Christopher Cowart
Agus wrote:
 I've been trying to delete one line from my user tcsh history cause i made a
 su and it seems didnt hit enter very well so i typed the password on the
 console...Now anyone that can look my history will see my pass...
 
 I tried to edit and delete a few lines but it all comes againtried
 history clear but when i login again it apperas all again..hehe...
 Its so secure and cool tcsh taht i have no idea how to do it...been a bash
 user...

I use this strategy with bash, so YMMV:

$ vim .bash_history
(kill line)
$ kill -9 $$

$$ should expand to the pid of the running shell; if it doesn't in tcsh,
sub it out yourself. 

The kill -9 prevents the shell from doing it's normal exit stuff (like
writing out the history) and just kills the process. You'll need to kill
-9 any shell that you launched while the bad line was in the history
file.

-- 
Chris Cowart
Network Technical Lead
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgp9sn6dYe85v.pgp
Description: PGP signature


Re: time drift

2008-05-15 Thread Chuck Swiger

On May 15, 2008, at 12:53 PM, Volker Jahns wrote:

While you should run ntpdate -b at system boot, running ntpdate
periodically via cron is not the right thing to do-- you should run
ntpd instead, and that will figure out the intrinsic correction your
chosen system clock needs to keep better time via the ntp.drift file.


Running ntpd on this system results in time drift of approx. 1-2 hrs  
a day. That is not an acceptable option.


Something's probably wrong with your hardware clock or there is  
something else going on, if it is really drifting at ~ 5% from real  
time.  Sometimes replacing the battery on the motherboard fixes this.   
Does vmstat -i show exceptional interrupt load or anything like that?



You should also take a look at the output of sysctl
kern.timecounter, and possibly switch to a different mechanism, if
the existing choice doesn't work out well for your machine...

Thanks for the hint.


Indeed, try using one of the other timesources and see whether that  
corrects the huge offsets you are reporting.


--
-Chuck

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


Re: time drift

2008-05-15 Thread Luke Dean



On Thu, 15 May 2008, Christopher Cowart wrote:


David Kelly wrote:

Its PC commodity-grade. Not all that unusual even for stuff sold
claiming to be a server. This is in no small part why ntpd exists.

nptd calculates a correction coefficient and (under FreeBSD) stores it
in /var/db/ntpd.drift for use on next start so as to more quickly
establish a lock.

So in short ntpd calibrates your clock in order to minimize the
corrections required. Is The Right Thing To Do.


We run a large number of FreeBSD servers under vmware. We've seen ntpd
silently die, because the drift becomes insane. What do others do in
this situation? (We've resorted to croning ntpdate for VMs.)


kern.hz=100
in /boot/loader.conf solved this problem for me.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: force file permission

2008-05-15 Thread Derek Ragona

At 03:41 PM 5/15/2008, Mister Olli wrote:

hi list...

I have to administrate a fileserver based on freebsd-7 where users have
access to via SMB and SSH.

my permission setup is configured, so that a user needs to be in a
special group to have access to certain files. for that all file must
have permissions set to 660 and directories to 770.

The samba part is not a problem, there quite a few options to solve this
problem, and it works great.

but not the access via SSH/SCP. Is there any way to accomplish this? the
solution needs to cover the following:
- files created on the fileserver itself (during SSH session) need to
have the permissions
- files copied to the fileserver via SCP/SFTP need to have the
permissions

the old fileserver was linux-based and used some scripts that were
triggerd by cron/ dnotify, but the solution became unhandy with growing
amount of files.


thanks,

olli


The simplest solution is to properly set the umask for the user accounts 
you use to ssh or scp.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Belkin F5D9050 ver 4000

2008-05-15 Thread Steven Friedrich
I checked the FreeBSD 7.0-RELEASE Hardware Notes before I bought this 
USB Ethernet device.


It should be supported by the rum driver, but it gets picked up by ugen 
instead.


The Hardware Notes mentions version 3 and the box says ver 4000, but I 
think it's probably actually ver 4.


I configured all the devices mentioned in the rum man page and rebuilt 
the kernel, and rebooted.


I believe it should show up when I invoke ifconfig without args.  My 
other ethernet drivers do.


What am I missing?
--

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


Re: time drift

2008-05-15 Thread perryh
 FreeBSD 6.2 running on X86 hardware (FSC) shows a remarkable time
 drift

 running ntpdate every half hour shows that the system looses about
 10-14 sec each time.
 15 May 10:06:48 ntpdate[7200]: step time ... offset -13.799602 sec
 15 May 10:36:48 ntpdate[7515]: step time ... offset -12.813941 sec
 15 May 11:06:48 ntpdate[7879]: step time ... offset -13.651921 sec
 15 May 11:36:50 ntpdate[8079]: step time ... offset -11.109298 sec
 15 May 12:06:50 ntpdate[8289]: step time ... offset -11.836499 sec
...
 The 6.2 system is a production system, has a uptime of almost 300
 days and I don't want to experiment a lot with acpi, battery or so. 

 What would be your suspicion on the large time drift of the FreeBSD
 6.2 system?

With an uptime of nearly a year -- commendation to the power company
-- and (I take it) a recently-developed problem, I'd be asking what
might have changed shortly before the problem appeared.

Is the system clock source by any chance the CMOS RTC?  If so, I'd
suspect that its battery may be dying.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Belkin F5D9050 ver 4000

2008-05-15 Thread perryh
 I checked the FreeBSD 7.0-RELEASE Hardware Notes before I bought
 this USB Ethernet device.
 It should be supported by the rum driver, but it gets picked up
 by ugen instead.
 The Hardware Notes mentions version 3 and the box says ver 4000,
 but I think it's probably actually ver 4.
...
 What am I missing?

It sure sounds as if you are missing a supported USB device :(

Unfortunately, it is not at all uncommon for manufacturers to make
significant internal changes to a product, without changing the
name or the packaging.  At least they changed the version label.

Doing a descriptor dump, and posting the results to freebsd-usb@,
might find someone who knows how to get that particular device to
work.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Belkin F5D9050 ver 4000

2008-05-15 Thread Steven Friedrich

[EMAIL PROTECTED] wrote:

I checked the FreeBSD 7.0-RELEASE Hardware Notes before I bought
this USB Ethernet device.
It should be supported by the rum driver, but it gets picked up
by ugen instead.
The Hardware Notes mentions version 3 and the box says ver 4000,
but I think it's probably actually ver 4.

...

What am I missing?


It sure sounds as if you are missing a supported USB device :(

Unfortunately, it is not at all uncommon for manufacturers to make
significant internal changes to a product, without changing the
name or the packaging.  At least they changed the version label.

Doing a descriptor dump, and posting the results to freebsd-usb@,
might find someone who knows how to get that particular device to
work.


Ok, I'll bite.  How do you do a descriptor dump?

--

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


Problem setting up racoon / Checkpoint VPN

2008-05-15 Thread Paul Keusemann
Hi,

I'm trying to set up a VPN between my FreeBSD 6.3 machine and a
Checkpoint box.   I've currently got a VPN set up between the same
machine and another Checkpoint box and it's been working fine for
four years.  The new Checkpoint box is supposed to be set up identically
(expect for the obvious address changes) as the working system but
when I try to bring up the link, I'm getting an error during the phase
1 negotiation:

2008-05-15 08:38:15: DEBUG: 40 bytes message received from 207.xxx.xxx.xxx[500] 
t
o 12.202.208.28[500]
2008-05-15 08:38:15: DEBUG:
34f9867b 07e4ea13   0b100500 d2520e0f 0028 000c
 010e
2008-05-15 08:38:15: DEBUG: malformed cookie received or the initiator's cookies
 collide.

I'm assuming this is some sort of misconfiguration but nothing that
I've tried as made any difference.  I can post my side of the configuration
but right now, I'm just looking for someone who can tell me where to
start looking.
-- 
Paul Keusemann [EMAIL PROTECTED]
4266 Joppa Court   (952) 894-7805
Savage, MN  55378
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


iSCSI initiator

2008-05-15 Thread Onkar
Please clarify these :
(1) Is iSCSI initiator not currently implemented for FreeBSD ?
(2) There is no iSCSI target daemon currently ?

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


Re: iSCSI initiator

2008-05-15 Thread Sahil Tandon
* Onkar [EMAIL PROTECTED] [05-16-2008]:
  
 (1) Is iSCSI initiator not currently implemented for FreeBSD ?
  
http://www.freebsd.org/releases/7.0R/announce.html

 (2) There is no iSCSI target daemon currently ?

net/iscsi-target

-- 
Sahil Tandon [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: Thanks and another problem ...

2008-05-15 Thread Jonathan Chen
On Thu, May 15, 2008 at 09:58:22PM -0400, John Wynstra wrote:
 I cleaned up and reran the make install ...
 +++
 ===   openoffice.org-2.3.1 depends on file: /usr/local/bin/perl5.8.8 - 
 found
 ===  Patching for openoffice.org-2.3.1

You need to update your ports tree. The current version is 2.4.0_5.

Please consult the Handbook on how to keep your ports-tree up to date:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
Irrationality is the square root of all evil
  - Douglas Hofstadter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to delete One line on tcsh history....??

2008-05-15 Thread Agus
2008/5/15 Pietro Cerutti [EMAIL PROTECTED]:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA512


 Agus wrote:
 | Hi guys,
 |
 | I've been trying to delete one line from my user tcsh history cause i
 made a
 | su and it seems didnt hit enter very well so i typed the password on the
 | console...Now anyone that can look my history will see my pass...
 |
 | I tried to edit and delete a few lines but it all comes againtried
 | history clear but when i login again it apperas all again..hehe...
 | Its so secure and cool tcsh taht i have no idea how to do it...been a
 bash
 | user...

 You can clear your history (the whole history will be lost!!) by
 | history -c

 No clue whether you can remove a single line..

 | Cheers and thanks,
 | Agustin

 - --
 Pietro Cerutti
 [EMAIL PROTECTED]

 PGP Public Key:
 http://gahr.ch/pgp

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.9 (FreeBSD)

 iEYEAREKAAYFAkgssGYACgkQwMJqmJVx944nJwCeNA0pEAxNW2MAa+p09T61ZIuy
 LnEAoJSvP23/4hTq3iDW0xf/tGmfNfTS
 =xmcm
 -END PGP SIGNATURE-




Cool,
thanks guys.I used the history command and worked; weird, i had tried
that...maybe i used it in another place...

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


Re: Belkin F5D9050 ver 4000

2008-05-15 Thread perryh
  Doing a descriptor dump, and posting the results to freebsd-usb@,
  might find someone who knows how to get that particular device to
  work.
  
 Ok, I'll bite.  How do you do a descriptor dump?

One way is to use sysutils/udesc_dump, from ports, as recommended here:
http://lists.freebsd.org/pipermail/freebsd-usb/2008-January/004308.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: iSCSI initiator

2008-05-15 Thread Mark D. Foster

Sahil Tandon wrote:

* Onkar [EMAIL PROTECTED] [05-16-2008]:
  
  

(1) Is iSCSI initiator not currently implemented for FreeBSD ?

  
http://www.freebsd.org/releases/7.0R/announce.html


  

(2) There is no iSCSI target daemon currently ?



net/iscsi-target
  

Onkar, you may also find this helpful.
http://conshell.net/wiki/index.php/User:Fostermarkd/FreeBSD/iSCSI

--
Said one park ranger, 'There is considerable overlap between the 
intelligence of the smartest bears and the dumbest tourists.'

Mark D. Foster, CISSP [EMAIL PROTECTED]  http://mark.foster.cc/

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


[6.3/PHP5] Right way to add APC?

2008-05-15 Thread Gilles
Hello

Before I go ahead and mess with that 6.3 host... I figured I should
ask the experts.

I'd like to add the APC cache add-on, but I don't know how to do this.
After compiling and installing /usr/ports/www/pecl-APC, should I...

1.  edit /usr/local/etc/php.ini or /usr/local/etc/php/extensions.ini
2. and what to put there?

Thanks for any tip.

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