RE: mail server setup questions

2007-09-08 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of DAve
 Sent: Thursday, September 06, 2007 10:29 AM
 To: freebsd-questions@freebsd.org
 Subject: Re: mail server setup questions
 
 
 Don't wonder if qmail has flaws, go to CERT.org and search first for 
 Sendmail, then Postfix, then Exim, then qmail. To say Anyone who even 
 thinks that a piece of software that it 6 years old has no flaws had 
 best re-think this., is simply FUD.
 

He said no flaws, cert.org and friends only track security flaws, not
other kinds of flaws.  And cert.org and friends are only as good as
the reports submitted to them.

I would offer the suggestion that if every mail admin out there using
qmail was not a mail expert, that it is unlikely that security flaws
would be noticed or reported.

In the last analysis, the absense of a particular piece of software from
a security notification list is NOT proof that the software has no
security flaws.  You cannot prove a negative in this case.

Ted

PS  I routinely use 6 year old software myself.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Trouble with rshd after replacing 5.x with 6.2-RELEASE

2007-09-08 Thread Ronald F. Guilmette

Not long ago, I took a working FreeBSD 5.x system on my local network,
(whose name is shiny) wiped the disk clean, and then installed from
scratch FreeBSD 6.2-RELEASE.  I then configured it as best as I could
to get it to behave as much as possible like the old/prior 5.x system.

Most suff mostly works as expected... the two exceptions being X (and
various X clients), which I already know I need to update, and rsh.

Today I'm struggling with the rsh problem.

Doing something simple from another machine on my network, such as:

rsh shiny.lan.monkeys.com date

just simply doesn't work, even though I have a good and fully functional
.rhosts in my home directory on the upgraded system (shiny.lan.monkeys.com).
All I get back is:

rshd: Login incorrect.

I find this particual bit of dysfunctionality particularly inexplicable
because I _can_ effectively rlogin to the upgraded box, from the exact
same other system, with no problem at all via:

rsh shiny.lan.monkeys.com

So, I have been trying to figure out why I can rlogin (via rsh) to the box
and yet not be able to rsh to it to execute commands but I have had no
luck at all in figuring out what's going wrong here.  The only thing that
I know for sure is that somwhere between the old 5.x system I was running
and the new 6.2-RELEASE system I'm running now, somebody got the swell
idea to pam-ify rshd... and I gather that this may have something to do
with the problem.  (I have little to no knowledge of pam, and I have even
less of an idea why it would have been shipped with 6.2-RELEASE in such a
misconfigured state that even something simple like rsh host command
would cease to work.)

Anyway, could somebody please take pity on me and explain to me what I
need to tweek to get this to work (again) after my upgrade to 6.2?
The rshd man page is no help at all, and only confuses things further,
because on the one hand it makes mention of a /etc/pam.conf file... which
doesn't even seem to exists on this 6.2 system (Was I supposed to create
one?)... while on the other hand it tells me that I need to tweek the
/etc/pam.d/rsh file... which I already did, as instructed by the man
page, but doing that didn't help at all.

So what's the Right Answer to make rsh/rshd work again, e.g. in the presence
of a per-user .rhosts file?

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


Re: Trouble with rshd after replacing 5.x with 6.2-RELEASE

2007-09-08 Thread Wojciech Puchar

Doing something simple from another machine on my network, such as:

rsh shiny.lan.monkeys.com date


you rsh as root?
fix /etc/pam.d/rsh

authrequiredpam_rhosts.so   no_warn allow_root
instead of
authrequiredpam_rhosts.so   no_warn

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


Re: UserID/Samba issue for wheel group members - newbie poster

2007-09-08 Thread Derek Ragona

At 05:26 PM 9/7/2007, Bronte Averay wrote:



Derek Ragona wrote:

At 05:05 AM 9/7/2007, Bronte Averay wrote:

Hello all,

Firstly, apologies if this email appears more than once, just getting 
used to the protocols.


I have an interesting but frustrating issue that I've not been able to 
diagnose and/or resolve.


Scenario:

FreeBSD 6.1 Release fileserver (generic kernel) running samba-2.2.12_2.

Desktops are Windows XP SP2, all up to date patch-wise, mapping various 
Samba shares.


Problem:

When I run smbstatus, all users that are members of the wheel group show 
a UID of root and a GID of username.


Users who are not members of the wheel group show a UID of username 
and a GID of username.  Equally, removing a user from the wheel group 
reverts them to username/username UID/GID at next logon.


I have two sites running identical hardware/software configurations at 
both server and desktop level.  But on the second site, members of the 
wheel group have a UID of username and a GID of username, which is 
precisely as it should be, based on passed experiences.


I'll take this opportunity to mention that I also have a 4.11 server, 
again with some wheel group members, and in this case too, UID and GID 
for these wheel group members are username and username.


I've kept this as simple as I could, but would happily provide more info 
if I've omitted anything critical or relevant.


The issue is not causing any specific operational issues, but is 
annoying when I want to use smbstatus -uusername as I obviously get no 
result for wheel group members unless I specify a username of root, then 
I get more than I care to.


If there's an obvious issue, and you wish to spare me embarrassment, 
feel free to contact me directly, with the obvious adjustments.  If 
etiquette is that a response to the list is appropriate, I can live with 
the shame :) .


I've extensively searched but can't find a match to my specific 
circumstances.


Many thanks in advance of any suggestions.

Regards,

Bronte.
You don't say how you are managing the users.  Is the samba server acting 
as a domain controller?  Are you creating the accounts automatically or 
manually?

-Derek


Thanks Derek.

Server is acting as a domain controller, yes.  Most accounts were created 
manually (i.e. at server console) on an earlier version of FreeBSD 
(4.10-STABLE) (including smbpasswd accounts). The pwd.db, master.passwd 
and /etc/group files were *copied* from 4.10 server to new 6.1 server.  I 
had to recreate the smbpasswd accounts manually on the new server.


New users added to wheel group since the 6.1 install exhibit same 
root/username GID/PID problem.


I should point out that precisely the same process was followed on the 
second site I mentioned earlier, but no problems of this type are evident.


With all things being the same on all servers (same samba versions on all) 
AND that you are manually creating the users, so it isn't a factor in how 
the user accounts are created.


Have you checked the actual samba share definitions?  You can force 
certain actions on a share which can be reflected through smbstatus such as 
user or group ownership.


Also are your XP client pc's all logging into the samba server as a domain 
controller?  You can have users connect to shares and not be logging into 
the domain controller and instead pass userid/password when mapping a 
shared drive.


I am no samba expert, just trying to think about places I'd look for 
differences to explain the behavior.  You might try posting to the samba lists.


-Derek

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

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


using a Hercules/Ralink usb wifi

2007-09-08 Thread beni
Hi all,

I'm trying to get my usb wifi to work. The key is recognized by dmesg :

[...]
ural0: Ralink 802.11 bg WLAN, rev 2.00/0.01, addr 4
ural0: MAC/BBP RT2570 (rev 0x00), RF unknown
ural0: Ethernet address: 00:08:d3:08:31:fd
ural0: if_start running deferred for Giant
ural0: timeout waiting for BBP/RF to wakeup
ural0: timeout waiting for BBP/RF to wakeup
ural0: timeout waiting for BBP/RF to wakeup
ural0: timeout waiting for BBP/RF to wakeup
[...]

bsdaddict# ifconfig ural0
ural0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
ether 00:08:d3:08:31:fd
media: IEEE 802.11 Wireless Ethernet autoselect
status: no carrier
ssid  channel 1
authmode OPEN privacy OFF txpowmax 100 bmiss 7 protmode CTS
bsdaddict#  

When trying to start it up manualy with wpa_supplicant I get this :

bsdaddict# wpa_supplicant -i ural0 -c /etc/wpa_supplicant.conf -dd
Initializing interface 'ural0' conf '/etc/wpa_supplicant.conf' 
driver 'default' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' - '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Line: 1 - start of a new network block
ssid - hexdump_ascii(len=7):
 66 72 65 65 62 73 64  freebsd
PSK (ASCII passphrase) - hexdump_ascii(len=16): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='freebsd'
Initializing interface (2) 'ural0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Own MAC address: 00:08:d3:08:31:fd
wpa_driver_bsd_set_wpa: enabled=1
wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
wpa_driver_bsd_del_key: keyidx=0
wpa_driver_bsd_del_key: keyidx=1
wpa_driver_bsd_del_key: keyidx=2
wpa_driver_bsd_del_key: keyidx=3
wpa_driver_bsd_set_countermeasures: enabled=0
wpa_driver_bsd_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 10 usec
Added interface ural0
State: DISCONNECTED - SCANNING
Starting AP scan (broadcast SSID)
ioctl[SIOCS80211, op 23, arg 0x0]: Invalid argument
Failed to initiate AP scan.
Setting scan request: 10 sec 0 usec
Starting AP scan (broadcast SSID)
ioctl[SIOCS80211, op 23, arg 0x0]: Invalid argument
Failed to initiate AP scan.
Setting scan request: 10 sec 0 usec
Starting AP scan (broadcast SSID)
...

My /etc/wpa_supplicant.conf :
bsdaddict# cat /etc/wpa_supplicant.conf
network={
   ssid=freebsd
   psk=blablablaetc
}

I'm running 6.2-Stable. The modem, a US Robotics, is configured for wpa-psk 
wifi access.

Thanks for any hints on getting this usb-wifi stick working !

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


Clustering harddisk- Is this possiblem?

2007-09-08 Thread Aminuddin
Hi,
I have 5 remote servers and each has about 400GB of HDD and another 2
servers running fedora. Is it possible for me to bind all the BSD boxes HDD
to the fedora boxes?

That means all data that's being downloaded to the fedora boxes is actually
being stored in the FreeBSD boxes, transparent to the users.

What software do I need to install to enable this, if this is possible?

thanks

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


Re: Clustering harddisk- Is this possiblem?

2007-09-08 Thread walsimou



On Sat, 8 Sep 2007 21:15:08 +0800, Aminuddin [EMAIL PROTECTED] wrote:
 Hi,
 I have 5 remote servers and each has about 400GB of HDD and another 2
 servers running fedora. Is it possible for me to bind all the BSD boxes
 HDD
 to the fedora boxes?
 
 That means all data that's being downloaded to the fedora boxes is
 actually
 being stored in the FreeBSD boxes, transparent to the users.
 
 What software do I need to install to enable this, if this is possible?
 
 thanks
 
May be by using NFS

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-nfs.html

Regards

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


Re: Encrypting mirrored device with geli fails

2007-09-08 Thread Thomas Hobbes

  I was trying to encrypt /dev/mirror/gm0s1f but a MD5 mismatch
 occurred:

 # umount /crypt
  # dd if=/dev/random of=/root/gm0s1f.key bs=64 count=1
  1+0 records in
  1+0 records out
  64 bytes transferred in 0.000580 secs (110331 bytes/sec)

 longer.. 32k or so.


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


Re: Clustering harddisk- Is this possiblem?

2007-09-08 Thread Wojciech Puchar

man mount_nfs on BSD

man mountd
man nfsd

on fedora


On Sat, 8 Sep 2007, Aminuddin wrote:


Hi,
I have 5 remote servers and each has about 400GB of HDD and another 2
servers running fedora. Is it possible for me to bind all the BSD boxes HDD
to the fedora boxes?

That means all data that's being downloaded to the fedora boxes is actually
being stored in the FreeBSD boxes, transparent to the users.

What software do I need to install to enable this, if this is possible?

thanks

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


snapshot is corrupt

2007-09-08 Thread Jeffrey Goldberg

I just got the following when trying a portsnap.  Any ideas?
I really don't understand how portsnap works, so for me the error  
message isn't that useful.



$ sudo portsnap fetch update
Password:
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching snapshot tag from portsnap3.FreeBSD.org... done.
Fetching snapshot metadata... done.
Updating from Fri Sep  7 04:51:41 CDT 2007 to Sat Sep  8 05:50:59 CDT  
2007.

Fetching 4 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 1285 patches. 
102030405060708090100110120. 
... 
13014015016017018019020021022023 
0240250260270280290300310320330. 
... 
34035036037038039040041042043044 
0450460470480490500510520530540. 
...550560570580590 done.

Applying patches... done.
Fetching 708 new ports or files... /usr/sbin/portsnap: cannot open  
e34b76c53bfd361a3defe2a9a884c0aa4f10da8b845ddf8e991fc419b3109f09.gz:  
No such file or directory

snapshot is corrupt.
$


Thanks,

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


Re: Encrypting mirrored device with geli fails

2007-09-08 Thread Thomas Hobbes


  I was trying to encrypt /dev/mirror/gm0s1f but a MD5 mismatch
  occurred:
 
  # umount /crypt
  # dd if=/dev/random of=/root/gm0s1f.key bs=64 count=1
  1+0 records in
  1+0 records out
  64 bytes transferred in 0.000580 secs (110331 bytes/sec)
 
  longer.. 32k or so.
 
 
  The same failure occurred.

 magic

 or you did something wrong

 i would do

 gmirror all needed - already done

 geli init -s 2048 -P -K /root/gm0s1f.key /dev/mirror/gm0s1f

 (or -s different, but you will probably use newfs -f 2048)

 geli attach -p -k /root/gm0s1f.key /dev/mirror/gm0s1f

 i am using geli encrpted gmirror, just without keyfile, but password only
 on 2 servers.

 example

 [EMAIL PROTECTED] ~]# geli status
   Name  Status  Components
 mirror/m1.eli N/A  mirror/m1
   concat/c.eli N/A  concat/c
   ad2b.eli N/A  ad2b
   ad0b.eli N/A  ad0b


I did this:

# geli clear /dev/mirror/gm0s1f
# dd if=/dev/random of=/root/gm0s1f.key bs=32k count=1
# geli init -s 4096 -l 256 -K /root/gm0s1f.key /dev/mirror/gm0s1f
# geli attach -k /root/gm0s1f.key /dev/mirror/gm0s1f

Again a MD5 mismatch occurred. I tried it without a key and the same error
occurred. Encrypting with a onetime-key works fine. The error occures also
while doing 'geli dump /dev/mirror/gm0s1f'. Any idea what's wrong?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ADSL Bandwidth Monitoring

2007-09-08 Thread Bahman M.

Hi all,

I have an ADSL connection at home.

When I'm _uploading_ files the whole upload bandwidth is consumed; so 
far so good.


But when _downloading_ no more than 30~40% of download bandwidth is 
consumed.


The guys in the ISP say they've granted me the requested bandwidth but 
this is not what I see in action.


How may I know the real bandwidth limits of my connection?  Any tool or 
trick?  Or maybe I'm misunderstanding something about ADSL bandwidth?


TIA,

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


Re: ADSL Bandwidth Monitoring

2007-09-08 Thread Mel
On Saturday 08 September 2007 16:16:08 Bahman M. wrote:

 How may I know the real bandwidth limits of my connection?  Any tool or
 trick?  Or maybe I'm misunderstanding something about ADSL bandwidth?

net/bmon is a good tool to see the bandwidth of your local interfaces. Other 
then that, bandwidth is the sum of all factors between there and here.

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


Re: ADSL Bandwidth Monitoring

2007-09-08 Thread Joao Barros
On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:
 Hi all,

 I have an ADSL connection at home.

 When I'm _uploading_ files the whole upload bandwidth is consumed; so
 far so good.

 But when _downloading_ no more than 30~40% of download bandwidth is
 consumed.

 The guys in the ISP say they've granted me the requested bandwidth but
 this is not what I see in action.

 How may I know the real bandwidth limits of my connection?  Any tool or
 trick?  Or maybe I'm misunderstanding something about ADSL bandwidth?

First of all you have to take into account that with an ADSL
connection, I'm guessing PPPoE, you have overhead due to protocol
tunnelling.
Next you must verify that you don't max out your upload while testing
download speed. From my tests, up to 90% upload bandwidth usage is
safe and shows no impact on download performance.
And for last, use multiple download sources as only one may not be enough.
Find http or ftp mirrors close to you (on your ISP for ex) and start
downloading multiple ISOs for example.

Note: Make sure the device taking care of the PPPoE connection is
powerful enough to support your bandwidth. For example, I still have a
Linksys WRT54GL as router and I can easily see 100% cpu usage and load
1 and thus I can't use my max contracted bandwidth. Use the modem or
a powerful enough machine running FreeBSD of course :)

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


Re: nvidia-driver rebooting machine on X startup

2007-09-08 Thread Mel
On Saturday 08 September 2007 00:43:59 Darren Spruell wrote:
 On 9/7/07, Mel [EMAIL PROTECTED] wrote:
  On Friday 07 September 2007 19:43:03 Darren Spruell wrote:
   On 9/6/07, Derek Ragona [EMAIL PROTECTED] wrote:
 At 03:10 PM 9/6/2007, Darren Spruell wrote:
   
Wondering if this is a known issue, or if anyone has suggestions to
 get it working...?
   
 Running FreeBSD 6.2-RELEASE-p4 SMP i386.
   
 I installed nvidia-driver-100.14.11 from ports (Sep. 5 snapshot),
 Linux compatibility enabled. After loading modules 'linux' and
 'nvidia', I do:
   
 # X -configure
 # X -config /root/xorg.conf.new
   
 At this point the system spontaneously reboots. 'X -configure' runs
 fine and produces a configuration without issue, but the reboot
 occcurs when launching X. Nothing is output to screen (it flickers
as if starting X), and nothing is written to /var/log/Xorg.0.log. I
do get the same behavior if running 'xorgcfg'.
   
 Card info:
   
 NV41 [Quadro FX 3450/4000 SDI] rev 162
   
 [EMAIL PROTECTED]:0:0: class=0x03 card=0x029b10de chip=0x00cd10de
 rev=0xa2 hdr=0x00
 vendor   = 'NVIDIA Corporation'
 class= display
 subclass = VGA
   
 I've tried an alternate version of the binary driver
 (nvidia-driver-96xx) to see if there was any change, and it also
 reboots on X startup.
   
   
 --
 Check your AGP settings and consult the readme, chapter 9, for the
latest driver.  You should be running the latest driver with your
card.
   
 Make sure you have the correct AGP settings, either letting FreeBSD
do it in the kernel or disable the kernel and let the Nvidia driver
manage it.
  
   So, I'm not having terrific luck with any combination of settings I
   try.
  
   The latest FreeBSD driver release from Nvidia is the same as the
   version in the ports tree. This is what I've installed.
  
   Attempting the AGPGART route (building the driver with
   WITH_FREEBSD_AGP=yes and disabling NvAgp support in xorg.conf) still
   results in a reboot.
  
   Going the NvAGP route (Building without support for AGPGART, setting
   NvAgp to 1 in the xorg.conf, and setting hint.agp.0.disabled=1 in
   /boot/device.hints) also results in a reboot when X starts. One thing
   I notice here; when I specify hint.agp.0.disabled=1, and check the
   output of 'kldstat -v' after booting, I still see several agp drivers
   loaded:
  
   $ kldstat -v |grep -i agp
   387 pci/agp_ali
   388 pci/agp_amd
   389 pci/agp_amd64
   390 pci/agp_ati
   391 pci/agp_i810
   392 pci/agp_intel
   393 pci/agp_nvidia
   394 pci/agp_sis
   395 pci/agp_via
  
   Is this a problem?
  
   I suspect a couple of problems with what I'm doing. Number one,
   there's several knobs to turn (in the driver, in the OS, etc.) and
   it's possible I'm not getting the correct combination. Other thing is,
   I've been told by a technician that this is a PCI Express video card,
   so would AGP even come into play?
 
  Probably not. I'm seeing the same thing on one machine, no AGP on MB, and
  agp kernel modules loaded, but nvidia-driver doesn't care about it.
  Let's kill all red herrings:
  - Is COMPAT5X in the kernel?

 COMPAT5X doesn't show up anywhere in /usr/src/; I do have 'options
 COMPAT_FREEBSD5'  defined, though (stock SMP kernel).

  - Does running `nvidia-xconfig --query-gpu-info' reboot the system?
  - If you do not load the nvidia kernel module, but use Xorg's nv driver
  does this reboot the system?

 No, doesn't reboot the system. Output attached below.

 With the 'nv' driver, X starts fine. I don't use it because I don't
 have success with the two output displays and xinerama window sizing.

 nvidia-xconfig --query-gpu-info:

 Number of GPUs: 1

 GPU #0:
   Name  : Quadro FX 3450/4000 SDI
   PCI BusID : PCI:7:0:0

   Number of Display Devices: 2

   Display Device 0 (CRT-0):
  EDID Name : DELL 2001FP
  Minimum HorizSync : 31.000 kHz
  Maximum HorizSync : 80.000 kHz
  Minimum VertRefresh   : 56 Hz
  Maximum VertRefresh   : 76 Hz
  Maximum PixelClock: 162.000 MHz
  Maximum Width : 1600 pixels
  Maximum Height: 1200 pixels
  Preferred Width   : 1600 pixels
  Preferred Height  : 1200 pixels
  Preferred VertRefresh : 60 Hz
  Physical Width: 410 mm
  Physical Height   : 310 mm

   Display Device 1 (CRT-1):
  EDID Name : DELL 2001FP
  Minimum HorizSync : 31.000 kHz
  Maximum HorizSync : 80.000 kHz
  Minimum VertRefresh   : 56 Hz
  Maximum VertRefresh   : 76 Hz
  Maximum PixelClock: 162.000 MHz
  Maximum Width : 1600 pixels
  Maximum Height: 1200 pixels
  Preferred Width   : 1600 pixels
  

Re: Sony Ericsson: (da0:umass-sim0:0:0:0): NOT READY asc:3a, 0 (repeated)

2007-09-08 Thread Lowell Gilbert
Snow Mountains [EMAIL PROTECTED] writes:

 I posted this question 10 days ago, got no replies. Is it possible
 nobody here installed CD release of FreeBSD 6.2 and has Sony Ericsson
 mobile phone or something similar which causes similar problem? :-)

 Maybe summer time is the cause :-) So let me repeat:

 =

 Hi list,

 If I plug in my Secure Digital reader with the card from kamera, it is
 detected very fine and I can mount using -t msdosfs on /mnt/da0s1.

 But I have a little problem when trying to attach my Sony Ericcson
 W810 mobile phone to FreeBSD 6.2. See what I get:

 umass0: Sony Ericsson Sony Ericsson W810, rev 2.00/0.00, addr 5
 umass1: Sony Ericsson Sony Ericsson W810, rev 2.00/0.00, addr 5
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: SEMC Int.Memory  Removable Direct Access SCSI-0 device
 da0: 1.000MB/s transfers
 da0: Attempt to query device size failed: NOT READY, Medium not present
 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
 (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
 (da0:umass-sim0:0:0:0): NOT READY asc:3a,0
 (da0:umass-sim0:0:0:0): Medium not present
 (da0:umass-sim0:0:0:0): Unretryable error
 Opened disk da0 - 6
 da1 at umass-sim1 bus 1 target 0 lun 0
 da1: SEMC Mem-Stick  Removable Direct Access SCSI-0 device
 da1: 1.000MB/s transfers
 da1: Attempt to query device size failed: NOT READY, Medium not present
 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
 (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
 (da0:umass-sim0:0:0:0): NOT READY asc:3a,0
 (da0:umass-sim0:0:0:0): Medium not present
 (da0:umass-sim0:0:0:0): Unretryable error
 Opened disk da0 - 6
 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
 (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
 (da0:umass-sim0:0:0:0): NOT READY asc:3a,0
 (da0:umass-sim0:0:0:0): Medium not present
 (da0:umass-sim0:0:0:0): Unretryable error

 .. this block repeats many many times for da0 and da1 too.

 umass0: at uhub4 port 1 (addr 5) disconnected
 (da0:umass-sim0:0:0:0): lost device
 (da0:umass-sim0:0:0:0): removing device entry
 umass0: detached
 umass1: at uhub4 port 1 (addr 5) disconnected
 (da1:umass-sim1:1:0:0): lost device
 (da1:umass-sim1:1:0:0): removing device entry

 When I plug out the Ericsson,

 umass1: detached

 Other data: FreeBSD 6.2, straight from instalation cd:
 FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC

 dmesg | grep usb
 usb0: Intel 82801DB (ICH4) USB controller USB-A on uhci0
 usb0: USB revision 1.0
 usb1: Intel 82801DB (ICH4) USB controller USB-B on uhci1
 usb1: USB revision 1.0
 usb2: Intel 82801DB (ICH4) USB controller USB-C on uhci2
 usb2: USB revision 1.0
 usb3: EHCI version 1.0
 usb3: companion controllers, 2 ports each: usb0 usb1 usb2
 usb3: Intel 82801DB/L/M (ICH4) USB 2.0 controller on ehci0
 usb3: USB revision 2.0

 I searched google, more than 100 results with mistake messages, but
 nothing I can really use.

 What can be the reason? Do I have to send more data?

I have a Sony Ericsson phone, but it isn't a USB device.

These kinds of messages usually mean that the umass device is not
responding as expected to queries.  Some other Sony devices (cameras)
seem to have extra padding requirements; you could try adding a quirk
to the code for the umass device driver.  To look more deeply, you
would need someone with a decent knowledge of the USB protocols.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Dumb question about DES/MD5 in /etc/master.passwd

2007-09-08 Thread Lowell Gilbert
João Carlos Mendes Luís [EMAIL PROTECTED] writes:

This question must be really dumb, but I cannot find its answer.

In a somewhat recently updated RELENG_6 FreeBSD, whenever I run the
 program /usr/bin/passwd to change an users password, it encrypts the
 password using DES.  I have already configured /etc/login.conf for
 MD5, but it still goes with DES:

 *$ grep passwd /etc/login.conf
:passwd_format=md5:\
 #   :passwd_format=des:\
 $*

What could I be doing wrong?

If that matters, this system has been receiving system and /etc
 upgrades since Sep/2003.  Maybe some old configuration has been left
 around...

I'm a little too lazy to confirm if this is still the case with the
openpam libraries, but it used to be the case that the passwd_format
variable was not consulted for changing passwords on existing
accounts; the same format was always used.  passwd_format would be
obeyed if there were *no* password on the account (in particular, the
first time a password was assigned).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: snapshot is corrupt

2007-09-08 Thread Pollywog
On Saturday 08 September 2007 13:58:24 Jeffrey Goldberg wrote:
 I just got the following when trying a portsnap.  Any ideas?
 I really don't understand how portsnap works, so for me the error
 message isn't that useful.


 $ sudo portsnap fetch update
 Password:
 Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
 Fetching snapshot tag from portsnap3.FreeBSD.org... done.
 Fetching snapshot metadata... done.
 Updating from Fri Sep  7 04:51:41 CDT 2007 to Sat Sep  8 05:50:59 CDT
 2007.
 Fetching 4 metadata patches... done.
 Applying metadata patches... done.
 Fetching 0 metadata files... done.
 Fetching 1285 patches.
 102030405060708090100110120.
 ...
 13014015016017018019020021022023
 0240250260270280290300310320330.
 ...
 34035036037038039040041042043044
 0450460470480490500510520530540.
 ...550560570580590 done.
 Applying patches... done.
 Fetching 708 new ports or files... /usr/sbin/portsnap: cannot open
 e34b76c53bfd361a3defe2a9a884c0aa4f10da8b845ddf8e991fc419b3109f09.gz:
 No such file or directory
 snapshot is corrupt.

This is what I would do...

as root, 

cd /usr/ports/

rm -rf *  (make sure you are in /usr/ports/ when you do this)

portsnap fetch  (this will take a while)

portsnap extract

After that, you only need to do 'portsnap update' when you want to update the 
ports and it should not take too long if you have updated them recently.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ADSL Bandwidth Monitoring

2007-09-08 Thread Bahman M.

Joao Barros wrote:

On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:

Hi all,

I have an ADSL connection at home.

When I'm _uploading_ files the whole upload bandwidth is consumed; so
far so good.

But when _downloading_ no more than 30~40% of download bandwidth is
consumed.

The guys in the ISP say they've granted me the requested bandwidth but
this is not what I see in action.

How may I know the real bandwidth limits of my connection?  Any tool or
trick?  Or maybe I'm misunderstanding something about ADSL bandwidth?


First of all you have to take into account that with an ADSL
connection, I'm guessing PPPoE, you have overhead due to protocol
tunnelling.


The connection is a simple ethernet connection (sorry, I don't know the 
exact technical name) which requires no authentication and setup (I have 
a valid static IP address).  On a fresh system, I just need to specify 
gateway IP and my own machine's and plug the cable in and it starts working



Next you must verify that you don't max out your upload while testing
download speed. From my tests, up to 90% upload bandwidth usage is
safe and shows no impact on download performance.


Tested while not uploading and the results were the same.


And for last, use multiple download sources as only one may not be enough.
Find http or ftp mirrors close to you (on your ISP for ex) and start
downloading multiple ISOs for example.

I tested the connection by downloading 2~3 files simultaneously and used 
'bmon' as Mel suggested in another reply (thanks to him).  As I'd 
already guessed the RX don't get bigger than 30~40% of the expected 
bandwidth.  I performed the test with some other files and there was no 
difference.



Note: Make sure the device taking care of the PPPoE connection is
powerful enough to support your bandwidth. For example, I still have a
Linksys WRT54GL as router and I can easily see 100% cpu usage and load
1 and thus I can't use my max contracted bandwidth. Use the modem or
a powerful enough machine running FreeBSD of course :)



Don't worry about that! My connection is such slow that even the 
primitive NICs and CPUs would handle it :-)


Thanks,

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


Re: snapshot is corrupt

2007-09-08 Thread Jeffrey Goldberg

On Sep 8, 2007, at 10:10 AM, Pollywog wrote:



This is what I would do...

as root,

cd /usr/ports/

rm -rf *  (make sure you are in /usr/ports/ when you do this)


Safer would probably be

 rm -rf /usr/ports/
 mkdir /usr/ports


portsnap fetch  (this will take a while)

portsnap extract

After that, you only need to do 'portsnap update' when you want to  
update the
ports and it should not take too long if you have updated them  
recently.


Ah.  I somehow over looked the update portsnap command.  Thank you.

-j


--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

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


Re: need help using ndis and inconv

2007-09-08 Thread Terrence Wilson
When I enter the command:
# rehash

Nothing happens. I still can't run the iconv command. In fact, I don't 
see an iconv executable file anywhere. I installed it as a package, and 
when I run the command:
# pkg_info -L iconv-2.0_3 | less

I get a list of files -- mainly .so files and .cct files in the 
/usr/local/lib and /usr/local/libexec/iconv directories. The only 
executable files are a biconv file and a iconv_mktbl, which is perl 
script text executable.

I'm not sure what to do. Again, my main objective of to get ndis to 
convert a windows driver for my wireless nic card so I can use it on my 
Free BSD system.

When I run the command:
# biconv

I get the system sends back this message:
/libexec/ld-elf.so.1: Shared object libbiconv.so.2 not found, 
required by biconv. I'm not sure it matters, but libbiconv.so.2 is 
in the /usr/local/lib/ directory.

At this point I am totally lost. What else can I do to get iconv and 
ndis running?



Shantanoo Mahajan wrote:



On 08-Sep-07, at 5:17 AM, Terrence Wilson wrote:

 I need whatever help I can get to use ndis to converter wireless nic
 card so I can use it on my laptop. it seems that I don't have iconv
 working properly. I go into the ndisgen program by typing the command:

 # ndisgen

 The program opens and gives a list of options. I choose option 3:
 Convert driver. The program then asks me to type in the path to the
 .inf file. So I type:

 /cdrom/DRIVER/bcmwl5.inf

 The program then says This .INF file appears to be in Unicode. The
 iconv(1) utility does not appear to be installed. Please install this
 utility or convert the .INF file to ASCII and run this utility.

 So, I downloaded the iconv-2.0_3.tbz package and run the command:

 # pkg_add iconv-2.0_3.tbz

 Then I try ndisgen again and I get the above error message again. When
 I type in the command

 # pkg_info -L iconv-2.0_3 | less

 I get a list of files including biconv, iconv_mktbl, biconv.h, etc.  
 But
 when I enter the command:

 # iconv

 I get the message: Command not found.

Run following command if you have csh/tcsh as your shell:
# rehash

and then try the iconv command again.

regards,
shantanoo
___
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: snapshot is corrupt

2007-09-08 Thread Jeffrey Goldberg

On Sep 8, 2007, at 11:28 AM, Steve Bernacki wrote:

This happens to me from time to time on a few older (6.1) systems.   
Typically, re-running portsnap fetch clears the issue.


I did another fetch and that did seem to solve the problem.  So I  
didn't have to go to the more drastic solution of deleting the whole  
ports tree.  I'm wondering if things were in an inconsistent state  
for all of the p5-* ports that were updated.


I'm tracking RELENG_6_2

Cheers,

-j

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


Re: snapshot is corrupt

2007-09-08 Thread Steve Bernacki
This happens to me from time to time on a few older (6.1) systems.
Typically, re-running portsnap fetch clears the issue.

Steve


On 9/8/07, Jeffrey Goldberg [EMAIL PROTECTED] wrote:

 I just got the following when trying a portsnap.  Any ideas?
 I really don't understand how portsnap works, so for me the error
 message isn't that useful.


 $ sudo portsnap fetch update
 Password:
 Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
 Fetching snapshot tag from portsnap3.FreeBSD.org... done.
 Fetching snapshot metadata... done.
 Updating from Fri Sep  7 04:51:41 CDT 2007 to Sat Sep  8 05:50:59 CDT
 2007.
 Fetching 4 metadata patches... done.
 Applying metadata patches... done.
 Fetching 0 metadata files... done.
 Fetching 1285 patches.
 102030405060708090100110120.
 ...
 13014015016017018019020021022023
 0240250260270280290300310320330.
 ...
 34035036037038039040041042043044
 0450460470480490500510520530540.
 ...550560570580590 done.
 Applying patches... done.
 Fetching 708 new ports or files... /usr/sbin/portsnap: cannot open
 e34b76c53bfd361a3defe2a9a884c0aa4f10da8b845ddf8e991fc419b3109f09.gz:
 No such file or directory
 snapshot is corrupt.
 $


 Thanks,

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


VIA Technologies USB 2.0 IDE Bridge woes

2007-09-08 Thread Doug Poland
Hello,

I'm running 6.2-STABLE on i386.  Yesterday I purchased a 3.5 USB 2.0
Hard Drive Enclosure kit under the brand name RocketFish, model number
RF-HD35.  My intention was to put a couple of extra 250GB PATA drives to
work.

I mounted a WD 250GB PATA drive in the enclosure and plugged it into 
an open USB 2.0 port.  

The kernel reports: VIA Technologies Inc. USB 2.0 IDE Bridge

and in the logs I see:

Sep  8 10:40:27 compaqnx7400 kernel: umass2: VIA Technologies Inc. USB 2.0 IDE 
Bridge, rev 2.00/0.05, addr 4
Sep  8 10:40:27 compaqnx7400 kernel: umass1: at uhub4 port 6 (addr 3) 
disconnected
Sep  8 10:40:27 compaqnx7400 kernel: (da1:umass-sim1:1:0:0): lost device
Sep  8 10:40:27 compaqnx7400 kernel: (da1:umass-sim1:1:0:0): removing device 
entry
Sep  8 10:40:27 compaqnx7400 kernel: umass1: detached
Sep  8 10:40:27 compaqnx7400 kernel: da1 at umass-sim2 bus 2 target 0 lun 0
Sep  8 10:40:27 compaqnx7400 kernel: da1: WDC WD25 00JB-00REA0 20.0 Fixed 
Direct Access SCSI-2 device
Sep  8 10:40:27 compaqnx7400 kernel: da1: 40.000MB/s transfers
Sep  8 10:40:27 compaqnx7400 kernel: da1: 238475MB (488397168 512 byte sectors: 
255H 63S/T 30401C)
Sep  8 10:40:27 compaqnx7400 kernel: umass2: Invalid CSW: tag 7 should be 8
Sep  8 10:45:32 compaqnx7400 kernel: umass2: BBB reset failed, TIMEOUT

When I look at /dev/da* I see no device entries for da1.  Can someone
help me out getting this device functional under -STABLE?  If
-CURRENT is the only answer, I'm not opposed to giving that a try.

Just for a sanity check, I plugged the device into both a WinXP and OS X 10.4
machine and both boxes had no issue utilizing the device.

Many thanks in advance!

Doug



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


Re: ADSL Bandwidth Monitoring

2007-09-08 Thread Amitabh Kant
On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:
 I tested the connection by downloading 2~3 files simultaneously and used
 'bmon' as Mel suggested in another reply (thanks to him).  As I'd
 already guessed the RX don't get bigger than 30~40% of the expected
 bandwidth.  I performed the test with some other files and there was no
 difference.

 Thanks,

 Bahman

The bandwidth being advertised by your ISP would be the maximum
thoughput allowed on your DSL lines with multiple DSL users sharing
the same bandwidth, something that is generally known as contention
ratio.

See this link:
http://en.wikipedia.org/wiki/Contention_ratio

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


Re: ADSL Bandwidth Monitoring

2007-09-08 Thread Tim Daneliuk

Amitabh Kant wrote:

On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:

I tested the connection by downloading 2~3 files simultaneously and used
'bmon' as Mel suggested in another reply (thanks to him).  As I'd
already guessed the RX don't get bigger than 30~40% of the expected
bandwidth.  I performed the test with some other files and there was no
difference.

Thanks,

Bahman


The bandwidth being advertised by your ISP would be the maximum
thoughput allowed on your DSL lines with multiple DSL users sharing
the same bandwidth, something that is generally known as contention
ratio.

See this link:
http://en.wikipedia.org/wiki/Contention_ratio

Amitabh


But you should be able to hit the advertised bandwidth.  To the best
of my knowledge, DSL itself is NOT a shared medium.  It is a point-to-
point technology from your premise to the Central Office.  The
bandwidth *behind* the CO may be shared, but should be so large
as to not be a bottleneck.   My provider (Speakeasy) advertises
1.5/384 ADSL for my circuit and that is *exactly* what I get whether
moving a single file or multiple files simultaneously.

There are only two reasons I can think of that would prevent you
from hitting full advertised bandwidth:

1) You are too far away from the CO to hold up the circuit a full speed.
   Most DSL bridges/routers are adaptive and will downshift to a speed
   where the error rate is reduced to an acceptable level.  Even if
   you are not far away from the CO, you will also see this if the copper
   pair is noisy for some other reason: bad grounding, bad splicing, old
   wire, etc.

2) Your premise wiring is hosed.  Home telephone wiring is typically
   utter crap for data, even on newer homes.   A new run of Cat 3 cable
   directly from the Network Interface box on the side of the building
   to the jack where the DSL bridge plugs in can do wonders.  Also make
   sure that the cable from the bridge to that jack is good - I just had
   one go bad and wreak havoc for a while in my office.

HTH,

--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/


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


Re: ADSL Bandwidth Monitoring

2007-09-08 Thread RW
On Sat, 08 Sep 2007 15:27:38 -0500
Tim Daneliuk [EMAIL PROTECTED] wrote:

 Amitabh Kant wrote:
  On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:
  I tested the connection by downloading 2~3 files simultaneously
  and used 'bmon' as Mel suggested in another reply (thanks to
  him).  As I'd already guessed the RX don't get bigger than 30~40%
  of the expected bandwidth.  I performed the test with some other
  files and there was no difference.
 
  Thanks,
 
  Bahman
  
  The bandwidth being advertised by your ISP would be the maximum
  thoughput allowed on your DSL lines with multiple DSL users sharing
  the same bandwidth, something that is generally known as contention
  ratio.
  
  See this link:
  http://en.wikipedia.org/wiki/Contention_ratio
  
  Amitabh
 
 But you should be able to hit the advertised bandwidth.  To the best
 of my knowledge, DSL itself is NOT a shared medium.  It is a point-to-
 point technology from your premise to the Central Office.  The
 bandwidth *behind* the CO may be shared, but should be so large
 as to not be a bottleneck.   

It depends on your circumstances. Some people are constrained by
contention ratio some aren't. Some ISPs offer a better ratio for a
more expensive accounts.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ADSL Bandwidth Monitoring

2007-09-08 Thread Tim Daneliuk

RW wrote:

On Sat, 08 Sep 2007 15:27:38 -0500
Tim Daneliuk [EMAIL PROTECTED] wrote:


Amitabh Kant wrote:

On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:

I tested the connection by downloading 2~3 files simultaneously
and used 'bmon' as Mel suggested in another reply (thanks to
him).  As I'd already guessed the RX don't get bigger than 30~40%
of the expected bandwidth.  I performed the test with some other
files and there was no difference.

Thanks,

Bahman

The bandwidth being advertised by your ISP would be the maximum
thoughput allowed on your DSL lines with multiple DSL users sharing
the same bandwidth, something that is generally known as contention
ratio.

See this link:
http://en.wikipedia.org/wiki/Contention_ratio

Amitabh

But you should be able to hit the advertised bandwidth.  To the best
of my knowledge, DSL itself is NOT a shared medium.  It is a point-to-
point technology from your premise to the Central Office.  The
bandwidth *behind* the CO may be shared, but should be so large
as to not be a bottleneck.   


It depends on your circumstances. Some people are constrained by
contention ratio some aren't. Some ISPs offer a better ratio for a
more expensive accounts.


I don't understand this.  If the actual DSL circuit is point-to-point -
i.e., not shared between the premise and the DSLAM in the CO, just
exactly *where* is the contention occuring?  I would think (and could
be wrong) that the only other place would be in the bandwidth behind
the DSLAM - the actual phone network.  But this is typically very,
very high capacity stuff, at least here in the US, and I sort of doubt
it couldn't deliver the stated bandwidth.

Not arguing here, just wondering...

--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

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


question about BSDCan videos

2007-09-08 Thread Ovi

Hello

I've found this website: 
http://www.mavetju.org/unix/multimedia/openbsd/multimedia.html


There are links for BSDCan videos and other FreeBSD resources.
I my question is: can I upload thoses videos to Google Video and then 
embed them on my website?


My website is http://www.freebsdonline.com

Best Regards,
ovidiu

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


Re: /usr/ports portupgrade when only using packages

2007-09-08 Thread Adam J Richardson

Mel wrote:

On Wednesday 05 September 2007 20:34:56 Adam J Richardson wrote:


Well, that's easy...

# rm -R /usr/ports

Saves you a load of disk space, too. The only downside is you get
slightly older versions of software with packages.

Oh, and don't use portsnap, it'll undo that rm -R for you. Using
portupgrade -PP works perfectly well on those rare occasions when I
want to install a package rather than a port.


I'm really interested in seeing the output of portupgrade -PP after 
rm -R /usr/ports  mkdir /usr/ports.


Yes, that might be interesting. I've never tried it.

I wonder though, is portupgrade the tool for this? Would not pkg_add -r 
whatever be more appropriate?


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


RE: ADSL Bandwidth Monitoring

2007-09-08 Thread Ted Mittelstaedt

Get a personal website from the ISP

Upload a file to the personal webserver

Download the file from the personal webserver.

If the bandwidth isn't what it's supposed to be, then
have the ISP call the local telephone company and have
that company check to see that your modem is training at
the correct rate.

adsl modems will train at lower speeds if there is
trouble with the phone line.

Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Bahman M.
 Sent: Saturday, September 08, 2007 7:16 AM
 To: freebsd-questions@freebsd.org
 Subject: ADSL Bandwidth Monitoring
 
 
 Hi all,
 
 I have an ADSL connection at home.
 
 When I'm _uploading_ files the whole upload bandwidth is consumed; so 
 far so good.
 
 But when _downloading_ no more than 30~40% of download bandwidth is 
 consumed.
 
 The guys in the ISP say they've granted me the requested bandwidth but 
 this is not what I see in action.
 
 How may I know the real bandwidth limits of my connection?  Any tool or 
 trick?  Or maybe I'm misunderstanding something about ADSL bandwidth?
 
 TIA,
 
 Bahman
 ___
 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: FreeBSD 6.2 - STABLE sysctl: hw.acpi.cpu.cx_lowest: Invalid argument

2007-09-08 Thread Bogdan Potishuk
George Vanev said the following on 30.08.2007 12:22:
 Hi,
 
 I tried to build a custom kernel, but i get the following error on boot up:
 hw.acpi.cpu.cx_lowest: C1
 sysctl: hw.acpi.cpu.cx_lowest: Invalid argument
 
 I have updated the source tree.
 I tried to compile and install /usr/src/sys/i386/conf/GENERIC and
 /usr/src/sys/i386/conf/SMP
 The same error occurs.
 
 I have no problem with the precompiled SMP kernel that's initially
 installed.
 
 Any ideas what I did wrong?

Look at
http://www.freebsd.org/cgi/query-pr.cgi?pr=108581cat=

-- 
Regards,
Bogdan
---
KeyID: 0x84B8D5142569D30B
Fingerprint: 78FC 5C40 07CC D331 148E CC79 84B8 D514 2569 D30B
Keyserver: keyserver.pgp.com
---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: ADSL Bandwidth Monitoring

2007-09-08 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Amitabh Kant
 Sent: Saturday, September 08, 2007 12:25 PM
 To: Bahman M.
 Cc: freebsd-questions@freebsd.org
 Subject: Re: ADSL Bandwidth Monitoring


 On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:
  I tested the connection by downloading 2~3 files simultaneously and used
  'bmon' as Mel suggested in another reply (thanks to him).  As I'd
  already guessed the RX don't get bigger than 30~40% of the expected
  bandwidth.  I performed the test with some other files and there was no
  difference.
 
  Thanks,
 
  Bahman

 The bandwidth being advertised by your ISP would be the maximum
 thoughput allowed on your DSL lines with multiple DSL users sharing
 the same bandwidth, something that is generally known as contention
 ratio.

Rubbish.  I work for an ISP and this is nonsense.  DSL is not a
shared medium until it gets to the ISP and the ISP should be able
to handle full rate circuits internally.

He should be able to get max bandwidth from his home system to his
ISP's system.  All our customers can. Beyond that, from his ISP to
the rest of the world
that is a different story.  But he needs to get the bandwidth correcte
dbetween himself and his ISP first.

Ted

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


Nginx + FastCGI + PHP5 on FreeBSD 7.0

2007-09-08 Thread OutBackDingo
Ok wizards 

Nginx Lighttpd Fast-cgi and PHP5

seems all configured, yet when i point a browser at a php page 
it tries to download the file, instead of render it in the browser,
any ideas what i missed

--nginx.conf--
#user  nobody;
worker_processes  1;

events {
worker_connections  1024;
}

http {
include   mime.types;
default_type  application/octet-stream;

sendfileon;

keepalive_timeout  65;

server {
listen   80;
server_name  localhost;

location / {
root   /usr/local/www/nginx;
index  index.html index.php index.htm;
}

error_page   500 502 503 504  /50x.html;
location = /50x.html {
root   /usr/local/www/nginx-dist;
}

# .php5 sent to php5
location ~ .*\.php5$ {
include /usr/local/etc/nginx/fastcgi_params;
fastcgi_pass  127.0.0.1:10005;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /$fastcgi_script_name;
}
}

and
/usr/local/sbin/spawn-fcgi -f /usr/local/bin/php-cgi -a 127.0.0.1 -p 9000 -u www




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


RE: ADSL Bandwidth Monitoring

2007-09-08 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Tim Daneliuk
 Sent: Saturday, September 08, 2007 2:01 PM
 To: RW
 Cc: freebsd-questions@freebsd.org
 Subject: Re: ADSL Bandwidth Monitoring
 
 
 RW wrote:
  On Sat, 08 Sep 2007 15:27:38 -0500
  Tim Daneliuk [EMAIL PROTECTED] wrote:
  
  Amitabh Kant wrote:
  On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:
  I tested the connection by downloading 2~3 files simultaneously
  and used 'bmon' as Mel suggested in another reply (thanks to
  him).  As I'd already guessed the RX don't get bigger than 30~40%
  of the expected bandwidth.  I performed the test with some other
  files and there was no difference.
 
  Thanks,
 
  Bahman
  The bandwidth being advertised by your ISP would be the maximum
  thoughput allowed on your DSL lines with multiple DSL users sharing
  the same bandwidth, something that is generally known as contention
  ratio.
 
  See this link:
  http://en.wikipedia.org/wiki/Contention_ratio
 
  Amitabh
  But you should be able to hit the advertised bandwidth.  To the best
  of my knowledge, DSL itself is NOT a shared medium.  It is a point-to-
  point technology from your premise to the Central Office.  The
  bandwidth *behind* the CO may be shared, but should be so large
  as to not be a bottleneck.   
  
  It depends on your circumstances. Some people are constrained by
  contention ratio some aren't. Some ISPs offer a better ratio for a
  more expensive accounts.
 
 I don't understand this.  If the actual DSL circuit is point-to-point -
 i.e., not shared between the premise and the DSLAM in the CO, just
 exactly *where* is the contention occuring?

Inside the ISP's router.

However even cheap ISP routers you can buy off Ebay for a couple grand
have enough bandwidth to route between multiple 100BaseT connections.  For
example the 7206 has 2 800Mbt backplanes.  That would mean you could
run 500 1.5Mbt DSL customers at full bore to a server on your local
network before contention would set in.  And an ISP with that many
customers can afford a more powerful router than a couple K used 7206.

The upshot is his ISP doesen't know how to troubleshoot DSL.

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


Nginx PHP5 Fast-CGI FreeBSD CURRENT

2007-09-08 Thread OutBackDingo
Ok wizards 

Nginx Lighttpd Fast-cgi and PHP5

seems all configured, yet when i point a browser at a php page 
it tries to download the file, instead of render it in the browser,
any ideas what i missed

--nginx.conf--
#user  nobody;
worker_processes  1;

events {
worker_connections  1024;
}

http {
include   mime.types;
default_type  application/octet-stream;

sendfileon;

keepalive_timeout  65;

server {
listen   80;
server_name  localhost;

location / {
root   /usr/local/www/nginx;
index  index.html index.php index.htm;
}

error_page   500 502 503 504  /50x.html;
location = /50x.html {
root   /usr/local/www/nginx-dist;
}

# .php5 sent to php5
location ~ .*\.php5$ {
include /usr/local/etc/nginx/fastcgi_params;
fastcgi_pass  127.0.0.1:10005;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /$fastcgi_script_name;
}
}

and
/usr/local/sbin/spawn-fcgi -f /usr/local/bin/php-cgi -a 127.0.0.1 -p
9000 -u www





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


Re: ADSL Bandwidth Monitoring

2007-09-08 Thread Tim Daneliuk

Ted Mittelstaedt wrote:


Tim Daneliuk [EMAIL PROTECTED] wrote:



I don't understand this.  If the actual DSL circuit is point-to-point -
i.e., not shared between the premise and the DSLAM in the CO, just
exactly *where* is the contention occuring?


Inside the ISP's router.

However even cheap ISP routers you can buy off Ebay for a couple grand
have enough bandwidth to route between multiple 100BaseT connections.  For
example the 7206 has 2 800Mbt backplanes.  That would mean you could
run 500 1.5Mbt DSL customers at full bore to a server on your local
network before contention would set in.  And an ISP with that many
customers can afford a more powerful router than a couple K used 7206.

The upshot is his ISP doesen't know how to troubleshoot DSL.

Ted


That's more-or-less what I figured. When I switched from XO to
Speakeasy, I got nearly twice the speed - i.e., What the circuit
was actually supposed to do in the first place - and both use
the same CO and ISP (Covad).  The only other difference was that
XO had me using a Speedstream and Speakeasy a Brightport bridge.
No matter what XO did, they could never hold up the circuit
at full speed, but Speakeasy has no problem doing this.  In
exchanging bridges, there is some difference, but there's no
question that the provider (and their relationship with the
DISP in the CO) does make a difference.

--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

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


Re: Nginx PHP5 Fast-CGI FreeBSD CURRENT

2007-09-08 Thread Patrick Lamaiziere
Le Sun, 09 Sep 2007 01:38:50 +0300,
OutBackDingo [EMAIL PROTECTED] a écrit :

 # .php5 sent to php5
 location ~ .*\.php5$ {

I'm not sure for this expression, i use for .php
 location ~ \.php$ {

 include /usr/local/etc/nginx/fastcgi_params;
 fastcgi_pass  127.0.0.1:10005;
 fastcgi_index index.php;
 fastcgi_param SCRIPT_FILENAME /$fastcgi_script_name;

You should append the root location of the server:
fastcgi_param
SCRIPT_FILENAME /usr/local/www/nginx$fastcgi_script_name;

 /usr/local/sbin/spawn-fcgi -f /usr/local/bin/php-cgi -a 127.0.0.1 -p
 9000 -u www

The port should be 10005 for « fastcgi_pass  127.0.0.1:10005; »

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


csh if..then delhema.

2007-09-08 Thread Grant Peel
Hi all,

I have tried every escape sequence I can think of, and I still get Division by 
0 error here..

 if ($filesystem == \/) then
$fsname = $fsnm1
elseif ($filesystem == '/var') then
$fsname =$fsnm2
elseif ($filesystem == '/usr') then
$fsname = $fsnm3
elseif ($filesystem == '/home') then
$fsname = $fsnm4
else
$fsname = 'GREATERTHAN4

Any ideas how to excape the forward slashes in the if statemnt?

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


Re: ADSL Bandwidth Monitoring

2007-09-08 Thread RW
On Sat, 8 Sep 2007 15:30:57 -0700
Ted Mittelstaedt [EMAIL PROTECTED] wrote:

 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Amitabh
  Kant Sent: Saturday, September 08, 2007 12:25 PM
  To: Bahman M.
  Cc: freebsd-questions@freebsd.org
  Subject: Re: ADSL Bandwidth Monitoring
 
 
  On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:
   I tested the connection by downloading 2~3 files simultaneously
   and used 'bmon' as Mel suggested in another reply (thanks to
   him).  As I'd already guessed the RX don't get bigger than 30~40%
   of the expected bandwidth.  I performed the test with some other
   files and there was no difference.
  
   Thanks,
  
   Bahman
 
  The bandwidth being advertised by your ISP would be the maximum
  thoughput allowed on your DSL lines with multiple DSL users sharing
  the same bandwidth, something that is generally known as contention
  ratio.
 
 Rubbish.  I work for an ISP and this is nonsense.  DSL is not a
 shared medium until it gets to the ISP and the ISP should be able
 to handle full rate circuits internally.

DSL is organized in different ways in different parts of the world,
and contention ratio is certainly an issue in some places. 

The OPs email address domain is registered from  addresses in Malaysia.
Unless you've worked for ISPs in the country where his DSL is located,
your experience isn't very relevant.

I'm not saying that his problem is due to contention ratio, just that
there is as yet no grounds to dismiss the suggestion as rubbish.

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


Re: setting up xorg - mouse

2007-09-08 Thread Computer Answers
sorry about the time delay:
um it is a generic PS2 mouse made by digiView
I tried running the xorg config wizard a few tmes choosing different
mouse types each time.  None of them work.

as for xorg.conf
Section InputDevice
Identifier Mouse0
Driver mouse
Option Protocall Auto
Option Device /dev/sysmouse

(side point) if someone would tell me how to copy and paste with only
a keyboard that would be really nice
On 9/8/07, Martin Tournoij [EMAIL PROTECTED] wrote:
 On Fri 07 Sep 2007 22:09, Computer Answers wrote:
  Hi,
  right now I am running freeBSD 6.2 RELEASE with xorg 6.9 and I am
  unable to get xorg (icewm) to detect my mouse.
  ~comperr

 Is moused running? And if it is, how is it configured?
 See the FreeBSD handbook and the moused manpage for details:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html#MOUSE

 Which brand/model mouse do you have? And how does the mouse connect to
 your PC (PS2 or USB)?

 What are your mouse settings in /etc/X11/xorg.conf

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


Re: Sony Ericsson: (da0:umass-sim0:0:0:0): NOT READY asc:3a, 0 (repeated)

2007-09-08 Thread Snow Mountains
Lowell Gilbert wrote:

 I have a Sony Ericsson phone, but it isn't a USB device.

Thanks Lowell for your response. Do you attach your Sony Ericsson to
computer at all, for example if you use it as camera? Is there any
other option, or something that can you recommend? Another cable?

 These kinds of messages usually mean that the umass device is not
 responding as expected to queries.  Some other Sony devices (cameras)
 seem to have extra padding requirements; you could try adding a quirk
 to the code for the umass device driver.  To look more deeply, you
 would need someone with a decent knowledge of the USB protocols.

Can you help me about what text I should add (in umass.c??) I mean,
how to add quirk just for this specific phone? Sorry, but this is far
away from my knowledge but I would like to try. I know how to
recompile kernel and test it.

I searched google for how to do this, but everything is too high level
discussion.

Thanks

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


Re: csh if..then delhema.

2007-09-08 Thread Giorgos Keramidas
On 2007-09-08 20:00, Grant Peel [EMAIL PROTECTED] wrote:
 Hi all,

 I have tried every escape sequence I can think of, and I still get
 Division by 0 error here..

  if ($filesystem == \/) then
 $fsname = $fsnm1
 elseif ($filesystem == '/var') then
 $fsname =$fsnm2
 elseif ($filesystem == '/usr') then
 $fsname = $fsnm3
 elseif ($filesystem == '/home') then
 $fsname = $fsnm4
 else
 $fsname = 'GREATERTHAN4

 Any ideas how to excape the forward slashes in the if statemnt?

Use a better scripting language?

Seriously now, unless you are willing to experiment with csh until you
get its 'weird' escaping rules to work, you should consider using
something with a more predictable way of escaping string literals.

For example, there is nothing above which cannot be done a lot more
easily with Perl and a hash table:

%fsmap = (
  '/' = $fsnm1,
  '/var'  = $fsnm2,
  '/usr'  = $fsnm3,
  '/home' = $fsnm4,
);

$fsname = $fsmap{$filesystem} or 'unknown';

Using the hash results in much 'cleaner' code too.

Now, go forth and convert a csh script to Perl, Python, or something
with a cleaner syntax :)

- Giorgos

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


Re: ADSL Bandwidth Monitoring

2007-09-08 Thread Joao Barros
On 9/8/07, Ted Mittelstaedt [EMAIL PROTECTED] wrote:


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Amitabh Kant
  Sent: Saturday, September 08, 2007 12:25 PM
  To: Bahman M.
  Cc: freebsd-questions@freebsd.org
  Subject: Re: ADSL Bandwidth Monitoring
 
 
  On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:
   I tested the connection by downloading 2~3 files simultaneously and used
   'bmon' as Mel suggested in another reply (thanks to him).  As I'd
   already guessed the RX don't get bigger than 30~40% of the expected
   bandwidth.  I performed the test with some other files and there was no
   difference.
  
   Thanks,
  
   Bahman
 
  The bandwidth being advertised by your ISP would be the maximum
  thoughput allowed on your DSL lines with multiple DSL users sharing
  the same bandwidth, something that is generally known as contention
  ratio.

 Rubbish.  I work for an ISP and this is nonsense.  DSL is not a
 shared medium until it gets to the ISP and the ISP should be able
 to handle full rate circuits internally.

From the customer to the DSLAM it's a copper pair. If the DSLAM is far
from the ISP backbone you have a shared connection. That's where
contention is applied. If for example he has 10mbits downstream
contracted and there are several power users hitting the same DSLAM
and the link to the ISP isn't big enough...

 He should be able to get max bandwidth from his home system to his
 ISP's system.  All our customers can. Beyond that, from his ISP to
 the rest of the world
 that is a different story.  But he needs to get the bandwidth correcte
 dbetween himself and his ISP first.

He should be able to get max bandwidth but not every ISP in the world
has link bandwidth allocated for all their customers. Example: you
have 100 customers with 10mbits contracted downstream. Think every ISP
out there will have a 1Gbps link from the DSLAM to the backbone? Most
definitely not. The same happens for mail servers. Do you believe
every ISP has enough storage space to hold the advertised email
storage space to their total number of customers? Most definitely not.

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


Re: Dumb question about DES/MD5 in /etc/master.passwd

2007-09-08 Thread João Carlos Mendes Luís

Lowell Gilbert wrote:

João Carlos Mendes Luís [EMAIL PROTECTED] writes:

  

   This question must be really dumb, but I cannot find its answer.

   In a somewhat recently updated RELENG_6 FreeBSD, whenever I run the
program /usr/bin/passwd to change an users password, it encrypts the
password using DES.  I have already configured /etc/login.conf for
MD5, but it still goes with DES:

*$ grep passwd /etc/login.conf
   :passwd_format=md5:\
#   :passwd_format=des:\
$*

   What could I be doing wrong?

   If that matters, this system has been receiving system and /etc
upgrades since Sep/2003.  Maybe some old configuration has been left
around...



I'm a little too lazy to confirm if this is still the case with the
openpam libraries, but it used to be the case that the passwd_format
variable was not consulted for changing passwords on existing
accounts; the same format was always used.  passwd_format would be
obeyed if there were *no* password on the account (in particular, the
first time a password was assigned).
  


That was not the case.  An account with MD5 password was turning into DES.

The answer has been given by the previous message, and it was really 
dumb as I supposed: I did not run cap_mkdb!  :-(


   Jonny

--
João Carlos Mendes Luís - Networking Engineer - [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: csh if..then delhema.

2007-09-08 Thread Garrett Cooper

Giorgos Keramidas wrote:

On 2007-09-08 20:00, Grant Peel [EMAIL PROTECTED] wrote:
  

Hi all,

I have tried every escape sequence I can think of, and I still get
Division by 0 error here..

 if ($filesystem == \/) then
$fsname = $fsnm1
elseif ($filesystem == '/var') then
$fsname =$fsnm2
elseif ($filesystem == '/usr') then
$fsname = $fsnm3
elseif ($filesystem == '/home') then
$fsname = $fsnm4
else
$fsname = 'GREATERTHAN4

Any ideas how to excape the forward slashes in the if statemnt?



Use a better scripting language?

Seriously now, unless you are willing to experiment with csh until you
get its 'weird' escaping rules to work, you should consider using
something with a more predictable way of escaping string literals.

For example, there is nothing above which cannot be done a lot more
easily with Perl and a hash table:

%fsmap = (
  '/' = $fsnm1,
  '/var'  = $fsnm2,
  '/usr'  = $fsnm3,
  '/home' = $fsnm4,
);

$fsname = $fsmap{$filesystem} or 'unknown';

Using the hash results in much 'cleaner' code too.

Now, go forth and convert a csh script to Perl, Python, or something
with a cleaner syntax :)

- Giorgos
  


   Or if you want to stick with Unix scripting...

#!/bin/sh

case $filesystem in
   '/') fsname=$fsnm1;;
   '/var') fsname=$fsnm2;;
   '/usr') fsname=$fsnm3;;
   '/home') fsname=$fsnm4;;
   *) echo Oops.. that fs is unknown; exit 1 ;;
esac

   There ya go. The single quotes are optional in the case statement, 
but bourne compatible shells are semi-regex intelligent, so to avoid to 
any problems, I single-quoted the strings.


   tcsh can burn in hell for all I care. It's a horrible shell IMNHO 
(in my not-so humble opinion). Now if I could only convince the rest of 
the EE community to agree, that'd be nice. Trolls welcome :).


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


The FreeBSD Diary: 2007-08-19 - 2007-09-08

2007-09-08 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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