history
when I log into free bsd I am in the sh shell. i type history at the command line and the machine says history not found. If I type h at the command line it works like i expect the history command to work. In the csh or tcsh shells history works as well as h. why does entering history at the command line work in the csh and tcsh shells but not in the sh shell. Considering that all three shells seem to have the same .cshrc file? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
memory stick
I am trying to mount a memory stick at the command line. I seem to be able to mount and unmount it but i can't copy files into the stick. please see the attached image for the commands I used and the results. If you have any suggestions on what the problem might be I would sure like to know what you think. I logged in as root on free BSD version 7.0 release 0.0. 20130808091209582.pdf Description: Adobe PDF document ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
[SOLVED] Re: www/179397: I used mouse focus in open-motif and shift-click3 to iconify xterms, doing so causes cursor to disappear and mouse is unusable!
According to freebsd-gnats-sub...@freebsd.org on Fri, 06/07/13 at 06:40: > Thank you very much for your problem report. > It has the internal identification `www/179397'. > The individual assigned to look at your > report is: freebsd-www. > > You can access the state of your problem report at any time > via this link: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=179397 > > >Category: www > >Responsible:freebsd-www > >Synopsis: I used mouse focus in open-motif and shift-click3 to iconify > >xterms, doing so causes cursor to disappear and mouse is unusable! > >Arrival-Date: Fri Jun 07 10:40:00 UTC 2013 I may be one of the few people left who use x11-toolkits/open-motif on the FreeBSD desktop, but be that as it may, there is a bug that needs to be fixed in the /usr/ports/x11-servers/xorg-server/files/ directory. In May 2013 this directory included this file: -rw-r--r-- 1 root wheel 3487 May 2 13:08 extra-dix_events.c I upgraded my ports on a nearly identical system on May 23 and again on June 5th of 2013: unix% ll /usr/ports/x11-servers/xorg-server/files/ total 40 drwxr-xr-x 2 root wheel 1024 Jun 5 11:20 . drwxr-xr-x 4 root wheel 512 Jun 5 12:06 .. -rw-r--r-- 1 root wheel 402 Jun 5 11:20 extra-Xserver-hw-xfree86-os-support-bsd-sparc64_video.c -rw-r--r-- 1 root wheel 350 Jun 5 11:20 extra-Xserver-os-xprintf.c -rw-r--r-- 1 root wheel 5536 May 23 12:19 extra-arch-ia64 -rw-r--r-- 1 root wheel 438 May 23 12:19 extra-arch-powerpc -rw-r--r-- 1 root wheel 2467 Jun 5 11:20 extra-clang -rw-r--r-- 1 root wheel 799 May 23 12:19 extra-include_eventstr.h -rw-r--r-- 1 root wheel 493 Jun 5 11:20 extra-new-arch-i386 -rw-r--r-- 1 root wheel 511 Jun 5 11:20 extra-old-arch-i386 -rw-r--r-- 1 root wheel 645 Jun 5 11:20 extra-os-utils.c -rw-r--r-- 1 root wheel 320 Jun 5 11:20 extra-servermd.h -rw-r--r-- 1 root wheel 384 May 23 12:19 patch-Xserver-hw-xfree86-common-xf86Config.c -rw-r--r-- 1 root wheel 469 May 23 12:19 patch-Xserver-hw-xfree86-os-support-bsd-i386_video.c -rw-r--r-- 1 root wheel 471 May 23 12:19 patch-xorgconf.cpp -rw-r--r-- 1 root wheel 155 May 23 12:19 pkg-deinstall.in -rw-r--r-- 1 root wheel 551 May 23 12:19 pkg-install.in The lack of the extra-dix_events.c patch file caused using my three button USB mouse with x11-toolkits/open-motif to fail. Note: all ports were rebuilt on Jun 5th after running "svn update /usr/ports" from within /usr/ports. Once the mouse failed, all I could do was CTRL-ALT-BS and revert to virtual terminals - not a very good desktop substitute. It turns out that the last patch segment of extra-dix_events.c was omitted (along with the entire patch file itself): @@ -3632,7 +3583,8 @@ CheckPassiveGrabsOnWindow( { FixUpEventFromWindow(device, xE, grab->window, None, TRUE); - TryClientEvents(rClient(grab), device, xE, count, mask, + TryClientEvents(rClient(grab), device, xE, count, +GetEventFilter(device, xE), GetEventFilter(device, xE), grab); } The lack of this last patch segment was the cause of my problems with mwm (part of the x11-toolkits/open-motif port) but it did not impact other window managers such as FVWM which may be why this patch was overlooked. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
9.1-STABLE with xterm-292 oddity
Recently (last week) I upgraded two systems to 9.1-STABLE. One system is i386 and the other is amd64. The upgrades were done about one day apart. While I have not checked every single commit, for the purposes of this problem, I am assuming these two systems have the same ports, src, and docs changes applied. This is how I began these upgrades: % cd /usr % rm -rf src ports doc % svn co svn://svn.freebsd.org/base/stable/9 src % svn co svn://svn.freebsd.org/doc/head doc % svn co svn://svn.freebsd.org/ports/head ports Note: these systems are desktop systems, not headless servers. The hardware of both systems is nearly identical, in particular, the graphics card (ATI) is identical on each system. After each upgrade, I wiped all my ports and rebuilt all the ports on the list of ports I use on these systems. While these two lists are slightly different, the "basics" are the same in both cases. I run Xorg on both systems along with open-motif and xterms: xorg-7.5.2 open-motif-2.3.4 xterm-292 The /var/db/ports/xterm/options files on both systems are identical. # This file is auto-generated by 'make config'. # Options for xterm-292 _OPTIONS_READ=xterm-292 _FILE_COMPLETE_OPTIONS_LIST=256COLOR DABBREV DECTERM GNOME LUIT PCRE WCHAR OPTIONS_FILE_UNSET+=256COLOR OPTIONS_FILE_UNSET+=DABBREV OPTIONS_FILE_UNSET+=DECTERM OPTIONS_FILE_UNSET+=GNOME OPTIONS_FILE_SET+=LUIT OPTIONS_FILE_UNSET+=PCRE OPTIONS_FILE_SET+=WCHAR Also the /usr/ports/x11/xterm/work/xterm-292/xtermcfg.h files are the same on both systems. The oddity is this: on one system, when I iconify/minimize/close an open xterm window, the resulting small icon window holds a pixmap (48x48) that is monochrome. It resembles an outline drawing of an old style dumb terminal. On the other system, when I perform the same operation (close/iconify an xterm window), the resulting small icon window contains a color pixmap (48x48) of our Beastie! While I have an .Xdefaults file in my home directory on both systems, and there are XTerm resources configured therein, I do not configure any resources that control xterm icons. In fact, those .Xdefaults files are identical in the XTerm resource lines. I have rebuilt the x11/xterm port on the system with the color Beastie pixmap for closed/iconic xterm windows using the following steps: # cd /usr/ports/x11/xterm # make deinstall # /bin/rm -rf work # make install The results are the same as before, unfortunately. Interesting enough, one can see the color Beastie pixmap _inside_ the unstripped xterm executable on each system using this command: % strings /usr/local/bin/xterm | less The Beastie embedded pixmap appears after scrolling to about the 83% point (and runs up to about the 93% point) of the strings output. I am at a loss as to how one system is displaying the unwanted color pixmap while the other is showing the desired monochrome pixmap. Any ideas, or suggested avenues for further detective work, on this issue would be greatly appreciated. Thanks in advance. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Lost /var/db/pkg
Thanks, it looks like I had a copy from May in there that was fairly accurate! On Jun 13, 2012 5:03 PM, "Warren Block" wrote: > On Wed, 13 Jun 2012, Eitan Adler wrote: > > On 12 June 2012 18:03, William Orr wrote: >> >>> Hello, >>> >>> I had a hard disk failure some time ago, and I ended up losing >>> /var/db/pkg/ and everything under it (before you say I should've been >>> backing it up, I know, I was actually doing an initial full when this >>> happened). Is there a way I can restore it, or at least manually add >>> entries I know for sure about? >>> >> >> look in /var/db/pkgdb.bak.tbz >> > ^^^ > ITYM /var/backups/pkgdb.bak.tbz. > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Lost /var/db/pkg
Hello, I had a hard disk failure some time ago, and I ended up losing /var/db/pkg/ and everything under it (before you say I should've been backing it up, I know, I was actually doing an initial full when this happened). Is there a way I can restore it, or at least manually add entries I know for sure about? Thanks, Will Orr (Please cc me on the replies, as I'm not subscribed to the list) ___ freebsd-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: Dump Restore on ZFS root system
On 07/02/2012, at 22:25, dick wrote: > Op 7-2-2012 12:23, Vincent Hoffman schreef: >> On 07/02/2012 11:00, dick wrote: >>> I run a ZFS on root FreeBSD system. I know I can backup with snapshots >>> but I want a dump/restore action because I want to transfer this >>> system to a UFS virtual FreeBSD machine. >>> My question is: will dump / (root) make a dump of *ALL* other >>> directories? >>> >> Dump works at the filesystem level and will not work on a zfs filesystem >> [root@banshee /backup/local/zfs]# dump -b 64 -f - ./ >> dump: ./: unknown file system >> >> I'd use tar or cpio or pax or something. >> On a UFS filesystem dump will only dump the filesystem specified and >> will not cross mountpoints. > OK, got it. I will have to read up on the best option (tar, cpio or pax) > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Why not use the ZFS send / receive command? Sincerely, William Brown Research & Teaching, Technology Services The University of Adelaide, AUSTRALIA 5005 CRICOS Provider Number 00123M - IMPORTANT: This message may contain confidential or legally privileged information. If you think it was sent to you by mistake, please delete all copies and advise the sender. For the purposes of the SPAM Act 2003, this email is authorised by The University of Adelaide. pgp.mit.edu http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x3C0AC6DAB2F928A2 signature.asc Description: Message signed with OpenPGP using GPGMail
Re: Software Development using Freebsd.
> > Maybe I am wrong but until now I think my only option is to use Phyton. Is > that correct? For what I have searched Python will let me create executables > and will let me create Graphical solutions even for other platforms (Mac or > LInux or whatever runs Python). > I think that python is a great learning language. I would certainly be teaching it to people as the first language to help build concepts. However, FreeBSD, contains mono. Mono is avaliable on Linux and OSX, but it is on windows natively as .NET. You can easily create some great C# applications that would be cross platform using this tool. Finally, the best cross platform tool is a web service. So perhaps you should explore the Django or Ruby on Rails path? Sincerely, William Brown Research & Teaching, Technology Services The University of Adelaide, AUSTRALIA 5005 CRICOS Provider Number 00123M - IMPORTANT: This message may contain confidential or legally privileged information. If you think it was sent to you by mistake, please delete all copies and advise the sender. For the purposes of the SPAM Act 2003, this email is authorised by The University of Adelaide. pgp.mit.edu http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x3C0AC6DAB2F928A2 signature.asc Description: Message signed with OpenPGP using GPGMail
Re: Revision control advice
On 22/12/2011, at 20:06, Matthew Seaman wrote: > On 22/12/2011 04:53, Rob Byrnes wrote: >>>> Yeah I would second what Mr Rock says. Set up a single repo where >>>>>> folders can be used for projects. Since svn lets you checkout sub >>>>>> folders of a repo, each developer can check out the folder that >>>>>> corresponds to their project. Also, Tortoise svn is a very nice >>>>>> graphical utility that will allow your developers to manage there svn >>>>>> folders without even needing a web interface (most non unix people >>>>>> that I know like tortoise), so there is less maintenance for you :) >>>>>> Finally, kudos to moving towards using version control, its an >>>>>> important step for a software company. >>>> >>>> git or mercurial - best choices >> >> For what reasons? > > svn vs git vs mercurial > > svn has the model of a central repository that everything has to > communicate with. This can be attractive in a commercial environment as > it implies a degree of central control over all of the project source code. > > git is much more a peer-to-peer system. This fits with a disparate > group of projects all proceeding pretty much independently. There's > also a potential advantage if all your developers are not at the same > location and will not necessarily have access to central office systems. > > mercurial unfortunately I'm not that familiar with, but it uses a > distributed model like git. I would advise staying away from mercurial (aka hg). It has a lot of issues with corruption of repositories. Git does the same and is a lot more mature and stable. > > Other criteria, like windows support, are not anything I have much > experience of, but by all accounts svn and git are pretty well served. Again, git wins here. It has good support on windows, as well as with graphical tools on windows. You can use git like SVN if you push to the master after every commit though. I also have found git's support for merging to be a lot better. Additionally it stores branches and tags as metadata on commits rather than svn's "dumb" tag / branch system where you just copy the full repo to the side. Git does take a bit longer to get your head around how some of the tools work, but once you learn it, it really pays off. Sincerely, William Brown Research & Teaching, Technology Services The University of Adelaide, AUSTRALIA 5005 CRICOS Provider Number 00123M - IMPORTANT: This message may contain confidential or legally privileged information. If you think it was sent to you by mistake, please delete all copies and advise the sender. For the purposes of the SPAM Act 2003, this email is authorised by The University of Adelaide. pgp.mit.edu PGP.sig Description: This is a digitally signed message part
Re: failure building www/webkit-gtk2 on 8.2-STABLE
According to Koop Mast on Fri, 12/02/11 at 07:03: > > Can you check if you got the video option selected? "make config" if you > haven't, please select it and do a "make clean" before trying to build it. Excellent advice!!! Thank you very much! Looks like -questions comes through again. You folks are wonderful. :-) Now for some questions and issues to resolve this once and for all. How could I have possibly known that this option (WITH_VIDEO=yes) was required? I looked back at when I last built www/webkit-gtk2 and that was here: -rw-r--r-- 0 root wheel 215 Jan 19 2010 webkit/options In that file I found: WITHOUT_VIDEO=yes So about a year ago www/webkit-gtk2 built just fine WITHOUT the video option. What changed? I checked and there is no match (using grep) in the /usr/ports/UPDATING file (whose first entry dates from 20080108): % grep -i webkit /usr/ports/UPDATING % So I wouldn't have found anything there. I see in the Makefile that WITH_VIDEO has a default of "on". That must not have been the case a year ago. Should I blame the www/xxxterm for having a dependency on www/webkit-gtk2? During the attempted build of www/xxxterm I was not asked for any options for www/webkit-gtk2 since I had a previous file /var/db/ports/webkit/options from back about a year ago. This is now a moot point, since the port did build correctly with this change (thanks again!), but for completeness sake and for my own sanity, how would I have been able to avoid this problem? Thanks. :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: failure building www/webkit-gtk2 on 8.2-STABLE
According to Robert Bonomi on Wed, 11/30/11 at 16:12: > > From owner-freebsd-questi...@freebsd.org Wed Nov 30 09:14:56 2011 > > Date: Wed, 30 Nov 2011 10:12:23 -0500 > > From: William Bulley > > To: freebsd-questions@freebsd.org > > Cc: gn...@freebsd.org > > Subject: failure building www/webkit-gtk2 on 8.2-STABLE > > > > This is a freshly csup'd ports tree as of 11/24/2011 and uname -a gives: > > > >FreeBSD dell 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun May 29 08:36:55 EDT > > 2011 > >root@dell:/usr/obj/usr/src/sys/DELL amd64 > > > > When I try to "make install" in www/xxxterm this is what I get: > > > > ===> xxxterm-1.518 depends on file: /usr/local/bin/perl5.14.1 - found > > ===> xxxterm-1.518 depends on file: /usr/local/bin/intltool-extract - > > found > > ===> xxxterm-1.518 depends on executable: pkg-config - found > > ===> xxxterm-1.518 depends on shared library: gnutls.47 - found > > ===> xxxterm-1.518 depends on shared library: soup-2.4 - found > > ===> xxxterm-1.518 depends on shared library: webkitgtk-1.0 - not found > > *THIS* 'not found' indicates the linking (at least) of the exuecutable will > probably fail. Thanks for the reply. This knowledge is not all that useful. The process of making this port will, of course, make all dependencies of this port. By not finding that item forces the installation of www/webkit-gtk2 below. This is not an error. > > ===>Verifying install for webkitgtk-1.0 in /usr/ports/www/webkit-gtk2 > > ===> Building for webkit-gtk2-1.4.3 > > gmake all-am > > gmake[1]: Entering directory `/usr/ports/www/webkit-gtk2/work/webkit-1.4.3' > > GENWebKit-1.0.gir > > /usr/local/bin/gmkdir -p ./.deps/DerivedSources > > /usr/include/machine/endian.h:123: syntax error, unexpected '{' in ' return > > (__extension__ ({ register __uint64_t __X = (_x); __asm ("bswap %0" : "+r" > > (__X)); __X; }));' at '{' > > /usr/include/machine/endian.h:123: syntax error, unexpected ';' in ' return > > (__extension__ ({ register __uint64_t __X = (_x); __asm ("bswap %0" : "+r" > > (__X)); __X; }));' at ';' > > /usr/include/machine/endian.h:130: syntax error, unexpected '{' in ' return > > (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap %0" : "+r" > > (__X)); __X; }));' at '{' > > /usr/include/machine/endian.h:130: syntax error, unexpected ';' in ' return > > (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap %0" : "+r" > > (__X)); __X; }));' at ';' > > _these_ errors may be a separate issue They indicate an incompatibility > between the code and the -compiler- being used. This could be an artifact > of other errors, like the one implied below, or they could be from unrelated > causes. Eliminate the other errors, and see if this remains. The port maintainers are responsible for assuring the compiler matches the code, and that the code compiles with that compiler. This is clearly an error, but one that I have no idea how to fix. > > Source/WebKit/gtk/webkit/webkitversion.h:33: Warning: WebKit: > > symbol='WEBKITGTK_API_VERSION': Unknown namespace for symbol > > 'WEBKITGTK_API_VERSION' > > This is "probably" directly related to the 'not found' error above. Not so sure about that. But again, how is this (and other errors) to be fixed? Why don't the port maintainers respond to this thread? > > /usr/ports/www/webkit-gtk2/work/webkit-1.4.3/tmp-introspectiHsaMf/WebKit-1.0.o(.data+0x2e8): > > undefined reference to `webkit_dom_html_media_element_get_type' > > /usr/ports/www/webkit-gtk2/work/webkit-1.4.3/tmp-introspectiHsaMf/WebKit-1.0.o(.data+0x3c0): > > undefined reference to `webkit_dom_media_error_get_type' > > /usr/ports/www/webkit-gtk2/work/webkit-1.4.3/tmp-introspectiHsaMf/WebKit-1.0.o(.data+0x450): > > undefined reference to `webkit_dom_time_ranges_get_type' > > as are all these. Again, not so sure about that. > > Can anyone tell me what is going on here and how I can correct it? > > Can it be that this port does not build correctly on AMD hardware? Again, thanks for the reply, but it doesn't get me all that much closer to getting this port built. Anyone else have any ideas or pointers? Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
failure building www/webkit-gtk2 on 8.2-STABLE
ead', '-L/usr/local/lib', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0', '-lpangocairo-1.0', '-lXext', '-lXrender', '-lXinerama', '-lXi', '-lXrandr', '-lXcursor', '-lXcomposite', '-lXdamage', '-lgdk_pixbuf-2.0', '-lpangoft2-1.0', '-lXfixes', '-lcairo', '-lX11', '-lpango-1.0', '-lm', '-lfreetype', '-lfontconfig', '-lsoup-2.4', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lglib-2.0', '/usr/ports/www/webkit-gtk2/work/webkit-1.4.3/tmp-introspectiHsaMf/WebKit-1.0.o']' returned non-zero exit status 1 gmake[1]: *** [WebKit-1.0.gir] Error 1 gmake[1]: Leaving directory `/usr/ports/www/webkit-gtk2/work/webkit-1.4.3' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/www/webkit-gtk2. *** Error code 1 Stop in /usr/ports/www/webkit-gtk2. *** Error code 1 Stop in /usr/ports/www/xxxterm. Can anyone tell me what is going on here and how I can correct it? Can it be that this port does not build correctly on AMD hardware? Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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-questions Digest, Vol 390, Issue 3
According to "Galati, Michael" on Wed, 11/23/11 at 00:40: > > If you still have trouble compiling, you could always do a fresh > install off one of the 9.0-RC2 images on a spare machine (or on > virtual machine; VirtualBox works well for this), and build the > sources there. Once the make build{world,kernel} steps complete, copy > (or export over NFS) /usr/{src,obj} to the machine to be upgraded, and > do the usual make install{kernel,world} (and mergemaster) steps. > > I just did this just yesterday to bring a test box up from stable/8 to > stable/9; worked like a charm. YMMV. > > Apparently freebsd-update(8) works for binary updates as well, but > I've never used it (check the release announcement on freebsd-current > or freebsd-stable from the 17th). > > Good luck! ^_^' Thanks. I am now happily running 9.0-PRERELEASE (!) and finally past all those weird bsdinstall issues. What a mess! Thanks for all the replies and help. I didn't use anything other than what I view as the "standard" (t/m) way to upgrade: csup-of-stable/buildworld/installworld which method has always worked in the past for me, but had trouble in the attempt to upgrade to a 9.x variant before it was ready for prime time. I would not normally have done this, but there were extenuating circumstances that required the attempt. Thanks again. :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Ian Smith on Tue, 11/22/11 at 23:48: > > Sorry William, this arrived not long after I crashed, 18-hour odd time > difference .. I've since seen Frank Shute advise how to csup from 8.2-S > to RELENG_9_0 and in your case that's likely the easiest way to go. Sorry about the time difference - not much I can do about that... :-) > As you see, you got exactly the same error I got with BETA1, and for the > same reason - bsdinstall isn't running newfs on your existing partitions > before trying to extract the distribution. I thought that was going to > be fixed before release, but clearly not yet. It really needs the newfs > toggle option of sysinstall/sade before it'll be useful as sysinstall. > > The docs are very much a work in progress. Even sysinstall requires you > to at least enter the mountpoints for your existing partitions (within a > slice); they're needed for install and of course to build /etc/fstab. > > In my case, wanting to preserve /home, seems I'll have to NOT supply a > mountpoint for that partition in order for it to be left alone, and then > add it into fstab afterwards, probably having to merge any newly created > user there from /usr/home, revert the symlink etc. Messy. > > Did you try running sysinstall (or sade), just to do the slicing + > partitioning / newfs'ing from Live CD mode, only on DVD1 I guess? > > In your case I think a source upgrade and building is probably the way > to go. In my case, my 8.2 is on another slice (s4), but I want 9.0 on > s2, over an existing 7.4-RELEASE, because that slice has enough space > for a decent ongoing 9.x system, and because I'd hoped to contribute to > debugging bsdinstall - but then I moved and had no net access for nearly > a month. Still, I'm persisting with that plan and I'll keep hassling > until this regression in functionality is fixed, for 9.1 now I guess. The third time is the charm! I was successful (and am now running 9.0-PRERELEASE!) with the upgrade of this older Dell laptop. The first (failed attempt) was from 8.2-S to 9.x anything (turned out to be RC1 at the time). This was a source upgrade (csup/buildworld/installworld) but failed during the compilation of the kernel. At this point I decided to just grab the DVD1 and install over my 8.2-S since I was not invested in anything on the disk (although I had csup'd the ports tree and was running Xorg successfully at that point). The DVD1 ISO install of 9.0-RC1 was unsuccessful due to the oddness of the bsdinstall program as you describe above. At about this time RC1 was transitioning to RC2, so I decided to grab the bootonly RC2 ISO and yesterday ran into the same bsdinstall issues. So I was forced to try the source upgrade again, hoping that by this time the kernel compilation problem had been fixed. Well, evidently it was, because the csup/buildworld/installworld method worked like a charm and I am now happily running 9.0-PRERELEASE. Thanks for all the replies and suggestions. I am going to try to avoid using bsdinstall like the plague and I advise others to do likewise, at least until it becomes more mature. It seems to me that the inclusion of the bsdinstall program as the default installer in 9.0 is illadvised at best. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Frank Shute on Tue, 11/22/11 at 13:36: > > Can't help you with your bsdinstall woes but to upgrade from > 8.2-STABLE to 9.0-RELEASE(currently RC2) branch you want to do a > csup(1)/buildworld cycle. > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html > > You should use the tag: > > *default release=cvs tag=RELENG_9_0 > > in your supfile. More details at: > > http://www.shute.org.uk/misc/freebsd_uptodate.html Thanks. :) Perhaps you came into this thread late, but that was my first attempt. But at that time, a few weeks ago, we were still at 9.0RC1 and my then buildworld/installworld attempt failed during the kernel compile step. Now that 9.0RC2 is available, I reckon it is worth a try dealing with the csup/buildworld/installworld process. I hope this works this time. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Ian Smith on Sat, 11/19/11 at 13:29: > > Unfortunately that concentrates on creating a GPT layout, encouraging a > Linux-like single (plus a boot) partition - forget using dump/restore - > and says nothing much about installing over an existing setup with MBR > partitioning and multiple slices, a not uncommon setup on many existing > laptops .. eg here I want to install over a previous 7.2-RELEASE 60GB > slice partitioned as I want it - 1GB /, 4GB /var, 16GB /usr and ~37GB > /home. Further, I want to preserve /home as is, despite having backups. > > sysinstall's partitioning is more sophisticated; you get to specifically > toggle on or off newfs'ing each partition, as well as specifying newfs > options if you want. So it's clear whether you'll be newfs'ing / and > which other partitions, and which you'll be leaving alone, eg /home. > > On BETA1 I recorded "Extract Error while extracting base.txz: can't set > user=0/group=0 for /var/empty Can't update time for /var/empty .." which > someone/s else also reported, which turned out to be misleading .. the > basic problem is that the filesystem isn't empty, ie as after newfs. I hate to be a pest about this, but bsdinstall just isn't working for me. I grabbed the 9.0RC2 bootonly ISO for i386 and tried again to load this onto this Dell laptop. This time the *.txz files had to be gotten over the network which took longer that with the DVD1 ISO. :-( The files were fetched, and checked/verified, then the actual installation (extraction) began. Unfortunately, I got the same error pop-up message. This time I have the exact text of that error message: "Error while extracting base.txz: Can't set user=0/group=0 for var/emptyCan't update time for var/empty" Note the missing space or CR before the second "Can't" What confused me at first was the missing slash ("/") character before the two "var" pathnames. But I now understand that is because I am updating (not installing) from a previously working (was 8.2-STABLE in this case) system where the four partitions (root, swap, /var, and /usr) are present and full of FreeBSD files, etc. If this is a "feature" of bsdinstall, then it should be mentioned in the documentation somewhere. I used the "Manual" configuration method where I was asked to name the mount points for root, /var and /usr. My question is this: "if bsdinstall can't handle installing over top of an already existing system on disk, then why ask the user for mount points on those already existing partitions?" This seems weird to me. So now I am back to square one. I want to load 9.0RC2 onto this laptop for reasons that aren't relevant to this thread, yet I am unable to do so because as of 9.0 sysinstall has been replaced by bsdinstall. For the record, how do I upgrade to 9.0RC2 (or any 9.0 variant) from a system already running 8.2-STABLE? Had this attempt been using the sysinstall method, I would have long since been up and running FreeBSD 9.x on this laptop. Please advise. Thanks in advance. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Thomas Mueller on Sun, 11/20/11 at 05:46: > > It looks like tar in extraction mode automatically recognizes xz > compression in the file to be extracted from. > > Section from the man page for tar in FreeBSD 9.0-RC1: > > -J, --xz > (c mode only) Compress the resulting archive with xz(1). In > extract or list modes, this option is ignored. Note that, unlike > other tar implementations, this implementation recognizes XZ com- > pression automatically when reading archives. You see? That just goes to show you... ;^) The above section is missing from my 8.2-STABLE platform tar(1) man page. The whole problem is my trying to "get there from here" - which was what started this thread... :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Matthew Seaman on Sun, 11/20/11 at 02:34: > > bsdtar(1) -- accept no substitutes. Well, actually, it's libarchive > which bsdtar is built on top of. It automatically recognizes most > compression formats and most types of data archive -- including a few > that you probably wouldn't have thought of in that context. Try running > it against a .iso CDRom image. When I ran "man tar" it gave me the bsdtar(1) man page - never much noticed that before... :-) Holy crap! I had no idea: freebsd% tar tvf FreeBSD-9.0-RC1-i386-dvd1.iso | wc -l tar: Ignoring out-of-order file @121dac0 (usr/sbin/chown) 75319296 < 447330304 tar: Ignoring out-of-order file @1285180 (usr/share/man/man3/getlogin_r.3.gz) 498898944 < 499906560 tar: Ignoring out-of-order file @1270640 (usr/share/man/man3/FD_CLR.3.gz) 499187712 < 499906560 tar: Ignoring out-of-order file @1270700 (usr/share/man/man3/FD_ISSET.3.gz) 499187712 < 499906560 tar: Ignoring out-of-order file @12707c0 (usr/share/man/man3/FD_SET.3.gz) 499187712 < 499906560 tar: Ignoring out-of-order file @1270880 (usr/share/man/man3/FD_ZERO.3.gz) 499187712 < 499906560 tar: Ignoring out-of-order file @12449c0 (usr/share/man/man5/malloc.conf.5.gz) 500283392 < 505104384 tar: Ignoring out-of-order file @12476c0 (usr/share/man/man8/inetd.8.gz) 505382912 < 506322944 tar: Ignoring out-of-order file @1241480 (usr/share/zoneinfo/Europe/Oslo) 521547776 < 521877504 tar: Ignoring out-of-order file @121d880 (usr/share/zoneinfo/Europe/Istanbul) 521633792 < 521877504 tar: Ignoring out-of-order file @12413c0 (usr/share/zoneinfo/Europe/Nicosia) 521676800 < 521877504 tar: Error exit delayed from previous errors. 17817 Everything is there and listed. Amazing! You learn something every day. :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Edward Martinez on Sat, 11/19/11 at 19:02: > > I got interested and downloaded it to try myself. I installed 9.0 in > virtualbox using the guided option and it installed. just > wondering if you tried installing with guided option instead of > manual? Now I will try using manual and see what happens I did not try guided. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Matthew Seaman on Sat, 11/19/11 at 03:14: > > xz(1) is the latest compression program around. It usually gets better > results than bzip2 so lots of usages are being switched to it. .txz is > a tar archive compressed with xz. Thanks. Then it is so new that I'd not heard about it while trying to manage my other responsibilities... :-) > Hmmm.. I wonder if the base.txz file on your install media has become > corrupt? If you've got a FreeBSD machine around (any supported 7.x or > 8.x would do), you could just mount your 9.0 disk on it, find that file > wherever it is in the disk, and see if 'tar -tvf base.txz' will show you > the contents without errors. Possible, but unlikely. Plus I doubt that 'tar -tvf base.txz' without a pipe having an "xzcat(1)" in front of the "tar(1)" command. Maybe there is an "xz" option for tar(1) during extraction mode, but my tar(1) man page doesn't list any, sigh... It does list -y and -z options for other compression/decompression modes, hmmm :-( > The other possibility is that you ran out of space in the partition you > were trying to write to. You'ld have to open an emergency holographic > shell to investigate (does the new installer even have that wording? It > should...) One thing to check is not only space usage but inode usage > too. There's an ongoing discussion about installing onto small drives > and whether the bytes-to-inode ratio should be modified there. As I have previously stated, my root, /var, and swap partitions are all 4 GB in size, and my /usr partition is 99 GB - likely plenty room in all. > The lack of a leading '/' on the path you saw is normal -- your hard > drive is mounted at something like /mnt while the system is installed > onto it. The installer is just using paths relative to that mountpoint. Well, now that is interesting! I hadn't thought of that possibility... Thanks again for your reply. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Daniel Staal on Sat, 11/19/11 at 10:06: > > --As for the rest, it is mine. > > Just as a quick digression... > > xz has only marginal improvements in compressed size over bzip2, and takes > a lot more cpu/memory resources to compress. In most cases, I'd say it's > the wrong choice for a compression format. > > However, the one place where it is unequivocally the *best* choice is one > that will make it well known: Distributing archives. It does beat bzip2 by > a small amount, and it's *decompression* time is *much* faster than bzip2 - > on par with gzip. Plus decompression can be done in a fixed amount of RAM, > regardless of the size of the files being uncompressed. For files that are > compressed once and then decompressed many times on many different boxes - > like a FreeBSD release - it's a definite win. > > But for files that will be compressed and uncompressed regularly, or > compressed and usually never touched again, it's worth thinking about > what's the best balance of resources. Thanks for that explanation! :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Robert Bonomi on Sat, 11/19/11 at 10:08: > > IIRC, the error message was "out of inodes". > > This means something was trying to put *lots* (where 'lots' is relative > number, depending on the size of the filesystem :) of little files on the > filesystem. You were _not_ out of 'free space' on the filesystem, just out > of slots for file 'metadata'. Newfs, if not told specifically how many > inodes to allocate, makes a 'guess' based on the size of the slice -- thus > increasing the size of a partition will have an automatic 'side effect' of > increasing the total number of inodes. However, by explicitly stating the > number of inodes, or the inodes per unit of storage, when running newfs, > one can get more (or fewer) inodew _without_ having to change partition > sizes. Most significantly, one can do this -- change the number of inodes, > that is -- *without* having to destroy/recreate any other partitions on > the same physical device. > > SECONDLY, if this happened -during- the install, and the complaint > was about "/var" -- as distinct from something like '/a/var', or '/mnt/var' > Then the problem is *NOT* on the drives you are installing *ONTO*, but > on the media you are installing _from_. At a guess, the installer is > using /var -- probably /var/tmp -- to keep scratchpad files in, and there > are not enough inodes for the installer. could it be unpacking tarfiles > there, move/copy onto the 'target' media? > > You're installing from a memory stick right? You may need to rebuild > the filesystem on the stick, _manually_ specifying a larger number of > inodes for the filesystem that /var is part of. No that was not the error. The error was something along the lines of: "var/ " but I don't recall the exact text of the error message - the main point of my previous messages was to point out the missing leading slash, not "/var", but just "var" - which at the time I thought was most unusual. This was happening during an "attempted" install of 9.0RC2 from DVD ISO as in: FreeBSD-9.0-RC2-i386-dvd1.iso and was not an attempt from a memory stick. Thanks for the reply, but based on another reply, I think my problem has stemmed from the use of bsdinstall which apparently doesn't do a very good job of installing a subsequent version of FreeBSD on top of an existing (prior) version of same. Had I been able to upgrade using the normal methods (buildworld and installworld) from 8.2-STABLE to 9.0RC1 or 9.0RC2 I would have, but during the kernel compile process I got a compile time error (that was trying to upgrade to RC1 just prior to the arrival of RC2) and there was no way I could deal with that. Interestingly enough, in looking around following that failed upgrade attempt, the RC1 ISOs and so forth were missing from ftp.freebsd.org which I thought was odd. Shortly thereafter RC2 was being seen around *.freebsd.org in various places, so I must have been making this attempt during the transition from RC1 to RC2 in all the distribution places. This convinced me to burn a new DVD (against the RC2 ISO) but then I got hammered by the not-ready-for-prime-time bsdintall program... :-( Thanks again. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
rent either (which I don't). > Fortunately sysinstall is still there, and while it can't handle GPT > partitioning, should still be useful for partitioning and maintaining > many existing systems. I've yet to install RC1, and here's RC2, but I'm > encouraged to see the memstick.img has dropped GPT partitioning for MBR > with a single provider (eg da0a) so it can be again used by sysinstall; > in my case I'd rather use that than manually newfs needed partitions. > > I hope someone will correct any now-obsolete concerns I've expressed :) Thanks again. I think sysinstall is excellent and should be retained. I will try the "bootonly" approach _with_ sysinstall and see if I can get 9.0RC2 loaded "properly". :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Fbsd8 on Fri, 11/18/11 at 21:02: > > I think you have under sized /usr and the uncompress ran out of space > during the install. Start over again, wipe the disk clean (ie: delete > all slices)and re-allocate your slices with larger space allocations. Thanks. While this is an older Dell laptop as I said earlier, it still has a decent sized drive. And I am following the guidelines in the handbook at the beginning of section 2.6.5 Creating Partitions Using Disklabel: / (root) is 4 GB swap is 4 GB /var is 4 GB /usr is the rest of the disk - in this case 99 GB Bottom line, I think this is sufficient - it was for 8.2-RELEASE and -STABLE. Plus the handbook says "at least 8 GB" for /usr. Oh, and this is a "dangerously dedicated" drive housing only FreeBSD. That is, I'm using the entire disk for FreeBSD. Thanks again. Or, perhaps you are saying 4 GB is insufficient for /var? Since it seems to be complaining about not being able to write to "var/". Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Edward Martinez on Fri, 11/18/11 at 19:53: > >Have you tried installing with "ACPI" disabled. > > http://www.freebsd.org/doc/handbook/bsdinstall-install-trouble.html#Q3.10.2.1. > > this also may be of some help: > http://www.freebsd.org/doc/handbook/bsdinstall-partitioning.html Thanks. I will try disabling "ACPI" but this wasn't necessary for the install of 8.2-RELEASE from CD which, as I said, went in just as I expected. I would not think that much would have changed in 9.0RC2 in this area. Maybe I am wrong about that. The second URL describes the Manual vs. Guided install and partition section of bsdinstall. I had read this several days before the 9.0RC2 install attempt from DVD. It seemed pretty reasonable, but a little bit different from sysinstall. Was worth a try. What I saw when I selected Manual partitioning, was a complete tree: ad0 ad0s1 [FreeBSD Boot Manager from 8.2] ad0s1a [was my previous root partition] ad0s1d [was my previous swap partition] ad0s1d [was my previous /var partition] ad0s1e [was my previous /usr partition] or something very close to that, missing only my mount points from my previous 8.2-STABLE system. I added the mount points (this is the area where I thought bsdinstall had some weaknesses in the "User Experience") and went on after selecting "Finish". The problem occurred much later after I selected all four install files. When I said the equivalent of "Go", it began the process of loading them off the DVD, checking their checksums, and compressing them prior to installing them. It was while processing the first (base.txz) chunk that the popup appeared giving me the "unable to write" or "unable to uncompress" message. Can't recall the exact error now some hours later... :-( So the extraction step failed the first file, and I never made it to the Post-Installation phase, sigh... :-( Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: where to ask about problems with bsdinstall in 9.0RC2?
According to Matthew Seaman on Fri, 11/18/11 at 17:41: > On 18/11/2011 21:27, William Bulley wrote: > > I tried to install 9.0RC2 from the DVD ISO today. This defaults > > to using bsdinstall instead of the 8.x sysinstall. > > > > This process gave me an error, but I'm not sure in which forum > > to discuss this problem/error. Thanks in advance. > > freesd-questions@ is fine to talk about this sort of problem. At least, > initially. Give us more detail on exactly what you did, what then > happened, (and maybe why you think that was wrong) and we can probably > help you get your system installed. > > If it turns out to be a bug in the new installer rather than operator > error, then freebsd-current@ is the place to take it. Okay, here goes. :-) I was loading a decent but somewhat older Dell laptop with FreeBSD for a friend who bailed since he didn't want to bother configuring Xorg. Since this is fairly trivial these days, I said, "sure, I'd do that for you" - silly me... :-( Anyway, do to the user requirements, I found it necessary to load a version 9.x system on this laptop. I burned this version to DVD: FreeBSD-9.0-RC2-i386-dvd1.iso The laptop had no trouble booting from this DVD. Unfortunately, I forgot about the new bsdinstall program. I was dubious but it seemed to start out okay. I had some User Interface issues with the Manual disk partition screen, but that is a matter of taste or a feature request, and not the bug. Everything progressed just fine as the various *.txz files were loaded, checked and installed. Or so it seemed... As the progress bar moved to the right toward 100% completion, a window popped up telling me that it (bsdinstall) could not handle the base.txz (BTW, what does the suffix ".txz" mean?) - it could not uncompress it and said something about "unable to write" and the string was something like: "var/base.txz" (note the lack of a leading slash in front of "var"). It asked me if I wanted to continue or restart and I said "yes", but the bsdinstall started over from scratch and failed in the same manner. Unfortunately I had to bail on the attempt... :-( Prior to this, I had loaded and configured 8.2-RELEASE and had upgraded it to 8.2-STABLE. I csup'd the ports tree and built enough ports to run Xorg. And I got X11 running after a bit. But when I tried to upgrade again to 9.x (anything) I ran into problems there (slips my mind why at present) which led me to trying the FreeBSD-9.0-RC2-i386-dvd1.iso approach. What a mess... :-( Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
where to ask about problems with bsdinstall in 9.0RC2?
I tried to install 9.0RC2 from the DVD ISO today. This defaults to using bsdinstall instead of the 8.x sysinstall. This process gave me an error, but I'm not sure in which forum to discuss this problem/error. Thanks in advance. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Breakin attempt
I'm seeing the same thing from the same IP adresses. William Myers Associate Professor, Computer Studies 100 Belmont-Mount Holly Road Belmont Abbey College Belmont, NC 28012-1802 (704) 461-6823 FAX: (704) 461-5051 my...@crusader.bac.edu On Sat, 22 Oct 2011, Admin ValhallaProjectet wrote: Hello all FreeBSD odin.thorshammare.org 8.2-STABLE FreeBSD 8.2-STABLE #0: Sat Oct 22 10:14:48 CEST 2011 ha...@odin.thorshammare.org:/usr/obj/usr/src/sys/ODIN i386 Firewall PF. Blocking China and some other related countries in that region. Disabled ssh root logins Apparently, I'm under some kind of attack, for the last 3 days. Lots of attempts to ssh in as root from many different IP addresses. No bruteforce attempts. This just puzzles me. Using all these resources ? To achieve what ? Below is a one hour snip from my auth.log Nothing unusual in pflog Appreciate all ideas of how to proceed with this mather. Best regards Hasse Oct 22 12:00:19 odin sshd[14359]: error: PAM: authentication error for root from server.fabian.cz Oct 22 12:01:08 odin sshd[14365]: Address 87.105.187.194 maps to client-arsmedica-2.wroclaw.dialog.net.pl, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT! Oct 22 12:01:09 odin sshd[14365]: error: PAM: authentication error for root from 87.105.187.194 Oct 22 12:02:59 odin sshd[14422]: error: PAM: authentication error for root from 87.229.7.163 Oct 22 12:03:36 odin sshd[14865]: error: PAM: authentication error for root from 201.25.53.34 Oct 22 12:03:53 odin sshd[15571]: error: PAM: authentication error for root from 109.237.210.147 Oct 22 12:05:18 odin sshd[18357]: error: PAM: authentication error for root from 12.222.202.34 Oct 22 12:05:36 odin sshd[18375]: error: PAM: authentication error for root from mx.aysor.am Oct 22 12:05:53 odin sshd[18537]: error: PAM: authentication error for root from 190.129.11.76 Oct 22 12:07:06 odin sshd[19429]: Address 80.188.13.214 maps to www.profitaxi.cz, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT! Oct 22 12:07:06 odin sshd[19429]: error: PAM: authentication error for root from 80.188.13.214 Oct 22 12:07:27 odin sshd[19542]: error: PAM: authentication error for root from 85.185.180.48 Oct 22 12:08:05 odin sshd[19591]: error: PAM: authentication error for root from 208.125.137.121 Oct 22 12:09:45 odin sshd[19629]: error: PAM: authentication error for root from 83.14.240.10 Oct 22 12:10:53 odin sshd[19699]: error: PAM: authentication error for root from 200.160.121.246 Oct 22 12:10:59 odin sshd[19702]: error: PAM: authentication error for root from 151.1.183.216 Oct 22 12:11:38 odin sshd[19787]: error: PAM: authentication error for root from crm.nepinc.com Oct 22 12:12:16 odin sshd[19830]: error: PAM: authentication error for root from 189.16.12.146 Oct 22 12:12:45 odin sshd[19843]: error: PAM: authentication error for root from narro.uaaan.mx Oct 22 12:14:14 odin sshd[19913]: error: PAM: authentication error for root from 217.128.151.181 Oct 22 12:14:56 odin sshd[19925]: reverse mapping checking getaddrinfo for panda.zsuvoz.cz [195.178.81.116] failed - POSSIBLE BREAK-IN ATTEMPT! Oct 22 12:14:56 odin sshd[19925]: error: PAM: authentication error for root from 195.178.81.116 Oct 22 12:16:14 odin sshd[19995]: error: PAM: authentication error for root from 87.193.246.26 Oct 22 12:16:23 odin sshd[20008]: error: PAM: authentication error for root from 219.94.144.230 Oct 22 12:16:39 odin sshd[20026]: error: PAM: authentication error for root from 82.130.143.216 Oct 22 12:17:41 odin sshd[20073]: error: PAM: authentication error for root from 87.193.246.26 Oct 22 12:17:52 odin sshd[20102]: error: PAM: authentication error for root from 82.130.143.216 Oct 22 12:21:16 odin sshd[20268]: error: PAM: authentication error for root from 203.141.158.120 Oct 22 12:21:34 odin sshd[20286]: error: PAM: authentication error for root from 208.125.137.121 Oct 22 12:22:05 odin sshd[20326]: reverse mapping checking getaddrinfo for 86-100-134-185-ip.balticum.lt [86.100.134.185] failed - POSSIBLE BREAK-IN ATTEMPT! Oct 22 12:22:05 odin sshd[20326]: error: PAM: authentication error for root from 86.100.134.185 Oct 22 12:22:22 odin sshd[20339]: error: PAM: authentication error for root from 201.232.69.113 Oct 22 12:23:35 odin sshd[20428]: error: PAM: authentication error for root from 87.229.7.163 Oct 22 12:23:58 odin sshd[20486]: error: PAM: authentication error for root from 65.161.248.26 Oct 22 12:24:39 odin sshd[20605]: error: PAM: authentication error for root from 210.238.91.147 Oct 22 12:25:08 odin sshd[21400]: error: PAM: authentication error for root from 12.222.202.34 Oct 22 12:26:08 odin sshd[23744]: error: PAM: authentication error for root from zodiaq3d.info Oct 22 12:26:56 odin sshd[23747]: error: PAM: authentication error for root from mx.cbc-group.kz Oct 22 12:30:26 odin sshd[23752]: error: PAM: authentication error for root from 190.152.145.53 Oct 22 12:30:54
gmirror resync seems stalled
I had a drive which had some timeout problems, and got kicked out of a gmirror based RAID1 on my FreeBSD machine (now 8.2-RELEASE-p3). Normally, if the devices get out of sync, they rebuild relatively quickly, and I can watch the progress. This time, after running gmirror forget and inserting the device, it just seems to sit at '0%', despite the fact that it's supposedly synchronizing. I've tried removing and re-adding it a couple times, but the behavior is the same. Am I just being too impatient? Autosynchronization of stale components should have already been enabled (and the gmirror list output says 'synchronizing'), but I tried a "gmirror configure -a gm0" just in case. Also, any opinions on how safe the '-F' option ("Do not synchronize after a power failure or system crash") is? Following: # gmirror remove gm0 ad6 # gmirror forget gm0 ad6 # gmirror insert gm0 ad6 I see: # gmirror list Geom name: gm0 State: DEGRADED Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 4 SyncID: 1 ID: 506994055 Providers: 1. Name: mirror/gm0 Mediasize: 1000204885504 (932G) Sectorsize: 512 Mode: r6w5e14 Consumers: 1. Name: ad10 Mediasize: 1000204886016 (932G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 4 SyncID: 1 ID: 3348119132 2. Name: ad6 Mediasize: 1000204886016 (932G) Sectorsize: 512 Mode: r1w1e1 State: SYNCHRONIZING Priority: 0 Flags: DIRTY, SYNCHRONIZING GenID: 4 SyncID: 1 Synchronized: 0% ID: 3439333064 and the status seems to just stay at 0% relevant atacontrol output: ATA channel 3: Master: ad6 SATA revision 2.x Slave: no device present ATA channel 5: Master: ad10 SATA revision 2.x Slave: no device present ___ freebsd-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: binary upgrade problems (8.1-RELEASE-p5 -> 8.2-RELEASE-p3)
Sorry for the self-follow-up, but I did eventually fix it - I thought I had tried this already, but the machine seems to have been booting from the inactive component of a gmirror array; doing a gmirror forget gm0 and a reboot fixed the problem. w ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
binary upgrade problems (8.1-RELEASE-p5 -> 8.2-RELEASE-p3)
I'm having some problems after doing a: freebsd-update -r 8.2-RELEASE upgrade (I had also done an upgrade from 8.1-p5 to p6 without rebooting; not sure if that's part of the problem). I did the update, merged the config files, ran freebsd-update install, rebooted, and then ran freebsd-update install; despite /boot/kernel and /boot/kernel.old both having a recently updated kernel, one which has FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 if I run strings on it, uname and sysctl report 8.1-RELEASE-p5 FreeBSD 8.1-RELEASE-p5 #0: Tue Sep 27 16:49:00 UTC 2011 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 As you can see, I'm just running the generic kernel. The system boots and most services run, though ipfw isn't loading because of the kernel version mismatch. Trying to either rollback or re-upgrade using freebsd-update isn't working (the update list it builds is wrong -- specifically, the fetch_make_patchlist() function isn't working right and is missing the filenames, so it wants to delete all my files). Any thoughts on the simplest way to get everything synced up and happy again without doing a binary upgrade from sysinstall? kernel and kernel.old are currently the same thing; I did try doing a nextboot -k kernel.old, but that doesn't change anything. If it matters, my first reboot after the upgrade was to single user mode (to do a fsck) rather than standard - wondering if this prevented some automatic thing that happens on the first boot after the binary upgrade from running It has been rebooted normally several times since then, though. I've tried moving /var/db/freebsd-update out of the way and re-creating it, but that didn't help (I've since moved the old one back). w ___ freebsd-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: Thinkpad audio question
According to Jakub Lach on Wed, 09/14/11 at 23:11: > > It was mav (Alexander Motin), he proposed those hints > after I complained that sound stopped working after > update. He wondered how I got sound to work > in the first place, with hints I had previously. I would have wondered the same. The question that remains to be answered is: how did mav (Alexander Motin) suss out the details of how to do this in the first place? :-) > I don't think pushing those specific hints somewhere > would be so beneficial, subtle hardware revision could > change pin associations. (e.g. Your friend's T500?) True, but it might give someone an idea of where to start looking... > I don't think man page is missing something, it's > verbose and exhaustive, with 4 examples of hints > for various purposes. (The truth is out there! heh.) We can agree to disagree, perhaps. The man page is complete, I agree, but it isn't a great read for a user who doesn't understand audio hardware, has never dealt with anything other than stereo speakers and stereo headphones (with or without microphone). The four (4!) examples all refer to the one (1!) HP Compaq system. And these explanations don't give a good description of the connection between "AS", "NID", "SEQ", etc. That is, there are examples there, but the explainations assume that the reader knows more about the underlying hardware and how audio systems and chips work in general than is likely the case for most users with laptops using the snd_hda(4) driver supported hardware. I hope that run-on sentence is comprehensible to folks... :-) > The problem is, most people don't want (or don't > know they need) to swap line-out and speaker > functions, to split headphones and mic to separate > device etc. This is completly true - I agree wholeheartedly with this. > They do not know why default pinout is not working > as it should, and what they should change. Yep. > They just want to have headphones and speakers > working as intended :) Well, d'oh! :-) > But I'm afraid this can't be directly addressed, as > possibilities of default wrong pin associations are > "endless". Sadly, I must agree with you here also, sigh... :-( > If you think otherwise you are free to submit PR > as well :) I am going to submit a PR (when I learn how from the handbook), but not to suggest new text or wording. Rather, I will make suggestions of areas that could be improved for readability and understanding. > best regards, > - Jakub Lach > > PS. I suspected that If by chance my device.hints > will "just work", the "pedantic engineer" in > you would be silenced somehow :P Well, then you don't know me very well then, do you?? ;^) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Thinkpad audio question
According to Warren Block on Wed, 09/14/11 at 20:21: > > Two things you can do to improve the situation. Thanks. > First, describe the appropriate settings and files on > http://laptop.bsdgroup.de/freebsd/ Done. > Then write some updates to the man page, or at least describe what is > missing, and submit a PR. I will do this, but I first have to go through the procedure of how to do this (by reading the handbook, very likely). > This can be worthwhile doing just for yourself. If a man page is > missing something for me once, chances are I'll hit it again later. > Helping others is a side benefit. It isn't for me that I am doing this. It is to help others - really. :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Thinkpad audio question
According to Jakub Lach on Wed, 09/14/11 at 17:01: > > I would love to investigate it properly further, > however I'm critically low on time, so I can only > offer pinout dump with my device.hints at this > time, sorry > > http://pastebin.com/ig54CwT9 > > good luck, Thanks! But no thanks -- because I got it to work with your T400 hints! :-) You have been most helpful and I really appreciate it. I wonder just who came up with those in the first place? :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Thinkpad audio question
According to Jakub Lach on Wed, 09/14/11 at 16:25: > > For maximum verbosity you > can also try setting in sysctl.conf > > hw.snd.verbose=3 I've had that setting for years, but it didn't help in this case, sigh... :-( > and > > $ cat /dev/sndstat then. Sure, that is what I always do to check which sound driver I have. > Not sure if you really need it though. True, it wasn't any help for this problem. > As for man page, that was my experience > as well, and I just shamelessly copied > device.hints some kind spirit provided, > so I'm not exactly pinout expert either :) Heh... :-) > On a lighter note, once correct pinout > will be set, you shouldn't have any > more problems with CX20561, it's > common and well supported chip. That is nice to know... Here is the deal: when I "% cat /dev/sndstat" it shows both pcm0 and psm1 as: HDA Conexant CX20561 (Hermosa) but not in the "verbose" output below from dmesg(8). Right now I have this (after some reformatting - no TABs either!): HDA Codec #0: Conexant CX20561 (Hermosa) HDA Codec #1: Conexant (Unknown) <<<<<= not sure why this is Dumping AFG cad=0 nid=1 pins: nid 22 0x022140f0 as 15 seq 0 Headphones Jack jack 1 loc 2 color Green misc 0Caps: OUT HP Sense: 0x 7fff nid 23 0x61a190f0 as 15 seq 0 Mic None jack 1 loc 33 color Pink misc 0 [DISABLED] Caps: IN VREF Sense: 0x 7fff nid 24 0x02a190f0 as 15 seq 0 Mic Jack jack 1 loc 2 color Pink misc 0Caps: IN VREF Sense: 0x 7fff nid 25 0x40f000f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 0 [DISABLED] Caps: OUT Sense: 0x 7fff nid 26 0x901701f0 as 15 seq 0 Speaker Fixed jack 7 loc 16 color Unknown misc 1Caps: OUT EAPD nid 27 0x40f001f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 1 [DISABLED] Caps: OUT EAPD nid 28 0x40f001f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 1 [DISABLED] Caps: OUT nid 29 0x90a601f0 as 15 seq 0 Mic Fixed jack 6 loc 16 color Unknown misc 1Caps: IN After disregarding the DISABLED lines I have this: nid 22 0x022140f0 as 15 seq 0 Headphones Jack jack 1 loc 2 color Green misc 0Caps: OUT HP Sense: 0x 7fff nid 24 0x02a190f0 as 15 seq 0 Mic Jack jack 1 loc 2 color Pink misc 0Caps: IN VREF Sense: 0x 7fff nid 26 0x901701f0 as 15 seq 0 Speaker Fixed jack 7 loc 16 color Unknown misc 1Caps: OUT EAPD nid 29 0x90a601f0 as 15 seq 0 Mic Fixed jack 6 loc 16 color Unknown misc 1Caps: IN The snd_hda(4) man page does not discuss what "EAPD" is, nor what "VREF" is, nor what "HP" is. It also does not discuss "Caps:" but I can infer what "IN" and "OUT" are. :-) So, I have a speaker (big whoop) and two "jacks": one pink and one green (but I already knew that, too). I note that there is only one AS (15, or is that 14?) and only one "seq" (0) which doesn't mesh well with your earlier T400 suggestion: > hint.hdac.0.cad0.nid22.config="as=1 seq=15" > hint.hdac.0.cad0.nid24.config="as=3" > hint.hdac.0.cad0.nid26.config="as=1" > hint.hdac.0.cad0.nid29.config="as=2" For example, where did 'AS'es 1, 2, 3 come from? And where did "seq" 15 come from? :-( However, it is mighty curious that your four "nid"s match my four non-DISABLED "nid"s - hmmm... :-) Recognizing from your comments above that you may not be able to answer these rhetorical questions, but if I just try your suggestions "blind" what are the chances it will "just work" for me? I do hate just copying something without knowing what the heck it means -- just the pedantic engineer in me, I reckon... :-) The snd_hda(4) man page is not very helpful in explaining what your four hints would do for my T500 problem, but I guess it is worth a try. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Thinkpad audio question
According to Jakub Lach on Wed, 09/14/11 at 13:10: > > See man snd_hda, you probably need to set device.hints. > > For example, I with T400 have something like this in > device hints: > > hint.hdac.0.cad0.nid22.config="as=1 seq=15" > hint.hdac.0.cad0.nid24.config="as=3" > hint.hdac.0.cad0.nid26.config="as=1" > hint.hdac.0.cad0.nid29.config="as=2" Thanks. This looks very promising. It is too bad the man page is so "busy" and complex... :-( I had viewed this man page before, but I hoped I would never have to deal with the details. And I haven't until now... :-) One thing that could be made more clear is the lack of how to invoke the "verbose" or "report"ing mode. The word "verbose" appears just three (3!) times in the man page, but there is no explicit description of how to get the driver to provide a verbose report. The word "report" in the EXAMPLES section refers to an HP/Compaq system housing a Realtek ALC888 HDA codec whose "driver" can list the default pin configuration as show. Except the man page never explains how. :-( After a great deal of back and forth, I finally "discovered" the "hint" dev.hdac.%d.pindump just above the EXAMPLES section. As soon as I put that entry in my /etc/sysctl.conf file (dev.hdac.0.pindump=1) and did a reboot, the following appeared in my dmesg(8) output: :-) mem 0xfc02-0xfc023fff irq 17 at device 27.0 on pci0 High Definition Audio Controller Driver Revision: 20100226_0142 HDA Codec #0: Conexant CX20561 (Hermosa) HDA Codec #1: Conexant (Unknown) <<<<<= this seems confusing... Dumping AFG cad=0 nid=1 pins: nid 22 0x022140f0 as 15 seq 0Headphones Jack jack 1 loc 2 color Green misc 0 Caps:OUT HP Sense: 0x7fff nid 23 0x61a190f0 as 15 seq 0 Mic None jack 1 loc 33 color Pink misc 0 [DISABLED] Caps: IN VREF Sense: 0x7fff nid 24 0x02a190f0 as 15 seq 0 Mic Jack jack 1 loc 2 color Pink misc 0 Caps: IN VREF Sense: 0x7fff nid 25 0x40f000f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 0 [DISABLED] Caps:OUT Sense: 0x7fff nid 26 0x901701f0 as 15 seq 0 Speaker Fixed jack 7 loc 16 color Unknown misc 1 Caps:OUTEAPD nid 27 0x40f001f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 1 [DISABLED] Caps:OUTEAPD nid 28 0x40f001f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 1 [DISABLED] Caps:OUT nid 29 0x90a601f0 as 15 seq 0 Mic Fixed jack 6 loc 16 color Unknown misc 1 Caps: IN NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 GPIO: data=0x enable=0x direction=0x wake=0x unsol=0xsticky=0x Dumping AFG cad=0 nid=1 pins: nid 22 0x022140f0 as 15 seq 0Headphones Jack jack 1 loc 2 color Green misc 0 Caps:OUT HP Sense: 0x7fff nid 23 0x61a190f0 as 15 seq 0 Mic None jack 1 loc 33 color Pink misc 0 [DISABLED] Caps: IN VREF Sense: 0x7fff nid 24 0x02a190f0 as 15 seq 0 Mic Jack jack 1 loc 2 color Pink misc 0 Caps: IN VREF Sense: 0x7fff nid 25 0x40f000f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 0 [DISABLED] Caps:OUT Sense: 0x7fff nid 26 0x901701f0 as 15 seq 0 Speaker Fixed jack 7 loc 16 color Unknown misc 1 Caps:OUTEAPD nid 27 0x40f001f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 1 [DISABLED] Caps:OUTEAPD nid 28 0x40f001f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 1 [DISABLED] Caps:OUT nid 29 0x90a601f0 as 15 seq 0 Mic Fixed jack 6 loc 16 color Unknown misc 1 Caps: IN NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 GPIO: data=0x enable=0x direction=0x wake=0x unsol=0xsticky=0x Now, re-reading the snd_hda man page with the above in hand, I just may be able to make changes similar to what you have shown above provided I can make sense of the above "verbose" output. Thanks for all your help. :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Thinkpad audio question
According to Daniel Staal on Wed, 09/14/11 at 10:20: > > Quick thought: What versions of the BIOS are each of you running? Can't speak for him, but here is the output from biosdecode(8): thinkpad% biosdecode | m # biosdecode 2.10 VPD present. BIOS Build ID: 6FET66WW Box Serial Number: R8XYZ03 Motherboard Serial Number: VQ0VP98J5WA Machine Type/Model: 2081CTO SMBIOS 2.4 present. Structure Table Length: 2627 bytes Structure Table Address: 0x000E0010 Number Of Structures: 74 Maximum Structure Size: 120 bytes BIOS32 Service Directory present. Revision: 0 Calling Interface Address: 0x000FDC80 ACPI 2.0 present. OEM Identifier: LENOVO RSD Table 32-bit Address: 0x7CB6A207 XSD Table 64-bit Address: 0x7CB6A273 PNP BIOS 1.0 present. Event Notification: Not Supported Real Mode 16-bit Code Address: E192:1920 Real Mode 16-bit Data Address: 0040: 16-bit Protected Mode Code Address: 0x000F8AD7 16-bit Protected Mode Data Address: 0x0400 I don't know what to make of all this. I hope this answers your above question. :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Thinkpad audio question
A friend of mine has an IBM T500 Thinkpad which is nearly identical to the one I have. We both have interesting audio issues. Any ideas as to why the problems explained below exist would be greatly appreciated. My T500 shows two devices /dev/mixer0 and /dev/mixer1 corresponding to pcm0 and pcm1 as displayed by % cat /dev/sndstat in 8.2-PRERELEASE from January 2011. I am able to hear audio on the built-in speakers using /dev/mixer1 but not able to hear audio when plugging stereo headphones into the green "audio out" jack. However, the speaker audio is muted when the headphones are plugged in. I have tried two different head sets to rule out flawed hardware. My friend's T500 is more up-to-date than mine (likely 8.2-STABLE) but in his case headphone audio works perfectly and he has had no luck in getting audio out of his built-in laptop speakers. Very weird... This situation sucks, but we have not been able to suss out what the problem is. He and I have been running FreeBSD for over a decade, so we are not clueless, but this laptop audio weirdness has us stumped. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: EXABYTE 8200 on FreeBSD 5.3
On Fri, 08 Jul 2011 15:21 +, "Scott Ballantyne" wrote: > I know this is ancient technology, but we have a pile of exabyte tapes > made on an 8200 and would like to recover some of the data on them. > > We have an old 5.3 machine which has an adaptec 2120S, and the Exabyte > is connected to that. The kernel identifies the Exabyte on boot, but > it's all downhill after that. > > The driver sometimes spits out a pile of errors (I'll append a sample > at the end) and mt doesn't seem to do simple commands (like a retension). > > I note that the MT page for 5.3 says that not all SCSI-1 devices are > supported. So before I invest more time in this, I am wondering if > anyone can tell if the support is there for this configuration? > > If not, what (inexpensive) options do I have for possibly retrieving > this data? > > Thanks a lot, > Scott > -- > s...@ssr.com > > An "mt status" causes the driver to report: > > (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 > (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 > (sa0:aacp0:0:4:0): No additional sense information > (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 > (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 > (sa0:aacp0:0:4:0): No additional sense information > (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 > (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 > (sa0:aacp0:0:4:0): No additional sense information > (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 > (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 > (sa0:aacp0:0:4:0): No additional sense information > (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 > (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 > (sa0:aacp0:0:4:0): No additional sense information > (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 > (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 > (sa0:aacp0:0:4:0): No additional sense information > > > While mt reports: > > Mode Density Blocksize bpi Compression > Current: default variable 0unsupported > -available modes- > 0:default variable 0unsupported > 1:default variable 0unsupported > 2:default variable 0unsupported > 3:default variable 0unsupported > - > Current Driver State: at rest. > - > File Number: 0 Record Number: 0Residual Count 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" > Hi Scott, Do any of these links help? http://cis.kutztown.edu/~frye/cgi-bin/unixManPages.cgi?st+7D http://h2.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=115&prodSeriesId=63988&prodTypeId=12169&objectID=lpg51061 http://www.sunmanagers.org/archives/1995/0984.html There were also a couple hits to the drivers if those would help. Thanks, William ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
can't build graphics/xfig-3.2.5b on 8.2-STABLE nor databases/p5-DBD-Oracle with lang/perl5.14
First there is the xfig issue: No matter what the setting is for I18N (WITH or WITHOUT) there is this: cc -c -O2 -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/include/libpng -I/usr/local/include/X11 -I. -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_INLINE -DUSE_XPM -DXAW3D -DXAW3D1_5E -DUSE_JPEG -DI18N -DNEWARROWTYPESe_edit.c e_edit.c: In function 'generic_window': e_edit.c:3214: warning: cast from pointer to integer of different size e_edit.c: In function 'str_panel': e_edit.c:4252: error: 'XtNinternational' undeclared (first use in this function) e_edit.c:4252: error: (Each undeclared identifier is reported only once e_edit.c:4252: error: for each function it appears in.) *** Error code 1 Stop in /usr/ports/graphics/xfig/work/xfig.3.2.5b. *** Error code 1 Stop in /usr/ports/graphics/xfig. *** Error code 1 I tracked this down to a problem in the Imakefile around line 153: #define I18N This line was not commented out when building xfig using: # make install (and WITHOUT_I18N=true inside /var/db/ports/xfig/options) Looking further I found these two lines: -XCOMM #define I18N +#define I18N inside the /usr/ports/graphics/xfig/files/patch-Imakefile patch file. I think this may be incorrect. After commenting out the #define in the Imakefile, the build of xfig was successful. Secondly, I found that building databases/p5-DBD-Oracle when Perl 5.14 (from lang/perl5.14) was present failed in the compilation of the Oracle.c file. It seems that several Perl constants sv_undef, sv_yes, and sv_no (and others) changed between Perl 5.12.3 and Perl 5.14 to PL_sv_undef, PL_yes, and PL_sv_no, respectively. I didn't take the time to debug this further since I had other Perl 5.14 issues that forced me to completely rebuild my system from scratch starting with Perl 5.12.3 (lang/perl5.12) this time. Once I had Perl 5.12.3 built, databases/p5-DBD-Oracle built just fine. My other problems with Perl 5.14 were observed trying to launch apache2 (2.2.19) with mod_perl2 (2.0.5). Those problems also went away once I rebuilt my ports starting with Perl 5.12.3 version. This makes me suspect Perl 5.14 changes or the effect those changes have had on other ports in the ports tree. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
system upgrade introduced oddball apache error...
Running FreeBSD 8.2-STABLE #0: Thu Jun 9 09:25:05 EDT 2011 on i386 and rebuilt all my ports from source shortly after the upgrade. Got weird error when I tried to start apache2 (using "% apachectl -t" first): [Mon Jun 13 10:16:15 2011] [error] syntax error at (eval 21) line 1, near "require Apache2::Const -"\n [Mon Jun 13 10:16:15 2011] [error] Can't load Perl module Apache2::Const -compile => ':common' for server localhost:80, exiting... The Perl module in question is present here: freebsd% ls -l /usr/local/lib/perl5/site_perl/5.14.0/mach/Apache2/Const.pm -r--r--r-- 1 root wheel 25924 Jun 10 17:08 /usr/local/lib/perl5/site_perl/5.14.0/mach/Apache2/Const.pm The only reference to it is in an Apache config include file: PerlModule "Apache2::Const -compile => ':common'" I have these ports: perl-5.14.0 apache-2.2.19 ap22-mod_perl2-2.0.5,3 In the /usr/local/etc/apache22/httpd.conf file, there is this line: LoadModule perl_module libexec/apache22/mod_perl.so but the httpd.conf file was unchanged from before the upgrade. Neither of these two commands gave any output at all: freebsd% perl -e 'use Apache2::Const qw( :common ); freebsd% perl -M'Apache2::Const -compile => qw(:common)' -e 1; This command gave one line of output: freebsd% perl -MApache2::Const -e 'print $Apache2::Const::VERSION, "\n"'; 2.05 This problem did not occur before the upgrade when I was running: perl-5.12.3 apache-2.2.17_1 ap22-mod_perl2-2.0.4_2,3 I don't know how to debug this problem. No log files in /var/log were changed by running the apachectl(8) command and there have been no new lines added to /var/log/httpd-error.log since I rebooted and shut down apache2 on June 9th as part of the upgrade. Any and all ideas welcome. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Easiest desktop BSD distro
On 30/03/2011, at 07:15, Chip Camden wrote: >> So what do you recommend as my first desktop BSD distro? What desktop BSD >> distro is so easy to use that even Paris Hilton or Jessica "Chicken of the >> Sea" Simpson can handle it? > > To each their own, but I wouldn't want a system that Paris Hilton could > handle any more than I'd want a vehicle that a four-year-old can drive. There is something to be said for the keep it simple principle however. > I want to learn BSD. I find that the best way to familiarize myself with a > distro is to adopt it as my main distro (for web browsing, email, word > processing, etc.). > > But the challenge of BSD have so far proven too much for me. It would take > too long to configure FreeBSD to my liking. I couldn't figure out what to > enter in GRUB to multi-boot Linux and BSD. If you want to learn, then facing challenges is the best way to learn. Be prepared to spend some time doing research. Have two computers on hand, one with your FreeBSD, and another with linux or something known working on it that you can do your research on. Backup everything before you start, in case of the worst. I have wiped many machines by accident while learning (and as such learn the value of backups and how to restore systems). You will not master anything unless you actually put in the time and effort. Facing challenges will catalyse this process. Sincerely, William Brown Research & Teaching, Technology Services The University of Adelaide, AUSTRALIA 5005 CRICOS Provider Number 00123M - IMPORTANT: This message may contain confidential or legally privileged information. If you think it was sent to you by mistake, please delete all copies and advise the sender. For the purposes of the SPAM Act 2003, this email is authorised by The University of Adelaide. pgp.mit.edu PGP.sig Description: This is a digitally signed message part
Tape drive for backup soloution
Hi I need to implement a tape drive backup solution at my place of work. I was wondering what is a good tape drive to get for this task, that works on freebsd with something like amanda. Its for a small business, and storing about 4TB max, and hopefully with some room spare for differential backups over time. My server on hand has sata and IDE available. Are there any recommendations that you can make about compatible solutions. My knowledge in this area is limited. Sincerely, William Brown Research & Teaching, Technology Services The University of Adelaide, AUSTRALIA 5005 CRICOS Provider Number 00123M - IMPORTANT: This message may contain confidential or legally privileged information. If you think it was sent to you by mistake, please delete all copies and advise the sender. For the purposes of the SPAM Act 2003, this email is authorised by The University of Adelaide. pgp.mit.edu PGP.sig Description: This is a digitally signed message part
Re: Problem building GIMP 2.6.11 on 8.2-PRERELEASE
error: 'ThreadData' has no member named 'selector' file-pdf.c:772: error: 'ThreadData' has no member named 'document' file-pdf.c:773: warning: assignment makes pointer from integer without a cast file-pdf.c:777: error: 'ThreadData' has no member named 'stop_thumbnailing' file-pdf.c: At top level: file-pdf.c:785: error: expected ')' before '*' token gmake[3]: *** [file_pdf-file-pdf.o] Error 1 gmake[3]: Leaving directory `/usr/ports/graphics/gimp-app/work/gimp-2.6.11/plug-ins/common' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/graphics/gimp-app/work/gimp-2.6.11/plug-ins' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/graphics/gimp-app/work/gimp-2.6.11' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/graphics/gimp-app. *** Error code 1 Stop in /usr/ports/graphics/gimp-app. *** Error code 1 Stop in /usr/ports/graphics/gimp. *** Error code 1 Stop in /usr/ports/graphics/gimp. Investigating this I found poppler.h in this directory: /usr/local/include/poppler/glib/ on another system recently upgraded where the Gimp had built successfully. This directory did not exist here! That directory was the one I had to manually delete earlier when "making clean" for graphics/poppler. Since this directory was not recreated (coupled with the fact that it wasn't removed via "make deinstall") indicates there may be a problem with the packing list of graphics/poppler. I found the missing include files in this directory: /usr/ports/graphics/poppler/work/poppler-0.14.5/glib/ After I copied them to /usr/local/include/poppler/glib/ (having made it with mkdir) I was successfully able to build the Gimp. All this is very strange... Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Problem building GIMP 2.6.11 on 8.2-PRERELEASE
According to Chris Brennan on Thu, 01/27/11 at 12:03: > > gmake is GNU Make, some applications don't talk nice w/ bsdmake ('make' on > your bsd system). If your installing GIMP from ports then you should be > correctly using something like 'make install clean'. The only time I've > invoked gmake was when building something by hand vs letting a ports > makefile do the footwork for me. Okay, thanks. However I still have a broken poppler (somehow) which means I am unable to build the Gimp from the ports tree. What should I next look for? I have re-built/installed graphics/poppler and also graphics/gimp (using "make install") but I still get the same error. :-( Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Problem building GIMP 2.6.11 on 8.2-PRERELEASE
According to David Demelier on Thu, 01/27/11 at 11:39: > > It seems that gmake does not call `pkg-config --libs --cflags poppler`. > do you have pkg-config and poppler installed correctly? > > /usr/local/libdata/pkgconfig/poppler-cairo.pc > /usr/local/libdata/pkgconfig/poppler-cpp.pc > /usr/local/libdata/pkgconfig/poppler-splash.pc > /usr/local/libdata/pkgconfig/poppler.pc > > These files must be installed by poppler. In your case I will reinstall > graphics/poppler by hand and verify that pkg-config finds it. You mention gmake, yet I use "# make install" all the time. Is this really gmake under the covers? I see both executables and they differ: freebsd% ls -l /usr/local/bin/gmake /usr/bin/make -r-xr-xr-x 1 root wheel 378392 Jan 25 10:12 /usr/bin/make -r-xr-xr-x 1 root wheel 156592 Jan 25 11:29 /usr/local/bin/gmake This is what I found when looking for those four above files: freebsd% ls -l /usr/local/libdata/pkgconfig/poppler-cairo.pc /usr/local/libdata/pkgconfig/poppler-cpp.pc /usr/local/libdata/pkgconfig/poppler-splash.pc /usr/local/libdata/pkgconfig/poppler.pc ls: /usr/local/libdata/pkgconfig/poppler-cairo.pc: No such file or directory -r--r--r-- 1 root wheel 304 Jan 27 11:43 /usr/local/libdata/pkgconfig/poppler-cpp.pc -r--r--r-- 1 root wheel 222 Jan 27 11:43 /usr/local/libdata/pkgconfig/poppler-splash.pc -r--r--r-- 1 root wheel 222 Jan 27 11:43 /usr/local/libdata/pkgconfig/poppler.pc I rebuilt (make deinstall; make clean; make install) graphics/poppler. It made and installed cleanly (as did pkg-config earlier this week). I have these packages: poppler-0.14.5 A PDF rendering library poppler-data-0.4.4 Poppler encoding data poppler-gtk-0.14.5 Gtk bindings to poppler pkg-config-0.25_1 A utility to retrieve information about installed libraries Which is the correct port to install this "poppler-cairo" file? I see two copies in the ports tree: /usr/ports/graphics/poppler/work/poppler-0.14.5/poppler-cairo.pc and /usr/ports/graphics/poppler-gtk/work/poppler-0.14.5/poppler-cairo.pc When I run this: # pkg-config --libs --cflags poppler I see this: -I/usr/local/include/poppler -L/usr/local/lib -lpoppler Is that to be expected? Note that the file "poppler.h" exists here: /usr/local/include/poppler/glib/poppler.h so would that not imply that -I/usr/local/include/poppler is wrong and instead should be: -I/usr/local/include/poppler/glib ?? Thanks for all the suggestions, but I am still in a pickle... :-( Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Problem building GIMP 2.6.11 on 8.2-PRERELEASE
According to Lowell Gilbert on Thu, 01/27/11 at 11:04: > William Bulley writes: > > > Everything up to this point builds okay. Then this happens: > > > > Making all in common > > gmake[3]: Entering directory > > `/usr/ports/graphics/gimp-app/work/gimp-2.6.11/plug-ins/common' > > cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_THREAD_SAFE -D_REENTRANT > > -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include > > -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo > > -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/pango-1.0 > > -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include > > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include > > -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 > > -I/usr/local/include -I/usr/local/include -DGIMP_DISABLE_DEPRECATED > > -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -O2 -fno-strict-aliasing -pipe > > -Wall -Wdeclaration-after-statement -Wmissing-prototypes > > -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition > > -MT file_pdf-file-pdf.o -MD -MP -MF .deps/file_pdf-file-pdf.Tpo -c -o > > file_pdf-file-pdf.o `test -f 'file-pdf.c' || echo './'`file-pdf.c > > file-pdf.c:30:21: error: poppler.h: No such file or directory > > [...] > > > And poppler.h exists here: > > > >/usr/local/include/poppler/glib/poppler.h > > > > and here: > > > >/usr/ports/graphics/poppler/work/poppler-0.14.5/glib/poppler.h > > > > and here: > > > >/usr/ports/graphics/poppler-gtk/work/poppler-0.14.5/glib/poppler.h > > > > and they are all identical. > > Only the first counts, and it's the one that should be used. Just wanted to show that the include file was present. > You may be doing something strange in the build; you don't mention how > you started the build. Definitely make sure you do a "make clean" > before restarting it, and make sure that poppler shows up up in the list > of installed ports ("pkg_info"). I start the build in graphics/gimp followed by "make install" freebsd% pkg_info | grep -i poppler poppler-0.14.5 A PDF rendering library poppler-data-0.4.4 Poppler encoding data poppler-gtk-0.14.5 Gtk bindings to poppler Same results doing a "make install" after a "make clean"... :-( Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Problem building GIMP 2.6.11 on 8.2-PRERELEASE
Everything up to this point builds okay. Then this happens: Making all in common gmake[3]: Entering directory `/usr/ports/graphics/gimp-app/work/gimp-2.6.11/plug-ins/common' cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_THREAD_SAFE -D_REENTRANT -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -O2 -fno-strict-aliasing -pipe -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -MT file_pdf-file-pdf.o -MD -MP -MF .deps/file_pdf-file-pdf.Tpo -c -o file_pdf-file-pdf.o `test -f 'file-pdf.c' || echo './'`file-pdf.c file-pdf.c:30:21: error: poppler.h: No such file or directory file-pdf.c:70: error: expected ')' before '*' token file-pdf.c:77: error: expected ')' before '*' token file-pdf.c:80: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token file-pdf.c:83: error: expected ')' before '*' token file-pdf.c: In function 'run': file-pdf.c:330: error: 'PopplerDocument' undeclared (first use in this function) file-pdf.c:330: error: (Each undeclared identifier is reported only once file-pdf.c:330: error: for each function it appears in.) file-pdf.c:330: error: 'doc' undeclared (first use in this function) file-pdf.c:331: warning: ISO C90 forbids mixed declarations and code file-pdf.c:356: warning: implicit declaration of function 'open_document' file-pdf.c:364: warning: implicit declaration of function 'load_dialog' file-pdf.c:380: error: 'PopplerPage' undeclared (first use in this function) file-pdf.c:380: error: 'test_page' undeclared (first use in this function) file-pdf.c:380: warning: implicit declaration of function 'poppler_document_get_page' file-pdf.c:405: warning: implicit declaration of function 'load_image' file-pdf.c:449: error: 'page' undeclared (first use in this function) file-pdf.c:453: warning: implicit declaration of function 'poppler_page_get_size' file-pdf.c:458: warning: implicit declaration of function 'get_thumbnail' file-pdf.c:458: warning: assignment makes pointer from integer without a cast file-pdf.c: At top level: file-pdf.c:515: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token file-pdf.c:570: error: expected ')' before '*' token file-pdf.c:680: error: expected ')' before '*' token file-pdf.c:729: error: expected specifier-qualifier-list before 'PopplerDocument' file-pdf.c: In function 'thumbnail_thread': file-pdf.c:762: warning: implicit declaration of function 'poppler_document_get_n_pages' file-pdf.c:762: error: 'ThreadData' has no member named 'document' file-pdf.c:768: error: 'ThreadData' has no member named 'selector' file-pdf.c:772: error: 'ThreadData' has no member named 'document' file-pdf.c:773: warning: assignment makes pointer from integer without a cast file-pdf.c:777: error: 'ThreadData' has no member named 'stop_thumbnailing' file-pdf.c: At top level: file-pdf.c:785: error: expected ')' before '*' token gmake[3]: *** [file_pdf-file-pdf.o] Error 1 gmake[3]: Leaving directory `/usr/ports/graphics/gimp-app/work/gimp-2.6.11/plug-ins/common' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/graphics/gimp-app/work/gimp-2.6.11/plug-ins' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/graphics/gimp-app/work/gimp-2.6.11' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/graphics/gimp-app. *** Error code 1 Stop in /usr/ports/graphics/gimp-app. *** Error code 1 Stop in /usr/ports/graphics/gimp. *** Error code 1 Stop in /usr/ports/graphics/gimp. And poppler.h exists here: /usr/local/include/poppler/glib/poppler.h and here: /usr/ports/graphics/poppler/work/poppler-0.14.5/glib/poppler.h and here: /usr/ports/graphics/poppler-gtk/work/poppler-0.14.5/glib/poppler.h and they are all identical. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Xorg 7.5 and OpenMotif: mouse stuck in box
According to Giuseppe Pagnoni on Mon, 10/11/10 at 10:57: > > thank you very much for your reply, it does seem to be the same type > of bug. However, and I apologize for being dense here, it is not > immediate to me how to proceed practically to apply the patch from > within the ports framework. Also, I still wonder why the patch hasn't > been incorporated in the tree given that the bug is known I am not able to answer your final question - that is left to the ports maintainers to address. I simply installed the latest (was it 1.7.5) xorg-server at that time and added those half dozen patches. If 1.7.7 solved the problem, then I'm not sure what issue(s) you have. If you want to have FreeBSD ports upgraded, I would contact the port's maintainers directly. I chose not to install xorg-server 1.7.7 since I was unsure if there were other dependencies or issues that might arise from doing so. I'm not used to "patch"ing a mature, released port, so for me even that was a leap of faith! :-) Just for clarity, I did not formally "patch" this port (xorg-server). I went into the directory tree beneath the "work" directory, found the dit/events.c file, and made those above mentioned (about six or so) small source code patches. I then re-made the port and re-installed the port. After it tested successfully, I reported my results to the -questions list in case it would help others. YMMV. And good luck! Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Xorg 7.5 and OpenMotif: mouse stuck in box
Giuseppe Pagnoni wrote: > > I am resending this because it seems to me a really critical bug > (prevents you from using OpenMotif or lesstif applications), but > apparently nothing has been changed since last july. Upgrading xorg > to 1.7.7 does fix the problem, but I wonder if this may cause > dependency problems in the ports tree. Also, if this is the correct > fix, is there a reason why it hasn't been integrated in the ports yet? > > thanks again > > giuseppe > > >>>> > I am having a problem with xorg 1.7.5 and OpenMotif resulting in the > mouse being stuck in certain areas of the Motif windows that are > supposed to open dialog boxes when right-clicked. I noticed that > somebody else reported the problem already in this list, and that it > seems to have been fixed in xorg 1.7.7. However xorg 1.7.7 is not yet > available in the ports tree, nor it looks like a patch is in for the > current version (I tried to recompile xorg today after a port tree > update). Is manually compiling Xorg the only solution right now? > > thanks in advance for any advice > > giuseppe > > >>>>> This is what I found recently. Hope this helps you. - Forwarded message from William Bulley - To: FreeBSD Questions From: William Bulley Date: Thu, 2 Sep 2010 11:31:15 -0400 Subject: SOLVED: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE Cc: x...@freebsd.org, st...@freebsd.org See below for details of solution. - Forwarded message from William Bulley - To: FreeBSD Questions From: William Bulley Date: Wed, 25 Aug 2010 07:38:34 -0400 Subject: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE For years I have run Open-Motif on FreeBSD without issue. I use a USB keyboard and a USB three button mouse attached to a Dell Optiplex 960. This combination has worked fine for the past year. This week I upgraded from 8.0-STABLE circa January 2010 to 8.1-STABLE. I do this by doing a buildworld/installworld sequence after csup-ing stable-supfile and rebooting. In this case I also pkg_deleted all of my ports and am rebuilding them from source. Building Xorg is one of the very first ports I attempt since I prefer to work in xterms not virtual terminals. This upgrade moved me from Xorg 7.3 to Xorg 7.5, but Open-Motif stayed the same - open-motif-2.2.3_6 - it hasn't changed in years. After building Xorg, as root, I ran the "Xorg -configure" command to generate my xorg.conf.new file. Since a working /etc/X11/xorg.conf file was still around after the upgrade from 8.0-STABLE/Xorg 7.3, I felt no need to change anything in that file (later file comparisons confirmed that nothing had changed). My only relevant additions to /etc/X11/xorg.conf are these: Section "ServerFlags" Option "AutoAddDevices" "off" Option "DontZap" "false" EndSection In my /etc/rc.conf file I have dbus and hald enabled, and that has not changed since the beginning of 2010 after the confusion abated. As a normal user, I start Xorg using /usr/local/bin/xinit as always. I have several xterms configured in my ~/.xinitrc file. All those came up in the correct location and state. I was able to open those that started in iconic mode. In an open/raised xterm I could enter carriage returns and see my shell prompt move down the window. But when I tried to close/minimize an open/raised xterm, things failed. I use the following keyboard/mouse combination (configured in my .mwmrc file) to close (minimize) an xterm (and other applications): Shiftwindow f.minimize This is also unchanged for some years. This particular setting has no bearing on the problem I came across yesterday. I merely state it for the record. However, this configuration triggers the "bug". The problem is as soon as I use that Shift/Btn3Click combination, my arrow cursor disappears, then I cannot move to or select other xterms - I am frozen, or locked, into the xterm I was trying to close/minimize. All I can do at this point is to kill(1) the /usr/local/bin/xinit command to return to the virtual terminal where I launched my Xorg session. I am now reluctantly using the good old /usr/local/bin/twm which is always built when Xorg is built from source. I am at a loss as to what to look for next. I suspect Xorg, or the keyboard and mouse driver, not the video driver, that came with. It might be a problem with hald(8), but again, I don't know how to debug this. Any help with this very odd bug would be greatly appreciated. - End forwarded message - This problem is known (and fixed) in newer versions of xorg-server. See this URL for details of the problem. <http://cgit.freedesktop.org/xorg/xserver/commit/?id=1884db430a5680e37e94726dff46686e2218d525> I have also attached the changes I made
Booting up FreeBSD 8.0
I have just installed FreeBSD 8.0 and after I login it stops at $ like its waiting for me to put some type of information in or something. So what do I put after the dollar sign??? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
wireless networking
-- I have 2 wireless adapter that I am able to use for my system. One is a usb device, a D-Link DWA130, and the other is a PCI device, a Netgear WN311T. I can find no information about Linux or UNIX support, or drivers for either, on your website or on the respective manufacturer's sites, nor can I find out what chipsets they are using. Are either of these devices supported with Free-BSD, or the PC-BSD? Bill Kindler ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
SOLVED: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE
See below for details of solution. - Forwarded message from William Bulley - To: FreeBSD Questions From: William Bulley Date: Wed, 25 Aug 2010 07:38:34 -0400 Subject: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE For years I have run Open-Motif on FreeBSD without issue. I use a USB keyboard and a USB three button mouse attached to a Dell Optiplex 960. This combination has worked fine for the past year. This week I upgraded from 8.0-STABLE circa January 2010 to 8.1-STABLE. I do this by doing a buildworld/installworld sequence after csup-ing stable-supfile and rebooting. In this case I also pkg_deleted all of my ports and am rebuilding them from source. Building Xorg is one of the very first ports I attempt since I prefer to work in xterms not virtual terminals. This upgrade moved me from Xorg 7.3 to Xorg 7.5, but Open-Motif stayed the same - open-motif-2.2.3_6 - it hasn't changed in years. After building Xorg, as root, I ran the "Xorg -configure" command to generate my xorg.conf.new file. Since a working /etc/X11/xorg.conf file was still around after the upgrade from 8.0-STABLE/Xorg 7.3, I felt no need to change anything in that file (later file comparisons confirmed that nothing had changed). My only relevant additions to /etc/X11/xorg.conf are these: Section "ServerFlags" Option "AutoAddDevices" "off" Option "DontZap" "false" EndSection In my /etc/rc.conf file I have dbus and hald enabled, and that has not changed since the beginning of 2010 after the confusion abated. As a normal user, I start Xorg using /usr/local/bin/xinit as always. I have several xterms configured in my ~/.xinitrc file. All those came up in the correct location and state. I was able to open those that started in iconic mode. In an open/raised xterm I could enter carriage returns and see my shell prompt move down the window. But when I tried to close/minimize an open/raised xterm, things failed. I use the following keyboard/mouse combination (configured in my .mwmrc file) to close (minimize) an xterm (and other applications): Shiftwindow f.minimize This is also unchanged for some years. This particular setting has no bearing on the problem I came across yesterday. I merely state it for the record. However, this configuration triggers the "bug". The problem is as soon as I use that Shift/Btn3Click combination, my arrow cursor disappears, then I cannot move to or select other xterms - I am frozen, or locked, into the xterm I was trying to close/minimize. All I can do at this point is to kill(1) the /usr/local/bin/xinit command to return to the virtual terminal where I launched my Xorg session. I am now reluctantly using the good old /usr/local/bin/twm which is always built when Xorg is built from source. I am at a loss as to what to look for next. I suspect Xorg, or the keyboard and mouse driver, not the video driver, that came with. It might be a problem with hald(8), but again, I don't know how to debug this. Any help with this very odd bug would be greatly appreciated. - End forwarded message - This problem is known (and fixed) in newer versions of xorg-server. See this URL for details of the problem. <http://cgit.freedesktop.org/xorg/xserver/commit/?id=1884db430a5680e37e94726dff46686e2218d525> I have also attached the changes I made to the dit/events.c file. After rebuilding xorg-server with those patches, the Open Motif (mwm) window manager now works with the above minimize keyboard and mouse squence. Thanks for all the help. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| for (; grab; grab = grab->next) { DeviceIntPtrgdev; XkbSrvInfoPtr xkbi = NULL; /* 3471 Maskmask = 0; */ gdev= grab->modifierDevice; =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= } xE = &core; count = 1; /* 3586 mask = grab->eventMask; */ } else if (match & XI2_MATCH) { =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= count = 1; /* 3599 * FIXME: EventToXI2 returns NULL for enter events, so * dereferencing the event is bad. Internal event types are * aligned with core events, so the else clause is valid. * long-term we should use internal events for enter/focus * as well * if (xE) mask = grab->xi2mask[device->id][((xGenericEvent*)xE)->evtype/8]; else if (event->type == XI_Enter || event->type == XI_FocusIn) mask = grab->xi2mask[devic
Re: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE
According to Warren Block on Wed, 08/25/10 at 11:03: > > You are telling xorg-server to not use hald with the AutoAddDevices > line: > > > Section "ServerFlags" > > Option "AutoAddDevices" "off" > > Option "DontZap" "false" > > EndSection > > And the other option is already a default. So removing or commenting > that section would let xorg-server use hald. > > I don't know if this will affect your window manager. Probably not, but > worth testing. Did that. Made that change. No joy... :-( Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE
According to Polytropon on Wed, 08/25/10 at 10:03: > > In case you're using HAL + DBUS, the setting now has to be coded > in XML in some arbitrary file at a decentral location buried deep > in the /usr/local subtree. According to the handbook > > 5.4.2 Configuring X11 > http://www.freebsd.org/doc/handbook/x-config.html > > this is /usr/local/etc/hal/fdi/policy/x11-input.fdi with > > > > > > type="string">terminate:ctrl_alt_bksp > > > > > as well as /etc/X11/xorg.conf will need to be added > > Section "ServerFlags" > Option "DontZap" "off" > EndSection > > And the handbook also suggests a reboot (?!) to make sure HAL will > pick up the new setting. Next time, you will have to reboot in order > to make a mouse pointer position change visible. :-) Thanks for all the suggestions. Here is where things stand: I am still having the same problem since upgrading to 8.1-STABLE. First, what has changed. Then a clarification of the problem. xterm has changed: now 2.6.1 was 2.5.3 xorg has changed: now 7.5 was 7.3 xorg-server has changed: now 1.7.5,1 was 1.6.1,1 xf86-input-keyboard: now 1.4.0 was 1.3.2_2 xf86-input-mouse: now 1.5.0 was 1.4.0_6 hal has changed: now 0.5.14_8 was 0.5.13_12 kernel has changed: now 8.1-STABLE was 8.0-STABLE Note that open-motif _has_ _not_ _changed_ for some time. The problem is not in the method of shutting down my Xorg session. The problem is not the disappearance of my arrow cursor/pointer per se, although that may be a symptom of the underlying problem. The problem is that I am unable (now) to use open-motif through no change in my configs or my settings. Something has changed in the underlying applications, or system libraries, or kernel. In my use of open-motif, I use and depend on mouse focus. This means that when I move my mouse, the xterm I was in looses focus and the xterm into which I move my mouse pointer gains focus. This feature is also present in TWM, but open-motif (MWM) gives me the additional feature that the window having focus is also raised to the top - above all other windows/applications. This feature is critical for me and why I prefer using open-motif. When I first experienced this bug, all I could do at that point was to exit my xorg session (various folks have helped make that more "normal"). I have modified my .xinitrc file to include: /usr/local/bin/setxkbmap -option "terminate:ctrl_alt_bksp" and now Ctrl/Alt/BS sequence works as it used to in the "old days". I have commented out ServerFlags section of my /etc/X11/xorg.conf file and I have rebooted my workstation. Both hald and dbus are still enabled in my /etc/rc.conf file. Nothing has changed. When I run open-motif, I still experience the crippling loss of mouse focus when I enter the sequence Shift/Btn3Click. The prevents me from using _any_ of my other windows or xterms or applications since I can no longer select them (give them focus). Recall this setting in my ~/.mwmrc file: Shiftwindow f.minimize OTOH _everything_ works in /usr/local/bin/twm. I much prefer the features of MWM compared to TWM. I don't want to relearn another window manager just because of this problem, and I'd rather not reassign my f.minimize feature to a difference key and mouse sequence, since some day, some application may require me to enter Shift/Btn3Click which would effectively ruin that Xorg session. Since TWM works and the xterms therein also work just fine, I doubt that xterm is at fault. I also hold open-motif blameless since it has not changed in years. I think something in Xorg or one of its support modules is not properly registering the Shift/Btn3Click event to the xorg-server, or that xorg-server has changed so that this particular event causes my pointer focus to disappear. Unfortunately, I don't know how to track down this bug or to narrow the search for what changed. I was hoping someone in FreeBSD-land would have some suggestions. I have heard that contacting the Xorg developers may not result in a timely resolution. I greatly appreciate the comments on -questions to date. Thanks guys. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE
According to Warren Block on Wed, 08/25/10 at 09:49: > > If you are running hald, why not use it? And the DontZap default is > back to where it used to be (off), so you could remove or comment that > entire ServerFlags section. Not sure what you mean by using hald. Assuming I knew how to use hald, how would that solve my problem of the disappearing mouse pointer and consequent loss of functionality of my window manager? Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE
According to jhell on Wed, 08/25/10 at 09:24: > On 08/25/2010 07:38, William Bulley wrote: > > For years I have run Open-Motif on FreeBSD without issue. > > > > I use a USB keyboard and a USB three button mouse attached to a Dell > > Optiplex 960. This combination has worked fine for the past year. > > > > This week I upgraded from 8.0-STABLE circa January 2010 to 8.1-STABLE. > > I do this by doing a buildworld/installworld sequence after csup-ing > > stable-supfile and rebooting. In this case I also pkg_deleted all of > > my ports and am rebuilding them from source. Building Xorg is one of > > the very first ports I attempt since I prefer to work in xterms not > > virtual terminals. > > > > This upgrade moved me from Xorg 7.3 to Xorg 7.5, but Open-Motif stayed > > the same - open-motif-2.2.3_6 - it hasn't changed in years. > > > > After building Xorg, as root, I ran the "Xorg -configure" command to > > generate my xorg.conf.new file. Since a working /etc/X11/xorg.conf > > file was still around after the upgrade from 8.0-STABLE/Xorg 7.3, I > > felt no need to change anything in that file (later file comparisons > > confirmed that nothing had changed). > > > > My only relevant additions to /etc/X11/xorg.conf are these: > > > >Section "ServerFlags" > > Option "AutoAddDevices" "off" > > Option "DontZap" "false" > >EndSection > > > > In my /etc/rc.conf file I have dbus and hald enabled, and that has > > not changed since the beginning of 2010 after the confusion abated. > > > > As a normal user, I start Xorg using /usr/local/bin/xinit as always. > > I have several xterms configured in my ~/.xinitrc file. All those > > came up in the correct location and state. I was able to open those > > that started in iconic mode. In an open/raised xterm I could enter > > carriage returns and see my shell prompt move down the window. But > > when I tried to close/minimize an open/raised xterm, things failed. > > > > I use the following keyboard/mouse combination (configured in my > > .mwmrc file) to close (minimize) an xterm (and other applications): > > > >Shiftwindow f.minimize > > > > This is also unchanged for some years. This particular setting has > > no bearing on the problem I came across yesterday. I merely state > > it for the record. However, this configuration triggers the "bug". > > > > The problem is as soon as I use that Shift/Btn3Click combination, > > my arrow cursor disappears, then I cannot move to or select other > > xterms - I am frozen, or locked, into the xterm I was trying to > > close/minimize. All I can do at this point is to kill(1) the > > /usr/local/bin/xinit command to return to the virtual terminal > > where I launched my Xorg session. > > > > I am now reluctantly using the good old /usr/local/bin/twm which > > is always built when Xorg is built from source. I am at a loss > > as to what to look for next. I suspect Xorg, or the keyboard and > > mouse driver, not the video driver, that came with. It might be > > a problem with hald(8), but again, I don't know how to debug this. > > > > Any help with this very odd bug would be greatly appreciated. > > Though I can't really help you with the mouse disapearing I can say if > you wish to modify you key-map to allow ctrl+alt+bksp you can add this > to your .xinitrc ( setxkbmap -option "terminate:ctrl_alt_bksp" ) Thanks. Interestingly enough, I do have this line in my /etc/X11/xorg.conf file: Section "InputDevice" Option "XkbOptions" "terminate:ctrl_alt_bksp" EndSection But that never has seemed to work. :-( I will try your suggestion. I hope it works, although killing the xinit process is not much more difficult. Of course, your suggestion (and my workaround) to return to the virtual terminal command line depends upon a working keyboard... :-) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE
For years I have run Open-Motif on FreeBSD without issue. I use a USB keyboard and a USB three button mouse attached to a Dell Optiplex 960. This combination has worked fine for the past year. This week I upgraded from 8.0-STABLE circa January 2010 to 8.1-STABLE. I do this by doing a buildworld/installworld sequence after csup-ing stable-supfile and rebooting. In this case I also pkg_deleted all of my ports and am rebuilding them from source. Building Xorg is one of the very first ports I attempt since I prefer to work in xterms not virtual terminals. This upgrade moved me from Xorg 7.3 to Xorg 7.5, but Open-Motif stayed the same - open-motif-2.2.3_6 - it hasn't changed in years. After building Xorg, as root, I ran the "Xorg -configure" command to generate my xorg.conf.new file. Since a working /etc/X11/xorg.conf file was still around after the upgrade from 8.0-STABLE/Xorg 7.3, I felt no need to change anything in that file (later file comparisons confirmed that nothing had changed). My only relevant additions to /etc/X11/xorg.conf are these: Section "ServerFlags" Option "AutoAddDevices" "off" Option "DontZap" "false" EndSection In my /etc/rc.conf file I have dbus and hald enabled, and that has not changed since the beginning of 2010 after the confusion abated. As a normal user, I start Xorg using /usr/local/bin/xinit as always. I have several xterms configured in my ~/.xinitrc file. All those came up in the correct location and state. I was able to open those that started in iconic mode. In an open/raised xterm I could enter carriage returns and see my shell prompt move down the window. But when I tried to close/minimize an open/raised xterm, things failed. I use the following keyboard/mouse combination (configured in my .mwmrc file) to close (minimize) an xterm (and other applications): Shiftwindow f.minimize This is also unchanged for some years. This particular setting has no bearing on the problem I came across yesterday. I merely state it for the record. However, this configuration triggers the "bug". The problem is as soon as I use that Shift/Btn3Click combination, my arrow cursor disappears, then I cannot move to or select other xterms - I am frozen, or locked, into the xterm I was trying to close/minimize. All I can do at this point is to kill(1) the /usr/local/bin/xinit command to return to the virtual terminal where I launched my Xorg session. I am now reluctantly using the good old /usr/local/bin/twm which is always built when Xorg is built from source. I am at a loss as to what to look for next. I suspect Xorg, or the keyboard and mouse driver, not the video driver, that came with. It might be a problem with hald(8), but again, I don't know how to debug this. Any help with this very odd bug would be greatly appreciated. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Unable to kldload linux
Hi, I have just upgraded my system to 8.1-RELEASE $ uname -a FreeBSD makalu.abqhomenet 8.1-RELEASE FreeBSD 8.1-RELEASE #10: Thu Jul 29 08:12:40 MDT 2010 r...@makalu.abqhomenet:/usr/obj/usr/src/sys/FRAGMENT amd64 only to find that I cannot load linux.ko # kldload linux kldload: can't load linux: Exec format error I tried compiling it into my kernel and recieved a message that COMPAT_LINUX was not a valid option. Has anybody got any advice/knowledge about this 'exec format error', I've tried recompiling the kernel without success (in loading the module), and I've even compiled the module on its own and was still unable to load it. # kldload /sys/modules/linux/linux.ko kldload: can't load linux: Exec format error I get the same error with the linprocfs and linsysfs modules. Any thoughts? Thanks, Will ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
CUPS between systems
When the CUPS server (cupsd) is built with GSSAPI support, the CUPS "Administration" tab (localhost:631/admin) contains this checkbox under the "Server Settings:" section: (x) Use Kerberos authentication (FAQ) Unfortunately for me on FreeBSD 8.0-STABLE running cups-base-1.4.2_3 the GSSAPI option is not present in the Makefile: CONFIGURE_ARGS+= --disable-gssapi ... As a result my localhost:631/admin screen lacks this Kerberos checkbox. This condition is still present in CUPS 1.4.3 according to the Makefile at http://www.freebsd.org/cgi/cvsweb.cgi/ports/print/cups-base/ I need Kerberos support in order to use CUPS to print to a network printer here. As a workaround, I was able to use a co-workers MacOS X system which was running CUPS to print to the same printer. This Mac was upgraded to MacOS 10.6.4 today, and this workaround failed. :-( So I am back to trying to use CUPS on FreeBSD to talk directly to the network printer, but without the Kerberos feature, I am locked out. Upgrading to CUPS 1.4.3 is unlikely to give me Kerberos support. It seems FreeBSD has Kerberos support in base at /usr/src/kerberos5. But I don't see how to bridge this gap. FWIW, using CUPS 1.3.10 in the Fall of 2009, I did have Kerberos support (via GSSAPI) and I was able to talk directly to the network printer. Does anyone have any suggestions for me to consider trying? Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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 have I done?
I experienced a similar situation under different circumstances. It turned out that the sysctl variable hw.snd.default_unit was refering to the wrong sound card. Not sure if thats the problem, but it might be worth checking if you have multiple sound cards. -- WFV wfvin...@gmail.com On Mon, May 24, 2010 at 12:08 PM, Chip Camden wrote: > > This question is going to make me sound pretty stupid, but I haven't > been able to figure it out. > > I had mplayer (the console version) running in one urxvt, and I thought > I had a different urxvt focused when I typed a command (I think it was > 'make install clean') -- but mplayer was actually focused instead. The > ENTER caused mplayer to close (I was listening to a stream URL), and > because I had exec'd mplayer its terminal window closed as well. > > I cursed myself for losing focus on my focus, and attempted to restart > mplayer. It acts like it is playing the track, but no sound. I've tried > unmute, turning the volume all the way up, deleting my .mplayer files, > still no joy. I even shutdown and powered off and then rebooted. Any > other suggestions? > -- > Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.com > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
CUPS in ports (e.g., v1.4.3) --disable-gssapi WHY??
I recall building CUPS from ports last Fall (9/2009) at version 1.3.10 or 1.3.11 which had GSSAPI (Kerberos 5) support as an option. Today, the cups-base-1.4.3 port specifically excludes GSSAPI support (--disable-gssapi in the Makefile) which means CUPS cannot perform Kerberos authentication (to get a ticket granting ticket for printing). Why is this the case? Can someone elaborate on this, or point me to the correct forum to get an answer? Thanks in advance. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
HP Proliant ML 150 G5
I tried to install FreeBSD 8.0 AMD64 on an HP Proliant ML 150 G5 Intel Xeon quad core but fails. With CentOS 5.4 the installation was Ready. I would like to know is this product ML 150 G5 is incompatibility with FreeBSD 8.0 I tested FreeBSD with an ML 115 G5 and the installation was ready. Thanks William Moreno P.D.: El presente correo no contiene tildes para evitarle al receptor inconvenientes en su lectura. ___ freebsd-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: Suitable laptop for FreeBSD?
According to Warren Block on Wed, 03/03/10 at 10:30: > > Umm... that's incorrect. Maybe you mean ATI doesn't supply closed > drivers for FreeBSD (although they do have Linux drivers, I think). > > xorg's open xf86-video-ati driver supports ATI video cards, including > the Radeon Mobility cards in two notebooks I've tested. > > >Well , i'm on ThinkPad R400 , ATI Mobile HD 3400 and an integrated Video > >Card FBSD doesn't boot when i switched to ATI Video card. > > Are you saying the R400 has both integrated and discrete video cards? > Lenovo's web site doesn't seem very oriented to telling potential > customers details about their newer computers. I think yes. At least in my case. I have a T500 and it came with both integrated Intel video plus an additional ATI mini-card. I don't recall if there was an Nvidia video choice. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
bonding NICs with netgraph
Hi, I am setting up a freebsd box to act as a snort sensor on a network. The box has three nics, one internal nic for talking on the network and to the management server, and two nics on a single pci card that each connect to SPAN ports on my switch. I am trying to bind the two adapters on the freebsd box so I have one virtual adapter that snort can listen to. I have been researching netgraph for some time and the script I have been using to configure the adapters is: Code: #!/bin/sh echo "Trying kldload ng_ether..." kldload ng_ether echo "Putting dual adapters into promisc mode..." ifconfig em0 promisc -arp up ifconfig em1 promisc -arp up echo "Trying mkpeer . eiface hook ether" ngctl mkpeer . eiface hook ether echo "Trying mkpeer ngeth0: one2many lower one" ngctl mkpeer ngeth0: one2many lower one echo "Trying ngctl connect em0: ngeth0: lower lower many0" ngctl connect em0: ngeth0:lower lower many0 echo "Trying ngctl connect em1: ngeth0: lower lower many1" ngctl connect em1: ngeth0:lower lower many1 echo "Tryinh ifconfig ngeth0 -arp up" ifconfig ngeth0 -arp up However when I run the script I get: Code: Trying kldload ng_ether... Putting dual adapters into promisc mode... Trying mkpeer . eiface hook ether Trying mkpeer ngeth0: one2many lower one ngctl: send msg: Protocol family not supported Trying ngctl connect em0: ngeth0: lower lower many0 ngctl: send msg: No such file or directory Trying ngctl connect em1: ngeth0: lower lower many1 ngctl: send msg: No such file or directory Tryinh ifconfig ngeth0 -arp up Now 'ngeth0' appears in ifconfig: Code: ngeth0: flags=88c3 metric 0 mtu 1500 ether 00:00:00:00:00:00 but when I TCPDUMP from it it never records any packets even though I know the span ports are sending the individual NICs data. I have been googling the error messages that are returned by the bonding script but have been unable to get packets to cross ngeth0. Any advice or tips for troubleshooting this would be greatly appreciated. Thank you in advance. Will Urbanski ___ freebsd-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: vi question
According to gahn on Fri, 02/19/10 at 16:11: > > How could I use vi to repeat a word, say, 100 times in the same > line, of course with a space in between? Edit your file: (vi xyz) On an empty line, enter: iword(esc) Back up (left arrow) to the front of this line (column zero) Enter this sequence: 2dw (the line will disappear) Enter this sequence: 100P (voila!) Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: cannot build GIMP 2.6.8-1 on 8.0-STABLE
According to Warren Block on Mon, 02/15/10 at 16:39: > > webkit-gtk2 wants gnome-config to build gstreamer to support video. > You can disable the VIDEO option in the webkit-gtk2 config settings, or > just disable HELPBROWSER in the graphics/gimp-app port. Last I looked, > the help was very outdated anyway. > > Don't know why the webkit-gtk2 build dies, though. Thanks. That suggestion allowed me to build the GIMP successfully. Although I still don't know why the GIMP depends on gnome-keyring... :-( Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
cannot build GIMP 2.6.8-1 on 8.0-STABLE
I am trying to build the GIMP on 8.0-STABLE but had a problem. For what it's worth, I have these ports installed: gtk-1.2.10_21 gtk-2.18.6_1 It is not clear to me why GIMP (or webkit-gtk2) depends on having Gnome2 (gnome-config) installed (I use open-motif): checking for GSTREAMER... gnome-config: not found gnome-config: not found gnome-config: not found configure: error: Package requirements (gstreamer-0.10 >= 0.10 gstreamer-base-0.10 gstreamer-pbutils-0.10 gstreamer-plugins-base-0.10 gstreamer-video-0.10) were not met: No package 'gstreamer-pbutils-0.10' found No package 'gstreamer-plugins-base-0.10' found No package 'gstreamer-video-0.10' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GSTREAMER_CFLAGS and GSTREAMER_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. ===> Script "configure" failed unexpectedly. Please run the gnomelogalyzer, available from "http://www.freebsd.org/gnome/gnomelogalyzer.sh";, which will diagnose the problem and suggest a solution. If - and only if - the gnomelogalyzer cannot solve the problem, report the build failure to the FreeBSD GNOME team at gn...@freebsd.org, and attach (a) "/usr/ports/www/webkit-gtk2/work/webkit-1.1.15.4/config.log", (b) the output of the failed make command, and (c) the gnomelogalyzer output. Also, it might be a good idea to provide an overview of all packages installed on your system (i.e. an `ls /var/db/pkg`). Put your attachment up on any website, copy-and-paste into http://freebsd-gnome.pastebin.com, or use send-pr(1) with the attachment. Try to avoid sending any attachments to the mailing list (gn...@freebsd.org), because attachments sent to FreeBSD mailing lists are usually discarded by the mailing list software. *** Error code 1 Stop in /usr/ports/www/webkit-gtk2. *** Error code 1 Stop in /usr/ports/www/webkit-gtk2. *** Error code 1 Stop in /usr/ports/graphics/gimp-app. *** Error code 1 Stop in /usr/ports/graphics/gimp-app. *** Error code 1 Stop in /usr/ports/graphics/gimp. *** Error code 1 Stop in /usr/ports/graphics/gimp. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
confounding finding in print/cups-base (CUPS 1.4.2)
Since I need the GSSAPI (for Kerberos) feature of CUPS in FreeBSD 8.0-STABLE, I was somewhat taken aback when I found the cupsd server failed to read its configuration file "cupsd.conf" when the line: DefaultAuthType Negotiate was present in that file upon server start/restart. The "Negotiate" keyword is the way to indicate Kerberos support in CUPS according to the CUPS documentation. Attempting to start the CUPS server cupsd(8) from the command line as root resulted in this error: freebsd# /usr/local/etc/rc.d/cupsd start Starting cupsd. Message from sysl...@itcom245 at Feb 4 10:35:31 ... itcom245 cupsd: Unable to read configuration file '/usr/local/etc/cups/cupsd.conf' - exiting! cupsd: Child exited with status 1! /usr/local/etc/rc.d/cupsd: WARNING: failed to start cupsd freebsd# /usr/local/etc/rc.d/cupsd stop cupsd not running? and in the /var/log/cups/error.log file I found this line: Unknown default authorization type Negotiate on line 6. Once line six (6) was removed, the cupsd server was able to start without error (of course, Kerberos support was unavailable...) :-( The file print/cups-base/work/cups-1.4.2/scheduler/conf.c has this section: #ifdef HAVE_GSSAPI else if (!strcasecmp(value, "negotiate")) { loc->type = CUPSD_AUTH_NEGOTIATE; if (loc->level == CUPSD_AUTH_ANON) loc->level = CUPSD_AUTH_USER; } #endif /* HAVE_GSSAPI */ which would normally be controlled by running ./configure at build time and affecting lines such as these in work/cups-1.4.2/config.h: /* * Do we have the GSSAPI support library (for Kerberos support)? */ /* #undef HAVE_GSSAPI */ /* #undef HAVE_GSSAPI_H */ /* #undef HAVE_GSSAPI_GSSAPI_H */ /* #undef HAVE_GSSAPI_GSSAPI_GENERIC_H */ /* #undef HAVE_GSSAPI_GSSAPI_KRB5_H */ /* #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY */ /* #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE */ /* #undef HAVE_KRB5_CC_NEW_UNIQUE */ /* #undef HAVE_KRB5_IPC_CLIENT_SET_TARGET_UID */ /* #undef HAVE_KRB5_H */ /* #undef HAVE_HEIMDAL */ Interestingly the Makefile in print/cups-base has this line inside the CONFIGURE_ARGS section which makes all the above irrelevant: --disable-gssapi So, my question is: why is the GSSAPI feature disabled in CUPS 1.4.2 when it was a configurable OPTION in CUPS 1.3.9 last Fall? What should I do if I desire Kerberos support in CUPS 1.4.2 ?? Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
8.0 zfs install
Does the installer in 8.0 support zfs? If not whats the easiest way to get a full zfs install done? ___ freebsd-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: tcp delays in jails
On Dec 1, 2009, at 3:07 AM, Ivan Voras wrote: > William Taylor wrote: >> I recently started having a problem with tcp connections in one of my jails. >> Im running 4.9-stable > > I guess it will not do any good to tell you to upgrade to 8.0? :) > Not at this time although I probably should eventually. I still have a 3.5-STABLE box kicking around. I have always been a believer of if it isn't broken don't fix it. >> both sendmail and perdition experience the same problem. I even tried >> stopping >> everything on the box and the problem still persists. > > Just to verify - the problem is on the side of the servers (TCP listeners)? > Seems to be. I could write a small tcp server and see if I can get it to exhibit the same behavior or not. >> Connections to other jails on different ip's on the same box are fine. >> There seems to be about a 5 second delay. >> From this snippet of a ktrace I did you can see what looks to be a delay of >> about 5 seconds after the CALL kevent > > I'm not sure what you are tracing but this trace looks like something having > to do with DNS. > > Does DNS resolve properly on the box? Reverse DNS also? Some servers, ssh and > probably sendmail also, do a reverse DNS lookup on the connecting client. > Just the generic ones... try seeing if DNS and reverse DNS work first. > > Yes DNS is resolving properly forward and reverse. I even tried changing DNS servers. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
tcp delays in jails
I recently started having a problem with tcp connections in one of my jails. Im running 4.9-stable both sendmail and perdition experience the same problem. I even tried stopping everything on the box and the problem still persists. Connections to other jails on different ip's on the same box are fine. There seems to be about a 5 second delay. From this snippet of a ktrace I did you can see what looks to be a delay of about 5 seconds after the CALL kevent 86872 perdition 1259617190.144575 GIO fd 6 wrote 43 bytes "n\M^]\^A\0\0\^A\0\0\0\0\0\0\^B18\^B96\^B81\^C206\ain-addr\^Darpa\0\0\f\0\^A" 86872 perdition 1259617190.144584 RET sendto 43/0x2b 86872 perdition 1259617190.144592 CALL gettimeofday(0xbfbfde9c,0) 86872 perdition 1259617190.144604 RET gettimeofday 0 86872 perdition 1259617190.144619 CALL kevent(0x4,0xbfbfdec0,0x1,0xbfbfdec0,0x1,0xbfbfdea4) 86872 perdition 1259617195.147032 RET kevent 0 86872 perdition 1259617195.147085 CALL close(0x6) 86872 perdition 1259617195.147120 RET close 0 86872 perdition 1259617195.147138 CALL socket(0x2,0x2,0) 86872 perdition 1259617195.147150 RET socket 6 86872 perdition 1259617195.147159 CALL sendto(0x6,0xbfbfe100,0x2b,0,0x28269b60,0x10) 86872 perdition 1259617195.147186 GIO fd 6 wrote 43 bytes Any ideas of what I can do to figure this out? Thanks, William ___ freebsd-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: dbus/hal in freebsd 7.2 hangs X11
According to Giuseppe Pagnoni on Fri, 09/25/09 at 03:32: > > I am trying to use hal/dbus on a i386 machine with FreeBSD 7.2 (ports > updated to the latest tree snapshot as of yesterday), but despite > spending a full day looking up the handbook, faq, and google, I cannot > make it work properly. More specifically, when I use either xfce4 or > xmonad after having enabled dbus/hald in rc.conf: > > hald_enable="YES" > dbus_enable="YES" > > both window managers become very unresponsive and hang as if hal was > trying to access/mount something. For example, the terminal may take > *seconds* to display typed in characters and in xfce if you click on > the desktop icons for home directory etc., they don't open up at all > in the thunar file manager (they do though, if you right click on them > and choose 'open'). I, too, have seen this same problem, but with OpenMotif (mwm) as my window manager. I have solved the problem by changing the lines: dbus_enable="YES" hald_enable="YES" to dbus_enable="NO" hald_enable="NO" in my /etc/rc.conf file. This makes things in xorg-7.4_2 and open-motif-2.2.3_6 and 7.2-STABLE FreeBSD 7.2-STABLE #0: Tue Sep 15 14:33:54 EDT 2009 work for me. Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ->| ___ freebsd-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: Repeatable X lockups
According to Jimmie James on Sat, 05/02/09 at 15:46: > > When using the xv output driver for vlc or mplayer, X will lockup, crash > instantly, trashing the screen and forcing a reboot > Image of screen corruption: > http://img.photobucket.com/albums/v287/jimmiejaz/xcrash.jpg > > This just started manifesting in the past week or so. I have experienced the same problem, but I didn't see any suggestions or answers to your posting. Have you had any success yet with this? Have you tried any other output drivers? This is something I plan to try in the next few days. My system is i386 with Intel 915 graphics on the motherboard. Xorg 7.4 runs fine. When I run mplayer from the command line, in an xterm under open-motif, the X Windows session dies and I am tossed back to the vty. When I similarly run vlc from the command line, the screen is locked in an even worse state than your above URL. I am forced to ssh(1) in from another FreeBSD workstation to reboot. Before the reboot, ps(1) reports no processes running xorg or any of its child processes, it seems as if my video hardware has been left in some ugly, locked-up, unusable state. What is interesting to me is that the same flash file that causes vlc and mplayer to crash runs just fine in ffplay(1) (part of ffmpeg port). Yet at least vlc uses ffmpeg, while it doesn't look like mplayer does. This is 7.2-PRERELEASE built on 24 Apr 2009 with the ports of mplayer and vlc built on 2 May 2009 following a csup(1) of complete ports tree on either 24 Apr or 25 Apr - so approximately the same timeframe as you. Regards, web... -- William Bulley Email: w...@umich.edu The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately, and delete this message. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
fatal error from /usr/ports/Mk/bsd.linux-apps.mk
On Friday I ran the following: # cd /usr/local/etc/cvsup # csup -L2 ports-supfile # csup -L2 doc-supfile # csup -L2 stable-supfile (tag=RELENG_7) I then rebuilt the world and installed it. When I rebooted, I was very pleasantly surprised to find: % uname -a FreeBSD freebsd 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: Fri Apr 24 16:13:56 EDT 2009 [snip] i386 I began the process of rebuilding my all ports on Saturday: # pkg_delete -a # \rm -rf /usr/ports/*/work Things progressed fine until I started building any ports having some dependency on Linux emulation: [this is true for /usr/ports/print/acroread8 and 9 astro/google-earth, multimedia/linux-realplayer, www/opera-linuxplugins, etc.] # make install clean "/usr/ports/Mk/bsd.linux-apps.mk", line 72: Malformed conditional (${LINUX_DIST_SUFFIX}=="") "/usr/ports/Mk/bsd.linux-apps.mk", line 130: Malformed conditional (${LINUX_DIST_SUFFIX} == "-f8") Error expanding embedded variable. Here are the relevant settings in the indicated files: /etc/fstab linprocfs /compat/linux/proc linprocfs rw 0 0 # kldstat Id Refs AddressSize Name 1 12 0xc040 48d204 kernel 21 0xc088e000 6a45cacpi.ko 31 0xc5403000 7000 linprocfs.ko 41 0xc540f000 22000linux.ko /etc/rc.conf linux_enable="YES" /etc/make.conf OVERRIDE_LINUX_BASE_PORT=f9 OVERRIDE_LINUX_NONBASE_PORTS=f9 /etc/sysctl.conf compat.linux.osrelease=2.6.16 I don't know what to do to fix this problem. I don't know whether I should submit a pr or try to determine what is going on myself. Not sure I would succeed at the latter. Please advise. If more information or detail is required, let me know. The next thing I will try is changing /etc/make.conf to override "f8" instead of "f9" Regards, web... -- William Bulley Email: w...@umich.edu The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately, and delete this message. ___ freebsd-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: mysql memory
I think 'top' is showing the external view of the process and how many pages total of heap have been allocated (under 'RES'). Possibly your tuner program is just showing the size of the cache specifically. -Will Valentin Bud wrote: Hello community, I have mysql installed on FreeBSD 7.0 i386. I am using mysqltuner.pl from ports to check for tuning parameters. Now my problem, sort of speak, is that mysqltuner.pl shows the following: [OK] Maximum possible memory usage: 1.6G (53% of installed RAM) So as far as i understand mysql is limited to using max 1.6G of RAM. But top shows different things PID USERNAME THR PRI NICE SIZERES STATE C TIMEWCPU COMMAND 68083 mysql 18 440 2901M 1927M ucond 3 608:36 1.07% mysqld Why is mysql using more memory than showed in mysqltuner. Is mysqltuner inaccurate? Mysql is used for storing fulltext obtained throuhg OCR from different documents. Is there a way to make a chart on how much memory is needed for a given number of pages or documents? thanks, v ___ freebsd-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: C programming question
Valentin Bud wrote: Thanks everybody for the heads up. I don't know (yet) which path i am going to take. I know a little bit of perl so i guess i'll start reading on how can i accomplish my goal with perl. thanks, v I've been programming for a very long time, and I can tell you that both Perl and C/C++ have done me very well. The centre of gravity keeps shifting in software, but most of the scripting languages, and the libraries they depend on, are written in C. Installing most packages from scratch usually depends on having a C compiler around and knowing how to use it. The fundamental system interfaces in all forms of Unix are written in and for C. There are always jobs out there requiring knowledge of C, especially in embedded programming. I would suggest that you can't go wrong taking the C path, and you would probably do well trying it in Perl too. -Will ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Why?? (prog question)
Polytropon wrote: Okay, now I understand what you mean. "Consistency" refers to the usage of spacing / tabbing for a given project that is adopted by several programmers. Yes, I agree with that: It's a very bad idea to have many different styles within the same project. . . . When I need to read / work with other's code, it's can develop into problems. Natural habits like hitting the tab key are very hard to change several times, for each project a different rule. . . . Not all editors have this ability. And especially under low level circumstances, e. g. editing with vi in SUM required in a maintenance phase, you'll be happy about every keystroke you can save. Most of my work is in a setting where the development machine is different from the target machine. Usually on a development machine you have the luxury of setting up all the tools you want and configuring them however you want. If you spend more time editing on the fly on a target machine, then that creates a different scenario, similar to doing sysadmin work. I've made most of my main points, and I think we've got to where differences of opinion now rest mainly on taste, which in turn is often guided by what you're used to. Consequently it's not possible to get much further, especially with the "I like 4 spaces because I'm used to them" vs. "I like 8-level tabs because I'm used to them" argument. I find that as I move from project to project, indentation standards do change. I find that where people have the resources to fully configure their development machines, reasonably thoughtful people who have experience in both standards end up converging on spaces being better than tabs because they are neater. I also find that, given such a configuration choice, more people find 4-space indentation looks better on the screen than go with 2 or 8 or 3. Consequently I stick with '4 spaces for indentation' as my norm, and if I have to switch to something else for a given project because people are using that standard, then I will change my editor settings. I'd like to add that tab based indentation is independent from the functionalities of a specific editor. It's even handy for printing where the tab width can be set to a certain value. Okay, your counterargument could now be: "Who prints today anyway?" :-) I'm more concerned with things like diff listings, where lines are preceded with: > which breaks the tab indentation because everything is pushed over by a space or two. Personally, I have the (maybe outdated) opinion that a programmer should not only care for his programs to be valid, correct, efficient, well structured, intended and documented, but also tidy and styled. What's to understand from these words can be very individual, I agree. We agree on this point, which is why we're having this discussion. There are lots of cases where it's hard to make code line up the way you want it with tabs. Often code that looks good with one tab length setting (say 8) doesn't look so good with another (say 4). It gets especially bad when there are a few space characters thrown in, which people often do. Okay, I didn't think of this. Taking this argument into mind, spaces can be useful for parameter lists that don't fit into one line, but should line up after the opening (, e. g. foofunction(&data, "%d,%d,%d", doodle.x, doodle.y, doodle,z, foo, bar, pups, furz, "This is some stupid text.", doom[dee].quoggle); This wouldn't be easy to achieve with tabs, especially when their width may vary. Even an 'if' or 'while' statement that spans more than one line can have problems like this. Nice discussion. -Will ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Why?? (prog question)
Oliver Fromme wrote Of course this is purely a matter of taste and personal preference. My preference is similar to yours, but my main reasoon is to save space. I think it is a ridiculous waste of space if every third line consisted only of a sole brace (opening or closing). To my eye, such lines that are almost empty break the natural structure of a piece of source code. I insert empty lines quite often in order to group source lines logically, but brace lines break that grouping visually. There is a very logical reason in C for wanting to put the opening brace of an 'if' statement on a separate line: preprocessor statements. Many editors, including vi / vim, and no doubt emacs, have a brace matching facility. If I put the cursor over a closing brace, say, and hit the % key, it puts me onto the matching opening brace. However in this scenario: int foo( int x ) { #ifdef SCENARIO_A if ( x<3 ) { #else if ( x<2 ) { #endif // . . . } // . . . } matching the closing brace of foo() will fail, as the number of braces no longer matches. Putting the opening brace of the 'if' on another line solves this problem. -Will ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Why?? (prog question)
Polytropon wrote: On Tue, 31 Mar 2009 07:48:00 -0400, William Gordon Rutherdale wrote: Tabbing is the worst form of indentation. It is *much* better to use spaces consistently. may I ask what exactly you mean by "consistently"? I've seen various opinions about how many spaces make up one indentation level, beginning from 1, over 4, up to 10. Where's the consistency, or is it defined on a per-programmer basis? Are you serious? You set the standard on a given project. You decide whether you are using spaces or tabs. If spaces, you decide how many spaces per indent level. You ask the programmers to submit code in that format. It doesn't jump around randomly from one line to the next. You are trying to make it sound like a big problem, but it isn't. And why is this much better? Just my view based on years of experience. Don't take it too seriously. When I would compare both indentation forms, I'd say that tabbing is the better form because + you can set your individually preferred tab with using the settings of your editor, be it 1, 4 or 8, Why is this flexibility important? The more important thing is to have consistently indented code. There is no great benefit in letting different programmers see the code indented to different levels. They just want to be able to read it. + you can change the indentation while you're coding, e. g. when the indentation level makes the code exceed the right margin of your editor's window, So what? How many times have you actually done this in the past year? Be honest. + you need more keypressing to get through the indentation with the spaces, one keypress per space, while you only need one keypress per tab (which equals one indentation level), Not true. You set up your editor settings to automatically do this for you. Most editors have this capability. On my editor (vim) it only takes at most one keypress to indent. You still might use the tab key, or even have the editor automatically format for you based on syntax. Editors have done this for decades. Your objection is specious. + per indentation level only 1 byte is needed (tab = ASCII 9), while spacing requires more bytes, one per space (space = ASCII 32), Are you telling me that in an age when most cheap user workstations have hundreds of gigabytes of disk space, you need this kind of savings? This is a *very* weak point. + while you can convert tabs into spaces, you cannot easily convert spaces back into tabs, and finally Not true. It is extremely easy to convert both directions. The unix 'expand' command converts one direction, and 'unexpand' goes the reverse direction. These unix utilities have been around as long as 'cat' and 'ls'. Moreover the whole point is moot anyway. There are lots of high quality code formatters available. One called 'Artistic Style' is well known and very capable. On a lot of projects these days, people get sick of these kinds of arguments and just run all the code they receive through a code formatter like astyle. It lets you set all kinds of options such as brace placement, spacing between parameters, indentation method, and so on. If asking people to change their editor settings doesn't work, this thing fixes it up. + even FreeBSD uses the tabbing style. And therefore if I submit code for FreeBSD then I will use that format. However I wouldn't recommend it for other projects where that decision has not been established. I'm aware that one can argue about where { is to be placed, but I don't see any valid reason to use spaces for indentation instead of tabs (which I would even call "standard"). It's a honest question: What are your arguments for using tabs? Hint: "it is *much* better" doesn't count. :-) There are lots of cases where it's hard to make code line up the way you want it with tabs. Often code that looks good with one tab length setting (say 8) doesn't look so good with another (say 4). It gets especially bad when there are a few space characters thrown in, which people often do. -Will ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Why?? (prog question)
Polytropon wrote: I don't want to start a "style debate", but forgive me the following annotations: 1. Use the tab character for indentation. You can set its length with your favourite editor (e. g. mcedit: F9, Options, General; joe: ^TD). Don't waste with spaces. 2. The main() function should be declared as int main(int argc, char *argv[]) or int main(int argc, char **argv) Note that it's returning (int). Use this functionality. 3. In case of errors (e. g. incorrect number of parameters) use fprintf() to stderr, or perror() with the builtin error handling (e. g. for "file not found" by fopen()). 4. Use the predefined return codes, don't hardcode them. FreeBSD has EXiT_SUCCESS and EXIT_FAILURE, they're for maximum compatibility (such as with Linux). There are more exit codes for differentiation, but they're specific to FreeBSD, as far as I know. 5. This is highly debatable: Use a good style for { and }. 6. Use delimiters around operators, e. g. buf[strlen(buf) - 1] instead of buf[strlen(buf)-1]; increases readability. Here is the program again, with some stylistic modifications and the "correct" (read: recommended, usual) exit code handling: /* * simple prog to join all | very nearly all lines of a text file * that make up one paragraph into one LONG line. * * paragraphs are delimiated by a single \n break. */ #include #include #include int main(int argc, char *argv[]) { char buf[65536]; if(argc == 1) { fprintf(stderr, "Usage: %s < file > newfile\n", argv[0]); exit(EXIT_FAILURE); } while (fgets(buf, sizeof buf, stdin)) { if(*buf == '\n') { fprintf(stdout, "\n\n"); } else { buf[strlen(buf) - 1] = ' '; fputs(buf, stdout); } } return EXIT_SUCCESS; } Note that compiling with -Wall (always a good option) doesn't show any warning. I read my advices again... makes me sound so old! :-) Tabbing is the worst form of indentation. It is *much* better to use spaces consistently. -Will ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Why?? (prog question)
This isn't a BSD question. It's just about elementary C. As other people pointed out, you could have easily caught it anyway just by turning on warnings. -Will Gary Kline wrote: people, i've been under the weather for days and will probably be for a few more. new and TEMPORARY meds dont like me, ugh. can anybody clue me in why the followin joinline program fails to catch if argc == 1? /* * simple prog to join all | very nearly all lines of a text file that * make up one paragraph into one LONG line. * * paragraphs are delimiated by a single \n break. */ #include #include #include main(int argc, char argv[]) { char buf[65536]; if (argc == 1) { printf("Usage: %s < file > newfile\n", argv[0]); exit (-1); } while (fgets(buf, sizeof buf, stdin) ) { if (*buf == '\n') { fprintf(stdout, "\n\n"); } else { buf[strlen(buf)-1] = ' '; fputs(buf, stdout); } } } ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
startx on FreeBSD 7.1
when startx on FreeBSD 7.1... 1- Xlib: extension "Generic Event Extension" missing on display "0.0" 2- [drm] failed to load kernel module "via" (EE) [drm] drmOpen failed. (EE) CHROME(0): [dri] DRIScreenInit failed. Disabling DRI. I need some guiance +++ William Moreno P.D.: El presente correo no contiene tildes para evitarle al receptor inconvenientes en su lectura. ¡Sé el Bello 51 de People en Español! ¡Es tu oportunidad de Brillar! Sube tus fotos ya. http://www.51bello.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Your Amazon.com Order
I think you may have replies to the wrong email;) Becki Trujillo wrote: I just placed an order, and I am wondering where exactly my order is being shipped. I want it shipped to Rebecca or Becki Trujillo POBox 178 Ojo Caliente, NM, and NOT to Franklin, TN/ My email is becki.truji...@k12espanola.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: please remove all search results with name Constantin Stalzer
Score 1 to Chris, nice come-back. Flame on!! --Original Message-- From: Chris Knight Sender: owner-freebsd-questi...@freebsd.org To: michael copeland Cc: freebsd-questions@freebsd.org Sent: Feb 10, 2009 20:35 Subject: Re: please remove all search results with name Constantin Stalzer On Tue, Feb 10, 2009 at 5:16 PM, michael copeland wrote: > > and if someone is ignorant of their stupidity? Then Gary Larson puts them in a Far Side Comic. :) -Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Sent from my BlackBerry® wireless device___ freebsd-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: please remove all search results with name Constantin Stalzer
Let the flaming begin Or continue..meh! --Original Message-- From: michael copeland Sender: owner-freebsd-questi...@freebsd.org To: Jerry McAllister Cc: freebsd-questions@freebsd.org Sent: Feb 10, 2009 19:50 Subject: Re: please remove all search results with name Constantin Stalzer On Tue, Feb 10, 2009 at 7:41 PM, Jerry McAllister wrote: > On Tue, Feb 10, 2009 at 04:33:26PM -0800, Chris Knight wrote: > > > On Tue, Feb 10, 2009 at 3:36 PM, Jerry McAllister > wrote: > > > On Tue, Feb 10, 2009 at 01:29:34PM -0800, Chris Knight wrote: > > > > > >> Damn, that is the funniest thing I have seen in years. > > > > > > You might try posting a helpful response instead of trying > > > to be insulting. > > > > I wasn't trying to be insulting. I was trying to be funny. > > > > Apparently, you don't know the difference; which is in fact an insult > > in case you think I was trying to be funny. > > To make fun of someone's ignorance is not humorous. > It is offensive and small. > > jerry > > > > > > -Chris > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscr...@freebsd.org" > can't you jest about something with someone? you don' t have to be offensive. -- Doug Larson - "Instead of giving a politician the keys to the city, it might be better to change the locks." ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Sent from my BlackBerry® wireless device___ freebsd-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: please remove all search results with name Constantin Stalzer
I am curious to see if the idea is entertained even. --Original Message-- From: Chris Knight Sender: owner-freebsd-questi...@freebsd.org To: freebsd-questions@freebsd.org Sent: Feb 10, 2009 16:29 Subject: Re: please remove all search results with name Constantin Stalzer Damn, that is the funniest thing I have seen in years. -Chris On Tue, Feb 10, 2009 at 10:52 AM, Constantin Stalzer wrote: > Hello, can you please remove all search results with the name "Constantin > Stalzer" immediately, so that my name will not be seen on google. > thanks in advance...pleasseee > > Thanks, Greeetz >__ > Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!* > http://entertainment.web.de/de/entertainment/maxdome/index.html > >___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Sent from my BlackBerry® wireless device___ freebsd-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: insert new line in files
Wojciech Puchar wrote: I want to insert a new line of text at a certain position in certain files recursively under a directory. More specifically, I want text like this: include('/usr/home/www/imp-sites/default_inventory.php'); write a script: #!/usr/local/bin/bash (a=0 while [ $a -lt 36 ];do read line echo "$line" a=$[a+1] done echo "include('/usr/home/www/imp-sites/default_inventory.php');" while read line;do echo "$line" done) <$1 >/tmp/$$ mv -f /tmp/$$ $1 run it over each file I would avoid this method because it is extremely inefficient, especially with large files. Shell is very slow for loops like that because it is purely interpretive. If you wrote the same thing in Perl it would run way faster just because it does a compile on load. (Besides, you still have to show the 'find' invocation to run it recursively, as requested.) Steve's sed solution is probably not bad as well. -Will ___ freebsd-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: shell commands - exclusion
Lars Eighner wrote: On Wed, 4 Feb 2009, t-u-t wrote: hi, i don't know if this is a freak question, but i was looking around to see if this is possible, and what the convention would be. if i have say one (or even two) single file/directories among many others, and i want to perform any said function like cp, mv, rm, etc.. , to all other files except that one or two, is there a way to do that in a single command? e.g rm -r * {-except foo1 foo15} In general this is not possible. . . . Oh yes it is, it is very easy. I've done things like this in unix environments for years. I also apply it to tar commands all the time. All you have to do is this: $ ls >rm.in $ vi rm.in . . . edit out all the files you don't want to erase . . . $ rm `cat rm.in` -Will ___ freebsd-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: intel 64-bit version?
I'm using the amd64 version of FreeBSD for an HP Pavillion using an Intel Core 2 Quad processor (Q6600). So far it's doing fine with the processor. There are some driver problems, for instance no sound. However, as I'm using this machine as a compute server, I'm ignoring those limitations. I ran some parallel computation problem on it and got good performance out of it. -Will Ivailo Tanusheff wrote: You may use amd64 version for full support of the 64 functionalities. Do not get the wrong impression, this is not only for AMD processors and allow you to use the full strength of the 64 bit architecture. You may also use i386 branch and use PAE config options if you have more than 4 GB RAM. Still, the best idea is to use amd64 version. Regards, ___ freebsd-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: short-changed on SD card?
According to Mike Jeays on Mon, 02/02/09 at 19:38: > > I think I would try dd if=/dev/zero of=/dev/da1 bs=1M > without the count option, and see how many blocks it writes. You at least > start with a clean slate, and can run fdisk and newfs, if you want a BSD-only > device. Make sure you write on the right device! So you don't think the "bad card reader" suggestion is relevant? I will also try this approach. Thanks for all the feedback. Now, I've got some avenues of testing to work through. Later... Regards, web... -- William Bulley Email: w...@umich.edu ___ freebsd-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: short-changed on SD card?
According to Tim Judd on Mon, 02/02/09 at 18:13: > > Nobody's blamed the SD/CF reader. > > I call dibs to blame the SD/CF reader. Isolate the problem to find the > culprit... > > Check the USB reader -- I'm curious to see if that fixes the problem. This is a FANTASTIC suggestion - never occurred to me. I will have to try a different device with the same 2.0 GB card. Thanks! > And FYI -- No matter the Heads/Sectors/Cylinders, there are ~200 512byte > sectors, roughly equal to 1GB. Yep. > If it's not the adapter, you got cheated in the purchase. Thanks again. Regards, web... -- William Bulley Email: w...@umich.edu ___ freebsd-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: short-changed on SD card?
According to Warren Block on Mon, 02/02/09 at 15:29: > > newfs_msdos(8) Learned something new there. Thanks! > It's generally not useful to slice/partition a small SD card. Without a > slice table, the whole device is just one slice. Agreed. I just want a big chuck of storage (in this case the 2.0 GB that I paid for, sigh...) and I don't care what format it is in. As I said, I am happy with FAT16 as long as I can use all (approximately) 2.0 GB of it. > Offhand I don't know if you can overwrite an existing slice table (boot > block) with just a 'newfs_msdos /dev/da1'. Probably. This is something I will try. > If not, you can just 'dd if=/dev/zero of=/dev/da1 bs=512 cnt=1' and then > do the newfs_msdos. Okay. This is worth a try. > If you plan to use that card in a camera, you are a little safer doing a > "full" or "low-level" format with the card in the camera. Some cameras > create and like not-quite-right filesystems. Older Canon cameras, for > instance. This is not for use in a camera. It is just a quick and dirty way for me to grab (about) 2.0 GB from one FreeBSD system and plop it onto another. > Finally, there are more than a few reports of SD cards with false > capacities bought on ebay. This SD card was purchased from a reputable firm in New York whose name you would recognize were I to mention it. I have had nothing but good experiences buying from them in the past (many years > four). Regards, web... -- William Bulley Email: w...@umich.edu ___ freebsd-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: short-changed on SD card?
According to Brad Mettee on Mon, 02/02/09 at 15:55: > > Does an XP machine also detect it as 960MB? If not, can you put more than > 960M on it and verify that it's all intact? Yes, Windows XP sees it as a 960MB FAT16 "drive". And when formatting it under Windows XP it never gave me the option to up this number, so somewhere (boot block, MBR?) the concept of 960MB is retained. > Create a 100MB zip file, put 10+ copies on the card. Then test to see if > the CRC is correct on all of the copies. If they're alls ok, then the card > is in fact 2GB. If you start getting errors on any of the files (and can > wipe/repeat the problem), then I'd say you've been ripped off and it's only > a 1GB card. Did you intend to have me put this ZIP file on the SD card using Windows XP or FreeBSD, or does it matter? I wish I didn't have to touch Windows XP at all, grrr... :-( Regards, web... -- William Bulley Email: w...@umich.edu ___ freebsd-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: short-changed on SD card?
According to Jerry McAllister on Mon, 02/02/09 at 14:12: > > I am a little lost here and haven't tried a lot on USB devices yet - > though I haven't had these kind of problems. > > But, after doing the fdisk stuff and before trying to mount, did you > do a newfs? > > Another thing would be to try the old > dd if=/dev/zero of=/dev/da1 bs=512 count=1024 > and see if it will write to it and wipe enough stuff to free it up. > Up the count if you think it makes any difference. Thanks. According to the newfs(8) man page it is used only for BSD style file systems (ufs and ufs2). I am okay with the FAT16 formatted SD card, I'm just upset that I paid for a 2.0 GB card and ended up with what seems to be a 1.0 GB card. I would be happy if I could make the SD card look like this: slice 1 2.0 GB (well, 1920 MB if you insist) slice 2 slice 3 slice 4 And I thought I had done just that using fdisk(8). But I must have gotten some of the "beg" and "end" paramaters set up wrong. If the card is indeed 2.0 GB in size, and following in the style of the originally reported parameters of this card: da1: 960MB (1967616 512 byte sectors: 64H 32S/T 960C) that is, 64 "heads", 32 "sectors per track", and 960 "cylinders", (this evidently from what the BIOS reports and understands) I had assumed that I could merely increase the cylinder count up to 1920 and leave the head and sector information as it was. But as I said earlier, this didn't seem to work. I know I have to leave room at the beginning for the MBR or the like, but the tools are either too low level, or too high level, or my understanding of all this is not up to speed. Why can't an SD card advertised (and sold) as a 2.0 GB card actually hold (approximately) 2.0 GB? That is what bugs me... I believe that FAT16 is capable of addressing a 2.0 GB disk drive, yes? Regards, web... -- William Bulley Email: w...@umich.edu ___ freebsd-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: short-changed on SD card?
According to Mel on Mon, 02/02/09 at 12:46: > > On Monday 02 February 2009 07:52:44 William Bulley wrote: > > Recently purchased a brand new 2.0 GB secure digital (SD) card. > > > > When I plugged this into a USB dongle and plugged the USB dongle > > into an available USB socket on my FreeBSD 7.0-STABLE system the > > output from dmesg(8) reported this: > > > >da1: 960MB (1967616 512 byte sectors: 64H 32S/T 960C) > > > > This is much closer to 1.0 GB than 2.0 GB so I at once wondered > > if I had been scammed in my purchase of this brand new SD card. > > > > Once I'd mounted /dev/da1s1 on /mnt, the df(1) command also reported > > 960 MB. I then copied a 300+ megabyte file onto /mnt and then ran > > the df(1) command again. This time it reported 1.9 GB total and > > 1.6 GB available. WHAT IS GOING ON HERE? Am I going crazy? > > On a hunch, it's really 1G FAT, 1G HFS ("mac"). You could reformat it using > fdisk/newfs. That might be a good hunch, but the SD card itself just says "2.0 GB" on the outside - no mention there or when I purchased it to have any Mac-ness. I don't recall seeing anything Mac-ish when I ran the fdisk(8) command as % fdisk da1 The output then seemed to correctly reflect that partition (slice) one (1) was 960 MB in size. I tried later (once the system had recovered and the fsck(8) had finished) to use fdisk(8) to put 1920 MB into slice one. But that didn't seem to work. I marked all the other three slices as "UNUSED". Is there any trick to using fdisk(8) that is hidden in the man page which I evidently missed? I used the "-i" flag and it led me by the had through each slice - I thought I did the "right" thing, but I was never able to mount(8) the SD card after that, even though dmesg(8) reported "da1" as being there. I kept getting "invalid parameter" or the like when I tried mounting as I am used to: # mount_msdosfs -l /dev/da1s1 /mnt I also tried: # mount_msdosfs -l /dev/da1 /mnt But both versions failed. Finally, in desperation, I formatted the SD card on a Windows XP laptop. Windows put it back into FAT shape (using the low level - not the "quick" - format there) and gave it 960 MB, sigh... :-( Regards, web... -- William Bulley Email: w...@umich.edu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
short-changed on SD card?
Recently purchased a brand new 2.0 GB secure digital (SD) card. When I plugged this into a USB dongle and plugged the USB dongle into an available USB socket on my FreeBSD 7.0-STABLE system the output from dmesg(8) reported this: da1: 960MB (1967616 512 byte sectors: 64H 32S/T 960C) This is much closer to 1.0 GB than 2.0 GB so I at once wondered if I had been scammed in my purchase of this brand new SD card. Once I'd mounted /dev/da1s1 on /mnt, the df(1) command also reported 960 MB. I then copied a 300+ megabyte file onto /mnt and then ran the df(1) command again. This time it reported 1.9 GB total and 1.6 GB available. WHAT IS GOING ON HERE? Am I going crazy? Is this normal behaviour for a FAT16 formatted (raw/blank) SD card? Is there something I can do using the fdisk(8) or similar command to change the SD card so that it believes (and FreeBSD believes) that it is truly a 2.0 GB card? As I continued writing (large, multi-hundred megabyte) files to the mounted SD card, the system eventually seized up and I had to reboot. I expect this had something to do with my having crossed the 960 MB boundary on this SD card. Help! Any ideas gratefully accepted. Regards, web... -- William Bulley Email: w...@umich.edu ___ freebsd-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: Tool to uncat file
$ man split This (split) is the standard unix utility to break a file up into pieces. It breaks it down either by a fixed number of lines or by a fixed number of bytes. Also the rules for dividing lines is simplistic: simple newline division, no special escape handling. If that doesn't suit your purpose, then you have to write your own custom split-like utility. I've done that in the past. For instance I once wrote a routine in Perl at work to divide Informix format .unl files (database dump), with special escape rules for newlines and special handling of binary data. For what you're describing you probably want to write a C program to do the job. -Will Polytropon wrote: Dear list, before starting to code on my own, I'd like to ask if there's already a tool to uncat files, defining the file separation position as a string of bytes, usually given in hexadecimal form. An example could be this: % uncat -p 0x12,0x52,0xf1,0x09 file_orig It creates file_1 file_2 file_3. And, of course, % cat file_1 file_2 file_3 > file_orig would re-create the original file. The bytes 0x12,0x52,0xf1,0x09 tell the file starting pattern (-p), where a new file begins. I cannot use dd due to the fact that the files concatenated are of a different size. So the idea would be to look for specific byte pattern and then start a new file each time it occurs on input. Is there such a tool, or any other ideas ___ freebsd-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: Perl5.8 Won't Build
I tried this as you said, to no avail. Same error. Please advise. Mel wrote: On Friday 30 January 2009 14:55:47 William Bentley wrote: No, this is a new install and there are no env vars set. I made sure that the env was clean anyways. As a work-around compile as: env MAKEFILE=Makefile make build How this got changed, I have no idea. Mel wrote: On Friday 30 January 2009 14:07:17 William Bentley wrote: Here is the output: (cd /usr/ports/lang/perl5.8/work/perl-5.8.9; /usr/bin/env LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" LC_TIME="" SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/local MOTIFLIB="-L/usr/local/lib -lXm -lXp" LIBDIR="/usr/lib" CC="cc" CFLAGS="-O2 -fno-strict-aliasing -pipe" CXX="c++" CXXFLAGS="-O2 -fno-strict-aliasing -pipe" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -o root -g wheel -m 555" BSD_INSTALL_SCRIPT="install -o root -g wheel -m 555" BSD_INSTALL_DATA="install -o root -g wheel -m 444" BSD_INSTALL_MAN="install -o root -g wheel -m 444" make -f makefile all) Mine looks for Makefile (capital M). Did you set a MAKEFILE variable somewhere, like environment variable? ___ freebsd-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: Perl5.8 Won't Build
No, this is a new install and there are no env vars set. I made sure that the env was clean anyways. Mel wrote: On Friday 30 January 2009 14:07:17 William Bentley wrote: Here is the output: (cd /usr/ports/lang/perl5.8/work/perl-5.8.9; /usr/bin/env LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" LC_TIME="" SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/local MOTIFLIB="-L/usr/local/lib -lXm -lXp" LIBDIR="/usr/lib" CC="cc" CFLAGS="-O2 -fno-strict-aliasing -pipe" CXX="c++" CXXFLAGS="-O2 -fno-strict-aliasing -pipe" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -o root -g wheel -m 555" BSD_INSTALL_SCRIPT="install -o root -g wheel -m 555" BSD_INSTALL_DATA="install -o root -g wheel -m 444" BSD_INSTALL_MAN="install -o root -g wheel -m 444" make -f makefile all) Mine looks for Makefile (capital M). Did you set a MAKEFILE variable somewhere, like environment variable? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"