Re: NATD: net.inet.ip.fw.default_to_accept="1" vs firewall_type="OPEN"

2013-10-10 Thread Chris Stankevitz
On Thu, Oct 10, 2013 at 8:22 PM, Michael Ross  wrote:
> ipfw always has one default rule, standard is
>
> [snip]
>
> Specifing firewall_type="OPEN" gives you an additional rule


Michael,

Thank you that is exactly what I am seeing.

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


NATD: net.inet.ip.fw.default_to_accept="1" vs firewall_type="OPEN"

2013-10-10 Thread Chris Stankevitz
Hello,

Handbook section 31.9 describes the setup of NAT.

Section 31.9.3 suggests net.inet.ip.fw.default_to_accept="1" "during
the first attempts to setup a firewall and NAT gateway".

Section 31.9.5 suggests I "specify a predefined firewall ruleset that
allows anything in" with firewall_type="OPEN"

Question: What is the difference between these two configurations (or
where can I go to learn the difference between the two)?

Thank you,

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


NAT: Handbook vs mailing list

2013-10-07 Thread Chris Stankevitz
http://www.freebsd.org/doc/handbook/network-natd.html

http://lists.freebsd.org/pipermail/freebsd-questions/2011-April/229017.html

Hello,

Handbook section 31.9.3 suggests I should, among other things, add the
line ipdivert_load="YES" to /boot/loader.conf when setting up NAT.

The mailing list message linked above suggests that the handbook
information is the "old way" and that the correct way is to set
ipfw_enable and natd_enable in rc.conf.  "Then /etc/rc.d/ipfw will
load ipfw.ko, and if natd_enable is set, will invoke /etc/rc.d/natd,
which loads ipdivert.ko at the right time."

My inclination is to follow the handbook, but I thought I should first
check to ensure the handbook is up-to-date.

Thank you,

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: which port (qt4 part?) contains linguist.dcf et al.?

2013-09-13 Thread Chris Kelley
Fair enough. I grabbed that from a vanilla 9.1-RELEASE install that hasn't had 
any updates to the tree.
I now see that it has been removed after updating the ports tree on that box.

/usr/ports.old/x11-toolkits/qt33 # cat distinfo 
SHA256 (KDE/qt-x11-free-3.3.8.tar.bz2) = 
e8c3f703d00a4e2ab9ba63fd474caa8a9d0aa3d7f1d5451dd162bec9d778a449
SIZE (KDE/qt-x11-free-3.3.8.tar.bz2) = 14360483

Looks like it's still available here (sha256 matches):
http://ftp.freebsd.org/pub/FreeBSD/distfiles/KDE/qt-x11-free-3.3.8.tar.bz2


Cheers,
Chris


On Sep 13, 2013, at 11:33 AM, Gary Aitken  wrote:

> On 09/13/13 10:47, Chris Kelley wrote:
>> Just a quick search through ports/x11-toolkits:
>> 
>> /usr/ports/x11-toolkits # grep -R "linguist.dcf" *
>> qt33/pkg-plist:share/doc/qt/html/linguist.dcf
>> 
>> Looks to be x11-toolkits/qt33.
> 
> How old is your ports tree?
> According to freshports it expired on 20130-7-01
> 
> # portmaster x11-toolkits/qt33
> 
> ===>>> The x11-toolkits/qt33 port has been deleted: Has expired: No upstream 
> activity since 2008; unmaintained
> ===>>> Aborting update
> 
> Is there an easy way to get the distfile when the port has been deleted?
> Maybe the files have been moved to some qt4 port, but after doing a make 
> extract on some of them I couldn't find them.
> 
>> On Sep 13, 2013, at 9:34 AM, Gary Aitken  wrote:
>> 
>>> Can someone tell me which port is the source for linguist.dcf and friends?
>>> 
>>> I have lprof-devel installed, but not the full qt4, and these files are 
>>> missing so the lprof help doesn't work.  I suspect a missing dependency,
>>> but would prefer not to install all of qt4 to find out.
>>> 
>>> Thanks.
>>> ___
>>> freebsd-questions@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>> 
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>> 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

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


Re: which port (qt4 part?) contains linguist.dcf et al.?

2013-09-13 Thread Chris Kelley
Just a quick search through ports/x11-toolkits:

/usr/ports/x11-toolkits # grep -R "linguist.dcf" *
qt33/pkg-plist:share/doc/qt/html/linguist.dcf

Looks to be x11-toolkits/qt33.

Cheers,
Chris

On Sep 13, 2013, at 9:34 AM, Gary Aitken  wrote:

> Can someone tell me which port is the source for linguist.dcf and friends?
> 
> I have lprof-devel installed, but not the full qt4, and these files are 
> missing so the lprof help doesn't work.  I suspect a missing dependency,
> but would prefer not to install all of qt4 to find out.
> 
> Thanks.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

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


Re: Setup HP Laserjet 1120m over network with LPD

2013-08-18 Thread Chris Hill

On Sun, 18 Aug 2013, Juris Kaminskis wrote:


as suggested i tried now foo2xqx filter. My printcap entry:
---
HP:\
:lp=:\
:sh:\
:mx#0:\
:rm=192.168.1.105:\
:rp=raw:\
:sd=/var/spool/hp:\
:if=/usr/bin/foo2xqx-wrapper:\
:lf=/var/log/lpd-errs:\
---

^
That backslash needs to go, for one thing. The backslash indicates 
continuation on the next line, but I don't know what would happen if 
there is no next line. In other words, the last line should NOT end with 
a backslash.


HTH.

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: learn

2013-08-07 Thread Chris Hill

On Thu, 8 Aug 2013, Quark wrote:


On Aug 1, 2013, at 8:31 AM, Mike Jeays wrote:



[ big snip ]


Hell, I may even get a hoody from the store :)


hey, where are the hoodies??? I found for mozilla & openSUSE on their 
respective sites very good looking hoodies, but nor FreeBSD I won't 
hesitate to order one for reasonable price of 20-30 USD


https://www.freebsdmall.com/cgi-bin/fm/scan/fi=prod_bsd/tf=list_order/sf=category/se=shirts?id=bipk46TB&mv_pc=267

FreeBSD Mall, then "shirts and jackets". They cost a little more than 
that, though.


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


ab failing with Operation not permitted

2013-07-12 Thread Chris Smith
Hi,

I'm having some trouble with ab shipped with apache22 from 9.1 binary 
packages. I am currently running a trial to replace our Debian kit with 
FreeBSD as we've had numerous problems. It will be hosting a few web apps,
postfix, dovecot virtual, postgres, SVN etc. I'm a little rusty as I'm
coming back to FreeBSD from a long holiday in Linux-land since FreeBSD 
4.4 :)

Anyway, ab is failing as follows:

# ab -n 1 -c 50 http://hostname/
...usual junk scrolls past
Completed 4000 requests

Test aborted after 10 failures

apr_socket_connect(): Operation not permitted (1)
Total of 4531 requests completed
#

I suspect this is a sysctl that needs poking somewhere or a limit 
somewhere. Any help appreciated on this one.

--
Chris Smith
http://pointyhat.org.uk/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: OT: rsync on Mac OSX

2013-07-12 Thread Chris Maness
On Fri, Jul 12, 2013 at 11:12 AM, Paul Kraus  wrote:

> Dropping the list …
>
> On Jul 12, 2013, at 1:49 PM, Chris Maness  wrote:
>
> > Checksums are the same.  All other files still work however the HUGE
> > rendered Final Cut Pro output, so I guess it is something in .DS_Store.
> > Last time I just gave up and recopied everything by a simple cut and
> paste
> > and that solved the problem.  I made a small change on the project today,
> > and I don't want to have to copy the WHOLE thing again just for a small
> > delta.  I already synced the directories, but the new rendered files are
> > still un-openable in any application even though the checksums match.
> > Really weird.  However, the project will still open and work on FCP.
>  Just
> > the 12Gb rendered movie files will not play on anything even FCP.  If I
> > delete .DS_Store will the system regenerate it with the appropriate file
> > associations?
>
> The .DS_Store files are created by the Finder when you view a directory.
> Are both source and destination on Mac HFS+ volumes ? If so, then you are
> probably missing the resource forks.
>
> Back in the very old days of Mac OS (way before 10.x), Mac OS files had
> two parts, the data part that contained the, well, data, and the resource
> fork that contained the meta-data that Mac OS used to associate a file with
> an application. HFS+ volumes on Mac OS X still include the resource forks,
> but "foreign" filesystems (NFS, UFS, FAT, etc.) do not. The work around
> that Apple came up with is to create .DS_Store and ._ files to store
> this metadata on non HFS+ volumes.
>
> You could try using ditto instead of rsync. ditto is a BSD derived copy
> utility similar to rysnc, but I know that the Mac OS X version understands
> resource forks and copies them as necessary. ditto may not be able to just
> copy changed blocks within a file, so you may still have to recopy the
> entire file.
>
> But…. I am also a little puzzled because applications on Mac OS X do not
> NEED the resource fork to open a file, just to know which application to
> use (and what options to hand it) to open a given file. A complete video
> file, even without resource forks, should be able to be opened if you
> explicitly telly he application to File -> Open …. With the checksums
> matching it is even odder. I expect that the large sizes (over 4 GB) are a
> contributing factor.
>
> Good luck and let me know what you find.
>
> --
> Paul Kraus
> Deputy Technical Director, LoneStarCon 3
> Sound Coordinator, Schenectady Light Opera Company
>
>
Thank you for the detailed description of what resource forks are.  One
more clue in this mystery is that appending .mov extension to it fixes the
problem.  I have never ran into this before, and I have even used rsync to
back up movie projects before.  It is not a big deal, but I always try to
take the time to understand why things behave the way they do.  I also
suspect it has something to do with file size since all of the smaller
files do not have this issue.

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: OT: rsync on Mac OSX

2013-07-12 Thread Chris Maness
On Tue, Jul 2, 2013 at 3:11 PM, Chris Maness  wrote:

>
>
>
>
>> Since you are going to wait anyway, why don't you try peeking at some of
>> the file checksums while this is running?
>>
>> MacOS X comes with a shasum utility which implements SHA-256 checksums,
>> so you should be able to look at a few random samples of these files,
>> e.g. by running on the source disk:
>>
>> shasum -a 256 source_directory/file/path/to/some/file.ext
>>
>> shasum -a 256 copied_directory/file/path/to/some/file.ext
>>
>> If these are the same, then the applications look elsewhere, e.g. in the
>> 'hidden' .DS_Store stuff some MacOS directories contain.
>>
>> But if the checksums are different, well, then there's your problem.
>>
>>
>
Checksums are the same.  All other files still work however the HUGE
rendered Final Cut Pro output, so I guess it is something in .DS_Store.
 Last time I just gave up and recopied everything by a simple cut and paste
and that solved the problem.  I made a small change on the project today,
and I don't want to have to copy the WHOLE thing again just for a small
delta.  I already synced the directories, but the new rendered files are
still un-openable in any application even though the checksums match.
 Really weird.  However, the project will still open and work on FCP.  Just
the 12Gb rendered movie files will not play on anything even FCP.  If I
delete .DS_Store will the system regenerate it with the appropriate file
associations?

I know this is a little off topic, but Mac OSX is based on BSD.  You guys
are also the smartest around :D

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: OT: rsync on Mac OSX

2013-07-02 Thread Chris Maness
> Since you are going to wait anyway, why don't you try peeking at some of
> the file checksums while this is running?
>
> MacOS X comes with a shasum utility which implements SHA-256 checksums,
> so you should be able to look at a few random samples of these files,
> e.g. by running on the source disk:
>
> shasum -a 256 source_directory/file/path/to/some/file.ext
>
> shasum -a 256 copied_directory/file/path/to/some/file.ext
>
> If these are the same, then the applications look elsewhere, e.g. in the
> 'hidden' .DS_Store stuff some MacOS directories contain.
>
> But if the checksums are different, well, then there's your problem.
>
>
That could be the issue.  I did see some permission warnings with
.DS_Store.  However, to make space I had to dump all of it, so no files to
do a post mortem on.  I will have to check that out if things go awry this
time.

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: OT: rsync on Mac OSX

2013-07-02 Thread Chris Maness
On Tue, Jul 2, 2013 at 2:30 PM, Giorgos Keramidas
wrote:

> On Tue, 2 Jul 2013 13:35:00 -0700, Chris Maness 
> wrote:
> > I have been using rsync with Mac OSX with no issues until today.  I
> > generally use it instead of the copy command because if the copy fails
> > on large files, I can pick up where I left off.  I have backed up
> > entire Final Cut Pro projects this way with no issues.  However, I
> > recently synced a drive to a folder in another drive, and the OS does
> > not recognize the final rendered files as quicktime files.  The files
> > work fine in the parent drive.  I have no idea what might be going on.
> > I used the flags: rsync -vaur like I always do.  Any suggestions?
>
> This is a FreeBSD list, so any issues rsync may have with MacOS X are
> not very relevant to what FreeBSD is doing or would do.  Having said
> that though, can you try without the -u option?  Maybe modification
> times are newer on the target drive and rsync skips everything.
>
> You should probably also enable --stats and have a look at the final
> report of rsync, to see if it actually sync'ed any files, or skipped all
> of them because of mtime checks.
>
>
Yep, the files copied, and I used "touch" to force them to recopy.
 However, the files that were copied are not recognizable by their native
aps.  Just big junk files.  I have no clue what happened.  I am just
copying everything by a simple cut and paste this time.  However, this
directory is HUGE and I won't know until about 18 hours from now.

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


OT: rsync on Mac OSX

2013-07-02 Thread Chris Maness
I have been using rsync with Mac OSX with no issues until today.  I
generally use it instead of the copy command because if the copy fails on
large files, I can pick up where I left off.  I have backed up entire Final
Cut Pro projects this way with no issues.  However, I recently synced a
drive to a folder in another drive, and the OS does not recognize the final
rendered files as quicktime files.  The files work fine in the parent
drive.  I have no idea what might be going on.  I used the flags: rsync
-vaur like I always do.  Any suggestions?

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: issues compiling world

2013-06-27 Thread Chris Knipe
Hi,

Followed those and recompiled.  Precisely the same issue :-(


On Thu, Jun 27, 2013 at 4:44 PM, Jerry  wrote:
> On Thu, 27 Jun 2013 16:10:54 +0200
> Chris Knipe articulated:
>
>> Hi all,
>>
>> I've been battling the whole day now trying to compile 9 STABLE
>> I've svn'ed the source from branch base/stable/9 numerious times and
>> the code base as far as I can tell is up to date...
>>
>> cc -O2 -pipe  -I/usr/src/usr.sbin/tcpdump/tcpdump
>> -I/usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump
>> -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -DINET6 -DLBL_ALIGN
>> -I/usr/obj/usr/src/tmp/usr/include/openssl -DHAVE_LIBCRYPTO
>> -DHAVE_OPENSSL_EVP_H -DHAVE_NET_PFVAR_H -std=gnu99 -fstack-protector
>> -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
>> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
>> -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c
>> /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-pfsync.c
>> /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-pfsync.c:
>> In function 'print_src_dst':
>> /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-pfsync.c:330:
>> error: 'tcpstates' undeclared (first use in this function)
>> /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-pfsync.c:330:
>> error: (Each undeclared identifier is reported only once
>> /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-pfsync.c:330:
>> error: for each function it appears in.)
>> *** [print-pfsync.o] Error code 1
>>
>> Stop in /usr/src/usr.sbin/tcpdump/tcpdump.
>> *** [all] Error code 1
>>
>> Can someone perhaps recommend a course of action?
>
> Have you followed all of the directions precisely as stated on
> <http://www.freebsd.org/doc/en/books/handbook/makeworld.html>,
> especially
> <http://www.freebsd.org/doc/en/books/handbook/makeworld.html#idp91153200>
> and
> <http://www.freebsd.org/doc/en/books/handbook/makeworld.html#idp91104944>.
>
> --
> Jerry ♔
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the Reply-To header.
> __
> There is a fine line between genius and insanity. I have erased this line.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"



-- 

Regards,
Chris Knipe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

issues compiling world

2013-06-27 Thread Chris Knipe
Hi all,

I've been battling the whole day now trying to compile 9 STABLE
I've svn'ed the source from branch base/stable/9 numerious times and
the code base as far as I can tell is up to date...

cc -O2 -pipe  -I/usr/src/usr.sbin/tcpdump/tcpdump
-I/usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump
-DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -DINET6 -DLBL_ALIGN
-I/usr/obj/usr/src/tmp/usr/include/openssl -DHAVE_LIBCRYPTO
-DHAVE_OPENSSL_EVP_H -DHAVE_NET_PFVAR_H -std=gnu99 -fstack-protector
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c
/usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-pfsync.c
/usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-pfsync.c:
In function 'print_src_dst':
/usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-pfsync.c:330:
error: 'tcpstates' undeclared (first use in this function)
/usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-pfsync.c:330:
error: (Each undeclared identifier is reported only once
/usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-pfsync.c:330:
error: for each function it appears in.)
*** [print-pfsync.o] Error code 1

Stop in /usr/src/usr.sbin/tcpdump/tcpdump.
*** [all] Error code 1

Can someone perhaps recommend a course of action?

--

Regards,
Chris Knipe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Any BASIC Gurus around?

2013-06-18 Thread Chris Maness
On Tue, Jun 18, 2013 at 4:31 AM, Paul Wootton <
paul-free...@fletchermoorland.co.uk> wrote:

> On 06/17/13 20:40, Greg Larkin wrote:
>
>> Hi Chris,
>>
>> I prepared a new patch that incorporates my fixes, yours and
>> Michael's.  I found the coredump - multiple missing right parens on
>> line 1170.  Then I ran into another problem on line 430 and made an
>> educated guess with the fix.
>>
>> The new patch is here, and you'll need to apply it to the original
>> version of the program:
>> http://people.freebsd.org/~**glarkin/diffs/prog.bas.2.diff<http://people.freebsd.org/~glarkin/diffs/prog.bas.2.diff>
>>
>> Hope that works,
>> Greg
>>
>
> Hi Chris and Greg,
>
> I have gone through the code and found a load more differences. I dont
> know if the sun and moon positions are correct though
> As a side note, the the first page of code on the PDF page number 5 is
> different from the PDF page number 34. I have used page numbers 34 -> 38 as
> my code reference.
>
> I have a patch file at 
> http://www.caspersworld.co.uk/**FreeBSD/basic.diff<http://www.caspersworld.co.uk/FreeBSD/basic.diff>
>
> HTH
> Paul
>
>
>
Paul, which version did you patch for?  It doesn't seem to be the latest or
the original.  If you want to post the whole file.  I can figure out if you
are missing any of the other contributions out there.  I think there were a
total of three patches before yours.

Thanks, Paul
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Any BASIC Gurus around?

2013-06-17 Thread Chris Maness
Here is a link to the USNO article that the BASIC program originated from:
USNO171s.pdf <http://www.chrismaness.com/backend/USNO171s.pdf>

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Any BASIC Gurus around?

2013-06-17 Thread Chris Maness
On closer inspection it looks like the moons in the right spot, but the Sun
is in the wrong spot.  I will take a look and see if there is no error in
the lines that deal with the Sun's Az/El.  I have the original code that
was scanned from a USNO document.  The OCR was rather sloppy.  I will post
the original in a minute and send the link.

Thanks, again
Chris Maness


On Mon, Jun 17, 2013 at 1:24 PM, Chris Maness  wrote:

> Thanks a ton Greg, it works great.  The only thing I that seems to be an
> issue of I use Zulu time.  According to the ephemeris the time seems to be
> wrong when I use Zulu time.  I would have never been able to fix that
> program.  Thanks again.  I am going to load it on my NEC 8201A and see if
> it will run there :D
>
> Thanks,
> Chris Maness
>
>
> On Mon, Jun 17, 2013 at 12:40 PM, Greg Larkin  wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On 6/17/13 3:03 PM, Chris Maness wrote:
>> > Oops, here is another patch that includes a correction for the
>> > missing parenthesis that Michael Ross pointed out:
>> >
>> > --- sun.bas.orig2013-06-17 11:51:00.0 -0700 +++
>> > sun.bas2013-06-17 11:57:55.0 -0700 @@ -104,7 +104,7 @@ 1020
>> > ON N GOTO 1030, 1090 1030 IS=133775.*M/SK 1040 PRINT "SUN AZIMUTH
>> > (DEG.) ";AZ -1050 PRINT "SUN ALTITUDE (DOG.) ";HA +1050 PRINT "SUN
>> > ALTITUDE (DEG.) ";HA 1060 PRINT "SUN ILLUMINANCE (LUX) ";IS 1070
>> > N=2 1080 GOTO 940 @@ -200,7 +200,7 @@ 1980 DS=FNARCSIN(SD) 1990
>> > RETURN 2000 H=(A(L)-SI*SD)/(CI*COS(D))S -2010 IF ABS(H>1. THEN GOTO
>> > 2040 +2010 IF ABS(H)>1. THEN GOTO 2040 2020 H=FNARCOS(H)*RD/C 2030
>> > RETURN 2040 H=1.5
>> >
>> > Thanks, guys.  It will be cool if I can figure out why the
>> > interpreter is core dumping.
>> >
>> > Chris Maness
>>
>> Hi Chris,
>>
>> I prepared a new patch that incorporates my fixes, yours and
>> Michael's.  I found the coredump - multiple missing right parens on
>> line 1170.  Then I ran into another problem on line 430 and made an
>> educated guess with the fix.
>>
>> The new patch is here, and you'll need to apply it to the original
>> version of the program:
>> http://people.freebsd.org/~glarkin/diffs/prog.bas.2.diff
>>
>> Hope that works,
>> Greg
>>
>> - --
>> Greg Larkin
>>
>> http://www.FreeBSD.org/   - The Power To Serve
>> http://www.sourcehosting.net/ - Ready. Set. Code.
>> http://twitter.com/cpucycle/  - Follow you, follow me
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v1.4.13 (Darwin)
>> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>>
>> iEYEARECAAYFAlG/ZiIACgkQ0sRouByUApAjVQCfYAWvfi7sJwa6+og+jcJDsrno
>> jaYAn1vqRecRUn8e1dqU9uI+TMlvjU3Q
>> =9Tnl
>> -END PGP SIGNATURE-
>>
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Any BASIC Gurus around?

2013-06-17 Thread Chris Maness
Oops, here is another patch that includes a correction for the missing
parenthesis that Michael Ross pointed out:

--- sun.bas.orig 2013-06-17 11:51:00.0 -0700
+++ sun.bas 2013-06-17 11:57:55.0 -0700
@@ -104,7 +104,7 @@
 1020 ON N GOTO 1030, 1090
 1030 IS=133775.*M/SK
 1040 PRINT "SUN AZIMUTH (DEG.) ";AZ
-1050 PRINT "SUN ALTITUDE (DOG.) ";HA
+1050 PRINT "SUN ALTITUDE (DEG.) ";HA
 1060 PRINT "SUN ILLUMINANCE (LUX) ";IS
 1070 N=2
 1080 GOTO 940
@@ -200,7 +200,7 @@
 1980 DS=FNARCSIN(SD)
 1990 RETURN
 2000 H=(A(L)-SI*SD)/(CI*COS(D))S
-2010 IF ABS(H>1. THEN GOTO 2040
+2010 IF ABS(H)>1. THEN GOTO 2040
 2020 H=FNARCOS(H)*RD/C
 2030 RETURN
 2040 H=1.5

Thanks, guys.  It will be cool if I can figure out why the interpreter is
core dumping.

Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Any BASIC Gurus around?

2013-06-17 Thread Chris Maness
Thanks a ton Greg.  It is crashing here too.  I am not sure as to the
cause.  I made a small patch to place on top of yours.  There is a typo
that outputs the sun position as DOG instead of DEG.  Here it is:

--- sun.bas.orig 2013-06-17 11:51:00.0 -0700
+++ sun.bas 2013-06-17 11:44:06.0 -0700
@@ -104,7 +104,7 @@
 1020 ON N GOTO 1030, 1090
 1030 IS=133775.*M/SK
 1040 PRINT "SUN AZIMUTH (DEG.) ";AZ
-1050 PRINT "SUN ALTITUDE (DOG.) ";HA
+1050 PRINT "SUN ALTITUDE (DEG.) ";HA
 1060 PRINT "SUN ILLUMINANCE (LUX) ";IS
 1070 N=2
 1080 GOTO 940

Regards,
Chris Maness


On Mon, Jun 17, 2013 at 10:52 AM, Greg Larkin  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 6/17/13 1:16 PM, Chris Maness wrote:
> > I am having trouble getting this old USNO basic program running in
> > bwBASIC. The error output is not clear to me where the problem is.
> > Here is the code, if someone wouldn't mind running it and
> > suggesting edits:
> >
>
> ...setting wayback machine to ca. 1979...
>
> Here is a patch to apply to your code that gets the program a little
> further: http://people.freebsd.org/~glarkin/diffs/prog.bas.diff
>
> There were some "O" characters that should have been "0" instead and
> at least a couple of Unicode characters that I removed.
>
> It prints out some results up to the moon illuminance, and then
> bwBasic core dumps, but maybe you'll be able to debug from there.
>
> Good luck,
> Greg
> - --
> Greg Larkin
>
> http://www.FreeBSD.org/   - The Power To Serve
> http://www.sourcehosting.net/ - Ready. Set. Code.
> http://twitter.com/cpucycle/  - Follow you, follow me
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.13 (Darwin)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlG/TPIACgkQ0sRouByUApDxQwCggXDVspM4GF2dlI5EvlmUsvld
> qtYAn2NeBVSPHJ8p4nEYvN80bbXZGecr
> =Z9tY
> -END PGP SIGNATURE-
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Any BASIC Gurus around?

2013-06-17 Thread Chris Maness
I am having trouble getting this old USNO basic program running in bwBASIC.
 The error output is not clear to me where the problem is.  Here is the
code, if someone wouldn't mind running it and suggesting edits:

10 DEF FNARCOS(ARG)=1.570796-ATN(ARG/SQR(1.-ARG*ARG))
20 DEF FNARCSIN(ARG)=ATN(ARG/SQR(1.-ARG*ARG))
30 DEF FNDEG(ARG)=INT(ARG)+((ARG-INT(ARG))*1O.)/6.
40 DEF FNDMS(ARG)=INT(ARG)+6. * (ARG - INT(ARG)) / 10!
50 RD=57.29578
60 DR=1./RD
70 DIM A(4)
80 DIM B(2)
90 A(1)=-.01454
100 A(2)=-.10453
110 A(3)=-.20791
120 A(4)=.00233
130 CE=.91775
140 SE=.39715
150 INPUT "LONGITUDE IN DEG."; LO
160 LI=ABS(LO)
170 INPUT "LATITUDE IN DEG."; F
180 F=F*DR
190 S1=SIN(F)
200 CI=COS(F)
210 INPUT "YEAR (4 DIGITS)"; IY
220 INPUT "MONTH (NUMERAL)"; IM
230 INPUT "DAY (NUMERAL)"; ID
240 C=360.
250 J=367*IY-INT(7*(IY+INT((IM+9)/12))/4)+INT(275*IM/9)+ID-730531.
260 INPUT "UNIVERSAL TIME = 0, ZONE TIME = 1, LOCAL MEAN TIME = 2"; Z
270 DT=0.
280 IF Z=0. THEN LET DT=-LO/C
290 IF Z=1. THEN LET DT=-(LI-15*INT((LI+7.5)/15))/C*SGN(LO)
300 INPUT "HOUR (4 DIGIT NUMERAL ON 24 HOUR CLOCK)"; H
310 ZO#=J-.5
320 IF H>0 THEN GOTO 870
330 PRINT "DATA FOR ";IY; ", MONTH ";IM; ", DAY";ID
340 FOR L=1 TO 4
350 ON L GOTO 370, 650, 650, 360
360 C=347.81
370 M=.5+DT
380 K=1
390 M=M-DT
400 E=M-LO/360.
410 GOSUB 430
420 GOTO 530
430 D#-ZO#+E
440 IF ABS(E)>=1 THEN LET E=E-SGN(E)
450 GOSUB 1220
460 IF L=4 THEN GOSUB 1720
470 T=T+LO+360.*E
480 T=T-INT(T/360.)*360.
490 U=T-AS
500 IF ABS(U) > 180! THEN LET U=U-360.*SGN(U)
510 U=U/C
520 RETURN
530 M=M-U+DT
540 IF L<4 THEN LET K=K+1
550 ON K GOTO 600,560,600,580,600,620
560 IF M>=O. AND M<1. THEN GOTO 620
570 GOTO 590
580 IF M>=O. THEN GOTO 620
590 M=M-SGN(M)
600 K=K+1
610 GOTO 390
620 H=FNARCSIN(COS(F-DS))*RD
630 IF L=4 THEN LET H=H-.95*COS(H)
640 GOSUB 2160
650 GOSUB 2000
660 B(1)=M-H
670 B(2)=M+H
680 FOR I=1 TO 2
690 K=2*I-3
700 FOR N=1 TO 6
710 B(I)=B(I)-DT
720 E=B(I)-LO/360.
730 GOSUB 430
740 GOSUB 2000
750 B(I)=B(I)+K*H-U+DT
760 IF L<4 THEN LET N=N+1
770 ON N GOTO 820,780,820,800,820,830
780 IF B(I)>=O. AND B(I)<1. THEN GOTO 830
790 GOTO 810
800 IF B(I)>=O. THEN GOTO 830
810 B(I)=B(I)-SGN(B(I))
820 NEXT N
830 NEXT I
840 ON L GOSUB 1350,1400,1400,1610
850 NEXT L
860 GOTO 150
870 INPUT"SKY CONDITION = 1,2,3,10,";SK
880 PRINT"DATA FOR ";IY;", MONTH ";IM;", DAY ";ID;", AT ";H;" HOURS"
890 E=FNDEG(H/100.)/24.-DT-LO/360.
900 D#=ZO#+E
910 N=1
920 GOSUB 1220
930 T=T+360.*E+LO
940 IF N=2 THEN GOSUB 1720
950 H=T-AS
960 GOSUB 2060
970 Z=H*DR
980 H=H-.95*(N-1)*COS(H*DR)
990 GOSUB 2160
1000 GOSUB 2200
1010 HA=INT(ABS(HA)+.5)*SGN(HA)
1020 ON N GOTO 1030, 1090
1030 IS=133775.*M/SK
1040 PRINT"SUN AZIMUTH (DEG.) ";AZ
1050 PRINT"SUN ALTITUDE (DOG.) ";HA
1060 PRINT"SUN ILLUMINANCE (LUX) ";IS
1070 N=2
1080 GOTO 940
1090 E=FNARCOS(COS(V-LS)*CB)
1100 P=.892*EXP(-3.343/((TAN(E/2.))^.632))+.0344*(SIN(E)-E*COS(E))
1110 P=.418*P/(1.-.005*COS(E)-.03*SIN(Z))
1120 IL=P*M/SK
1130 IS=IS+IL+.0005/SK
1140 PRINT"MOON AZIMUTH (DEG.) ";AZ
1150 PRINT"MOON ALTITUDE (DEG.) ";HA
1160 PRINT"MOON ILLUMINANCE (LUX) ";IL
1170 IL=INT(50.*(1.-COS(E»+.5)
1180 PRINT" (";IL;"% OF MOON ILLUMINATED)"
1190 PRINT"TOTAL ILLUMINANCE (LUX) ";IS
1200 GOTO 300
1210 END
1220 TD#=280.46#+.98565#*D#
1230 T=TD#-INT(TD#/360#)*360#
1240 IF T=4800. OR R1. THEN GOTO 2040
2020 H=FNARCOS(H)*RD/C
2030 RETURN
2040 H=1.5
2050 RETURN
2060 CD=COS(PS)
2070 CS=COS(H*DR)
2080 Q=SD*CI-CD*SI*CS
2090 P=-CD*SIN(H*DR)
2100 AZ=ATN(P/Q)*RD
2110 IF Qhttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 9.1-RELEASE slow boot

2013-06-12 Thread Chris Whitehouse

On Fri, 7 Jun 2013 19:38:34 +0200, Fernando Apesteguía wrote:

Since I updated to 9.1-RELEASE my boot process seems to stall for a
while. Booting in verbose mode shows messages like these ones:

Opening device da0 ->  6 (repeated like 30 times or so)
Opening device da1 ->  6 (repeated like 30 times or so)
Opening device da2 ->  6 (repeated like 30 times or so)
Opening device da3 ->  6 (repeated like 30 times or so)

Those devices correspond to my internal SD card reader that doesn't
work on FreeBSD anyway. This seems some kind of probing right? I don't
want to wait for those devices. What can I do to speed up booting? I
didn't change my system settings either. Did anything related change
in the kernel about probing these type of devices?


Since you are not using the device could you not just disable it in the 
BIOS?


Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Can sasl/sendmail Report IP Of Failed Access?

2013-06-04 Thread Chris Hill

On Tue, 4 Jun 2013, Doug Hardie wrote:


On 4 June 2013, at 08:47, Tim Daneliuk  wrote:


I am seeing login dictionary attacks on a FreeBSD mail server being
reported.  Is there a way to determine the IPs that are doing this
so they can be blocked at the firewall?   auth.log only
notes the attempted user name, not the IP of origin.
--



I wrote some code to find the appropriate maillog entries which do 
include the IP addresses.  It automagically adds the IP addresses to 
the pf blackhole table if certain criteria is met.  The criteria is 
changeable.  If you would like a copy, let me know.


That sounds incredibly useful. Can you post it somewhere?


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Test

2013-06-01 Thread Chris Hill

On Sat, 1 Jun 2013, Al Plant wrote:


Ping . Pong


http://lists.freebsd.org/mailman/listinfo/freebsd-test

Mahalo.



~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
 + http://hawaiidakine.com + http://freebsdinfo.org +
 + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
 < email: n...@hdk5.net >
"All that's really worth doing is what we do for others."- Lewis Carrol


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: BSD sleep

2013-05-29 Thread Chris Rees
On 29 May 2013 07:13, "Matthew Seaman"  wrote:
>
> On 29/05/2013 05:59, Michael Sierchio wrote:
> > On Tue, May 28, 2013 at 4:45 PM, Joshua Isom  wrote:
> >
> >
> >> You think it's trivial until you read this:
> >>
> >> http://infiniteundo.com/post/**25326999628/falsehoods-**
> >> programmers-believe-about-time<
http://infiniteundo.com/post/25326999628/falsehoods-programmers-believe-about-time
>
> >>
> >>
> > Some days have 86400 seconds, some have 86401.  There is a provision for
> > two leap seconds to be applied at once, but that hasn't ever happened.
> >  Still, a truly correct clock, set to UTC, might someday read
> >
> > 23:59:59
> > 23:59:60
> > 23:59:61
> > 00:00:00
> >
> > How many seconds did that hour have?
>
> Right.  The fact that on very rare occasions a minute may not have 60
> seconds in it plus many other corner cases in calculating the current
> wall-clock time is an amusing irrelevance.
>
> First of all, sleep deals in local elapsed time, which is a well defined
> property even if the displayed wall-clock time would be all over the
> place due to DST changes or relativistic effects or whatever.
>
> In this case, I'd be pretty surprised if GNU sleep's algorithm was
> anything more complicated than to convert the stated time into seconds
> and then sleep that number of seconds.  And to do that conversion, it
> wwould just define one minute as 60 seconds, one hour as 60 minutes, one
> day as 24 hours, one week as 7 days, perhaps one month as 30 days, one
> year as 365 days[*].  Sure, it's simplistic and unsophisticated, but as
> an engineering solution it's good enough for the vast majority of
> purposes.

OK, but is this really something the OS should handle?  I'm sure sleep
`expr 3600 \* 2` will suffice and is perfectly readable, including being
more portable.

Why should we keep putting these weird "extensions" in?  At some point it
just becomes fiddling, and yet another source of error when porting

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Linksys WPC54g NDIS compiles but doesn't work?

2013-05-02 Thread Chris Whitehouse

On 02/05/2013 16:02, Steven wrote:

Hello,

I posted this once already, but I wasn't subscribed at the time and
I don't think it got posted to the list. Hopefully this isn't a
dupe.

I've installed FreeBSD 9.1 RELEASE on a family member's laptop, a
Toshiba Satellite 5100. Said member was using a Linksys WPC54g v.4
pcicard for wireless. I downloaded the v.4 drivers for the card
from the Cisco website and was able to use ndisgen to build a
wrapper for the driver.


Hi,

I have a PCMCIA WPC54g V5 which works with malo(4). It might work with 
your V4. You need to download some firmware - see the man page.


Chris



There were no errors during the build and I'm able to load the
resultant ndis, but aside from some initial static when the ndis is
loaded the card is not being configured. ndis0 doesn't show in the
dmesg and doesn't appear in the ifconfig output.

Before I built the wrapper I had updated my source, base and
userland so all of that should have been up to date for the system I
was building it against.

I'm getting to the point where I'd rather spend the cash on
something compatible from Free's hardware list, but I'd like to give
this ndis thing one more go before I tell this family member to
chuck the card.

kldstat

Id Refs Address Size Name
1 18 0xc040 fd35e8 kernel
2 1 0xc13d4000 4bdd4 bcmwl5_sys.ko
3 3 0xc142 1fa58 ndis.ko
4 2 0xc144 f1e4 if_ndis.ko

ifconfig

fwe0: flags=8802 metric 0 mtu 1500
options=8
ether 02:00:39:16:49:4e
nd6 options=29
ch 1 dma -1
fwip0: flags=8802 metric 0 mtu 1500
lladdr 0.0.39.0.0.16.49.4e.a.2.ff.fe.0.0.0.0
nd6 options=29
fxp0: flags=8843 metric 0 mtu 1500
options=2009
ether 00:00:39:f4:73:9f
inet 10.0.1.19 netmask 0xff00 broadcast 10.0.1.255
nd6 options=29
media: Ethernet autoselect (100baseTX )
status: active
lo0: flags=8049 metric 0 mtu 16384
options=63
inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 inet
127.0.0.1 netmask 0xff00 nd6 options=21

dmesg

Copyright (c) 1992-2012 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 9.1-RELEASE-p3 #0: Mon Apr 29 18:11:52 UTC 2013
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz (1694.54-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf24 Family = f Model = 2 Stepping = 4
Features=0x3febf9ff

real memory = 536870912 (512 MB)
avail memory = 501706752 (478 MB)
kbd1 at kbdmux0
ctl: CAM Target Layer loaded
acpi0:  on motherboard
acpi0: Power Button (fixed)
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, 1fed (3) failed
cpu0:  on acpi0
attimer0:  port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0:  port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xee08-0xee0b on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
agp0:  on hostb0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
vgapci0:  mem
0xfd00-0xfdff,0xd800-0xdfff,0xd7f8-0xd7ff irq 5
at device 0.0 on pci1
uhci0:  port
0xefe0-0xefff irq 11 at device 29.0 on pci0
usbus0 on uhci0
uhci1:  port
0xef80-0xef9f irq 7 at device 29.1 on pci0
usbus1 on uhci1
uhci2:  port
0x1000-0x101f at device 29.2 on pci0
usbus2 on uhci2
pcib2:  at device 30.0 on pci0
pci2:  on pcib2
fwohci0:  at device 7.0 on pci2
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:00:39:00:00:16:49:4e
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0:  on fwohci0
fwe0:  on firewire0
if_fwe0: Fake Ethernet address: 02:00:39:16:49:4e
fwe0: Ethernet address: 02:00:39:16:49:4e
fwip0:  on firewire0
fwip0: Firewire address: 00:00:39:00:00:16:49:4e @ 0xfffe, S400,
maxrec 2048
dcons_crom0:  on firewire0
dcons_crom0: bus_addr 0x1f65c000
fwohci0: Initiate bus reset
fwohci0: fwohci_intr_core: BUS reset
fwohci0: fwohci_intr_core: node_id=0x, SelfID Count=1,
CYCLEMASTER mode
fxp0:  port 0xdf40-0xdf7f mem
0xfceff000-0xfcef irq 4 at device 8.0 on pci2
miibus0:  on fxp0
inphy0:  PHY 1 on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow
fxp0: Ethernet address: 00:00:39:f4:73:9f
cbb0:  at device 11.0 on pci2
cbb0: chip is in D3 power mode -- setting to D0
cardbus0:  on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1:  at device 11.1 on pci2
cbb1: chip is in D3 power mode -- setting to D0
cardbus1:  on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pci2:  at device 12.0 (no driver attached)
pci2:  at device 13.0 (no driv

Re: kernel config file

2013-03-21 Thread Chris Whitehouse

On 21/03/2013 19:54, Fbsd8 wrote:

Back around 4.x there was a File that had all the available kernel
compile options with their meanings as comments. On 9.1 I don't see that
file any more. Where can I find that file that lists all the kernel
compile options? The 9.1 NOTES file is not that file.

I have "makeoptions NO_MODULES=yes" statement in my kernel config file
and the "blanktime" and "warp_saver" load modules don't get created.

I need the options statements for those items so I can compile then into
the kernel.


Would it be /usr/src/sys/conf/NOTES ?

%grep warp_saver /usr/src/sys/conf/NOTES
device  warp_saver

And isn't blanktime set in rc.conf?

%grep blank /etc/defaults/rc.conf
blanktime="300"     # blank time (in seconds) or "NO" to turn it off.


Chris


Thanks



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



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


Re: Problems Printing

2013-03-13 Thread Chris Petrik

On 03/13/2013 09:34 AM, Joseph A. Nagy, Jr wrote:

On 03/13/13 10:11, Bernt Hansson wrote:

On 2013-03-10 20:26, Joseph A. Nagy, Jr wrote:

On 03/05/13 23:47, Matthias Apitz wrote:

El día Tuesday, March 05, 2013 a las 03:42:15PM -0600, Joseph A.
Nagy, Jr escribió:



Canon pixma mp210. Is not 100% supported under cups.





Surprise surprise


should of been done before posting here if said printer is supported or not.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: day light saving time happened today

2013-03-10 Thread Chris Hill

On Sun, 10 Mar 2013, Fbsd8 wrote:


date command shows
Sun Mar 10 16:50:33 EDT 2013


Very odd that your clock would be off by *two* hours.


The real question is does New York State have day light saving time?


Yes, it does. I lived there for many years.

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problems Printing

2013-03-10 Thread Chris Petrik

On 03/10/2013 02:41 PM, Joseph A. Nagy, Jr wrote:

On 03/10/13 15:29, Chris Petrik wrote:


Are you using /usr/local/bin/lpr or /usr/bin/lpr also did you specify to
rename cups stuff to be installed as system wide ?


I don't know? make.conf:

WITH_CUPS=YES
CUPS_OVERWRITE_BASE=YES
WITHOUT_LPR=YES

And, as per earlier in this thread:
ls -la /usr/bin/lpr
--  1 root  daemon  37104 Dec  4 03:34 /usr/bin/lpr


Also you dont specify which printer is it



Sorry, I thought I brought in the maintainer on my first email, saw 
s/he wasn't in later emails and added.


Canon Pixma MP210


I am the maintainer I just don't use the other email in ML's
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problems Printing

2013-03-10 Thread Chris Petrik

On 03/10/2013 01:26 PM, Joseph A. Nagy, Jr wrote:

On 03/05/13 23:47, Matthias Apitz wrote:
El día Tuesday, March 05, 2013 a las 03:42:15PM -0600, Joseph A. 
Nagy, Jr escribió:



then the test is

$ date | lpr -PPIXMA

matthias



I figured that out, sent the test, it queud the job and stuck there.
When I get home I'm going to clear the cups logs and start over again.


Does the CUPS' test page works from the web interface? If not, try to
configure the printer as Generic Postscript first.

matthias

w/o using the web interface (I don't particularly care for it, 
honestly, I find it confusing) I deleted the old logs, restarted the 
cupsd service, and sent


# date | lpr -PPIXMA
less access_log
localhost - - [10/Mar/2013:14:08:23 -0500] "POST /printers/PIXMA 
HTTP/1.1" 200 302 Create-Job successful-ok
localhost - - [10/Mar/2013:14:08:23 -0500] "POST /printers/PIXMA 
HTTP/1.1" 200 261 Send-Document successful-ok


Nothing in error_log or page_log

Trying the web interface now.

Added the printer via the web interface using usual drivers, logs show 
the following:

# less access_log
localhost - - [10/Mar/2013:14:14:53 -0500] "POST /admin/ HTTP/1.1" 200 
66 - -
localhost - - [10/Mar/2013:14:14:53 -0500] "POST / HTTP/1.1" 401 75 
CUPS-Get-Devices successful-ok
localhost - - [10/Mar/2013:14:14:53 -0500] "POST /admin/ HTTP/1.1" 200 
1864 - -
localhost - - [10/Mar/2013:14:14:58 -0500] "POST /admin/ HTTP/1.1" 200 
60 - -
localhost - - [10/Mar/2013:14:14:58 -0500] "POST / HTTP/1.1" 401 91 
CUPS-Get-Devices successful-ok
localhost - - [10/Mar/2013:14:14:58 -0500] "POST /admin/ HTTP/1.1" 401 
60 - -
localhost - - [10/Mar/2013:14:14:58 -0500] "POST /admin/ HTTP/1.1" 200 
60 - -
localhost - root [10/Mar/2013:14:15:07 -0500] "POST /admin/ HTTP/1.1" 
200 60 - -
localhost - - [10/Mar/2013:14:15:07 -0500] "POST / HTTP/1.1" 401 91 
CUPS-Get-Devices successful-ok
localhost - root [10/Mar/2013:14:15:07 -0500] "POST / HTTP/1.1" 200 
1565 CUPS-Get-Devices -
localhost - root [10/Mar/2013:14:15:07 -0500] "POST /admin/ HTTP/1.1" 
200 3062 - -
localhost - - [10/Mar/2013:14:15:24 -0500] "POST /admin HTTP/1.1" 200 
92 - -
localhost - - [10/Mar/2013:14:15:24 -0500] "POST /admin HTTP/1.1" 200 
3148 - -
localhost - - [10/Mar/2013:14:15:39 -0500] "POST /admin HTTP/1.1" 200 
212 - -
localhost - - [10/Mar/2013:14:15:39 -0500] "POST / HTTP/1.1" 200 1581 
CUPS-Get-PPDs -
localhost - - [10/Mar/2013:14:15:39 -0500] "POST /admin HTTP/1.1" 200 
5514 - -
localhost - - [10/Mar/2013:14:15:59 -0500] "POST /admin HTTP/1.1" 200 
1932 - -
localhost - - [10/Mar/2013:14:15:59 -0500] "POST / HTTP/1.1" 200 
493199 CUPS-Get-PPDs -
localhost - - [10/Mar/2013:14:15:59 -0500] "POST /admin HTTP/1.1" 200 
206446 - -
localhost - - [10/Mar/2013:14:16:59 -0500] "POST /admin HTTP/1.1" 200 
1951 - -
localhost - - [10/Mar/2013:14:16:59 -0500] "POST /admin/ HTTP/1.1" 401 
352 CUPS-Add-Modify-Printer successful-ok
localhost - - [10/Mar/2013:14:16:59 -0500] "POST /admin HTTP/1.1" 401 
1951 - -
localhost - - [10/Mar/2013:14:16:59 -0500] "POST /admin HTTP/1.1" 200 
1951 - -
localhost - root [10/Mar/2013:14:16:59 -0500] "POST /admin HTTP/1.1" 
200 1951 - -
localhost - - [10/Mar/2013:14:16:59 -0500] "POST /admin/ HTTP/1.1" 401 
352 CUPS-Add-Modify-Printer successful-ok
localhost - root [10/Mar/2013:14:16:59 -0500] "POST /admin/ HTTP/1.1" 
200 352 CUPS-Add-Modify-Printer successful-ok
localhost - root [10/Mar/2013:14:16:59 -0500] "POST /admin HTTP/1.1" 
200 70230 - -
localhost - root [10/Mar/2013:14:17:29 -0500] "POST /admin HTTP/1.1" 
200 2063 - -
localhost - - [10/Mar/2013:14:17:29 -0500] "POST /admin/ HTTP/1.1" 401 
522723 CUPS-Add-Modify-Printer successful-ok
localhost - root [10/Mar/2013:14:17:29 -0500] "POST /admin/ HTTP/1.1" 
200 522723 CUPS-Add-Modify-Printer successful-ok
localhost - root [10/Mar/2013:14:17:29 -0500] "POST /admin HTTP/1.1" 
200 4015 - -
localhost - - [10/Mar/2013:14:18:04 -0500] "POST /printers/PIXMA 
HTTP/1.1" 200 302 Create-Job successful-ok
localhost - - [10/Mar/2013:14:18:04 -0500] "POST /printers/PIXMA 
HTTP/1.1" 200 261 Send-Document successful-ok


# less error_log
W [10/Mar/2013:14:15:40 -0500] [CGI] Missing NickName and ModelName in 
/usr/local/share/cups/model/foomatic-db-ppds/Brother/BR5070DN_GPL.ppd.gz!
W [10/Mar/2013:14:15:40 -0500] [CGI] Missing NickName and ModelName in 
/usr/local/share/cups/model/foomatic-db-ppds/Epson/eplp830c.ppd.gz!
W [10/Mar/2013:14:15:40 -0500] [CGI] Missing NickName and ModelName in 
/usr/local/share/cups/model/foomatic-db-ppds/Epson/eplp850c.ppd.gz!
W [10/Mar/2013:14:15:40 -0500] [CGI] Missing NickName and ModelName in 
/usr/local/share/cups/model/foomatic-db-ppds/Epson/eplp880c.ppd.gz!
W [10/Mar/2013:14:15:40 -0500] [CGI] Missing NickName and ModelName in 
/usr/local/share/cups/model/foomatic-db-ppds/Epson/eplp9100.ppd.gz!
W [10/Mar/2013:14:15:40 -0500] [CGI] Missing NickName and ModelName in 
/usr/local/share/cups/model/foomatic-db-ppds/Epson/eplp920c.ppd.gz!
W [10/Mar/2013:14:15:40 -0500] [CGI] Miss

Re: http://localhost/phpmyadmin

2013-02-20 Thread Chris Petrik

On 02/20/13 16:09, Armando Palax wrote:

sorry as I can access my localhost from my phpmyadmin, what happens is that I 
need to create a database and I can not enter because the strip 
http://localhost/phpmyadmin error.
would help me thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
you need to suply us the error you get. but i think it's due to lack of 
a web server listening on port 80 of localhost.

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


Re: Sendmail relaying for Intranet?

2013-02-13 Thread Chris Maness
On Wed, Feb 13, 2013 at 12:47 AM, Zyumbilev, Peter
 wrote:
>
> On 13/02/2013 09:50, Bernt Hansson wrote:
>
>> dnl define(`SMART_HOST', `your.isp.mail.server')
>>  on your intranet machine and put in your inet machine name.
>>
>
>
> Switching to postfix and editing mynetworks in main.cf might be simplest
> solution.
>
>
> Peter
> ___

That looks like would only take care of outbound mail, but what about
incoming mail?

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Upgrade causes loss of all firefox settings (?)

2013-02-13 Thread Chris Whitehouse

On 12/02/2013 21:38, Ronald F. Guilmette wrote:


In general, I don't upgrade my ports very often, so up until recently
I was running a fairly old version of firefox (firefox-15.0.1,1).

But over the weekend, I moved everything over to a new drive
containing the latest 9.1-RELEASE FreeBSD, and with a complete set
of freshly rebuilt ports, including the latest firefox 18.0.1.
(As part of this process, I copied my entire /home directory over
to the new drive.)

So anway, mostly everything is still working ok, however at some
time during this process, firefox apparently lost track of all
of my personal settings... my start page, all of my bookmarks,
and all of my saved web site user IDs an passwords.

I looked in the /usr/ports/UPDATING file for some clue as to why
this might have happened and found none.

Looking into this issue a bit deeper, I've now learned that all of
one's personal settings are stored in a directory having a name which
has the following general form:

~/.mozilla/firefox/.default

where the "" part is some eight character apparently random
combination of lower case letters and digits.

The odd thing is that it appears that all of my old firefox setting
are still alive and well and living under a subdirectory of the
~/.mozilla/firefox directory called "4up9dkb1.default".  However it
does also appear that my execution of firefox, for the first time, on
this new system I've been putting together has resulted in the creation
of a brand new parallel subdirectory, located in the same directory as
my original personal settings .default directory, but this new one is
named "nh2ykiym.default".  And now, firefox is apparently saving and
retrieving my (new set of) personal settings out of that new directory.

So, um, what gives?  Why did this happen?  And more to the point,
can I get back all of my personal settings just via the following
seemingly intutive commands:

rm -fr nh2ykiym.default
mv 4up9dkb1.default nh2ykiym.default

or will that break something else in some obscure but annoying way?


Is there a file .mozilla/firefox/profiles.ini? If so it should list 
which profile to use. Just change it to the one you want and it should 
just work.


I'm using an older version so don't know how the latest works

Chris



Regards,
rfg
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"



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


Re: Sendmail relaying for Intranet?

2013-02-12 Thread Chris Maness
On Tue, Feb 12, 2013 at 3:05 PM, Robison, Dave
 wrote:
>
> On 02/12/2013 12:54, Chris Maness wrote:
>> I have a FreeBSD box running sendmail that can see the whole internet.
>>  I have another mail server that hosts mail for an intranet.  It does
>> not have access to the i-net.  I think I remember reading that it is
>> possible for the i-net attached sendmail to relay mail for a domain to
>> another host.  Is there an easy answer and configuration for this?  If
>> not, no biggy since this exercise is more academic than a necessity.
>>
>> Thanks,
>> Chris Maness
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>>
>>
>
> in sendmail.cf on the host to be your relay, check for "DS" and use it
> like this:
>
> DS relayhost.domain.com
>
> in sendmail.cf on the hosts which will be relaying, use the DS command
> but point them to your new relay host.
>
> hope this helps.
>
> Dave

Dave, how would I add this to the MC file instead of the CF file?  I
usually rebuild these after an upgrade or a configuration change, and
I would rather do it in the MC file for that reason.

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to achieve E-Mail Notification on root login?

2013-02-12 Thread Chris Hill

On Tue, 12 Feb 2013, Zyumbilev, Peter wrote:


Allow "sudo bash" only.


The OP didn't want to use sudo because it's not in the base system. I 
would guess he also doesn't want to use bash, since it too is not in the 
base system.


 [ snip ]

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Sendmail relaying for Intranet?

2013-02-12 Thread Chris Maness
I have a FreeBSD box running sendmail that can see the whole internet.
 I have another mail server that hosts mail for an intranet.  It does
not have access to the i-net.  I think I remember reading that it is
possible for the i-net attached sendmail to relay mail for a domain to
another host.  Is there an easy answer and configuration for this?  If
not, no biggy since this exercise is more academic than a necessity.

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: mount: /dev/da0p1: Invalid argument

2013-02-08 Thread Chris Hill

On Fri, 8 Feb 2013, Anton Shterenlikht wrote:

 [ snip ]


So what is the advice for transferring data
via USB in such cases? Any other gpart partition
I could use?


I've always used FAT32 for thumb drives and the like. I don't know if 
the SPARC would be able to use it, but FAT32 seems like it's most likely 
to be usable by the largest number of different platforms.


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: who am i logged in as

2013-01-27 Thread Chris Hill

On Sun, 27 Jan 2013, Fbsd8 wrote:


I know there is a command that will give me the name
of the account I am logged in on.

But I can not recall the name of this command.

What is the name of this command?


whoami



Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"



--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sharing a mail folder between Linux and FreeBSD

2013-01-22 Thread Chris Whitehouse

On 22/01/2013 05:32, Polytropon wrote:

On Tue, 22 Jan 2013 02:31:11 +0100, Ralf Mardorf wrote:

On Tue, 2013-01-22 at 08:18 +0700, Erich Dollansky wrote:

I guess it would be possible to change the id for the existing FreeBSD
user and then to chown /home/user_name to fit to 1000?


Of course, this would work. But then all existing files of the existing
FreeBSD would be without owner.


The current user is: rocketmouse
The uid is : 1001

Isn't it possible to change the uid to 1000?
This would cause that the owner wouldn't be rocketmouse anymore, but
still 1001. I then could run chown -R for /home/rocketmouse to switch
from 1001 to back to rocketmouse = new uid 1000.


You would need to do two changes: First in the password database,
with chsh (tidy way) or by editing the /etc/passwd, /etc/master.passwd
and /etc/group files plus rebuilding the database with pwd_mkdb
(untidy way) to assign rocketmouse = 1000 on FreeBSD.


Could you do this with pw(8)?
# pw usermod rocketmouse -u 1000
checking first there isn't a uid 1000 already.

Then chown -R

Chris



Then you would also have to "promote" this change to the file
system, as all the files still belong to a user with UID 1001.
Use chown -R with the new numerical value of 1000.

Result: Your user would have the UID 1000 on all systems, so
all the "low level functions" would behave similarly.




Or another idea would be to create a new user with the uid 1000 and then
to add rocketmouse to the group of this user. I guess this is what you
already recommended.


Yes, that would also work. You only have to make sure that
group permissions are valid, and the "access permission" is
provided in /etc/group properly.





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


Re: sh script code to get file size.

2013-01-18 Thread Chris Hill

On Fri, 18 Jan 2013, Fbsd8 wrote:


In a script in am working on I need to find out the allocated
size of a sparse file.
The only command that comes to mind is "ls -lh"
The "du -h" command is not appropriate because it will show
the occupied size and not the allocated size.

I don't know how to parse out to the position in the output of that
"ls -lh" command to pickup the file size value.

Is there some other way to do this?


To parse it out, I've used something like:

$ ls -lh npviewer.bin.core | cut -d \  -f 9
186M

After the backslash are two spaces: one being the space that's being 
escaped to make it the delimiter, the other to separate the options.


The number after the '-f' determines which "field" of the output is 
displayed, which may vary.


HTH.

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: static ip address and ifconfig

2012-12-29 Thread Chris Hill

On Sat, 29 Dec 2012, Fbsd8 wrote:

[ ... ]

My host just has ifconfig_xl0="DHCP" in rc.conf and xl0 is the NIC 
connected to public internet connection coming from my ISP.


In that case, you are not using static IPs. If your ISP has assigned you 
- as in Poly's example - 123.456.789.1 through 123.456.789.25, then 
those addresses are for your use to assign as you see fit. You would 
configure this machine's interface for any address in that block. You 
can then configure the same interface for more than one of those, or use 
your extra IPs for other machines (or interfaces). Instead of 
ifconfig_xl0="DHCP" in rc.conf, you might have 
ifconfig_xl0="123.456.789.16 255.255.255.128" or some such.


HTH.

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Changes to kern.geom.debugflags?

2012-12-27 Thread Chris Ross

On Dec 25, 2012, at 6:25 PM, Marius Strobl wrote:
>> So, does anyone know if something has gone unstable in the sparc64 zfsboot 
>> in recent months?  If I boot from the cdrom again and load the July zfsboot 
>> via gpart bootcode, it boots correctly again.
>> 
> 
> Please see
> http://www.freebsd.org/cgi/getmsg.cgi?fetch=0+0+/usr/local/www/db/text/2012/freebsd-sparc64/20121223.freebsd-sparc64
> and provide debug information.

 I built the world with DEBUG_FLAGS=-g, and installed new zfsboot and zfsloader 
on my sparc64.  However, "ctrace" isn't helpful:

>> FreeBSD/sparc64 ZFS boot block
   Boot path:   /pci@1c,60/scsi@2/disk@1,0:a
Consoles: Open Firmware console  
ERROR: Last Trap: Division by Zero

{1} ok ctrace
No saved state
{1} ok 

 Anything else you can suggest to get debugging information out of zfsloader?

  - Chris

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


Re: Changes to kern.geom.debugflags?

2012-12-25 Thread Chris Ross

On Dec 25, 2012, at 18:25 , Marius Strobl  wrote:
> 
> Please see
> http://www.freebsd.org/cgi/getmsg.cgi?fetch=0+0+/usr/local/www/db/text/2012/freebsd-sparc64/20121223.freebsd-sparc64
> and provide debug information.

  Thank you.  I can rebuild everything with DEBUG_FLAGS=-g.  But do I need to 
do that in only boot?

  And, that message says:

> Please use debug versions of the loaders and report the output of
> `ctrace` on the boot monitor prompt. Building debug versions is
> most easily done via `make DEBUG_FLAGS=-g` in path/to/src/boot
> when building natively. You can also add the same when cross-
> compiling but then you'll end up with debug versions of everything.
> In both cases, make sure to not have any old object files in place.

  But, I'm not sure what "the boot monitor prompt" refers to, where i'm 
supposed to enter "ctrace".  When the boot crashes, I'm left at the open prom.  
Is that where I'm supposed to enter "ctrace"?  Apologies if so, I just haven't 
known of that OBP command previously.

  Thank you.  I'll try to come up with the debugging output you're requesting.  
And more directions would be appreciated.

- Chris

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


Re: Changes to kern.geom.debugflags?

2012-12-24 Thread Chris Ross

On Dec 23, 2012, at 16:56 , Chris Ross  wrote:
> I had brought up a machine months ago with freebsd-9-stable.  I configured it 
> to boot off of a single disk, with ZFS, expecting I would likely later attach 
> the other disk to the zpool.  I tried to do that today, but find that I can't 
> write the bootloader to either disk.
> 
> gpart: /dev/da0a: Operation not permitted
> 
>   [...]

  Okay.  It occurred to me today what was likely the problem.  I was running, 
even when single user, off of the zfs pool on the disks I was trying to write 
the bootloader to.

  I tar'd up /boot after my recent install from a Dec 22 9-stable, and moved it 
off-host.  Then, I booted off of the July stable-9 CD-ROM I have in the 
machine, and was able to write bootblocks (with gpart bootcode) and a 
bootloader (dd if=/boot/zfsloader of=/dev/${disk}a bs=512 oseek=1024 
conv=notrunc).

  Now, the new problem.  When I try to boot my sparc64 with these bits, I see:

>> FreeBSD/sparc64 ZFS boot block
   Boot path:   /pci@1c,60/scsi@2/disk@0,0:a
Consoles: Open Firmware console  
ERROR: Last Trap: Division by Zero

{1} ok

  So, does anyone know if something has gone unstable in the sparc64 zfsboot in 
recent months?  If I boot from the cdrom again and load the July zfsboot via 
gpart bootcode, it boots correctly again.

  Thanks.  Any feedback appreciated.

   - Chris

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


Changes to kern.geom.debugflags?

2012-12-23 Thread Chris Ross

  I had brought up a machine months ago with freebsd-9-stable.  I configured it 
to boot off of a single disk, with ZFS, expecting I would likely later attach 
the other disk to the zpool.  I tried to do that today, but find that I can't 
write the bootloader to either disk.

  Google searching shows what I used last time, that if you get a:

gpart: /dev/da0a: Operation not permitted

  you need to run

sysctl kern.geom.debugflags=0x10

  But, that doesn't change anything for me now.  I can write the boot label 
(using gpart bootcode -p /boot/zfsboot ${disk}) to neither disk, getting the 
same error in both cases.

  Has something changed recently?  I'm currently using a Dec 22 9-stable 
codebase, built locally with GENERIC kernel.

 - Chris

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


Re: FreeBSD as an Access Point

2012-12-21 Thread Chris Hill

On Fri, 21 Dec 2012, dweimer wrote:

I have been having a lot of performance issues with my home wireless, 
and am considering replacing the current APs early next year.  I 
wanted something a little more flexible than the standard consumer AP, 
without spending the money for a high end Cisco AP (I do realize that 
the hardware will run me in the range of their low end APs).  My early 
searching shows I should be able to get an Alix board, Wireless Card, 
and Antennas for around $300.


Not really an answer to the question, but maybe a solution to the 
problem... At my work we deploy a fair amount of wi-fi at clients' 
sites. The access points we like are Pakedge brand. These are solid, 
high-powered industrial-grade equipment, and in your price range. For 
what it's worth.


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Can't get start_precmd to do *anything*

2012-12-19 Thread Chris Rees
On 19/12/2012, Paul Schmehl  wrote:
> --On December 19, 2012 10:47:56 PM +0000 Chris Rees 
> wrote:
>
>> On 19/12/2012, Paul Schmehl  wrote:
>>> I'm working on an rc.d init script for a port, and I am clearly in need
>>> of a clue.
>>>
>>> I have a daemon that requires that a FIFO exist before it will start.
>>> The FIFO is defined in the daemon's conf file.  I could just point that
>>> out to the user using "warn", but I thought it would be nicer to simply
>>> take care of it programmatically.
>>>
>>> So I created this:
>>>
>>> start_precmd="${name}_ck4fifo()"
>>
>> Is this a copy/paste error, or is your function actually called
>> _ck4fifo or _ch4fifo?
>>
>
> Both, but I fixed it and nothing changed.
>
>>> ${name}_ch4fifo()
>>
>> I'm surprised sh isn't choking on this, you can't use ${name} in a
>> function name.  Indirecting it is a waste of processing time, if I'm
>> honest; just use
>>
>> start_precmd=pads_agent_prestart
>>
>> pads_agent_prestart()
>> {
>>  do_something
>> }
>>
>
> OK, I've done that.  Still no change. {{{sigh}}}
>
> Here's the current invocation:
>
> start_precmd="pads_agent_ck4fifo()"

Lose the parentheses in the above line (this isn't C :) )

Chris

> pads_agent_ck4fifo()
> {
> . ${pads_agent_conf}
> if [ ! -p ${PADS_FIFO} ]; then
> `/usr/bin/mkfifo ${PADS_FIFO}`
> fi
> echo "Checking for ${PADS_FIFO}"
> if [ -p ${PADS_FIFO} ]; then
> echo "${PADS_FIFO} exists."
> return 0
> else
> echo "I tried to create ${PADS_FIFO} and failed."
> echo "You will need to create it manually before starting
> ${name}."
> return 1
> fi
> }
>
> --
> Paul Schmehl, Senior Infosec Analyst
> As if it wasn't already obvious, my opinions
> are my own and not those of my employer.
> ***
> "It is as useless to argue with those who have
> renounced the use of reason as to administer
> medication to the dead." Thomas Jefferson
> "There are some ideas so wrong that only a very
> intelligent person could believe in them." George Orwell
>
>


-- 
Chris Rees  | FreeBSD Developer
cr...@freebsd.org   | http://people.freebsd.org/~crees
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Can't get start_precmd to do *anything*

2012-12-19 Thread Chris Rees
On 19/12/2012, Paul Schmehl  wrote:
> I'm working on an rc.d init script for a port, and I am clearly in need of
> a clue.
>
> I have a daemon that requires that a FIFO exist before it will start.  The
> FIFO is defined in the daemon's conf file.  I could just point that out to
> the user using "warn", but I thought it would be nicer to simply take care
> of it programmatically.
>
> So I created this:
>
> start_precmd="${name}_ck4fifo()"

Is this a copy/paste error, or is your function actually called
_ck4fifo or _ch4fifo?

> ${name}_ch4fifo()

I'm surprised sh isn't choking on this, you can't use ${name} in a
function name.  Indirecting it is a waste of processing time, if I'm
honest; just use

start_precmd=pads_agent_prestart

pads_agent_prestart()
{
 do_something
}

We always have search and replace in case you choose to modify $name :)

Chris

> {
>   . ${pads_agent_conf}
>   echo "Checking to see if ${PADS_FIFO} exists.."
>   if [ ! -p ${PADS_FIFO} ]; then
> echo "${PADS_FIFO} did not exist.  Creating it now."
> `/usr/bin/mkfifo ${PADS_FIFO}
>   else
> echo "${PADS_FIFO} already exists."
>   fi
> }
>
> When I run the init script with rc_debug enabled, it calls the
> start_precmd, but absolutely nothing happens.  I don't even get the echos.
>
> # /usr/local/etc/rc.d/pads_agent onestart
> /usr/local/etc/rc.d/pads_agent: DEBUG: checkyesno: pads_agent_enable is set
>
> to YES.
> /usr/local/etc/rc.d/pads_agent: DEBUG: run_rc_command: start_precmd:
> pads_agent_ck4fifo()
> Starting pads_agent.
> /usr/local/etc/rc.d/pads_agent: DEBUG: run_rc_command: doit:
> /usr/local/bin/sguil-sensor/pads_agent.tcl -D -c
> /usr/local/etc/sguil-sensor/pads_agent.conf
> [root@buttercup4 /usr/ports/security/sguil-sensor-update/sguil-sensor]#
> Error: Unable to read
> /var/data/nsm/sguil-sensor/buttercup4.utdallas.edu/pads.fifo
>
> I even tried this but got the same result.
>
> ${name}_ch4fifo()
> {
> warn "You must create PADS_FIFO before starting ${name}."
> warn "Set PADS_FIFO in the ${pads_agent_conf} file."
> }
>
> The warn messages aren't in the messages file either, which is expected
> behavior.
>
> What the heck is going on here?  Is something wrong with rc.subr on this
> host?  Am I missing something?
>
> --
> Paul Schmehl, Senior Infosec Analyst
> As if it wasn't already obvious, my opinions
> are my own and not those of my employer.
> ***
> "It is as useless to argue with those who have
> renounced the use of reason as to administer
> medication to the dead." Thomas Jefferson
> "There are some ideas so wrong that only a very
> intelligent person could believe in them." George Orwell
>
> ___
> freebsd...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-rc
> To unsubscribe, send any mail to "freebsd-rc-unsubscr...@freebsd.org"
>
>


-- 
Chris Rees  | FreeBSD Developer
cr...@freebsd.org   | http://people.freebsd.org/~crees
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Stickers

2012-12-10 Thread Chris Whitehouse

On 10/12/2012 00:17, Julian H. Stacey wrote:

"CONNOR KELLY (RIT Student)" wrote:

I am a student at Rochester Institute of Technology.  I was wondering if
you could send any stickers or swag with the freebsd logo or something
similar to me.  I would probably keep some for myself and pass the rest out
to my friends at my university.  This is in no way an official
communication from my school.  If need be I'll be able to pay for postage.


You could try freebsdmall.com.

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: i am new with this

2012-12-03 Thread Chris Petrik

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
On 12/3/2012 4:41 PM, BOY RULES wrote:
>
> hello there i am new with this software never used it yet but would
like to try it
> i want to ask if this software supports MAC and Windows applications
to installation
> i would like to ask after if this software freebsd supports FMS and
ASP net applications
>
>
> if not i would like to give me ideas if possible to build a new
application to run flash media server
> and a great webserver similar as MAC Admin tools
>
>
> i want to run a server from home running open source software and easy
to manage it like in 3 clicks and done
> the site is up and running
>
>
> if possible the developers to build a new freebsd and use skins like
the plasma TV that type of black colour
> skins and all the freebsd be like that
>
>
> and build one application like IIS 7 or mac admin tools for easy up
and run sites
>
>
> another application is one listview to add all the websites hostes on
the server like add folder name to the disk
>
>
> disk www
> folder chat
> folder hosting
> folder business
> folder family
>
>
> listview details
>
>
> IP address Server Host Domain Name date / time directory
> 123.023.02 localhost www.freebsd 20.12.02 12h 23m www/videos
>
>
> i hope you understand
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscr...@freebsd.org"
Hi
you can't natively install/run windows apps but you can install wine and
use that to run your programs.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
 
iQEcBAEBAgAGBQJQvS0/AAoJEAGnn5Nn8qWUAKgIAJhWEra0KDlRt2dnCStQ7zZM
QuSK+c5J/outxTPDPaYUUch8GIHC3vcmZgybaygs3o4l5HszduHJp71Uv5pmm674
KHbEEDPhbJk4ZBmMkOJcGecNyfxeWExDxBDfYXqsNS7Gu8CLBk+dq5aeXO5QVaZ8
9d6qUfk7VsMoykqvhkDVvuOE/pLRh6gKFFj24DpOo8dAC5RJoI9hbDeyykIe5STH
6b+gcCbDVflMctW2CGiv2jMi5YED9eXOvfmKhlk/2lL5mnQsX1QOBubq3cmR75z0
vqEJvb9eo69mbxGr+qTyaDQoZyubtMLItBQiE72Xmmw+rdDrCiuGXGqStfEXWcQ=
=VLps
-END PGP SIGNATURE-

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


Re: set connection to a modem

2012-12-01 Thread Chris Petrik
On 12/1/2012 12:38 AM, saeedeh motlagh wrote:
> thanks Ilya for your reply.  i'm using putty to connect to my modem
> and also/dev/cuauo as the config file. i can co
> nnect to my modem and it responses to AT commands that you suggest so every
> thing is ok.
>
>
> my question is: this connection via /dev/cuau0 can be configured, doesn't
> it? and if yes, through which config file i can set these settings such as
> speed, flow control, etc. for this connection?  for example, my modem
> works just
> with a specific speed. how i can tell  /dev/cuau0 device to talk to my
> modem with this speed? as i have no idea how to config the connection speed
> for this /dev/cuau0 device..
>
> any guidance would be really appreciated.
> thanks
>
>
> On Fri, Nov 30, 2012 at 1:19 AM, Fbsd8  wrote:
>
>> s m wrote:
>>
>>> thanks guys for your replies,
>>>
>>> now i understand two types of connections are available by modem, dial-in
>>> and dial-out.
>>> honestly, i should do it for my boss and don't know what he should want
>>> exactly to do but i am sure that he has an external serial modem and wants
>>> to config it by AT commands via a freebsd system; therefore i think our
>>> connection is dial-out.
>>>
>>> now which files i should edit? just ppp.conf? and because our modem
>>> supports specific speed and flow control, is it necessary to set these
>>> parameters in my freebsd? and if yes, how i can do that?  please help me
>>> to
>>> do that
>>>
>>> thanks
>>>
>>>
>> There are very detailed ppp configuration instructions here
>> www.a1poweruser.com
>>
>>
>> __**_
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions
>> To unsubscribe, send any mail to "freebsd-questions-**
>> unsubscr...@freebsd.org "
>>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
I am just poking about so sorry if im off topic but you can possibly use
ppp to do this?
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Advanced Format Drive ?

2012-11-15 Thread Chris Whitehouse



In message,


In general, you create a "partition scheme" first.  This can be MBR,
GPT, or others.  (But use GPT.)


Unless you want to dual boot with WinXP in which case use MBR still?

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: LIBREOFFICE.TBZ IS BROKEN -- ATTENTION

2012-10-31 Thread Chris Rees
On 30 October 2012 14:12, awarecons  wrote:
> Hello!
>
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/libreoffice.tbzand
> probably other spreaded across
> ftp.freebsd.org are broken archives.
>

What do you mean by broken archives?  Do you have an error message you
can share?

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with connecting FreeBSD 8.3 to wireless network

2012-10-28 Thread Chris Hill

On Mon, 29 Oct 2012, Manish Jain wrote:

Those in a position to help but smugly choose not to may soon start 
experiencing a dramatic decline in their good fortunes.


I'm not in a position to help, but I can explain a couple of things.


# kldload ath
kldload: can't load ath: File exists

# kldload wlan_tkip
kldload: can't load wlan_tkip: File exists


This tells you that the module in question has already been loaded, or 
is present in the kernel.


[snip]

none5@pci0:3:0:0:	class=0x028000 card=0x661711ad chip=0x0032168c 
rev=0x01 hdr=0x00

   vendor = 'Atheros Communications Inc.'
   class  = network


The 'none..' tells you that no driver was attached to the device.

I suspect that Alexander Kapshuk's reply is relevant here: that your 
Atheros card is not supported by the driver.


I know it's not much help, but maybe it's nonzero. Good luck.

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: apache 2.2.22_8

2012-09-16 Thread Chris Rees
On 16 September 2012 10:37, Odhiambo Washington  wrote:
>
>
> On Sun, Sep 16, 2012 at 12:25 PM, Chris Rees  wrote:
>>
>> On 16 September 2012 10:20, Odhiambo Washington 
>> wrote:
>> >
>> >
>> > On Sun, Sep 16, 2012 at 11:47 AM, Chris Rees  wrote:
>> >>
>> >> On 16 September 2012 09:32, Odhiambo Washington 
>> >> wrote:
>> >> > Hi Chris,
>> >> >
>> >> > Thanks for this.
>> >> >
>> >> > Hopefully, you can modify the Wiki to have this information and even
>> >> > examples:)
>> >>
>> >> There are examples on the Wiki page already, but in a confusing order.
>> >>  I've put in a link, and a tip on how to find UNIQUENAME.
>> >>
>> >> > Personally, I use `make config` and have never needed to do much with
>> >> > /etc/make.conf as regards the ports.
>> >>
>> >> True, but some people like to share their make.conf around machines :)
>> >>
>> >> Chris
>> >
>> >
>> > My machines are all identical too, except for parameters related to
>> > $hostname, DNS and passwords.
>> > I mostly used /usr/local/etc/pkgtools.conf before, then `make config`
>> > and
>> > now I believe I am gonna switch to /etc/make.conf but only where I must
>> > finely customize.
>> > One thing has crossed my mind now: What happens with make -DWITH_* in
>> > this
>> > new development of optionsNG?? I have manually built ports that way
>> > before.
>> > And what about those who want to use portinstall -m WITH_OPTx=1
>> > WITH_OPTy=1,
>> > etc?
>>
>> Still works fine for nearly all ports, but just for apache ports there
>> appears to be subtle problems with the logic since it's so
>> complicated.  That's why Olli chose to disable the WITH_ option style
>> for Apache, and I think it was the right decision.
>>
>> I would suggest you learn the new (just as simple) syntax and see how
>> you get on with it :)
>>
>> Chris
>
>
> I was thinking this optionsNG has already been adopted for all ports.
>
> Thanks for the examples though. They are good enough for me to learn the
> ropes..
>

Both syntaxes will work with old and new-style port OPTIONS.

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: apache 2.2.22_8

2012-09-16 Thread Chris Rees
On 16 September 2012 10:20, Odhiambo Washington  wrote:
>
>
> On Sun, Sep 16, 2012 at 11:47 AM, Chris Rees  wrote:
>>
>> On 16 September 2012 09:32, Odhiambo Washington 
>> wrote:
>> > Hi Chris,
>> >
>> > Thanks for this.
>> >
>> > Hopefully, you can modify the Wiki to have this information and even
>> > examples:)
>>
>> There are examples on the Wiki page already, but in a confusing order.
>>  I've put in a link, and a tip on how to find UNIQUENAME.
>>
>> > Personally, I use `make config` and have never needed to do much with
>> > /etc/make.conf as regards the ports.
>>
>> True, but some people like to share their make.conf around machines :)
>>
>> Chris
>
>
> My machines are all identical too, except for parameters related to
> $hostname, DNS and passwords.
> I mostly used /usr/local/etc/pkgtools.conf before, then `make config` and
> now I believe I am gonna switch to /etc/make.conf but only where I must
> finely customize.
> One thing has crossed my mind now: What happens with make -DWITH_* in this
> new development of optionsNG?? I have manually built ports that way before.
> And what about those who want to use portinstall -m WITH_OPTx=1 WITH_OPTy=1,
> etc?

Still works fine for nearly all ports, but just for apache ports there
appears to be subtle problems with the logic since it's so
complicated.  That's why Olli chose to disable the WITH_ option style
for Apache, and I think it was the right decision.

I would suggest you learn the new (just as simple) syntax and see how
you get on with it :)

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: apache 2.2.22_8

2012-09-16 Thread Chris Rees
On 16 September 2012 09:32, Odhiambo Washington  wrote:
> Hi Chris,
>
> Thanks for this.
>
> Hopefully, you can modify the Wiki to have this information and even
> examples:)

There are examples on the Wiki page already, but in a confusing order.
 I've put in a link, and a tip on how to find UNIQUENAME.

> Personally, I use `make config` and have never needed to do much with
> /etc/make.conf as regards the ports.

True, but some people like to share their make.conf around machines :)

Chris

>
> On Sun, Sep 16, 2012 at 11:17 AM, Chris Rees  wrote:
>>
>> On 16 September 2012 07:19, Odhiambo Washington 
>> wrote:
>> > On Sat, Sep 15, 2012 at 8:30 PM, Solmin Vladimir  wrote:
>> >>
>> >> Hi!
>> >> Im using apache 2.2.22_6 with make options in /etc/make.conf
>> >>
>> >> # apache22
>> >> .if ${.CURDIR} == ${PORTSDIR}/www/apache22
>> >> WITH_SUEXEC=YES
>> >> SUEXEC_DOCROOT= /www
>> >> SUEXEC_USERDIR= /www/*/cgi-bin
>> >> SUEXEC_LOGFILE= /var/log/suexec.log
>> >> WITH_APACHE_PERF_TUNING=yes
>> >> .endif
>> >>
>> >> But after svn co /usr/ports today i'm see next:
>> >>
>> >> $portupgrade -arR
>> >> ** Port marked as IGNORE: www/apache22:
>> >> is marked as broken: WITH/WITHOUT parameters are obsolete. The
>> >> port use the new options NG framework. Please read
>> >> http://wiki.freebsd.org/Ports/Options/OptionsNG
>> >>
>> >> but a don't understand how i must set SUEXEC_DOCROOT, SUEXEC_USERDIR
>> >> and
>> >> SUEXEC_LOGFILE in NG framework format...
>> >>
>> >> Please help show me how
>> >>
>> >
>> > I have read that instruction and I am also not clear with what the
>> > correct
>> > syntax is for /etc/make.conf.
>> >
>> > I have come up with this:
>> >
>> >
>> > # apache22
>> > .if ${.CURDIR} == ${PORTSDIR}/www/apache22
>> > ${APACHE22}_SET=SUEXEC
>> > ${APACHE22}_SET=SUEXEC_DOCROOT /www
>> > ${APACHE22}_SET=SUEXEC_USERDIR  /www/*/cgi-bin
>> >
>> >
>> > ${APACHE22}_SET=SUEXEC_LOGFILE /var/log/suexec.log
>> > .endif
>> >
>> >  I cant say if that's how it should be, but I think:-)
>> >
>> >
>> > Hopefully, Chris can help us understand the syntax better.
>>
>> Thanks for copying me in, I'm not on this list.
>>
>> You're very close!
>>
>> You need to use ${UNIQUENAME}_SET, and to find the UNIQUENAME you need to;
>>
>> [crees@pegasus]~% cd /usr/ports/www/apache22
>> [crees@pegasus]/usr/ports/www/apache22% make -VUNIQUENAME
>> apache22
>>
>> Now we know it's apache22, we can use:
>>
>> # (No need to bother with .if ${.CURDIR} any more)
>>
>> apache22_SET+= SUEXEC
>> SUEXEC_DOCROOT= /www
>> SUEXEC_USERDIR= /www/*/cgi-bin
>> SUEXEC_LOGFILE= /var/log/suexec.log
>>
>> I'm not sure what APACHE_PERF_TUNING is; you may find it's been
>> deprecated.  Check with apache@ about that.  If I've somehow missed
>> that, you can just add it to the apache22_SET list:
>>
>> apache22_SET+= SUEXEC APACHE_PERF_TUNING
>>
>> Hope that helps!
>>
>> Chris
>>
>> (corresponding to WITHOUT is ${UNIQUENAME}_UNSET)
>
>
>
>
> --
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254733744121/+254722743223
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> I can't hear you -- I'm using the scrambler.
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: apache 2.2.22_8

2012-09-16 Thread Chris Rees
On 16 September 2012 07:19, Odhiambo Washington  wrote:
> On Sat, Sep 15, 2012 at 8:30 PM, Solmin Vladimir  wrote:
>>
>> Hi!
>> Im using apache 2.2.22_6 with make options in /etc/make.conf
>>
>> # apache22
>> .if ${.CURDIR} == ${PORTSDIR}/www/apache22
>> WITH_SUEXEC=YES
>> SUEXEC_DOCROOT= /www
>> SUEXEC_USERDIR= /www/*/cgi-bin
>> SUEXEC_LOGFILE= /var/log/suexec.log
>> WITH_APACHE_PERF_TUNING=yes
>> .endif
>>
>> But after svn co /usr/ports today i'm see next:
>>
>> $portupgrade -arR
>> ** Port marked as IGNORE: www/apache22:
>> is marked as broken: WITH/WITHOUT parameters are obsolete. The
>> port use the new options NG framework. Please read
>> http://wiki.freebsd.org/Ports/Options/OptionsNG
>>
>> but a don't understand how i must set SUEXEC_DOCROOT, SUEXEC_USERDIR and
>> SUEXEC_LOGFILE in NG framework format...
>>
>> Please help show me how
>>
>
> I have read that instruction and I am also not clear with what the correct
> syntax is for /etc/make.conf.
>
> I have come up with this:
>
>
> # apache22
> .if ${.CURDIR} == ${PORTSDIR}/www/apache22
> ${APACHE22}_SET=SUEXEC
> ${APACHE22}_SET=SUEXEC_DOCROOT /www
> ${APACHE22}_SET=SUEXEC_USERDIR  /www/*/cgi-bin
>
>
> ${APACHE22}_SET=SUEXEC_LOGFILE /var/log/suexec.log
> .endif
>
>  I cant say if that's how it should be, but I think:-)
>
>
> Hopefully, Chris can help us understand the syntax better.

Thanks for copying me in, I'm not on this list.

You're very close!

You need to use ${UNIQUENAME}_SET, and to find the UNIQUENAME you need to;

[crees@pegasus]~% cd /usr/ports/www/apache22
[crees@pegasus]/usr/ports/www/apache22% make -VUNIQUENAME
apache22

Now we know it's apache22, we can use:

# (No need to bother with .if ${.CURDIR} any more)

apache22_SET+= SUEXEC
SUEXEC_DOCROOT= /www
SUEXEC_USERDIR= /www/*/cgi-bin
SUEXEC_LOGFILE= /var/log/suexec.log

I'm not sure what APACHE_PERF_TUNING is; you may find it's been
deprecated.  Check with apache@ about that.  If I've somehow missed
that, you can just add it to the apache22_SET list:

apache22_SET+= SUEXEC APACHE_PERF_TUNING

Hope that helps!

Chris

(corresponding to WITHOUT is ${UNIQUENAME}_UNSET)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


FreeBSD Install Problem

2012-09-07 Thread Chris Neudorf
Hello,

I have a problem installing FreeBSD 9.0 Releaseon my Lenovo Thinkpad R61i 
laptop (4GB RAM, 160GB HDD, 32-bit). It doesn't matter if I tried installing it 
from the CD or the DVD, I still have the same problem. I even tried 
re-downloading and re-burning a new CD or DVD, and I'm still unable to install. 
I even have problems going through the "sysinstall" route.


In the installation process, I'm able to go far to the partitioning area in 
where the problem occurs. I click for "Guided" partitioning and then I receive 
this "Abort" message:

Abort
--

An installation step has been aborted. Would you like to restart the 
installation or exit the installer?

---
[ Restart ]     [ Exit ]

-

When I click restart I end up with the same result, and I end up in a 
neverending cycle of unable to install.


(I even have a the same problem installing from GhostBSD.) 



Is there any remedies to this problem? 


Thank you so much,

--Christopher
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: asking for help about "acpi_tz0: _CRT value is absurd, ignored (256.0C) "

2012-09-05 Thread Chris Whitehouse

On 04/09/2012 08:58, chiehhan wrote:

To whom may concern,

I am a greenhorn in the field of freebsd.And when I install
Freebsd9.0 on my laptop HP NX6330,a control spam "acpi_tz0: _CRT
value is absurd, ignored (256.0C)"occurs.



I created a custom ASL as a workaround.
http://lists.freebsd.org/pipermail/freebsd-acpi/2009-March/005558.html

You can see that I changed the line that says
Return (C316 (0x04, 0x00))
to say
Return (C316 (0x00, 0x02))
which on my laptop gives a temperature of 95C




I learned some reference about sysctl and revised the configure file
sysctl.conf,adding two lines below into sysctl.conf:
hw.acpi.thermal.user_override=1
hw.acpi.thermal.tz0._CRT=110.0C but
the control spam remains.


Good try but hw.acpi.thermal.tz0._CRT gets set back to -1
http://lists.freebsd.org/pipermail/freebsd-acpi/2009-March/005549.html



I read the source code about acpi_thermal.c,but still have no idea
about how to solve this problem.I am a little desperated and turn
freebsd-questions@freebsd.org for help.Would you please send me a
solution?


I think the steps are
1) dump your ASL as per
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.html
starting at section 12.17.4 ASL, acpidump, and IASL

2) open your dumped ASL in a plain text editor (vi, joe, ...) and modify 
the value of "Method (_CRT, 0, Serialized)".


http://lists.freebsd.org/pipermail/freebsd-acpi/2009-March/005562.html
shows you some values you can use. Others may work as your ASL is almost 
certainly different from mine.


3) recompile your modified ASL and load it, following section 12.17.4 
ASL, acpidump, and IASL in the handbook.


4) restart your computer and check the value of hw.acpi.thermal.tz0._CRT

If it doesn't work go back to step 2.

YMMV (that means my laptop is running fine several years later but don't 
blame me if yours blows up :) )


Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Wifi for Lenovo Laptop

2012-08-30 Thread Chris


- Original Message -
> From: Warren Block 
> To: Chris 
> Cc: "freebsd-questions@freebsd.org" ; Waitman 
> Gobble 
> Sent: Thursday, August 30, 2012 3:58 PM
> Subject: Re: Wifi for Lenovo Laptop
> 
> On Thu, 30 Aug 2012, Chris wrote:
> 
>>  Using pciconf as per jb's hint tells me it is a broadcom I have:
>> 
>>  none3@pci0:3:0:0:       class=0x028000 card=0x060814e4 chip=0x472714e4 
> rev=0x01 hdr=0x00
>>  vendor     = 'Broadcom Corporation'
>>  device     = 'BCM4313 802.11b/g/n Wireless LAN Controller'
>>  class      = network
>> 
>> 
>>  As per the release notes for 9.0 
> (http://www.freebsd.org/releases/9.0R/hardware.html#WLAN), the bwn(4) driver 
> be 
> the one to use.
>> 
>>  Added the following to my /boot/loader.conf following the instructions in 
> http://www.freebsd.org/doc/en/books/handbook/network-wireless.html and 
> rebooted.
>> 
>>  if_bwn_load="YES"
>>  wlan_wep_load="YES"
>>  wlan_ccmp_load="YES"
>>  wlan_tkip_load="YES"
> 
> The last three are included in the GENERIC kernel.
> 
> The bwi and bwn drivers need firmware, which is provided by the 
> net/bwi-firmware-kmod and net/bwn-firmware-kmod ports.  So install 
> whichever is appropriate.  I think the driver tries to load the right
> firmware automatically, but haven't tried a Broadcom in a while, and it 
> might still be necessary to load the firmware module in 
> /boot/loader.conf.
> ___
> 

Hi Warren,


thanks. Tried with the firmware as well but no better luck. On closer 
inspection of the bwn manual, it seems like the 4313 is not on the list of 
suppored versions.

What I did find though was that it is supposedly possible to get working using 
NDIS (even with amd64) as per this PC-BSD wiki page 
http://wiki.pcbsd.org/index.php/Wireless_Testing


I might try the NDIS, but will first see if I can find a USB card as the 'net 
seems to be full of talk about instability of the NDIS driver for the 4313.


Thanks to everyone for the help!


BR,

  Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Wifi for Lenovo Laptop

2012-08-30 Thread Chris

>
> From: Waitman Gobble 
>To: Chris  
>Cc: "freebsd-questions@freebsd.org"  
>Sent: Wednesday, August 29, 2012 6:51 PM
>Subject: Re: Wifi for Lenovo Laptop
> 
>
>
>On Aug 29, 2012 8:44 AM, "Chris"  wrote:
>>
>> Hi,
>>
>>
>> I've tried to search the lists but can't find anything, but please point me 
>> to an existing resource if available.
>>
>> I recently got a Lenovo ThinkPad Edge E530 (3259-9VG) laptop and would like 
>> to get the Wifi card running (fresh FreeBSD 9.0 install), but I'm failling 
>> as it has been at least 5 years since I used with wifi under FreeBSD. The 
>> card is not automatically detected (interface not listed in ifconfig) so I'm 
>> assuming I have to either load a kernel module or go the NDIS path. It seems 
>> like on Windows, the same driver is used for E430, E435, E530 and E535, so 
>> in case anyone is using one of these models, please let me know if have 
>> things running.
>>
>> So some questions that might point me in the right direction:
>>
>> - How can I find out which type of card this laptop actually has (can I read 
>> it out of dmesg, some PCI listing or whatever)?
>>   All I can find are product sheets saying that it has 11b/g/n, but doesn't 
>> help me to find a driver. I
>>   Is there some "meta-module" that loads all the native wifi drivers that I 
>> can use that I can test?
>> - If I need to use NDIS emulation, does anyone think it will work for this 
>> model/card? Windows drivers can be found here 
>> http://support.lenovo.com/en_US/product-and-parts/default.page).
>>   The handbook 
>> (http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html#CONFIG-NETWORK-NDIS)
>>  says I need Win XP drivers, is that old text or do I need that? I can't 
>> find XP drivers on the lenovo page...
>> - If NDIS should be possible, how do I extract the .sys and .inf file from 
>> the exe that I downloaded from the URL above (I don't have any Windows 
>> machine right now).
>>
>> TIA,
>>   Chris
>>
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
>hi, you can usually find "replacement wifi cards" for your model on ebay, this 
>can give you an idea of the chipset. 
>also, you could always pull off the panel and look at the card.
>ndis can be tricky because it needs an "older" 32 bit driver, and you need to 
>run a 32 bit version of FreeBSD.
>a good solution is to find a ralink or atheros card on ebay and swap it out, 
>usually will cost less than 10 bucks USD.
>Waitman Gobble
>San Jose California USA
>
>
>

Hi Waltman, jb and Daniel,
(sorry for not replying to the latest email in the thread, something is wrong 
with my email account)

Thanks very much for the help, it is really appreciated.
I called Lenovo support and the only info they had was that it was "an Intel 
card", so that's the same info as jb had tracked down (and I also found myself).

Using pciconf as per jb's hint tells me it is a broadcom I have:

none3@pci0:3:0:0:   class=0x028000 card=0x060814e4 chip=0x472714e4 rev=0x01 
hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM4313 802.11b/g/n Wireless LAN Controller'
class  = network


As per the release notes for 9.0 
(http://www.freebsd.org/releases/9.0R/hardware.html#WLAN), the bwn(4) driver be 
the one to use.

Added the following to my /boot/loader.conf following the instructions in 
http://www.freebsd.org/doc/en/books/handbook/network-wireless.html and rebooted.

if_bwn_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"


(also tried the bwi(4) driver instead of bwn)

I still don't get anything in dmesg or ifconfig. So either I have missed some 
step, or this specific card isn't supported by the bwn/bwi drivers.
Anyone have any further ideas?
If not, I'll try to track down some USB WLAN card that is supported, as I've 
also heard the same thing as Daniel, i.e. that non-Lenovo cards are blocked by 
the BIOS if you try to replace the default one.

BR,
  Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Wifi for Lenovo Laptop

2012-08-29 Thread Chris
Hi,


I've tried to search the lists but can't find anything, but please point me to 
an existing resource if available.

I recently got a Lenovo ThinkPad Edge E530 (3259-9VG) laptop and would like to 
get the Wifi card running (fresh FreeBSD 9.0 install), but I'm failling as it 
has been at least 5 years since I used with wifi under FreeBSD. The card is not 
automatically detected (interface not listed in ifconfig) so I'm assuming I 
have to either load a kernel module or go the NDIS path. It seems like on 
Windows, the same driver is used for E430, E435, E530 and E535, so in case 
anyone is using one of these models, please let me know if have things running.

So some questions that might point me in the right direction:

- How can I find out which type of card this laptop actually has (can I read it 
out of dmesg, some PCI listing or whatever)? 
  All I can find are product sheets saying that it has 11b/g/n, but doesn't 
help me to find a driver. I
  Is there some "meta-module" that loads all the native wifi drivers that I can 
use that I can test?
- If I need to use NDIS emulation, does anyone think it will work for this 
model/card? Windows drivers can be found here 
http://support.lenovo.com/en_US/product-and-parts/default.page).
  The handbook 
(http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html#CONFIG-NETWORK-NDIS)
 says I need Win XP drivers, is that old text or do I need that? I can't find 
XP drivers on the lenovo page...
- If NDIS should be possible, how do I extract the .sys and .inf file from the 
exe that I downloaded from the URL above (I don't have any Windows machine 
right now).

TIA,
  Chris

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


Re: Repeaters [off topic]

2012-08-21 Thread Chris
How about overlaying the lynksys OS with something like ddwrt

Sent from my HTC.

- Reply message -
From: "Bob Hall" 
Date: Tue, Aug 21, 2012 12:30 pm
Subject: Repeaters [off topic]
To: 

I'm using a repeater to grab a wireless signal and pass it to my local
(wired) lan. For various reasons I won't go into a repeater is, in
theory, the best way to do this. However, I'm having trouble finding a
repeater that isn't garbage. I've been through 2 Linksys units, both of
which required constant reboots and both of which died after almost
exactly a year. I tried a Hawking HWREN1 which is still working after
slightly more than a year but has trouble with encrypted traffic and
also requires frequent reboots. I also tried a Hawking HW2R1, which was
much less flaky than the HWREN1 and handled encrypted traffic OK, but
died after about 3 months.

Since these things cost $100-$140 apiece, it would be cost effective to
to pay more for a unit that worked consistently and didn't die after a
few months of light use. Has anyone on the list used a repeater that
they had good experience with?

Bob Hall
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

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

Re: Why can't I set my cpu type in kernel config ?

2012-08-06 Thread Chris Hill

On Tue, 7 Aug 2012, RW wrote:


On Mon, 6 Aug 2012 16:53:04 -0700 (PDT)
Jason Usher wrote:


I am installing 8.3-RELEASE on an old 900mhz pentium laptop ... it's
an i686 CPU.

By default, GENERIC has "HAMMER" as the cpu, and that isn't working.
So I tried both:


That's the amd64 (64-bit) GENERIC


Jason: It looks like you may have installed the 64-bit distribution on 
your 32-bit machine. Try fetching the distribution again (and re-burning 
the CD, or whatever your media was). This time get the "i386" version. 
That's what you want for a Pentium.


HTH.


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: how to speed up port make??

2012-07-26 Thread Chris Hill

On Wed, 25 Jul 2012, Ryan Noll wrote:


Does anyone else remember "The Complete FreeBSD"?


I'm looking right at it on the shelf here. "Second Edition - over 1750 
pages!". It is *bristling* with post-it notes used as bookmarks.



--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: help about free bsp version netcat to work it on ubuntu

2012-07-24 Thread Chris Whitehouse

On 24/07/2012 14:36, kpn...@pobox.com wrote:

On Tue, Jul 24, 2012 at 07:13:00PM +0800, lei yang wrote:

On Tue, Jul 24, 2012 at 12:47 AM, Polytropon  wrote:

On Mon, 23 Jul 2012 23:29:38 +0800, lei yang wrote:

Yes, the second version I post is using the source from you supplied,
then I compiled it, but it has no
"-U" flag like what I post, it seems a version different casued this.


Yes. The version distributed by the ports collection is different
from that one supplied with the base system of FreeBSD.

To try _that_ version, you can download the source tarball and
extract it; in the directory

# wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz
# tar xvf src.txz


Thanks for the help,

tar xvf src.txz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 4896 bytes from src.txz
tar: Error exit delayed from previous errors
[lyang0@ala-lpggp2 lyang0]$ tar xvf src.txz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 4896 bytes from src.txz
tar: Error exit delayed from previous errors


Maybe a bad/incomplete download?
%fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz
src.txz   100% of   89 MB  216 kBps 
00m00s

%md5 src.txz
MD5 (src.txz) = 7cce6b045f771cef2136df277d16331f
%tar xvf src.txz
x usr/src/
x usr/src/usr.bin/
x usr/src/release/
x usr/src/crypto/
x usr/src/include/
x usr/src/secure/
x usr/src/rescue/
x usr/src/gnu/
x usr/src/sbin/
x usr/src/games/
x usr/src/tools/
x usr/src/contrib/
x usr/src/kerberos5/
x usr/src/share/
...
...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Locally modifying ports

2012-07-23 Thread Chris Ross

  So, I've been a NetBSD user for many years, and am looking more
at FreeBSD now.  Trying to build myself a system, I find that I have a
long-held delta to a package on my NetBSD system, and I keep it
in a patch-local-* file in NetBSD pkgsrc.

  I can't figure out if FreeBSD ports has a way to keep and automatically
apply "local" patches to ports.  I want to modify the way the internals of
a package/port operate, and not in a way that makes sense to move up-
stream.  It's just my preference.

  Is there a way in FreeBSD ports to keep a "make this change to the
source code after extracting and before compiling" type of thing in the
tree?

  Thanks

  - Chris

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


Re: usb identity issue

2012-07-23 Thread Chris Hill

On Mon, 23 Jul 2012, Al Plant wrote:

I am having problem getting usb plug in /flash drive to come up on 
FreeBSD * several boxes with different versions of FreeBSB os I have 3 
boxes for testing here at my shop.


Can anyone point me to any articles on this issue.

Is there a command like usbconfig (saw this mentioned in an email 
question but it doesnt work) to bring this up on screen?


I don't know of any articles, but here is what I do:

$ uname -r
8.0-STABLE
$ ls /dev | grep ^da
$

(note that there is nothing found) ...and then plug in the thumb drive 
and do it again:


$ ls /dev | grep ^da
da0
da0s1
$

...and now I can mount it. Since this drive is a FAT32 filesystem, I use 
mount_msdosfs. Having an entry in /etc/fstab is a convenience but not 
strictly necessary.


Dmesg of the booted units shows da1 mostly but this identity cant be 
accessed on any of them.


After pluggin in my thumb drive, my dmesg shows

da0:  Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 7629MB (15625216 512 byte sectors: 255H 63S/T 972C)

Note that while dmesg only shows da0, my `ls /dev` also shows da0s1. You 
may need to use /dev/da1s1 or similar (depending on what you see from 
`ls /dev`) in your mount command. Try a few permutations.


HTH, and maika'i pomaika'i.


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 9.1 php5 port broken

2012-07-20 Thread Chris Rees
On 20 July 2012 14:47, Fbsd8  wrote:
> Script started on Fri Jul 20 09:25:23 2012
>
> # /usr/ports/lang/php5 >make config
> # /usr/ports/lang/php5 >make install clean
> ===>   php5-5.4.4 depends on file: /usr/local/sbin/apxs - found
> ===>   php5-5.4.4 depends on file: /usr/local/bin/autoconf-2.69 - found
> ===>   php5-5.4.4 depends on executable: pkg-config - found
> ===>   php5-5.4.4 depends on shared library: pcre.1 - found
> ===>   php5-5.4.4 depends on shared library: xml2.5 - found
> ===>  Configuring for php5-5.4.4
> rm: /usr/ports/lang/php5/work/php-5.4.4/configure: No such file or directory
> *** [pre-configure] Error code 1

You must have interrupted the pre-configure stage.

Run make clean, and try again.

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: fsck on FAT32 filesystem?

2012-07-16 Thread Chris Hill

On Mon, 16 Jul 2012, Adam Vande More wrote:

SpinWrong is a scam, Gibson is a fraud, and this conversation is pure 
marketing gibberish. I thought most had overcome this credulity years 
ago. It appears I was mistaken.


Care to elaborate? Most people on this list seem to speak highly of 
SpinRite. I'd be interested to know if they are all deluded, because 
I've been thinking of buying it.



--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


OT: Linux EXT4 dump/restore equivalent?

2012-06-28 Thread Chris Maness
Is there an equivalent dump/restore ap for a Linux ext4 file system?
I am running the latest Slackware, and I would like to make backups
like I do for my FreeBSD box.

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: (Free 7.2) "su -l" didnt prompt password.Is it possbile?

2012-06-18 Thread Chris Rees
On Jun 18, 2012 2:34 PM, "Budnev Vladimir" 
wrote:
>
> Hello everyone.
> We'v noticed some strange situation. After reboot and login, system
didn't ask for password while switchig with su -l.
>
> In details, there was root login from terminal and one from ssh.
> Terminal login was directly as root(via ip-console), and ssh was as user,
then attemped switch to root with su -l, and there were NO password
request,no prompt at all. At the same time login from terminal accepted
root password, first I thought that means password wasn't empty, but system
even with empty password should print "Password:"..and that time it was
nothing absolultey.

Empty password behaviour is for no prompt, so what you are seeing is
normal, and means that you did indeed have a empty password.

Check your logs very carefully over the past few weeks to make sure no one
has broken in.

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: No surround sound with Creative SB Live! card

2012-06-14 Thread Chris Hill

On Thu, 14 Jun 2012, David Demelier wrote:

I have an old SB Live! card with a 5.1 speaker set, but i can't get 
sound from center and rear speakers with mplayer.


I'm using the snd_emu10kx driver and when I try to play a DVD I get 
sound only through the front speakers (and LFE) like a 2.1


Adding -channels 6 to the mplayer args does not help.


Does the DVD source material actually have 5.1 sound? Silly question, I 
know, but it has to be asked.


You may also want to pose this question to multimedia@


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Newbie question: Why aren't my cron jobs running?

2012-06-13 Thread Chris
On 6/13/2012 6:23 PM, Walter Hurry wrote:
> On Tue, 12 Jun 2012 12:21:31 -0500, Dan Lists wrote:
> 
>> The syntax of his crontab file is correct.  Vixie cron does care about
>> leading spaces, tabs, extra spaces, or leading zeros.  Earlier versions
>> of cron are much pickier about the crontab file.   The cron logs show
>> that it is starting his jobs at the correct times.
>>
>> It is far more likely that there is a problem with the scripts.  A very
>> common cause of problems with scripts run from cron is that they do not
>> inherit your environment.   Do the scripts run from the command line? 
>> If the do, then the problem is most likely something in your environment
>> that the scripts need.
> 
> I'm a complete idiot, and I feel embarrassed. Everything was fine, except 
> that I had missed out '/bin' in the paths of the jobs.
> 
> I had:
> /home/walterh/exports.sh
> /home/walterh/backup_etc.sh
> /home/walterh/systemcheck.sh
> /home/walterh/backup_bsd.sh
> 
> which should of course have been:
> /home/walterh/bin/exports.sh
> /home/walterh/bin/backup_etc.sh
> /home/walterh/bin/systemcheck.sh
> /home/walterh/bin/backup_bsd.sh
> 
> What a stupid mistake! Thanks for all the replies, but I must say sorry 
> for wasting your time. Sorry!
> 
> WH

... Damned those full path names.


-- 
Keep well,

Chris
 <><
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: note

2012-06-12 Thread Chris Whitehouse

On 12/06/2012 04:53, Polytropon wrote:

On Mon, 11 Jun 2012 21:36:00 -0600, Arlen McIntyre wrote:

How can I get FreeBSD on
my other partition and have a dual OS system without the boot installation?


Qustion part one:

Prepare a USB stick with the FreeBSD "memstick edition".
You'll find instructions on how to do that on the FreeBSD
website, as well as the installation media.

Preparation: Make sure you have _free_ disk space. This
means: Do not create any DOS partitions, just leave it
"empty" and let the installer perform the required tasks
of partitioning and formatting.



If you have XP on the other partition you will need to install FreeBSD 
using the "old style" MBR partitioning scheme. See 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-pre.html


You might want to consider sticking with FreeBSD 8.3 which I think only 
supports MPR partitioning. FreeBSD 9.0 supports both MBR and the newer 
GPT scheme so you would have to work out how to choose during the 
installation.


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

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Chris
On 6/11/2012 9:25 PM, Walter Hurry wrote:
> On Mon, 11 Jun 2012 19:10:21 -0700, Michael Sierchio wrote:
> 
>> Have you installed bash?  It's not in the system base.
>>
>> What's in your shell scripts?
> 
> Thanks for the quick response.
> 
> $ pkg_info|grep bash
> 
> bash-4.2.28 The GNU Project's Bourne Again SHell
> 
> $ which bash
> 
> /bin/bash
> 
> $ 
> 
> $ less $HOME/bin/exports.sh
> 
> #!/bin/bash
> 
> LOG=$HOME/log/exports.log
> 
> logger -t walterh-cronjob Exports started
> 
> echo Exports started at `date` > $LOG
> 
> rm $HOME/postgresql/*
> 
> psql packages -f $HOME/sql/exports.sql
> 
> cd $HOME/postgresql
> 
> tar cfz postgresql.tgz *
> 
> rm *csv
> 
> echo Exports finished at `date` >> $LOG
> 
> logger -t walterh-cronjob Exports finished
> 
> /home/walterh/bin/exports.sh (END)
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
> 
> 
> 


I tend to use full path names in my shell scripts.
So for shits n giggles, try that.
Instead of tar cfz postgresql.tgz *
Try /bin/tar cfz postgresql.tgz *  etc, etc, etc

Use the paths for all commands such as rm, psql, logger etc.

-- 
Keep well,

Chris
 <><
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find date of last boot

2012-06-07 Thread Chris Knipe
> It's not that.  'last reboot' seems to be broken at the moment, at least
> on stable/9:

> but last(1) isn't coming up with the goods:
>
> lucid-nonsense:~:% last reboot
>
> wtmp begins Fri Jun  1 06:14:46 BST 2012

last reads from /var/log/wtmp - which more than likely got rotated
since your last reboot.


-- 

Regards,
Chris Knipe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find date of last boot

2012-06-07 Thread Chris
On 6/7/2012 8:32 PM, Randal L. Schwartz wrote:
>>>>>> "Chris" == Chris   writes:
> 
> Chris> Why create something that is already built in?
> Chris> As I mentioned previously, the last command lists when the system was
> Chris> rebooted.
> 
> You must reboot a lot.  My "last" log goes back only to the first of the
> month, and my uptime is 16 days right now, so I can't see the most
> recent reboot with last.
> 
> YMMV, I guess.
> 

Good point, I didn't take into account the command goes about a month
back. I run FBSD in a vbox, and its only console anyways.

I run Debian by default but in any event, there are many reasons for
reboots and for me (typically) I see about 4 reboots a month mostly due
to patching and sec-fixes.

So indeed, YMMV is correct.

My fault for the assumption that folks boot more often than not.

-- 
Keep well,

Chris
 <><
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find date of last boot

2012-06-07 Thread Chris Hill

On Thu, 7 Jun 2012, Chris wrote:


On 6/7/2012 8:14 PM, Chris Hill wrote:

On Thu, 7 Jun 2012, Fbsd8 wrote:


dmesg command does not show date of last boot.

Are there some other commands to find date of last boot?


That was fun. Google helped me with this; the crappy skillz are all mine.


-snip-


Why create something that is already built in?


Because I learned something by doing it.

As I mentioned previously, the last command lists when the system was 
rebooted.


I'm not sure it does:

$ last reboot
wtmp begins Fri Jun  1 08:31:38 EDT 2012
$ uptime
 9:30PM  up 529 days,  8:25, 4 users, load averages: 0.02, 0.18, 0.17

...and even so, would it show a cold boot, or only a reboot?

I'll credit Doug Hardie with the best solution:
$ ls -l /var/run/dmesg.boot
-rw-r--r--  1 root  wheel  7248 Dec 26  2010 /var/run/dmesg.boot


Keep well,


You too.

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find date of last boot

2012-06-07 Thread Chris
On 6/7/2012 8:14 PM, Chris Hill wrote:
> On Thu, 7 Jun 2012, Fbsd8 wrote:
> 
>> dmesg command does not show date of last boot.
>>
>> Are there some other commands to find date of last boot?
> 
> That was fun. Google helped me with this; the crappy skillz are all mine.
> 
>  --- cut here ---
> #!/bin/sh
> #
> # Find date of last boot
> #
> DAYS_UP=`uptime | awk '{print $3}'`
> SEC_UP=`echo "${DAYS_UP} * 86400" | bc`
> DATE=`date`
> EPOCH_DATE=`date -j -f "%a %b %d %T %Z %Y" "${DATE}" "+%s"`
> BOOT_SEC=`echo "${EPOCH_DATE} - ${SEC_UP}" | bc`
> BOOT_DATE=`gawk -v duh=${BOOT_SEC} 'BEGIN{print strftime("%Y-%m-%d",duh)}'`
> echo "Last boot on ${BOOT_DATE}"
>  --- cut here ---
> 
> Example from this machine:
> $ ./boot_date.sh
> Last boot on 2010-12-26
> $
> 
> Enjoy.
> 

Why create something that is already built in?
As I mentioned previously, the last command lists when the system was
rebooted.

-- 
Keep well,

Chris
 <><
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find date of last boot

2012-06-07 Thread Chris Hill

On Thu, 7 Jun 2012, Fbsd8 wrote:


dmesg command does not show date of last boot.

Are there some other commands to find date of last boot?


That was fun. Google helped me with this; the crappy skillz are all 
mine.


 --- cut here ---
#!/bin/sh
#
# Find date of last boot
#
DAYS_UP=`uptime | awk '{print $3}'`
SEC_UP=`echo "${DAYS_UP} * 86400" | bc`
DATE=`date`
EPOCH_DATE=`date -j -f "%a %b %d %T %Z %Y" "${DATE}" "+%s"`
BOOT_SEC=`echo "${EPOCH_DATE} - ${SEC_UP}" | bc`
BOOT_DATE=`gawk -v duh=${BOOT_SEC} 'BEGIN{print strftime("%Y-%m-%d",duh)}'`
echo "Last boot on ${BOOT_DATE}"
 --- cut here ---

Example from this machine:
$ ./boot_date.sh
Last boot on 2010-12-26
$

Enjoy.

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find date of last boot

2012-06-07 Thread Chris
On 6/7/2012 6:31 PM, Bill Yuan wrote:
> If you store the time in a file as log everytime when it boots up,
> then that means you can have more then "now -  uptime"
> 
> On Fri, Jun 8, 2012 at 7:20 AM, Chris Hill  wrote:
> 
>> On Thu, 7 Jun 2012, Fbsd8 wrote:
>>
>> dmesg command does not show date of last boot.
>>>
>>> Are there some other commands to find date of last boot?
>>>
>>
>> Perhaps somehow subtract `uptime` from today's date?
>>
>> --
>> Chris Hill   ch...@monochrome.org
>> ** [ Busy Expunging  ]
>>
>> __**_
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions<http://lists.freebsd.org/mailman/listinfo/freebsd-questions>
>> To unsubscribe, send any mail to "freebsd-questions-**
>> unsubscr...@freebsd.org "
>>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
> 
> 
> 


Try the command,  last
maybe that will give you some info that you are looking for.


-- 
Keep well,

Chris
 <><
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find date of last boot

2012-06-07 Thread Chris Hill

On Thu, 7 Jun 2012, Fbsd8 wrote:


dmesg command does not show date of last boot.

Are there some other commands to find date of last boot?


Perhaps somehow subtract `uptime` from today's date?

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Is this something we (as consumers of FreeBSD) need to be aware of?

2012-06-05 Thread Chris Hill

On Tue, 5 Jun 2012, G?k?in Akdeniz wrote:


For the time being only ARM platform is restricted.


True, but I would be astonished if this restriction were not expanded by 
MS in the future. Just my opinion, but I believe their ultimate goal is 
to add platforms until the "secure boot" restriction encompasses most or 
all desktop and server hardware. This would be over a period of years.


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freebsd-update no mirrors?

2012-06-03 Thread Chris Whitehouse

On 03/06/2012 13:00, RW wrote:

On Sun, 03 Jun 2012 12:47:47 +0100
Chris Whitehouse wrote:



c400# uname -a
FreeBSD c400 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25
UTC 2012
r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

Following the handbook:

c400# freebsd-update -r 9-STABLE upgrade
...
Am I doing something wrong?


freebsd-update only works on release security branches - not
development branches.


Ah my mistake, thanks. It's a rather old slow laptop and I don't want to 
stress it by building world/kernel, I guess that means it stays on RELEASE.


thanks

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


freebsd-update no mirrors?

2012-06-03 Thread Chris Whitehouse


c400# uname -a
FreeBSD c400 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 
2012 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


Following the handbook:

c400# freebsd-update -r 9-STABLE upgrade
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 9.0-RELEASE from update4.FreeBSD.org... 
done.

Fetching metadata index... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic src/src world/base world/doc world/games

The following components of FreeBSD do not seem to be installed:

Does this look reasonable (y/n)? y

Fetching metadata signature for 9-STABLE from update4.FreeBSD.org... failed.
Fetching metadata signature for 9-STABLE from update2.FreeBSD.org... failed.
Fetching metadata signature for 9-STABLE from update5.FreeBSD.org... failed.
Fetching metadata signature for 9-STABLE from update3.FreeBSD.org... failed.
No mirrors remaining, giving up.

In case I had got the CVS tag wrong I also tried 9.0-STABLE with the 
same results.


I haven't changed freebsd-update.conf

Am I doing something wrong? This is the first time I've used 
freebsd-update, except that just now I apparently successfully did 
freebsd-update fetch and freebsd-update install on this machine.


Thanks

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Maximum number of "tun" pseudo-devices

2012-05-15 Thread Chris Knipe
On Mon, May 14, 2012 at 3:09 AM, Brett Glass  wrote:
> I'm running a busy FreeBSD-based that may handle large numbers of
> simultaneous connections. I'm currently using software that creates a "tun"
> device for each connection. However, after it hits tun127 (128
> pseudo-devices), it doesn't seem to want to create any more. What sets the
> limit on the number of "tun" devices that can exist in the system, and how
> can the limit be adjusted? Is there a similar limit on, say, "ng" devices?

You don't say which version of FreeBSD you're using, but older
versions of FreeBSD had the option to specify a maximum number of
pseudo-device to allow.  For example

pseudo-device   tun1   # Tunnel driver(user process ppp)

In your kernel would only allow for 1 tun device to be created.

If you're using an older (5.x / 4.x) version of FreeBSD, I'd say check
your kernel config.  Nut sure whether this is still relevant in newer
versions of FreeBSD, but documentation suggest that it is no longer
the case with newer versions.


-- 

Regards,
Chris Knipe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: djvu viewers from ports or add capability to view to xpdf, gv or other

2012-05-10 Thread Chris Hill

On Thu, 10 May 2012, Polytropon wrote:


On Wed, 9 May 2012 16:35:03 -0500, Antonio Olivares wrote:

Dear folks,

How can I add the capability of viewing djvu files to say xpdf or gv 
without installing evince?


Or is there a small djvu viewer available in ports that can be 
installed easily?


You can install the port "ImageMagick" with support for djvu
format. To view a file, simply call "display ". Not tested.


Be aware that ImageMagick is the opposite of small.

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ACPI temprature settings [WAS: Re: laptop very hot and noisy]

2012-05-09 Thread Chris Whitehouse

On 08/05/2012 15:06, Anton Shterenlikht wrote:


Anyway, this was easier than I expected.
I removed a lot of dust from the fan
and the heat sink gills. I also replaced
the "thermal material".


I prop my mine up off the desk to get better airflow to the fan intake 
which is on the underside. The fan slows down when I lift it up 
indicating it is moving more air.




I rebuilt gcc47 and saw the highest temperature of 75.
This is on the southern side, so not too bad. The
noise reduced too.

Now, I'd just like to understand better the
meaning of these console messages:

May  8 15:00:08 mech-aslap239 kernel: acpi_tz0: _AC3: temperature 64.0>= 
setpoint 40.0
May  8 15:00:08 mech-aslap239 kernel: acpi_tz0: _AC2: temperature 64.0>= 
setpoint 50.0
May  8 15:00:18 mech-aslap239 kernel: acpi_tz0: _AC3: temperature 64.0>= 
setpoint 40.0
May  8 15:00:18 mech-aslap239 kernel: acpi_tz0: _AC2: temperature 64.0>= 
setpoint 50.0
May  8 15:00:28 mech-aslap239 kernel: acpi_tz0: _AC3: temperature 64.0>= 
setpoint 40.0
May  8 15:00:28 mech-aslap239 kernel: acpi_tz0: _AC2: temperature 64.0>= 
setpoint 50.0
May  8 15:00:38 mech-aslap239 kernel: acpi_tz0: _AC3: temperature 64.0>= 
setpoint 40.0
May  8 15:00:38 mech-aslap239 kernel: acpi_tz0: _AC2: temperature 64.0>= 
setpoint 50.0
May  8 15:00:48 mech-aslap239 kernel: acpi_tz0: _AC3: temperature 65.0>= 
setpoint 40.0
May  8 15:00:48 mech-aslap239 kernel: acpi_tz0: _AC2: temperature 65.0>= 
setpoint 50.0

Where are setpoints defined?
What's acpi_tz?
What are AC1, AC2, AC3?
Which kernel tunables are involved in the
switching from one fan speed to another
(assuming AC1, AC2, AC3 are related to fan
speed in some way)?

I had a quick look at ⌡aacpi(4),
but none of the above are mentioned.

Many thanks for all your help.

Google for "acpi_tz0: _CRT value is absurd,  ignored" and you will find 
a long thread with some hopefully useful pointers. You may need to bone 
up on the ACPI reference and custom ASL's for FreeBSD. I've forgotten 
most of it now but I think you will find references for both of them in 
that thread.


Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Video not view-able

2012-05-08 Thread Chris Whitehouse

On 08/05/2012 20:09, Carmel wrote:

I have been visiting several sites lately in which the video content
was not view-able.

Example:
http://www.huffingtonpost.com/2012/05/05/republicans-get-in-my-vagina-kate-beckinsale_n_1484918.html?ref=fb&src=sp&comm_ref=false

There is a video there that displays perfectly in MS Windows in either
IE8 or 9 and Firefox. However, under FreeBSD-8.3 with the latest
version of Firefox all I get is a black box. No controls to click,
etcetera. This sort of thing happens way to frequently on way to many
sites. It cannot be a simple "blame Microsoft" thing since these sites
work under Firefox when used in MS Windows.

Does anyone have a possible solution?

Do you have adblock plus installed and enabled? Try disabling it for 
that page and reloading.


Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: help debug bwn(4) wireless

2012-05-06 Thread Chris Whitehouse

On 06/05/2012 17:31, Ian Smith wrote:

Anton, I'm not sure what the state of the art is for multiple network
profiles for such as wireless vs wired, home and work etc, but look
around.  I recall one called just 'profile' from years ago, and more
recently talk of 'failover' setups for wired/wireless nets (probably in
n...@freebsd.org), but I've no time for hunting tonight.  Anyone?


Would that be lagg?
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html

Chris



cheers, Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"



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


Re: help debug bwn(4) wireless

2012-05-05 Thread Chris Hill

On Sat, 5 May 2012, Robert Bonomi wrote:


Anton Shterenlikht  wrote;


[snip]

...I still find the whole networking area perfectly impenetrable. (If 
you can recommend a really introductory book on the subject, I'd 
really appreciate it.


[snip]

See also "TCP/IP Network Administration".  This is an "O'Reilley 
Associates" book.  Virtually *everything* they publish is excellent. 
If they've ever published an even mediocre book, _I_ have never 
encountered it.


Anton, I'll second that recommendation. 'TCP/IP Network Administration' 
by Craig Hunt is an outstanding book; it taught me a lot about 
networking, really made the subject comprehensible. The other O'Reilly 
book that I found indispensable when getting started was 'Essential 
System Administration' by Aeleen Frisch. In fact, why don't I just "me 
too" about O'Reilly. Everything of theirs that I have seen has been 
excellent.


[snip]

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: OpenLDAP 2.4.31 on FreeBSD 10.0-CURRENT/amd64 broken!

2012-05-05 Thread Chris Rees
On 5 May 2012 16:55, "Hartmann, O."  wrote:
>
> Hello lists.
>
> Since Friday, I have on all of our FreeBSD 10.0-CURRENT/amd64 boxes
> massive trouble with net/openldap24-server (SASL enabled, so it is
> openldap-sasl-server).
>
> Last time OpenLDAP worked was Thursday last week, when obviously a
> problematic update to the OS was made - it is a wild guess, since I did
> daily make world and by the end of the day after the last make world
> things went worse. I'm sorry having no SVN release tag handy.
>
> Well, here some facts.
>
> 1) The update of net/openldap24-server has been performed earlier this
> month and has been run successfully (2.4.31).
>
> 2) It doesn't matter whether OpenLDAP is compiled with CLANG 3.1 or
> legacy GCC 4.2.1, compiled with CLANG, slapd(8C)  coredumps immediately,
> compiled with gcc, it starts, but when slapd(8C) gets accessed, it
> coredumps immediately. A simple "id ohartmann" is enough.
>
> 3) I recompiled OpenLDAP 2.4.31 client and server and it requisites via
> "portmaster -f net/openldap24-server|client. No effect/success. I also
> recompiled every port used with OpenLDAP: security/pam_ldap and
> net/nss_ldap.
>
> 4) OpenLDAP server uses DB5 based backend.
>
> 5) The very same configuration (copied slap.d folder's .ldif files)
> works fine on FreeBSD 9.0-STABLE/amd64, even compiled with CLANG. This
> makes me believe this is a FreeBSD 10.0-CURRENT specific bug.
>
> 6) Following is a truss output of the following comand issued:
>
> /usr/local/libexec/slapd -d32 -o ldap -g ldap -F
> /usr/local/etc/openldap/slapd.d :
>
> [...]
> connect(8,{ AF_INET 192.168.0.128:389 },16)  ERR#61 'Connection
refused'
> shutdown(8,SHUT_RDWR)ERR#54 'Connection
> reset by pee
> r'
> close(8) = 0 (0x0)
> clock_gettime(13,{1336231852.0 })= 0 (0x0)
> getpid() = 84297 (0x14949)
> sendto(3,"<163>May  5 17:30:52 slapd[84297"...,97,0x0,NULL,0x0) = 97
(0x61)
>
sigprocmask(SIG_SETMASK,SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGF
>
PE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|
>
SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH
> |SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)
> sigaction(SIGPIPE,{ SIG_DFL SA_RESTART ss_t },{ SIG_IGN 0x0 ss_t }) = 0
> (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
> 4fa547ac ldif_read_file: checksum error on
> "/usr/local/etc/openldap/slapd.d//cn=
> config/olcDatabase={1}hdb.ldif"
> 4fa547ac hdb_db_open: database "dc=walstatt,dc=dyndns,dc=org": unclean
> shutdown
> detected; attempting recovery.
> 4fa547ad hdb_db_open: database "cn=accesslog": unclean shutdown
> detected; attemp
> ting recovery.
> 4fa547ad slapd starting
> SIGNAL 11 (SIGSEGV)
> setgroups(0x1,0x802c7a000,0x802c7c001,0x,0x0,0x0) ERR#4
> 'Interrupted sys
> tem call'
> process exit, rval = 0
>
>
> 7) Desperately, I tried nearly every variation of the configurable
> "overlays", even those my configuration doesn't use. But this seems
> nonesense since OpenLDAP worked before.
>
> I'm floating like a dead man in the water and I was wondering if someone
> else doesn't face this problem. FreeBSD is said to be run in large
> environments, so at least one should have OpenLDAP as user backend
> running ...
>
> I need some help in this case.
>

Why are you running -CURRENT in production?

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Adding a Static Route to rc.conf?

2012-05-03 Thread Chris Maness
>>
>> # Add Internal Net 2 as a static route
>> static_routes="internalnet2"
>> route_internalnet2="-net 44.18.44.0/24 192.168.1.33"
>>
>> to rc.conf per the section above.  I rebooted and it was a no go.  Did
>> I miss something?
>
> Looks OK, and works for me.  Wild guess is you need to enable
> netwait in rc.conf
> http://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=5
> (near the bottom)
>
>
>  -- Noel Jones

I will check that option out.  I don't reboot that often, but when I
do, I always forget to go back in and add my static routes.

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Adding a Static Route to rc.conf?

2012-05-03 Thread Chris Maness
On Tue, May 1, 2012 at 8:31 AM, Chris Maness  wrote:
> How do add a static route to rc.conf?
>
> Thanks,
> Chris Maness


http://www.freebsd.org/doc/handbook/network-routing.html

see section 32.2.5.2 Persistent Configuration

 -- Noel Jones
>

I added:

# Add Internal Net 2 as a static route
static_routes="internalnet2"
route_internalnet2="-net 44.18.44.0/24 192.168.1.33"

to rc.conf per the section above.  I rebooted and it was a no go.  Did
I miss something?

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Adding a Static Route to rc.conf?

2012-05-02 Thread Chris Maness
On Tue, May 1, 2012 at 8:31 AM, Chris Maness  wrote:
> How do add a static route to rc.conf?
>
> Thanks,
> Chris Maness


http://www.freebsd.org/doc/handbook/network-routing.html

see section 32.2.5.2 Persistent Configuration

 -- Noel Jones
>

Thanks, Noel

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Adding a Static Route to rc.conf?

2012-05-01 Thread Chris Maness
How do add a static route to rc.conf?

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: domain required for FreeBSD install and isc dhcp

2012-04-21 Thread Chris Whitehouse

On 20/04/2012 20:56, Chuck Swiger wrote:

On Apr 20, 2012, at 12:40 PM, Chris Whitehouse wrote:

I've wondered this for ages. When you set up networking as part of
installing FreeBSD one of the pieces of information requested is a
domain name. Also setting up dhcp.conf one of the fields is domain
name. What do you do if you don't have your own domain?


There have been a few domains which are permanently reserved and will
never be assigned elsewhere:

http://www.ietf.org/rfc/rfc2606.txt

You can reasonably claim to be part of your ISP's domain, if you
prefer. .lan might be reasonable, or .local, although the latter
might conflict with Bonjour/Zeroconf.


I've never supplied a domain name when installing FreeBSD and it
doesn't seem to have been a problem. I'm just setting up dhcp for
the first time and I don't know if it matters here.


It's mainly used to setup the default search domain which clients use
to find local unqualified hosts.

Regards,

Thanks Chuck, I went with .lan.

cheers

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


  1   2   3   4   5   6   7   8   9   10   >