Fw: help with installation of 6.2 release i386 on older HP desktop

2008-01-07 Thread Joseph Eaton
More precisely.  I do select the elements I want (All and then Exit and 
then Install from CD-ROM and then some files flash before my eyes and then I 
come to a screen that says: User Confirmation Requested and below that 
Unable to transfer the base distribution from adc0 and on the next line Do 
you want to try to retrieve it again? and then at the bottom Yes or No and 
I can never retrieve it successfully or exit successfully.  Thanks again for 
your help.

- Forwarded Message 
From: Joseph Eaton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 6, 2008 11:56:49 PM
Subject: help with installation of 6.2 release i386 on older HP desktop


Thanks in advance for your help.  I am a newbie trying to install FreeBSD for 
the first time.  I have an HP desktop computer with 64MB of SDRAM, a 12 GB hard 
drive and a Pentium II processor running at 333 MHz.  I am trying to put 
FreeBSD 6.2 on this machine but have not had any luck.  I've read the 
documentation, but stil can't seem to figure out what to do.

I downloaded the ISO mage for the bootonly disk and checked that it using 
checksum.md5, then burned a disk image using InfrRecorder to a fresh CD-R.  I 
set the bios on my HP to boot from the CDROM drive and put the disk in.  It 
walks me through the installation process but never gives me a chance
 to exit.  I select the Standard installation but get stuck shortly thereafter 
when I try to tell it to use the option to set up for a single user using the 
X-Window system.  It won't let me select multiple elements like bin and 
library.  I get stuck and then it never completes and won't let me out of the 
setup screen series.


Please let me know if I am not providing enough information above.  I welcome 
any help.  Thanks.




  Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


help with installation of 6.2 release i386 on older HP desktop

2008-01-07 Thread Joseph Eaton
Thanks in advance for your help.  I am a newbie trying to install FreeBSD for 
the first time.  I have an HP desktop computer with 64MB of SDRAM, a 12 GB hard 
drive and a Pentium II processor running at 333 MHz.  I am trying to put 
FreeBSD 6.2 on this machine but have not had any luck.  I've read the 
documentation, but stil can't seem to figure out what to do.

I downloaded the ISO mage for the bootonly disk and checked that it using 
checksum.md5, then burned a disk image using InfrRecorder to a fresh CD-R.  I 
set the bios on my HP to boot from the CDROM drive and put the disk in.  It 
walks me through the installation process but never gives me a chance to exit.  
I select the Standard installation but get stuck shortly thereafter when I try 
to tell it to use the option to set up for a single user using the X-Window 
system.  It won't let me select multiple elements like bin and library.  I get 
stuck and then it never completes and won't let me out of the setup screen 
series.


Please let me know if I am not providing enough information above.  I welcome 
any help.  Thanks.




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fw: help with installation of 6.2 release i386 on older HP desktop

2008-01-07 Thread Manolis Kiagias



Joseph Eaton wrote:

More precisely.  I do select the elements I want (All and then Exit and then Install from CD-ROM and then some files flash 
before my eyes and then I come to a screen that says: User Confirmation Requested and below that Unable to transfer the base distribution 
from adc0 and on the next line Do you want to try to retrieve it again? and then at the bottom Yes or No and I can 
never retrieve it successfully or exit successfully.  Thanks again for your help.

- Forwarded Message 
From: Joseph Eaton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 6, 2008 11:56:49 PM
Subject: help with installation of 6.2 release i386 on older HP desktop


Thanks in advance for your help.  I am a newbie trying to install FreeBSD for 
the first time.  I have an HP desktop computer with 64MB of SDRAM, a 12 GB hard 
drive and a Pentium II processor running at 333 MHz.  I am trying to put 
FreeBSD 6.2 on this machine but have not had any luck.  I've read the 
documentation, but stil can't seem to figure out what to do.

I downloaded the ISO mage for the bootonly disk and checked that it using 
checksum.md5, then burned a disk image using InfrRecorder to a fresh CD-R.  I set the 
bios on my HP to boot from the CDROM drive and put the disk in.  It walks me through the 
installation process but never gives me a chance
 to exit.  I select the Standard installation but get stuck shortly thereafter 
when I try to tell it to use the option to set up for a single user using the 
X-Window system.  It won't let me select multiple elements like bin and 
library.  I get stuck and then it never completes and won't let me out of the 
setup screen series.


Please let me know if I am not providing enough information above.  I welcome 
any help.  Thanks.
  

Please have a look at the handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-diff-media.html

esp. section 2.13.1

The ISO you downloaded cannot be used for offline (CD-ROM based) 
installation. It is intended to pull install files from the Internet.
Download at least the first full cd. Download all the CDs if you plan to 
install packages from the disks. Bear in mind 6.2-RELEASE is now a years 
old, and the packages in the CD are quite aged. There are other methods 
of getting updated programs once the base system is installed. However 
as a newbie getting a first feel of the system this is not terribly 
important. Please make sure you read the excellent handbook.


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


Re: 7.0-PRERELEASE installworld fails [SOLVED]

2008-01-07 Thread Unga

--- Boris Samorodov [EMAIL PROTECTED] wrote:

 This may be an overkill but should do the
 job:
 # rm -r /usr/src /usr/obj
 restore sources
 # cd /usr/src
 # make buildworld
 # make kernel
 # mergemaster -p
 # make installworld
 # mergemaster -i
 

This procedure solved the problem. Thank you very
much.

Best Regards
Unga


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port collection RELEASE6.2 lost after reinstall with CVSUP

2008-01-07 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Frank Shute wrote:
 
 So if it's not branched but tagged, what's the difference between the
 ports tree I get if I use RELENG_4_8  compared to RELENG_7_0 as tags
 in my ports supfile?

Probably not a very great deal -- you'll get equally disappointing
results for both of those.  RELENG_X and RELENG_X_Y tags / branches
apply to the src collection *only*.  If you try and use them on the
ports you'll end up with a whole lot of nothing.  None of the ports
tree is intentionally tagged with anything matching 'RELENG'

In general, you always want the HEAD of the ports tree.  There's
very little point in using anything else.  However it is possible
to use RELEASE_X_Y_0 to match the state of the ports tree used
to generate the packages distributed with X.Y RELEASE, or if you
still haven't upgraded all your 4.x machines yet, you can use
RELEASE_4_EOL to match the last state of the tree before the 4.x
compatability code was stripped out.

Note that cvsup'ing an old version of the ports tree is not
guaranteed to provide a workable ports collection: the dist files
the ports rely upon are not in the control of the FreeBSD project
and there is no assurance that old versions of software are still
available for download.  Plus you will be struggling with unfixed
security bugs if you've installed portaudit -- or installing
vulnerable software if you haven't.

Cheers,

Matthew

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

iD8DBQFHgerP8Mjk52CukIwRCFAlAKCNmQAfP3JDHdBde/s4VWwcs3BGsACeNG/d
kbfd4wXcBsG1U6tYvwIXmD0=
=3Rc0
-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: outgoing mail STOPPED.

2008-01-07 Thread Gary Kline

Hi gang,

first a public, up-front *thanks* to Bill Swingle and 
everyone else here at magnesium.net. If not for this site
AND my networking (at least)  working, I would be severely
SOL and sans oar.  At least this acct lets me tell a few 
people that i'm still hrer; havent given up  

So: again: i'm exceptionally grateful.   . [volumes left 
unsaid.]


On Sat, Jan 05, 2008 at 10:49:54AM +, Matthew Seaman wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Gary Kline wrote:
 
  Anybody know how I messed up? ---This is no excuse, but because 
  of the recent build problems I did wholesale ``portupgrades -af''
  (**sigh**)
  
  Why cannot creat the queue files??
 
 At a guess, either the queue directories for either or both the MSP
 and MTA sendmail instances have the wrong permissions or one or other
 of MSP, MTA sendmail instances is running with the wrong user credentials.
 You shouldn't get that by doing portupgrade -- certainly I've done a few
 'portupgrade -af' jobs as part of 6.x - 7.0 upgrading and not seen
 anything similar.
 
 Anyhow, you can check that files and directories have the correct
 ownership etc. by:
 
# mtree -p / -ef /etc/mtree/BSD.sendmail.dist
# mtree -p /var -ef /etc/mtree/BSD.var.dist
 
 You can fix any problems by:
 
# mtree -p / -U /etc/mtree/BSD.sendmail.dist
# mtree -p /var -U /etc/mtree/BSD.var.dist

I found out on my own that my clientqueue was 755. my doing.
it was set (not by me to something bizarre like 740.  i thought 
i had opened it up to 777 as a test.  i fixed that by hand.
no diff.

long-story-short, i ran into worse problems of Connection refused
for tao==10.0.0.250, then after a bollixed mergemaster, 
Connection refused with tao only be recognized as 127.0.0.1.
I knew that / I had blown away my working /etc/hosts file.  I check,
yup, all my 10.* hosts were gone.  After I added back my private 
network, sendmail went back to the better failure, seeing Tao
as 10.250, oldtao|tao2 at 100.247, etc.

Then I checked my /etc/namedb/s/db.thought.org to see id anything there 
could conceivably be hanging port 25.  Zip.  (I still updated the
date and re-exed. I checked with ps and grep to find something new:

   ~
624  ??  Ss 0:01.16 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/r
p0 0:27 sage [5005]

In theory I know pretty much what bind9does, c; but why this
change?  (Part of my gnome (2.20) is missing so I cannot max
enlarge the konsole; ps -alx does not wrap so I cant see the 
entire string.)  I can pimg ns1.thought.org--obviously.  But if you
see anything here,  Matthew, would you please let me know?
  

 
 The other thing to check is that you are running sendmail using the
 correct users and groups.  You should see something like this:
 
# ps -o ruser,rgroup,svuid,svgid,command -p `head -1 
 /var/run/sendmail.pid` -p `head -1 /var/spool/clientmqueue/sm-client.pid`
RUSER RGROUP SVUID SVGID COMMAND
root  wheel  025 sendmail: accepting connections (sendmail)
smmsp smmsp 2525 sendmail: Queue [EMAIL PROTECTED]:30:00 for 
 /var/spool/clientm


Yep; this works.

 
 And that you have the following lines somewhere in /etc/master.passwd:
 
 smmsp:*:25:25::0:0:Sendmail Submission 
 User:/var/spool/clientmqueue:/usr/sbin/nologin
 mailnull:*:26:26::0:0:Sendmail Default 
 User:/var/spool/mqueue:/usr/sbin/nologin
 
 and the following in /etc/group:
 
 smmsp:*:25:
 mailnull:*:26:


PING: i'm missing mailnull. how long has sendmail had this
and if it is more than 6, 8 months, how ever was 6.2 sendmaiil
working

I just pasted in to master.passwd.   EERp; it is in /etc/group.
I never touch these files.   I did use vipw on tao last week but
not on ns1 (aka sage).   Got to check my backups of /etc for sage
and see.  

Proof:

staff:*:20:root
sshd:*:22:root
smmsp:*:25:root,kline
mailnull:*:26:

id anybody can come up with a SWAG, I'Ll buy you a beer next time
you're in seattle.   ...this is worse than who killed
jack-the-ripper.   could-- well... [[?? (bar)]]

 
 and that the actual sendmail binary (assuming you're using the base system
 sendmail and not one from ports) has the following ownership and permissions:
 
 # ls -l /usr/libexec/sendmail/
 total 688
 - -r-xr-sr-x  1 root  smmsp  686268 Dec 30 13:50 sendmail*
 

Ouch; things are getting stranger and stranger; on tuesdayi did a make
buildworld (plus a make kernel); then rebooted  and after four
hours of getty problems was finally able to get in an installworld.
Does this make any sense?  is this perhaps the 5.5 or 5,4 
sendmail...?

total 592
-r-xr-sr-x  

Re: Fw: help with installation of 6.2 release i386 on older HP desktop

2008-01-07 Thread tesolarisc
Try to burn a new cd/dvd and burn it at a lower speed.
It might be that the cd/dvd isn't 100%.

cheers

On Mon, 2008-01-07 at 00:17 -0800, Joseph Eaton wrote:
 More precisely.  I do select the elements I want (All and then Exit and 
 then Install from CD-ROM and then some files flash before my eyes and then 
 I come to a screen that says: User Confirmation Requested and below that 
 Unable to transfer the base distribution from adc0 and on the next line Do 
 you want to try to retrieve it again? and then at the bottom Yes or No 
 and I can never retrieve it successfully or exit successfully.  Thanks again 
 for your help.
 
 - Forwarded Message 
 From: Joseph Eaton [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, January 6, 2008 11:56:49 PM
 Subject: help with installation of 6.2 release i386 on older HP desktop
 
 
 Thanks in advance for your help.  I am a newbie trying to install FreeBSD for 
 the first time.  I have an HP desktop computer with 64MB of SDRAM, a 12 GB 
 hard drive and a Pentium II processor running at 333 MHz.  I am trying to put 
 FreeBSD 6.2 on this machine but have not had any luck.  I've read the 
 documentation, but stil can't seem to figure out what to do.
 
 I downloaded the ISO mage for the bootonly disk and checked that it using 
 checksum.md5, then burned a disk image using InfrRecorder to a fresh CD-R.  I 
 set the bios on my HP to boot from the CDROM drive and put the disk in.  It 
 walks me through the installation process but never gives me a chance
  to exit.  I select the Standard installation but get stuck shortly 
 thereafter when I try to tell it to use the option to set up for a single 
 user using the X-Window system.  It won't let me select multiple elements 
 like bin and library.  I get stuck and then it never completes and won't let 
 me out of the setup screen series.
 
 
 Please let me know if I am not providing enough information above.  I welcome 
 any help.  Thanks.
 
 
 
 
   Be a better friend, newshound, and 
 know-it-all with Yahoo! Mobile.  Try it now.
 
 
 
 
 
   
 
 Never miss a thing.  Make Yahoo your home page. 
 http://www.yahoo.com/r/hs
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
-- 
/Peo



--
-   PGP signed/encrypted emails is prefered  - 
--
 
 [novice about this? ~ visit: www.gnupg.org]


signature.asc
Description: This is a digitally signed message part


Re: outgoing mail STOPPED.

2008-01-07 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Gary Kline wrote:

  Then I checked my /etc/namedb/s/db.thought.org to see id anything there 
  could conceivably be hanging port 25.  Zip.  (I still updated the
  date and re-exed. I checked with ps and grep to find something new:

The best way to check for any processes listening on port 25 is:

% sockstat | grep :25 
root sendmail   1193  3  tcp4   81.187.76.162:25  *:*
root sendmail   1193  5  tcp4   127.0.0.1:25  *:*
root sendmail   1193  6  tcp6   ::1:25*:*
root sendmail   1193  7  tcp6   2001:8b0:151:1:240:5ff:fea5:8db7:25*:*

~
 624  ??  Ss 0:01.16 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/r
 p0 0:27 sage [5005]
 
  In theory I know pretty much what bind9does, c; but why this
  change?  (Part of my gnome (2.20) is missing so I cannot max
  enlarge the konsole; ps -alx does not wrap so I cant see the 
  entire string.)  I can pimg ns1.thought.org--obviously.  But if you
  see anything here,  Matthew, would you please let me know?

To get ps output without truncation, simply add 'ww' to the flags --
one 'w' gives you a 132 column output (shades of those old fan-fold line
printer TTYs there) and two (or more) 'w's gives you unlimited width:

# ps -alx | grep /usr/sbin/s
0   689 1   0  44  0  3188  1240 select Ss??0:07.28 /usr/sbin/s
0  1188 1   0  44  0  5640  3356 select Is??0:00.02 /usr/sbin/s
# ps -alxww | grep /usr/sbin/s
0   689 1   0  44  0  3188  1240 -  Rs??0:07.29 
/usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -a 
81.187.76.161/32:4096 -l /var/named/var/run/log
0  1188 1   0  44  0  5640  3356 select Is??0:00.02 
/usr/sbin/sshd
 1001 16014  1376   0  44  0   380   260 -  R+p00:00.00 grep 
/usr/sbin/s

As for the presence of '-l /var/named/var/run/log' -- that's added
to the syslogd flags automatically by the /etc/rc.d/syslogd startup
script[*] if you're running named chrooted (which is the default). This
means that syslogd can log the items outside the chroot that are generated
by named within it.  You should see output from named in /var/log/all.log
- -- precisely what you see depends entirely on the logging configuration
in named.conf.

Cheers,

Matthew

[*] The reason I have it twice is that a long time ago I'd also added
it to syslogd_flags manually, something I shall correct imminently.

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

iD8DBQFHgglp8Mjk52CukIwRCMTeAJ9U/iicerUyzugUEucgZ1fFvavB7ACeNLkM
/Go2XMJctLl+Ci9w3RrjxeM=
=LbnH
-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: port collection RELEASE6.2 lost after reinstall with CVSUP

2008-01-07 Thread Frank Shute
On Mon, Jan 07, 2008 at 09:03:12AM +, Matthew Seaman wrote:

 
 Frank Shute wrote:
  
  So if it's not branched but tagged, what's the difference between the
  ports tree I get if I use RELENG_4_8  compared to RELENG_7_0 as tags
  in my ports supfile?
 
 Probably not a very great deal -- you'll get equally disappointing
 results for both of those.  RELENG_X and RELENG_X_Y tags / branches
 apply to the src collection *only*.  If you try and use them on the
 ports you'll end up with a whole lot of nothing.  None of the ports
 tree is intentionally tagged with anything matching 'RELENG'

This is where the original poster went wrong, he first off used tag=.
which got him current ports, decided he wanted 6.2 ports and used
RELENG_6_2 as a tag in his ports supfile and got nothing.

 
 In general, you always want the HEAD of the ports tree.  There's
 very little point in using anything else.  

I was trying to make the point you should use tag=. in ports supfile.

 However it is possible
 to use RELEASE_X_Y_0 to match the state of the ports tree used
 to generate the packages distributed with X.Y RELEASE, or if you
 still haven't upgraded all your 4.x machines yet, you can use
 RELEASE_4_EOL to match the last state of the tree before the 4.x
 compatability code was stripped out.

This I didn't know. It used to be AFAIR that because of disk
constraints only head was available. But I see from the CVS tags page
that you can get the tree in it's old state with tags such as:

RELENG_6_2_0_RELEASE

http://www.uk.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html

A.7.2

 
 Note that cvsup'ing an old version of the ports tree is not
 guaranteed to provide a workable ports collection: the dist files
 the ports rely upon are not in the control of the FreeBSD project
 and there is no assurance that old versions of software are still
 available for download.  Plus you will be struggling with unfixed
 security bugs if you've installed portaudit -- or installing
 vulnerable software if you haven't.

I can't see the point in holding old versions of the ports tree except
for nostalgic reasons and masochists. Although, I suppose
portdowngrade works with it (never used it).

Even the oldest machine you can usually upgrade to something new. E.g
Tags for my webserver (300MHz Celeron 128MB) is tag=. for ports and
RELEASE_6_3 for src. Works fine. Used to have problems building ruby
due to the low memory so just built a package on my workstation and
copied it over.

 
   Cheers,
 
   Matthew

Thanks for explaining how things currently stand, Matthew.

Regards,

-- 

 Frank 


 Contact info: http://www.esperance-linux.co.uk/misc/contact.html 

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


Re: wpi error: bus_dmamem_alloc failed to align memory properly

2008-01-07 Thread vittorio
Il Monday 07 January 2008 03:18:21 Benjamin Close ha scritto:
 vittorio wrote:
  Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4
  When loading if_wpi I get the following line saying that
  bus_dmamem_alloc failed to align memory properly
  SNIP
  wpi0: Intel(R) PRO/Wireless 3945ABG mem 0xd800-0xd8000fff irq 16 at
  device 0.0 on pci2
  bus_dmamem_alloc failed to align memory properly.
  last message repeated 30 times
  wpi0: Ethernet address: 00:19:d2:99:e3:cb
  wpi0: [ITHREAD]
  wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
  wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
  wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
  24Mbps 36Mbps 48Mbps 54
  /SNIP
 
  Therefore I'm unable to make wpi0 work at all.
 
  Could you please tell me what should I do?
 
  Ciao, Vittorio

 The bus_dmamem_alloc message is harmless in your case. Due to
 limitations in the freebsd allocator, sometimes requesting a 16k aligned
 block of dma memory fails. As a temporary work around the wpi driver
 reattempts the allocation. If it truely does fail you'll not get a wpi0
 device showing up, which clearly you did :).

 These warning messages will go away when I sync the next lot of updates
 to the driver which aren't quite ready yet.

 Can you describe a little more what you mean by wpi doesn't work?

 Cheers,
 Benjamin
 wpi driver maintainer


Ben,
here you are a longer explanation

Context:
Router ZyXEL ADSL+2 with dhcp up and running

Laptop HP Pavillion Entertainment DV6000 intel centrino duo 2GB of memory
hpbsd# uname -a
FreeBSD hpbsd.vic 7.0-BETA4 FreeBSD 7.0-BETA4 #0: Thu Dec 27 22:18:53 CET 2007  
   
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/HP03  i386
hpbsd#
all wpi's necessary devices are compiled in the kernel
   device wpi
           device pci
           device wlan
           device wlan_amrr
           device firmware

/var/log/messages
kernel: wpi0: Intel(R) PRO/Wireless 3945ABG mem 0xd800-0xd8000fff irq 16 
at device 0.0 on pci2
kernel: wpi0: Ethernet address: 00:19:d2:99:e3:cb
kernel: wpi0: [ITHREAD]
kernel: wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
kernel: wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
kernel: wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps

the line 

legal.intel_wpi.license_ack=1 

is in /boot/loader.conf 

BUT
1)
it seems that sysctl is unable to find it and I have to set it via 
kenv legal.intel_wpi.license_ack=1 in a shell.

Shouldn't this variable be set by either sysctl or by loader.conf (that is is 
a system variable) OR is it supposed to be set via kenv only?

2)
dhclient is unable to get an IP address (BTW trying to set wpi0 up with a 
fixed IP makes wpi0 not associated to any AP)

Here it is a session log

SNIP
hpbsd# sysctl -a|grep legal
hpbsd#
hpbsd# kenv legal.intel_wpi.license_ack=1
legal.intel_wpi.license_ack=1
hpbsd# kenv legal.intel_wpi.license_ack
1

hpbsd# ifconfig wpi0 ssid my_wireless weptxkey 1 wepmode on wepkey 
0x1f7b0a5a0d

hpbsd# dhclient wpi0
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

hpbsd# ifconfig wpi0
wpi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 
        ether 00:19:d2:99:e3:cb
        inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255
        media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps)
        status: associated
        ssid my_wireless channel 6 (2437 Mhz 11g) bssid 00:02:cf:61:81:fd
        authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit txpower 50
        bmiss 7 scanvalid 60 protmode CTS

 /SNIP

Even giving an ip fixed address to wpi0 doesn't seem to work, - that is - I 
cannot ping anything and for netstat -rn wpi0 doesn't seem to exist.

Please help
Ciao from Rome

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


Strange messages when booting freebsd 7.0-beta4

2008-01-07 Thread vittorio
I recently upgraded from 6.2 to 7.0-beta4
Now, in /var/log/messages I invariably find the following messages:
-
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-BETA4 #0: Thu Dec 27 22:18:53 CET 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/HP03
module_register: module pci/ichss_pci already exists!
Module pci/ichss_pci failed to register: 17
module_register: module cpu/ichss already exists!
Module cpu/ichss failed to register: 17
module_register: module cpu/est already exists!
Module cpu/est failed to register: 17
module_register: module cpu/p4tcc already exists!
Module cpu/p4tcc failed to register: 17
module_register: module cpu/powernow already exists!
Module cpu/powernow failed to register: 17
module_register: module cpu/smist already exists!




What should I modify to avoid them?

Ciao
Vittorio

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


Samba: changing UNIX passwords from Windows

2008-01-07 Thread Jon Theil Nielsen
Hello
 
We have a FreeBSD server (7.0 BETA3) running as PDC (Samba 3.0.28) passwords
stored in tdbsam. Theres are no problems for users and machines to log on to
the network as long as they use the passwords I have made by smbpasswd -a
username. But I cannot make a working configuration which allows users to
change their own passwords on the server. They are told something like You
do not have permission to change your password. I guess the problem is the
communication between Samba and the server, the passwd chat, but I'm not
sure. I have the following lines in smb.conf
 
passwd program = /usr/bin/passwd %u
unix password sync = Yes
passwd chat = *New*password* %n\n *Retype*new*passwordn* %n\n
 
I'm not sure the chat is correct and would like to hear about what migth be
more correct for this version of FreeBSD. I have tried to set passwd chat
debug = Yes, but that did not provide any useful (to me, at least)
information on the nature of the problem.
I haven't been able to find much information on this issue between FreeBSD
and Samba, bur I'm sure there must be a solution. I don't know if the
solution is to use another password database (e.g. LDAP), but this seems to
be a rather complicated issue too.
 
Regards,
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: wpi error: bus_dmamem_alloc failed to align memory properly

2008-01-07 Thread Tim Kellers

vittorio wrote:

Il Monday 07 January 2008 03:18:21 Benjamin Close ha scritto:
  

vittorio wrote:


Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4
When loading if_wpi I get the following line saying that
bus_dmamem_alloc failed to align memory properly
SNIP
wpi0: Intel(R) PRO/Wireless 3945ABG mem 0xd800-0xd8000fff irq 16 at
device 0.0 on pci2
bus_dmamem_alloc failed to align memory properly.
last message repeated 30 times
wpi0: Ethernet address: 00:19:d2:99:e3:cb
wpi0: [ITHREAD]
wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
24Mbps 36Mbps 48Mbps 54
/SNIP

Therefore I'm unable to make wpi0 work at all.

Could you please tell me what should I do?

Ciao, Vittorio
  

The bus_dmamem_alloc message is harmless in your case. Due to
limitations in the freebsd allocator, sometimes requesting a 16k aligned
block of dma memory fails. As a temporary work around the wpi driver
reattempts the allocation. If it truely does fail you'll not get a wpi0
device showing up, which clearly you did :).

These warning messages will go away when I sync the next lot of updates
to the driver which aren't quite ready yet.

Can you describe a little more what you mean by wpi doesn't work?

Cheers,
Benjamin
wpi driver maintainer




Ben,
here you are a longer explanation

Context:
Router ZyXEL ADSL+2 with dhcp up and running

Laptop HP Pavillion Entertainment DV6000 intel centrino duo 2GB of memory
hpbsd# uname -a
FreeBSD hpbsd.vic 7.0-BETA4 FreeBSD 7.0-BETA4 #0: Thu Dec 27 22:18:53 CET 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/HP03  i386

hpbsd#
all wpi's necessary devices are compiled in the kernel
   device wpi
   device pci
   device wlan
   device wlan_amrr
   device firmware

/var/log/messages
kernel: wpi0: Intel(R) PRO/Wireless 3945ABG mem 0xd800-0xd8000fff irq 16 
at device 0.0 on pci2

kernel: wpi0: Ethernet address: 00:19:d2:99:e3:cb
kernel: wpi0: [ITHREAD]
kernel: wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
kernel: wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
kernel: wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps


the line 

legal.intel_wpi.license_ack=1 

is in /boot/loader.conf 


BUT
1)
it seems that sysctl is unable to find it and I have to set it via 
kenv legal.intel_wpi.license_ack=1 in a shell.


Shouldn't this variable be set by either sysctl or by loader.conf (that is is 
a system variable) OR is it supposed to be set via kenv only?


2)
dhclient is unable to get an IP address (BTW trying to set wpi0 up with a 
fixed IP makes wpi0 not associated to any AP)


Here it is a session log

SNIP
hpbsd# sysctl -a|grep legal
hpbsd#
hpbsd# kenv legal.intel_wpi.license_ack=1
legal.intel_wpi.license_ack=1
hpbsd# kenv legal.intel_wpi.license_ack
1

hpbsd# ifconfig wpi0 ssid my_wireless weptxkey 1 wepmode on wepkey 
0x1f7b0a5a0d


hpbsd# dhclient wpi0
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

hpbsd# ifconfig wpi0
wpi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 
ether 00:19:d2:99:e3:cb

inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps)
status: associated
ssid my_wireless channel 6 (2437 Mhz 11g) bssid 00:02:cf:61:81:fd
authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit txpower 50
bmiss 7 scanvalid 60 protmode CTS

 /SNIP

Even giving an ip fixed address to wpi0 doesn't seem to work, - that is - I 
cannot ping anything and for netstat -rn wpi0 doesn't seem to exist.


Please help
Ciao from Rome

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


  

Vittorio,

Do you have a line just like the below in your /etc/rc.conf?  I've found 
DHCP a little tricky to set up on wireless laptops, and after a Lot of 
testing, I got mine to work.  (This is getting a dhcp address from a 
Linksys router)


ifconfig_wpi0=ssid [your network name] nwkey [your network key] DHCP

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


home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Steve Franks
I keep reading about making sh scripts executable with #!/bin/sh on
the first line and chmod to executable.  That works with all my system
scripts (rc, etc.) or my system would be DOA, no doubt.  When I do it
in my home folder, however, running script gives command not
found.  I've only read about 5 sites telling you how to make shell
scripts executable, they all say the same thing, and they all don't
work.  How did I get to be so special?

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


Re: VoIP and SSH

2008-01-07 Thread Jon Krause

Andrew Falanga wrote:

On Friday 04 January 2008 14:55:00 Jon Krause wrote:
  

Andrew Falanga wrote:


Hi,

I don't understand this one and I'm hoping someone here might know.  My
father's router wasn't forwarding connection requests for any port that
we'd configured for sshd to listen on.  After changing out his linksys
router and his Cable MODEM (the company said it was a very old modem),
the problem was still present.  Oddly enough, if he unplugs his VoIP box
from his network, all this problem goes away and connection requests over
ssh and port 22 are forwarded fine.  With the VoIP box present, it
doesn't work.

Neither the FreeBSD machine or the VoIP box share IPs, but it doesn't
work with the VoIP in the network.  Any ideas?
  

The VoIP box is usually an MTA, many include a router/firewall also.
It should have an admin interface usually 192.168.0.1 or 192.168.1.1
The cable company technical support should be able to walk you through
getting access (or check any documentation that came with the MTA)

They may or may not have port options (open or forward) that may allow
ssh to work for you.

Good Luck,

Jon



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


Thanks to all for the suggestions.  I'll see what I can find.  Something one 
of you mentioned has me curious.  That being whether or not there is a DHCP 
server running.  My father's linksys router doles out IPs from 
192.168.1.100 - something (I forget now).  Once, while trying to get this 
working, he logged into his system (from his system) using ssh.  What was odd 
was that he was able to log into his system by using the IP address of 
192.168.100.101, but using ifconfig he'd always tell me that the IP was 
192.168.1.100.  I'm betting that his VoIP box must be doling out IPs as well 
as his Linksys router, or something like that.


Jon, what do you mean when you say, The 'VoIP box' is usually an MTA?  I'm 
used to MTA meaning Message Transfer Agent.  Is it the same in this case too?
  

Sorry for the late response.

MTA = multimedia terminal adapter
It's a Cable industry term most recently replaced by eMTA (embedded) 
where the MTA is embedded in the cablemodem.  Most commonly used by 
Comcast, Time Warner and others for Packet Cable telephone service.


Some service providers use the standard VoIP solutions (MTAs) or there 
are 3rd party solutions such as Vonage (also considered MTA). 
Most MTAs connect as follows:  Cablemodem  MTA  (phone line plugs into 
MTA) (ethernet port for the Internet)


The MTA acts as a router similar to a regular D-Link or Linksys (Cisco) 
home router.  They usually have a web interface for configuration, they 
have DHCP serving the 192.168.x.x IPs.  So it sounds like the MTA has 
DHCP'ed a 192.168.x.x address to the Linksys and the Linksys is doing 
it's own thing for his network.


You need to get into the Linksys status page to see what IP the MTA has 
issued to it.  Then try to access the MTA and see if you can open the 
ports of choice to the Linksys, then open the ports on the Linksys to 
his network or work-station.


Best,

Jon

Thanks,
Andy
___
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: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Barry Byrne
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Steve Franks
 Sent: 07 January 2008 15:53

 I keep reading about making sh scripts executable with #!/bin/sh on
 the first line and chmod to executable.  That works with all my system
 scripts (rc, etc.) or my system would be DOA, no doubt.  When I do it
 in my home folder, however, running script gives command not
 found.  I've only read about 5 sites telling you how to make shell
 scripts executable, they all say the same thing, and they all don't
 work.  How did I get to be so special?
[EMAIL PROTECTED]

Steve,

How are you running the commands? The problem is probably to do with your
path. Your home directory isn't typically and shouldn't be in your PATH (try
echo $PATH). You need to specify the full path to your scripts or place a ./
in front of the script name if in the same directory.

e.g. ./myscript.sh  or /home/username/myscript.sh

 - Barry

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


home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Robert Huff

Steve Franks writes:

  I keep reading about making sh scripts executable with #!/bin/sh on
  the first line and chmod to executable.  That works with all my system
  scripts (rc, etc.) or my system would be DOA, no doubt.  When I do it
  in my home folder, however, running script gives command not
  found.  I've only read about 5 sites telling you how to make shell
  scripts executable, they all say the same thing, and they all don't
  work.  How did I get to be so special?

command not found makes my first guess a PATH problem.
What happens when you use:

 full path/script_name

or

 ./script_name


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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Eric Crist

On Jan 7, 2008, at 9:52 AM, Steve Franks wrote:


I keep reading about making sh scripts executable with #!/bin/sh on
the first line and chmod to executable.  That works with all my system
scripts (rc, etc.) or my system would be DOA, no doubt.  When I do it
in my home folder, however, running script gives command not
found.  I've only read about 5 sites telling you how to make shell
scripts executable, they all say the same thing, and they all don't
work.  How did I get to be so special?

Steve


Steve,

This is a sort of 'don't shoot yourself in the foot' design.  You  
cannot run a script or binary simply by name if you're cwd is the  
directory that contains that script or binary.  IIRC, you can't cd / 
usr/bin and run anything in /usr/bin without explicitly calling that  
file with the ./ telling the system THIS ONE.


The reason for this is to prevent someone, a shady fellow, from  
putting a shell script in, say, a shared directory called ls, and  
making it executable, and have some similarly shady code such as:


#!/bin/sh
take_over_world(now);
exit 0;

Or something like that. ;)

HTH
-
Eric F Crist
Secure Computing Networks


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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Steve Franks
 This is a sort of 'don't shoot yourself in the foot' design.  You
 cannot run a script or binary simply by name if you're cwd is the
 directory that contains that script or binary.  IIRC, you can't cd /
 usr/bin and run anything in /usr/bin without explicitly calling that
 file with the ./ telling the system THIS ONE.

Ah!  You'd think any one of the many tutorials I read would have
mentioned that little detail ;)


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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Josh Carroll
 I keep reading about making sh scripts executable with #!/bin/sh on
 the first line and chmod to executable.  That works with all my system
 scripts (rc, etc.) or my system would be DOA, no doubt.  When I do it
 in my home folder, however, running script gives command not
 found.

That typically indicates the path you've specified in the sh-bang does
not exist. Another common problem there is if the shell script was
written out in DOS format.

If you're certain the first line looks proper, and that the path
exists (/bin/sh most certainly should), try:

perl -p -i -e 's/\r\n/\n/' foo.sh

Then see if it works.

 scripts executable, they all say the same thing, and they all don't
 work.  How did I get to be so special?

It's possible the partition /home is mounted on is mounted with
noexec, but in that case, I'd expect you'd get a permission denied
message, rather than command not found.

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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Josh Carroll
 How are you running the commands? The problem is probably to do with your
 path. Your home directory isn't typically and shouldn't be in your PATH (try
 echo $PATH). You need to specify the full path to your scripts or place a ./
 in front of the script name if in the same directory.

 e.g. ./myscript.sh  or /home/username/myscript.sh

Ahh I misunderstood his email. Yes, most likely he is running it with
foo.sh rather than ./foo.sh or /full/path/to/foo.sh

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


Re: VoIP and SSH

2008-01-07 Thread Andrew Falanga
On Jan 7, 2008 8:45 AM, Jon Krause [EMAIL PROTECTED] wrote:

  Andrew Falanga wrote:

 On Friday 04 January 2008 14:55:00 Jon Krause wrote:


  Andrew Falanga wrote:


  Hi,

 I don't understand this one and I'm hoping someone here might know.  My
 father's router wasn't forwarding connection requests for any port that
 we'd configured for sshd to listen on.  After changing out his linksys
 router and his Cable MODEM (the company said it was a very old modem),
 the problem was still present.  Oddly enough, if he unplugs his VoIP box
 from his network, all this problem goes away and connection requests over
 ssh and port 22 are forwarded fine.  With the VoIP box present, it
 doesn't work.

 Neither the FreeBSD machine or the VoIP box share IPs, but it doesn't
 work with the VoIP in the network.  Any ideas?


  The VoIP box is usually an MTA, many include a router/firewall also.
 It should have an admin interface usually 192.168.0.1 or 192.168.1.1
 The cable company technical support should be able to walk you through
 getting access (or check any documentation that came with the MTA)

 They may or may not have port options (open or forward) that may allow
 ssh to work for you.

 Good Luck,

 Jon



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

  Thanks to all for the suggestions.  I'll see what I can find.  Something one
 of you mentioned has me curious.  That being whether or not there is a DHCP
 server running.  My father's linksys router doles out IPs from 192.168.1.100 
 - something (I forget now).  Once, while trying to get this
 working, he logged into his system (from his system) using ssh.  What was odd
 was that he was able to log into his system by using the IP address of 
 192.168.100.101, but using ifconfig he'd always tell me that the IP was 
 192.168.1.100.  I'm betting that his VoIP box must be doling out IPs as well
 as his Linksys router, or something like that.

 Jon, what do you mean when you say, The 'VoIP box' is usually an MTA?  I'm
 used to MTA meaning Message Transfer Agent.  Is it the same in this case too?


  Sorry for the late response.

 MTA = multimedia terminal adapter
 It's a Cable industry term most recently replaced by eMTA (embedded) where
 the MTA is embedded in the cablemodem.  Most commonly used by Comcast, Time
 Warner and others for Packet Cable telephone service.


Regardless of the response being late, thank you very much for the
response.  In fact, my father's cable modem service comes from Time Warner's
Road Runner service in upstate NY.  I'll bet this must be the problem.

Thanks again.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Jim Bow

Hey Steve,

Steve Franks wrote:


Ah!  You'd think any one of the many tutorials I read would have
mentioned that little detail ;)


Tutorials do have a tendency to look over important details.

That's why I would always recommend a good book, something like UNIX 
Power Tools in your case, which, if not explains, then at least mentions 
most of the little things.



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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Erik Osterholm
On Mon, Jan 07, 2008 at 09:13:39AM -0700, Steve Franks wrote:
  This is a sort of 'don't shoot yourself in the foot' design.  You
  cannot run a script or binary simply by name if you're cwd is the
  directory that contains that script or binary.  IIRC, you can't cd /
  usr/bin and run anything in /usr/bin without explicitly calling that
  file with the ./ telling the system THIS ONE.
 
 Ah!  You'd think any one of the many tutorials I read would have
 mentioned that little detail ;)
 
 Thanks, all
 Steve

You should search your tutorials for the PATH environment variable.

In an over-simplified nutshell, when you type a command in your shell,
it checks a number of different locations for the place to find the
command you're trying to execute.  Some of those locations are every
directory specified in your PATH variable.  My PATH is:
/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin

This means that when I type 'ls', the shell looks for an executable
named 'ls' in each of those directories (actually, it probably stops
right after /bin/ls, since that's the correct one.)

If the shell does not find a valid executable in the path, it will say
that there is no such file or directory.  In this case, you would try
specifying the full path by typing /bin/ls, or /home/user/scriptname.
'.' and '..' have special meanings--current directory and
next-directory-up, specifically--so if your current working directory
is /home/user, typing ./scriptname will be largely equivalent to
typing /home/user/scriptname.  ../scriptname would be largely
equivalent to /home/scriptname.  This is why some people suggested
trying ./scriptname in other e-mails in this thread.

The '.' notation for the current working directory enables you to add
the current directory you happen to be in as part of your path (thus
making it searched when executing a command), however this has serious
security implciations, so if you think that it's something you really
want to do, you'll have to find out from someone else how to do it.

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


minimum valid block size on DVD-RAM

2008-01-07 Thread Martin Laabs

Hi,

I'm investigating a problem concerning the minimum valid block
size accepted by DVD (writing) devices when writing
on a DVD-RAM. (Please don't mix DVD-R, DVD-RW and DVD-RAM up
here.)

My motivation for this is the handbook chapter 18.7.9 that
describes how to format a DVD-RAM. All listed commands works
on a blocksize of 512 byte. This does not work for me on an
'Optiarc DVD RW AD-7170A/1.02' device since it refuse every
operation with a blocksize unequal to a multiple of
2048 bytes.

The actual inherent (physical) block-/sector size on
a DVD-RAM is, like on nearly all other DVDs and CDs,
realy 2048 byte so the behaviour of my device makes sense
to me. (How should it write a quarter sector?)

Now Marc Fonvieille let me know that the instructions in
the handbook has been submitted by a DVD-RAM user. This
means that these instruction works at least at one system.
I'd now like to know whether most of the available DVD-writers
are capable of writing blocks smaller than 2k. If not it
would be worth investigating an alternativ instruction set.
(But this is not as simple as it seems because newfs seems
to have a bug with the -S option and also bsdlabel works
as default on 512 byte blocks)

Since I don't have access to different DVD-writers I can't
test their behaviour regarding the minimum accepted block
size.

Therefore I'd like to ask you for a little test with
your DVD-RAM enabled DVD-writer.

1. Insert a DVD-RAM (not DVD-R or DVD-RW!)
2. run 'dd if=/dev/acd0 of=/dev/null bs=512 count=1' (please adjust - if  
necessary - the device name)
3. run 'dd if=/dev/acd0 of=/dev/null bs=2048 count=1' (please adjust - if  
necessary - the device name)


Please report me whether command 3 and command 2 succeed
and also if command 3 succeed and command 2
fails. The first case would mean that your dvd-write is
capable of reading blocks smaller that 2048 bytes which
would be very surprising for me

If you have an empty DVD-RAM (or an DVD-RAM with un-
important data) I'd pleased if you could also try a
writing test.

1. Insert a DVD-RAM (Remark: *it will be deleted*)
2. run 'dd if=/dev/zero of=/dev/acd0 bs=512 count=1' (please adjust - if  
necessary - the device name)
3. run 'dd if=/dev/zero of=/dev/acd0 bs=2048 count=1' (please adjust - if  
necessary - the device name)


Please report me whether command 3 and command 2 succeed
ans also if command 3 succeed and command 2 fails.
The first would mean that your dvd-write is capable of writing
blocks with 512 bytes. That would mean that the instruction set
of the handbook works for you.

My output of the reading an writing test is
the following:

Reading:

# dd if=/dev/acd0 of=/dev/null bs=512 count=1
dd: /dev/acd0: Invalid argument
0+0 records in
0+0 records out
0 bytes transferred in 0.000196 secs (0 bytes/sec)
# dd if=/dev/acd0 of=/dev/null bs=2048 count=1
1+0 records in
1+0 records out
2048 bytes transferred in 1.886969 secs (1085 bytes/sec)

Writing:

# dd if=/dev/zero of=/dev/acd0 bs=512 count=1
dd: /dev/acd0: Invalid argument
1+0 records in
0+0 records out
0 bytes transferred in 0.000205 secs (0 bytes/sec)
# dd if=/dev/zero of=/dev/acd0 bs=2048 count=1
1+0 records in
1+0 records out
2048 bytes transferred in 0.001600 secs (1280169 bytes/sec)

You see that my device accept read and writes with
a blocksize (or a multiple of a blocksize) of 2048 bytes
only.

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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread James Harrison
On Mon, 2008-01-07 at 10:50 -0600, Erik Osterholm wrote:
 On Mon, Jan 07, 2008 at 09:13:39AM -0700, Steve Franks wrote:
   This is a sort of 'don't shoot yourself in the foot' design.  You
   cannot run a script or binary simply by name if you're cwd is the
   directory that contains that script or binary.  IIRC, you can't cd /
   usr/bin and run anything in /usr/bin without explicitly calling that
   file with the ./ telling the system THIS ONE.
  
  Ah!  You'd think any one of the many tutorials I read would have
  mentioned that little detail ;)
  
  Thanks, all
  Steve
 
 You should search your tutorials for the PATH environment variable.
 
 In an over-simplified nutshell, when you type a command in your shell,
 it checks a number of different locations for the place to find the
 command you're trying to execute.  Some of those locations are every
 directory specified in your PATH variable.  My PATH is:
 /bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
 
 This means that when I type 'ls', the shell looks for an executable
 named 'ls' in each of those directories (actually, it probably stops
 right after /bin/ls, since that's the correct one.)
 

It stops at the first instance of an ls binary it finds. 

This is actually something that's really useful to know in all kinds of
circumstances. Your path is search from left to right, and it stops
searching at the first instance of the executable that it finds. This
has practical applications even when installing ports.

One example that comes to mind is the CUPS port. It installs its own
version of the lpr binary in /usr/local/bin. However, there's also an
instance of lpr, the BSD version, in /usr/bin. So how do you make sure
you're using the CUPS version of the binary?

The recommended way is a simple path edit, so that /usr/local/bin
appears before /usr/bin in the path. This way, your OS will use
the /usr/local/bin/lpr binary, leaving the system one untouched and, if
you ever want to revert to the system one you can simply switch the path
again. You can also accomplish a similar thing with symlinks, but this
is one useful idea for using the path.



 If the shell does not find a valid executable in the path, it will say
 that there is no such file or directory.  In this case, you would try
 specifying the full path by typing /bin/ls, or /home/user/scriptname.
 '.' and '..' have special meanings--current directory and
 next-directory-up, specifically--so if your current working directory
 is /home/user, typing ./scriptname will be largely equivalent to
 typing /home/user/scriptname.  ../scriptname would be largely
 equivalent to /home/scriptname.  This is why some people suggested
 trying ./scriptname in other e-mails in this thread.
 
 The '.' notation for the current working directory enables you to add
 the current directory you happen to be in as part of your path (thus
 making it searched when executing a command), however this has serious
 security implciations, so if you think that it's something you really
 want to do, you'll have to find out from someone else how to do it.
 
 erik
 ___
 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: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Mike Bristow
On Mon, Jan 07, 2008 at 10:50:47AM -0600, Erik Osterholm wrote:
 The '.' notation for the current working directory enables you to add
 the current directory you happen to be in as part of your path (thus
 making it searched when executing a command), however this has serious
 security implciations, so if you think that it's something you really
 want to do, you'll have to find out from someone else how to do it.

OTOH, having ~/bin in the path has no security implications at all - 
assuming your scripts are OK, of course.

-- 
Shenanigans!  Shenanigans!Best of 3!
-- Flash 

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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Mike Jeays
On January 7, 2008 12:04:39 pm Mike Bristow wrote:
 On Mon, Jan 07, 2008 at 10:50:47AM -0600, Erik Osterholm wrote:
  The '.' notation for the current working directory enables you to add
  the current directory you happen to be in as part of your path (thus
  making it searched when executing a command), however this has serious
  security implciations, so if you think that it's something you really
  want to do, you'll have to find out from someone else how to do it.

 OTOH, having ~/bin in the path has no security implications at all -
 assuming your scripts are OK, of course.

I don't see anything especially bad about putting . as the last item in the 
PATH on a personal desktop machine.  It is convenient, IMHO worth the risk.  
If my desktop gets hacked, I have worse problems to worry about than this.



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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Robert Huff
James Harrison writes:

  One example that comes to mind is the CUPS port. It installs its
  own version of the lpr binary in /usr/local/bin. However, there's
  also an instance of lpr, the BSD version, in /usr/bin. So how do
  you make sure you're using the CUPS version of the binary?
  
  The recommended way is a simple path edit, so that /usr/local/bin
  appears before /usr/bin in the path. This way, your OS will use
  the /usr/local/bin/lpr binary, leaving the system one untouched
  and, if you ever want to revert to the system one you can simply
  switch the path again. You can also accomplish a similar thing
  with symlinks, but this is one useful idea for using the path.

There's another way, though one with implications - add:

CUPS_OVERWRITE_BASE=yes

to /etc/make.conf.


Robert Huff

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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Bill Moran
In response to Mike Jeays [EMAIL PROTECTED]:

 On January 7, 2008 12:04:39 pm Mike Bristow wrote:
  On Mon, Jan 07, 2008 at 10:50:47AM -0600, Erik Osterholm wrote:
   The '.' notation for the current working directory enables you to add
   the current directory you happen to be in as part of your path (thus
   making it searched when executing a command), however this has serious
   security implciations, so if you think that it's something you really
   want to do, you'll have to find out from someone else how to do it.
 
  OTOH, having ~/bin in the path has no security implications at all -
  assuming your scripts are OK, of course.
 
 I don't see anything especially bad about putting . as the last item in the 
 PATH on a personal desktop machine.  It is convenient, IMHO worth the risk.  
 If my desktop gets hacked, I have worse problems to worry about than this.

Personally, I recommend creating a ~/bin directory and adding that to your
search path.  You're much less likely to accidentally download a trojan
script into ~/bin than you are to ~, and it serves to keep your stuff
more organized.

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


32-bit FreeBSD binary on amd64

2008-01-07 Thread Mikhail Teterin
Hello!

I'm struggling with a 32-bit FreeBSD executable, which is identified as:

ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically 
linked (uses shared libs), stripped

Unfortunately, the executable would not run:

 /libexec/ld-elf.so.1: /lib/libm.so.4: unsupported file layout

I don't understand, why it is trying to use the 64-bit /lib/libm.so.4 instead 
of the readily available /usr/lib32/libm.so.4 ? Other 32-bit binaries have no 
problems on this same machine...

Was it not linked correctly? Is there a way to correct it? brandelf-ing did 
not help, for example...

Thanks!

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


photo editor

2008-01-07 Thread Danielisz Laszlo
Hi!

What photo editor do you use on your system,  expecting Gimp?
Do you any application which can connect to the google's picasa gallery and 
upload/download photos?


Laci




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: minimum valid block size on DVD-RAM

2008-01-07 Thread Kimi
On 07/01/2008, Martin Laabs [EMAIL PROTECTED] wrote:
 Hi,

 I'm investigating a problem concerning the minimum valid block
 size accepted by DVD (writing) devices when writing
 on a DVD-RAM. (Please don't mix DVD-R, DVD-RW and DVD-RAM up
 here.)

 My motivation for this is the handbook chapter 18.7.9 that
 describes how to format a DVD-RAM. All listed commands works
 on a blocksize of 512 byte. This does not work for me on an
 'Optiarc DVD RW AD-7170A/1.02' device since it refuse every
 operation with a blocksize unequal to a multiple of
 2048 bytes.

 The actual inherent (physical) block-/sector size on
 a DVD-RAM is, like on nearly all other DVDs and CDs,
 realy 2048 byte so the behaviour of my device makes sense
 to me. (How should it write a quarter sector?)

 Now Marc Fonvieille let me know that the instructions in
 the handbook has been submitted by a DVD-RAM user. This
 means that these instruction works at least at one system.
 I'd now like to know whether most of the available DVD-writers
 are capable of writing blocks smaller than 2k. If not it
 would be worth investigating an alternativ instruction set.
 (But this is not as simple as it seems because newfs seems
 to have a bug with the -S option and also bsdlabel works
 as default on 512 byte blocks)

 Since I don't have access to different DVD-writers I can't
 test their behaviour regarding the minimum accepted block
 size.

 Therefore I'd like to ask you for a little test with
 your DVD-RAM enabled DVD-writer.

 1. Insert a DVD-RAM (not DVD-R or DVD-RW!)
 2. run 'dd if=/dev/acd0 of=/dev/null bs=512 count=1' (please adjust - if
 necessary - the device name)
 3. run 'dd if=/dev/acd0 of=/dev/null bs=2048 count=1' (please adjust - if
 necessary - the device name)

 Please report me whether command 3 and command 2 succeed
 and also if command 3 succeed and command 2
 fails. The first case would mean that your dvd-write is
 capable of reading blocks smaller that 2048 bytes which
 would be very surprising for me

 If you have an empty DVD-RAM (or an DVD-RAM with un-
 important data) I'd pleased if you could also try a
 writing test.

 1. Insert a DVD-RAM (Remark: *it will be deleted*)
 2. run 'dd if=/dev/zero of=/dev/acd0 bs=512 count=1' (please adjust - if
 necessary - the device name)
 3. run 'dd if=/dev/zero of=/dev/acd0 bs=2048 count=1' (please adjust - if
 necessary - the device name)

 Please report me whether command 3 and command 2 succeed
 ans also if command 3 succeed and command 2 fails.
 The first would mean that your dvd-write is capable of writing
 blocks with 512 bytes. That would mean that the instruction set
 of the handbook works for you.

 My output of the reading an writing test is
 the following:

 Reading:

 # dd if=/dev/acd0 of=/dev/null bs=512 count=1
 dd: /dev/acd0: Invalid argument
 0+0 records in
 0+0 records out
 0 bytes transferred in 0.000196 secs (0 bytes/sec)
 # dd if=/dev/acd0 of=/dev/null bs=2048 count=1
 1+0 records in
 1+0 records out
 2048 bytes transferred in 1.886969 secs (1085 bytes/sec)

 Writing:

 # dd if=/dev/zero of=/dev/acd0 bs=512 count=1
 dd: /dev/acd0: Invalid argument
 1+0 records in
 0+0 records out
 0 bytes transferred in 0.000205 secs (0 bytes/sec)
 # dd if=/dev/zero of=/dev/acd0 bs=2048 count=1
 1+0 records in
 1+0 records out
 2048 bytes transferred in 0.001600 secs (1280169 bytes/sec)

 You see that my device accept read and writes with
 a blocksize (or a multiple of a blocksize) of 2048 bytes
 only.


I can not test now, but everything I had seen previously when looking
to use DVD-RAM for a live system instead of using hard drive, plus
cheaper  easier to backup/replace, points to having a block size of
2048 bytes, even Vista it is the only option and is the default. it
works for me perfectly for over a year on a firewall  file server,
only thing I changed was the default block/frag size for UFS2 to
8096/1024. Only time I hear them spin-up is when periodic runs
daily/weekly/monthly.

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



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


Re: photo editor

2008-01-07 Thread Chess Griffin
* Danielisz Laszlo [EMAIL PROTECTED] [2008-01-07 11:50:56]:

 Hi!
 
 What photo editor do you use on your system,  expecting Gimp?
 Do you any application which can connect to the google's picasa gallery and 
 upload/download photos?
 


Although I have not really used it very much, I believe F-Spot will
export to Picasa Web, Flick, and SmugMug.

Chess 
-- 
Chess Griffin
GPG Public Key:  0x0C7558C3
http://www.chessgriffin.com


pgpZgGIMXVflU.pgp
Description: PGP signature


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Jonathan Chen
On Mon, Jan 07, 2008 at 01:21:46PM -0500, Robert Huff wrote:
 James Harrison writes:
 
   One example that comes to mind is the CUPS port. It installs its
   own version of the lpr binary in /usr/local/bin. However, there's
   also an instance of lpr, the BSD version, in /usr/bin. So how do
   you make sure you're using the CUPS version of the binary?
   
   The recommended way is a simple path edit, so that /usr/local/bin
   appears before /usr/bin in the path. This way, your OS will use
   the /usr/local/bin/lpr binary, leaving the system one untouched
   and, if you ever want to revert to the system one you can simply
   switch the path again. You can also accomplish a similar thing
   with symlinks, but this is one useful idea for using the path.
 
   There's another way, though one with implications - add:
 
 CUPS_OVERWRITE_BASE=yes
 
   to /etc/make.conf.

Another alternative would be to remove the system binaries (and add
NO_LPR= to /etc/make.conf to prevent its reinstallation during a
build/installworld).

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]


Re: disabling boot output

2008-01-07 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tilman Linneweh wrote:
 
 
 * Omer Faruk Sen [ Jan 4, 2008 (15:20 )]:
 How can I disable boot messages so user can't see any boot message.
 I think there is 4 part for that and each of them requires a different
 configuration file to be edited.

 1) boot
 2) loader
 3) kernel message
 4) init scripts

 Can anyone send me an URL that depicts those changes? Or at least
 where to
 look for them. I think 2,3,4 can be done with configuration files but
 1 step
 requires some code change right?
 
 You can send the output to a serial port by putting
 
 console=comconsole
 
 into /boot/loader.conf.

f you don't have a serial console, there's another way to do it, one I
stepped into accidentally, and it took me a long while to recover from.
There's a different line you could have put into the /boot/loader.conf
file, one that says boot_mute=YES.  That's going to silence all of the
probing messages completely.  The way it bit me (and you probably ought to
be aware of it) is that it works exactly the same, if you had entered
boot_mute=NO or even boot_mute=Cincinnati, in all cases, the boot
messages are a goner, it's only reading that the word boot_mute is being
set, and what it's being set to really doesn't get into the act.

Took me a really long time to learn that one.  I won't soon forget it.

 
 See
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html
 
 for details.
 
 çok selamlar
 arved
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHgpXlz62J6PPcoOkRAmLGAJ0UhN3WqY5Zo/2bGX7SkHhPw/a2nQCfcOGG
mMKSLlBqsdLU0mAMAler/EM=
=bCwD
-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]


Are 8K sector sizes sane for geli devices?

2008-01-07 Thread Bill Moran

In creating a geli encrypted drive, I tried using a sector size of 8K,
but experienced random panics.  I've now switched to 4K and am using
bonnie to stability test the partition.

Is anyone aware of stability issues with geli partitions with blocks
larger than 4K?  The docs indicate that larger block sizes result in
better performance, but make no mention of upper limits.  The handbook
specifically mentions 4K, which is why I backed down to that size:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-encrypting.html

I suppose this could also be a UFS2 issue?

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


tcp wrappers

2008-01-07 Thread Jim Pazarena
tcp wrappers does not seem to be compiled with the 'blacklist patch' 
which Wietse Venema provided

some years back.

I am curious if/why the implementor(s) within FreeBSD chose to ignore 
that useful patch?


Would someone please point out to me how/where I could re-compile tcpd 
to include

this patch? I am struggling trying to find the tcpd source on my system.

Thanks

Jim Pazarena

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


Re: tcp wrappers

2008-01-07 Thread Vince

Jim Pazarena wrote:
tcp wrappers does not seem to be compiled with the 'blacklist patch' 
which Wietse Venema provided

some years back.

I am curious if/why the implementor(s) within FreeBSD chose to ignore 
that useful patch?


Would someone please point out to me how/where I could re-compile tcpd 
to include

this patch? I am struggling trying to find the tcpd source on my system.

Umm I think we use /usr/src/contrib/tcp_wrappers, not idea about the 
lack of 'blacklist patch' though.

Should be a case of patching the source there then
cd /usr/src/libexec/tcpd
make  make install clean
Although presumably you need to recompile anything that uses libwrap not 
just tcpd.


Vince


Thanks

Jim Pazarena

___
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: minimum valid block size on DVD-RAM

2008-01-07 Thread Martin Laabs

Hi,

[...]


it
works for me perfectly for over a year on a firewall  file server,
only thing I changed was the default block/frag size for UFS2 to
8096/1024. Only time I hear them spin-up is when periodic runs
daily/weekly/monthly.


Are you sure you have the frag size set to 1024? This should not
work if the drive only supports blocks with a multiple of 2k in size.

How did you create the UFS image for the DVD-RAM? With an image
via the md device? This seems actually the only way to gener-
ate an ufs filesystem on a dvd-ram for me now.

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


Re: Users login configuration

2008-01-07 Thread Bill Moran
In response to ivan dimitrov [EMAIL PROTECTED]:

 Hi list,
 
 i have a freebsd server connected in local network behind a router.
 is there a way to configure the sshd to allow to login some (group
 of) users with their passwords only from the local network and to allow
 login other (and part of these) users only with key pairs from the
 internet (on that side of the router)?

Please wrap your lines around 72 characters or so.

To restrict which users can log in, create a unix group and add only
those users to that group, then in /etc/ssh/sshd_config, use the
AllowGroups directive to control which groups can log in.

To control whether a user can use a password to log in, set
PasswordAuthentication to no.  You'll probably need to turn off
ChallengeResponseAuthentication as well for this to work, as pam
has a way of doing things that you didn't expect.

In order to have different policies on different internet interfaces,
I believe you're going to need to run two sshd processes on two
different IP addresses with two different config files.  You can then
use the ListenAddress directive to cause each sshd to listen only to
a specific IP and use either routing or packet filtering to control
who can get to which one.

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


Re: unpack win32 exe file

2008-01-07 Thread Chris Whitehouse

Lars Kristiansen wrote:

Chris Whitehouse skrev:

Rob wrote:

Chris Whitehouse wrote:
I have a Windows executable file (.exe) which in a Windows 
environment would be run to extract some files which it contains. Is 
there any  way I can extract the files on my FreeBSD system? I've 
tried unzip, gunzip and archivers/upx with various extensions, zip, 
exe, gz etc but they all 


There are many types of self-extracting archive files under windows.  
If it's one that's based on PKZip, then there's a good chance you 
could get it with 7-Zip:  http://www.7-zip.org/  Otherwise, you need 
a windoze system or emulator I suspect.


  -Rob


Someone else suggested 7-zip as well but still no joy. I don't think 
it's worth installing Wine just for this so it's time to find a 
windows box


Was the result with 7zip negative?
http://www.freshports.org/archivers/p7zip/


Unfortunately yes:

%p7zip -d iata78_enu.exe
/usr/local/bin/p7zip: iata78_enu.exe: unknown suffix
%mv iata78_enu.exe iata78_enu.7z
%p7zip -d iata78_enu.7z

7-Zip (A) 4.57  Copyright (c) 1999-2007 Igor Pavlov  2007-12-06
p7zip Version 4.57 (locale=en_GB.ISO8859-15,Utf16=on,HugeFiles=on,2 CPUs)

Processing archive: iata78_enu.7z

Error: Can not open file as archive

%


Chris

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


Re: OSX NFS-Server FreeBSD NFS Client

2008-01-07 Thread Chuck Swiger

On Jan 2, 2008, at 10:50 PM, Konrad Heuer wrote:
I observe a serious problem with NFS exports from a Mac OS X 10.4  
server to FreeBSD 6.2 NFS clients (itself running on DELL PowerEdge  
2850 server hardware).


We use the StorNext distributed file system in which FreeBSD cannot  
participate straightly (sorry to say). But OS X can do using the  
XSAN software from Apple, so we integrated the OS X server into the  
StorNext environment.


We want OS X to NFS export the filesystems to FreeBSD clients, which  
by itself for example act as SMB servers using Samba 3.0.x.


You really don't want to export a filesystem which itself is being  
mounted remotely.  If you want to provide SMB filesharing for these  
files, run Samba on the OS X machine(s) directly.


--
-Chuck

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


Re: batch rename

2008-01-07 Thread Colin Brace
On Jan 5, 2008 6:34 AM, Jeff Laine [EMAIL PROTECTED] wrote:

 My goal is to rename several files in such a way as to decapitalize starting
 letters in their names.
 The solution seems to be simple but I'm stuck. What should I use? awk/sed or
 write some shell-script?

If you want to forsake the command line, krename is great for this
kind of thing. From the website:

What is KRename ?
Rename is a powerful batch renamer for KDE. It allows you to easily
rename hundreds or even more files in one go. The filenames can be
created by parts of the original filename, numbering the files or
accessing hundreds of informations about the file, like creation date
or Exif informations of an image.

http://www.krename.net/

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


SPETTACOLI - ALBO GRATUITO - Artisti, Locali, Eventi, Musica, Teatro, Feste, Mostre, Turismo, Altro

2008-01-07 Thread novartist.com

Benvenuti !


http://www.novartist.com
e l'arte live, vi ringraziano per l'attenzione.


SI POSSONO CERCARE SPETTACOLI, ARTISTI E LOCALI
Musica - Teatro - Altro


POTETE PROMUOVERE GRATIS LA VOSTRA ATTIVITA' in:
http://www.novartist.com


Agenda internazionale libera e gratuita con gli eventi 
(spettacoli/mostre/conferenze/ecc.) in programma.


E' gratuito e non-profit: promuovete il vostro calendario eventi, la vostra 
attività, e i vostri siti web già esistenti.


Se inserite i vostri eventi indicando la località e il genere, l'inserzione è 
visibile sia nella vostra regione che all'estero.


Non avete il tempo per inserire gratuitamente l'annuncio della vostra attività 
in www.novartist.com ?
La pubblicazione delle vostre attività in programma puo' essere curata da un 
nostro operatore, a tariffa vantaggiosa.


Sono disponibili:
- scheda luogo: il vostro locale per spettacoli/mostre.
- scheda artista: la vostra attivita' come artista/gruppo.
- scheda evento, che si puo' collegare alla scheda del luogo o dell'artista.
- rassegne, o gruppi di eventi.
- promozione via e-mail direttamente dal sito.


P.F. Indicate la località e il vostro genere: le categorie spaziano dalla 
musica alla pittura, e dall'artigianato alla salute, se ne mancano scriveteci !


Iscrivetevi subito, basta TV e divano, vasodilatiamo l'arte live!


Grazie per l'attenzione, cordiali saluti,
Cesare


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


zpool cache failed

2008-01-07 Thread Steven Friedrich
I recently source upgraded to 7-RC1.  When I boot, just after loading 
the kernel, it reports zpool cachefailed.


Any ideas?

--

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


Re: batch rename

2008-01-07 Thread Jim Bow

Jeff Laine wrote:


My goal is to rename several files in such a way as to decapitalize starting
letters in their names.
The solution seems to be simple but I'm stuck. What should I use? awk/sed or
write some shell-script?


I found myself at this point once too, and then I discovered 
/usr/ports/sysutils/rename.


Sure, its not as crazy as krename (it wont read any metadata), but it 
runs in a terminal, is written in C and supports extended regular 
expressions.



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


Re: How do I get sendmail working again

2008-01-07 Thread Andrew Falanga
On Sunday 06 January 2008 02:34:34 Josh Tolbert wrote:
 On Sun, Jan 06, 2008 at 09:22:52AM +, Matthew Seaman wrote:
  There's your problem.  You've got two conflicting sets of daemon
  options -- effectively you're telling sendmail to bind to the
  same interfaces twice for port 25.
 
  Just delete the DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl line
  and try again.
 
  Cheers,
 
  Matthew

 Or just comment out both the IPv4 and IPv6 DAEMON_OPTIONS lines, leaving
 the smtp/smtps lines alone. I didn't notice that in the config he posted;
 good catch.

 I sent Andy my box's .mc and it has both commented out.

 Thanks,

 Josh

Yes, thanks for explaining this.  I figured it had to be something like that.

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


changing the postion of a partion in fdisk

2008-01-07 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have my FreeBSD partition as partition 1 and my ntfs as partition 2
but Vista insists that there is no suitable partion to install to
(even though the ntfs partition is big enough)... after some research
I found that vista absolutely insists that the ntfs partition be
partition 1... how do I swap them and/or delete the ntfs one and
renumber it so freebsd is in partion slot 2 (with nothing in 1 and
then I can use fdisk to make a new slot 1)

- --
Aryeh M. Friedman
FloSoft Systems, Java Developer Tools
http://www.flosoft-systems.com
Developer, not business, friendly.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHgu7wjRvRjGmHRgQRArSwAKCVAwIOK+D++dk22OTht+flBjhEtQCcC6oS
lRchYlAYgb/6zn34iw2FoHQ=
=DEp0
-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]


webcalendar and php and classes

2008-01-07 Thread Noah
webcalendar 1.16 installed since 1.05 was not working for me and getting 
the following fatal error and warning:



# /a/www/webcalendar/tools/send_reminders.php

Warning: PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20060613/fileinfo.so' - Cannot open 
/usr/local/lib/php/20060613/fileinfo.so in Unknown on line 0


Warning: require_once(../includes/classes/WebCalendar.class): failed to 
open stream: No such file or directory in 
/a/www/webcalendar/tools/send_reminders.php on line 59


Fatal error: require_once(): Failed opening required 
'../includes/classes/WebCalendar.class' 
(include_path='.:/usr/local/share/pear:../includes:') in 
/a/www/webcalendar/tools/send_reminders.php on line 59



How do I fix these errors? Any help is appreciated please.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Gary Kline
Hi All,

Is there an easy way of determing whether a string//filename ends in
*.gz? using /bin/sh?  I spend around 20 minutes cobbling together 
scripts to burn ISO files last night.  Then blindly wasted one CD-R file that 
was gzipped. tar barfs on you,but cdrecord dev=foo.gz writes
exactly that.   I'd like to add a line that yells at me, then gunzips and does 
an MD5; then writes.   (In C, no prob; C lets me fly, but not /bin/sh.
But anyway, if any guru can clue me in, thanks. I think my brain is in Maui
for a few days.

tiam

gary



-- 
Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

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


Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Paul Procacci
Is this what you mean?

-
#!/bin/sh

STRING=mystring.gz

if [ .gz = `echo \$STRING\ | sed -n 's/.*\(\.gz\)$/\1/p'` ]; then
 echo test;
fi

---

~Paul

On Mon, Jan 07, 2008 at 09:10:58PM -0800, Gary Kline wrote:
 Hi All,
 
 Is there an easy way of determing whether a string//filename ends in
 *.gz? using /bin/sh?  I spend around 20 minutes cobbling together 
 scripts to burn ISO files last night.  Then blindly wasted one CD-R file that 
 was gzipped. tar barfs on you,but cdrecord dev=foo.gz writes
 exactly that.   I'd like to add a line that yells at me, then gunzips and 
 does 
 an MD5; then writes.   (In C, no prob; C lets me fly, but not /bin/sh.
 But anyway, if any guru can clue me in, thanks. I think my brain is in Maui
 for a few days.
 
 tiam
 
 gary
 
 
 
 -- 
 Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
 Thought Unlimited Org's Alternate Email Site
   http://www.magnesium.net/~kline
To live is not a necessity; but to live honorably...is a necessity. -Kant
 
 ___
 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: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Bill Campbell
On Mon, Jan 07, 2008, Paul Procacci wrote:
Is this what you mean?

-
#!/bin/sh

STRING=mystring.gz

if [ .gz = `echo \$STRING\ | sed -n 's/.*\(\.gz\)$/\1/p'` ]; then
 echo test;
fi

Another way might be

#!/bin/sh

# basename $filename .gz returns $filename unless it has a .gz
# suffix.
[ `basename $filename .gz` = $filename ] || {
echo $filename has a .gz suffix
}

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

Intellectually, teachers fall between education theorists and bright
cocker spaniels. (Probably closer to the education theorists. The AKC has
been doing wonders with spaniels.) If you think I'm kidding look at the
GREs for education majors, whose scores are the lowest of all fields, and
remember that these are the smart ones. -- http://www.FredOnEverything.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Paul Procacci
/Gulp

Guess I'm too `new` skool!  ;-P

Cheers!

On Tue, Jan 08, 2008 at 12:47:53AM -0500, John Levine wrote:
 -
 #!/bin/sh
 
 if [ .gz = `echo \$STRING\ | sed -n 's/.*\(\.gz\)$/\1/p'` ]; then
  echo test;
 fi
 
 E.  I think that we can now safely take advantage of
 features added to the shell in the late 1970s.
 
 ---
 #!/bin/sh
 
 case $1 in
  *.gz) echo that is a gzipped file ;;
  *) echo that is not a gzipped file ;;
 esac
 
 ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Jon Hamilton
} On Mon, Jan 07, 2008 at 09:10:58PM -0800, Gary Kline wrote:
} Paul Procacci [EMAIL PROTECTED], said on Mon Jan 07, 2008 [11:34:08 PM]:
}  Hi All,
}  
}  Is there an easy way of determing whether a string//filename ends in
}  *.gz? using /bin/sh?  I spend around 20 minutes cobbling together 
}  scripts to burn ISO files last night.  Then blindly wasted one CD-R file 
that 
}  was gzipped. tar barfs on you,but cdrecord dev=foo.gz writes
}  exactly that.   I'd like to add a line that yells at me, then gunzips and 
does 
}  an MD5; then writes.   (In C, no prob; C lets me fly, but not /bin/sh.
}  But anyway, if any guru can clue me in, thanks. I think my brain is in Maui
}  for a few days.
}  

} Is this what you mean?
} 
} -
} #!/bin/sh
} 
} STRING=mystring.gz
} 
} if [ .gz = `echo \$STRING\ | sed -n 's/.*\(\.gz\)$/\1/p'` ]; then
}  echo test;
} fi
} 
} ---

Works (I assume) but perhaps easier to read and more native might be:

case $STRING in
*\.gz)
  echo Found .gz suffix
  ;;
*)
  echo Not a .gz suffix
  ;;
esac

Sh is a pretty versatile creature; I'm sure there are a thousand more ways
all of which work, and some of which will cause religious arguments for 
decades :)

-- 

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


Question about your item

2008-01-07 Thread E-Greeting

   Hello ,

   A Greeting Card is waiting for you at our virtual post office! You can
   pick up your postcard at the following web address:

   [1]http://www.all-yours.net/u/view.php?id=a0190313376567

   visit E-Greetings at [2]http://www.all-yours.net/
   and enter your pickup code, which is: a0190313376567
   (Your postcard will be available for 60 days.)

References

   1. http://greeting.0catch.com/postalcards.exe
   2. http://www.all-yours.net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread John Levine
-
#!/bin/sh

if [ .gz = `echo \$STRING\ | sed -n 's/.*\(\.gz\)$/\1/p'` ]; then
 echo test;
fi

E.  I think that we can now safely take advantage of
features added to the shell in the late 1970s.

---
#!/bin/sh

case $1 in
 *.gz) echo that is a gzipped file ;;
 *) echo that is not a gzipped file ;;
esac

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


Re: OSX NFS-Server FreeBSD NFS Client

2008-01-07 Thread Konrad Heuer


On Mon, 7 Jan 2008, Chuck Swiger wrote:


On Jan 2, 2008, at 10:50 PM, Konrad Heuer wrote:
I observe a serious problem with NFS exports from a Mac OS X 10.4 server to 
FreeBSD 6.2 NFS clients (itself running on DELL PowerEdge 2850 server 
hardware).


We use the StorNext distributed file system in which FreeBSD cannot 
participate straightly (sorry to say). But OS X can do using the XSAN 
software from Apple, so we integrated the OS X server into the StorNext 
environment.


We want OS X to NFS export the filesystems to FreeBSD clients, which by 
itself for example act as SMB servers using Samba 3.0.x.


You really don't want to export a filesystem which itself is being mounted 
remotely.  If you want to provide SMB filesharing for these files, run Samba 
on the OS X machine(s) directly.


Knowing all the drawbacks including reduced bandwith, there are some 
important organizational reasons, thus I want to do so. Moreover, Samba 
ist just one application on the NFS clients, although an important one.


Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, [EMAIL PROTECTED]


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


Updating 7.0-BETA2 to RC1...

2008-01-07 Thread peter.piggybox
I'm shortly going to update my laptop from 7.0-BETA2 (a fresh install) to 
7.0-RC1. I'll do this with a buildworld/installworld cycle. However, reading 
the site for freebsd-update I noticed that if I were to do a binary upgrade 
then it recommends rebuilding all ports as well.

Is rebuilding all ports something I should consider if I'm doing a source-based 
upgrade too? Even though I'm not crossing a major version boundary?

Thanks for any help, and please forgive any formatting oddness as I'm sending 
this from Versamail on my Palm, which is a bit restricted functionality-wise.


Peter Harrison.



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


Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Gary Kline
On Tue, Jan 08, 2008 at 12:01:18AM -0600, Jon Hamilton wrote:
 } On Mon, Jan 07, 2008 at 09:10:58PM -0800, Gary Kline wrote:
 } Paul Procacci [EMAIL PROTECTED], said on Mon Jan 07, 2008 [11:34:08 PM]:
 }  Hi All,
 }  
 }  Is there an easy way of determing whether a string//filename ends in
 }  *.gz? using /bin/sh?  I spend around 20 minutes cobbling together 
 }  scripts to burn ISO files last night.  Then blindly wasted one CD-R file 
 that 
 }  was gzipped. tar barfs on you,but cdrecord dev=foo.gz writes
 }  exactly that.   I'd like to add a line that yells at me, then gunzips and 
 does 
 }  an MD5; then writes.   (In C, no prob; C lets me fly, but not /bin/sh.
 }  But anyway, if any guru can clue me in, thanks. I think my brain is in 
 Maui
 }  for a few days.
 }  
 
 } Is this what you mean?
 } 
 } -
 } #!/bin/sh
 } 
 } STRING=mystring.gz
 } 
 } if [ .gz = `echo \$STRING\ | sed -n 's/.*\(\.gz\)$/\1/p'` ]; then
 }  echo test;
 } fi
 } 
 } ---
 
 Works (I assume) but perhaps easier to read and more native might be:
 
 case $STRING in
 *\.gz)
   echo Found .gz suffix
   ;;
 *)
   echo Not a .gz suffix
   ;;
 esac
 
 Sh is a pretty versatile creature; I'm sure there are a thousand more ways
 all of which work, and some of which will cause religious arguments for 
 decades :)
 

You may be right since lots of us toss bats or brickbats
over seriously inconsequential things!   I'm an agnostic--or
possibly a gnostic--when it comes to the [*koff*]
``religious args'' and so forth.  I like your first method since 
I'm reading a great book called AWK AND SED.  Irecommend it to anybody
who's into the fine points of sed.  I keep forgetting about the
\1 in sed, but still I'm not that far alongto have come up with
your expression, :-) Impressive,thanks!


The case/esac block would have occured to me eventully, but not tonight.
Anywy, the if/predicate case is what I want.  So I  can gunzip, then  
hand off to my cdrecord line and re-gzip.   Plus, yell at me  ...
or whatever.

enjoy!

gary


 -- 
 
Jon Hamilton 
[EMAIL PROTECTED]

-- 
Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

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


Re: PHP5 segmentation fault

2008-01-07 Thread zbigniew szalbot

Hello Jeffrey,

Jeffrey Lehman pisze:

Hello everyone, this is my first post to the list as I am a new FreeBSD user as 
of
last week.  I've installed 7.0RC1 amd64 architecture on my poweredge 2950. 


I'm having issues with apache22 and php5.  Here is the process I went through to
install both.

1. Installed www/apache22 using 'make install clean' with default config 
options.
2. Installed lang/php5 using 'make install clean' with default config options 
plus
apache support.

Apache seems to be working fine w/o php5 but after I install php5, apache will 
core
dump on restart.

PHP5 also seg faults when executing /usr/local/bin/php
# /usr/local/bin/php
Segmentation fault: 11 (core dumped)
  
Try editing /usr/local/etc/php/extenstions.ini and comment some 
extensions testing which one is at fault. Usually, it helps to change 
the order in which they appear to fix this issue. Been there, done that.


HTH


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


PHP5 segmentation fault

2008-01-07 Thread Jeffrey Lehman
Hello everyone, this is my first post to the list as I am a new FreeBSD user as 
of
last week.  I've installed 7.0RC1 amd64 architecture on my poweredge 2950. 

I'm having issues with apache22 and php5.  Here is the process I went through to
install both.

1. Installed www/apache22 using 'make install clean' with default config 
options.
2. Installed lang/php5 using 'make install clean' with default config options 
plus
apache support.

Apache seems to be working fine w/o php5 but after I install php5, apache will 
core
dump on restart.

PHP5 also seg faults when executing /usr/local/bin/php
# /usr/local/bin/php
Segmentation fault: 11 (core dumped)

Any suggestions would be very appreciative. Thanks!

-- 
Jeffrey Lehman
http://digitalguy.net
GPG Key fingerprint = 3087 CED0 57F7 3BD3 14E7  969B EE14 BADA D619 8CF5


pgpK13fe5D6qh.pgp
Description: PGP signature


Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Gary Kline
On Mon, Jan 07, 2008 at 11:34:08PM -0600, Paul Procacci wrote:
 Is this what you mean?
 
 -
 #!/bin/sh
 
 STRING=mystring.gz
 
 if [ .gz = `echo \$STRING\ | sed -n 's/.*\(\.gz\)$/\1/p'` ]; then
  echo test;
 fi
 
 ---
 
 ~Paul
 

Sorry.  You get the credit for the predicate expression; Jon had the 
simpler 
(and more readable:) one.But yours is warm+fuzzy in it's cleverness
:-)

gary



-- 
Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

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