Re: how to get audio from youtube?

2012-12-11 Thread Waitman Gobble
On Dec 11, 2012 8:19 PM, "Gary Kline"  wrote:
>
>
> is there a way I can get the audio off u-toob?
>
> --
>  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"

oh its like the new old napster.

Youtube downloader works pretty good, needs python.

http://rg3.github.com/youtube-dl/

then convert using ffmpeg.

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: how to get audio from youtube?

2012-12-11 Thread Gary Kline
On Tue, Dec 11, 2012 at 08:38:23PM -0800, Waitman Gobble wrote:
> On Dec 11, 2012 8:19 PM, "Gary Kline"  wrote:
> >
> >
> > is there a way I can get the audio off u-toob?
> >
> > --
> >  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"
> 
> oh its like the new old napster.
> 
> Youtube downloader works pretty good, needs python.
> 
> http://rg3.github.com/youtube-dl/
> 
> then convert using ffmpeg.
> 
> Waitman Gobble
> San Jose California USA



thankee; will check it out!
-- 
 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: how to get audio from youtube?

2012-12-11 Thread Polytropon
On Tue, 11 Dec 2012 20:17:05 -0800, Gary Kline wrote:
> 
>   is there a way I can get the audio off u-toob?

Depends. The FreeBSD solution:

1. Use youtube-dl (it's in ports) to download the file.

2. Use ffmpeg -i   to get the audio
   converted to MP3.

This process can be scripted if you require batch operation.

If you are fine with the native audio component, you could
just use "mplayer -dumpaudio  && mv stream.dump
", but that's not always optimal for further
use (and depends on FLV vs. MP4 file format).

Alternative: There are web services that allow you to paste
a YT URI and then download it in MP3 format. Such a service
is http://www.youtube-mp3.org - but there are several others.

But please be advised that it's illegal to listen to MP3 in
the USA. :-)




-- 
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: Help! Firefox + acroread costs me $$$$

2012-12-11 Thread Polytropon
On Tue, 11 Dec 2012 20:10:16 -0700 (MST), Warren Block wrote:
> On Tue, 11 Dec 2012, Ronald F. Guilmette wrote:
> 
> > So, on FreeBSD, how does one get firefox and/or opera to use, for example,
> > evince or some other PDF displayer instead of using this goddamn lousey
> > buggy *&^%$#@ acroread ?
> 
> Remove acroread entirely.  Install graphics/xpdf.  Click on a PDF link, 
> tell Firefox to use xpdf and do that for all files of this type.

The xpdf program seems to _sometimes_ have problems with
carelessly created PDF documents. The best idea would be
to use a Firefox extension (as suggested) to first _download_
and _save_ the PDF file to disk for further use.

Then, testing xpdf and using it to print the file would be
much easier. If the file has been paid for, it can be opened
several times whatever program should be tested. For example,
even gv or zathura could be tried. And in the end, even
acroread. Even _I_ have to admit that I'm using it from time
to time, even if it REDEFINES THE MOUSE CURSOR to an ugly
white arrow! What a stupid move...

However, for paid content, first saving, then using, would
be the best way to deal with it. So the "in-line processing
chain" consisting of Firefox + somehow embedded acroread
(really?) could be split, so the reason for the system
freeze could be determined.




-- 
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: Mounting a samba share on boot?

2012-12-11 Thread Polytropon
On Tue, 11 Dec 2012 14:08:38 -0800 (PST), Bill Tillman wrote:
> Typically, Samba is used so that Windows or other SMB type
> OS'es can access the server. That said, I would simplify all
> this with the way I have mine setup. You will of course need
> the shares configured in your smb.conf, then simply put a
> command in your /etc/rc.local or /etc/rc.d/ to launch smdb
> and nmbd. I don't rely on anything in /etc/fstab to use samba.
> It's all in my smb.conf file.

Yes, that would be "the other way round", which I thought would
be less probable due to the question presented in the subject.
Terms like "mount [...] on boot" suggests that FreeBSD would act
as a SMB client here. Of course, the standard way to do things
like this would usually be something like NFS, which is not
very well supported in "Windows" land (and therefor requiring
SMB stuff).

Delegating the configuration into _one_ file (instead of spreading
it across /etc/fstab, /etc/nsmb.conf and maybe some handcrafted
/usr/local/etc/rc.d script) sounds like a much better approach.




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


how to get audio from youtube?

2012-12-11 Thread Gary Kline

is there a way I can get the audio off u-toob?

-- 
 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: Help! Firefox + acroread costs me $$$$

2012-12-11 Thread Warren Block

On Tue, 11 Dec 2012, Ronald F. Guilmette wrote:


So, on FreeBSD, how does one get firefox and/or opera to use, for example,
evince or some other PDF displayer instead of using this goddamn lousey
buggy *&^%$#@ acroread ?


Remove acroread entirely.  Install graphics/xpdf.  Click on a PDF link, 
tell Firefox to use xpdf and do that for all files of this type.

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


Re: Can't set xfce4 logout dialog buttons

2012-12-11 Thread Warren Block

On Mon, 10 Dec 2012, David Demelier wrote:

I added a file for handling shutdown / reboot for Xfce4, the content is 
located in 
/usr/local/etc/polkit-1/localauthority/50-local.d/51-sys-mgmt.pkla.


[Restart]
Identity=unix-group:operator
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Shutdown]
Identity=unix-group:operator
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=yes
ResultActive=yes

But clicking on the on the logout button, will open the xfce4 dialog and only 
shows "Logout" all others buttons are grey'ed. I have exactly the same setup 
on my laptop but with a [Suspend] added, and on my laptop the dialog show 
Logout and all buttons authorized.


On my both machine my user is in the operator group, so I don't know where I 
missed something for this machine..


startxfce4 must be called with the --with-ck-launch option.  Then it 
works.

___
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 Release Date Challenge, plus other stuff the project needs

2012-12-11 Thread Julian H. Stacey
anonym...@foto.nl1.torservers.net wrote:
> We, the users of FreeBSD, *do hereby challenge* the FreeBSD project

Troll Detected ?
  - List remit requires a question. Poster gave no question, just criticised.
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  - There are better addresses than questions@ to contact &
influence more FreeBSD volunteer workers & decision makers.
  - questions@ iswrong address for disparate people responsible for seperate
issues eg release schedules, wikis, etc.  Aggregating noise here is Bad.
  - Anonymous criticism discourages consideration of points which might
benefit FreeBSD if raised for consideration [later], to other
addresses, Not posted anonymously.

 can be requested to block addresses.

For random chat:
freebsd-c...@freebsd.org
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
Other lists
http://lists.freebsd.org/mailman/listinfo

If waiting for 9.1-RELEASE, src/ available last week compiles & runs.
  http://lists.freebsd.org/pipermail/freebsd-stable/2012-December/071044.html

Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with "> ".
 Send plain text. Not: HTML, multipart/alternative, base64, quoted-printable.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Help! Firefox + acroread costs me $$$$

2012-12-11 Thread Dima Panov

12.12.2012 12:16, Ronald F. Guilmette пишет:

So, on FreeBSD, how does one get firefox and/or opera to use, for example,
evince or some other PDF displayer instead of using this goddamn lousey
buggy *&^%$#@ acroread ?

Or do I have to fire up my Windows machine, just to print out a lousey
PDF ?



pdf_download extention for firefox will help you to control links to pdf 
files (open in tab, download, open with another reader)


--
Dima Panov (flu...@freebsd.org)
(KDE, Office)@FreeBSD team

Facebook: http://www.facebook.com/fluffy.khv
IRC: fluffy@EFNet, fluffykhv@FreeNode
twitter: fluffy_khv | skype: dima.panov

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

Help! Firefox + acroread costs me $$$$

2012-12-11 Thread Ronald F. Guilmette

This problem has been annoying me for some time now, but until now
it was never really an issue that I could not easily work-around.

I was just trying to download a PDF document off of the Pacer[tm]
federal courts web site.  These are not free.  They cost ten cents
per page.  I tried to download a 29 page document and it downloaded
into firefox just fine and then was displayed in a new firefox tab
which was apparently using acroread8 to display the document.

I know from past experience that acroreadN runs like crap on FreeBSD...
often using up enormous amounts of CPU % for no apparently good reason.
But this time it really got my goat.  I clicked on the little acroread
icon for printing the current document, a pop-up dialog box for printing
came up, but before I could hit the print button on that, everything
relating to firefox... all open tabs and all open windows... froze up
solid.

Now, having wasted three bucks for no good reason (and STILL not having
a hardcopy of the document I wanted), I am motivated to finally get this
sorted out.

So, on FreeBSD, how does one get firefox and/or opera to use, for example,
evince or some other PDF displayer instead of using this goddamn lousey
buggy *&^%$#@ acroread ?

Or do I have to fire up my Windows machine, just to print out a lousey
PDF ?
___
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 Release Date Challenge, plus other stuff the project needs

2012-12-11 Thread Michael Sierchio
The FreeBSD Foundation is not the FreeBSD Project.  I encourage you to
give to the Foundation, because it exists to support the Project.  But
the majority of work done on the development and maintenance is not
funded by the Foundation - by and large, it is self-funded by
contributors, or occasionally funded by outside grants for specific
functions (e.g. the Trusted BSD framework).

http://www.freebsdfoundation.org/donate/
___
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: make release and mfsroot

2012-12-11 Thread Devin Teske

On Dec 11, 2012, at 2:13 PM, Rick Miller wrote:

> On Tue, Dec 11, 2012 at 5:05 PM, Devin Teske  
> wrote:
>> 
>> Though, to resize the mfsroot, I still rely on release(7) and the above
>> patches.
> 
> Here's another question, have you applied this approach to
> boot_crunch.conf?  I simply replaced the default boot_crunch.conf with
> my own in the source tree.  This is how I discovered MFSSIZE, because
> the resulting boot_crunch binary was larger than the available space.
> 


I've separated the various additions to mfsroot into two categories:

1. Additions that end up in the boot_crunch binary
2. All other additions

I use the release(7) process to produce a custom mfsroot with finely tuned 
boot_crunch, then I use the previously-shared Makefile to put more files in 
(things that are separate from the boot_crunch).

You can read more about my procedure here (complete recipe for customizing any 
part of the mfsroot, while spending as little time in the release(7) process as 
possible):

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/dep/freebsd/patches/README?revision=1.2&view=markup

The above is for the 9.x line, for the 8.x line the instructions are *slightly* 
different:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid83/dep/freebsd/patches/README?revision=1.1&view=markup

You can my customizations to boot_crunch:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/dep/freebsd/patches/local_patches/release%3A%3Ai386%3A%3Aboot_crunch.conf.patch?revision=1.2&view=markup

and again, slightly different for 8.x:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid83/dep/freebsd/patches/local_patches/release%3A%3Ai386%3A%3Aboot_crunch.conf.patch?revision=1.1&view=markup

-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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: make release and mfsroot

2012-12-11 Thread Rick Miller
On Tue, Dec 11, 2012 at 5:05 PM, Devin Teske  wrote:
>
> Though, to resize the mfsroot, I still rely on release(7) and the above
> patches.

Here's another question, have you applied this approach to
boot_crunch.conf?  I simply replaced the default boot_crunch.conf with
my own in the source tree.  This is how I discovered MFSSIZE, because
the resulting boot_crunch binary was larger than the available space.

-- 
Take care
Rick Miller
___
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: Mounting a samba share on boot?

2012-12-11 Thread Bill Tillman





From: Polytropon 
To: Hanafi Syahroini  
Cc: freebsd-questions@freebsd.org 
Sent: Tuesday, December 11, 2012 11:57 AM
Subject: Re: Mounting a samba share on boot?

On Tue, 11 Dec 2012 23:25:56 +0700, Hanafi Syahroini wrote:
> [nothing]

First of all, it's not uncommon to place the question into
the message body (which you did not), and using a descriptive
subject (which you did). :-)

So I assume your question is _how_ to mount a SMB share at
boot.

This can be easily done by adding the required line to the
/etc/fstab file. Because network connection is required to
perform the mount, you could use the "late" option in
addition to other options you might need. See "man mount"
for detais, as well as /etc/rc.d/mountlate.

The line would be like this:

    //USERNAME@SERVERNAME/share  /smb/share  smbfs  rw,late  0  0

In this example, SERVERNAME is the server to access, and "share"
the name of the share; /smb/share will be the directory it will
be mounted at.

Access to multiple "drive letters" would look like this:

    //Administrator@WINPC/a$  /smb/a  smbfs  rw,late  0  0
    //Administrator@WINPC/c$  /smb/c  smbfs  rw,late  0  0
    //Administrator@WINPC/d$  /smb/d  smbfs  rw,late  0  0
    //Administrator@WINPC/e$  /smb/e  smbfs  rw,late  0  0
    //Administrator@WINPC/f$  /smb/f  smbfs  rw,late  0  0

Here "WINPC" is the name of the server. Using "Administrator"
in this case is not safe, but no problem in settings where
people don't care for security anyway. :-)

Also see "man smbfs" and "man fstab" for details.

It might be required to put additional information in
/etc/nsmb.conf, for example:

    [default]
    workgroup=YOUR_WORKGROUP_NAME

    [SERVERNAME]
    addr=192.168.2.2

    [SERVERNAME:USERNAME]
    password=TOPSECRET

Substitute SERVERNAME, USERNAME and TOPSECRET for the
organisational information and access credentials that apply.
See "man nsmb.conf" for details.

Further instructions can easily be found in the online docs:

http://www.freebsd.org/doc/faq/book.html#mount-smb-share

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



Note that if you still encounter network problems, it's better
to write a short rc.d style script that performs the mount_smb
commands, and use the proper keywords to have it run when the
network connection is up and running. See "man rc.d" for
details.


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


That's a great answer but let me insert that most people, not all but most, do 
not use Samba to access a server from other FreeBSD servers. So I feel the two 
replies thus far are overkill. Typically, Samba is used so that Windows or 
other SMB type OS'es can access the server. That said, I would simplify all 
this with the way I have mine setup. You will of course need the shares 
configured in your smb.conf, then simply put a command in your /etc/rc.local or 
/etc/rc.d/ to launch smdb and nmbd. I don't rely on anything in /etc/fstab to 
use samba. It's all in my smb.conf file.

However, Polytropon has presented a great answer here.
___
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: make release and mfsroot

2012-12-11 Thread Devin Teske

On Dec 11, 2012, at 1:50 PM, Rick Miller wrote:

> Hi Devin,
> 
> On Tue, Dec 11, 2012 at 4:22 PM, Devin Teske  
> wrote:
>> Hi Rick,
>> 
>> If you want, you could follow my approach which is to take the completed
>> mfsroot.gz and use a Makefile to manage the creation of custom mfsroots
>> (keeping the original unmodified, making it simpler to test different
>> iterations).
> 
> Very interesting approach.  I like it and will test it.
> 
> It looks as though I would need to add code to the Makefile if files
> copied in later are greater in size than the space available.  Would
> you agree?

Oh… forgot to mention…

The Makefile doesn't adjust the mfsroot's size.

What I do to solve that problem is patch the release(7) process to make a 
bigger mfsroot (and thusly has room for more "stuff") -- this allows me to keep 
the customizations of "what goes in" at a higher level (separate from 
release(7)) while not having to write a lot of code for resizing the mfsroot.

NOTE: I've actually run into major problems with resizing an mfsroot -- trust 
me, it's safer to stick with bumping the sectors in the release(7) makefile.

If you're working in the 8.x line, take a look at this patch for bumping the 
mfsroot size:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid83/dep/freebsd/patches/world_patches/release%3A%3AMakefile.patch?revision=1.1&view=markup

Meanwhile, for the 9.x line:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/dep/freebsd/patches/world_patches/release%3A%3AMakefile.sysinstall.patch?revision=1.1&view=markup

NOTE: For your purposes, you'll only need the first hunk (the second hunk is 
needed for other reasons -- reasons that are documented in the "README" 
one-level-up in the "patches" directory from the above links).


> 
>> The advantage is that you don't have to re-perform the release(7) process
>> each time you want to make a change to your mfsroot.
> 
> This is a very compelling advantage.
> 

Though, to resize the mfsroot, I still rely on release(7) and the above patches.

I've personally never had a need to go beyond 6000 sectors, but I know the guys 
at Yahoo have gone much further.
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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: make release and mfsroot

2012-12-11 Thread Rick Miller
Hi Devin,

On Tue, Dec 11, 2012 at 4:22 PM, Devin Teske  wrote:
> Hi Rick,
>
> If you want, you could follow my approach which is to take the completed
> mfsroot.gz and use a Makefile to manage the creation of custom mfsroots
> (keeping the original unmodified, making it simpler to test different
> iterations).

Very interesting approach.  I like it and will test it.

It looks as though I would need to add code to the Makefile if files
copied in later are greater in size than the space available.  Would
you agree?

> The advantage is that you don't have to re-perform the release(7) process
> each time you want to make a change to your mfsroot.

This is a very compelling advantage.

-- 
Take care
Rick Miller
___
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: make release and mfsroot

2012-12-11 Thread Devin Teske
Hi Rick,

If you want, you could follow my approach which is to take the completed 
mfsroot.gz and use a Makefile to manage the creation of custom mfsroots 
(keeping the original unmodified, making it simpler to test different 
iterations).

The advantage is that you don't have to re-perform the release(7) process each 
time you want to make a change to your mfsroot.

Check it out:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/dep/freebsd/mfsroot/standard/

Basically, you'd grab the Makefile (link below):

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/dep/freebsd/mfsroot/standard/Makefile?revision=1.1

Then create a "dep" directory and "src" directory:

Next, take the virgin mfsroot.gz produced by the release(7) process and dump it 
into the "dep" directory.

Next, put your install.cfg into the "src" directory (just like you see that I 
did).

Optionally populate more files into the "src" directory (see the first link 
above for an example -- example includes "boot/modules/nullfs.ko", "etc/fstab", 
and "etc/group", etc.).

When the "src" directory represents what you'd like to add to the mfsroot, 
you're ready to produce a new copy of the stored original (at 
"dep/mfsroot.gz"), complete with your additions.

Execute:

make from_dep

NOTE: sudo is required

What will happen is that "dep/mfsroot.gz" will be copied to the current working 
directory, the mfsroot is ripped open (requires sudo privileges), the "src" 
directory is layered onto the mfsroot, and finally the mfsroot is packaged back 
up (leaving you with a custom "./mfsroot.gz" for deployment).
-- 
Cheers,
Devin

On Dec 11, 2012, at 11:02 AM, Rick Miller wrote:

> Hi All,
> 
> I generate a bootonly ISO and want to add files to the mfsroot.gz
> created by the release.8 target.  I want sysinstall to load an
> install.cfg which makes a call to doconfig.sh.  The target destination
> for the files is stand/.  My question is will the below patch
> accomplish this for me provided install.cfg and doconfig.sh exist in
> /usr/src/release?
> 
> # diff -u Makefile.orig Makefile
> --- Makefile.orig 2012-12-11 18:15:29.0 +
> +++ Makefile  2012-12-11 19:01:46.0 +
> @@ -509,6 +509,7 @@
>   rm foo; \
>   fi
>   -test -f install.cfg && cp install.cfg ${CHROOTDIR}/usr/src/release
> + -test -f doconfig.sh && cp doconfig.sh ${CHROOTDIR}/usr/src/release
>   echo "#!/bin/sh"> ${_MK}
>   echo "set -ex"  >> ${_MK}
>   echo "trap 'umount /dev || true' 0" >> ${_MK}
> @@ -823,7 +824,9 @@
>   done
> .endif
>   -test -f ${.CURDIR}/install.cfg \
> - && cp ${.CURDIR}/install.cfg ${RD}/mfsfd
> + && cp ${.CURDIR}/install.cfg ${RD}/mfsfd/stand
> + -test -f ${.CURDIR}/doconfig.sh \
> + && cp ${.CURDIR}/doconfig.sh ${RD}/mfsfd/stand
>   @mkdir -p ${RD}/mfsfd/boot
> .if ${TARGET_ARCH} != "ia64" && ${TARGET_ARCH} != "powerpc"
>   @cp ${RD}/trees/base/boot/boot* ${RD}/mfsfd/boot
> 
> 
> -- 
> Take care
> Rick Miller
> ___
> 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"

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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 Release Date Challenge, plus other stuff the project needs

2012-12-11 Thread Jerry
On Tue, 11 Dec 2012 11:58:38 -0800
Michael Sierchio articulated:

> On Mon, Dec 10, 2012 at 10:52 PM, Anonymous
>  wrote:
> 
> > We, the users of FreeBSD
> 
> You speak only for yourself.

Another interesting item referencing FreeBSD.



-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

___
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 Release Date Challenge, plus other stuff the project needs

2012-12-11 Thread Michael Sierchio
On Mon, Dec 10, 2012 at 10:52 PM, Anonymous
 wrote:

> We, the users of FreeBSD

You speak only for yourself.

- M

PS I'll bet waiters in restaurants spit in your food
___
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 Release Date Challenge, plus other stuff the project needs

2012-12-11 Thread Jerry McAllister
On Tue, Dec 11, 2012 at 01:52:04AM -0500, Anonymous wrote:

> We, the users of FreeBSD, *do hereby challenge* the FreeBSD project
> to meet its future release dates.

OK.   Get busy.  You have a lot of work to do.

Have you ever created or maintained a large project using volunteer help?
Get serious and think what you are talking about before making such
comments.

Release dates are estimates.   Would it help your sensitive situation
to call them release estimates rather than release dates?   

jerry


> 
> Why: Because the FreeBSD project has not met a significant number
> of its release dates. It's an apalling state of affairs and makes
> you, the project, look silly. Business and personal users plan
> elements of their schedules, budgets and capabilities around OS
> updates. And the continual failure of FreeBSD to deliver causes us
> to have no alternative but to look at our bosses and just shrug.
> We've taken to padding it out a week, two weeks, a month, two
> months... just to cover the random slippage. Since there seems to
> be no public statements about this ongoing situation, we might as
> well pad it to a quarter or a half... FreeBSD's already a half
> behind on status reports.
> 
> No one is asking for a commercial dictatorship here. But please
> FreeBSD, coordinate better amongst yourselves!!! Be honest about
> what is and isn't going to make it. Grow the wiki as your central
> coordination center [ie 1] and start moving dynamic docs from www
> to there (the community). Replace GNATS (omg, ugh), SVN, and even
> MoinMoin so the world can interface with some things that it has
> some (good / market leading) experience with [2].
> 
> Other than that, FreeBSD is great :)
> 
> [1]
> http://wiki.freebsd.org/WhatsNew/FreeBSD10
> 
> [2]
> https://en.wikipedia.org/wiki/Comparison_of_wiki_software
>  https://www.mediawiki.org/wiki/MediaWiki
> https://en.wikipedia.org/wiki/Comparison_of_issue_tracking_systems
>  https://en.wikipedia.org/wiki/Comparison_of_help_desk_issue_tracking_software
>  http://www.bestpractical.com/rt/
> https://en.wikipedia.org/wiki/Comparison_of_Internet_forum_software_(PHP)
>  https://en.wikipedia.org/wiki/Comparison_of_Internet_forum_software
>  http://www.simplemachines.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"


make release and mfsroot

2012-12-11 Thread Rick Miller
Hi All,

I generate a bootonly ISO and want to add files to the mfsroot.gz
created by the release.8 target.  I want sysinstall to load an
install.cfg which makes a call to doconfig.sh.  The target destination
for the files is stand/.  My question is will the below patch
accomplish this for me provided install.cfg and doconfig.sh exist in
/usr/src/release?

# diff -u Makefile.orig Makefile
--- Makefile.orig   2012-12-11 18:15:29.0 +
+++ Makefile2012-12-11 19:01:46.0 +
@@ -509,6 +509,7 @@
rm foo; \
fi
-test -f install.cfg && cp install.cfg ${CHROOTDIR}/usr/src/release
+   -test -f doconfig.sh && cp doconfig.sh ${CHROOTDIR}/usr/src/release
echo "#!/bin/sh"> ${_MK}
echo "set -ex"  >> ${_MK}
echo "trap 'umount /dev || true' 0" >> ${_MK}
@@ -823,7 +824,9 @@
done
 .endif
-test -f ${.CURDIR}/install.cfg \
-   && cp ${.CURDIR}/install.cfg ${RD}/mfsfd
+   && cp ${.CURDIR}/install.cfg ${RD}/mfsfd/stand
+   -test -f ${.CURDIR}/doconfig.sh \
+   && cp ${.CURDIR}/doconfig.sh ${RD}/mfsfd/stand
@mkdir -p ${RD}/mfsfd/boot
 .if ${TARGET_ARCH} != "ia64" && ${TARGET_ARCH} != "powerpc"
@cp ${RD}/trees/base/boot/boot* ${RD}/mfsfd/boot


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


Re: Can't set xfce4 logout dialog buttons

2012-12-11 Thread Dr. ZaITo

On 10/12/2012 22:23, David Demelier wrote:



I added a file for handling shutdown / reboot for Xfce4, the content is
located in
/usr/local/etc/polkit-1/localauthority/50-local.d/51-sys-mgmt.pkla.

[Restart]
Identity=unix-group:operator
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Shutdown]
Identity=unix-group:operator
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=yes
ResultActive=yes

But clicking on the on the logout button, will open the xfce4 dialog and
only shows "Logout" all others buttons are grey'ed. I have exactly the
same setup on my laptop but with a [Suspend] added, and on my laptop the
dialog show Logout and all buttons authorized.

On my both machine my user is in the operator group, so I don't know
where I missed something for this machine..

Do you have a better idea?



  Hi David,

I am using FreeBSD 8.2 Release & XFCE4. When I had this problem I edited 
/usr/local/etc/PolicyKit/PolicyKit.conf, adding the lines:









in the section version: 


You might serve useful.

Greetings!

--
 --

Dr_ZaITo

@: dr.za...@gmail.com

FreeBSD RELEASE

 --
___
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: Mounting a samba share on boot?

2012-12-11 Thread Polytropon
On Tue, 11 Dec 2012 23:25:56 +0700, Hanafi Syahroini wrote:
> [nothing]

First of all, it's not uncommon to place the question into
the message body (which you did not), and using a descriptive
subject (which you did). :-)

So I assume your question is _how_ to mount a SMB share at
boot.

This can be easily done by adding the required line to the
/etc/fstab file. Because network connection is required to
perform the mount, you could use the "late" option in
addition to other options you might need. See "man mount"
for detais, as well as /etc/rc.d/mountlate.

The line would be like this:

//USERNAME@SERVERNAME/share  /smb/share  smbfs  rw,late  0  0

In this example, SERVERNAME is the server to access, and "share"
the name of the share; /smb/share will be the directory it will
be mounted at.

Access to multiple "drive letters" would look like this:

//Administrator@WINPC/a$  /smb/a  smbfs  rw,late  0  0
//Administrator@WINPC/c$  /smb/c  smbfs  rw,late  0  0
//Administrator@WINPC/d$  /smb/d  smbfs  rw,late  0  0
//Administrator@WINPC/e$  /smb/e  smbfs  rw,late  0  0
//Administrator@WINPC/f$  /smb/f  smbfs  rw,late  0  0

Here "WINPC" is the name of the server. Using "Administrator"
in this case is not safe, but no problem in settings where
people don't care for security anyway. :-)

Also see "man smbfs" and "man fstab" for details.

It might be required to put additional information in
/etc/nsmb.conf, for example:

[default]
workgroup=YOUR_WORKGROUP_NAME

[SERVERNAME]
addr=192.168.2.2

[SERVERNAME:USERNAME]
password=TOPSECRET

Substitute SERVERNAME, USERNAME and TOPSECRET for the
organisational information and access credentials that apply.
See "man nsmb.conf" for details.

Further instructions can easily be found in the online docs:

http://www.freebsd.org/doc/faq/book.html#mount-smb-share

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



Note that if you still encounter network problems, it's better
to write a short rc.d style script that performs the mount_smb
commands, and use the proper keywords to have it run when the
network connection is up and running. See "man rc.d" for
details.


-- 
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: Mounting a samba share on boot?

2012-12-11 Thread Tim Daneliuk

On 12/11/2012 10:25 AM, Hanafi Syahroini wrote:

This can be done with appropriate entries in /etc/fstab.  However,
I'd recommend against doing so because, if the SMB server
is unreachable when the FreeBSD system boots, the FreeBSD
box will hang looking for the SMB connection.

A better way is to put a custom script in /usr/local/etc/rc.d/
that initiates the SMB mounts there.  This too could fail, but
it doesn't prevent the OS From booting fully.

--
---
Tim Daneliuk
___
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"


Mounting a samba share on boot?

2012-12-11 Thread Hanafi Syahroini

___
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 Release Date Challenge, plus other stuff the project needs

2012-12-11 Thread n j
On Tue, Dec 11, 2012 at 8:17 AM, Stephen Cook  wrote:
> On 12/11/2012 1:52 AM, Anonymous wrote:
>>
>> We, the users of FreeBSD, *do hereby challenge* the FreeBSD project
>> to meet its future release dates.
>
> Similarly, I'm a bit concerned that 9.0 loses support at the end of January,
> but there is no release date for 9.1 (at
> http://www5.us.freebsd.org/releases/9.1R/schedule.html, the last actual date
> shown is November 3, 2012, for RC3). I'm confused as to the best course of
> action: continue to use an unsupported version and hope the new one comes
> out sooner than later, or downgrade to a supported version (8.3).

>From security.freebsd.org:

Normal
Releases which are published from a -STABLE branch will be supported
by the Security Officer for a minimum of 12 months after the release,
and for sufficient additional time (if needed) to ensure that there is
a newer release for at least 3 months before the older Normal release
expires.

So the real EoL for 9.0 is the date of 9.1 release plus 3 months.

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


rescan of sata channels

2012-12-11 Thread Gerhard Schmidt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

is there a way to detach and attach a device on a sata channel in
FreeBSD 9

on FreeBSD 8 I  used atacontrol detach to detach a sata HD bevor
removing it from a hotswap bay and atacontroll attach to rescan the
channel after inserting a new Harddrive in die Bay.

In camcontroll there is no such command. an rescan or reinit doesn't
reveal the new hdd.

Is there a way to force the sata channel to rescan an detect the
Harddisk without reboot.

Regards
Estartu

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (FreeBSD)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQCVAwUBUMb3KAzx22nOTJQRAQJhygP/c4VUBQTpTko66ZuNuV06tryPf5T9gxIE
j0ViE9hzzjcuazo0tBlqwO/RGNIn5z0K8JWYj9SLWLdLBLI5fsk98Q3ApUvdr0bA
4/rq53wxvehJeqTfqywTs6ECIrpnHE0R49PKkf1CqNkHBntEtUDQXvfmBT0gh2vV
wRZbky9sa9U=
=xxsH
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Can't set xfce4 logout dialog buttons

2012-12-11 Thread Leslie Jensen



David Demelier skrev 2012-12-10 22:23:

Hi,

I added a file for handling shutdown / reboot for Xfce4, the content is
located in
/usr/local/etc/polkit-1/localauthority/50-local.d/51-sys-mgmt.pkla.

[Restart]
Identity=unix-group:operator
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Shutdown]
Identity=unix-group:operator
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=yes
ResultActive=yes

But clicking on the on the logout button, will open the xfce4 dialog and
only shows "Logout" all others buttons are grey'ed. I have exactly the
same setup on my laptop but with a [Suspend] added, and on my laptop the
dialog show Logout and all buttons authorized.

On my both machine my user is in the operator group, so I don't know
where I missed something for this machine..

Do you have a better idea?

Cheers,
___
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 don't know if this is any help, but I've seen the same on my systems!

On a newly installed 9.1-RC3 I do not have this problem.

I wonder if it has to do with some old files in our home folders that 
mess things up?


/Leslie





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


Re: mount -u effects

2012-12-11 Thread Polytropon
On Tue, 11 Dec 2012 11:39:24 +0330, takCoder wrote:
> but, how to become sure my write operations are completely finished?? by
> obtaining some sort of sleep time before my restart command in my upgrade
> shell for example? or there are other special ways to do so?

Basically, no user action is needed. If you perform an umount
(or change back to -o ro), all remaining buffers will be
flushed, so writes are eventually performed at this time.
If such an operation hasn't been finished yet, mount will
complain, and you have some time to wait and try again. :-)

In case you're using -f (force), this specific check will
not be performed, so it shouldn't be used.

Similarly, the "sync" command will cause all buffers to be
flushed. The file system driver will then let the device
driver perform the operation, which should be finished in
finite time (usually below a second). See "man sync" for
details.

You could always use the "lsof" command to check if there
are still files open for writing on the respective file
system.

At the time you're getting your command prompt back, the
write operation is likely to be finished. Add some time typing
the mount command, and you should be fine. :-)



-- 
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: mount -u effects

2012-12-11 Thread takCoder
nice and quick point! thanks a lot :)

> You could have found it out by refering to "man mount". :-)
yes, it seems to be right! ;)

> So I'd say you should always take care that write operations are finished
properly (and so brought to an end)

but, how to become sure my write operations are completely finished?? by
obtaining some sort of sleep time before my restart command in my upgrade
shell for example? or there are other special ways to do so?

Best Regards,
t.a.k



On Tue, Dec 11, 2012 at 11:13 AM, Polytropon  wrote:

> On Tue, 11 Dec 2012 10:55:10 +0330, takCoder wrote:
> > via googling, i found out that i can use "mount -u" on the mentioned
> > device, and then after doing whatsoever needed, when i restart my server
> > the ro permission will be back via applying old fstab..
>
> You could have found it out by refering to "man mount". :-)
>
>
>
> > but i have no idea what kind of effects it may have on my server.. i
> > couldn't find anything but suggestions about not to use this so often..
> and
> > i really need to know why?? cause my bsd server is not allowed to be
> missed
> > almost at all..
> >
> > i think that because this -u option is just increasing my permissions in
> > this case, there won't be a danger for my server. is that true?!
>
> There are _few_ side effects that _may_ apply when using the -u
> option. From the manual:
>
> The -u flag indicates that the status of an already mounted file
> system should be changed.  Any of the options discussed above
> (the -o option) may be changed; also a file system can be changed
> from read-only to read-write or vice versa.  An attempt to change
> from read-write to read-only will fail if any files on the file
> system are currently open for writing unless the -f flag is also
> specified.  The set of options is determined by applying the
> options specified in the argument to -o and finally applying the
> -r or -w option.
>
> So I'd say you should always take care that write operations
> are finished properly (and so brought to an end).
>
>
> --
> 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"