Re: Making bootable USB keys

2009-09-04 Thread Samuel Martín Moro
In fact, we provide the servers and the keys.
So we're sure everything will work.

And also, our install CD is already able to create this kind of USB stick.
It was a former co-worker who did it.
I started mine looking its. But most of used commands haven't exact
equivalent under linux (and I fucking hate sfdisk and counting in
cylinders!)

Here's an example of a generated stick:
h2g2:~# fdisk da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT)
start 63, size 6602652 (3223 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 410/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 6602715, size 1317330 (643 Meg), flag 80 (active)
beg: cyl 411/ head 0/ sector 1;
end: cyl 492/ head 254/ sector 63
The data for partition 3 is:

The data for partition 4 is:

h2g2:~#



Samuel Martín Moro
CamTrace
{EPITECH.} tek4



On Fri, Sep 4, 2009 at 6:31 AM, Fbsd1  wrote:

> Samuel Martín Moro wrote:
>
>> Hello
>>
>> I'm having some troubles, trying to create bootable USB keys.
>> I found (freebsd-hackers ML archives) a script, supposed to create the
>> bootable image from my iso file.
>> But, it still don't boot... (I may do it wrong)
>>
>> In details:
>> -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server.
>> -We burn our install CD (and, in a few, our USB sticks) on a Ferdora 9
>> (sorry...)
>> -USB sticks must contain a FAT32 partition (we'ld like to provide doc for
>> windows users)
>>
>> Well, my english isn't so great... so I'll post my code (more
>> understandable)
>>
>>
> clip 
>
> I have same problem with getting a usb stick to boot. After much testing
> with different sticks and PC combinations have come to this conclusion.
>
> When usb hardware first can out they were created for usb 1.0 standard and
> at that same period PC's where using software drivers for usb support and
> the PC's bio's boot selection did not include option to boot from usb disk.
> As usb devices became more popular PC manufactures started adding USB
> firmware to their motherboards for usb 2.0 standard. From my research into
> usb 2.0 it only supports data recording and does not support booting
> function. About 2007 usb 2.2 standard came out and it supports an usb memory
> stick as bootable. In 2008 some manufactures of motherboards added usb 2.2
> standard to their motherboards and bio's selection to boot from memory
> stick.
>
> To be bootable the first file on the the stick has to be the boot image.
>  Haveing a ms fat partition first on the stick will never work unless you
> fill it with an bootable ms/windows or ms/dos system or the same kind of
> setup found on the cdrom1 release cd.
>
> Only usb 2.2 memory sticks are bootable on newer PC's that have usb 2.2
> firmware on their motherboards and matching Bio's with selection for booting
> from usb 2.2 memory sticks. Please note that bio's booting selection for
> booting from USB disk is different than booting selection for booting from
> usb memory stick. I have posted many posts on this list about this subject
> and have not received any posts contrary to the above statement.
>
> The pending 8.0 release has a complete rewrite of the USB code and a new
>  stick.img is being generated as part of the release install distribution's.
> I can dd the 8.0-stick.img file to an 2.0 stick and it never boots, but do
> the same thing to a 2.2 stick and it boots on all 3 of my PC manufactured
> since June 2008.
>
> Final Conclusion: Booting from a USB memory stick successfully is totally
> dependent on using new start-of-the-art hardware.
>
>
>
>
>
>
>
>
___
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: KDE3 --> KDE4

2009-09-04 Thread Mel Flynn
On Wednesday 26 August 2009 12:50:00 Michiel Overtoom wrote:

> I never understood the need for transparent windows.  If you're working in
> a window you want to concentrate on its contents, not on stuff that's
> happening beneath it.  It breaks the flow.  I think it's indicative of the
> ritalin-generation of teens who can't concentrate for two minutes and need
> to constantly tweet about nonsense.  Geez, I'm getting old ;-)

I felt the same way initially. However, I'm not old enough yet, to remember I 
can get used to things and now that I have, it doesn't bother me and at times 
it's convenient (f.e. when repositioning windows). Still, it's easy to turn 
off. I'm also using the "Flip Switch" to alt-tab windows, which is much more 
pleasant then having to read sometimes missing window titles/icons in a list.
I can definitely do without Kontact's aggregation of message lists, other then 
that, after tweaking it, can't say that I miss KDE 3, even though I had the 
initial shocker you experienced. I also did a fair amount of tweaking after 
the first KDE3 install and I can't honestly remember if I took longer then or 
now.
-- 
Mel
___
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"


SANE configuration ... ideas?

2009-09-04 Thread Modulok
I want a scanner. I found one I like. I then checked the SANE
'Supported Scanners' list. My scanner is there:

"Perfection V300 Photo  USB 0x04b8/0x0131   goodrequires DFSG non-free
esci-interpreter-gt-f720overseas version of the GT-F620"

I'm not sure what the 'requires DFSG...' business is about, but lets
get it working on FreeBSD. I followed the handbook section on
scanners. After installing a few ports and tweaking a config file
let's see if 'scanimage' knows about it:

   scanimage -L
   device `epson:libusb:/dev/usb3:/dev/ugen0' is a Epson  flatbed scanner

Yay! Let's scan something:

   scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 > foo.pnm
   scanimage: rounded value of br-x from -32768 to 0
   scanimage: rounded value of br-y from -32768 to 0
   scanimage: sane_start: Invalid argument

Maybe the backend just doesn't set a reasonable defaults for
the image width/height? Let's try it manually!

   scanimage -x 640 -y 480 -d epson:libusb:/dev/usb3:/dev/ugen0 > foo.pnm
   scanimage: rounded value of br-x from 640 to -32768
   scanimage: rounded value of br-y from 480 to -32768
   scanimage: sane_start: Invalid argument

Somewhere, something is horribly wrong. Maybe it has to do with that
'requires DFSG non-free esci-interpreter-gt-f720' business. What is
that? Where do I get it and how do I use it? ... and more importantly,
how do I go about getting this scanner to work? I'm willing to read
and tweak, but I'm not sure what I'm supposed to tweak anymore.

Thanks!
-Modulok-
___
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: Making bootable USB keys

2009-09-04 Thread Samuel Martín Moro
Hello

So, for the hexdump problem (files that begin differently), I found that
status=noxfer isn't a correct dd option on FreeBSD... (yeah, and writting
scripts with `>/dev/null 2>&1' isn't such a good idea...)

I tested back, it failed again.
I used a generated stick (by our FreeBSD script) to compare with mine.

da0 (mine) / da1 (good)
da0s2 and da1s2 are (nearly) the same for 8192b (the start of daXs2a)
then, da0s2a is:
1e80  00 00 00 04 00 ff ff ff  ff 2f 7c 5c 2d 00 00 00
|./|\-...|
1e90  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
||
*
2000  00 00 00 00 00 00 00 00  20 00 00 00 30 00 00 00  |
...0...|
2010  38 00 00 00 48 00 00 00  00 00 00 00 ff ff ff ff
|8...H...|
2020  b9 db a0 4a 58 af 11 00  7e a8 11 00 2b 00 00 00
|...JX...~...+...|

and da1s2a is:
1e80  00 00 00 04 00 ff ff ff  ff 2f 7c 5c 2d 00 00 00
|./|\-...|
1e90  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
||
*
2000  72 32 45 69 a2 45 71 4b  d3 2c f5 2e e9 82 28 cd
|r2Ei.EqK.,(.|
2010  b6 d4 02 b1 e2 34 51 36  76 c5 b5 22 4a 0e 4b aa
|.4Q6v.."J.K.|
2020  b5 54 71 3e a5 c7 36 8a  52 b9 77 a9 18 6c f3 e9
|.Tq>..6.R.w..l..|

I searched into my generated file, there's no "r2Ei".

I'll post updates.
(But if you can help ... ^^)


Thanks!

Samuel Martín Moro
CamTrace
{EPITECH.} tek4



On Fri, Sep 4, 2009 at 9:51 AM, Samuel Martín Moro wrote:

> In fact, we provide the servers and the keys.
> So we're sure everything will work.
>
> And also, our install CD is already able to create this kind of USB stick.
> It was a former co-worker who did it.
> I started mine looking its. But most of used commands haven't exact
> equivalent under linux (and I fucking hate sfdisk and counting in
> cylinders!)
>
> Here's an example of a generated stick:
> h2g2:~# fdisk da0
> *** Working on device /dev/da0 ***
> parameters extracted from in-core disklabel are:
> cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl)
>
> parameters to be used for BIOS calculations are:
> cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl)
>
> Media sector size is 512
> Warning: BIOS sector numbering starts with sector 1
> Information from DOS bootblock is:
> The data for partition 1 is:
> sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT)
> start 63, size 6602652 (3223 Meg), flag 0
> beg: cyl 0/ head 1/ sector 1;
> end: cyl 410/ head 254/ sector 63
> The data for partition 2 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> start 6602715, size 1317330 (643 Meg), flag 80 (active)
> beg: cyl 411/ head 0/ sector 1;
> end: cyl 492/ head 254/ sector 63
> The data for partition 3 is:
> 
> The data for partition 4 is:
> 
> h2g2:~#
>
>
>
> Samuel Martín Moro
> CamTrace
> {EPITECH.} tek4
>
>
>
> On Fri, Sep 4, 2009 at 6:31 AM, Fbsd1  wrote:
>
>> Samuel Martín Moro wrote:
>>
>>> Hello
>>>
>>> I'm having some troubles, trying to create bootable USB keys.
>>> I found (freebsd-hackers ML archives) a script, supposed to create the
>>> bootable image from my iso file.
>>> But, it still don't boot... (I may do it wrong)
>>>
>>> In details:
>>> -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server.
>>> -We burn our install CD (and, in a few, our USB sticks) on a Ferdora 9
>>> (sorry...)
>>> -USB sticks must contain a FAT32 partition (we'ld like to provide doc for
>>> windows users)
>>>
>>> Well, my english isn't so great... so I'll post my code (more
>>> understandable)
>>>
>>>
>> clip 
>>
>> I have same problem with getting a usb stick to boot. After much testing
>> with different sticks and PC combinations have come to this conclusion.
>>
>> When usb hardware first can out they were created for usb 1.0 standard and
>> at that same period PC's where using software drivers for usb support and
>> the PC's bio's boot selection did not include option to boot from usb disk.
>> As usb devices became more popular PC manufactures started adding USB
>> firmware to their motherboards for usb 2.0 standard. From my research into
>> usb 2.0 it only supports data recording and does not support booting
>> function. About 2007 usb 2.2 standard came out and it supports an usb memory
>> stick as bootable. In 2008 some manufactures of motherboards added usb 2.2
>> standard to their motherboards and bio's selection to boot from memory
>> stick.
>>
>> To be bootable the first file on the the stick has to be the boot image.
>>  Haveing a ms fat partition first on the stick will never work unless you
>> fill it with an bootable ms/windows or ms/dos system or the same kind of
>> setup found on the cdrom1 release cd.
>>
>> Only usb 2.2 memory sticks are bootable on newer PC's that have usb 2.2
>> firmware on their motherboards and matching Bio's with selection for booting
>> from usb 2.2 memory sticks. Please note that bio's booting selection for
>> booting from USB disk is different than booting selection for booting from
>> us

Re: Samba PDC with LDAP backend

2009-09-04 Thread Ruel Luchavez
On Mon, Jul 20, 2009 at 6:51 PM, Ruben de Groot  wrote:

> On Mon, Jul 20, 2009 at 06:22:50PM +0800, Ruel Luchavez typed:
> >
> > But to some one out their who has an idea to this
> >
> > you are very much WELCOME:-)
>
> I think this was mentioned before, but did you have to edit
> /usr/local/etc/smbldap-tools/smbldap.conf and
> /usr/local/etc/smbldap-tools/smbldap_bind.conf
>
> Ruben
>
>
Wew...after a long weeks of searching I finally solve my own problem..
Lucky for me..

But, I have one question left..
How do you join the Windows xp client on the domain? Is there another tweak
must be done?


-- 
Regards,

rHueL
Happy BSD user...
Country:Philippines
___
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: SANE configuration ... ideas?

2009-09-04 Thread Warren Block

On Fri, 4 Sep 2009, Modulok wrote:


I want a scanner. I found one I like. I then checked the SANE
'Supported Scanners' list. My scanner is there:

"Perfection V300 Photo USB 0x04b8/0x0131   goodrequires DFSG 
non-free
esci-interpreter-gt-f720overseas version of the GT-F620"

I'm not sure what the 'requires DFSG...' business is about


Possibly the scanner requires a firmware download.  The Handbook scanner 
example shows how to do that, but I think it's more involved with that 
scanner.  It appears that Luigi Rizzo ported the required software; see


http://www.avasys.jp/cgi-bin/lx/bbs/en/scanner-bbs/hyperbbs.cgi?mode=view;Code=5072

and the link to his port

http://info.iet.unipi.it/~luigi/FreeBSD/20081230-epkowa-port.tgz

-Warren Block * Rapid City, South Dakota 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: Making bootable USB keys

2009-09-04 Thread Daniel O'Connor
WARNING: This e-mail has been altered by MIMEDefang.  Following this
paragraph are indications of the actual changes made.  For more
information about your site's MIMEDefang policy, contact
Postmaster .  For more information about MIMEDefang, 
see:

http://www.roaringpenguin.com/mimedefang/enduser.php3

An attachment named makeusb.sh was removed from this document as it
constituted a security hazard.  If you require this document, please contact
the sender and arrange an alternate means of receiving it.

On Fri, 4 Sep 2009, Samuel Martín Moro wrote:
> I'm having some troubles, trying to create bootable USB keys.
> I found (freebsd-hackers ML archives) a script, supposed to create
> the bootable image from my iso file.
> But, it still don't boot... (I may do it wrong)
>
> In details:
> -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server.
> -We burn our install CD (and, in a few, our USB sticks) on a Ferdora
> 9 (sorry...)
> -USB sticks must contain a FAT32 partition (we'ld like to provide doc
> for windows users)
>
> Well, my english isn't so great... so I'll post my code (more
> understandable)

I use the attached script (on FreeBSD :) to prep a USB stick for 
booting.

I imagine you could munge it into your setup without too much trouble.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.
___
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: Making bootable USB keys

2009-09-04 Thread Daniel O'Connor
On Fri, 4 Sep 2009, Daniel O'Connor wrote:
> WARNING: This e-mail has been altered by MIMEDefang.  Following this
> paragraph are indications of the actual changes made.  For more
> information about your site's MIMEDefang policy, contact
> Postmaster .  For more information about
> MIMEDefang, see:
>
> http://www.roaringpenguin.com/mimedefang/enduser.php3
>
> An attachment named makeusb.sh was removed from this document as it
> constituted a security hazard.  If you require this document, please
> contact the sender and arrange an alternate means of receiving it.

Oops try this http://www.gsoft.com.au/~doconnor/makeusb.sh

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


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


Re: What invokes cricket on FreeBSD

2009-09-04 Thread stan
On Thu, Sep 03, 2009 at 11:41:28PM +0200, Mel Flynn wrote:
> On Thursday 03 September 2009 22:23:47 stan wrote:
> > On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote:
> > > On Thursday 03 September 2009 21:02:41 stan wrote:
> > > > pnoc# cat collect-subtrees
> > > > #!/bin/sh
> > > >
> > > > echo STARTED >> /tmp/stan
> > > > which perl >> /tmp/stan
> > > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan
> > > > echo Done >> /tmp/stan
> > > >
> > > > /tmp stan contains:
> > > >
> > > > pnoc# cat /tmp/stan
> > > > STARTED
> > > > /usr/bin/perl
> > > > Done
> > > > STARTED
> > > > /usr/bin/perl
> > > > Done
> > > >
> > > > So, cron is invoking the correct command, and perl can be found, but
> > > > the original collect_subtrees perl script silently dies.
> > > >
> > > > I am convinced it's an environemt probkl`lem, I am just uncertain how
> > > > to determine what.
> > >
> > > I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink
> > > (perl upgrade gone bonkers, f.e. done with ro mounted /usr) and another
> > > cent on the perl script using system() function, with pathless commands
> > > (that is environment).
> 
> Ok, one liner:
> su -m cricket env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin \
>/usr/local/cricket/cricket/collect-subtrees.pl normal
> 
> I've downloaded the 1.0.5 version, but can't quickly see where that would go 
> wrong with this script. touch is in /usr/bin, so that should work.
> Any cron messages in /var/mail/cricket?

I am away from work today, and won't be back till Tuesday. I can't access
this from home.

I will try your test then. The only messages that are getting to
/var/log/cron is just the one saying that the task was executed.


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
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: What invokes cricket on FreeBSD

2009-09-04 Thread Mel Flynn
On Friday 04 September 2009 16:28:07 stan wrote:
> On Thu, Sep 03, 2009 at 11:41:28PM +0200, Mel Flynn wrote:
> > On Thursday 03 September 2009 22:23:47 stan wrote:
> > > On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote:
> > > > On Thursday 03 September 2009 21:02:41 stan wrote:
> > > > > pnoc# cat collect-subtrees
> > > > > #!/bin/sh
> > > > >
> > > > > echo STARTED >> /tmp/stan
> > > > > which perl >> /tmp/stan
> > > > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan
> > > > > echo Done >> /tmp/stan
> > > > >
> > > > > /tmp stan contains:
> > > > >
> > > > > pnoc# cat /tmp/stan
> > > > > STARTED
> > > > > /usr/bin/perl
> > > > > Done
> > > > > STARTED
> > > > > /usr/bin/perl
> > > > > Done
> > > > >
> > > > > So, cron is invoking the correct command, and perl can be found,
> > > > > but the original collect_subtrees perl script silently dies.
> > > > >
> > > > > I am convinced it's an environemt probkl`lem, I am just uncertain
> > > > > how to determine what.
> > > >
> > > > I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink
> > > > (perl upgrade gone bonkers, f.e. done with ro mounted /usr) and
> > > > another cent on the perl script using system() function, with
> > > > pathless commands (that is environment).
> >
> > Ok, one liner:
> > su -m cricket env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin \
> >/usr/local/cricket/cricket/collect-subtrees.pl normal
> >
> > I've downloaded the 1.0.5 version, but can't quickly see where that would
> > go wrong with this script. touch is in /usr/bin, so that should work. Any
> > cron messages in /var/mail/cricket?
>
> I am away from work today, and won't be back till Tuesday. I can't access
> this from home.
>
> I will try your test then. The only messages that are getting to
> /var/log/cron is just the one saying that the task was executed.
Yea, the error messages end up in /var/mail/$USER or MAILTO variable if set in 
crontab. /var/log/maillog should have some tell tales.
-- 
Mel
___
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: 'alias' + sudo

2009-09-04 Thread George Davidovich
On Thu, Sep 03, 2009 at 08:10:36PM -0400, Jerry wrote:
> On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn wrote:
> 
> > alias spico='/usr/local/bin/sudo pico -m' and be done with it.

Instead of an extra alias, why not export $VISUAL or $EDITOR, and rely
on sudoedit(8)?

> That is what I am currently doing; however,there are other commands
> that I want to use that are not available when used via sudo without
> modifying the alias. I did not realize that sudo had such a
> limitation.

It's not a "limitation".  It's a feature.  ;-)  Re-read the sudo
manpage.

I'd be surprised if most of your aliases would ever require root
privileges, and are anything but one-off shortcuts for your personal
use.

For those that do, I'd suggest replacing them with a function (or
script) that tests for root privileges (using something like id(1)), and
invokes sudo when appropriate.  

Otherwise, you may want to consider using 'su -m'.  That will your
current environment unmodified and all your existing aliases will remain
available for use.

-- 
George
___
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"


conky, anyone?

2009-09-04 Thread PJ
Anybody have any luck with installing conky on 7.2?
I get errors when configured with or without xmms2:
with - file xmmxclient.4 not found
without - conky.h:67:18: error: bmpx.h: no such file of directory...
TIA
___
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: 'alias' + sudo

2009-09-04 Thread Randy Belk
On Fri, Sep 4, 2009 at 10:50 AM, George Davidovich wrote:
> On Thu, Sep 03, 2009 at 08:10:36PM -0400, Jerry wrote:
>> On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn wrote:
>>
>> > alias spico='/usr/local/bin/sudo pico -m' and be done with it.
>
> Instead of an extra alias, why not export $VISUAL or $EDITOR, and rely
> on sudoedit(8)?
>
>> That is what I am currently doing; however,there are other commands
>> that I want to use that are not available when used via sudo without
>> modifying the alias. I did not realize that sudo had such a
>> limitation.
>
> It's not a "limitation".  It's a feature.  ;-)  Re-read the sudo
> manpage.
>
> I'd be surprised if most of your aliases would ever require root
> privileges, and are anything but one-off shortcuts for your personal
> use.
>
> For those that do, I'd suggest replacing them with a function (or
> script) that tests for root privileges (using something like id(1)), and
> invokes sudo when appropriate.
>
> Otherwise, you may want to consider using 'su -m'.  That will your
> current environment unmodified and all your existing aliases will remain
> available for use.
>
> --
> George
> ___
> 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"
>


There is a way for what you are wanting to do.
Make an alias for sudo that looks like this "sudo='sudo -E (Your default shell)"
Since I use zsh my alias looks like this sudo='sudo -E zsh'
It perserves all of your aliases, paths, and everything else

.

-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
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"


One MAC, two IP with DHCP (dhclient) how?

2009-09-04 Thread Peter B

In an enviroment where the ethernet network interface is connected to a public
ethernet network (internet). And a IPv4 address assignment scheme is static.
One can simple add primary IP by:
  ifconfig  inet 1.2.3.4

And an additional aliases with:
  ifconfig  inet 1.2.3.5 alias

This alias IP can then be used within a jail(8) enviroment.   
So far all is perfectly fine.

But in an enviroment where the primary IP is retrieved or set with DHCP by
using:
  dhclient 

How does one request an additional IP beside the primary one ..?
Setting an alias directly with ifconfig won't work because the upstream network
won't route it.

Should one set an explicit xid or Client ID somehow? and how is that done in
such case?
(option dhcp-client-identifier data-string; in dhclient.conf)

___
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: cc -march questions

2009-09-04 Thread Michael Powell
Scott Bennett wrote:

>  On Thu, 3 Sep 2009 10:28:09 -0400 Daniel Molina Wegener
>  
> wrote:
>>2009/9/3 Scott Bennett 
>>
>>> What exactly does "cc -march=prescott" enable cc to do?  Does it
>>> include
>>> instruction scheduling for the pipeline structure of the Prescott CPUs?
>>>  Does
>>> it include other options, e.g., "-mmmx -msse -msse2 -msse3"?
>>> Thanks in advance for any information on the above!
>>>
>>
>>According to the GCC manual page, it enables MMX, SSE, SSE2 and SSE3
>>instruction set support.
>>
>>Try:
>>$ man 1 gcc
>>/prescott
>>
>  Thanks much for your reply.  This is very bizarre.  I think I've
>  looked
> at that page at least 50 times in the past few years and somehow never saw
> those lines.  Sigh. :-}
>  I've had CPUTYPE=prescott in my /etc/make.conf for a long time now,
> and I recently installed math/atlas-devel.  I wonder if specifying
> CPUTYPE=prescott may have caused it to choose the wrong components to
> include in the final version of libalapack.  If so, then I should rebuild
> it without CPUTYPE=prescott.
> 

If you do: dmesg | grep Features you will get a list of what the processor 
supports. You may then examine the /usr/src/share/mk/bsd.cpu.mk file looking 
for a match. Yes it is somewhat arcane to read, but it does list all.

Notice it refers to CPUTYPE. I usually use a line such as CPUTYPE?= athlon 
in my make.conf. Been doing it like this for years and never had any 
problem. And, of course, let's not forget the MAN pages :-)  YMMV

-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: Freebsd Built-in vacation program does not auto reply

2009-09-04 Thread Andre Albsmeier
On Thu, 16-Apr-2009 at 18:00:26 +, lyd mc wrote:
> Hi guys,
> 
> Why Freebsd built-in vacation program (/usr/bin/vacation) does not auto reply?
> 
> I am using fresh installed Freebsd7.0 and 7.1. here is my configs.

Did you solve the problem already? I had a similar issue and
tracked it down to a really strange compiler bug...

-Andre

> 
> Under the home directory of the user (alydio.mc)
> 
> .forward
> ??? \alydio.mc, "|/usr/bin/vacation alydio.mc"
> 
> .vacation.msg
> ?? Subject: On vacation message
> ?? From: alydio...@mydomain.com
> ?? I'm on vacation and will not be reading my mail for a while.
> ? Your mail will be dealt with when I return.
> .
> from postfix/sendmail logs:
> 
> ...sniff
> ?(delivered to command: /usr/bin/vacation alydio.mc)
> 
> after this nothing will happened... no errors no warnings...? 
> 
> However the one I installed from ports (/usr/local/bin/vacation) works fine.
> 
> 
> I want to use the freebsd base vacation program.? 
> 
> Please help.
> 
> Thank you,
> alydiomc
> 
> 
>   

-- 
Micro$oft: When will your system crash today?
___
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"


Advertisement Inquiry

2009-09-04 Thread Jun Mutaguchi
Hello,

My name is Jun from EnticeLabs, and we are interested in advertising on 
networkattacheddatastorage.com. Could you tell me who to contact?

Thanks for your time,
Jun Mutaguchi
EnticeLabs, Inc.
___
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: conky, anyone?

2009-09-04 Thread Herbert J. Skuhra
2009/9/4 PJ :
> Anybody have any luck with installing conky on 7.2?
> I get errors when configured with or without xmms2:
> with - file xmmxclient.4 not found
> without - conky.h:67:18: error: bmpx.h: no such file of directory...
> TIA

Error 1: Apply attached patch

Error 2: disable BMPX support. Neither multimedia/bmpx nor
sysutils/conky installs/includes bmpx.h.

- Herbert


conky.diff
Description: Binary data
___
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: What invokes cricket on FreeBSD

2009-09-04 Thread stan
On Fri, Sep 04, 2009 at 05:04:19PM +0200, Mel Flynn wrote:
> On Friday 04 September 2009 16:28:07 stan wrote:
> > On Thu, Sep 03, 2009 at 11:41:28PM +0200, Mel Flynn wrote:
> > > On Thursday 03 September 2009 22:23:47 stan wrote:
> > > > On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote:
> > > > > On Thursday 03 September 2009 21:02:41 stan wrote:
> > > > > > pnoc# cat collect-subtrees
> > > > > > #!/bin/sh
> > > > > >
> > > > > > echo STARTED >> /tmp/stan
> > > > > > which perl >> /tmp/stan
> > > > > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan
> > > > > > echo Done >> /tmp/stan
> > > > > >
> > > > > > /tmp stan contains:
> > > > > >
> > > > > > pnoc# cat /tmp/stan
> > > > > > STARTED
> > > > > > /usr/bin/perl
> > > > > > Done
> > > > > > STARTED
> > > > > > /usr/bin/perl
> > > > > > Done
> > > > > >
> > > > > > So, cron is invoking the correct command, and perl can be found,
> > > > > > but the original collect_subtrees perl script silently dies.
> > > > > >
> > > > > > I am convinced it's an environemt probkl`lem, I am just uncertain
> > > > > > how to determine what.
> > > > >
> > > > > I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink
> > > > > (perl upgrade gone bonkers, f.e. done with ro mounted /usr) and
> > > > > another cent on the perl script using system() function, with
> > > > > pathless commands (that is environment).
> > >
> > > Ok, one liner:
> > > su -m cricket env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin \
> > >/usr/local/cricket/cricket/collect-subtrees.pl normal
> > >
> > > I've downloaded the 1.0.5 version, but can't quickly see where that would
> > > go wrong with this script. touch is in /usr/bin, so that should work. Any
> > > cron messages in /var/mail/cricket?
> >
> > I am away from work today, and won't be back till Tuesday. I can't access
> > this from home.
> >
> > I will try your test then. The only messages that are getting to
> > /var/log/cron is just the one saying that the task was executed.
> Yea, the error messages end up in /var/mail/$USER or MAILTO variable if set 
> in 
> crontab. /var/log/maillog should have some tell tales.

OK, I am thinking that I have a ,forward file in crickets hme directtory. I
will check.

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
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: conky, anyone?

2009-09-04 Thread PJ
Herbert J. Skuhra wrote:
> 2009/9/4 PJ :
>   
>> Anybody have any luck with installing conky on 7.2?
>> I get errors when configured with or without xmms2:
>> with - file xmmxclient.4 not found
>> without - conky.h:67:18: error: bmpx.h: no such file of directory...
>> TIA
>> 
>
> Error 1: Apply attached patch
>
> Error 2: disable BMPX support. Neither multimedia/bmpx nor
> sysutils/conky installs/includes bmpx.h.
>   
Thanks, Herbert,

I got rid of the all the dependencies except for the last three in the
configure options and now it installed.
Didn't need the dependencies as I never use them... should have learned
from that dumb cat that died from curiosity. ;-)
PJ
___
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"