Re: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches

2013-09-12 Thread Pablo Carboni
Hi Damien (I'm sorry for delay)

Thanks for your comments (specially for the tips / experience with your
-STABLE boxes)

Regards,
Pablo Carboni.


On Wed, Sep 4, 2013 at 2:57 PM, Damien Fleuriot  wrote:

> However minor the issue seems, I think it warrants a PR, if at least so
> the entry is added for the next revision of 8.4-RELEASE.
>
>
> Regarding -STABLE, while I respect your decision to be conservative and
> run -RELEASE, I'd like to point out we've not run into any problem here, in
> over 3 years with ~40 firewall boxes.
>
>
>
> On 4 September 2013 17:48, Pablo Carboni  wrote:
>
>> Dear Damien,
>>
>> I use to install and update 'Releng'  releases (plus patches, but  not
>> stable releases) in our production servers (Ok, I agree stable is fine, but
>> my main reason is to be conservative under some circunstances).
>>
>> (BTW, You're right, on 8-STABLE branch, it appears the 'missing' line I
>> was looking for)
>>
>> Just as a last comment, I've found this 'normal line' on stable branch
>> (but not on release/releng):
>>
>> http://svnweb.freebsd.org/base/stable/8/UPDATING?view=log
>>
>> Revision 
>> *251500* -
>> (view)
>> (download)
>> (annotate)
>> - [select for 
>> diffs]
>>
>> Modified *Fri Jun 7 15:52:33 2013 UTC* (2 months, 4 weeks ago) by *
>> pluknet*
>> File length: 74494 byte(s)
>> Diff to previous 
>> 251026
>>
>> Add the entry for 8.4-RELEASE.
>>
>>
>> (I think it should be added by someone to 8.4 releng branch). If this is
>> the case, shouldn't be sent this 'missing entry' to anyone by the means of
>>  'PR' ?
>>
>> Thank you very much for your patience :)
>>
>> Regards,
>> Pablo.
>>
>> On Wed, Sep 4, 2013 at 6:51 AM, Damien Fleuriot  wrote:
>>
>>> Note that, as opposed to you, I'm tracking 8-STABLE and not 8.4-RELEASE !
>>>
>>> UPDATING:
>>> $FreeBSD: src/UPDATING,v 1.632.2.39 2013/08/23 15:21:39 svnexp Exp $
>>>
>>> newvers.sh:
>>> # $FreeBSD: src/sys/conf/newvers.sh,v 1.83.2.25 2013/08/07 08:26:07
>>> svnexp Exp $
>>>
>>>
>>>
>>> I'll check our clusters of firewalls to see if I've got any 8.4-RELEASE
>>> box lying around, but don't hold your breath, we almost universally track
>>> 8-STABLE...
>>>
>>>
>>>
>>> On 4 September 2013 00:49, Pablo Carboni  wrote:
>>>
 Hello Damien,

 (First at all, thanks for your response).

 I do not want to insist too much with this silly thing, but(just in
 case)

 I've updated my sources today from 
 svn0.us-west.freebsd.org(base/releng/8.4), - previously to my first e-mail 
 - and:

 (Argentina's current TZ is GMT-3)

 -rw-r--r--  1 root  wheel  74967 Sep  3 12:11 /usr/src/UPDATING

 The 'grepped' lines, shows me:

 8.3-RELEASE
 [...]
 8.0-RELEASE

 (But 8.4 still doesn't appear).

 (However, while grepping first lines in /usr/src/sys/conf/newvers.sh
 shows me:

 # $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z
 delphij $

 TYPE="FreeBSD"
 REVISION="8.4"
 BRANCH="RELEASE-p3"

 (Same svn id for UPDATING/newvers.sh).

 Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line,
 the last)

 Thanks a lot!

 Regards,
 Pablo Carboni.

 P.S.: The same happens for
 svn0.us-east.freebsd.org/base/releng/8.4/UPDATING.
 

 (Maybe I'm afraid for local syncing problems on my fbsd server)

 On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot  wrote:

> From:
> -rw-r--r--  1 root  wheel  75631 Aug 27 12:46 /usr/src/UPDATING
>
>
> 20130607:
> 8.4-RELEASE.
>
>
>
>
>
>
> On 3 September 2013 18:16, Pablo Carboni  wrote:
>
>> Dear Sirs,
>>
>> Just for curious, today I was looking for the date/entry that belongs
>> to
>> FreeBSD 8.4-RELEASE inside UPDATING file, with no luck.
>>
>> Maybe I've made a mistake and I was looking inside a wrong file/url?
>>
>> It doesn't appear, neither
>>
>> http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259&view=markup
>> (RELEASE
>> branch)
>>
>> nor
>>
>> http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markup&pathrev=254632
>> (RELENG
>> branch, currently last revision).
>>
>> (This 'little detail' includes sources for 8.4-RELEASE and branch
>> 8.4-RELEASE-p3, which I've downloaded recently).
>>
>> A quick & dirty search I've did on a 8.4-REL

Re: question

2013-09-11 Thread Polytropon
On Wed, 11 Sep 2013 09:41:31 +0200, Pawel Sulewski wrote:
> How to recognize kernel panic and dump memory state onto USB device using C
> language?

The kernel has its own crash handling and will initiate the
writing of the proper image automatically. It will be stored
on the partition designated by the /etc/rc.conf setting
dumpdev="", usually a swap partition, and at next
boot time that image will be written to a file in /var/crash,
if nothing else has been defined with dumpdir=""
(same file; see "man rc.conf" and /etc/defaults/rc.conf for
details). If you want to coredump to a USB device, you need
to configure this accordingly.

You can find more information about this topic in the following
manual pages: "man 2 sigaction", "man 8 crash", and "man 5 core".






-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Question about those special (countdown numbers) at shutdown / sync

2013-09-05 Thread Patrick Dung
Thanks for the answer.

That is cool and unique.




 From: Polytropon 
To: Patrick Dung  
Cc: "freebsd-questions@freebsd.org"  
Sent: Thursday, September 5, 2013 9:42 PM
Subject: Re: Question about those special (countdown numbers) at shutdown / sync
 

On Thu, 5 Sep 2013 21:30:29 +0800 (SGT), Patrick Dung wrote:
> I am curious about the special (count down numbers) at shutdown / sync.
> 
> Those nubmers is like 8 8 8 8 2 1 2 1 0 0 0 0.
> 
> Actually what do those numbers mean?

Those numbers show you how many buffers have to be synced
until the system is ready to finally shut down and power off.
This makes sure no pending hard disk operations will be
"left and forgotten in memory".

The important text displayed prior to the numbers is:

    Syncing disks, buffers remaining... 

You can find it here: /usr/src/sys/kern/kern_shutdown.c
around line 330 (8-STABLE/i386 here).




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Question about those special (countdown numbers) at shutdown / sync

2013-09-05 Thread Polytropon
On Thu, 5 Sep 2013 21:30:29 +0800 (SGT), Patrick Dung wrote:
> I am curious about the special (count down numbers) at shutdown / sync.
> 
> Those nubmers is like 8 8 8 8 2 1 2 1 0 0 0 0.
> 
> Actually what do those numbers mean?

Those numbers show you how many buffers have to be synced
until the system is ready to finally shut down and power off.
This makes sure no pending hard disk operations will be
"left and forgotten in memory".

The important text displayed prior to the numbers is:

Syncing disks, buffers remaining... 

You can find it here: /usr/src/sys/kern/kern_shutdown.c
around line 330 (8-STABLE/i386 here).




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches

2013-09-04 Thread Damien Fleuriot
However minor the issue seems, I think it warrants a PR, if at least so the
entry is added for the next revision of 8.4-RELEASE.


Regarding -STABLE, while I respect your decision to be conservative and run
-RELEASE, I'd like to point out we've not run into any problem here, in
over 3 years with ~40 firewall boxes.



On 4 September 2013 17:48, Pablo Carboni  wrote:

> Dear Damien,
>
> I use to install and update 'Releng'  releases (plus patches, but  not
> stable releases) in our production servers (Ok, I agree stable is fine, but
> my main reason is to be conservative under some circunstances).
>
> (BTW, You're right, on 8-STABLE branch, it appears the 'missing' line I
> was looking for)
>
> Just as a last comment, I've found this 'normal line' on stable branch
> (but not on release/releng):
>
> http://svnweb.freebsd.org/base/stable/8/UPDATING?view=log
>
> Revision 
> *251500* -
> (view)
> (download)
> (annotate)
> - [select for 
> diffs]
>
> Modified *Fri Jun 7 15:52:33 2013 UTC* (2 months, 4 weeks ago) by *pluknet
> *
> File length: 74494 byte(s)
> Diff to previous 
> 251026
>
> Add the entry for 8.4-RELEASE.
>
>
> (I think it should be added by someone to 8.4 releng branch). If this is
> the case, shouldn't be sent this 'missing entry' to anyone by the means of
>  'PR' ?
>
> Thank you very much for your patience :)
>
> Regards,
> Pablo.
>
> On Wed, Sep 4, 2013 at 6:51 AM, Damien Fleuriot  wrote:
>
>> Note that, as opposed to you, I'm tracking 8-STABLE and not 8.4-RELEASE !
>>
>> UPDATING:
>> $FreeBSD: src/UPDATING,v 1.632.2.39 2013/08/23 15:21:39 svnexp Exp $
>>
>> newvers.sh:
>> # $FreeBSD: src/sys/conf/newvers.sh,v 1.83.2.25 2013/08/07 08:26:07
>> svnexp Exp $
>>
>>
>>
>> I'll check our clusters of firewalls to see if I've got any 8.4-RELEASE
>> box lying around, but don't hold your breath, we almost universally track
>> 8-STABLE...
>>
>>
>>
>> On 4 September 2013 00:49, Pablo Carboni  wrote:
>>
>>> Hello Damien,
>>>
>>> (First at all, thanks for your response).
>>>
>>> I do not want to insist too much with this silly thing, but(just in
>>> case)
>>>
>>> I've updated my sources today from 
>>> svn0.us-west.freebsd.org(base/releng/8.4), - previously to my first e-mail 
>>> - and:
>>>
>>> (Argentina's current TZ is GMT-3)
>>>
>>> -rw-r--r--  1 root  wheel  74967 Sep  3 12:11 /usr/src/UPDATING
>>>
>>> The 'grepped' lines, shows me:
>>>
>>> 8.3-RELEASE
>>> [...]
>>> 8.0-RELEASE
>>>
>>> (But 8.4 still doesn't appear).
>>>
>>> (However, while grepping first lines in /usr/src/sys/conf/newvers.sh
>>> shows me:
>>>
>>> # $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z
>>> delphij $
>>>
>>> TYPE="FreeBSD"
>>> REVISION="8.4"
>>> BRANCH="RELEASE-p3"
>>>
>>> (Same svn id for UPDATING/newvers.sh).
>>>
>>> Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line,
>>> the last)
>>>
>>> Thanks a lot!
>>>
>>> Regards,
>>> Pablo Carboni.
>>>
>>> P.S.: The same happens for
>>> svn0.us-east.freebsd.org/base/releng/8.4/UPDATING.
>>> 
>>>
>>> (Maybe I'm afraid for local syncing problems on my fbsd server)
>>>
>>> On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot  wrote:
>>>
 From:
 -rw-r--r--  1 root  wheel  75631 Aug 27 12:46 /usr/src/UPDATING


 20130607:
 8.4-RELEASE.






 On 3 September 2013 18:16, Pablo Carboni  wrote:

> Dear Sirs,
>
> Just for curious, today I was looking for the date/entry that belongs
> to
> FreeBSD 8.4-RELEASE inside UPDATING file, with no luck.
>
> Maybe I've made a mistake and I was looking inside a wrong file/url?
>
> It doesn't appear, neither
>
> http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259&view=markup
> (RELEASE
> branch)
>
> nor
>
> http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markup&pathrev=254632
> (RELENG
> branch, currently last revision).
>
> (This 'little detail' includes sources for 8.4-RELEASE and branch
> 8.4-RELEASE-p3, which I've downloaded recently).
>
> A quick & dirty search I've did on a 8.4-RELEASE-p3 box:
>
> grep "8\..*-RELEASE" /usr/src/UPDATING
>
> (There is no reference for '8.4')
>
> Thanks in advance!
>
> Regards,
> Pablo Carboni
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe,

Re: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches

2013-09-04 Thread Pablo Carboni
Dear Damien,

I use to install and update 'Releng'  releases (plus patches, but  not
stable releases) in our production servers (Ok, I agree stable is fine, but
my main reason is to be conservative under some circunstances).

(BTW, You're right, on 8-STABLE branch, it appears the 'missing' line I was
looking for)

Just as a last comment, I've found this 'normal line' on stable branch (but
not on release/releng):

http://svnweb.freebsd.org/base/stable/8/UPDATING?view=log

Revision *251500*
-
(view)
(download)
(annotate )
- [select for 
diffs]

Modified *Fri Jun 7 15:52:33 2013 UTC* (2 months, 4 weeks ago) by *pluknet*
File length: 74494 byte(s)
Diff to previous
251026

Add the entry for 8.4-RELEASE.


(I think it should be added by someone to 8.4 releng branch). If this is
the case, shouldn't be sent this 'missing entry' to anyone by the means of
 'PR' ?

Thank you very much for your patience :)

Regards,
Pablo.

On Wed, Sep 4, 2013 at 6:51 AM, Damien Fleuriot  wrote:

> Note that, as opposed to you, I'm tracking 8-STABLE and not 8.4-RELEASE !
>
> UPDATING:
> $FreeBSD: src/UPDATING,v 1.632.2.39 2013/08/23 15:21:39 svnexp Exp $
>
> newvers.sh:
> # $FreeBSD: src/sys/conf/newvers.sh,v 1.83.2.25 2013/08/07 08:26:07 svnexp
> Exp $
>
>
>
> I'll check our clusters of firewalls to see if I've got any 8.4-RELEASE
> box lying around, but don't hold your breath, we almost universally track
> 8-STABLE...
>
>
>
> On 4 September 2013 00:49, Pablo Carboni  wrote:
>
>> Hello Damien,
>>
>> (First at all, thanks for your response).
>>
>> I do not want to insist too much with this silly thing, but(just in
>> case)
>>
>> I've updated my sources today from 
>> svn0.us-west.freebsd.org(base/releng/8.4), - previously to my first e-mail - 
>> and:
>>
>> (Argentina's current TZ is GMT-3)
>>
>> -rw-r--r--  1 root  wheel  74967 Sep  3 12:11 /usr/src/UPDATING
>>
>> The 'grepped' lines, shows me:
>>
>> 8.3-RELEASE
>> [...]
>> 8.0-RELEASE
>>
>> (But 8.4 still doesn't appear).
>>
>> (However, while grepping first lines in /usr/src/sys/conf/newvers.sh
>> shows me:
>>
>> # $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z
>> delphij $
>>
>> TYPE="FreeBSD"
>> REVISION="8.4"
>> BRANCH="RELEASE-p3"
>>
>> (Same svn id for UPDATING/newvers.sh).
>>
>> Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line,
>> the last)
>>
>> Thanks a lot!
>>
>> Regards,
>> Pablo Carboni.
>>
>> P.S.: The same happens for
>> svn0.us-east.freebsd.org/base/releng/8.4/UPDATING.
>> 
>>
>> (Maybe I'm afraid for local syncing problems on my fbsd server)
>>
>> On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot  wrote:
>>
>>> From:
>>> -rw-r--r--  1 root  wheel  75631 Aug 27 12:46 /usr/src/UPDATING
>>>
>>>
>>> 20130607:
>>> 8.4-RELEASE.
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 3 September 2013 18:16, Pablo Carboni  wrote:
>>>
 Dear Sirs,

 Just for curious, today I was looking for the date/entry that belongs to
 FreeBSD 8.4-RELEASE inside UPDATING file, with no luck.

 Maybe I've made a mistake and I was looking inside a wrong file/url?

 It doesn't appear, neither

 http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259&view=markup
 (RELEASE
 branch)

 nor

 http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markup&pathrev=254632
 (RELENG
 branch, currently last revision).

 (This 'little detail' includes sources for 8.4-RELEASE and branch
 8.4-RELEASE-p3, which I've downloaded recently).

 A quick & dirty search I've did on a 8.4-RELEASE-p3 box:

 grep "8\..*-RELEASE" /usr/src/UPDATING

 (There is no reference for '8.4')

 Thanks in advance!

 Regards,
 Pablo Carboni
 ___
 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: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches

2013-09-04 Thread Damien Fleuriot
Note that, as opposed to you, I'm tracking 8-STABLE and not 8.4-RELEASE !

UPDATING:
$FreeBSD: src/UPDATING,v 1.632.2.39 2013/08/23 15:21:39 svnexp Exp $

newvers.sh:
# $FreeBSD: src/sys/conf/newvers.sh,v 1.83.2.25 2013/08/07 08:26:07 svnexp
Exp $



I'll check our clusters of firewalls to see if I've got any 8.4-RELEASE box
lying around, but don't hold your breath, we almost universally track
8-STABLE...



On 4 September 2013 00:49, Pablo Carboni  wrote:

> Hello Damien,
>
> (First at all, thanks for your response).
>
> I do not want to insist too much with this silly thing, but(just in
> case)
>
> I've updated my sources today from svn0.us-west.freebsd.org(base/releng/8.4), 
> - previously to my first e-mail - and:
>
> (Argentina's current TZ is GMT-3)
>
> -rw-r--r--  1 root  wheel  74967 Sep  3 12:11 /usr/src/UPDATING
>
> The 'grepped' lines, shows me:
>
> 8.3-RELEASE
> [...]
> 8.0-RELEASE
>
> (But 8.4 still doesn't appear).
>
> (However, while grepping first lines in /usr/src/sys/conf/newvers.sh shows
> me:
>
> # $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z
> delphij $
>
> TYPE="FreeBSD"
> REVISION="8.4"
> BRANCH="RELEASE-p3"
>
> (Same svn id for UPDATING/newvers.sh).
>
> Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line,
> the last)
>
> Thanks a lot!
>
> Regards,
> Pablo Carboni.
>
> P.S.: The same happens for
> svn0.us-east.freebsd.org/base/releng/8.4/UPDATING.
> 
>
> (Maybe I'm afraid for local syncing problems on my fbsd server)
>
> On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot  wrote:
>
>> From:
>> -rw-r--r--  1 root  wheel  75631 Aug 27 12:46 /usr/src/UPDATING
>>
>>
>> 20130607:
>> 8.4-RELEASE.
>>
>>
>>
>>
>>
>>
>> On 3 September 2013 18:16, Pablo Carboni  wrote:
>>
>>> Dear Sirs,
>>>
>>> Just for curious, today I was looking for the date/entry that belongs to
>>> FreeBSD 8.4-RELEASE inside UPDATING file, with no luck.
>>>
>>> Maybe I've made a mistake and I was looking inside a wrong file/url?
>>>
>>> It doesn't appear, neither
>>>
>>> http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259&view=markup
>>> (RELEASE
>>> branch)
>>>
>>> nor
>>>
>>> http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markup&pathrev=254632
>>> (RELENG
>>> branch, currently last revision).
>>>
>>> (This 'little detail' includes sources for 8.4-RELEASE and branch
>>> 8.4-RELEASE-p3, which I've downloaded recently).
>>>
>>> A quick & dirty search I've did on a 8.4-RELEASE-p3 box:
>>>
>>> grep "8\..*-RELEASE" /usr/src/UPDATING
>>>
>>> (There is no reference for '8.4')
>>>
>>> Thanks in advance!
>>>
>>> Regards,
>>> Pablo Carboni
>>> ___
>>> 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: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches

2013-09-03 Thread Pablo Carboni
Hello Damien,

(First at all, thanks for your response).

I do not want to insist too much with this silly thing, but(just in
case)

I've updated my sources today from
svn0.us-west.freebsd.org(base/releng/8.4), - previously to my first
e-mail - and:

(Argentina's current TZ is GMT-3)

-rw-r--r--  1 root  wheel  74967 Sep  3 12:11 /usr/src/UPDATING

The 'grepped' lines, shows me:

8.3-RELEASE
[...]
8.0-RELEASE

(But 8.4 still doesn't appear).

(However, while grepping first lines in /usr/src/sys/conf/newvers.sh shows
me:

# $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z
delphij $

TYPE="FreeBSD"
REVISION="8.4"
BRANCH="RELEASE-p3"

(Same svn id for UPDATING/newvers.sh).

Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line, the
last)

Thanks a lot!

Regards,
Pablo Carboni.

P.S.: The same happens for
svn0.us-east.freebsd.org/base/releng/8.4/UPDATING.


(Maybe I'm afraid for local syncing problems on my fbsd server)

On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot  wrote:

> From:
> -rw-r--r--  1 root  wheel  75631 Aug 27 12:46 /usr/src/UPDATING
>
>
> 20130607:
> 8.4-RELEASE.
>
>
>
>
>
>
> On 3 September 2013 18:16, Pablo Carboni  wrote:
>
>> Dear Sirs,
>>
>> Just for curious, today I was looking for the date/entry that belongs to
>> FreeBSD 8.4-RELEASE inside UPDATING file, with no luck.
>>
>> Maybe I've made a mistake and I was looking inside a wrong file/url?
>>
>> It doesn't appear, neither
>>
>> http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259&view=markup
>> (RELEASE
>> branch)
>>
>> nor
>>
>> http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markup&pathrev=254632
>> (RELENG
>> branch, currently last revision).
>>
>> (This 'little detail' includes sources for 8.4-RELEASE and branch
>> 8.4-RELEASE-p3, which I've downloaded recently).
>>
>> A quick & dirty search I've did on a 8.4-RELEASE-p3 box:
>>
>> grep "8\..*-RELEASE" /usr/src/UPDATING
>>
>> (There is no reference for '8.4')
>>
>> Thanks in advance!
>>
>> Regards,
>> Pablo Carboni
>> ___
>> 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: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches

2013-09-03 Thread Damien Fleuriot
From:
-rw-r--r--  1 root  wheel  75631 Aug 27 12:46 /usr/src/UPDATING


20130607:
8.4-RELEASE.






On 3 September 2013 18:16, Pablo Carboni  wrote:

> Dear Sirs,
>
> Just for curious, today I was looking for the date/entry that belongs to
> FreeBSD 8.4-RELEASE inside UPDATING file, with no luck.
>
> Maybe I've made a mistake and I was looking inside a wrong file/url?
>
> It doesn't appear, neither
>
> http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259&view=markup
> (RELEASE
> branch)
>
> nor
>
> http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markup&pathrev=254632
> (RELENG
> branch, currently last revision).
>
> (This 'little detail' includes sources for 8.4-RELEASE and branch
> 8.4-RELEASE-p3, which I've downloaded recently).
>
> A quick & dirty search I've did on a 8.4-RELEASE-p3 box:
>
> grep "8\..*-RELEASE" /usr/src/UPDATING
>
> (There is no reference for '8.4')
>
> Thanks in advance!
>
> Regards,
> Pablo Carboni
> ___
> 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: question, following error Shared object "libc.so.6" not found, required by "fortune"

2013-06-29 Thread Polytropon
On Sat, 29 Jun 2013 10:48:38 -0400, Rev Herbert Miller wrote:
> I was trying to use the content management system for our website. 
> I needed to restart on terminal but I keep coming up with the
> following error:  I don't know programing at all, so don't know
> if this is something I can fix.

In worst case, notify your system administrator.



> Shared object "libc.so.6" not found, required by "fortune"

This kind of error often indicates an incomplete system update
were libraries are "out of date" or missing. What way of system
update has been performed?



> root@psumc:/usr/local/tomcat5.5 # bin/startup.sh
> Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
> At least one of these environment variable is needed to run this program

That can be a side effect, maybe some accidentally overwritten
configuration file or a program that's unable to run due to a
missing dependency?

What happens if you manually define those variables to the proper
valies and try again, e. g.

# setenv JAVA_HOME=/usr/local/
# setenv JRE_HOME=/usr/local/
# bin/startup,sh

Does this produce a different result?



> root@psumc:/usr/local/tomcat5.5 # su -c 'killall -9 java'

That command doesn't make sense. The prompt indicates that you
are already root. The -c parameter for the su command is missing
an argument, the class". See "man su" for details, no programming
knowledge required. ;-)


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: question on manpages/hier(7)

2013-05-09 Thread Paul Beard

On May 9, 2013, at 10:39 AM, Dan Nelson  wrote:

> I don't have a /usr/local/share/man/ directory at all, and have 7300 files in
> /usr/local/man/man?/ , so I'd say /usr/local/man/ is the correct location :)

I wish it were that simple here. /etc/manpath.config is unmodified so I have no 
idea how this is getting all futzed up. 

I am finding files in /usr/local/share/man/man1 that were updated yesterday 
with others dating back to 2007. 


--
Paul Beard

Are you trying to win an argument or solve a problem? 

___
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: question on manpages/hier(7)

2013-05-09 Thread Dan Nelson
In the last episode (May 09), Paul Beard said:
> Where should site-specific, ie local, man pages live?
> 
> For instance, I have: 
> 
> /usr/local/man/man1/php.1.gz
> /usr/local/share/man/man1/php.1.gz
> 
> -rw-r--r--  1 root  wheel  3597 May  6 00:38 /usr/local/man/man1/php.1.gz
> -rw-r--r--  1 root  wheel  3383 Dec 20 19:54 
> /usr/local/share/man/man1/php.1.gz
> 
> My understanding is that the older one is in the right place. The newer
> one is registered as belonging to php5.4-14 while the old one is orphaned.

I don't have a /usr/local/share/man/ directory at all, and have 7300 files in
/usr/local/man/man?/ , so I'd say /usr/local/man/ is the correct location :)
 

-- 
Dan Nelson
dnel...@allantgroup.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"


Re: question installing 9.1

2013-05-06 Thread doug



On Mon, 6 May 2013, doug wrote:

I installed 9.1-release amd 64 from the DVD. I intended to leave the 
obligatory windows 7. I shrunk the primary windows partition and installed 
FreeBSD. I never got an option to install the multi-partition boot record. 
Rather the install overwrote the MBR with a boot record to boot FreeBSD. 
While I appreciate the irony is there a way to make that option appear or is 
the only solution to rewrite it after the fact?


boot0cfg -B /dev/ada0 (ada or what ever your disk dev is)
___
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: Question on how do I tell make to choose between static and shared versions of a library

2012-12-16 Thread Manish Jain

On 16-Dec-12 23:12, Matthew Seaman wrote:

On 16/12/2012 17:22, Manish Jain wrote:

Under /lib I have both versions - shared (libxyz.so.1) as well as static
(libxyz.a) - of a library. How do I tell make to link to the static
version, not the shared one ? The next obvious question is how to do the
vice versa - tell make to link to the shared version, not the static one.


Add -static to the ld command line to produce a staticly linked binary:
this forbids ld(1) from doing any dynamic linking.  Otherwise ld will
default to dynamic linking, but fall back to linking staticly against
libraries where there isn't a dynamic shared object available.

Actually, there are about 4 different linker flags you could use that
mean 'produce a staticly linked binary.'  They don't have any different
effect; the reason they exist is for historic compatibility with
versions of ld(1) from many different sources.

It's also an all-or-nothing option.  If you wanted to use static linkage
for one particular library out of all the libraries used by your
program, then you'ld need a very different command line.  But that, as
they say, is left as an exercise for the student.

Cheers,

Matthew





Thanks Matthew. That saved me a lot of time, and the man page for ld (as 
suggested by Polytropon) is not as informative on this particular 
subject as your response.



--
Regards,

Manish Jain
bourne.ident...@hotmail.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"


Re: Question on how do I tell make to choose between static and shared versions of a library

2012-12-16 Thread Matthew Seaman
On 16/12/2012 17:22, Manish Jain wrote:
> Under /lib I have both versions - shared (libxyz.so.1) as well as static
> (libxyz.a) - of a library. How do I tell make to link to the static
> version, not the shared one ? The next obvious question is how to do the
> vice versa - tell make to link to the shared version, not the static one.

Add -static to the ld command line to produce a staticly linked binary:
this forbids ld(1) from doing any dynamic linking.  Otherwise ld will
default to dynamic linking, but fall back to linking staticly against
libraries where there isn't a dynamic shared object available.

Actually, there are about 4 different linker flags you could use that
mean 'produce a staticly linked binary.'  They don't have any different
effect; the reason they exist is for historic compatibility with
versions of ld(1) from many different sources.

It's also an all-or-nothing option.  If you wanted to use static linkage
for one particular library out of all the libraries used by your
program, then you'ld need a very different command line.  But that, as
they say, is left as an exercise for the student.

Cheers,

Matthew


-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: Question on how do I tell make to choose between static and shared versions of a library

2012-12-16 Thread Polytropon
On Sun, 16 Dec 2012 22:52:05 +0530, Manish Jain wrote:
> Under /lib I have both versions - shared (libxyz.so.1) as well as static 
> (libxyz.a) - of a library. How do I tell make to link to the static 
> version, not the shared one ? The next obvious question is how to do the 
> vice versa - tell make to link to the shared version, not the static one.
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

This can be done by addressing the linker through $LDFLAGS.
I think "man ld" will be helpful.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: question about my new Dell 3010

2012-12-10 Thread Gary Kline
On Mon, Dec 10, 2012 at 02:26:43AM -0600, Zane C. B-H. wrote:
> On Sun, 9 Dec 2012 15:47:06 -0800
> Gary Kline  wrote:
> 
> > > 
> > 
> > 
> > Rats:: xvidtune gave me 
> > 
> > "Video modes are not settable on this chip."
> > 
> > how cheap can you get? no, the question is: what chip/video
> > card do I need that will get me [at least]  1920x1280?
> 
> Unless you wish to get the the KMS stuff working like Warren Block
> suggested, I strongly advise getting a Nvidia card as of
> currently that is the easiest and most reliable way to get good 3D
> under FreeBSD.
> ___
> 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"



thanks; I will check into this!  ... .

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
  Twenty-six years of service to the Unix community.

___
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: question about my new Dell 3010

2012-12-10 Thread Gary Kline
On Mon, Dec 10, 2012 at 07:05:50AM +, Matthew Seaman wrote:
> On 10/12/2012 00:31, Gary Kline wrote:
> > On Sun, Dec 09, 2012 at 08:38:06AM +, Matthew Seaman wrote:
> >> > On 09/12/2012 00:23, Gary Kline wrote:
> 
> >>> > >   one of the remaining problems --hopefuully the Last-- with my 
> >>> > >   Dell 3010 quad i5 is that the resolution stops at 5:4.  it's
> >>> > >   something like 1280x1014 whereas my widescreen Dell needs
> >>> > >   1920x1280 or close to that.  do I need to go out and find a
> >>> > >   videocard?  or is there a way of taking my 6GB of RAM and 
> >>> > > giving 
> >>> > >   it to the video?
> 
> >> > Do you have a DVI connector on your current graphics card, or just the
> >> > old style VGA connector?  Pretty much all modern widescreen monitors
> >> > will have a DVI connector as well as the legacy VGA.
> 
> > actually, I have both.  the KVM dates from 2010 and came with
> > four cables and eight plugs.  
> 
> Ahah!  You're using a KVM switch.  That can block the monitor from
> sending its configuration information to the X server.  It's easy to
> tell: just try connecting directly to the monitor temporarily.
> 
> If that works, you can use xrandr to extract the monitor details, write
> a mode line for your xorg.conf and put the KVM back in the loop, while
> keeping the optimum configuration.
> 
>   Cheers,
> 
>   Matthew


the thing is that I had this working before--twice--one running
Gnnome, once KDE and both thru theKVM switch.  the last time I
re-reinstalled from a DVD [gnome], the kde from a CD: nojoy.

gary
 
 PS I managed to get both ssh's [bi-directionally] within a few
 hours.  ive run every diagnostic I can think of.

> 
> -- 
> Dr Matthew J Seaman MA, D.Phil.
> PGP: http://www.infracaninophile.co.uk/pgpkey
> 
> 



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
  Twenty-six years of service to the Unix community.

___
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: question about my new Dell 3010

2012-12-10 Thread Zane C. B-H.
On Sun, 9 Dec 2012 15:47:06 -0800
Gary Kline  wrote:

> > 
> 
> 
>   Rats:: xvidtune gave me 
> 
>   "Video modes are not settable on this chip."
> 
>   how cheap can you get? no, the question is: what chip/video
> card do I need that will get me [at least]  1920x1280?

Unless you wish to get the the KMS stuff working like Warren Block
suggested, I strongly advise getting a Nvidia card as of
currently that is the easiest and most reliable way to get good 3D
under FreeBSD.
___
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: question about my new Dell 3010

2012-12-09 Thread Matthew Seaman
On 10/12/2012 00:31, Gary Kline wrote:
> On Sun, Dec 09, 2012 at 08:38:06AM +, Matthew Seaman wrote:
>> > On 09/12/2012 00:23, Gary Kline wrote:

>>> > > one of the remaining problems --hopefuully the Last-- with my 
>>> > > Dell 3010 quad i5 is that the resolution stops at 5:4.  it's
>>> > > something like 1280x1014 whereas my widescreen Dell needs
>>> > > 1920x1280 or close to that.  do I need to go out and find a
>>> > > videocard?  or is there a way of taking my 6GB of RAM and 
>>> > > giving 
>>> > > it to the video?

>> > Do you have a DVI connector on your current graphics card, or just the
>> > old style VGA connector?  Pretty much all modern widescreen monitors
>> > will have a DVI connector as well as the legacy VGA.

>   actually, I have both.  the KVM dates from 2010 and came with
>   four cables and eight plugs.  

Ahah!  You're using a KVM switch.  That can block the monitor from
sending its configuration information to the X server.  It's easy to
tell: just try connecting directly to the monitor temporarily.

If that works, you can use xrandr to extract the monitor details, write
a mode line for your xorg.conf and put the KVM back in the loop, while
keeping the optimum configuration.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: question about my new Dell 3010

2012-12-09 Thread Polytropon
On Sun, 9 Dec 2012 17:00:17 -0800, Gary Kline wrote:
> On Mon, Dec 10, 2012 at 12:08:38AM +, james wrote:
> > Are you sure you mean 1920x1280???
> > 
> > I mean:  1280*800, or 1920*1200, those are more normal.  (My older
> > portables have the former, my Dell 24" has the latter)
> > 
> > I can believe 1920x1280 might cause problems.
> > 
> > 
> 
>   I sent a screen shot, snapshot7.png.
> 
>   ill resend with this mail.

Both the content and the dimensions of the screenshot say
it's 1920x1080. If the phsyical display has a different
size (measured in pixels), it should communicate that fact
to X, and as long as X loads the proper driver (maybe the
Intel GPU driver? - has to match what's installed on your
mainboard or in your machine!) the correct screen size should
be initialized, at least _for_ X. Note that problems might
occur _prior_ to X due to KMS (kernel mode switching) which
can happen to have less good support.

Also from the content of the screenshot, it's visible that
the display is connected via VGA. That's sub-optimum. If
possible, connect per DVI cable, so it stays "all digital
all the time". Even though both VGA and DVI have a "data
channel" to transmit data (like monitor pixel size) to the
GPU, DVI seems to be the preferred solution for flatpanels,
especially wide ones.

1920x1080 is already widescreen. Does it match the size
description of the physical monitor, or should it be
something different?




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: question about my new Dell 3010

2012-12-09 Thread Gary Kline
On Sun, Dec 09, 2012 at 08:38:06AM +, Matthew Seaman wrote:
> On 09/12/2012 00:23, Gary Kline wrote:
> 
> > one of the remaining problems --hopefuully the Last-- with my 
> > Dell 3010 quad i5 is that the resolution stops at 5:4.  it's
> > something like 1280x1014 whereas my widescreen Dell needs
> > 1920x1280 or close to that.  do I need to go out and find a
> > videocard?  or is there a way of taking my 6GB of RAM and giving 
> > it to the video?
> 
> Do you have a DVI connector on your current graphics card, or just the
> old style VGA connector?  Pretty much all modern widescreen monitors
> will have a DVI connector as well as the legacy VGA.

actually, I have both.  the KVM dates from 2010 and came with
four cables and eight plugs.  

> If you don't know what those are, see this page:
> 
> https://en.wikipedia.org/wiki/File:DVI_Connector_Types.svg
> 
> Most DVI monitor cables have a DVI-D dual link plug on them, but
> anything matching those patterns is proof positive of DVI.
> 
> VGA connectors looks like this:
> 
> https://en.wikipedia.org/wiki/File:Vga-cable.jpg
> 
> Anyhow, the point is if you're using a DVI connector, X will be able to
> query the monitor and find out its preferred resolution etc.
> automatically.  Whereas with a VGA connector, it will default to using
> one of the standard VGA series of resolutions.  All monitors will
> support some sort of VGA resolution for backwards compatibility --
> typically 1024x768@60Hz -- and many will support higher, but all of the
> VGA series resolutions are 4:3 aspect ratio which doesn't look very nice
> on a widescreen monitor.
> 
> There's two ways to fix the problem.
> 
>   1) Get a video card with a DVI connector, or at least a DVI-to-DVI
>  monitor cable if your card already has that.  Apart from the
>  hassle of getting a new video card that will work happily with X,
>  this should be pretty painfree.
> 
>   2) Edit your Xorg.conf to add a custom mode that matches what your
>  monitor expects.  Back in the days of CRTs this was a potentially
>  risky thing to do, as configuring the video mode wrongly could
>  phsically damage your monitor.  Modern flatscreens however will
>  just put up a message saying the input is incompatible.
> 
> Working out what the right parameters are to put in the mode definition
> is the tricky bit.  You may be able to use xrandr to pull them out (but
> if xrandr could do it, then X would do it automatically too...) There
> should be documentation that comes with the monitor, or you may find a
> kind soul online with the same make and model of monitor who will send
> you some xrandr output.


here's the Whole story.  last summer I dedided to switch to 
all linux`in order to make upgrades simple[r].  since my brother
engineer [a retired ME] was too ill to help i hired a technician.

my "old-tao" (a homebrew AMD quad-CPU) had a broken USB. 
this was how I realized that the USB was broken.  with a new KVM
the home-brew still failed.  I could ssh to<-> from, but not
watch it boot.

So
I finally
decided it was time to buys another Dell, new.  somebody gave me
a used Dell dual.  my server is  a new dual from '09.  used and 
refurb'd and home-brew is not the optimal way.  so my tech said 
he would look for the best Dell quad he could find, and after 6
weeeks he brought over the 3010.  [fact: this chap is self-taught.
but he got me a new kvm and blindly pluged things together.]]

whether the 3010 has ye-olden VGA jack =plus= the DVI, I dont 
know.  my guess is that the technician knows the diff.  nutshell,
looks like whatever ghaphic chipset the computer had maxes out
a 5:4 screen-size ratio.  I =will= try adding the mode line info.

thanks,

gary



>   Cheers,
> 
>   Matthew
> 
> -- 
> Dr Matthew J Seaman MA, D.Phil.
> PGP: http://www.infracaninophile.co.uk/pgpkey
> 
> 



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
  Twenty-six years of service to the Unix community.

___
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: question about my new Dell 3010

2012-12-09 Thread Gary Kline
On Sat, Dec 08, 2012 at 07:21:17PM -0800, per...@pluto.rain.com wrote:
> Gary Kline  wrote:
> 
> > one of the remaining problems --hopefuully the Last-- with my 
> > Dell 3010 quad i5 is that the resolution stops at 5:4.  it's
> > something like 1280x1014 ...
> 
> Probably 1280x1024 -- a common size before widescreen.
> The largest commonly seen back then was 1600x1200.
> 
> > ... whereas my widescreen Dell needs 1920x1280 or close to that.
> 
> Probably 1920x1200.


see enclose snapshot.  I was right.   nonetheless, howi get that 
here on my old deall dual and do not on my dell quad is the 
mystery.

> 
> > do I need to go out and find a videocard?  or is there a way of
> > taking my 6GB of RAM and giving it to the video?
> 
> Dunno about currently-supported versions, nor your particular
> display hardware, but 1920x1200 works for me on an ancient Dell
> Optiplex GX1 with ATI Mach64 under 6.1.  Maybe something in the
> (attached) conf and/or log will help.


I'll check, thanks.  I had linux as my "desktop" --and the
worst of the bunch, IMO, fedora.  have to use locate to
find the Xorg stuff.  

/*

   I wonder if the 1900 line isn't there and commented ...
   hmm.

 */


> Section "ServerLayout"
>   Identifier "X.org Configured"
>   Screen  0  "Screen0" 0 0
>   InputDevice"Mouse0" "CorePointer"
>   InputDevice"Keyboard0" "CoreKeyboard"
> EndSection
> 
> Section "Files"
>   RgbPath  "/usr/X11R6/lib/X11/rgb"
>   ModulePath   "/usr/X11R6/lib/modules"
>   FontPath "/usr/X11R6/lib/X11/fonts/misc/"
>   FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
>   FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
>   FontPath "/usr/X11R6/lib/X11/fonts/CID/"
>   FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
>   FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
> EndSection
> 
> Section "Module"
>   Load  "dbe"
>   Load  "dri"
>   Load  "extmod"
>   Load  "glx"
>   Load  "record"
>   Load  "xtrap"
>   Load  "freetype"
>   Load  "type1"
> EndSection
> 
> Section "InputDevice"
>   Identifier  "Keyboard0"
>   Driver  "kbd"
> EndSection
> 
> Section "InputDevice"
>   Identifier  "Mouse0"
>   Driver  "mouse"
>   Option  "Protocol" "auto"
>   Option  "Device" "/dev/psm0"
>   Option  "ZAxisMapping" "4 5 6 7"
> EndSection
> 
> Section "Monitor"
>   #DisplaySize  520   320 # mm
>   Identifier   "Monitor0"
>   VendorName   "IQT"
>   ModelName"HDIT24W DSUB"
>  ### Comment all HorizSync and VertSync values to use DDC:
>   HorizSync31.0 - 83.0
>   VertRefresh  59.0 - 76.0
> # Modelines that actually worked on the BTC LM-1702, for reference.  The 
> first is known
> # to also work on the IQT (Hyundai) HDIT24W, but it is stretched in the X 
> dimension.
> # Modeline "1280x1024"  108.00  1280 1328 1440 1688  1024 1025 1028 1066 
> +hsync +vsync
> # Modeline "1024x768"65.00  1024 1048 1184 1344   768  771  777  806 
> -hsync -vsync
> # Modeline  "800x600"40.00   800  840  968 1056   600  601  605  628 
> +hsync +vsync
> # Modeline  "640x480"25.20   640  656  752  800   480  490  492  525 
> -hsync -vsync
> 
> # Modeline reported as working (via DVI) on a 24" Eizo FlexScan:
> # Modeline "1920x1200"  162.00  1920 1968 2000 2080  1200 1203 1209 1235 
> +HSync -Vsync
> 
> # Modelines implied by Xorg.0.log, but not reported by autoconf, for
> # the HDIT24W (aka IQT 9001, IQT => ImageQuest, www.imagequest.co.kr)
> #+W => wider aspect ratio than (HDIT24W native) 1920x1200
> 
>   Modeline "1920x1200"  154.128 1920 1968 2000 2080  1200 1203 1209 1235 
> +hsync +vsync
> #+W   Modeline "1920x1080"  148.50  1920 2008 2052 2200  1080 1084 1089 1125
> 
> # Widescreen resolutions claimed as supported in Xorg.0.log, but no details 
> given:
> # Modeline "1680x1050"
> # Modeline "1440x900"
> #+W   Modeline "720x400"
> 
> # Other widescreen resolutions of the same aspect ratio as 1920x1200:
> # Modeline "1600x1000"
> # Modeline "1280x800"
> # Modeline "1229x768"
> # Modeline "960x600"
> # Modeline "720x450"
> # Modeline "640x400"
> 
> # Modelines reported by autoconf for the HDIT24W -- these are not widescreen:
> # Modeline "1792x1344"  204.80  1792 1920 2120 2448  1344 1345 1348 1394 
> -hsync +vsync
> # Modeline "1600x1200"  175.50  1600 1664 1856 2160  1200 1201 1204 1250 
> +hsync +vsync
> # Modeline "1600x1200"  162.00  1600 1664 1856 2160  1200 1201 1204 1250 
> +hsync +vsync
> # Modeline "1400x1050"  155.80  1400 1464 1784 1912  1050 1052 1064 1090 
> +hsync +vsync
> # Modeline "1400x1050"  122.00  1400 1488 1640 1880  1050 1052 1064 1082 
> +hsync +vsync
> # Modeline "1280x1024"  135.00  1280 1296 1440 1688  1024 1025 1028 1066 
> +hsync +vsync
> # Modeline "1280x1024"  108.00  1280 1328 1440

Re: question about my new Dell 3010

2012-12-09 Thread james

Are you sure you mean 1920x1280???

I mean:  1280*800, or 1920*1200, those are more normal.  (My older 
portables have the former, my Dell 24" has the latter)


I can believe 1920x1280 might cause problems.


___
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: question about my new Dell 3010

2012-12-09 Thread Gary Kline
> 


Rats:: xvidtune gave me 

"Video modes are not settable on this chip."

how cheap can you get? no, the question is: what chip/video card
do I need that will get me [at least]  1920x1280?


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
  Twenty-six years of service to the Unix community.

___
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: question about my new Dell 3010

2012-12-09 Thread Gary Kline
On Sun, Dec 09, 2012 at 05:24:27AM +0100, Polytropon wrote:
> On Sat, 8 Dec 2012 16:23:31 -0800, Gary Kline wrote:
> > 
> > 
> > 
> > one of the remaining problems --hopefuully the Last-- with my 
> > Dell 3010 quad i5 is that the resolution stops at 5:4.  it's
> > something like 1280x1014 whereas my widescreen Dell needs
> > 1920x1280 or close to that.  do I need to go out and find a
> > videocard?  or is there a way of taking my 6GB of RAM and giving 
> > it to the video?
> 
> There are two factors involved:
> 
> The question of video memory is usually selectable in the
> CMOS setup of the BIOS. Defaults will allocate several (and
> sufficient) MB for common resolutions. However, this is a
> usually automated process that does not involve user action.
> It should "just work"(TM)(R)(C). :-)


Holy Crud =no=.  the 3010 has that screwy bootloader 
UEIF [?] that took me 79 years to get past that.  the box 
just-boot.  but not into widescreen.

actually, I have two optiplix models; the older is
a "Dell dual" and works at widescreen.  I dont know why
or how.


> The question of the support for the current display is handled
> by the GPU driver (usually brought by X itself or an additional
> package, like for nVidia drivers). You can easily obtain what
> resolution your display _natively_ has (in case it's a LCD,
> which I assume), and the driver should automatically initialize
> the display for _that_ display size (because physically, there
> is only that one, in contrast to CRTs that can support different
> display characteristics).


you lost me.  how can I easily obtain the resolution?
FWIW:: im using my KDE switch ... 

   ssh works going out; I get "no route to host" going
   back from this dell dual to "tao" my new quad.  I have 
   been trying for around three hours to get ssh working
   bidirectionally.  nutshell, there is no way I can get
   Perry's or your xorg.con file onto tao wwithout a 
   shit*oad of typing. << censored>>


> In case it does _not_ work automatically, you can always setup
> things using xorg.conf (which you normally do _not_ need). For
> example,
> 
>   Section "Screen"
>   Identifier  "Screen0"
>   Device  "Card0"
>   Monitor "Monitor0"
>   DefaultDepth24
>   SubSection "Display"
>   Viewport0 0
>   Depth   24
>   Visual  "TrueColor"
>   Modes   "1920x1280"
>   EndSubSection
>   EndSection
> 
> would require 1920x1280 to be initialized regardless of what
> the integrated magician might think.
> 
> 
> 
> For dynamic testing, you can use the xrandr command. Issue those
> commands from an X terminal:
> 
>   xrandr --fb 1920x1280
>   xrandr --size 1920x1280


HMMM.  I Just buttoned over: the --size says that the 
1920x1280 isnt found in the modes.

I'll use locate and see where the heck that configuration file is.

...WEll, the xorg.conf is only three lines long.  it's in the 
usual place, /etc/X11 .  and there are a bunch of related files
in /usr/share/X11/* without a "Mode" line anywhere.



> You can use xvidtune (usually _not_ used for LCDs, only for CRTs
> and tuning) to verify.
> 
> In worst case, put those two commands in your X initialization
> file (usually ~/.xinitrc, sometimes ~/.xsession, if not cascaded).
> It's a dirty hack, but it should work. :-)
> 


everything in my to-be desktop is standard.  so is KDE and 
Gnome.  I'll see in xvidtune is there.

thanks for the help.

gary

> 
> 
> 
> -- 
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
  Twenty-six years of service to the Unix community.

___
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: question about my new Dell 3010

2012-12-09 Thread Warren Block

On Sun, 9 Dec 2012, Matthew Seaman wrote:


https://en.wikipedia.org/wiki/File:DVI_Connector_Types.svg

Most DVI monitor cables have a DVI-D dual link plug on them, but
anything matching those patterns is proof positive of DVI.

VGA connectors looks like this:

https://en.wikipedia.org/wiki/File:Vga-cable.jpg

Anyhow, the point is if you're using a DVI connector, X will be able to
query the monitor and find out its preferred resolution etc.
automatically.  Whereas with a VGA connector, it will default to using
one of the standard VGA series of resolutions.


Actually, DDC works on VGA connectors also:

http://en.wikipedia.org/wiki/Display_Data_Channel

These limited resolutions are almost certainly due to the KMS Intel 
driver being needed but the system not being built to support it.  So 
the vesa driver is loaded instead, offering only a few legacy 
resolutions.

___
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: question about my new Dell 3010

2012-12-09 Thread Matthew Seaman
On 09/12/2012 00:23, Gary Kline wrote:

>   one of the remaining problems --hopefuully the Last-- with my 
>   Dell 3010 quad i5 is that the resolution stops at 5:4.  it's
>   something like 1280x1014 whereas my widescreen Dell needs
>   1920x1280 or close to that.  do I need to go out and find a
>   videocard?  or is there a way of taking my 6GB of RAM and giving 
>   it to the video?

Do you have a DVI connector on your current graphics card, or just the
old style VGA connector?  Pretty much all modern widescreen monitors
will have a DVI connector as well as the legacy VGA.

If you don't know what those are, see this page:

https://en.wikipedia.org/wiki/File:DVI_Connector_Types.svg

Most DVI monitor cables have a DVI-D dual link plug on them, but
anything matching those patterns is proof positive of DVI.

VGA connectors looks like this:

https://en.wikipedia.org/wiki/File:Vga-cable.jpg

Anyhow, the point is if you're using a DVI connector, X will be able to
query the monitor and find out its preferred resolution etc.
automatically.  Whereas with a VGA connector, it will default to using
one of the standard VGA series of resolutions.  All monitors will
support some sort of VGA resolution for backwards compatibility --
typically 1024x768@60Hz -- and many will support higher, but all of the
VGA series resolutions are 4:3 aspect ratio which doesn't look very nice
on a widescreen monitor.

There's two ways to fix the problem.

  1) Get a video card with a DVI connector, or at least a DVI-to-DVI
 monitor cable if your card already has that.  Apart from the
 hassle of getting a new video card that will work happily with X,
 this should be pretty painfree.

  2) Edit your Xorg.conf to add a custom mode that matches what your
 monitor expects.  Back in the days of CRTs this was a potentially
 risky thing to do, as configuring the video mode wrongly could
 phsically damage your monitor.  Modern flatscreens however will
 just put up a message saying the input is incompatible.

Working out what the right parameters are to put in the mode definition
is the tricky bit.  You may be able to use xrandr to pull them out (but
if xrandr could do it, then X would do it automatically too...) There
should be documentation that comes with the monitor, or you may find a
kind soul online with the same make and model of monitor who will send
you some xrandr output.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: question about my new Dell 3010

2012-12-08 Thread Warren Block

On Sat, 8 Dec 2012, per...@pluto.rain.com wrote:


Gary Kline  wrote:


one of the remaining problems --hopefuully the Last-- with my
Dell 3010 quad i5 is that the resolution stops at 5:4.  it's
something like 1280x1014 ...


Probably 1280x1024 -- a common size before widescreen.
The largest commonly seen back then was 1600x1200.


... whereas my widescreen Dell needs 1920x1280 or close to that.


Probably 1920x1200.


do I need to go out and find a videocard?  or is there a way of
taking my 6GB of RAM and giving it to the video?


Dunno about currently-supported versions, nor your particular
display hardware, but 1920x1200 works for me on an ancient Dell
Optiplex GX1 with ATI Mach64 under 6.1.  Maybe something in the
(attached) conf and/or log will help.


Core i5 has new Intel graphics, which needs 9.1 or 9-stable for the KMS 
support, a couple of entries in make.conf, and the newer xorg.


http://forums.freebsd.org/showpost.php?p=187947&postcount=3

If you don't do that, xorg will use the vesa driver, which supports only 
a few common resolutions, usually not widescreen ones.

___
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: question about my new Dell 3010

2012-12-08 Thread perryh
Gary Kline  wrote:

> one of the remaining problems --hopefuully the Last-- with my 
> Dell 3010 quad i5 is that the resolution stops at 5:4.  it's
> something like 1280x1014 ...

Probably 1280x1024 -- a common size before widescreen.
The largest commonly seen back then was 1600x1200.

> ... whereas my widescreen Dell needs 1920x1280 or close to that.

Probably 1920x1200.

> do I need to go out and find a videocard?  or is there a way of
> taking my 6GB of RAM and giving it to the video?

Dunno about currently-supported versions, nor your particular
display hardware, but 1920x1200 works for me on an ancient Dell
Optiplex GX1 with ATI Mach64 under 6.1.  Maybe something in the
(attached) conf and/or log will help.
Section "ServerLayout"
Identifier "X.org Configured"
Screen  0  "Screen0" 0 0
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath  "/usr/X11R6/lib/X11/rgb"
ModulePath   "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load  "dbe"
Load  "dri"
Load  "extmod"
Load  "glx"
Load  "record"
Load  "xtrap"
Load  "freetype"
Load  "type1"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver  "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver  "mouse"
Option  "Protocol" "auto"
Option  "Device" "/dev/psm0"
Option  "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
#DisplaySize  520   320 # mm
Identifier   "Monitor0"
VendorName   "IQT"
ModelName"HDIT24W DSUB"
 ### Comment all HorizSync and VertSync values to use DDC:
HorizSync31.0 - 83.0
VertRefresh  59.0 - 76.0
# Modelines that actually worked on the BTC LM-1702, for reference.  The first 
is known
# to also work on the IQT (Hyundai) HDIT24W, but it is stretched in the X 
dimension.
#   Modeline "1280x1024"  108.00  1280 1328 1440 1688  1024 1025 1028 1066 
+hsync +vsync
#   Modeline "1024x768"65.00  1024 1048 1184 1344   768  771  777  806 
-hsync -vsync
#   Modeline  "800x600"40.00   800  840  968 1056   600  601  605  628 
+hsync +vsync
#   Modeline  "640x480"25.20   640  656  752  800   480  490  492  525 
-hsync -vsync

# Modeline reported as working (via DVI) on a 24" Eizo FlexScan:
#   Modeline "1920x1200"  162.00  1920 1968 2000 2080  1200 1203 1209 1235 
+HSync -Vsync

# Modelines implied by Xorg.0.log, but not reported by autoconf, for
# the HDIT24W (aka IQT 9001, IQT => ImageQuest, www.imagequest.co.kr)
#+W => wider aspect ratio than (HDIT24W native) 1920x1200

Modeline "1920x1200"  154.128 1920 1968 2000 2080  1200 1203 1209 1235 
+hsync +vsync
#+W Modeline "1920x1080"  148.50  1920 2008 2052 2200  1080 1084 1089 1125

# Widescreen resolutions claimed as supported in Xorg.0.log, but no details 
given:
#   Modeline "1680x1050"
#   Modeline "1440x900"
#+W Modeline "720x400"

# Other widescreen resolutions of the same aspect ratio as 1920x1200:
#   Modeline "1600x1000"
#   Modeline "1280x800"
#   Modeline "1229x768"
#   Modeline "960x600"
#   Modeline "720x450"
#   Modeline "640x400"

# Modelines reported by autoconf for the HDIT24W -- these are not widescreen:
#   Modeline "1792x1344"  204.80  1792 1920 2120 2448  1344 1345 1348 1394 
-hsync +vsync
#   Modeline "1600x1200"  175.50  1600 1664 1856 2160  1200 1201 1204 1250 
+hsync +vsync
#   Modeline "1600x1200"  162.00  1600 1664 1856 2160  1200 1201 1204 1250 
+hsync +vsync
#   Modeline "1400x1050"  155.80  1400 1464 1784 1912  1050 1052 1064 1090 
+hsync +vsync
#   Modeline "1400x1050"  122.00  1400 1488 1640 1880  1050 1052 1064 1082 
+hsync +vsync
#   Modeline "1280x1024"  135.00  1280 1296 1440 1688  1024 1025 1028 1066 
+hsync +vsync
#   Modeline "1280x1024"  108.00  1280 1328 1440 1688  1024 1025 1028 1066 
+hsync +vsync
#   Modeline "1280x960"  108.00  1280 1376 1488 1800  960 961 964 1000 
+hsync +vsync
#   Modeline "1152x864"  108.00  1152 1216 1344 1600  864 865 868 900 
+hsync +vsync
#   Modeline "1024x768"   78.80  1024 1040 1136 1312  768 769 772 800 
+hsync +vsync
#   Modeline "1024x768"   75.00  1024 1048 1184 1328  768 771 777 806 
-hsync -vsync
#   Modeline "1024x768"   65.00  1024 1048 1184 1344  768 771 777 806 
-hsync -vsync
#   Modeline "896x672"  102.40  896 960 1060 1224  672 672 674 697 
doublescan -hsync +vsync
#   Modeline "832x624"   57.28  832 864 928 1152  624 

Re: question about my new Dell 3010

2012-12-08 Thread Polytropon
On Sat, 8 Dec 2012 16:23:31 -0800, Gary Kline wrote:
> 
> 
> 
>   one of the remaining problems --hopefuully the Last-- with my 
>   Dell 3010 quad i5 is that the resolution stops at 5:4.  it's
>   something like 1280x1014 whereas my widescreen Dell needs
>   1920x1280 or close to that.  do I need to go out and find a
>   videocard?  or is there a way of taking my 6GB of RAM and giving 
>   it to the video?

There are two factors involved:

The question of video memory is usually selectable in the
CMOS setup of the BIOS. Defaults will allocate several (and
sufficient) MB for common resolutions. However, this is a
usually automated process that does not involve user action.
It should "just work"(TM)(R)(C). :-)

The question of the support for the current display is handled
by the GPU driver (usually brought by X itself or an additional
package, like for nVidia drivers). You can easily obtain what
resolution your display _natively_ has (in case it's a LCD,
which I assume), and the driver should automatically initialize
the display for _that_ display size (because physically, there
is only that one, in contrast to CRTs that can support different
display characteristics).

In case it does _not_ work automatically, you can always setup
things using xorg.conf (which you normally do _not_ need). For
example,

Section "Screen"
Identifier  "Screen0"
Device  "Card0"
Monitor "Monitor0"
DefaultDepth24
SubSection "Display"
Viewport0 0
Depth   24
Visual  "TrueColor"
Modes   "1920x1280"
EndSubSection
EndSection

would require 1920x1280 to be initialized regardless of what
the integrated magician might think.



For dynamic testing, you can use the xrandr command. Issue those
commands from an X terminal:

xrandr --fb 1920x1280
xrandr --size 1920x1280

You can use xvidtune (usually _not_ used for LCDs, only for CRTs
and tuning) to verify.

In worst case, put those two commands in your X initialization
file (usually ~/.xinitrc, sometimes ~/.xsession, if not cascaded).
It's a dirty hack, but it should work. :-)




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Question about svn

2012-11-18 Thread pete wright
SOn Sun, Nov 18, 2012 at 5:23 PM, Stephen Montgomery-Smith
 wrote:
> I was looking at http://svnweb.freebsd.org/
>
> What are csrg and socsvn?
>

my best educated guess without taking a look:

csrg == Berkley's Computer Systems Research Group historical(?) code

socsvn == Google Summer of Code FreeBSD related projects.

-pete


-- 
pete wright
www.nycbug.org
@nomadlogicLA
___
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: Question regarding a server with an unsupported old version

2012-10-22 Thread andrew clarke
On Mon 2012-10-22 11:31:36 UTC+0900, Rei Okamoto (okam...@mix-net.co.jp) wrote:

> I want to build the test server as close to the
> actual server as possible, such as considering the
> OS's version 4.11 to be close enough to 4.7, but
> as I try to install PHP4 with a following command,

Like others have said, if at all possible you should at least try to
upgrade to supported versions of FreeBSD & PHP 4.

FreeBSD 7.x should have similar system requirements as 4.7, except for
needing more disk space. Having said that though, support for FreeBSD
7.4 is estimated to end in February 2013, just four months away, and I
can't see any signs on the FreeBSD web site that there is a 7.5
release being planned. So perhaps switching to 8.3 is the more
sensible option if your hardware will allow it.

I should point out that it should be possible to use 'pkg_create -a'
on the existing system to create tarballs of every installed package,
then install FreeBSD 4.7 under VirtualBox, copy the tarballs to the
virtual machine, then install all of them with 'pkg_add *.tgz'.

It may also be possible to use rsync to synchronise the VM's
filesystem with the actual server machine, although I think rsync will
need to be installed on both. Also, sshd will probably need to be
temporarily enabled on the original server if it's not already.

There is also the 'dump' and 'restore' programs in FreeBSD that could
be used for cloning a FreeBSD system over a network, although I'm not
at all familiar with their usage.

Is there any particular reason you went with 4.11? Is it because it
was the last of the 4.x series? (I don't recall offhand.) I vaguely
recall there were some ABI changes over the lifetime of the 4.x series
which meant binaries built for, say, FreeBSD 4.0 would not run under
later versions (4.8 perhaps). I only mention this because you might
encounter problems running binaries built for FreeBSD 4.7 under
FreeBSD 4.11.

Regards
Andrew
___
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: Question regarding a server with an unsupported old version

2012-10-22 Thread Erich Dollansky
Hi,

On Tue, 23 Oct 2012 11:32:15 +0900
Rei Okamoto  wrote:

> Hi Adam, Olivier, Erich, and the rest,
> 
> Thank you for your replies.
> 
> It sounds like the best thing to do is to migrate
> the contents to a server with new versions of all softwares.
> 
this is the ideal solution. But do not forget that it could be possible
to run a supported FreeBSD version on the current hardware.

Erich
___
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: Question regarding a server with an unsupported old version

2012-10-22 Thread Rei Okamoto
Hi Adam, Olivier, Erich, and the rest,

Thank you for your replies.

It sounds like the best thing to do is to migrate
the contents to a server with new versions of all softwares.

I'll make further discussions with my boss about this matter.

Thank you again,
Rei Okamoto


> Hello to all,
> 
> My name is Rei Okamoto posting from Japan.
> 
> I'm very new to FreeBSD and please pardon and caution me
> if anything I post is in any way inappropriate.
> 
> Here's a problem I'm facing right now.
> 
> I started working for a company this month as a
> sole engineerer, given all my tasks with virtually
> no manuals other than IP addresses, IDs and PWs.
> (Dangerous, but not such a rare case in this country)
> 
> One of the clients is running the web site using
> FreeBSD 4.7.
> 
> Although it is surely the best to renew the server to
> newest machine and OS, the client is reluctant to do so
> because of money.
> 
> So a long story short, because I need to do some testing,
> I've installed FreeBSD 4.11 to the VirtualBox as a
> test server in my local PC and got the network connected.
> 
> I want to build the test server as close to the
> actual server as possible, such as considering the
> OS's version 4.11 to be close enough to 4.7, but
> as I try to install PHP4 with a following command,
> 
> pkg_add -r php4-4.3.6.tgz
> 
> I get an error message below.
> 
> Error: FTP Unable to get 
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.11-release/Latest/php4-4.3.6.tgz:
>  File unavailable (e.g., file not found, no access)
> 
> So you probably can figure out the rest of the story,
> it is all too old to make a near duplication of the server.
> 
> Is there any suggestion on what I can do
> other than convincing the client to renew the server?
> (which I am doing but already been politely refused)
> 
> Pardon me for the long message,
> and thank you in advance for all replies.
> 
> 
> Thank you,
> Rei Okamoto
___
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: Question regarding a server with an unsupported old version

2012-10-21 Thread Adam Vande More
On Sun, Oct 21, 2012 at 9:31 PM, Rei Okamoto  wrote:

> Hello to all,
>
> My name is Rei Okamoto posting from Japan.
>
> I'm very new to FreeBSD and please pardon and caution me
> if anything I post is in any way inappropriate.
>
> Here's a problem I'm facing right now.
>
> I started working for a company this month as a
> sole engineerer, given all my tasks with virtually
> no manuals other than IP addresses, IDs and PWs.
> (Dangerous, but not such a rare case in this country)
>
> One of the clients is running the web site using
> FreeBSD 4.7.
>
> Although it is surely the best to renew the server to
> newest machine and OS, the client is reluctant to do so
> because of money.
>
> So a long story short, because I need to do some testing,
> I've installed FreeBSD 4.11 to the VirtualBox as a
> test server in my local PC and got the network connected.
>
> I want to build the test server as close to the
> actual server as possible, such as considering the
> OS's version 4.11 to be close enough to 4.7, but
> as I try to install PHP4 with a following command,
>
> pkg_add -r php4-4.3.6.tgz
>
> I get an error message below.
>
> Error: FTP Unable to get
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.11-release/Latest/php4-4.3.6.tgz:
> File unavailable (e.g., file not found, no access)
>
> So you probably can figure out the rest of the story,
> it is all too old to make a near duplication of the server.
>
> Is there any suggestion on what I can do
> other than convincing the client to renew the server?
> (which I am doing but already been politely refused)
>
> Pardon me for the long message,
> and thank you in advance for all replies.
>

You can find an archive of packages released with FreeBSD 4.11 here:
ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/4.11-RELEASE/packages/All/

However, you'll find the packages are different than those released with
your original version.  A move from 4.7 to 4.11 doesn't really gain you
much.  Better off to start a migration strategy or leave it alone.

-- 
Adam Vande More
___
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: Question regarding a server with an unsupported old version

2012-10-21 Thread Olivier Nicole
Dear Rei,

> One of the clients is running the web site using
> FreeBSD 4.7.
>[...]
> pkg_add -r php4-4.3.6.tgz
>
> I get an error message below.
>
> Error: FTP Unable to get 
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.11-release/Latest/php4-4.3.6.tgz:
>  File unavailable (e.g., file not found, no access)

I believe that PHP4 (and most of the ports used in the server of your
client) are not supported anymore.

You would be able to download it from somewhere, there must exist
archives, but you'd have to build everything by hand.

> Is there any suggestion on what I can do
> other than convincing the client to renew the server?
> (which I am doing but already been politely refused)

1) build a new system, with new Apache, new PHP, etc. and port the web
site of your client to the new system. Let the client test and approve
it, an install that on his old hardware.

2) get your boss approve the fact that the server of the client is ou
of date and cannot be maintened anymore. Then you charge the client
for colocation (electricity and internet) but the client is
responsible for the maintenance.

Best regards,

Olivier
___
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: Question regarding a server with an unsupported old version

2012-10-21 Thread Erich Dollansky
Hi,

On Mon, 22 Oct 2012 11:31:36 +0900
Rei Okamoto  wrote:

> One of the clients is running the web site using
> FreeBSD 4.7.

this is not a real fresh installation.
> 
> Although it is surely the best to renew the server to
> newest machine and OS, the client is reluctant to do so
> because of money.

There is still the option to use a supported version of FreeBSD. You
can have a try with 7.4. Some hardware support was taken out with 8.
But if 8 works, take 8.3.
> 
> as I try to install PHP4 with a following command,

I doubt that you will get this anywhere anymore.
> 
> Is there any suggestion on what I can do
> other than convincing the client to renew the server?
> (which I am doing but already been politely refused)
> 
Just try a newer FreeBSD version. 7.4 is currently still supported.

Of course, it also could be that 9.1 is running on this hardware. This
would be perfect. But I do not know if you can get the client's web
sites running on a current PHP version.

Erich
___
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: Question about find - excluding directories

2012-10-14 Thread Matthew Seaman
On 15/10/2012 01:32, Paul Schmehl wrote:
> I want to use find to locate files that don't belong to a certain user
> but should belong to that user.  But there are subdirectories I want to
> exclude.
> 
> I have tried using this, but it doesn't work:
> 
> find /path/to/dir -type d ! -uid num \( -type d ! -name dirname -prune \)
> 
> If I leave off the part in parentheses, it finds all the files I'm
> looking for but also files in the subdirs I'm not interested in.
> 
> If I add the parentheses, it doesn't find any files at all.
> 
> This is FreeBSD 8.3 RELEASE.
> 
> So how can I find these files without descending into directories I'm
> not interested in?

Completely untested, but the usual thing with find(1) is down to the way
it evaluates its arguments from left to right in a lazy fashion.  So, if
it has enough to know it is going to generate a true or false result
after '-type d ! -uid num', it won't then go on to evaluate the rest of
the line, meaning it will never see the effects of '-prune'.

If you want to have exceptions, it is generally better to put them
earlier in the command line:

find /path/to/dir \( -type d ! -name dirname -prune \) -type d ! -uid num

Or you could use '-path' to match any path containing 'dirname' without
the bracketed subexpression:

find /path/to/dir -type d ! -path 'dirname*' ! -uid

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: question for ipfw2 experts

2012-09-24 Thread Michael Sierchio
On Mon, Sep 24, 2012 at 12:35 PM, Darrel  wrote:

> Can someone please send an exmaple of how to properly use tables?

Quick, trivial example - this doesn't help you understand tableargs,
this is just efficiently to handle a very large list of sparse nets.

PEERS="/etc/ipfw/permitted_hosts.txt"
cat $PEERS | awk '/^[1-9][0-9\.][0-9\.]*/ { print "ipfw table 1 add", $1 }' | sh

$FW add 01000 check-state

[ a bunch of rules ]

$FW add 05000 allow tcp from table\(1\) to me 7514 in recv $OUTSIDE_IF
setup keep-state
$FW add 06000 deny tcp from any to me in recv $OUTSIDE_IF

Now, if you want to atomically change tables without altering
instantiated dynamic rules, you can use separate tables and swap
rulesets.  You can use tableargs (the second parameter when adding an
entry to the table) as a rule number to skipto, or as a tag in
logging, etc.
___
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: Question?

2012-08-10 Thread Polytropon
On Fri, 10 Aug 2012 11:49:17 +0300, Hamed M wrote:
> Can I run PS3 games on the system FREEBSD? 

I don't think this is possible first due to licensing restrictions,
and I also assume there is no PS3 emulator available in The Ports
Collection. But check it out yourself. So even if a way of PS3
emulation existed, I'm not sure you're legally allowed to run
PS3 games outside of a real Sony PS3.

Anyway, I'm not a typical gamer, so my short statement is ready
to be corrected by someone who knows better. :-)


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: question

2012-07-23 Thread Per olof Ljungmark

On 07/23/12 21:21, Andy Recker wrote:

do u answer questions about y computer aftwer trying to install your program



-- http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-questions/
___
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: Question about install from ports

2012-07-23 Thread Daniel Bye
On Mon, Jul 23, 2012 at 08:08:47AM -0700, Mr U wrote:
> thank you dan
> 
> but how i can use RANDOMIZE_MASTER_SITES temporary?
> i tried google but i didn't find any info about this!!!

It's just a shell variable, so you can temporarily set it by defining it on
the command line for which you want it to apply. In this case, you'd want to
go back to the OpenBox directory, and type

 RANDOMIZE_MASTER_SITES=1 make all install clean

(That's the number one after the `='. It doesn't really matter what value it
is set to - the important thing is that it's set)

For this one command, RANDOMIZE_MASTER_SITES is in effect.

Looking at this again, it seems I got myself confused as to where you should
download the distribution file. I think your system is trying to download a
plain tbz file, and not an RPM. If that's the case, the downloaded file will
actually go in /usr/ports/distfiles. The fact you mentioned fr.rpmfind.net
was enough to send me off down the wrong path...

Sorry for making things more complicated than they needed to be!

Dan

> 
> 
> 
> 
> - Original Message -
> From: Daniel Bye 
> To: "freebsd-questions@freebsd.org" 
> Cc: 
> Sent: Monday, July 23, 2012 6:29 PM
> Subject: Re: Question about install from ports
> 
> On Mon, Jul 23, 2012 at 03:45:35AM -0700, Mr U wrote:
> > hi all
> > 
> > I want to install openbox from ports collection.
> > freebsd attempting to download libxml2 from fr.rpmfind.net but 
> > I don't know why connection speed slow down after a while and finally
> > failed.
> > 
> > is it possible to change download location (mirror) or is it possible to 
> > download file manually 
> > and add file in openbox dir?
> 
> If you can find the file on a faster site, you can download it and put it in
> /usr/ports/distfiles/rpm/i386/fedora/10/ and restart the OpenBox build, or
> you can put these two settings in /etc/make.conf:
> 
> MASTER_SITE_BACKUP?=    \
>         ftp://ftp.uk.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
> 
> MASTER_SITE_OVERRIDE?=  ${MASTER_SITE_BACKUP}
> 
> 
> Change the "uk" to point to a site near to your geographical location. With
> these lines, your ports system will first look for distfiles on the FreeBSD
> mirror site, and will only go to the MASTER_SITE in a port's Makefile if the
> FreeBSD site doesn't have the required file.  This is sometimes faster than
> going to the MASTER_SITE first.
> 
> Or, as RW suggested, try setting RANDOMIZE_MASTER_SITES.
> 
> Dan
> 
> -- 
> Daniel Bye
>                                                                      _
>                                               ASCII ribbon campaign ( )
>                                          - against HTML, vCards and  X
>                                 - proprietary attachments in e-mail / \
> 
> 

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpBLKGxZjMLX.pgp
Description: PGP signature


Re: Question about install from ports

2012-07-23 Thread Polytropon
On Mon, 23 Jul 2012 04:00:37 -0700 (PDT), Mr U wrote:
> is it possible to change download location (mirror) or is it possible to 
> download file manually 
> and add file in openbox dir?

It is possible.

First check the port's Makefile for where to obtain the required
files from. There are typically more than one source listed. If
one fails, try the next one.

Then place the file in /usr/ports/distfiles and restart the build.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Question about install from ports

2012-07-23 Thread Daniel Bye
On Mon, Jul 23, 2012 at 03:45:35AM -0700, Mr U wrote:
> hi all
> 
> I want to install openbox from ports collection.
> freebsd attempting to download libxml2 from fr.rpmfind.net but 
> I don't know why connection speed slow down after a while and finally
> failed.
> 
> is it possible to change download location (mirror) or is it possible to 
> download file manually 
> and add file in openbox dir?

If you can find the file on a faster site, you can download it and put it in
 /usr/ports/distfiles/rpm/i386/fedora/10/ and restart the OpenBox build, or
 you can put these two settings in /etc/make.conf:

MASTER_SITE_BACKUP?=\
ftp://ftp.uk.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/

MASTER_SITE_OVERRIDE?=  ${MASTER_SITE_BACKUP}


Change the "uk" to point to a site near to your geographical location. With
these lines, your ports system will first look for distfiles on the FreeBSD
mirror site, and will only go to the MASTER_SITE in a port's Makefile if the
FreeBSD site doesn't have the required file.  This is sometimes faster than
going to the MASTER_SITE first.

Or, as RW suggested, try setting RANDOMIZE_MASTER_SITES.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpbbi9WCa4Im.pgp
Description: PGP signature


Re: Question about install from ports

2012-07-23 Thread RW
On Mon, 23 Jul 2012 03:45:35 -0700 (PDT)
Mr U wrote:

> hi all
> 
> I want to install openbox from ports collection.
> freebsd attempting to download libxml2 from fr.rpmfind.net but 
> I don't know why connection speed slow down after a while and finally
> failed.
> 
> is it possible to change download location (mirror) or is it possible
> to download file manually and add file in openbox dir?
> 


Temporarily set RANDOMIZE_MASTER_SITES 

___
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: Question about gmirror priorities

2012-07-06 Thread Adam Vande More
On Fri, Jul 6, 2012 at 8:10 AM, Michael Ross  wrote:

> Hi,
>
> the manpage says for ``gmirror label'':
>
> The order of components is important,
> because a component's priority is based on its position
> (starting from 0 to 255).
>
>
> so I would expect to have different priorities for the components,
> yet both are listed with a priority of 0:
>

I would expect components to have a different priority if I assigned them
one.  Otherwise I would assume they have the default priority.  I don't
know if makes it makes any difference for the algo you are running anyways.

-- 
Adam Vande More
___
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: Question about missing posix shared mutex

2012-06-25 Thread Michael Powell
Daniel Ylitalo wrote:

> Hi guys!
> 
> According to the sphinxsearch dev-team freebsd does not support posix
> pthread shared mutex but later on i found this post that gave some
> pointers that it might been implemented into freebsd 9:
> http://freebsd.1045724.n5.nabble.com/What-is-the-status-of-thread-process-
shared-synchronization-td4224458.html
> 
> However 9.0-RELEASE doesnt have it so i tried out 9-STABLE but it isnt
> in there either.
> 
> There is also a pretty long bugthread on sphinxsearch's bugtracker about
> it: http://sphinxsearch.com/bugs/view.php?id=1041
> 
> Basically my question is if there is work being done on this and if we
> will see it in 9.1? Or should i abandon freebsd for our sphinxhosts? :(
> 

Sorry not to answer your question, but have you tried installing any of the 
following from the ports system to see if they work?

http://www.freebsd.org/cgi/ports.cgi?query=sphinx&stype=all

I do not use this and have no experience with it, but if these ports are 
indeed broken it might be nice for the port maintainer to know about. If 
they work, then why fuss over theoretics?

-Mike



___
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: question about prblem with raid 1 for freeBSD

2012-06-22 Thread Matthew Seaman
On 22/06/2012 10:11, dude golden wrote:
> INTEL
> 1x Quad-Core i5-2500 3.3GHz, 6M Cache
> 16GB DDR3
> 2x 500GB SATAII

> then ask from my COLOCATION to install FreeBSD 8.2 or 8.3 with RAID
> 1, after many times of fail in installation from colocation they said
> that we have problem with RAID 1.we suggest them to play with
> different kind of RAID like RAID 5 and they said as our requested
> server only have 2 HDD, its not possible to set up RAID 5.

Correct.  RAID5 requires at least 3 drives. The only way to have
resilience against disk failure with just two drives is to use RAID1
(mirroring).

How exactly are your colleagues attempting to set up RAID1.  There are
several different ways of doing it, but these are the most popular:

   * Using the built-in ATAPI RAID provided by many motherboards

   * gmirror

   * ZFS

ATAPI RAID is perhaps the least effective, and may require downtime in
order to rebuild the system after a disk failure.  I suspect this is
what is causing your colleagues problems.

For setting up a gmirror RAID see this article:

  http://onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html

(That will work fine with 8.2 or older and the old sysinstall; needs to
be adapted if using the new bsdinstall with gpart)

For setting up a ZFS mirror, see:

  http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror

or I wrote a similar piece assuming use of bsdinstall:

  http://www.infracaninophile.co.uk/articles/install-on-zfs/

Both of the gmirror or ZFS procedures involve going beyond what the
installer provides and doing at least part of the work from the command
line.  If that is too scary to contemplate, then try using the PC-BSD
installer to install FreeBSD -- it lets you set up mirrors or ZFS from a
menu system, and can install plain FreeBSD as well as PC-BSD:

  http://www.pcbsd.org/index.php?option=com_zoo&view=item&Itemid=98

> now they said us that the only way for having backup of DATA in this
> condition is set up a scheduled task to put back up of data in the
> second HDD .

Well, this is really unsatisfactory and your colleagues should be ashamed.

First of all, RAID1 is not *backup*.  If you accidentally delete a file,
it will be removed from both of the mirrored drives.  The thing that
RAID1 gets you is resilience to disk failure: one of your drives going
'pop' will not result in the system crashing or any service interruption.

Backup of the system should be arranged through some other means: there
are many programs available to do the job in the base system or the
ports -- personally I like tarsnap, which will backup your data to the
cloud (Amazon flavoured cloud, that is) for a very reasonable rate.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey





signature.asc
Description: OpenPGP digital signature


Re: question about prblem with raid 1 for freeBSD

2012-06-22 Thread Damien Fleuriot
On 6/22/12 11:11 AM, dude golden wrote:
> HI there,
> 
> hope my email find you well, i recently order a server with below 
> configuration 
> 
> INTEL
> 1x Quad-Core i5-2500 3.3GHz, 6M Cache
> 16GB DDR3
> 2x 500GB SATAII
> 
> then ask from my COLOCATION to install FreeBSD 8.2 or 8.3 with RAID 1, after 
> many times of fail in installation from colocation they said that we have 
> problem with RAID 1.we suggest them to play with different kind of RAID like 
> RAID 5 and they said as our requested server only have 2 HDD, its not 
> possible to set up RAID 5.
> 
> now they said us that the only way for having backup of DATA in this 
> condition is set up a scheduled task to put back up of data in the second HDD 
> .
> 
> 
> 
> now i really need to know if there is a only way for having data back up in 
> this condition or you have better idea according to your experience.also if 
> its the only way , would it be a good level of data security ?
> 
> 
> looking forward to hear from your side soon.
> 
> Regards,
> 
> Smartelcom Team  


Hi,


Your colleagues are correct about the RAID levels, you can only do RAID5
with a minimum of 3 disks.

Your available options with 2 disks are JBOD, RAID0 or RAID1.

You obviously want RAID1.



How have they tried to install the server ?

I've had no problems ever installing 8.2 or 8.3 as a RAID using either
gmirror, or hardware RAID.

Does the server have a hardware RAID controller or are you trying
software RAID ?

Do you have remote console access to the server ?

___
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: Question about GEOM_ELI` root partition automount

2012-06-19 Thread Wojciech Puchar

The problem need to solve:
Need have end system, when keyfile when boot will be created automatically, 
and erased securelly just after root crypto` partition mounts (by dd with 
of=keyfile, for example)

That need to do because freebsd have remote hosting.

Needs:
To make key not (at least EASELY!) catched by unautorised personnel, and 
noone cat pass password there after reboot or power fail/restore cases.


Maby you can give me tip, what pard of src (and maby how, maby /boot/loader 
src) need to change?


how do you want to enter that key?

i would make system bootable and ssh-able but with secure data unmounted 
and very small malloc based md device created. then you upload keyfile to 
it, run geli to attach encrypted device, overwrite md device and destroy 
md device.


if i understand correctly.
___
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: Question about FreeBSD for IA-64 software

2012-06-09 Thread Julian H. Stacey
Hi,
Reference:
> From: Denis Guzanov  
> Date: Sat, 9 Jun 2012 15:45:54 +0400 
> Message-id:   
>  

Denis Guzanov wrote:
> Dear FreeBSD Team,
> 
> Firstly I would like to say you Big thanks for your really good job and the
> best system for us, small IT staff.
> 
> Second, I would like to ask you about some problem with FreeBSD source.
> 
> I've downloaded .iso Image from this link:
> ftp://ftp.freebsd.org/pub/FreeBSD/releases/ia64/ia64/ISO-IMAGES/9.0/following
> iso file: FreeBSD-9.0-RELEASE-ia64-release.iso

did you check the MD5 ?

> And when I tried to install it I have nothing

You'll need to be more specific.

> I did it many times, but
> have no result. When I've downloaded 8.3 version Installation was completed
> successfully.
> 
> Dear FreeBSD Team, could you, please, check your .iso file for IA-64
> systems or maybe consult me what I need to do?
> 
> 
> Thanks and Best regards,
> Denis.
> ___
> 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"
> 


Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Reply below not above, cumulative like a play script, & indent with "> ".
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
Mail from @yahoo dumped @berklix.  http://berklix.org/yahoo/
___
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: Question about FreeBSD for IA-64 software

2012-06-09 Thread Mehmet Erol Sanliturk
On Sat, Jun 9, 2012 at 4:45 AM, Denis Guzanov  wrote:

> Dear FreeBSD Team,
>
> Firstly I would like to say you Big thanks for your really good job and the
> best system for us, small IT staff.
>
> Second, I would like to ask you about some problem with FreeBSD source.
>
> I've downloaded .iso Image from this link:
>
> ftp://ftp.freebsd.org/pub/FreeBSD/releases/ia64/ia64/ISO-IMAGES/9.0/following
> .iso file: FreeBSD-9.0-RELEASE-ia64-release.iso
>
> And when I tried to install it I have nothing I did it many times, but
> have no result. When I've downloaded 8.3 version Installation was completed
> successfully.
>
> Dear FreeBSD Team, could you, please, check your .iso file for IA-64
> systems or maybe consult me what I need to do?
>
>
> Thanks and Best regards,
> Denis.
>



>From your question , it is not possible to understand which 8.3 version is
used .

It is very unlikely that 9.0 fails completely but 8.3 succeeds completely .


ia64 is for Itanium 64 processor ,
amd64 is Intel and AMD 64-bit capable desktop or notebook processors  .

They are different processors , and one can not execute code for the other .

Thank you very much .

Mehmet Erol Sanliturk
___
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: question on SYN_SENT

2012-06-04 Thread Chad Leigh Shire.Net LLC

On May 11, 2012, at 6:06 PM, Robert Bonomi wrote:
> 
> 'Should not' does not mean 'is not'. and unfortunately, it -is- attempting
> to "go out".
> 
> There are at least a couple of possible explanations, none of them "good".
>  1) the jail is attempting a DoS (or participating in  DDoS) against an
> Israeli _government_ network/machine.
>  2) the jail is 'owned' by a botnet, and is trying to 'phone home' for
> instructions.

Sorry for the delay in response.  Did not mean to ignore this.  Was busy 
figuring out and correcting this (and then the other normal day to day stuff 
that comes up).

Yes, it looks like a customer's JBOSS installation had been hacked.  It was 
running in its own jail with RO mounting of /usr (except /usr/local) and /bin 
/sbin and other system directories.  It was basically scanning for more open 
JBOSS stuff.  The attack had just barely happened (the server had just been 
installed).  I disabled the JBOSS and cleaned everything up and scanned the 
jail for problem files etc.  Customer fixed the JBOSS vulnerability (well known 
one) and decided to leave it off for now.

Thanks for all the help on this

Chad


--

___
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: question about milter software

2012-05-25 Thread Wojciech Puchar

I guess it's pretty subjective, which is how I should have originally
prefaced my statement. I used sendmail for a long time, and always
hated working with m4 or direct sendmail configuration files.


well i just used README file and sometimes google.


For me,
Postfix is so much easier, but to each his own.


it's mostly personal preferences. both are rather configurable, just 
different way.



___
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: question about milter software

2012-05-25 Thread Patrick
On Fri, May 25, 2012 at 1:21 PM, Wojciech Puchar
 wrote:
>> I think you'll find Postfix to be much more modern and easy to work
>> with for that kind of message rewriting.
>
>
> you are actually wrong in that statement. In spite of hype that postscript
> started with, i am still using sendmail because it is actually easiest if
> you learn it.

I guess it's pretty subjective, which is how I should have originally
prefaced my statement. I used sendmail for a long time, and always
hated working with m4 or direct sendmail configuration files. For me,
Postfix is so much easier, but to each his own.

For your immediate need, I'd look at
http://www.ledge.co.za/software/disclaimermilter/ or MIMEDefang
(http://www.mimedefang.org/) which appears to be able to add
disclaimers.

Patrick
___
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: question about milter software

2012-05-25 Thread Derek Ragona

At 08:21 AM 5/25/2012, Wojciech Puchar wrote:
Does anyone know milter software (or maybe anything else) to add to 
sendmail that can rewrite outgoing mail and add HTML footer automatically?


Please do not tell me about how stupid HTML mail is at all - i know it, it 
is not my idea.


thanks



I have used milter with sendmail.  You can add an outgoing email footer. If 
you need more information, email me directly.


-Derek

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

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


Re: question about milter software

2012-05-25 Thread Wojciech Puchar

I think you'll find Postfix to be much more modern and easy to work
with for that kind of message rewriting.


you are actually wrong in that statement. In spite of hype that 
postscript started with, i am still using sendmail because it is actually 
easiest if you learn it.




But what you're looking for is pretty complicated when you start
having to deal with multipart messages; the messages have to be


this is unfortunately true, because i could quickly do myself a filter 
that would trivially append footer, but it will not work.


That's the reason of my question - IF such (quite complex) software is 
already written.

___
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: question about milter software

2012-05-25 Thread Patrick
I think you'll find Postfix to be much more modern and easy to work
with for that kind of message rewriting.

But what you're looking for is pretty complicated when you start
having to deal with multipart messages; the messages have to be
completely processed and separated into respective parts, and then
once the rich part is found, you've got to parse the HTML and insert
the footer into the right spot, and then recompile the message. And if
the message is plain text only, you can't insert HTML and have it be
displayed as such. In short, I doubt you'll have much success in doing
this well. It would be better to configure this in the email client
and lock that down somehow.

Patrick


On Fri, May 25, 2012 at 6:21 AM, Wojciech Puchar
 wrote:
> Does anyone know milter software (or maybe anything else) to add to sendmail
> that can rewrite outgoing mail and add HTML footer automatically?
>
> Please do not tell me about how stupid HTML mail is at all - i know it, it
> is not my idea.
>
> 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: question on SYN_SENT

2012-05-11 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Fri May 11 17:19:29 2012
> From: "Chad Leigh Shire.Net LLC" 
> Date: Fri, 11 May 2012 16:15:48 -0600
> To: Chuck Swiger 
> Cc: FreeBSD Mailing List 
> Subject: Re: question on SYN_SENT
>
>
> On May 11, 2012, at 4:08 PM, Chuck Swiger wrote:
>
> > On May 11, 2012, at 2:09 PM, Chad Leigh Shire.Net LLC wrote:
> >> it is my understanding that SYN_SENT is when MY SIDE sends out a reques
> >> t and is awaiting a reply?
> > 
> > That's right.
> > 
> >> One of the jails we run for a customer had hundreds (if not thousands) o
> >> f attempts to connect from the 147. address you see below. 

Correction.  As Chuck pointed out it is your box attempting to connect *TO*
that address.

> >>  It was exha
> >> usting resources so that new tcp connections could not be made until som
> >> e closed.
> > 
> > You have/had your jail opening connections to the webserver at IP 147.237
> > .76.155, not that IP trying to connect to you.
> > 
> >> I added that address to a "pf" block statement to stop it but now we get
> >>  a rolling connections in a "netstat -a" as show below (host. being a ge
> >> neric name used in place of actual host on our side).   I am wondering i
> >> f this shows something on our side trying to connect out?  That is what 
> >> it appears to me to be, which does not make sense.
> >> 
> >> 
> >> tcp4   0  0 host.52562 147.237.76.155.httpSYN_SENT
> >> tcp4   0  0 host.52561 147.237.76.155.httpSYN_SENT
> > 
> > Yes, your side is trying to connect out.
> > Unless you know better, it seems reasonable to gather that it's doing a D
> > oS attack against:
>
> Hi Chuck!
>
> Thanks.  I am investigating as this side should not be going out at all, bu
> t the SYN_SENT made me think it was.
>

'Should not' does not mean 'is not'. and unfortunately, it -is- attempting
to "go out".

There are at least a couple of possible explanations, none of them "good".
  1) the jail is attempting a DoS (or participating in  DDoS) against an
 Israeli _government_ network/machine.
  2) the jail is 'owned' by a botnet, and is trying to 'phone home' for
 instructions.

The webserver on the IP address listed has -extremely- 'suspicious' content,
to wit;
html>
body>
script>
document.cookie='fff=ee0333b9fff_ee0333b9; path=/';
window.location.href=window.location.href;
/script>
/body>
/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: question on SYN_SENT

2012-05-11 Thread Chuck Swiger
On May 11, 2012, at 2:09 PM, Chad Leigh Shire.Net LLC wrote:
> it is my understanding that SYN_SENT is when MY SIDE sends out a request and 
> is awaiting a reply?

That's right.

> One of the jails we run for a customer had hundreds (if not thousands) of 
> attempts to connect from the 147. address you see below.   It was exhausting 
> resources so that new tcp connections could not be made until some closed.

You have/had your jail opening connections to the webserver at IP 
147.237.76.155, not that IP trying to connect to you.

> I added that address to a "pf" block statement to stop it but now we get a 
> rolling connections in a "netstat -a" as show below (host. being a generic 
> name used in place of actual host on our side).   I am wondering if this 
> shows something on our side trying to connect out?  That is what it appears 
> to me to be, which does not make sense.
> 
> 
> tcp4   0  0 host.52562 147.237.76.155.httpSYN_SENT
> tcp4   0  0 host.52561 147.237.76.155.httpSYN_SENT

Yes, your side is trying to connect out.
Unless you know better, it seems reasonable to gather that it's doing a DoS 
attack against:

% whois 147.237.76.155
[ ... ]
inetnum:  147.237.0.0 - 147.237.255.255
netname:  IL-GOVT-NET
descr:Israeli Government Network
country:  IL
admin-c:  AT979-RIPE
tech-c:   TT441-RIPE
status:   ASSIGNED PI
mnt-by:   GOV-IL-DNS
mnt-lower:GOV-IL-DNS
mnt-routes:   AS8867-MNT { ANY }
mnt-routes:   AS9116-MNT { 147.237.232.0/24^24-24 }
source:   RIPE # Filtered

person: Admin Tehila
address:Israel Ministry Of Finance
address:1 Netanel Lorech st
address:Jerusalem  Israel
phone:  +972 2 6664666
fax-no: +972 2 6664650
remarks:For ABUSE and security issues please contact
remarks:email: ab...@tehila.gov.il
remarks:or contact CERT.gov.il at rep...@cert.gov.il
nic-hdl:AT979-RIPE
source: RIPE # Filtered

Regards,
-- 
-Chuck

___
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: question on SYN_SENT

2012-05-11 Thread Chad Leigh Shire.Net LLC

On May 11, 2012, at 4:08 PM, Chuck Swiger wrote:

> On May 11, 2012, at 2:09 PM, Chad Leigh Shire.Net LLC wrote:
>> it is my understanding that SYN_SENT is when MY SIDE sends out a request and 
>> is awaiting a reply?
> 
> That's right.
> 
>> One of the jails we run for a customer had hundreds (if not thousands) of 
>> attempts to connect from the 147. address you see below.   It was exhausting 
>> resources so that new tcp connections could not be made until some closed.
> 
> You have/had your jail opening connections to the webserver at IP 
> 147.237.76.155, not that IP trying to connect to you.
> 
>> I added that address to a "pf" block statement to stop it but now we get a 
>> rolling connections in a "netstat -a" as show below (host. being a generic 
>> name used in place of actual host on our side).   I am wondering if this 
>> shows something on our side trying to connect out?  That is what it appears 
>> to me to be, which does not make sense.
>> 
>> 
>> tcp4   0  0 host.52562 147.237.76.155.httpSYN_SENT
>> tcp4   0  0 host.52561 147.237.76.155.httpSYN_SENT
> 
> Yes, your side is trying to connect out.
> Unless you know better, it seems reasonable to gather that it's doing a DoS 
> attack against:

Hi Chuck!

Thanks.  I am investigating as this side should not be going out at all, but 
the SYN_SENT made me think it was.

Thanks
Chad

> 
> % whois 147.237.76.155
> [ ... ]
> inetnum:  147.237.0.0 - 147.237.255.255
> netname:  IL-GOVT-NET
> descr:Israeli Government Network
> country:  IL
> admin-c:  AT979-RIPE
> tech-c:   TT441-RIPE
> status:   ASSIGNED PI
> mnt-by:   GOV-IL-DNS
> mnt-lower:GOV-IL-DNS
> mnt-routes:   AS8867-MNT { ANY }
> mnt-routes:   AS9116-MNT { 147.237.232.0/24^24-24 }
> source:   RIPE # Filtered
> 
> person: Admin Tehila
> address:Israel Ministry Of Finance
> address:1 Netanel Lorech st
> address:Jerusalem  Israel
> phone:  +972 2 6664666
> fax-no: +972 2 6664650
> remarks:For ABUSE and security issues please contact
> remarks:email: ab...@tehila.gov.il
> remarks:or contact CERT.gov.il at rep...@cert.gov.il
> nic-hdl:AT979-RIPE
> source: RIPE # Filtered
> 
> Regards,
> -- 
> -Chuck
> 

___
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: question regarding geom labels

2012-04-06 Thread Alexander Best
On Fri Mar 30 12, Warren Block wrote:
> On Fri, 30 Mar 2012, Alexander Best wrote:
> 
> >i have a question regarding a label for a swap partition. when should i do 
> >the
> >labeling? after or before creating the partition scheme?
> >
> >when i label before creating the partition scheme, likes this:
> >
> >glabel label -v swap /dev/da0
> >gpart create -s GPT /dev/da0
> >
> >i get the following warning:
> >
> >GEOM: da1: the secondary GPT header is not in the last LBA.
> >
> >which is obvious, because the label is being written into the last LBA and 
> >thus
> >the backup GPT header gets written into the last-1 LBA.
> 
> Right.  Don't do that, the GPT backup header needs to be at the end of 
> the physical device.  If you're using that whole disk for swap, there's 
> no need for a partition anyway.
> 
> >if i create the partitioning scheme before labeling the device, like this:
> >
> >gpart create -s GPT /dev/da0
> >glabel label -v swap /dev/da0
> >
> >or
> >
> >gpart create -s GPT /dev/da0
> >gpart add -t freebsd-swap /dev/da0
> >glabel label -v swap /dev/da0p1
> >
> >the label gets written into da0 or da0p1 and is at constant risk of being
> >overwritten by userdata.
> 
> No.  The swap device entered in /etc/fstab would be /dev/label/swap, 
> which is one block smaller than da0p1.  That's the last-block metadata, 
> it's safe.

thanks for the info. :)

> 
> But if the whole disk is for swap, skip the partitioning entirely.
___
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: question regarding geom labels

2012-03-30 Thread Warren Block

On Fri, 30 Mar 2012, Alexander Best wrote:


i have a question regarding a label for a swap partition. when should i do the
labeling? after or before creating the partition scheme?

when i label before creating the partition scheme, likes this:

glabel label -v swap /dev/da0
gpart create -s GPT /dev/da0

i get the following warning:

GEOM: da1: the secondary GPT header is not in the last LBA.

which is obvious, because the label is being written into the last LBA and thus
the backup GPT header gets written into the last-1 LBA.


Right.  Don't do that, the GPT backup header needs to be at the end of 
the physical device.  If you're using that whole disk for swap, there's 
no need for a partition anyway.



if i create the partitioning scheme before labeling the device, like this:

gpart create -s GPT /dev/da0
glabel label -v swap /dev/da0

or

gpart create -s GPT /dev/da0
gpart add -t freebsd-swap /dev/da0
glabel label -v swap /dev/da0p1

the label gets written into da0 or da0p1 and is at constant risk of being
overwritten by userdata.


No.  The swap device entered in /etc/fstab would be /dev/label/swap, 
which is one block smaller than da0p1.  That's the last-block metadata, 
it's safe.


But if the whole disk is for swap, skip the partitioning entirely.
___
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: question about SMTP-authentication (3rd )

2012-03-12 Thread Paul Macdonald

On 12/03/2012 15:47, kamolpat wrote:

Dear Matthew,

Ok, I got sendmail complied. Thanks.
But seem like ...
POP3 still working in clear text usr/pwd sending to Server (but it 
work, I can get mail from server normal). When I chose option in 
ThunderBird to another mode, it doesn't work (accept "connection 
security: none", "authentication method: password transmitted 
insecurity" this is the option that TB dectected during setting mail 
account)



SMTP doesn't work it declare
from Thunder Bird:

Send Message Error
The Kerberos/GSSAPI ticket was not accepted by the SMTP server 
mail.dmaccess.co.th Please check that you are logged in to the 
Kerberos/GSSAPI realm.
(event I change "authentication method: Kerberos/GSSAPI", it still 
inform this message)


from /var/log/maillog
Mar 12 22:38:04 ns1 sendmail[93331]: q2CMc4jF093331: 
ppp-58-8-130-33.revip2.asianet.co.th [58.8.130.33] did not issue 
MAIL/EXPN/VRFY/ETRN during connection to MSA




what are you using as the authentication method for sasl?

there are multiple authentication mechansims available for sasl(2), 
simplest is probably saslauthd


*In /etc/rc.conf
*saslauthd_enable=yes

In /usr/local/lib/sasl2/Sendmail.conf have:

pwcheck_method: saslauthd

make sure its running
/usr/local/etc/rc.d/saslauthd start

add a user with saslpasswd2

Test your u/p locally with testsaslauthd
testsaslauthd -u  -p 

(if thats not working it won't work over the network either)

have TB set to conn security to STARTTLS and password security set to 
"normal password", (for non encrypted password obv)


Paul.



--
-
Paul Macdonald
IFDNRG Ltd
Web and video hosting
-
t: 0131 5548070
m: 07970339546

Re: question about SMTP-authentication (3rd )

2012-03-12 Thread kamolpat

Dear Matthew,

Ok, I got sendmail complied. Thanks.
But seem like ...
POP3 still working in clear text usr/pwd sending to Server (but it work, 
I can get mail from server normal). When I chose option in ThunderBird 
to another mode, it doesn't work (accept "connection security: none", 
"authentication method: password transmitted insecurity" this is the 
option that TB dectected during setting mail account)



SMTP doesn't work it declare
from Thunder Bird:

Send Message Error
The Kerberos/GSSAPI ticket was not accepted by the SMTP server 
mail.dmaccess.co.th Please check that you are logged in to the 
Kerberos/GSSAPI realm.
(event I change "authentication method: Kerberos/GSSAPI", it still 
inform this message)


from /var/log/maillog
Mar 12 22:38:04 ns1 sendmail[93331]: q2CMc4jF093331: 
ppp-58-8-130-33.revip2.asianet.co.th [58.8.130.33] did not issue 
MAIL/EXPN/VRFY/ETRN during connection to MSA



this is my test on server
=
ns1:kamolpat:/etc>telnet dmaccess.co.th 25
Trying 202.170.122.33...
Connected to dmaccess.co.th.
Escape character is '^]'.
220 ns1.dmaccess.co.th ESMTP Sendmail 8.14.4/8.14.4; Mon, 12 Mar 2012 
22:23:14 GMT

ehlo dmaccess.co.th
250-ns1.dmaccess.co.th Hello ns1.dmaccess.co.th [202.170.122.33], 
pleased to meet you

250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
250-DELIVERBY
250 HELP
quit
221 2.0.0 ns1.dmaccess.co.th closing connection
Connection closed by foreign host.


this is my /etc/mail/freebsd.mc
=
Other  
dnl Uncomment the first line to change the location of the default 
 

Other  
dnl /etc/mail/local-host-names and comment out the second line. 
 

Other  
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw') 
 

*Define* 
 
define(`confCW_FILE', `-o /etc/mail/local-host-names') 
 


Other   


Other  
dnl Enable for both IPv4 and IPv6 (optional) 
 

Other  
DAEMON_OPTIONS(`Name=IPv4, Family=inet') 
 

Other  
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') 
 


Other   


*Define* 
 
define(`confBIND_OPTS', `WorkAroundBroken') 
 

*Define* 
 
define(`confNO_RCPT_ACTION', `add-to-undisclosed') 
 

*Define* 
 
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') 
 


Other   


Other  
GENERICS_DOMAIN_FILE(`/etc/mail/genericdomains'); 
 


Other 

Re: question about SMTP-authentication (2nd )

2012-03-12 Thread Matthew Seaman
On 12/03/2012 13:26, kamolpat wrote:
> According to your recommendation   (as following). When I do make at
> /usr/src/sur.sbin/sendmail it show as following.
> ns1:kamolpat:/usr/src/usr.sbin/sendmail>make clean
> rm -f sm_os.h sendmail alias.o arpadate.o bf.o collect.o conf.o
> control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o
> headers.o macro.o main.o map.o mci.o milter.o mime.o parseaddr.o queue.o
> ratectrl.o readcf.o recipient.o savemail.o sasl.o sfsasl.o shmticklib.o
> sm_resolve.o srvrsmtp.o stab.o stats.o sysexits.o timers.o tls.o trace.o
> udb.o usersmtp.o util.o version.o mailq.1.gz newaliases.1.gz
> aliases.5.gz sendmail.8.gz mailq.1.cat.gz newaliases.1.cat.gz
> aliases.5.cat.gz sendmail.8.cat.gz
> ns1:kamolpat:/usr/src/usr.sbin/sendmail>make
> ln -sf
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/include/sm/os/sm_os_freebsd.h
> sm_os.h
> cc -O2 -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src
> -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB
> -DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS
> -D_FFR_TLS_1 -I/usr/local/include/sasl -DSASL=2 -std=gnu99
> -fstack-protector  -c
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c
> In file included from
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c:14:
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:135:25:
> error: sasl/sasl.h: No such file or directory
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:136:29:
> error: sasl/saslutil.h: No such file or directory
> In file included from
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c:14:
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:607:
> error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:691:
> error: expected specifier-qualifier-list before 'sasl_conn_t'
> *** Error code 1
> 
> Stop in /usr/src/usr.sbin/sendmail.
> 
> 
> then I try to find where is sasl.h
> 
> ns1:kamolpat:/usr>find . -name "sasl.h"
> ./local/include/sasl/sasl.h
> ./ports/security/cyrus-sasl2/work/cyrus-sasl-2.1.25/include/sasl.h
> ./ports/security/cyrus-sasl2-saslauthd/work/cyrus-sasl-2.1.25/include/sasl.h
> 
> 
> What should I do next? Shold I just copy the sasl.h to
> /usr/src/contrib/sendmail/src/sendmail   ?

No.  Don't do that.  It won't help anything.

You need to follow my instructions correctly.  Specifically this line
needs to be in /etc/make.conf in order to pick up the SASL header files:

SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2

Where, you will note, this does *not* say /usr/local/include/sasl, which
is what appears in your compiler output.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: question about SMTP-authentication (2nd )

2012-03-12 Thread kamolpat

Dear Matthew,

According to your recommendation   (as following). When I do make at 
/usr/src/sur.sbin/sendmail it show as following.

ns1:kamolpat:/usr/src/usr.sbin/sendmail>make clean
rm -f sm_os.h sendmail alias.o arpadate.o bf.o collect.o conf.o 
control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o 
headers.o macro.o main.o map.o mci.o milter.o mime.o parseaddr.o queue.o 
ratectrl.o readcf.o recipient.o savemail.o sasl.o sfsasl.o shmticklib.o 
sm_resolve.o srvrsmtp.o stab.o stats.o sysexits.o timers.o tls.o trace.o 
udb.o usersmtp.o util.o version.o mailq.1.gz newaliases.1.gz 
aliases.5.gz sendmail.8.gz mailq.1.cat.gz newaliases.1.cat.gz 
aliases.5.cat.gz sendmail.8.cat.gz

ns1:kamolpat:/usr/src/usr.sbin/sendmail>make
ln -sf 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include/sm/os/sm_os_freebsd.h 
sm_os.h
cc -O2 -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include/sasl -DSASL=2 -std=gnu99 
-fstack-protector  -c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c
In file included from 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c:14:
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:135:25: 
error: sasl/sasl.h: No such file or directory
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:136:29: 
error: sasl/saslutil.h: No such file or directory
In file included from 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c:14:
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:607: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:691: 
error: expected specifier-qualifier-list before 'sasl_conn_t'

*** Error code 1

Stop in /usr/src/usr.sbin/sendmail.


then I try to find where is sasl.h

ns1:kamolpat:/usr>find . -name "sasl.h"
./local/include/sasl/sasl.h
./ports/security/cyrus-sasl2/work/cyrus-sasl-2.1.25/include/sasl.h
./ports/security/cyrus-sasl2-saslauthd/work/cyrus-sasl-2.1.25/include/sasl.h

What should I do next? Shold I just copy the sasl.h to 
/usr/src/contrib/sendmail/src/sendmail   ?


Thanks
Kamolpat

On 3/9/2012 12:34 AM, Matthew Seaman wrote:

On 08/03/2012 15:55, kamolpat wrote:

Setup Reference
==
1. I read the how to setup from  FreeBSD Handbook (online)->  Chapter 29
Electronic Mail ->  29.10 SMTP Authentication  from freebsd.org
2. setup for cyrus-sasl2 was fine (setup via
usr/ports/security/cyrus-sasl2)
3. setup for openssl was 90% fine (setup via port) reference to FreeBSD
Handbook (online)->Chapter 15 Security ->  15.8 OpenSSL
 accept the "STARTTLS" line doesn't appear  as mention on the last
part of article.


Did you rebuild sendmail with the right flags so that it would enable
all the SASL bits?  Apart from that you seem to have done all the right
stuff that I can see.

You need to add this to /etc/make.conf:

SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

and then rebuild sendmail -- assuming you have system sources installed:

# cd /usr/src/usr.sbin/sendmail
# make clean
# make
# make install

If you haven't got the system sources installed, then you can get them
easily enough with csup(1) or freebsd-update(8) or several other ways.
Or you could just install sendmail from ports -- obviously, make sure to
choose the option to enable SASL in the config dialogue.  If you use the
ports sendmail, so long as you set up mailer.conf(5) to point to the
ports version -- like so:

lucid-nonsense:/etc/mail:% cat mailer.conf
# $FreeBSD: stable/8/etc/mail/mailer.conf 93858 2002-04-05 04:25:14Z
gshapiro $
#
# Execute the "real" sendmail program, named /usr/local/sbin/sendmail
#
sendmail/usr/local/sbin/sendmail
send-mail   /usr/local/sbin/sendmail
mailq   /usr/local/sbin/sendmail
newaliases  /usr/local/sbin/sendmail
hoststat/usr/local/sbin/sendmail
purgestat   /usr/local/sbin/sendmail

and put the following in /etc/make.conf so it uses the latest
configuration file bits:

SENDMAIL_CF_DIR=/usr/local/share/sendmail/cf
MAKEMAP=/usr/local/sbin/makemap

then the ports sendmail is pretty much a drop-in replacement for the
system one, and you can use all the config bits in /etc/mail in exactly
the same way as normal.

Cheers,

Matthew







E-mail message checked by Internet Security (7.0.0.508)
Database version: 6.19440
http://www.pctools.com/en/internet-security/
___
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: question about SMTP-authentication

2012-03-08 Thread Julian H. Stacey
kamolpat wrote:
> To whom it may concern:

I hope you get a more useful reply than mine later, & no time here, sorry
but I've had SASL-1 running fine for years FreeBSD both ends.
Documented here, 
http://www.berklix.com/~jhs/txt/sasl.html 
There's various URLs there to SASL-2

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Reply below not above, cumulative like a play script, & indent with "> ".
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
Mail from @yahoo dumped @berklix.  http://berklix.org/yahoo/
___
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: question about SMTP-authentication

2012-03-08 Thread Matthew Seaman
On 08/03/2012 15:55, kamolpat wrote:
> Setup Reference
> ==
> 1. I read the how to setup from  FreeBSD Handbook (online)-> Chapter 29
> Electronic Mail -> 29.10 SMTP Authentication  from freebsd.org
> 2. setup for cyrus-sasl2 was fine (setup via
> usr/ports/security/cyrus-sasl2)
> 3. setup for openssl was 90% fine (setup via port) reference to FreeBSD
> Handbook (online)->Chapter 15 Security -> 15.8 OpenSSL
> accept the "STARTTLS" line doesn't appear  as mention on the last
> part of article.
> 

Did you rebuild sendmail with the right flags so that it would enable
all the SASL bits?  Apart from that you seem to have done all the right
stuff that I can see.

You need to add this to /etc/make.conf:

SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

and then rebuild sendmail -- assuming you have system sources installed:

# cd /usr/src/usr.sbin/sendmail
# make clean
# make
# make install

If you haven't got the system sources installed, then you can get them
easily enough with csup(1) or freebsd-update(8) or several other ways.
Or you could just install sendmail from ports -- obviously, make sure to
choose the option to enable SASL in the config dialogue.  If you use the
ports sendmail, so long as you set up mailer.conf(5) to point to the
ports version -- like so:

lucid-nonsense:/etc/mail:% cat mailer.conf
# $FreeBSD: stable/8/etc/mail/mailer.conf 93858 2002-04-05 04:25:14Z
gshapiro $
#
# Execute the "real" sendmail program, named /usr/local/sbin/sendmail
#
sendmail/usr/local/sbin/sendmail
send-mail   /usr/local/sbin/sendmail
mailq   /usr/local/sbin/sendmail
newaliases  /usr/local/sbin/sendmail
hoststat/usr/local/sbin/sendmail
purgestat   /usr/local/sbin/sendmail

and put the following in /etc/make.conf so it uses the latest
configuration file bits:

SENDMAIL_CF_DIR=/usr/local/share/sendmail/cf
MAKEMAP=/usr/local/sbin/makemap

then the ports sendmail is pretty much a drop-in replacement for the
system one, and you can use all the config bits in /etc/mail in exactly
the same way as normal.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: Question regarding SPF records

2012-02-18 Thread RW
On Sat, 18 Feb 2012 12:34:09 -0500
Jonathan Vomacka wrote:


> teamwarfare.com. IN TXT "v=spf1 a mx a:mail.teamwarfare.com 
> a:mail2.teamwarfare.com ip4:66.90.73.80 ip4:216.250.250.148 ~all"
> 
> I wouldn't need an "include:" or "ptr" statement in this right? I
> would told "include:" was to include OTHER domains that are allowed
> to send e-mail, but then again I see some people writing the domain
> again as an include. Also is PTR good to use or not?


If you can specify the servers  with ip addresses then that's all you
need.

___
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: Question regarding SPF records

2012-02-18 Thread Jonathan Vomacka



On 2/18/2012 12:18 PM, Waitman Gobble wrote:


On Feb 18, 2012 8:53 AM, "Jonathan Vomacka" mailto:juvi...@gmail.com>> wrote:
 >
 > I am inquiring about how to setup a proper SPF record. I know there
are SPF wizards/generators available but each seem to have a different
"opinion" of what should be included and what should not be included.
 >
 > Let me give you a scenario of my setup, and hopefully someone can
help me out.
 >
 > My domain is: test.com 
 > My mailserver hostname is: mail.host.com  which
also has a MATCHING PTR record
 > mail.host.com  (for example) resolves to
50.1.1.1 and 50.1.1.1 resolves to mail.host.com 
 >
 > This is a STANDALONE mail server which will receive and send email
without any VIP's or load balancing. There is however one additional
host that will send out mail from the domain but it wont be receiving
mail, it will only be used as an SMTP (outbound only) server attached to
a website automailer which is on a seperate webserver... It only
generates error reports and sends them out... so technically it isn't a
full mail server but it will be sending (outbound only) mail on behalf
of the domain.
 >
 > The additional host is: mail2.test.com  which
resolves to 50.2.2.2 and there is a Matching PTR.
 >
 > These are the ONLY mail servers and IP addresses that will be sending
out mail from the test.com  domain. Some websites say I
should use -all and others say -all will cause some MTA's to reject and
~all is better to use even if those are the only two hosts sending out mail.
 >
 > Would you be able to assist with a solid SPF record?
 > ___
 > 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 usually choose soft fail because a user might decide to use a mobile
device for email.

Waitman Gobble
San Jose California USA



Waitman,

Fair enough statement.

I also generated the following SPF using a wizard. Let me know if this 
looks correct:


teamwarfare.com. IN TXT "v=spf1 a mx a:mail.teamwarfare.com 
a:mail2.teamwarfare.com ip4:66.90.73.80 ip4:216.250.250.148 ~all"


I wouldn't need an "include:" or "ptr" statement in this right? I would 
told "include:" was to include OTHER domains that are allowed to send 
e-mail, but then again I see some people writing the domain again as an 
include. Also is PTR good to use 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: Question regarding SPF records

2012-02-18 Thread Waitman Gobble
On Feb 18, 2012 8:53 AM, "Jonathan Vomacka"  wrote:
>
> I am inquiring about how to setup a proper SPF record. I know there are
SPF wizards/generators available but each seem to have a different
"opinion" of what should be included and what should not be included.
>
> Let me give you a scenario of my setup, and hopefully someone can help me
out.
>
> My domain is: test.com
> My mailserver hostname is: mail.host.com which also has a MATCHING PTR
record
> mail.host.com (for example) resolves to 50.1.1.1 and 50.1.1.1 resolves to
mail.host.com
>
> This is a STANDALONE mail server which will receive and send email
without any VIP's or load balancing. There is however one additional host
that will send out mail from the domain but it wont be receiving mail, it
will only be used as an SMTP (outbound only) server attached to a website
automailer which is on a seperate webserver... It only generates error
reports and sends them out... so technically it isn't a full mail server
but it will be sending (outbound only) mail on behalf of the domain.
>
> The additional host is: mail2.test.com which resolves to 50.2.2.2 and
there is a Matching PTR.
>
> These are the ONLY mail servers and IP addresses that will be sending out
mail from the test.com domain. Some websites say I should use -all and
others say -all will cause some MTA's to reject and ~all is better to use
even if those are the only two hosts sending out mail.
>
> Would you be able to assist with a solid SPF record?
> ___
> 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 usually choose soft fail because a user might decide to use a mobile
device for email.

Waitman Gobble
San Jose California USA
___
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: Question on select() : why am I getting absurd output ?

2012-01-15 Thread Manish Jain

Sometimes I do wonder how much stupid I can be.


Thanks
MJ

On 15-Jan-12 22:49, ss griffon wrote:

On Sun, Jan 15, 2012 at 8:48 AM, Manish Jain  wrote:


Hi All,

I was trying to write a small demo code using the select() system call. Here
are the sources :

#include
#include
#include
#include
#include
#include

int nice_child(int * fd, int * fd_close)
{
close(fd[0]);
close(fd_close[0]);
close(fd_close[1]);

char buffer[32];

while (1)
{
sleep(3);
strcpy(buffer, "I love my wife !");
write(fd[1], buffer, strlen(buffer) + 1);
}

return 0;
}

int naughty_child(int * fd, int * fd_close)
{
close(fd[0]);
close(fd_close[0]);
close(fd_close[1]);

char buffer[32];

while (1)
{
sleep(4);
strcpy(buffer, "I love your wife !");
write(fd[1], buffer, strlen(buffer) + 1);
}

return 0;
}

int main()
{
int fd_nice[2];
int fd_naughty[2];

pipe(fd_nice);
pipe(fd_naughty);

if (fork() == 0)
{
return nice_child(fd_nice, fd_naughty);
}
else
{
if (fork() == 0)
{
return naughty_child(fd_naughty, fd_nice);
}
}

close(fd_nice[1]);
close(fd_naughty[1]);

fd_set fdset;
char buffer[64];
int fd = (*fd_naughty>  *fd_nice) ? *fd_naughty : *fd_nice;

FD_ZERO(&fdset);
FD_SET(fd_nice[0],&fdset);
FD_SET(fd_naughty[0],&fdset);

while (1)
{
int result = select(fd + 1,&fdset, 0, 0, 0);
assert(result>  0);

if (FD_ISSET(fd_nice[0],&fdset))
{
int result = read(fd, buffer, sizeof(buffer));
buffer[result] = 0;

std::cout<<  "Nice child sent : "<<  buffer<<
std::endl;
}

if (FD_ISSET(fd_naughty[0],&fdset))
{
int result = read(fd, buffer, sizeof(buffer));
buffer[result] = 0;

std::cout<<  "Naughty child sent : "<<  buffer<<
std::endl;
}
}

return 0;
}

I was expecting the output to be like :

Nice child sent : I love my wife !
Naughty child sent : I love your wife !
Nice child sent : I love my wife !

But what I actually get is :

Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !

Can somebody throw some light on what might be wrong ?


Thank you&
Regards

Manish Jain
invalid.poin...@gmail.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"




It looks like you are always reading from the same file descriptor
'fd'.  Instead you should read from fd_naughty[0] or fd_nice[0] based
on your FD_ISSET checks.  Also, don't forget to wait() for your child
processes.


___
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: Question about hardware support

2011-12-07 Thread Warren Block

On Wed, 7 Dec 2011, Matthias Apitz wrote:


El día Wednesday, December 07, 2011 a las 12:54:35PM +, Matthew Seaman 
escribió:


Drivers in FreeBSD are generally described in terms of the specific
components (motherboard chipset, NIC, SATA controller, etc. etc.) rather
than in terms of a specific whole machine produced by a manufacturer.

Laptops are particularly tricky in this regard, and if no-one else has
reported on your particular model, generally the best procedure is to
try booting the device using a USB or CD-Rom image, and see what does
and doesn't work.


One good method is to let it boot a recent Knoppix DVD and see what chips it
'sees'; it will not touch the installed OS;


Along those lines, PC-BSD (pcbsd.org) has a live DVD or live USB mode.___
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: Question about hardware support

2011-12-07 Thread Matthias Apitz
El día Wednesday, December 07, 2011 a las 12:54:35PM +, Matthew Seaman 
escribió:

> Drivers in FreeBSD are generally described in terms of the specific
> components (motherboard chipset, NIC, SATA controller, etc. etc.) rather
> than in terms of a specific whole machine produced by a manufacturer.
> 
> Laptops are particularly tricky in this regard, and if no-one else has
> reported on your particular model, generally the best procedure is to
> try booting the device using a USB or CD-Rom image, and see what does
> and doesn't work.

One good method is to let it boot a recent Knoppix DVD and see what chips it
'sees'; it will not touch the installed OS;

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5
___
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: Question about hardware support

2011-12-07 Thread Matthew Seaman
On 07/12/2011 05:34, Ammar Shaarbaf wrote:
> Are there any FreeBSD drivers for Acer Aspire 3610?
> 

This is the closest hardware match I could find:
http://laptop.bsdgroup.de/freebsd/index.html?action=show_laptop_detail&laptop=12882

Drivers in FreeBSD are generally described in terms of the specific
components (motherboard chipset, NIC, SATA controller, etc. etc.) rather
than in terms of a specific whole machine produced by a manufacturer.

Laptops are particularly tricky in this regard, and if no-one else has
reported on your particular model, generally the best procedure is to
try booting the device using a USB or CD-Rom image, and see what does
and doesn't work.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: question

2011-10-10 Thread Matthew Seaman
On 10/10/2011 18:06, Kiril Georgiev wrote:
> Hi, is it possible to make me a subdomain ( A HOST ) by type
> kiril.FreeBSD.org

What benefit would that bring to the FreeBSD project?

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Question about regular expressions

2011-07-21 Thread Damien Fleuriot


On 7/21/11 4:33 AM, dave jones wrote:
> Hi,
> 
> I have a config file below:
> 
> $user=   'root';   // This is the username
> 
> if $user is found, I want to display root.
> Anyone knows how to programming in C or some other language? thank you.
> 
> Regards,
> Dave.
> ___
> 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"


Let us assume you want to read your file, then display each entry for
"$user1" , "$user2" and so on:


grep "$user" my_file | awk '{ print $3}' | sed -e "s/\'//" | sed -e "s/;//"


1/ open my_file and only display lines containing "$user"
2/ display the 3rd item on the line
3/ remove the single quotes and the ;


I'm sure it can be optimized a bit but basically, that'll do what I
assume you want.
___
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: Question about regular expressions

2011-07-21 Thread Daniel Staal

On Wed, July 20, 2011 10:33 pm, dave jones wrote:
> Hi,
>
> I have a config file below:
>
> $user=   'root';   // This is the username
>
> if $user is found, I want to display root.
> Anyone knows how to programming in C or some other language? thank you.

I'm not quite sure what you are asking here.  Found where?  Display where?
 Are we just reading through the config file?  Are we processing some
other file with it's config?

It should be simple in Perl or some similar scripting language, if I knew
what you meant.  (Except for the comment, that could be a Perl file.  If
so, one way to 'process' the config file would be to execute it in your
main program, and then just use the variables assigned in it as regular
variables.)

Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---

___
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: Question about NIC link state initialization

2011-07-01 Thread perryh
Steve Polyack  wrote:

> I was able to "fix" the single-user mode behavior (which I agree,
> isn't necessarily broken) and get it to bring up the links by
> simply patching init(8) to call system("/sbin/ifconfig") before
> prompting for the single-user shell.  It works, but I feel dirty.

I see no particular objection to adding a way of running "something"
ahead of the single-user shell, but system(3) is not necessarily the
best mechanism to use for the purpose because it invokes a shell.
It would be both more efficient and more robust to call fork(2) and
exec(3) (or execve(2)) directly.

It would be more general to fork/exec "/etc/rc.single" instead of
"/sbin/ifconfig", expecting "/etc/rc.single" to be an executable
script (with an appropriate shebang line) and ignoring the failure
which would occur if it did not exist.  (In your case, instead of
a script, you could make /etc/rc.single a link to /sbin/ifconfig.)
___
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: Question about NIC link state initialization

2011-06-30 Thread Steve Polyack

On 6/30/2011 1:10 AM, per...@pluto.rain.com wrote:

Steve Polyack  wrote:


... An occaisional fat-finger in /etc/fstab may cause one to
end up in single-user mode ... some of these systems have a LOM
(lights-out management) controller which shares the system's
on-board NICs ... when the system drops out of init(8) and into
single-user mode, the links on the interfaces never come up,
and therefore the LOM becomes inaccessible.

... all one has to do is run ifconfig to cause the NIC's links to
come up ... why do we have to run ifconfig(8) to bring the links
up on the attached interfaces?

When trying to troubleshoot a problem that was known or suspected to
involve the network or its hardware, one might not _want_ the NICs
alive.


Short of patching init(8) (or perhaps the NIC drivers?), I don't
see another way for me to ensure the links come up even when the
system drops into single-user mode on boot.

Something in /root/.profile, perhaps?  That should get run when the
single-user shell starts up, if it's started as a "login" shell.

This won't work.  When the system kicks you into single-user mode, you 
are prompted to enter the name of a shell or press enter for /bin/sh.  
If no one is there to press enter, or enter the path to an alternate 
shell, then a shell never starts.


___
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: Question about NIC link state initialization

2011-06-30 Thread Steve Polyack

On 6/30/2011 6:49 AM, Daniel Feenberg wrote:



On Wed, 29 Jun 2011, per...@pluto.rain.com wrote:


Steve Polyack  wrote:


... An occaisional fat-finger in /etc/fstab may cause one to
end up in single-user mode ... some of these systems have a LOM
(lights-out management) controller which shares the system's
on-board NICs ... when the system drops out of init(8) and into
single-user mode, the links on the interfaces never come up,
and therefore the LOM becomes inaccessible.

... all one has to do is run ifconfig to cause the NIC's links to
come up ... why do we have to run ifconfig(8) to bring the links
up on the attached interfaces?


When trying to troubleshoot a problem that was known or suspected to
involve the network or its hardware, one might not _want_ the NICs


Well, maybe, but if the system needs to boot into multi-user mode for 
the LOM to be available, what is the need for the LOM? At that point 
you can do everything you might need through the OS interface. Can I 
ask what is the brand of this so-called LOM? Is there any 
documentation implying something more useful? Do they describe doing a 
bare metal install of an

OS?


They are the Dell Remote Access Controllers (DRACs).  Now, they do have 
their own dedicated NIC, which we use for anything that really needs the 
attention.  However, the shared feature saves us a switchport per server 
we use it on.  When both on-board NICs are cabled (i.e. for lagg(4) 
failover), then the DRAC's shared NIC mode *also* supports automatic 
failover between both on-board NICs.  This doesn't help however if the 
operating system never turns on the links to either on-board NIC.


I was able to "fix" the single-user mode behavior (which I agree, isn't 
necessarily broken) and get it to bring up the links by simply patching 
init(8) to call system("/sbin/ifconfig") before prompting for the 
single-user shell.  It works, but I feel dirty.


- Steve
___
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: Question about NIC link state initialization

2011-06-30 Thread Daniel Feenberg



On Wed, 29 Jun 2011, per...@pluto.rain.com wrote:


Steve Polyack  wrote:


... An occaisional fat-finger in /etc/fstab may cause one to
end up in single-user mode ... some of these systems have a LOM
(lights-out management) controller which shares the system's
on-board NICs ... when the system drops out of init(8) and into
single-user mode, the links on the interfaces never come up,
and therefore the LOM becomes inaccessible.

... all one has to do is run ifconfig to cause the NIC's links to
come up ... why do we have to run ifconfig(8) to bring the links
up on the attached interfaces?


When trying to troubleshoot a problem that was known or suspected to
involve the network or its hardware, one might not _want_ the NICs


Well, maybe, but if the system needs to boot into multi-user mode for the 
LOM to be available, what is the need for the LOM? At that point you can 
do everything you might need through the OS interface. Can I ask what is 
the brand of this so-called LOM? Is there any documentation implying 
something more useful? Do they describe doing a bare metal install of an

OS?

Daniel Feenberg
___
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: Question about NIC link state initialization

2011-06-29 Thread perryh
Steve Polyack  wrote:

> ... An occaisional fat-finger in /etc/fstab may cause one to
> end up in single-user mode ... some of these systems have a LOM
> (lights-out management) controller which shares the system's
> on-board NICs ... when the system drops out of init(8) and into
> single-user mode, the links on the interfaces never come up,
> and therefore the LOM becomes inaccessible.
>
> ... all one has to do is run ifconfig to cause the NIC's links to
> come up ... why do we have to run ifconfig(8) to bring the links
> up on the attached interfaces?

When trying to troubleshoot a problem that was known or suspected to
involve the network or its hardware, one might not _want_ the NICs
alive.

> Short of patching init(8) (or perhaps the NIC drivers?), I don't
> see another way for me to ensure the links come up even when the
> system drops into single-user mode on boot.

Something in /root/.profile, perhaps?  That should get run when the
single-user shell starts up, if it's started as a "login" shell.
___
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: Question : Developing/Making FreeBSD derivative.

2011-04-12 Thread Ruben de Groot
On Sun, Apr 10, 2011 at 09:44:22PM -0700, Stefan N typed:
> Hi All,
> 
> 
> My name is Stefan and I am newbie with FreeBSD but I'm interested to learn 
> more 
> about FreeBSD . I am keen to know and learn more on  the process to make a 
> new 
> BSD's derivative/fork  from FreeBSD ?

There is a distinction. eg PC-BSD is a derivative while DragonFlyBSD is a fork.
What do you want?

> How is the method for customizing/remastering FreeBSD ? The most interesting 
> part is that if we could make the new fork of FreeBSD with its own uname. If 
> I 
> could make my own BSD derivative and used StefanBSD as its uname, it would be 
> awesome.

I think you want to read the release(7) manpage. "make release 
BUILDNAME=StefanBSD"
will get you what you want.
___
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: Question : Developing/Making FreeBSD derivative.

2011-04-11 Thread Alexander Lardner
On Mon, Apr 11, 2011 at 6:38 AM, Traiano Welcome <
traiano.welc...@mtnbusiness.co.za> wrote:

> Hi
>
> The FreeBSD from scratch article has a lot of good ideas on how to do this.
> The article is somewhat dated, however, so your going to have to check that
> some of the methods are still current, and adapt them to your taste:
>
>
> http://www.freebsd.org/doc/en_US.ISO8859-1/articles/fbsd-from-scratch/article.html
>
>
> Regards,
> Traiano
>
> 
> From: owner-freebsd-questi...@freebsd.org [
> owner-freebsd-questi...@freebsd.org] on behalf of Stefan N [
> stefanbsd...@yahoo.com]
> Sent: Monday, April 11, 2011 6:44 AM
> To: freebsd-questions@FreeBSD.org
> Subject: Question : Developing/Making FreeBSD derivative.
>
> Hi All,
>
>
> My name is Stefan and I am newbie with FreeBSD but I'm interested to learn
> more
> about FreeBSD . I am keen to know and learn more on  the process to make a
> new
> BSD's derivative/fork  from FreeBSD ?
>
> How is the method for customizing/remastering FreeBSD ? The most
> interesting
> part is that if we could make the new fork of FreeBSD with its own uname.
> If I
> could make my own BSD derivative and used StefanBSD as its uname, it would
> be
> awesome.
>
> Thank you in advance.
>
> Regards,
> Stefan
> ___
> 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"
>
Please, no top posting.

Also, thanks for the article. May make an interesting read.
___
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: Question : Developing/Making FreeBSD derivative.

2011-04-11 Thread Daniel Staal

On Mon, April 11, 2011 9:56 am, Stefan N wrote:
> Hi Christer,
>
> As there are many parts of the source code(from
> bin,cddl,contrib..usr.sbin),
> which part(s) of source code do I need to modify?

That would depend.  What is your derivative going to do differently than
FreeBSD?

Which brings in the more general question: Why?  What's the purpose of
your derivative?  Why should people use yours over FreeBSD?

Not that there aren't possible good reasons.  ;)  But answering that will
probably tell you what you need to do to create your derivative.

Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---

___
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: Question : Developing/Making FreeBSD derivative.

2011-04-11 Thread Jerry McAllister
On Mon, Apr 11, 2011 at 06:56:53AM -0700, Stefan N wrote:

> Hi Christer,
> 
> As there are many parts of the source 
> code(from bin,cddl,contrib..usr.sbin), 
> which part(s) of source code do I need to modify?

That is a strange question.   I guess the answer is 'Yes'

It depends on what you want to be changed in your new version.

For example, I would guess that you would take an interest in making 
your own user environment/interface.   Well, that would involve doing
stuff from X11 most likely and most probably more of configuration
changes than code changes.

Then there is a whole long list of things people want added/fixed/
modified on the system.   You might want to check that out for
ideas.

Probably you need to learn a lot more about the existing system
before you go to making a custom version.

jerry


> 
> Regards,
> Stefanus
> 
> 
> 
> 
> 
> 
> From: Christer Solskogen 
> To: Stefan N 
> Cc: freebsd-questions@freebsd.org
> Sent: Mon, April 11, 2011 7:51:50 PM
> Subject: Re: Question : Developing/Making FreeBSD derivative.
> 
> On Mon, Apr 11, 2011 at 6:44 AM, Stefan N  wrote:
> > My name is Stefan and I am newbie with FreeBSD but I'm interested to learn 
> more
> > about FreeBSD . I am keen to know and learn more on  the process to make a 
> > new
> > BSD's derivative/fork  from FreeBSD ?
> >
> 
> You change the source code and compile
> 
> > How is the method for customizing/remastering FreeBSD ? The most interesting
> > part is that if we could make the new fork of FreeBSD with its own uname. 
> > If I
> > could make my own BSD derivative and used StefanBSD as its uname, it would 
> > be
> > awesome.
> 
> The method is really simple, actually. You change the source code and compile.
> Good luck!
> 
> -- 
> chs
> ___
> 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: Question : Developing/Making FreeBSD derivative.

2011-04-11 Thread Stefan N
Hi Patrick,

Thanks for your usefull hints!!! I will try that as soon as possible.

Regards,
Stefanus






From: Patrick Lamaiziere 
To: Stefan N 
Cc: freebsd-questions@FreeBSD.org
Sent: Mon, April 11, 2011 9:15:39 PM
Subject: Re: Question : Developing/Making FreeBSD derivative.

Le Sun, 10 Apr 2011 21:44:22 -0700 (PDT),
Stefan N  a écrit :

> How is the method for customizing/remastering FreeBSD ? The most
> interesting part is that if we could make the new fork of FreeBSD
> with its own uname. If I could make my own BSD derivative and used
> StefanBSD as its uname, it would be awesome.

# setenv UNAME_s PatrickBSD
# setenv UNAME_r 1.0-RELEASE
# setenv UNAME_v "PatrickBSD 1.0-RELEASE Thu Oct 28"

# uname -a
PatrickBSD net.lamaiziere.net 1.0-RELEASE PatrickBSD
1.0-RELEASE Thu Oct 28 i386

forked!

___
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: Question : Developing/Making FreeBSD derivative.

2011-04-11 Thread Stefan N
Hi Christer,

As there are many parts of the source code(from 
bin,cddl,contrib..usr.sbin), 
which part(s) of source code do I need to modify?

Regards,
Stefanus






From: Christer Solskogen 
To: Stefan N 
Cc: freebsd-questions@freebsd.org
Sent: Mon, April 11, 2011 7:51:50 PM
Subject: Re: Question : Developing/Making FreeBSD derivative.

On Mon, Apr 11, 2011 at 6:44 AM, Stefan N  wrote:
> My name is Stefan and I am newbie with FreeBSD but I'm interested to learn 
more
> about FreeBSD . I am keen to know and learn more on  the process to make a new
> BSD's derivative/fork  from FreeBSD ?
>

You change the source code and compile

> How is the method for customizing/remastering FreeBSD ? The most interesting
> part is that if we could make the new fork of FreeBSD with its own uname. If I
> could make my own BSD derivative and used StefanBSD as its uname, it would be
> awesome.

The method is really simple, actually. You change the source code and compile.
Good luck!

-- 
chs
___
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: Question : Developing/Making FreeBSD derivative.

2011-04-11 Thread Traiano Welcome
Hi

The FreeBSD from scratch article has a lot of good ideas on how to do this. The 
article is somewhat dated, however, so your going to have to check that some of 
the methods are still current, and adapt them to your taste:

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/fbsd-from-scratch/article.html


Regards,
Traiano


From: owner-freebsd-questi...@freebsd.org [owner-freebsd-questi...@freebsd.org] 
on behalf of Stefan N [stefanbsd...@yahoo.com]
Sent: Monday, April 11, 2011 6:44 AM
To: freebsd-questions@FreeBSD.org
Subject: Question : Developing/Making FreeBSD derivative.

Hi All,


My name is Stefan and I am newbie with FreeBSD but I'm interested to learn more
about FreeBSD . I am keen to know and learn more on  the process to make a new
BSD's derivative/fork  from FreeBSD ?

How is the method for customizing/remastering FreeBSD ? The most interesting
part is that if we could make the new fork of FreeBSD with its own uname. If I
could make my own BSD derivative and used StefanBSD as its uname, it would be
awesome.

Thank you in advance.

Regards,
Stefan
___
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: Question : Developing/Making FreeBSD derivative.

2011-04-11 Thread Patrick Lamaiziere
Le Sun, 10 Apr 2011 21:44:22 -0700 (PDT),
Stefan N  a écrit :

> How is the method for customizing/remastering FreeBSD ? The most
> interesting part is that if we could make the new fork of FreeBSD
> with its own uname. If I could make my own BSD derivative and used
> StefanBSD as its uname, it would be awesome.

# setenv UNAME_s PatrickBSD
# setenv UNAME_r 1.0-RELEASE
# setenv UNAME_v "PatrickBSD 1.0-RELEASE Thu Oct 28"

# uname -a
PatrickBSD net.lamaiziere.net 1.0-RELEASE PatrickBSD
1.0-RELEASE Thu Oct 28 i386

forked!
___
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: Question : Developing/Making FreeBSD derivative.

2011-04-11 Thread Christer Solskogen
On Mon, Apr 11, 2011 at 6:44 AM, Stefan N  wrote:
> My name is Stefan and I am newbie with FreeBSD but I'm interested to learn 
> more
> about FreeBSD . I am keen to know and learn more on  the process to make a new
> BSD's derivative/fork  from FreeBSD ?
>

You change the source code and compile

> How is the method for customizing/remastering FreeBSD ? The most interesting
> part is that if we could make the new fork of FreeBSD with its own uname. If I
> could make my own BSD derivative and used StefanBSD as its uname, it would be
> awesome.

The method is really simple, actually. You change the source code and compile.
Good luck!

-- 
chs
___
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: Question about nethack and setgid

2011-03-03 Thread David Demelier

On 03/03/2011 02:49, Robert Bonomi wrote:

Date: Wed, 02 Mar 2011 23:51:45 +0100
From: David Demelier
To: freebsd-questions@freebsd.org
Subject: Question about nethack and setgid

Hello,

I don't understand how nethack can store the score in
/usr/local/lib/nethack/logfile.

the real binary is here /usr/local/lib/nethack/nethack

And the mode is

-rwxr-sr-x  1 games  games  1793635 25 Jan 2011
/usr/local/lib/nethack/nethack

So that means people in games group will run nethack as games user (owner
of file)


Actually, it means that the program will run with the _group_ id of the
file -- i.e. the 'games' group.  _That_ 's' is the 'sgid' or 'set groupID'
bit.


 but I'm not in games group ! and I can save the file located in

/usr/local/lib/nethack/logfile which mode is -rw-rw-r--  games  games


Lo and behold!  The file _is_ writable by the games group.


I'm writing a game that will store file too, because I can't make it
works like nethack I was planning using the setuid mode but I don't like
much this ..

What am I misunderstanding?


the function of the 'setgid' bit.

Okay, that's why the program was running on my user but with games 
group. I didn't see that the file was writable by games group neither. I 
understand everything now and my game is working too :-)


Thanks,



Cheers,

--
David Demelier
___
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"




--
David Demelier
___
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: Question about nethack and setgid

2011-03-02 Thread Robert Bonomi

> Date: Wed, 02 Mar 2011 23:51:45 +0100
> From: David Demelier 
> To: freebsd-questions@freebsd.org
> Subject: Question about nethack and setgid
>
> Hello,
>
> I don't understand how nethack can store the score in
> /usr/local/lib/nethack/logfile.
>
> the real binary is here /usr/local/lib/nethack/nethack
>
> And the mode is
>
> -rwxr-sr-x  1 games  games  1793635 25 Jan 2011
> /usr/local/lib/nethack/nethack
>
> So that means people in games group will run nethack as games user (owner 
> of file)

Actually, it means that the program will run with the _group_ id of the
file -- i.e. the 'games' group.  _That_ 's' is the 'sgid' or 'set groupID'
bit.

> but I'm not in games group ! and I can save the file located in
>
> /usr/local/lib/nethack/logfile which mode is -rw-rw-r--  games  games

Lo and behold!  The file _is_ writable by the games group.

> I'm writing a game that will store file too, because I can't make it 
> works like nethack I was planning using the setuid mode but I don't like 
> much this ..
>
> What am I misunderstanding?

the function of the 'setgid' bit.  
> Cheers,
>
> --
> David Demelier
> ___
> 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: Question about nethack and setgid

2011-03-02 Thread Brandon Gooch
On Wed, Mar 2, 2011 at 4:51 PM, David Demelier  wrote:
> Hello,
>
> I don't understand how nethack can store the score in
> /usr/local/lib/nethack/logfile.
>
> the real binary is here /usr/local/lib/nethack/nethack
>
> And the mode is
>
> -rwxr-sr-x  1 games  games  1793635 25 Jan 2011
> /usr/local/lib/nethack/nethack
>
> So that means people in games group will run nethack as games user (owner of
> file) but I'm not in games group ! and I can save the file located in
>
> /usr/local/lib/nethack/logfile which mode is -rw-rw-r--  games  games
>
> I'm writing a game that will store file too, because I can't make it works
> like nethack I was planning using the setuid mode but I don't like much this
> ..
>
> What am I misunderstanding?
>
> Cheers,
>
> --
> David Demelier

Take a look at:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/permissions.html#AEN4027

I believe that it will demystify the behavior you're seeing.

-Brandon
___
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: question on access to res utility

2010-09-10 Thread Ross Cameron
2seconds spent Googling the phrase pulls up my much more polite answer to
exactly the same question from a month ago.
Absolutely no effort was made, that much is OBVIOUS.

In my defense when I realised the the OP thought that this was a Juniper
support list I did offer to try help.




"Opportunity is most often missed by people because it is dressed in
overalls and looks like work."
Thomas Alva Edison
Inventor of 1093 patents, including:
The light bulb, phonogram and motion pictures.



On Fri, Sep 10, 2010 at 9:44 PM, mikel king  wrote:

> I'm glad that I am not the only one who felt that was a bit extreme.
>
> This is a BSD, not Linux, list after all.
>
>
> Regards,
> Mikel King
> Senior Editor, BSD News Network
> Columnist, BSD Magazine
> 6 Alpine Court,
> Medford, NY 11763
> o: 631.627.3055
> http://www.linkedin.com/in/mikelking
> http://twitter.com/mikelking
>
> On Sep 10, 2010, at 3:22 PM, Adam Vande More wrote:
>
>  On Fri, Sep 10, 2010 at 1:58 PM, Ross Cameron 
>> wrote:
>>
>>  It's not the first time that almost word for word the same question has
>>> been
>>> asked by someone from that domain.
>>>
>>>
>> True but juniper has given a great of IP to BSD.  Gracefully handling some
>> runoff seems appropriate.
>>
>> --
>> Adam Vande More
>> ___
>> 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: question on access to res utility

2010-09-10 Thread mikel king

I'm glad that I am not the only one who felt that was a bit extreme.

This is a BSD, not Linux, list after all.

Regards,
Mikel King
Senior Editor, BSD News Network
Columnist, BSD Magazine
6 Alpine Court,
Medford, NY 11763
o: 631.627.3055
http://www.linkedin.com/in/mikelking
http://twitter.com/mikelking

On Sep 10, 2010, at 3:22 PM, Adam Vande More wrote:

On Fri, Sep 10, 2010 at 1:58 PM, Ross Cameron  
 wrote:


It's not the first time that almost word for word the same question  
has

been
asked by someone from that domain.



True but juniper has given a great of IP to BSD.  Gracefully  
handling some

runoff seems appropriate.

--
Adam Vande More
___
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: question on access to res utility

2010-09-10 Thread Jerry McAllister
On Fri, Sep 10, 2010 at 08:58:46PM +0200, Ross Cameron wrote:

> It's not the first time that almost word for word the same question has been
> asked by someone from that domain.
> 

And not the first time some idiot rude reply caused much
more harm than good.

jerry


> 
> "Opportunity is most often missed by people because it is dressed in
> overalls and looks like work."
> Thomas Alva Edison
> Inventor of 1093 patents, including:
> The light bulb, phonogram and motion pictures.
> 
> 
> 
> On Fri, Sep 10, 2010 at 8:49 PM, Alessandro Dellavedova <
> alessandro.dellaved...@ifom-ieo-campus.it> wrote:
> 
> >
> > On Sep 10, 2010, at 7:23 PM, Ross Cameron wrote:
> >
> > > As an !!! employee !!! of Juniper I would expect that you would know that
> > > the "res" command is part of the JunOS shell and NOT part of the
> > underlying
> > > FreeBSD OS.
> > >
> > > Most especially since you're "helping" what sounds like a member of the
> > > press, therefore you SHOULD have / SOME / idea of what you are doing.
> > >
> > > What respect I had for Juniper's products has been ruined of last as this
> > is
> > > NOT the first time that a Juniper employee has posted such completely
> > > idiotic emails to this list.
> > >Please do tell what are the employment requirements? Know how to press
> > > the "ON" button on a kettle?
> >
> > Please don't be so rude, maybe she's a Press Office employee, looking for a
> > bit of help here.
> > Working at Juniper does not mean being a JunOS developer or a tech guru.
> >
> > It's just one e-mail on hundreds that you get per day, and it does not
> > hurt.
> >
> > Just my opinion, peace
> >
> > Alessandro
> >
> > >
> > >
> > > On Fri, Sep 10, 2010 at 6:42 PM, Joanne McClintock  > >wrote:
> > >
> > >> I'm helping a new writer use tech pubs lab routers. In trying to use the
> > >> res utility, he gets the following:
> > >>
> > >> -bash-2.05b$ res show tp5
> > >> -bash: res: command not found
> > >>
> > >> In giving the uname -a command he gets:
> > >>
> > >> -bash-2.05b$ uname -a
> > >> FreeBSD bigpink.juniper.net 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #0:
> > >> Mon Oct 25 16:23:23 PDT 2004 r...@bigpink.juniper.net:
> > /usr/src/sys/compile/bigpink
> > >> i386
> > >>
> > >> We are wondering if perhaps this is an access problem. Any ideas? Need
> > any
> > >> other information? Thanks.
> > >>
> > >> Joanne
> > >> ___
> > >> 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"


  1   2   3   4   5   6   7   8   9   10   >