which ports require dialog during update

2011-10-21 Thread Paul Macdonald


Hi,

Is there a way to tell which ports might require dialog input during update,

i have some auto update scripts which when prompted will run through 
updates, but occassionally i forget which will require user input and 
this leads to dialog running ( often @ 100%) until i notice.


Obviously i only do this for what i'd consider to be trivial updates and 
it makes things a lot quicker when you have a lot of boxes to do!


I had initialy thought that checking for make targets might be an idea, 
the lack of a config target for example.


On one box which does have a config/options target, i see options come 
up via dialog.


/usr/ports/security/p5-IO-Socket-SSL
brings up the config options for this port, both unchecked

[ ] IDN   International Domain Names (IDN) support   x x
[ ] IPV6  IPv6 support

on another box there's no dialog from either an update via portupgarde 
or via a direct make in the port dir  ( make config is the same on both 
and does bring up the dialog)


the Makefiles are identical both in the ports dir and in the work dir, 
both systems are 8.2-REL.


Can i programmatically tell if user input is required?

thanks
Paul.



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


Re: which ports require dialog during update

2011-10-21 Thread Damien Fleuriot


On 10/21/11 9:53 AM, Paul Macdonald wrote:
 
 Hi,
 
 Is there a way to tell which ports might require dialog input during
 update,
 
 i have some auto update scripts

Stop doing this.

Your update scripts do not read /usr/ports/UPDATING.
Your update scripts do not read package changelogs.

What you're doing is irresponsible, and potentially dangerous/harmful if
your server is in production.

You should really be very careful about this.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


smb browing via nautilus

2011-10-21 Thread Brent Clark

Good day

Ive got this problem whereby via gnomes nautilus, smb browing is *incredibly 
slow*.

For example, if I type and try to connect to smb://foo, it takes quite awhile, 
before the shares are available.

Then I can click on the share. I wait a bit more.

I find if I manually mount the smb share (mount_smb), then browse to the mount 
point via nautilus, copying files is a breeze.

If someone could help me it would be appreciated.

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


Re: which ports require dialog during update

2011-10-21 Thread Paul Macdonald
Hi, Is there a way to tell which ports might require dialog input 
during update, i have some auto update scripts

Stop doing this.

Your update scripts do not read /usr/ports/UPDATING.
Your update scripts do not read package changelogs.

What you're doing is irresponsible, and potentially dangerous/harmful if
your server is in production.

You should really be very careful about this.
i do of course read those files (which require daily checking to confirm 
usually no relevant changes, but thats another issue!)..


however i don't need to read UPDATING on every box, (this tool is an 
assistent, not a replacement, for monitored updates.)


i do need to check that an update that went fine on the initial test box 
will behave the same on other boxes, which is my question,


can i tell if  the options dialog is going to be invoked?

thanks
Paul.

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


Re: which ports require dialog during update

2011-10-21 Thread Damien Fleuriot


On 10/21/11 11:14 AM, Paul Macdonald wrote:
Hi, Is there a way to tell which ports might require dialog input
 during update, i have some auto update scripts
 Stop doing this.

 Your update scripts do not read /usr/ports/UPDATING.
 Your update scripts do not read package changelogs.

 What you're doing is irresponsible, and potentially dangerous/harmful if
 your server is in production.

 You should really be very careful about this.
 i do of course read those files (which require daily checking to confirm
 usually no relevant changes, but thats another issue!)..
 
 however i don't need to read UPDATING on every box, (this tool is an
 assistent, not a replacement, for monitored updates.)
 
 i do need to check that an update that went fine on the initial test box
 will behave the same on other boxes, which is my question,
 
 can i tell if  the options dialog is going to be invoked?
 
 thanks
 Paul.

I'm afraid I can't see an option in portmanager that would handle this.

I think you portupgrade's --batch mode might be the answer to your
question though.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


csup: How do I know I have correct version?

2011-10-21 Thread Thomas Mueller
After I run 

csup /usr/share/examples/releng9-supfile

how do I know I have the correct version, like 9.0-BETA3 or 9.0-RC1?

I can't find any such information explicitly anywhere under /usr/src .

This releng9-supfile was made from stable-supfile by changing RELENG_8 to 
RELENG_9 in the line

*default release=cvs tag=RELENG_8

I've been following the emailing lists current, questions and ports, 
noticed the heads-up that HEAD was going to 10-current.

Maybe also I should put this releng9-supfile in a safer place where 
it won't be deleted by the next installation/upgrade?

Tom

___
freebsd-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: csup: How do I know I have correct version?

2011-10-21 Thread Damien Fleuriot
On 10/21/11 11:27 AM, Thomas Mueller wrote:
 After I run 
 
 csup /usr/share/examples/releng9-supfile
 
 how do I know I have the correct version, like 9.0-BETA3 or 9.0-RC1?
 
 I can't find any such information explicitly anywhere under /usr/src .
 
 This releng9-supfile was made from stable-supfile by changing RELENG_8 to 
 RELENG_9 in the line
 
 *default release=cvs tag=RELENG_8
 
 I've been following the emailing lists current, questions and ports, 
 noticed the heads-up that HEAD was going to 10-current.
 
 Maybe also I should put this releng9-supfile in a safer place where 
 it won't be deleted by the next installation/upgrade?
 

Indeed you should.


From my /etc/make.conf:
SUP_UPDATE= yes
SUP=/usr/bin/csup
SUPFLAGS=   -zgL 2
SUPHOST=cvsup1.fr.freebsd.org
SUPFILE=/etc/cvsup/stable-supfile
PORTSSUPFILE=   /etc/cvsup/ports-supfile
DOCSUPFILE= /etc/cvsup/doc-supfile



Then, you just have to copy the sample supfiles to /etc/cvsup/
___
freebsd-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: csup: How do I know I have correct version?

2011-10-21 Thread Matthew Seaman
On 21/10/2011 10:27, Thomas Mueller wrote:
 After I run 
 
 csup /usr/share/examples/releng9-supfile
 
 how do I know I have the correct version, like 9.0-BETA3 or 9.0-RC1?

So long as you're confident that you have actually downloaded the
sources from the RELENG_9 branch, then you can be confident that the
system version will be one of those -- at the moment, you'll get 9.0-RC1
but over time this will eventually change to 9.0-STABLE.

 I can't find any such information explicitly anywhere under /usr/src .

The file you want is /usr/src/sys/conf/newvers.sh  This is a script that
edits version information into various source code files.  The bit you
need is near the top of the file -- just following line 33:

33  TYPE=FreeBSD
34  REVISION=9.0
35  BRANCH=RC1
36  if [ X${BRANCH_OVERRIDE} != X ]; then
37  BRANCH=${BRANCH_OVERRIDE}
38  fi
39  RELEASE=${REVISION}-${BRANCH}
40  VERSION=${TYPE} ${RELEASE}
41  SYSDIR=$(dirname $0)/..

Unfortunately the value want is RELEASE, which is assembled from parts,
so not trivially grep'able.  But you can easily see the REVISION is set
to 9.0 and BRANCH is RC1 so the whole things comes to 9.0-RC1.  Simple.

 This releng9-supfile was made from stable-supfile by changing RELENG_8 to 
 RELENG_9 in the line
 
 *default release=cvs tag=RELENG_8
 
 I've been following the emailing lists current, questions and ports, 
 noticed the heads-up that HEAD was going to 10-current.
 
 Maybe also I should put this releng9-supfile in a safer place where 
 it won't be deleted by the next installation/upgrade?

No -- you shouldn't need to worry about that.  The name
'releng9-supfile' you chose doesn't match anything produced by the
system, so it won't be overwritten.  (Not that you shouldn't keep a
backup somewhere -- that's only sensible.)

Hmmm actually you have highlighted a small omission in the
procedures for branching RELENG_9 and RELENG_9_0 -- the cvsup example
supfiles  /usr/src/share/examples/{stable,standard}-supfile should be
updated to match the branch they are installed from.  In your case both
of those files should use the RELENG_9 tag, but that hasn't been
commmitted yet.

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: which ports require dialog during update

2011-10-21 Thread kron24

On 2011/10/21 11:21, Damien Fleuriot wrote:



On 10/21/11 11:14 AM, Paul Macdonald wrote:

Hi, Is there a way to tell which ports might require dialog input

during update, i have some auto update scripts

Stop doing this.

Your update scripts do not read /usr/ports/UPDATING.
Your update scripts do not read package changelogs.

What you're doing is irresponsible, and potentially dangerous/harmful if
your server is in production.

You should really be very careful about this.

i do of course read those files (which require daily checking to confirm
usually no relevant changes, but thats another issue!)..

however i don't need to read UPDATING on every box, (this tool is an
assistent, not a replacement, for monitored updates.)

i do need to check that an update that went fine on the initial test box
will behave the same on other boxes, which is my question,

can i tell if  the options dialog is going to be invoked?

thanks
Paul.


I'm afraid I can't see an option in portmanager that would handle this.

I think you portupgrade's --batch mode might be the answer to your
question though.


I use portupgrade's --batch or portmaster's PM_MAKE_ARGS='BATCH=true'.
The BATCH variable is recognized in ports' makefiles so there should
be a way in portmanager too.

OP may want to look on 'make config-recursive'.

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


strange behavior of restore(8)

2011-10-21 Thread Victor Sudakov
Colleagues,

I am trying to restore a UFS2 zero level dump sized about 51G. 
restore has created 6105 directories and no files at all, and now is
waiting forever in the runnable state.

What could the problem be? I have always used dump/restore with
success. Does the number 6105 look somewhat suspiciuos?

I have tried restore -rN with the same result: after some time it
just seems to do nothing, not reading from tape or disk. Still it is
not frozen, you can press ^C and it will ask:
restore interrupted, continue? [yn]

Its /tmp/rstdir1318692759 file has the size about 38M, I still have
plenty of room in /tmp.

TIA for any ideas.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
freebsd-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: config(8) does not add post-processing for source file with compile-with command in sys/conf/files

2011-10-21 Thread Paul Ambrose
There are many other compile-with  not started with ${NORMAL_C}, your
patch adds
${NORMAL_CTFCONVERT}  to them too, which could not be suitable for this.

2011/10/19 Ryan Stone ryst...@gmail.com:
 I have run into the same issue recently.  I have been testing the
 following patch(on 8.2-RELEASE) and it seems to have worked for me:

 --- mkmakefile.c 11:09:30.0 -0400
 +++ mkmakefile.c        2011-10-06 11:13:31.0 -0400
 @@ -742,15 +742,16 @@
                                break;
                        }
                        snprintf(cmd, sizeof(cmd),
 -                           ${%s_%c%s}\n.if defined(NORMAL_CTFCONVERT)  
 -                           !empty(NORMAL_CTFCONVERT)\n
 -                           \t${NORMAL_CTFCONVERT}\n.endif, ftype,
 +                           ${%s_%c%s}\n, ftype,
                            toupper(och),
                            ftp-f_flags  NOWERROR ? _NOWERROR : );
                        compilewith = cmd;
                }
                *cp = och;
 -               fprintf(f, \t%s\n\n, compilewith);
 +               fprintf(f, \t%s\n, compilewith);
 +               fprintf(f, .if defined(NORMAL_CTFCONVERT)  
 +                            !empty(NORMAL_CTFCONVERT)\n
 +                            \t${NORMAL_CTFCONVERT}\n.endif\n\n);
        }
  }

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


Re: which ports require dialog during update

2011-10-21 Thread Warren Block

On Fri, 21 Oct 2011, Paul Macdonald wrote:


Can i programmatically tell if user input is required?


It might require reinventing the logic used by the ports system 
Makefiles.  Or maybe there's a way to run make config-recursive but get 
dialog to immediately cancel any config screens that appear (redirect 
input from /dev/null?).  Detect whether the output of that is not empty.


'make config-recursive' was already mentioned, but portupgrade has the 
-c and -C options, and running all the config screens before starting a 
build is automatic for portmaster.

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


trying to learn systems programming, fear I have not understood and thus messed up

2011-10-21 Thread Christopher J. Ruwe
To improve on my C and to learn something about systems programming, I
have begun to pick out bite-size bits from the bin-PRs. Currently, I
am dispairing about bin/149972, which is about 1) adding error handling
to pw being invoced pw -u username and 2) trying to get a uid from
the (incorrectly) passed username. Currently, I cannot accomplish want
I wanted to do, so I turn here for hints or help.

Three developers which I have failed to reach by mail (gpf@, kibab@,
bcr@) have added the necessary code


if ((arg = getarg(args, 'u')) != NULL) {
   if(isdigit((unsigned char)*arg-val)) {
   pwd-pw_uid = (uid_t) atol(arg-val);
   edited = 1;
   if (pwd-pw_uid != 0  strcmp(pwd-pw_name, root) == 0)
  errx(EX_DATAERR, can't change uid of `root' account);
   if (pwd-pw_uid == 0  strcmp(pwd-pw_name, root) != 0)
  warnx(WARNING: account `%s' will have a uid of 0 (superuser
access!), pwd-pw_name); } else {
  /* Found something, but not a number */
  /*
   * XXX Shouldn't we try to map the passed string to the username?
   * man page however says that we're expecting numeric uid...
   */
  errx(EX_DATAERR, Expected numeric user id as an argument to -u\n);
  }
}

I have tried to follow the suggestion from the comment by modifiying
the else-statement thus:

} else {
  struct passwd *trgpwd;
  if (!(trgpwd = GETPWNAM(arg-val)))
 errx(EX_DATAERR, User %s does not exist, arg-val);
   
   if (strcmp(a_name-val,root) == 0)
  errx(EX_DATAERR, can't change uid of `root' account);
   if (strcmp(trgpwd-pw_name, root) == 0)
  warnx(WARNING: account `%s' will have a uid of 0 (superuser
access!), pwd-pw_name);

   pwd-pw_uid = (uid_t) (trgpwd-pw_uid);  
   edited = 1;
} 

What happens is not what I intended. I invoke as sudo ./pw usermod
testuser1 -u testuser2. I can get testuser2's pwd-entry by GETPWNAM
allright, but when I assign the pw_uid, so as to make testuser2's uid
the same as testuser1's and imgaining to retain all other values, ./pw
reports pw: user 'testuser2' disappeared during update and the
testuser2's /etc/passwd entry is replaced by testuser1's.

I fear I have not understood GETPWNAM correctly, as it seems to replace
the struct pwd as some sort of sideeffect. I could manually set all
pwd-members to the correct ones (those of testuser2), but I fear that I
have messed something up beforehand.

I am grateful for any suggestions and/or correction. 
-- 
Christopher J. Ruwe
TZ GMT + 2



signature.asc
Description: PGP signature


Re: strange behavior of restore(8)

2011-10-21 Thread David Brodbeck
On Fri, Oct 21, 2011 at 4:06 AM, Victor Sudakov v...@mpeks.tomsk.su wrote:
 Colleagues,

 I am trying to restore a UFS2 zero level dump sized about 51G.
 restore has created 6105 directories and no files at all, and now is
 waiting forever in the runnable state.

I don't have any specific advice here, but if it were me I think my
next troubleshooting step would be to attach truss to the restore
process after it gets stuck, to try to see exactly what it's doing.
That may give you a clue as to why it's taking so long and whether
it's actually making any progress.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Hepsi birbirinden özel,hepsi birbirinden güzel

2011-10-21 Thread İstanbul Bilişim
Size özel bülteni görmek için aşağıdaki linke tıklayınız: 
 a
href='http://www.setrow.com/system/emailshow.php?mid=e064440d79addc47430e70c2b212fc97e72f5716c3fcee7f3baid=questi...@freebsd.org'FONT
face='Arial, Helvetica, sans-serif' size=1
color='#999'Tıklayınız/FONT/a 

___
freebsd-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: Enlightenment cpufreq gadget broken display

2011-10-21 Thread Open Slate
On Thu, Oct 20, 2011 at 4:01 PM, Eric Schuele e.schu...@computer.org wrote:
 Gary,

 Fwiw  You might try #e on freenode.  :)

Good idea. Thanks. I'm there now on my cell (AndroIRC, recommended)
and no response. I'll hang out awhile. My handle is gd808mobile in
case anyone wants to hook up.


-- 
Gary Dunn
Open Slate Project
http://openslate.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: which ports require dialog during update

2011-10-21 Thread Galati, Michael
  Hi, Is there a way to tell which ports might require dialog input
 during update, i have some auto update scripts
  Stop doing this.
 
  Your update scripts do not read /usr/ports/UPDATING.
  Your update scripts do not read package changelogs.
 
  What you're doing is irresponsible, and potentially dangerous/harmful if
  your server is in production.
 
  You should really be very careful about this.
 i do of course read those files (which require daily checking to confirm
 usually no relevant changes, but thats another issue!)..

 however i don't need to read UPDATING on every box, (this tool is an
 assistent, not a replacement, for monitored updates.)

 i do need to check that an update that went fine on the initial test box
 will behave the same on other boxes, which is my question,

 can i tell if  the options dialog is going to be invoked?

 thanks
 Paul.

If you use portmaster, it will get the make config step out of the way
up front (as others have mentioned).  Since you're already building on
a test machine, why not use that system to build packages for your
other systems?  Invoking portmaster with the -g option will create
packages in /usr/ports/packages.  From there, upload the packages to
an FTP (or HTTP) server, or host them directly the test machine.
Setting the PACKAGEROOT environment variable will make pkg_add -r
package(s) pull packages from the test machine.

Doing things this way, you don't have to worry about getting prompted
for package options.  I'm yet to see any package actually require user
interaction during install, but YMMV.

This method, however, assumes that:
  - You are running the same version of FreeBSD on all systems
  - You use the same CPU arch. on all systems
  - You do not need ports build with different options on some systems
  - You are not using any conflicting packages

Unfortunately, there's no good way of upgrading packages on FreeBSD
(that I'm aware of, at least).  My solution (crude as it may be) has
been to remove all the packages and reinstall.

HTH,

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


Re: which ports require dialog during update

2011-10-21 Thread Open Slate
Not exactly an answer to your question, but I use the batch flag to bypass
configuration menus. If you have one or two ports you do not install with
default settings, you can go back and install manually.

On Oct 20, 2011 9:54 PM, Paul Macdonald p...@ifdnrg.com wrote:


Hi,

Is there a way to tell which ports might require dialog input during update,

i have some auto update scripts which when prompted will run through
updates, but occassionally i forget which will require user input and this
leads to dialog running ( often @ 100%) until i notice.

Obviously i only do this for what i'd consider to be trivial updates and it
makes things a lot quicker when you have a lot of boxes to do!

I had initialy thought that checking for make targets might be an idea, the
lack of a config target for example.

On one box which does have a config/options target, i see options come up
via dialog.

/usr/ports/security/p5-IO-**Socket-SSL
   brings up the config options for this port, both unchecked

[ ] IDN   International Domain Names (IDN) support   x x
[ ] IPV6  IPv6 support

on another box there's no dialog from either an update via portupgarde or
via a direct make in the port dir  ( make config is the same on both and
does bring up the dialog)

the Makefiles are identical both in the ports dir and in the work dir, both
systems are 8.2-REL.

Can i programmatically tell if user input is required?

thanks
Paul.



__**_
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-**
unsubscr...@freebsd.org 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: Enlightenment cpufreq gadget broken display

2011-10-21 Thread Open Slate
On Fri, Oct 21, 2011 at 8:49 AM, Open Slate openslatep...@gmail.com wrote:
 On Thu, Oct 20, 2011 at 4:01 PM, Eric Schuele e.schu...@computer.org wrote:
 Gary,

 Fwiw  You might try #e on freenode.  :)

 Good idea. Thanks. I'm there now on my cell (AndroIRC, recommended)
 and no response. I'll hang out awhile. My handle is gd808mobile in
 case anyone wants to hook up.

Got an answer, trying some themes. Apparently this gadget is digital
by design, the default theme gives it an analog looking background.
Icon dock (shelf) looks better with increase height.

-- 
Gary Dunn
Open Slate Project
http://openslate.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


Upgrading libxul, dependency on Firefox 3

2011-10-21 Thread Joe Altman
Greetings...

I was running portupgrade on libxul and noticed it depends on Firefox
3.x. I cancelled the upgrade, because I thought FF3.x was insecure and
therefore deprecated while FF7 was recommended and secure.

My questions:

1) is the dependency libxul has for FF3 a security problem?

2) is the dependency on FF3 a bug in libxul? If it is a bug, who
   should receive a report: gecko@ or the Mozilla project?

FYI: I'm pretty sure it was portsclean -D (and not me) that deleted
FF3...yet libxul tried to pull it in during the portupgrade.

Best regards,

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


Re: which ports require dialog during update

2011-10-21 Thread Warren Block

On Fri, 21 Oct 2011, Galati, Michael wrote:


Unfortunately, there's no good way of upgrading packages on FreeBSD
(that I'm aware of, at least).  My solution (crude as it may be) has
been to remove all the packages and reinstall.


There's pkg_upgrade from sysutils/bsdadminscripts.
___
freebsd-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 needed: sound/audio only semi-working

2011-10-21 Thread Ronald F. Guilmette

I've been bringing up a new amd64 box with 8.2-RELEASE.  So far I've managed
to get everything installed OK, including a boatload of freshly-built ports.
I've even gotten flash10 working with firefox... well...

Unfortunately, this is only MOSTLY working.  The video works great, but for
audio all I get is absolute silence.

The really strange thing is that after I followed all the directions here:

   http://www.freebsd.org/doc/en/books/handbook/sound-setup.html

This command:

cat /dev/random  /dev/dsp

*does* produce quite a bit of white noise sound.  However when I perform
the other officially recommended basic audio functionality test:

cdcontrol -f /dev/acd0 play 1

with one of my favorite old audo CDs in the drive (AND with that special
little wire running from the back of the drive to my motherboard) all that
happens is that the CD/DVD drive apparently _does_ start to read some stuff...
as evidenced by the blinking access light in the front of the drive... but I
still get no sound out, and YouTube videos still aren't giving me any audio
even though the video seems to be playing perfectly.

So, um, I am grasping for ideas here on how I can debug this problem furher.
I really have no idea what to do next to get this debugged.  I supposed that
if nobody gives me a good suggestion, I'm gonna try swapping out that special
little wire for another one and then try swapping the CD/DVD drive for another
one if that still doesn't solve it.

Sigh.  :-(  I just checked and yes, the CD/DVD drive _can_ mount a data CD
alright.  No problems doing that.

So how can it be that this works just fine:

   cat /dev/random  /dev/dsp

even while this:

  cdcontrol -f /dev/acd0 play 1

causes the disk to spin up and read, but otherwise produces utter silence?

I'm flummoxed.

Any help would be appreciated.


Regards,
rfg



P.S.  My motherboard (w/ onboard audio) is a Gigabyte GA-M55Plus-S3G.  Here
is what a get when I cat /dev/sndstat:

FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: HDA Realtek ALC883 PCM #0 Analog (play/rec) default
pcm1: HDA Realtek ALC883 PCM #1 Analog (play/rec)
pcm2: HDA Realtek ALC883 PCM #2 Digital (play/rec)

Additional info:

% sysctl hw.snd.default_unit
hw.snd.default_unit: 0
___
freebsd-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 needed: sound/audio only semi-working

2011-10-21 Thread Michael D. Norwick

On 10/21/11 20:29, Ronald F. Guilmette wrote:

I've been bringing up a new amd64 box with 8.2-RELEASE.  So far I've managed
to get everything installed OK, including a boatload of freshly-built ports.
I've even gotten flash10 working with firefox... well...

Unfortunately, this is only MOSTLY working.  The video works great, but for
audio all I get is absolute silence.

The really strange thing is that after I followed all the directions here:

http://www.freebsd.org/doc/en/books/handbook/sound-setup.html

This command:

 cat /dev/random  /dev/dsp

*does* produce quite a bit of white noise sound.  However when I perform
the other officially recommended basic audio functionality test:

 cdcontrol -f /dev/acd0 play 1

with one of my favorite old audo CDs in the drive (AND with that special
little wire running from the back of the drive to my motherboard) all that
happens is that the CD/DVD drive apparently _does_ start to read some stuff...
as evidenced by the blinking access light in the front of the drive... but I
still get no sound out, and YouTube videos still aren't giving me any audio
even though the video seems to be playing perfectly.

So, um, I am grasping for ideas here on how I can debug this problem furher.
I really have no idea what to do next to get this debugged.  I supposed that
if nobody gives me a good suggestion, I'm gonna try swapping out that special
little wire for another one and then try swapping the CD/DVD drive for another
one if that still doesn't solve it.

Sigh.  :-(  I just checked and yes, the CD/DVD drive _can_ mount a data CD
alright.  No problems doing that.

So how can it be that this works just fine:

cat /dev/random  /dev/dsp

even while this:

   cdcontrol -f /dev/acd0 play 1

causes the disk to spin up and read, but otherwise produces utter silence?

I'm flummoxed.

Any help would be appreciated.


Regards,
rfg



P.S.  My motherboard (w/ onboard audio) is a Gigabyte GA-M55Plus-S3G.  Here
is what a get when I cat /dev/sndstat:

FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0:HDA Realtek ALC883 PCM #0 Analog  (play/rec) default
pcm1:HDA Realtek ALC883 PCM #1 Analog  (play/rec)
pcm2:HDA Realtek ALC883 PCM #2 Digital  (play/rec)

Additional info:

% sysctl hw.snd.default_unit
hw.snd.default_unit: 0
___
freebsd-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 see my posts on this list as well as on freebsd-multimedia under 
the subject 'can't access a music cd'.  I appear to be experiencing the 
exact same issue.  I am also using snd_hda on freebsd 9.


Michael
___
freebsd-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 needed: sound/audio only semi-working

2011-10-21 Thread Carl Johnson
Ronald F. Guilmette r...@tristatelogic.com writes:

 I've been bringing up a new amd64 box with 8.2-RELEASE.  So far I've managed
 to get everything installed OK, including a boatload of freshly-built ports.
 I've even gotten flash10 working with firefox... well...

 Unfortunately, this is only MOSTLY working.  The video works great, but for
 audio all I get is absolute silence.

 The really strange thing is that after I followed all the directions here:

http://www.freebsd.org/doc/en/books/handbook/sound-setup.html

 This command:

 cat /dev/random  /dev/dsp

 *does* produce quite a bit of white noise sound.  However when I perform
 the other officially recommended basic audio functionality test:

 cdcontrol -f /dev/acd0 play 1

 with one of my favorite old audo CDs in the drive (AND with that special
 little wire running from the back of the drive to my motherboard) all that
 happens is that the CD/DVD drive apparently _does_ start to read some stuff...
 as evidenced by the blinking access light in the front of the drive... but I
 still get no sound out, and YouTube videos still aren't giving me any audio
 even though the video seems to be playing perfectly.

 So, um, I am grasping for ideas here on how I can debug this problem furher.
 I really have no idea what to do next to get this debugged.  I supposed that
 if nobody gives me a good suggestion, I'm gonna try swapping out that special
 little wire for another one and then try swapping the CD/DVD drive for another
 one if that still doesn't solve it.

 Sigh.  :-(  I just checked and yes, the CD/DVD drive _can_ mount a data CD
 alright.  No problems doing that.

 So how can it be that this works just fine:

cat /dev/random  /dev/dsp

 even while this:

   cdcontrol -f /dev/acd0 play 1

 causes the disk to spin up and read, but otherwise produces utter silence?

 I'm flummoxed.

 Any help would be appreciated.


 Regards,
 rfg



 P.S.  My motherboard (w/ onboard audio) is a Gigabyte GA-M55Plus-S3G.  Here
 is what a get when I cat /dev/sndstat:

 FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
 Installed devices:
 pcm0: HDA Realtek ALC883 PCM #0 Analog (play/rec) default
 pcm1: HDA Realtek ALC883 PCM #1 Analog (play/rec)
 pcm2: HDA Realtek ALC883 PCM #2 Digital (play/rec)

 Additional info:

 % sysctl hw.snd.default_unit
 hw.snd.default_unit: 0

I also have a Gigabyte board with HDA audio, and it won't directly play
CD sound either.  I had already ripped all of my CDs to .ogg files, so I
hadn't needed to play the CDs directly.  I just tested ripping a small
section of a CD using cdparanoia and it does produce a .wav audio file
that can be played using sox.  I also notice on my computer that mixer
doesn't show any controls for CD audio.  Unfortunately, I don't remember
if CDs worked properly on this computer when I had Linux installed, so I
don't know if the problem is FreeBSD or the motherboard.  I did find
that I have a program called kscd (for KDE) that will play, but I
suspect that it uses digital extraction instead of playing from audio.

My system uses a Gigabyte GA-MA785GPM-US2H, and the sndstat output is:
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: HDA ATI RS690/780 HDMI PCM #0 HDMI (play)
pcm1: HDA Realtek ALC885 PCM #0 Analog (play/rec) default
pcm2: HDA Realtek ALC885 PCM #1 Analog (play/rec)
pcm3: HDA Realtek ALC885 PCM #2 Digital (play/rec)

Let me know if you want further information.
-- 
Carl Johnsonca...@peak.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: strange behavior of restore(8)

2011-10-21 Thread Victor Sudakov
David Brodbeck wrote:
 
  I am trying to restore a UFS2 zero level dump sized about 51G.
  restore has created 6105 directories and no files at all, and now is
  waiting forever in the runnable state.
 
 I don't have any specific advice here, but if it were me I think my
 next troubleshooting step would be to attach truss to the restore
 process after it gets stuck, to try to see exactly what it's doing.
 That may give you a clue as to why it's taking so long and whether
 it's actually making any progress.

It's doing something like that. I should have piped the output
through uniq not to clutter the list, but on second thought, I decided
not to:

# truss -p 18568
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
lseek(4,0x0,SEEK_CUR)= 25395100 (0x1837f9c)
read(4,\M^JD\M^^\0$\0\b\^Y68.rospotrebn...,1024) = 1024 (0x400)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)
lseek(4,0x0,SEEK_CUR)= 25396124 (0x183839c)