Re: "Cloud" software ?
Quoth Wojciech Puchar on Friday, 25 May 2012: > > > >With apologies to Joni Mitchell: > > > >I've looked at clouds from both sides now, > >From up and down, and still somehow, > >It's cloud illusions I recall, > >I really don't know clouds, at all. > > > >Well, someone had to say it. :-) It summarises the marketing hype > >perfectly. > > fashion is quite often deciding factor not just in clothes. Actually it > works just the same in IT. What is funny with "cloud computing" (new > fashion trend) is that isn't defined at all. most probably marketing > people found out that it is not needed to define anything to make people > buyANYTHING. $ man -k cloud http://dilbert.com/strips/comic/2012-05-25 -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpSv8z6cK5bB.pgp Description: PGP signature
Re: UFS Crash and directories now missing
Quoth Eitan Adler on Monday, 30 April 2012: > On 30 April 2012 07:36, Robert Bonomi wrote: > > A competennt, "not stupid", sysadmin would know these things. And not > > 'remove all doubt' (in the words of Abraham Lincoln), by raising such > > nonsense questions. > > A competent sysadmin would ask questions when they don't know the > answer bringing up possibilities they thought about. > A stupid sysadmin would yell at someone asking a question claiming > they should have known the answer. > > -- > Eitan Adler > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Best response in this thread so far. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpPEnYYipOaV.pgp Description: PGP signature
Re: /usr/home vs /home
Quoth Erich Dollansky on Tuesday, 21 February 2012: > Hi, > > On Tuesday 21 February 2012 12:26:03 Chip Camden wrote: > > Quoth Erich Dollansky on Tuesday, 21 February 2012: > > > Hi, > > > > > > On Monday 20 February 2012 21:44:43 Da Rock wrote: > > > > On 02/18/12 17:47, Erich Dollansky wrote: > > > > > > > >> There may have been a historic reason, but now it is philosophical - > > > > >> trying > > > > > when I got my hands for the first time on a BSD system, the machine > > > > > has had several 5MB hard disks. > > > > > > > > > > I assume that what now is called partitioning came from the need to > > > > > have several disks to run a serious system. > > > > > > > > > > And yes, it was possible to boot and run BSD with at least 20 users > > > > > on several 5MB disks. > > > > > > > > > > Erich > > > > Erich, can I be so bold as to ask what brand the disks were? And tax > > > > your memory as to when? > > > > > > it was DEC PDP-11 with a strange drive. One disk was fixed, one was > > > removable. This is the reason why it was easy to switch the operating > > > system. RL .. something like this was the disk name. > > > > > > > I believe the 5MB removable were RL01. They also had a 10MB removable > > RL02, which we used for software distribution. We resold them to our > > customers at $170 each. > > yes, this sound familiar. The RL02 came later. > > I think that tapes were much more common for software distribution those days. > > I still remember the responsiveness of RSX-11 even compared to FreeBSD under > all circumstances. Real time is real time. > > Erich > > Oh man -- we wrote process control software in Fortran-77 on RSX-11M to automate our software distribution processes. That was the best! DECNET to communicate between systems. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpMB0yCDADit.pgp Description: PGP signature
Re: /usr/home vs /home
Quoth Erich Dollansky on Tuesday, 21 February 2012: > Hi, > > On Monday 20 February 2012 21:44:43 Da Rock wrote: > > On 02/18/12 17:47, Erich Dollansky wrote: > > > >> There may have been a historic reason, but now it is philosophical - > > >> trying > > > when I got my hands for the first time on a BSD system, the machine has > > > had several 5MB hard disks. > > > > > > I assume that what now is called partitioning came from the need to have > > > several disks to run a serious system. > > > > > > And yes, it was possible to boot and run BSD with at least 20 users on > > > several 5MB disks. > > > > > > Erich > > Erich, can I be so bold as to ask what brand the disks were? And tax > > your memory as to when? > > it was DEC PDP-11 with a strange drive. One disk was fixed, one was > removable. This is the reason why it was easy to switch the operating system. > RL .. something like this was the disk name. > I believe the 5MB removable were RL01. They also had a 10MB removable RL02, which we used for software distribution. We resold them to our customers at $170 each. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpLKwdEeZ9jd.pgp Description: PGP signature
Re: Technical Support Question
Thanks interesting possibilities. One thought I had is creating an operating system independent BIOS where the appropriate machine code is inserted into the events that lead to an override of the processes that is forcing into windows. Maybe burned to a CD or USB, from another computer and tie the low level to a keyboard function, Like pressing F2 etc, at boot to access new BIOS functionality. Is this possible? On Fri, Feb 17, 2012 at 11:26 AM, wrote: > Chip Oakley wrote: > > > Am tempted to remove the drive and insert a new one, not sure as > > there is memory on the drive available and nothing really wrong > > with it. > > If you don't mind losing everything currently on the drive, > overwriting the MBR -- and the backup GPT at the end of the drive, > if the BIOS supports GPT/UEFI -- would surely keep it from booting > into Windows. You'd probably have to take the drive out, and > connect it to a different machine (since this one's BIOS seems > hardwired to boot only from the hard drive). > > Another possibility would be to clear the machine's CMOS, if there's > a way to do that. Desktop mainboards usually have a jumper for the > purpose; dunno about Samsung laptops but removing the CMOS battery > and giving it a few minutes for the stray capacitance to discharge > should suffice. (Getting to the CMOS battery may involve taking the > case apart.) > -- Any attachments (WAV. MP3, PDF) files etc, contain copyrighted material that is protected under intellectual property law in the USA and internationally through the World Intellectual Property Organization in Geneva, Switzerland. Messages are for the intended recipients only and usually contain confidential information as well. If you received this message or any previous messages in error, please notify the sender immediately and delete any files or emails that may be in question. Thanks for your consideration. ___ freebsd-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: Technical Support Question
No, unfort. On Thu, Feb 16, 2012 at 2:48 PM, Adam Vande More wrote: > On Thu, Feb 16, 2012 at 1:11 PM, Chip Oakley wrote: > >> >> There is a prompt at Startup stating press any key to boot from CD. >> > > This message usually originates from a Windows boot CD, not a FreeBSD > one. Is there more than one CDROM in the system? > > -- > Adam Vande More > -- Any attachments (WAV. MP3, PDF) files etc, contain copyrighted material that is protected under intellectual property law in the USA and internationally through the World Intellectual Property Organization in Geneva, Switzerland. Messages are for the intended recipients only and usually contain confidential information as well. If you received this message or any previous messages in error, please notify the sender immediately and delete any files or emails that may be in question. Thanks for your consideration. ___ freebsd-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: Technical Support Question
Thanks for your reply. The boot CD will boot on the other machine, but not on the computer for my intended install of BSD. I set the boot order to boot first from CD ROM in phoenix BIOS. It is a Samsung Laptop it is windows 7 home edition I called Samsung and they have no information on overriding a windows password only restoring to an older version which got my here in the first place. There is a prompt at Startup stating press any key to boot from CD. Pressing any key only leads to that same screen in windows asking for the password, except for the function keys that lead to BIOS configuration. Am tempted to remove the drive and insert a new one, not sure as there is memory on the drive available and nothing really wrong with it. Cant imagine there is not a fix somewhere. Any other ideas? Regards On Thu, Feb 16, 2012 at 12:53 PM, Julian H. Stacey wrote: > > You claim to have made a CD on nother machine. Will _that_ machine boot > from > > the CD you made? If not, you made the CD incorrectly. > > > Good point > Chip Oakley > Please first make sure you are subscribed to this list >freebsd-questions@freebsd.org, > as I see you have fallen off cc list. > BTW a delayed archive of this & other lists in on the web. > > Next check the MD5 checksum of your boot media. > > Next also realise some drives cant read what other drives had written, > sometimes that maybe alignement or dirt on the optics, > someties it simply cos eg some old drives cant read those half see through > RW media, sometime some old drives cant read an RW media. > > Cheers, > Julian > -- > Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich > http://berklix.com > Reply below not above, cumulative like a play script, & indent with "> ". > Format: Plain text. Not HTML, multipart/alternative, base64, > quoted-printable. >Mail from @yahoo dumped @berklix. http://berklix.org/yahoo/ > -- Any attachments (WAV. MP3, PDF) files etc, contain copyrighted material that is protected under intellectual property law in the USA and internationally through the World Intellectual Property Organization in Geneva, Switzerland. Messages are for the intended recipients only and usually contain confidential information as well. If you received this message or any previous messages in error, please notify the sender immediately and delete any files or emails that may be in question. Thanks for your consideration. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Technical Support Question
Hello, I am upgrading to BSD from windows. I am having complications with an old password from Windows that I cannot remember. I created an ISO Boot CD on another computer and installed it and made sure to set the BIOS to boot from CD, to no avail. Is there a way to access the executable files from the CD and overwrite windows for my BSD installation? 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: Clang - what is the story?
Quoth Robert Bonomi on Sunday, 22 January 2012: > Da Rock wrote: > > > I personally had no idea this was going on; my impression was gcc grew > > out of the original compiler that built unix, and the only choices were > > borland and gcc. The former for win32 crap and the latter for, well, > > everything else. > > "Once upon a time", there were _many_ alternatives for C compilers. > Commercial -- i.e. 'you pay for it', or bundled with a pay O/S -- offerings > included (this is a _partial_ list, ones _I_ have personal knowledge of): > > PCC -- (the original one0 medium-lousy code but the code-generator was >easily adapted to new/diferent hardwre > Green Hills Softwaware (used by a number of unix hardare manufacturers) > Sun Microsystems developed their own ("acc") > Silicon Graphics, Inc > Hewlett-Packard > Symantic (Think C -- notable for high-performance on early Apple Mac's, > significantly better than Apple's own MPW) > Manx Software ("Aztec C" -- a 'best of breed' for MS-DOS) > Microsoft > Intel > CCS > Watcom > Borland > Zortech > Greenleaf Software > Ellis Computing (specializing in 'budget' compilers, circa $30 pricetags) > "Small C" > tcc -- the 'tiny C compiler > > > I'm sure others can name ones I've overlooked. I used a horrible C compiler on CP/M -- I guess I've blocked its name out of my memory. Anything you found in K&R that sounded cool you had to go write a test program to see if this compiler actually supported it. Sometimes it did, but differently. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpPyQUEALvSD.pgp Description: PGP signature
Re: dot snap folder
Quoth Polytropon on Monday, 16 January 2012: > On Sun, 15 Jan 2012 15:40:20 -0800, Jim Pazarena wrote: > > Is it permissible to delete the dot snap folder which is created > > in a filesystem? > > First of all, it's called a directory, not a "folder". :-) > After all, it doesn't fold (for that you need a little Haskell or OCaml). -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpEbPoDy8cui.pgp Description: PGP signature
Re: FreeBSD Kernel Internals Documentation
Quoth Chad Perrin on Tuesday, 03 January 2012: > On Tue, Jan 03, 2012 at 01:12:11PM +0100, Walter Alejandro Iglesias wrote: > > On Tue, Jan 03, 2012 at 04:41:10PM +1000, Da Rock wrote: > > > New users are nearly always dismayed at the apparent difficulty of > > > things, and should be warned that they will need to do some work "under > > > the hood" in order to get what they want. The honesty can start > > > immediately, it doesn't necessarily have to be a goal. > > > > > > When people think in freedom, think in rights. And rights are > > something that some "authority" give or steal. > > > > Multinationals think in what is good to sell. People like > > "comfort" over all. The taste of people is fantastically > > represented in the Wall-E movie; to "arise and walk" is not > > considered a right. Futurist?, my father, thirty years ago, to > > go to the corner to buy cigarettes, took the car; today he has > > half body paralyzed by an hemiplegia, and perhaps one day to > > arise and walk will not be a right for him. > > You're confusing "capability" with "right". These words are not the same > because their meanings are not the same. > > I have a right to speak my mind, but if cancer requires the removal of my > jaw so that I can no longer speak, I no longer have the capability of > speaking at all. These are different things; a capability can be taken > away, but a right cannot. > > This is what is meant by "rights" in the context of ethics. The law has > its own jargon with its own definitions. The way you use "right" here is > very much nonstandard for any context of which I'm aware, which means > that before you can have a meaningful discussion with someone that > involves such use of the term "right" you need to get them to buy into > your definition of their own free will and agreement. Otherwise, the > discussion will be nothing but disagreement and/or misunderstanding. > > So . . . please start with the denotative meanings of words, consider > your audience, and use words accordingly. If you wish to use a term > differently than how it is understood, make sure you clarify that fact up > front. If others refuse to go along with it, find a different term to > use that can better convey the meaning you wish to convey. > If everyone followed your advice here, Chad, then 99% of the arguments on the Internet would evaporate. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpcGDtvtfWLt.pgp Description: PGP signature
Re: Realtek RTL8191SEvB Linux driver?
Quoth Jerry on Tuesday, 03 January 2012: > > Obviously you are having a very difficult time expression yourself in > English. Sorry, this one made me spew my coffee. The rest of the post I didn't find nearly as entertaining. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpmb7sx4WfCe.pgp Description: PGP signature
Re: problem in changing serial console speed!
Quoth Fritz Wuehler on Monday, 28 November 2011: > > I don't know but I do know a real VT100 won't run at 115,200 unless you drop > it out of an airplane. Are you using a physical terminal or an emulator? If > an emulator you often have to match up the emulator speed and parity > settings etc. to the host settings. Alas my Sun boxes only run at 9,800 over > serial even though minicom itself could do alot more. > Sorry for the OT reply, but this made me laugh out loud. Having been shackled to a real VT100 for years, the image of dropping one from an airplane is full of win. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpyQMYpXCfIZ.pgp Description: PGP signature
Re: [OT] but concerns all of us
Quoth Jerry on Thursday, 17 November 2011: > > Only those who break laws have a reason to fear them. That statement carries large assumptions about the wisdom and benevolence of government. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpKlVi97yAk2.pgp Description: PGP signature
Re: Fast personal printing _without_ CUPS
Quoth Ronald F. Guilmette on Thursday, 27 October 2011: > > #!/bin/sh > > printer='/dev/ulpt0' > > if [ $# = 0 ]; then > cat | /usr/local/libexec/psif > $printer > else > for arg in $* ; do > cat $arg | /usr/local/libexec/psif > $printer > done > fi Not to be a pedant (okay, maybe I am), but you could eliminate the extraneous `cat` in both commands: #!/bin/sh printer='/dev/ulpt0' if [ $# = 0 ]; then /usr/local/libexec/psif > $printer else for arg in $* ; do /usr/local/libexec/psif < $arg > $printer done fi Nice work, though! -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpwEVMHl5Jyk.pgp Description: PGP signature
Re: Dennis Ritchie has died. A suggestion
Quoth mikel king on Thursday, 13 October 2011: > On Oct 13, 2011, at 4:38 PM, Roland Smith wrote: > > > With the recent death of Dennis Ritchie, we've lost one of the giants on > > whose > > shoulders we are standing. But rather that mourn his passing, I think it > > would > > be proper to remember and celebrate his achievements. > > > > His contributions to the C language and the UNIX operating system are a > > legacy that few can match. > > > > Therefore I would like to propose that the FreeBSD project dedicate the > > upcoming 9.0 release in his memory. > > > > Alternatively, an tribute on the FreeBSD website would be fitting, wouldn't > > it? > > > > Roland > > > I think this would be a fitting tribute... > Hear, hear! -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpvXfUYfubmH.pgp Description: PGP signature
Re: *caution* severely OT!!
Quoth Michel Talon on Wednesday, 14 September 2011: > Chad wrote: > > > I really don't think I'd say that Common Lisp is "syntactically very > > close to python [sic]". It's not fair to either Common Lisp or Python, > > On the contrary python is strikingly similar to a simplified version of > lisp without parentesis. It is not an original opinion by far, see the > following post of an eminent lisp hacker: > http://norvig.com/python-lisp.html > Of course lisp is considerably more complex if you begin to use more > exotic features, but if you confine yourself to translating python code, > it may be almost litteral translation, as explained in the link above. > The OO systems are quite different. As long as the Python code confines itself to a functional style, then translating to Lisp shouldn't be hard. But rewriting Python classes in CLOS would not be a simple translation. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgp7AjTEYCdjH.pgp Description: PGP signature
Re: A quality operating system
Quoth Chad Perrin on Saturday, 27 August 2011: > On Sun, Aug 28, 2011 at 05:09:26AM +0200, Polytropon wrote: > > On Sat, 27 Aug 2011 13:56:16 -0500, Evan Busch wrote: > > > > > > I've never had this problem when the claims have been stated > > > professionally -- only here. > > > > But the claims HAVEN'T been stated professionally. You didn't bring > > _one_ example, not for "unprofessional" documentation, not for > > "professional" documentation. You're missing the basic structure of a > > professional argumentation, which consists of making a statement or a > > claim, then offering arguments that backup the claim, and additionally > > bring examples for those arguments. > > I've decided to provide the "professional" response "Evan" claims to > crave: > > Dear Evan, > > We appreciate your feedback on the quality, scope, and focus of our > software and documentation. We always strive to provide the highest > quality products and service to all of our customers, and constantly > seek new ways to improve on perfection. The input of our customers > is a key element of our strategy to consistently provide what they > need in a timely and responsible fashion. > > Your ticket number is d3b07384d113edec49eaa6238ad5ff00. Your case > worker is Robert Jones. Your ticket is: > > [ ] Pending Action > [ ] Open > [X] Closed: Complete > > Your account has been charged $14.99 for successful completion. Note > that this special 25% reduced support pricing will only apply for > actions until September 15th. Take advantage of the discounts now! > > If you have any further questions, do not hesitate to use the support > form on the Website. Thank you for your business. > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Perfect, except you didn't charge enough -- and you didn't ask him to complete a survey. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpsGadxArr2u.pgp Description: PGP signature
Re: A quality operating system
Quoth Evan Busch on Saturday, 27 August 2011: > > > In most cases, documentation requires you to have a minimal > > clue of what you're doing. There's terminology you simply > > have to know, and concepts to understand in order to use > > the documentation. > > See the Wikipedia page above -- the problem isn't one of user > competence, but of poorly-written documentation that is fundamentally > disorganized. > > Have you looked at any of the documentation coming out of Redmond right now? > > How do you think FreeBSD's documentation stands up to that? > Oh please. I have to use that crap that comes out of Redmond on a daily basis. They never think things through and only answer the most shallow questions, and their "How to"s make their little "Was this helpful?" seem sarcastic. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgp6mKqpPvBBw.pgp Description: PGP signature
trouble with ports
$ uname -a FreeBSD libertas.local.camdensoftware.com 8.2-STABLE FreeBSD 8.2-STABLE #123: Wed Aug 17 19:23:26 PDT 2011 r...@libertas.local.camdensoftware.com:/usr/obj/usr/src/sys/LIBERTAS amd64 Last Monday when I had the problem with panics that Attilio's patch seems to have solved, my system died in the middle of a large portmaster operation. This corrupted a number of entries in the package db, resulting in messages like the following: $ pkg_version -vl\< pkg_version: the package info for package 'firefox-5.0,1' is corrupt pkg_version: the package info for package 'rxvt-unicode-9.11' is corrupt This prevents 'portmaster -a' from working at all, and 'portupgrade -a' will not detect changes to those ports whose info is corrupt. Neither does portversion report on those ports (it acts like they aren't installed). I've found that the problem can be corrected by going into the port directory and doing a 'make install FORCE_PKG_REGISTER=1'. I had to do about a hundred of those. Howveer, there still remain two ports that refuse to be fixed: firefox and rxvt-unicode (as you can see above). They are each getting build errors. I could believe that's a coincidence in the case of firefox (the port is now at version 6.0), but even then I figure someone would have complained. For rxvt-unicode, though, the version has not changed and I was able to build 9.11 before. Here are the tails of the output from each: firefox: /usr/local/bin/python2.7 /usr/ports/www/firefox/work/mozilla-release/dist/sdk/bin/xpt.py link _xpidlgen/exthandler.xpt _xpidlgen/nsCExternalHandlerService.xpt _xpidlgen/nsIExternalProtocolService.xpt _xpidlgen/nsIExternalHelperAppService.xpt _xpidlgen/nsIHelperAppLauncherDialog.xpt _xpidlgen/nsIContentDispatchChooser.xpt _xpidlgen/nsIHandlerService.xpt _xpidlgen/nsIExternalSharingAppService.xpt _xpidlgen/nsIExternalURLHandlerService.xpt In file included from ../../dist/include/jsval.h:48, from ../../dist/include/jspubtd.h:47, from ../../dist/include/nsIDOMWindowInternal.h:17, from ../../dist/include/nsPIDOMWindow.h:47, from ../../dist/include/nsNPAPIPluginInstance.h:45, from ../../dist/include/nsPluginHost.h:48, from /usr/ports/www/firefox/work/mozilla-release/uriloader/exthandler/nsExternalHelperAppService.cpp:112: ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:474: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:496: error: ISO C++ forbids declaration of 'JS_ALWAYS_INLINE' with no type ../../dist/include/jsutil.h:496: error: expected ';' before 'void' ../../dist/include/jsutil.h:500: error: expected `;' before 'template' ../../dist/include/jsutil.h:500: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:500: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:622: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:629: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:646: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:653: error: expected constructor, destructor, or type conversion before 'static' ../../dist/include/jsutil.h:669: error: expected constructor, destructor, or type conversion before 'static' In file included from ../../dist/include/jspubtd.h:47, from ../../dist/inc
Re: new to os
Quoth Lars Eighner on Thursday, 18 August 2011: > On Thu, 18 Aug 2011, Al Plant wrote: > > >Aloha Lars, > > > >You mentioned WP5 in this thread. I have some docs on disks that were > >created in WP5. You know any FreeBSD based app like abiword that can read > >them for transfer to a contemporary program? > > I don't know of anything. If I recall correctly, abiword could open such > files but made mincemeat of them - perhaps some progress has been made since > I last tried. > > Since I still have my copy of WP5, I run it in dosbox and re-export file to > a more widely supported format. This is subject to the limitations of the > time, so the conversion of special characters and formating is iffy and > tables are almost guaranteed to be a mess. I believe there is a dummy print > driver for WP6DOS which prints WP6 documents to disc in pdf or ghostscript > which can subsequently be printed to paper (or converted) with modern > tools. There might be something similar for WP5, but in both cases this > depends on > having the original WP program to run in dosbox. > > Since intellectual property puts meat on my family's table, I naturally > would not suggest that pirate copies of WP5 might be on the web somewhere. > > -- > Lars Eighner > http://www.larseighner.com/index.html > 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" I use libreoffice to open all my old WP files. It's slow as a dog, but at least it can read them. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgp6D9BoQ7hVa.pgp Description: PGP signature
Re: Alternative windowmanagers
Quoth Christian Barthel on Friday, 05 August 2011: > > Are there any other window manager worth looking? > > What is your window manager? > xmonad. Minimal, tiled, keyboard-driven but also mouseable, fully customizable via configuration files written in Haskell. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpEsM7ITEL2f.pgp Description: PGP signature
Re: Printr?
Quoth Polytropon on Thursday, 28 July 2011: > On Thu, 28 Jul 2011 09:00:56 -0700, Chip Camden wrote: > > Quoth Matthew Seaman on Thursday, 28 July 2011: > > > > > > [*] Verb Sap. If you ever have the misfortune to get covered in toner, > > > remember to wash in /cold/ water... > > > > That sounds like the /sapientia/ derived from /malus experientia/. > > No, /carpetum throwibus et garbagiae/. :-) > /LOLum magnum/ -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpcCw5I5cNip.pgp Description: PGP signature
Re: Printr?
Quoth Matthew Seaman on Thursday, 28 July 2011: > > [*] Verb Sap. If you ever have the misfortune to get covered in toner, > remember to wash in /cold/ water... That sounds like the /sapientia/ derived from /malus experientia/. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpj3eHcGn5Ol.pgp Description: PGP signature
Re: legal notices at the end of emails
Quoth Svein Skogen (Listmail account) on Wednesday, 27 July 2011: > > Those e-mail-footers of legalese-sounding mumbo-jumbo threatening > voodoo-action against you and anybody standing next to you, should you > not be the sole designated, implied or expressed, recipient of that > e-mail, are _LESS_ binding than "shrinkwrap EULAs", and has less actual > legal content than the gold-content of seawater. They add the footers to > sound important. It's a mild case of narcissism. > I think it's more of a CYA than narcissism -- but a poor one. Or it may be the equivalent of "please keep it to yourself" framed in legalese for added effect -- the 21st century version of pronouncing a curse upon the offender, and just as effective. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpPbmPinTBSn.pgp Description: PGP signature
Re: Lennart Poettering: BSD Isn't Relevant Anymore
Quoth per...@pluto.rain.com on Monday, 18 July 2011: > Joshua Isom wrote: > > On 7/17/2011 6:16 PM, Mario Lobo wrote: > > > On Sunday 17 July 2011 10:13:13 C. Bergstr??m wrote: > > >> I hope gnome does [go Linux-only].. Maybe then more > > >> people would forget about it and focus on making KDE better ;) > ... > > What about enlightenment? > > For us old-timers :) > > What's the advantage of any of these "desktop environments" (Gnome, > KDE, enlightenment, Xfce) over ordinary X11 with (say) FVWM2 or TWM? > Certainly there are some useful apps that, for better or worse, are > built with gtk or the KDE toolkit, but what does the full-blown > environment really contribute (other than bloat)? > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Your rhetorical question expresses my feelings exactly. I use xmonad precisely because it sacrifices all eye candy to the efficient use of screen space. All a developer really wants is to be able to manage multiple apps and especially terminal windows with a minimum of fuss. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgptpXUFR0Eqt.pgp Description: PGP signature
Re: atheros 9285 wifi
Quoth freebsd-questi...@herveybayaustralia.com.au on Thursday, 14 July 2011: > > Sorry, I hate to come to the list with such a stupid question. I > followed up a thread from a couple of months ago regarding this > chipset which is not fully supported yet- hardware resetting errors- > and I'm trying to work out how to build this driver from head. > Unfortunately, when I run the cvs commands suggested it can't seem to > find it, and I'm wondering exactly what I'm missing. > > Network drops all the time, and won't handle any load, so assuming I > only have amd64-8.2 base system utilities: > > CVSROOT=pserver:anon...@anoncvs.tw.freebsd.org:/home/ncvs > > cvs login > > cvs co ath > > cvs co ath_pci > > And downloading modules list doesn't show ath, if_ath, ath_pci, or > anything with ath in it that is remotely related. > As I understand it, cvs should be pulling from head by default right? > So what am I missing? Or alternatively, how do I fix this wifi card- > rebooting every time it drops is a PITA! :) > Cheers > > - > Message sent via Atmail Open - http://atmail.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" FWIW my ath 9285 is working fine on 8.2-STABLE. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgp4v2TLjI0hr.pgp Description: PGP signature
Re: mount /unmount
Quoth Matthew Seaman on Monday, 04 July 2011: > On 04/07/2011 15:53, tethys ocean wrote: > >> If a partition was not unmounted cleanly (eg. the machine crashed, or > >> > the power was cut off suddenly) then fsck(8) should be used to check and > >> > fix any problems on the filesystem. If you've booted into single-user > >> > mode, then definitely fsck any partitions before trying to mount them. > >> > > > *I guess If I can do fsck without unmount partition I can lost all my data > > isn't it?* > > fsck on an unmounted partition will change on-disk data structures in > ways that the kernel doesn't expect. So, yes, one consequence is that > you can lose or corrupt data. You probably wouldn't lose everything in > the partition -- but you would tend to cause corruption predominantly in > files that are more actively used. > > So don't do that. > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > JID: matt...@infracaninophile.co.uk Kent, CT11 9PW > I presume you meant to say "on a mounted partition"...? -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpN6Qlmkf89J.pgp Description: PGP signature
Re: Mozilla retires Firefox 4 from security support
Quoth Jerry on Thursday, 23 June 2011: > On Thu, 23 Jun 2011 08:02:23 -0400 > Robert Huff articulated: > > > The best part is that many of my "add-ons" again no longer work. From > what I can see in the ports system, and I may be wrong, there is not an > option to use the version 4 either although remnants of version 3x > seem to still be available. It appears that a user is forced into > version 5 from version 4. Wow, and people bitch about Microsoft's update > policies. > Yes, Pentadactyl for one. Upgrading to its nightly build version makes it work, sort of. Looks like text fields no longer scroll properly. This is taking the Google-led trend of "beta is the new release" to extremes. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgp5xOHXU503B.pgp Description: PGP signature
Re: which utility is it?
Quoth Gary Kline on Sunday, 19 June 2011: > guys, > > i have it tatooed on my forehead that ``xev'' relays keycode > information about X appa--say xload or xclock. which utility gives > to the size in pixels and give you the -geometry info about an X > app? i'm trying to maximize the realestate of my display. > > tia, > > gary > > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix >Journey Toward the Dawn, E-Book: http://www.thought.org > The 8.51a release of Jottings: http://jottings.thought.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" xwininfo(1) -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpyxjBtGFltS.pgp Description: PGP signature
Re: Long Day's Journey into
Quoth Chad Perrin on Wednesday, 08 June 2011: > > > > Sure. But I've had luck++ with LinkSys for years, even before > > Cisco bought them out. --My new switch is an LG. See what > > happens. ... . > > In my (limited) experience, Linksys actually got more annoying after > Cisco bought out the company. Ditto that. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgptUIfAKPA7G.pgp Description: PGP signature
Re: Long Day's Journey into
Quoth Chad Perrin on Wednesday, 08 June 2011: > On Wed, Jun 08, 2011 at 05:56:59PM -0700, Gary Kline wrote: > > > > I'm still bringing back the dozens of things I removed from ethic. > > And testing new ideas. But I have a general question: have any of > > you wizards who run your own domains or otherwise use a switch [or > > hub] *ever* had it just-quit?! It is solid-state. Yes, the box is > > within my feet/foot reach. I have accidently kicked it i suppose, > > but still. > > I think I've just had ports die one by one on a switch until it no longer > worked. I don't think I've ever had the whole thing go poof for no > evident reason. > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] I have, twice. Both times it was a Linksys switch, too. Just suddenly, no network. After the second one, I decided to switch (har) to a Netgear GS116. Haven't had any trouble with it so far (knocks on head), but I've only had it about a year. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgplKs26g8x9u.pgp Description: PGP signature
Re: No keyboard after ports update, 2x moused_enable="YES" culprit
Quoth Warren Block on Monday, 16 May 2011: > On Mon, 16 May 2011, Chip Camden wrote: > > >Looks like cinepaint doesn't have any GNOME dependencies, and also no HAL > >dependency. Now if I can just learn how to do everything I know how to > >do in GIMP, I'll be set for that piece. > > > >I don't use dia very often (it's for diagrams). Gnumeric I use more > >frequently (for spreadsheets). I hate having to start up that monolithic > >libreoffice just to do a spreadsheet, but that would be a HAL-free > >alternative. > > I just submitted ports/157096 with a patch to build gvfs without HAL > support: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=157096 > > Very lightly tested, but no problems so far. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Works for me! So long, HAL! Thanks! -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpXfP8AvbMJo.pgp Description: PGP signature
Re: No keyboard after ports update, 2x moused_enable="YES" culprit
Quoth Warren Block on Monday, 16 May 2011: > On Mon, 16 May 2011, Chip Camden wrote: > > >Looks like cinepaint doesn't have any GNOME dependencies, and also no HAL > >dependency. Now if I can just learn how to do everything I know how to > >do in GIMP, I'll be set for that piece. > > > >I don't use dia very often (it's for diagrams). Gnumeric I use more > >frequently (for spreadsheets). I hate having to start up that monolithic > >libreoffice just to do a spreadsheet, but that would be a HAL-free > >alternative. > > I just submitted ports/157096 with a patch to build gvfs without HAL > support: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=157096 > > Very lightly tested, but no problems so far. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Awesome! I'll test it out. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgp7yPJQhKx84.pgp Description: PGP signature
Re: No keyboard after ports update, 2x moused_enable="YES" culprit
Quoth Chad Perrin on Monday, 16 May 2011: > On Mon, May 16, 2011 at 11:14:49AM -0700, Chip Camden wrote: > > > > Yes, that seems to be the sticking point. The only option appears to be > > doing without gimp, gnumeric, and dia, which all depend upon libgnomeui. > > Any Gnome-free alternatives out there? > > I don't use anything like gnumeric or dia, generally, but an alternative > to GIMP is Cinepaint. I don't *think* it requires libgnomeui. It has > some, err, "quirks", but they're trade-offs rather than pure negatives, > because Cinepaint does a number of things better than the GIMP. Among > the things it does better are start and operate quickly; where the GIMP > often takes an interminably long time to do simple things (like open an > image), Cinepaint is pretty snappy by comparison. The interface is > occasionally a bit glitchy, though. > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Looks like cinepaint doesn't have any GNOME dependencies, and also no HAL dependency. Now if I can just learn how to do everything I know how to do in GIMP, I'll be set for that piece. I don't use dia very often (it's for diagrams). Gnumeric I use more frequently (for spreadsheets). I hate having to start up that monolithic libreoffice just to do a spreadsheet, but that would be a HAL-free alternative. Thanks to everyone who has responded so far. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgphgMl5hh0ad.pgp Description: PGP signature
Re: No keyboard after ports update, 2x moused_enable="YES" culprit
Quoth Chad Perrin on Monday, 16 May 2011: > On Mon, May 16, 2011 at 11:14:49AM -0700, Chip Camden wrote: > > > > Yes, that seems to be the sticking point. The only option appears to be > > doing without gimp, gnumeric, and dia, which all depend upon libgnomeui. > > Any Gnome-free alternatives out there? > > I don't use anything like gnumeric or dia, generally, but an alternative > to GIMP is Cinepaint. I don't *think* it requires libgnomeui. It has > some, err, "quirks", but they're trade-offs rather than pure negatives, > because Cinepaint does a number of things better than the GIMP. Among > the things it does better are start and operate quickly; where the GIMP > often takes an interminably long time to do simple things (like open an > image), Cinepaint is pretty snappy by comparison. The interface is > occasionally a bit glitchy, though. > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Thanks, I'll take a look at it! -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpm495pJxv5U.pgp Description: PGP signature
Re: No keyboard after ports update, 2x moused_enable="YES" culprit
Quoth Warren Block on Monday, 16 May 2011: > On Mon, 16 May 2011, Daniel Staal wrote: > > >--As of May 16, 2011 10:00:38 AM +0200, Polytropon is alleged to have said: > > > >>On Sun, 15 May 2011 12:18:28 -0700, Chip Camden > >> wrote: > >>>I wish I could figure > >>>out what dependency wanted HAL to be installed so I could remove it. > >> > >>I would assume that the HAL dependency may be required by > >>some deeper-inside Gnome part that is used by Gimp, maybe > >>a part of the Gtk+ library... I'm not sure it's trivial to > >>find out which one it is. > > > >--As for the rest, it is mine. > > > >Sure it is: > > > >cd /usr/ports/sysutils/hal > >make deinstall > > > >It will list what ports require it. ;) > > pkg_info -R hal\* will show the same list without actually deinstalling > it. > > But some or most of those don't directly depend on hal, they depend on > something else that depends on hal. It would be nice to easily find the > root few. xorg-server can be set to not use hal. Then rebuild the > keyboard, mouse, and video drivers. > > One problem with getting rid of hal entirely is libgnomeui, which > depends on gvfs, which depends on gnome-mount, which depends on hal. Yes, that seems to be the sticking point. The only option appears to be doing without gimp, gnumeric, and dia, which all depend upon libgnomeui. Any Gnome-free alternatives out there? -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgp4tuGXDKNgZ.pgp Description: PGP signature
Re: No keyboard after ports update, 2x moused_enable="YES" culprit
Quoth Daniel Staal on Monday, 16 May 2011: > --As of May 16, 2011 10:00:38 AM +0200, Polytropon is alleged to have said: > > >On Sun, 15 May 2011 12:18:28 -0700, Chip Camden > > wrote: > >>I wish I could figure > >>out what dependency wanted HAL to be installed so I could remove it. > > > >I would assume that the HAL dependency may be required by > >some deeper-inside Gnome part that is used by Gimp, maybe > >a part of the Gtk+ library... I'm not sure it's trivial to > >find out which one it is. > > --As for the rest, it is mine. > > Sure it is: > > cd /usr/ports/sysutils/hal > make deinstall > > It will list what ports require it. ;) > > Daniel T. Staal > A less destructive way to get the same info is pkg_info -R hal-0.5.14_13 and 'portversion -v hal' can be used to get the specific version installed. After some more investigation, it appears that gnome-mount is the culprit. I'm looking into how to exclude that from the consumer apps. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpf42G1aPwb2.pgp Description: PGP signature
Re: No keyboard after ports update, 2x moused_enable="YES" culprit
Quoth Lars Eighner on Sunday, 15 May 2011: > On Sat, 14 May 2011, Rob Clark wrote: > > >After restarting X, prior to any reboot, I lost the mouse in X. > >So I figured a reboot was in order. > > This is almost certainly HAL. If you do not know you need HAL for > something, mark the hal and hal-info ports FORBIDDEN (set FORBIDDEN to any > value in the Makefiles) whenever you update your ports tree. Grep > /var/db/ports > for hal and then remove the with hal option in the affected ports using make > config. Force reinstall the affected ports. Try to pkg_delete hal, to > check > for dependencies you haven't resolved. When all the dependencies are > removed, then remove hal. > That's some good advice. I was able to remove hal using this approach, but only after removing firefox, gimp, gnumeric, dia and several others. When I reinstalled firefox, it didn't need HAL -- but when I reinstalled gimp the first thing it did was build HAL. I didn't find HAL in any of gimp's options, and I have "WITHOUT_HAL=YES" in /etc/make.conf. The HAL daemon hald isn't running, and gimp seems to work. I wish I could figure out what dependency wanted HAL to be installed so I could remove it. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpxOEZd2EVGz.pgp Description: PGP signature
Re: Newbie Needing Help
Quoth Chad Perrin on Monday, 09 May 2011: > > > > By the way, I remember a quote: > > > > > > Hello. My $NAME is ~inigo-montoya. You killed my process. Prepare > > to vi. --The Unix's Bride > > > > http://www.nancybuttons.com/catalog.cgi?o_custom=&o_selected=1469:1&action=browse&action_mod=show&cat=cro > > That joke is hilarious. Pedantically speaking, though, it has a small > problem: "vi" is pronounced like "vee eye", not like the word "vie". > I've always pronounced it like "vie" -- but I was introduced to it long before the web, back in the dark ages when each shop figured out their own pronunciations and wrote their own compilers. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpjv2xy5kwjV.pgp Description: PGP signature
Re: Newbie Needing Help
Quoth John or Judy Hixson on Sunday, 08 May 2011: > At the risk of being told to get out of here and never come back (until you > know enough to not need to come back), I need help on some very elementary > stuff. I haven't found anywhere else to ask these questions and am therefore > taking my chances. > > I'm trying to learn some FreeBSD in anticipation of eventually admining a > FBSD server for my church office network. I've installed FreeBSD 7.4 on an > old PC and am trying to follow along while reading Michael Lucas' book (2nd > ed.). Right now my problem is with the command line. Lucas make a statement > as follows: "If you want to see a comprehensive list of loader variables, > check the default configuration file." Since there is no command "check", I > have no idea what to use. What command will "check" a file? What I really > want to do is "view" the file, but that command doesn't exist either. Another > problem that's throwing me for a loop is that even though I'm logged in as > root I'm getting a "permission denied" return when I list a file (e.g. > /etc/fstab) and press enter. > > This no doubt the wrong place for simple questions like these so someone > PLEASE tell me where better to go. Thank you. > > John Hixson___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" For viewing or editing a file, what you want is a text editor. I use vim, but it really isn't designed for beginners. Whatever editor you decide to use, I would advise reading up on it before jumping into text files. To list files in a directory, the command is 'ls'. Type 'man ls' to get full documentation. In fact, for most Unix commands, 'man' is your friend. -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpx1vNxHdQ9C.pgp Description: PGP signature
Re: Comparing two lists
Quoth Chad Perrin on Saturday, 07 May 2011: > On Sat, May 07, 2011 at 02:09:26AM +0200, Rolf Nielsen wrote: > > > > I have two text files, quite extensive ones. They have some lines in > > common and some lines are unique to one of the files. The lines that do > > exist in both files are not necessarily in the same location. Now I need > > to compare the files and output a list of lines that exist in both > > files. Is there a simple way to do this? diff? awk? sed? cmp? Or a > > combination of two or more of them? > > Disclaimer: > > This should probably be done with Unix command line utilities, and most > likely by way of comm, as others explain here. On the other hand, the > others explaining that have done an admirable job of giving you some > pretty comprehensive advice on that front before I got here, so I'll give > you an alternative approach that is probably *not* how you should do it. > > Alternative Approach: > > You could always use a programming language reasonably well-suited to > admin scripting. The following is a one-liner in Ruby. > > ruby -e 'foo = File.open("foo.txt").readlines.map {|l| l.chomp}; \ > bar = File.open("bar.txt").readlines.map {|l| l.chomp }; \ > foo.each {|num| puts num if bar.include? num }' > > Okay, so I'm kinda stretching the definition of "one-liner" if I'm > using semicolons and escaping newlines. If you really want to cram it > all into one line of code, you could do something like replace the > semicolons (and newline escapes) with the "and" keyword in each case. > > http://pastebin.com/nPR42760 > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] You could even just output the intersection of the two lists: ruby -e 'puts File.open("foo.txt").readlines.map {|l| l.chomp} & \ File.open("bar.txt").readlines.map {|l| l.chomp }' And to comply with DRY: ruby -e 'def fl(f) File.open(f).readlines.map {|l| l.chomp}; end; \ puts fl("foo.txt") & fl("bar.txt")' -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpMqeRRzE65f.pgp Description: PGP signature
Re: I'm looking for a curses one-iner.
Quoth Gary Kline on Sunday, 10 April 2011: > People, > > Can anybody point me to a one-line of curses (it may be *long* and > obscure) that allows keyboard input _without_ hitting /enter. > So, in effect, I couold use the curses getchar() and have things > echoed to stdout without bothering to type Enter. There may be a > matching one-liner to set things back to the way they were upon > exiting the curses program. http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html#RAWCBREAK See also "man raw". I think what you want is raw() and noraw(). -- .o. | Sterling (Chip) Camden | http://camdensoftware.com ..o | sterl...@camdensoftware.com | http://chipsquips.com ooo | 2048R/D6DBAF91 | http://chipstips.com pgpqUwnvTYXfc.pgp Description: PGP signature
Re: Mailing list etiquette (Was: Re: Linksys-E4200 Wireless N-router)
Quoth Chad Perrin on Friday, 08 April 2011: > On Fri, Apr 08, 2011 at 06:42:16PM +0100, Arthur Chance wrote: > > > > section 8.6 starts: > > > > start quote > > Unless there is a good reason to do otherwise, reply to the sender and > > to FreeBSD-questions. > > end quote > > I, for one, am glad this does not happen more often. I really do *not* > need a bunch of duplicates cluttering up my inbox. I have yet to see > anyone complain of not receiving a CC in addition to the mail from the > list. > > I consider "not cluttering up the inboxes of people subscribed to the > list" a "good reason to do otherwise". > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] +1 (I replied, cluttering up inboxes all over freebsdland) -- .o. | Sterling (Chip) Camden | http://camdensoftware.com ..o | sterl...@camdensoftware.com | http://chipsquips.com ooo | 2048R/D6DBAF91 | http://chipstips.com pgp0LfZmUcK7u.pgp Description: PGP signature
Re: Easiest desktop BSD distro
Quoth Chad Perrin on Wednesday, 30 March 2011: > On Wed, Mar 30, 2011 at 02:09:17AM +0200, Polytropon wrote: > > On Tue, 29 Mar 2011 16:56:14 -0700, Chip Camden > > wrote: > > > Quoth Polytropon on Wednesday, 30 March 2011: > > > > > > > > T: (a deep sigh while rolling his eyes) No, that's not the fuel, > > > >that's the tachometer. It is supposed to point at zero if the > > > >car is not started. The fuel indicator is usually to the left > > > >and smaller that the tachometer, and it should have E written > > > >upon it, then a semicircle, then F. > > > > > > > > > > And on a VW, it doesn't say "E" and "F" -- it says "0/1" and "1/1". > > > > That's okay - as long as it doesn't say "1/0" which would > > cause the operating system of the car to crash, and you have > > to send the onboard computer unit to VW Germany in order to > > get it replaced. :-) > > We were speaking in analogies here, where the car *is* the operating > system -- so I think if it said "1/0" it would be more accurate to say > the "car" would crash. > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] It's uncertain whether the car would crash, or run infinitely. -- .o. | Sterling (Chip) Camden | http://camdensoftware.com ..o | sterl...@camdensoftware.com | http://chipsquips.com ooo | 2048R/D6DBAF91 | http://chipstips.com pgpb6c1QEYGxZ.pgp Description: PGP signature
Re: Easiest desktop BSD distro
Quoth Polytropon on Wednesday, 30 March 2011: > > T: (a deep sigh while rolling his eyes) No, that's not the fuel, >that's the tachometer. It is supposed to point at zero if the >car is not started. The fuel indicator is usually to the left >and smaller that the tachometer, and it should have E written >upon it, then a semicircle, then F. > And on a VW, it doesn't say "E" and "F" -- it says "0/1" and "1/1". -- .o. | Sterling (Chip) Camden | http://camdensoftware.com ..o | sterl...@camdensoftware.com | http://chipsquips.com ooo | 2048R/D6DBAF91 | http://chipstips.com pgpjhHYrRMDB7.pgp Description: PGP signature
Re: Easiest desktop BSD distro
Quoth William Brown on Wednesday, 30 March 2011: > > 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. > Yes, but "keep it simple" need not mean "do everything for you." Often, a simpler design means more choices, and more choices means more responsibility and more steps to completion. -- .o. | Sterling (Chip) Camden | http://camdensoftware.com ..o | sterl...@camdensoftware.com | http://chipsquips.com ooo | 2048R/D6DBAF91 | http://chipstips.com pgppvyL57nMjx.pgp Description: PGP signature
Re: Easiest desktop BSD distro
> 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. -- .o. | Sterling (Chip) Camden | http://camdensoftware.com ..o | sterl...@camdensoftware.com | http://chipsquips.com ooo | 2048R/D6DBAF91 | http://chipstips.com pgpRQg722vvD7.pgp Description: PGP signature
Re: searching for a good IDE
Quoth Charlie Kester on Sunday, 27 March 2011: > > Personally, I prefer vim. ;) > +1 Someone will object that the OP asked for an IDE. IMO, vim Integrates quite well with the shell, make, etc. -- .o. | Sterling (Chip) Camden | http://camdensoftware.com ..o | sterl...@camdensoftware.com | http://chipsquips.com ooo | 2048R/D6DBAF91 | http://chipstips.com pgp4AOrL7ttVD.pgp Description: PGP signature
Re: HAL must die!
Quoth David Brodbeck on Thursday, 17 March 2011: > On Wed, Mar 16, 2011 at 5:59 PM, Da Rock > wrote: > >> The problem is it'd have to be someone who's unemployed. ;) Any > >> software company is going to want to patent something that valuable; > >> they'd be failing their shareholders if they didn't. > >> > > > > Except a private company. > > Yeah, but most private software companies are trying to get bought > out by one of the big guys, in which case a good patent portfolio is > helpful. I remember hearing about one company in the 90s that > actually had "be acquired by Microsoft" as part of their long-term > business plan. Nowadays it's "be acquired by Google." Requires less of a patent portfolio, and more creative energy. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpNWqs7s26oO.pgp Description: PGP signature
Re: HAL must die!
Quoth Jerry on Wednesday, 16 March 2011: > On Wed, 16 Mar 2011 06:29:25 + > Matthew Seaman articulated: > > > On 16/03/2011 00:37, Jerry wrote: > > > Microsoft has approximately 90% of the desktop market share with > > > everyone else dividing up the remainder. If you are on a Microsoft > > > platform you use their products. The same applies to other platforms > > > and their utilities. > > > > Microsoft may once have had 90% of the desktop market -- but is that > > still true? Macs seem to be everywhere nowadays. > > > > Also, how important is 'desktop' nowadays, compared to mobile browsers > > and the like? If the iPhone doesn't support Flash, then anyone with > > any sense is going to provide an HTML5 alternative. > > There are numerous sites with purport to state the latest statistics > on OS usage, etc. This is just one that I have used before. I obviously > cannot verify its accuracy. As far as I can tell, it is an impartial > assessment. > > http://www.netmarketshare.com/operating-system-market-share.aspx?qprid=8 > That's interesting and all, but what does such a sampling really tell you? By contrast, if I look at Google Analytics for the OS makeup of visitors to chipstips.com, I get only 50% Windows, 44% Mac, 5% Linux, and 1% Android. (I'm not sure where *BSD gets classified in that scheme). So the number you pay attention to is the number that applies to what you're trying to find out. If you're looking at trends for investment, then you need to look at growth/shrinkage rather than fixed market share. If you're wondering how you should target your applications, then look at usage (and growth) within your target user base (which may or may not include home or small business users, for example). How you obtain those numbers has to vary depending. I don't have hard data to back it up, but it seems to me that an awful lot of Windows users are such merely due to inertia. More technologically inclined users (a growing segment) tend (but not exclusively) to prefer other platforms. At least, that's what I'm seeing among my clients, readers, and associates. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgp101daqce38.pgp Description: PGP signature
Re: HAL must die!
Quoth Robert Huff on Wednesday, 16 March 2011: > Erich Dollansky writes: > > > > The nice thing about standards is that there are so many of them to > > > choose from. > > > > when it comes to screwing, we use - at least outside the USA - > > metric screws. M3, M4 ... M10 ... > > > > We do not care much who manufactured them. > > > > The software industry is still far away from this. > > ... in part, because the definition of a "screw" is not yet > fixed. > Microsoft seems to understand the definition of "screw" well enough for its own purposes. The rest of us just don't like being on the receiving end of it. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpngAATFdmh3.pgp Description: PGP signature
Re: Apple & FreeBSD relationship
Quoth Nerius Landys on Wednesday, 09 March 2011: > This is not a technical question. > > Basically I have some cash sitting around. I'm thinking of investing > part of it with a company that I believe in. Apple came to mind. You > could say that I'd like to judge Apple's moral character before > investing money with them. Does anyone know how Apple reciprocates to > FreeBSD? After all a lot of MacOSX is borrowed from FreeBSD. I am > not seeing Apple's name on this page: > http://www.freebsdfoundation.org/donate/sponsors.shtml . Are there > other ways in which Apple might be reciprocating? > > - Nerius > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Better yet, just send the money to the FreeBSD Foundation. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpdDljrTcbqO.pgp Description: PGP signature
Re: mysql missing from my home-page WordPress....
Quoth Gary Kline on Friday, 04 March 2011: ✂ snip ✂ > it into my www/data/blog/* and extract. My proposed site is > titled "...And miles to go before I sleep"; the blog directory > is, literally "blog". (I posted a question on the forum about > where to change the author info and someone said it was > "www.home/blog/author/authorID" --IIRC. I didn't understand the > answer.) ✂ snip ✂ It's in the MySQL database. You change it by going into the admin panel (www.home/blog/wp-admin) then go to the general settings (on the left sidebar, under "Settings" click "General" or navigate to www.home/blog/wp-admin/options-general.php). ✂ snip ✂ > > I just found the WP-3.1.zip file in my ~/Downloads directory. I > had not looked. On the WP.org forum I claimed to be running 3.1 > rather than 3.0.4. Could have have nosed me somehow? How > tightly integrated are the clients integrated with WordPress? > Another thin I don't quite get is whether this group in a > non-profit [.org] or a for-profit [.com]. Wordpress.org is the site for the open source Wordpress project. It's where you download sources, and where everything's documented. Wordpress.com is a site where you can sign up for a free account that they host. You might want to bookmark http://codex.wordpress.org/Main_Page ✂ snip ✂ -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpWQEvbihQfs.pgp Description: PGP signature
Re: mysql missing from my home-page WordPress....
Quoth Chad Perrin on Friday, 04 March 2011: > On Fri, Mar 04, 2011 at 07:27:44AM -0800, Chip Camden wrote: > > > > I have not had a lot of luck with upgrading from within the admin panel, > > but it is still easy to upgrade by downloading the latest tarball and > > simply extracting it over the installation. Then go into the admin panel > > to see if it requires that you press a button to update the database. > > Done! > > > > Of course, make a backup first. > > . . . and Heaven help you if you had to make any nontrivial changes to > your local install of WordPress to make up for some of its many > deficiencies, and don't have a detailed record of exactly what changes > you made, since I know of no upgrade methodology for WordPress that don't > destroy such changes in a way that makes it effectively impossible to > just apply a patch to reintroduce them. WordPress developers apparently > like to substantially change the way things look in all the core files > (thus breaking patches made from earlier versions) without substantively > changing the way things work or the readability of the code. > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Yes, I've been bitten by that. Nowadays I confine all of my customizations to plugins or theme files, os I can always drop in their latest version and then check to see if they broke the plugins somehow (which has happened on occasion). -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgp0HDrqpcqog.pgp Description: PGP signature
Re: mysql missing from my home-page WordPress....
Quoth Zbigniew Szalbot on Friday, 04 March 2011: > Hello, > > > Thanks duly noted to everyone. I was beginning to wonder if I > > had lost what mind I've got left! Not used to losing my two trial > > blog, (1), and beyond that, being dumbfounded at how messy it > > may be to keep WP "current." (2) > > It seems to me you are making you life more difficult with WP than it > needs to be. Keeping WP current is a piece of cake, and you do not > need to do it via ports. WP has built-in ftp capabilities and once you > provide it with proper credentials, upgrading is as easy as clicking > the upgrade button from within WP admin interface. This way you can > keep multiple WP installations and easily maintain them. :) > I have not had a lot of luck with upgrading from within the admin panel, but it is still easy to upgrade by downloading the latest tarball and simply extracting it over the installation. Then go into the admin panel to see if it requires that you press a button to update the database. Done! Of course, make a backup first. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpdflAWmvQoM.pgp Description: PGP signature
Re: Backtick versus $()
Quoth Andres Perera on Thursday, 24 February 2011: > > > > That wasn't me. I could make some insulting references to failings of > > yours that resulted in this mistake on your part, but I really do not > > think that's necessary. It is much more fun to just watch you > > self-destruct. > > it doesn't matter if it wasn't you > > if you're all retarded then you are all effectively the same person > I wonder what Andres will think of this thread if he ever gets around to re-reading it after recovering from his meth hangover tomorrow. > > > >> > >> thanks > > > > I wonder if Sterling Camden will offer a "you're welcome" to your hostile > > reception. > > You're welcome, Andres! Now go sleep it off. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpF1jhAlxX9Q.pgp Description: PGP signature
Re: Backtick versus $()
Quoth Andres Perera on Thursday, 24 February 2011: [snip] > > no, let's start by looking at the SOURCE CODE REPOSITORY instead of WIKIPEDIA > you DROOLING BUFFOON > [snip] > if you disagree then you are retarded and the exchange concludes > [snip] Resorting to personal insults doesn't help make your case. There is fertile ground for discussion here if you'd only look for it. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpmYuA46wh62.pgp Description: PGP signature
Re: Backtick versus $()
Quoth Chad Perrin on Thursday, 24 February 2011: > On Thu, Feb 24, 2011 at 03:32:04PM -0800, Chip Camden wrote: > > Quoth Gary Gatten on Thursday, 24 February 2011: > > > > > > Everyone is wrong! "pfmsh" is the best at everything, period. It > > > does everything you can possibly think of today and tomorrow. It > > > doesn't require any upgrades, ever. It's 100% secure. It doesn't > > > use any memory or other resources, $hit, it doesn't even need to be > > > installed; it just "magically" works. > > > > > > There you have it. > > > > That one doesn't seem to be in ports. > > In case you aren't just being sarcastic, I think "pfmsh" is a reference > to "pure fucking magic shell". > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Yeah, I got that. Sorry my contributions to the topic are mostly flippant. In my defense, I thought about responding to the "backslash orgy" comment along the lines of "nobody mentioned orgies -- count me in!" But then I though better of it. Doh! -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgptnJEZiLkks.pgp Description: PGP signature
Re: Backtick versus $()
Quoth Gary Gatten on Thursday, 24 February 2011: > Everyone is wrong! "pfmsh" is the best at everything, period. It does > everything you can possibly think of today and tomorrow. It doesn't require > any upgrades, ever. It's 100% secure. It doesn't use any memory or other > resources, $hit, it doesn't even need to be installed; it just "magically" > works. > > There you have it. > That one doesn't seem to be in ports. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgprb9B7ZgLRH.pgp Description: PGP signature
Re: Backtick versus $()
Quoth Matthew Seaman on Thursday, 24 February 2011: > On 24/02/2011 22:39, Chip Camden wrote: > > I suppose I could change root to /bin/sh, but that doesn't even > > have command recall. > > set -o emacs > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > JID: matt...@infracaninophile.co.uk Kent, CT11 9PW > Thanks for that -- though I'll go with: set -o vi TYVM. I didn't know /bin/sh supported those modes. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpg5qBbtjLy8.pgp Description: PGP signature
Re: Backtick versus $()
Quoth Chad Perrin on Thursday, 24 February 2011: > > What we have not yet determined is: > > 1. Is it a good idea to replace (t)csh? > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Though I dislike the OP's dismissal of backticks, I must admit that I would prefer that the standard shell be at least Bourne-compatible. I use csh for root for all the reasons that you shouldn't change your root shell. I suppose I could change root to /bin/sh, but that doesn't even have command recall. I don't know how many times I've keyed in a nicely composed off-the-cuff conditional only to have it fall flat. I have to remind myself to start zsh first when working as root, or start getting used to using toor instead, or just always use sudo. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgp43JC0ndmoS.pgp Description: PGP signature
Re: bash can not find most of my commands
Quoth David Brodbeck on Tuesday, 22 February 2011: > On Tue, Feb 22, 2011 at 12:39 PM, Chad Perrin wrote: > > Just do us all a favor; don't write code in bash. What's with all the bash bashing? Sorry, couldn't resist. > > Yeah, I try to avoid bash-specific syntax unless it's for one-off > scripts. csh suffers the same kinds of problems; I only write csh > code under extreme duress, like when forced to maintain the > system-wide csh.login script. ;) At least sh scripts will execute correctly under bash -- they don't always under csh/tcsh. I like zsh for a command-line shell, but when writing scripts for general usage I stick with the sh-compatibile subset of capabilities, and I enforce that on myself with the #!/bin/sh shebang. If I need more than what that can gracefully do, I usually run to the arms of Ruby. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpISYvMSTcjg.pgp Description: PGP signature
Re: revised pager.....
Quoth Gary Kline on Sunday, 20 February 2011: > THis is to the entire list, mostly to Chip. It is o8.rb, my > very slightly tweaked version of what you ma/// rather, what i > found and began messing with a couple, three hours ago. > > I searched++ and could not find the C equivalent of > "if counter % N == 0" in ruby. For some reason, use of parens > in ruby seems to be discouraged. Anyway, I would have coded that > ruby line as > > if ( counter % 15) == 0 > > but didn't want to risk it since i don't know ruby. > > Anyway, o8.rb included. This version, using the "[][][][][]" to > emulate a bar, makes reading a reasonably-sized bunch of text > much easier. > > Thanks again for your help. > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix > Try this version instead. There's no need to find the % 15, we're already paging on the specified number. #!/usr/bin/env ruby require 'optparse' def banner print "\n[][][][][][][][][][][][][][][][][][][][]\n\n" end pagesize = 15 optparse = OptionParser.new do |opts| opts.banner = 'usage: npg [-n pagesize] file...' opts.on('-n', '--numlines pagesize', 'Specify page size in number of lines') do |n| pagesize = n.to_i end end begin optparse.parse! rescue OptionParser::InvalidOption, OptionParser::MissingArgument => e puts e puts optparse exit 1 end banner loop do pagesize.times do if line = gets puts line else banner exit end end banner print "More..." system "stty raw" STDIN.getc system "stty -raw" banner end -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpUYxwTqYAEN.pgp Description: PGP signature
Re: variable line-display pager?
Quoth Gary Kline on Sunday, 20 February 2011: > On Sun, Feb 20, 2011 at 08:44:10AM -0800, Chip Camden wrote: > > Quoth Gary Kline on Sunday, 20 February 2011: > > > > > > > > Yes, this is much nicer that the more -15 that messes up the > > > text with it's [MORE...] white within black. But here you can't > > > just tap the spacebar; is there a way around that and > > > turning it into a space...? > > > > > > Also, can you insert > > > > > > "^+++" > > > > > > text > > > > > > "^+++" > > > > > > top And bottom? Pretty sure that the user would have the large > > > font to read aloug with that espeak read to hijm. Having the > > > top/bottom delimiters might make scanning the text easier. > > > > > > (It messed up with more. > > > > > > Anyway, thanks foe something that actually works, :_) > > > > > > gary > > > > > > > > > > > > > > > -- > > > Gary Kline kl...@thought.org http://www.thought.org Public Service > > > Unix > > >Journey Toward the Dawn, E-Book: http://www.thought.org > > > The 7.98a release of Jottings: http://jottings.thought.org > > > > > Better? > > > The code does what you tell it to. It puts the +++ string > before the output and following the EOF. I was thinking of > having: > > +++ > 15 lines of text > +++ > > After espeak speaks these lines, the user hits the spacebar and > another > > +++ > 15 lines > +++ > > until EOF. I know zero ruby and am still learhnning python. > Thanks much for getting me going with ruby! FRom here on it is > just logic, :_) > > gary > > I'm guessing you can see where to make that change, but let me know if you need help. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpUzoANLb04F.pgp Description: PGP signature
Re: variable line-display pager?
Quoth Gary Kline on Sunday, 20 February 2011: > > Yes, this is much nicer that the more -15 that messes up the > text with it's [MORE...] white within black. But here you can't > just tap the spacebar; is there a way around that and > turning it into a space...? > > Also, can you insert > > "^+++" > > text > > "^+++" > > top And bottom? Pretty sure that the user would have the large > font to read aloug with that espeak read to hijm. Having the > top/bottom delimiters might make scanning the text easier. > > (It messed up with more. > > Anyway, thanks foe something that actually works, :_) > > gary > > > > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix >Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.98a release of Jottings: http://jottings.thought.org > Better? #!/usr/bin/env ruby require 'optparse' pagesize = 15 optparse = OptionParser.new do |opts| opts.banner = 'usage: npg [-n pagesize] file...' opts.on('-n', '--numlines pagesize', 'Specify page size in number of lines') do |n| pagesize = n.to_i end end begin optparse.parse! rescue OptionParser::InvalidOption, OptionParser::MissingArgument => e puts e puts optparse exit 1 end puts "^+++" loop do pagesize.times do if line = gets puts line else puts "^+++" exit end end print "More..." system "stty raw" STDIN.getc system "stty -raw" end -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpWq3Crxeb85.pgp Description: PGP signature
Re: variable line-display pager?
Quoth Robert Bonomi on Sunday, 20 February 2011: > > From owner-freebsd-questi...@freebsd.org Sat Feb 19 18:28:20 2011 > > Date: Sat, 19 Feb 2011 16:23:00 -0800 > > From: Gary Kline > > To: FreeBSD Mailing List > > Cc: > > Subject: Re: variable line-display pager? > > > > On Sat, Feb 19, 2011 at 03:52:40PM -0800, Chip Camden wrote: > > > Quoth Gary Kline on Saturday, 19 February 2011: > > > > Need help findind a way of using existing unix utilities to diplay > > > > chunks of N lines of a text files. Here N <= the number of lines in > > > > the file. > > > > > > > > For instance, say that my xterm/console/"Konsole" is 80x53 lines. My > > > > text file is around 200 lines long and I want to use more or less or > > > > some GUI pager to display only 15 lines at one time. Tapping the > > > > space bar would display another 15 lines and so on until EOF. Is > > > > there a way of doing with with flags of the existing /usr/bin/less or > > > > is there some other pager that I can build? > > > > > > > > thanks, > > > > > > > > gary > > > > > > > > > > > > > > > > -- > > > > Gary Kline kl...@thought.org http://www.thought.org Public > > > > Service Unix > > > >Journey Toward the Dawn, E-Book: http://www.thought.org > > > >The 7.98a release of Jottings: http://jottings.thought.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" > > > > > > The -z option is supposed to do this: > > > > > > less -z15 file.txt > > > > > > But it appears to work only on the second and successive pages. > > > > > > > > Oh. So _that's_ why. I tried less -m 15 [because the man pages sais > > z=N; i just tried what you did with -z15. Full page first time, 15 > > lines each spacebar thereafter. > > > > Zank you, Sir Chip.. Anybody else? I'm loathe to use anything gui, but > > here's where I'll be happy w ith something GUI THat i can squeeze my > > "15" or small-n lines' worth into. Can'y believe that there is nothing > > for all theses years I mean, geewhiz! Any idea where I Should look > > in ports or how to google this? > > > > how hard can it be? > > stty rows=15; less filename That's the V8 answer, but the syntax needs correcting: stty rows 15; less filename Works with 'more', too. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpesJDVzfhqP.pgp Description: PGP signature
Re: variable line-display pager?
Quoth Chip Camden on Saturday, 19 February 2011: > Quoth Gary Kline on Saturday, 19 February 2011: > > On Sat, Feb 19, 2011 at 03:52:40PM -0800, Chip Camden wrote: > > > Quoth Gary Kline on Saturday, 19 February 2011: > > > > Need help findind a way of using existing unix utilities to diplay > > > > chunks of N lines of a text files. Here N <= the number of lines in > > > > the file. > > > > > > > > For instance, say that my xterm/console/"Konsole" is 80x53 lines. > > > > My text file is around 200 lines long and I want to use more or less > > > > or some GUI pager to display only 15 lines at one time. Tapping the > > > > space bar would display another 15 lines and so on until EOF. Is > > > > there a way of doing with with flags of the existing /usr/bin/less > > > > or is there some other pager that I can build? > > > > > > > > thanks, > > > > > > > > gary > > > > > > > > > > > > > > > > -- > > > > Gary Kline kl...@thought.org http://www.thought.org Public Service > > > > Unix > > > >Journey Toward the Dawn, E-Book: http://www.thought.org > > > > The 7.98a release of Jottings: http://jottings.thought.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" > > > > > > The -z option is supposed to do this: > > > > > > less -z15 file.txt > > > > > > But it appears to work only on the second and successive pages. > > > > > > > > Oh. So _that's_ why. I tried less -m 15 [because the man pages > > sais z=N; i just tried what you did with -z15. Full page first > > time, 15 lines each spacebar thereafter. > > > > Zank you, Sir Chip.. Anybody else? I'm loathe to use anything gui, > > but here's where I'll be happy w ith something GUI THat i can > > squeeze my "15" or small-n lines' worth into. Can'y believe that > > there is nothing for all theses years I mean, geewhiz! > > Any idea where I Should look in ports or how to google this? > > > > > > gary > > > > > > > > -- > > > Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F > > > http://chipsquips.com | http://camdensoftware.com | > > > http://chipstips.com > > > > > > > > -- > > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix > >Journey Toward the Dawn, E-Book: http://www.thought.org > > The 7.98a release of Jottings: http://jottings.thought.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" > > Is this sort of what you're looking for? > > #!/usr/bin/env ruby > require 'optparse' > > pagesize = 15 > > optparse = OptionParser.new do |opts| > opts.banner = 'usage: npg [-n pagesize] file...' > > opts.on('-n', '--numlines pagesize', 'Specify page size in number of > lines') do |n| > pagesize = n.to_i > end > > end > > begin > optparse.parse! > rescue OptionParser::InvalidOption, OptionParser::MissingArgument => e > puts e > puts optparse > exit 1 > end > > loop do > pagesize.times do > if line = gets > puts line > else > exit > end > end > print "More..." > STDIN.getc > end > > -- > Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F > http://chipsquips.com | http://camdensoftware.com | http://chipstips.com Oops -- code corrected above. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpvMZiiSAqUb.pgp Description: PGP signature
Re: variable line-display pager?
Quoth Gary Kline on Saturday, 19 February 2011: > On Sat, Feb 19, 2011 at 03:52:40PM -0800, Chip Camden wrote: > > Quoth Gary Kline on Saturday, 19 February 2011: > > > Need help findind a way of using existing unix utilities to diplay > > > chunks of N lines of a text files. Here N <= the number of lines in > > > the file. > > > > > > For instance, say that my xterm/console/"Konsole" is 80x53 lines. > > > My text file is around 200 lines long and I want to use more or less > > > or some GUI pager to display only 15 lines at one time. Tapping the > > > space bar would display another 15 lines and so on until EOF. Is > > > there a way of doing with with flags of the existing /usr/bin/less > > > or is there some other pager that I can build? > > > > > > thanks, > > > > > > gary > > > > > > > > > > > > -- > > > Gary Kline kl...@thought.org http://www.thought.org Public Service > > > Unix > > >Journey Toward the Dawn, E-Book: http://www.thought.org > > > The 7.98a release of Jottings: http://jottings.thought.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" > > > > The -z option is supposed to do this: > > > > less -z15 file.txt > > > > But it appears to work only on the second and successive pages. > > > > Oh. So _that's_ why. I tried less -m 15 [because the man pages > sais z=N; i just tried what you did with -z15. Full page first > time, 15 lines each spacebar thereafter. > > Zank you, Sir Chip.. Anybody else? I'm loathe to use anything gui, > but here's where I'll be happy w ith something GUI THat i can > squeeze my "15" or small-n lines' worth into. Can'y believe that > there is nothing for all theses years I mean, geewhiz! > Any idea where I Should look in ports or how to google this? > > > gary > > > > > -- > > Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F > > http://chipsquips.com | http://camdensoftware.com | http://chipstips.com > > > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix >Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.98a release of Jottings: http://jottings.thought.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" Is this sort of what you're looking for? #!/usr/bin/env ruby require 'optparse' pagesize = 15 optparse = OptionParser.new do |opts| opts.banner = 'usage: npg [-n pagesize] file...' opts.on('-n', '--numlines pagesize', 'Specify page size in number of lines') do |n| pagesize = n end end begin optparse.parse! rescue OptionParser::InvalidOption, OptionParser::MissingArgument => e puts e puts optparse exit 1 end loop do pagesize.times do if line = gets puts line else exit end end print "More..." STDIN.getc end -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgp7vylFQRVHA.pgp Description: PGP signature
Re: variable line-display pager?
Quoth Gary Kline on Saturday, 19 February 2011: > Need help findind a way of using existing unix utilities to diplay > chunks of N lines of a text files. Here N <= the number of lines in > the file. > > For instance, say that my xterm/console/"Konsole" is 80x53 lines. > My text file is around 200 lines long and I want to use more or less > or some GUI pager to display only 15 lines at one time. Tapping the > space bar would display another 15 lines and so on until EOF. Is > there a way of doing with with flags of the existing /usr/bin/less > or is there some other pager that I can build? > > thanks, > > gary > > > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix >Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.98a release of Jottings: http://jottings.thought.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" The -z option is supposed to do this: less -z15 file.txt But it appears to work only on the second and successive pages. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgp3U1ULG9Nu3.pgp Description: PGP signature
Re: Best Laptop to buy for Freebsd Without OS?
Quoth Brian Callahan on Thursday, 17 February 2011: > > 3) Buy a machine with the base Win 7 Home installed, decline the license, > > and request a refund. > > Be prepared to waste significant time on this, but it can be done. > > > > IANAL, but I have been informed by several lawyers that you cannot do > this. The Windows 7 EULA, when preinstalled on a machine, states that > the agreement is between you and the company selling you the computer, > and "By using the Software, you accept these terms. If you do not > accept them, do not use the software. Instead, contact the > manufacturer or installer to determine its return policy. You must > comply with that policy, which might limit your rights or require you > to return the entire system on which the software is installed." > > The major OEMs will say "OK, then you must return the computer," and > you have no option but to comply. This is true for the USA. > > If you want no-OS laptops, try Puget Systems www.pugetsystems.com or > PCs for Everyone www.pcsforeveryone.com > > HTH > > ~Brian > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Those links both sport some pretty expensive prices. My comparable ASUS cost about half that, and came with Windows 7 installed (which I simply erased). Are those prices for real? -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpE3tGwuIVeS.pgp Description: PGP signature
Re: Best Laptop to buy for Freebsd Without OS?
Quoth Chuck Swiger on Thursday, 17 February 2011: > Hola, Jorge-- > > On Feb 17, 2011, at 10:43 AM, Jorge Biquez wrote: > > I am evaluating to buy a new laptop for using it only with Freebsd. I know > > in the website mention some options. Thing is that here the most powerful > > ones (I3, I5 I7) are sold ONLY with Windows installed and that increase the > > value of the equipment. I want the best option at a nice price (could be > > Intel or AMD) the ide is to have it as my main machine and when I need > > Linux or Windows have them there running under VirtualBox. The use will be > > mainly for web development. > > > You have some choices: > > 1) Find a vendor offering to sell a machine with Linux preinstalled. >At times in the past, IIRC, both HP and Dell used to do this. > > 2) Call up a sales guy from your preferred vendor and ask to purchase a bare > machine without OS. >If they refuse to sell you one, choose another vendor. > > 3) Buy a machine with the base Win 7 Home installed, decline the license, and > request a refund. >Be prepared to waste significant time on this, but it can be done. > > Regards, > -- > -Chuck > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Until Konstantin gets his work on GEM finished, don't buy anything that uses the Intel Ironlake graphics chip (usually called simply "Intel Integrated HD Graphics"). The Intel driver for Xorg won't work, and you'll be limited to vesa at 1024x768. Others on this list may perhaps be able to recommend their favorite graphics option. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpOpxYSjynZP.pgp Description: PGP signature
[[FreeBSD-Announce] FreeBSD Foundation Announces New Project]
- Forwarded message from Deb Goodkin - > Date: Wed, 16 Feb 2011 10:35:23 -0700 > From: Deb Goodkin > To: freebsd-annou...@freebsd.org > Subject: [FreeBSD-Announce] FreeBSD Foundation Announces New Project > The FreeBSD Foundation is pleased to announce that Konstantin Belousov > has been awarded a grant to > implement support of GEM, KMS, and DRI for Intel Drivers. This project > is being co-sponsored by iXsystems. W00t! Konstantin, please let me know if I can be of any help. I have 8-STABLE on an Intel i3 M 350 with integrated HD graphics that I'll gladly move to 9-CURRENT if I can help this effort in any way. Thanks to the Foundation for funding this! Time to go contribute again. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpNxlVzAwQ5c.pgp Description: PGP signature
Re: google browser?
Quoth four.harris...@googlemail.com on Wednesday, 16 February 2011: > Sorry for top-posting - my 'phone makes doing it properly difficult. > > There is a similar extension to Vimperator for Chromium, but it's name > escapes me (Vimeo?). Last time I checked though it didn't work on the FreeBSD > version. > > After some time with Vimperator now, I find myself futilely bashing 'o' and > 'j' and 'H' when browsing using IE on my works machine. > > Peter Harrison > www.4harrisons.blogspot.com > > It's called Vimium, and Chad Perrin figured out how to get it working on FreeBSD. But Vimium isn't Vimperator, and chromium disables extensions when viewing the home page or local files. So, for instance, vimium's key bindings don't work when viewing an HTML attachment to an email. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpHg7S9i84s0.pgp Description: PGP signature
Re: google browser?
Quoth Devin Teske on Wednesday, 23 July 2008: > On Feb 16, 2011, at 12:39 AM, Mihai Donțu wrote: > > > On Wednesday 16 February 2011 09:09:44 Gary Kline wrote: > >> Anybody know how to use this "Chrome"? I don't see any places to > >> plug in players ... like vlc, etc. Can't find and back/Forward > >> icons, nothing like firefoxI give it all three thumbs > >> down. > >> > >> Would still like to see GOOG have its own "twitter" and "facebook" > >> tho. > >> > >> Anybody else have the browser on FBSD?? > > > > I haven't tried it, but maybe it works under the FreeBSD Linux emulation. I > > found some build hints here too: http://wiki.freebsd.org/Chromium , however > > it > > definitely needs some love from a dedicated FreeBSD developer. > > > > I use Google Chrome (or Chromium - depends on how bleeding edge I want to > > be) > > on Linux. I'm amazed by the speed with which the project progresses and the > > incredible feel of the browser itself. > > I've heard certain noises on this list that the current port-maintainer of > Chromium has dropped the ball (not my words, just paraphrasing the sentiment > from the below thread). > > http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=890197+893402+/usr/local/www/db/text/2010/freebsd-questions/20101231.freebsd-questions > > The OP's concerns about security vulnerabilities (though voiced over 30 days > ago) still appear to be of concern (that is to say, nothing appears to have > changed except some _minor_ work on January 18th this year by rene). > > However, Freshports still has a less-than-favorable status for this port: > http://www.freshports.org/www/chromium/ > > Now... that being said, I have a co-worker that is running Chromium every day > on FreeBSD-8.1 and he's very happy with it. Though, given the above > consideration, both him and I have decided to _not_ deploy this browser in > production (at least until we can get some love on those vulnerabilities). > > So, I guess I'd like to throw the query out there... > > If you had to pick between Firefox and Chrome for distribution to >1000 > FreeBSD systems running 8.1 in production... which would you choose? We're > heavily leaning toward Firefox, but would love to hear other's opinions of > Chrome (if it requires Linux emulation, that may be a death-knell, leaving > Firefox the only real choice???). The chromium port does not require Linux emulation. Generally, I prefer chrome over firefox from the standpoint of performance and reliability, but the security issues in the port have put me off it. Meanwhile, I've become rather dependent on the Vimperator and GreaseMonkey extensions for Firefox, so I'm unlikely to change back to chrome even when its security issues are finally sorted. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpuch5MlEUp6.pgp Description: PGP signature
Re: script help
Quoth Jack L. Stone on Monday, 14 February 2011: > Hello folks: > > No doubt this will be easy for those with scritping abilities. > > I have a gazillion files by the same name and each contains the same line > requiring the same change. But the problem is that they are in many > different directories on a server with numerous domains. While I could > handle the change using a single directory within my abilities, I'm unsure > how to do a search and replace throughout the many domains and their > directories. Don't want to mess up. Here's what I'm trying to do: > > # find all of the same filenames (copyright.htm) and then replace the year > 2010 with 2011 in each file. Once I have a working script, I should be able > to add it as a cron job to run on the first day of each new year. > > Any help appreciated. > > Thanks! > Jack > > (^_^) > Happy trails, > Jack L. Stone > > System Admin > Sage-american > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" find /upper-dir -name copyright.htm -exec sed -i '' -e "s/2010/2011/g" {} \; -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpNijFWKcFpE.pgp Description: PGP signature
Re: problem when including readline.h
Quoth Robert Huff on Sunday, 13 February 2011: > Chip Camden writes: > > > > I'm writing a C program which, for various reasons, has the > > > warning level turned _way_ up. > > > I'm now getting this: > > > > > > /usr/include/readline/readline.h:336: warning: redundant redeclaration > > of 'rl_make_bare_keymap' > > > /usr/include/readline/keymaps.h:74: warning: previous declaration of > > 'rl_make_bare_keymap' was here > > > > > > and more like it. > > > Other than turning down the warning level, what's wrong and how > > > do I fix it? > > > > Both keymaps.h and readline.h declare rl_make_bare_keymap as an external > > function. Perhaps you shouldn't be including both files? > > Except I don't. The include list: > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > No second "keymap.h" visible. > > > Robert Huff > Ah -- readline.h includes keymaps.h. You're SOL. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpkyuFu4hGnI.pgp Description: PGP signature
Re: problem when including readline.h
Quoth Robert Huff on Sunday, 13 February 2011: > I'm writing a C program which, for various reasons, has the > warning level turned _way_ up. > I'm now getting this: > > /usr/include/readline/readline.h:336: warning: redundant redeclaration of > 'rl_make_bare_keymap' > /usr/include/readline/keymaps.h:74: warning: previous declaration of > 'rl_make_bare_keymap' was here > > and more like it. > Other than turning down the warning level, what's wrong and how > do I fix it? > > Respectfully, > > > Robert Huff > Both keymaps.h and readline.h declare rl_make_bare_keymap as an external function. Perhaps you shouldn't be including both files? -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpuscF2EbCUX.pgp Description: PGP signature
Re: FreeBSD and SSD drives
Quoth Bruce Cran on Sunday, 13 February 2011: > On Sun, 13 Feb 2011 09:42:54 -0700 > Chad Perrin wrote: > > > There's no use pretending MS Windows never has issues with the > > efficacy of its autoconfiguration. Most of us have used that OS > > quite a lot, and know that problems arise -- and that, unlike with > > open source OSes, it's actually fairly common to have no recourse at > > all when something does not work. > > A good example is the need to edit the registry to improve network > performance - http://support.microsoft.com/kb/321098 . Another is that > in order to disable auto-run you need to know to type "gpedit.msc" in > the "Run" window to load the Group Policy Editor and navigate to the > settings. > > -- > Bruce Cran You've touched on the basic philosophical difference between the Microsoft and Unix approaches. The former seeks to make usual activities easy and obvious, at the expense of making unusual activities downright difficult or impossible. Unfortunately, one person's unusual is another's everyday. The latter (Unix), OTOH, seeks greater consistency of interface, at the expense of a significant user learning experience just to get started. Personally, I prefer the latter, because that learning builds on itself and generates enormous power to overcome further obstacles and create new things. But for users who do not wish to learn anything and who want to use their computer the same way they use their DVD player or their electric toothbrush, the Microsoft Way fits the bill. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgptPp92J4rk0.pgp Description: PGP signature
Re: FreeBSD and SSD drives
Quoth Chad Perrin on Sunday, 13 February 2011: > > OpenOffice.org and LibreOffice offer functionality MS Office does not, > just as MS Office offers functionality they do not. Different people > have different needs, and those office suites serve slightly different > needs. On the other hand, OpenOffice.org and LibreOffice encompass more > MS Office functionality than MS Office does of OpenOffice.org and > LibreOffice functionality. Since it became a household term (at least in > the open source community), for instance, OpenOffice.org has supported a > wider range of MS Office documents than MS Office, thanks to the fact > that despite its much-ballyhooed adherence to "backwards compatibility", > MS Office has tended to (intentionally?) break file format compatibility > between release versions. > Hey, I just found out that libreoffice can open all those old .WRI files that MS Office no longer recognizes! Thanks for the tip! -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgp3Y3QPOJNHS.pgp Description: PGP signature
Re: Stuck
Quoth ill...@gmail.com on Sunday, 13 February 2011: > On 13 February 2011 13:53, Rem P Roberti wrote: > > On 02/13/11 09:01, Robert Huff wrote: > >> > >> Rem Roberti writes: > >> > >>> This is a new one for me. I decided to do a manual update on my > >>> 8.1 box, starting with csup. Buildworld went fine, as did > >>> buildkernel. However, when I tried to install the new kernel > >>> installkernel choked with an error message telling me that it > >>> could not proceed because the root partition was full. What! I > >>> did a df and sure enough the root partition was overloaded. When > >>> I installed the system I used sysinstalls recommended sizes for > >>> the root partion, which is around 10G. Anyway, when I rebooted, > >>> the system rebooted into single user mode, and that is presently > >>> where I stand. I have no idea how to proceed at this point, and > >>> would appreciate any help in fixing this. Of course, I smell a > >>> newbie type error in all of this, but haven't quite figured out > >>> where I went wrong. > >> > >> Start with this: > >> > >> du -x / | sort -nr | head -n 30 > >> > >> This will give you the largest directories; if any of them > >> don't look right - investigate further. > >> (For comparison: the root directory on this machine is 2 > >> gbytes, of which I use 1.1. 10 gbytes is a lot of space > > > > I completely misspoke, having confused the hard drive in question with > > another box. This drive is a 40G drive, of which 500MB was allotted for > > root. When I ran your command I noticed the /boot/kernel.old was very > > large, so I moved the whole thing over to my home directory, which finally > > allowed me to boot the computer normally. This was an intuitive move, and > > probably not that kosher, but it worked. But where do we go from here? > > > > Remove all the *.symbols files (if you're not going > to be debugging). > > Build with "makeoptions DEBUG=-g" commented out > of your kernel config. > > (my root filesystem has 70M used. On amd64, no less) > I have INSTALL_NODEBUG=yes in my make.conf, which someone on this list advised. Apparently that still builds the symbols but doesn't install them in /boot/kernel, saving a ton of space. This will prevent you running into this same problem the next time you build. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgprXJHgVes3X.pgp Description: PGP signature
Re: Any package for surveys?
Quoth elbbit on Thursday, 27 January 2011: > On 27/01/11 17:04, Bill Moran ... > > Thank you for taking the time to reply Bill. I am glad you challenge > me. Someone needs to! > > > In response to elbbit : > >> On 27/01/11 14:41, Andrew McGlashan wrote: > >>> Hi Simon, > >> Thanks for taking the time to reply Andrew. > >> > >>> elbbit wrote: > >>>> I held off writing back because I have just launched a new > >>>> website at: http://www.tibble.net/ > >>>> > >>>> Wait! Don't go! This isn't spam! Please! Just listen! > >>> Yes, it looks very spammy to me > >> I sent similar emails to other lists and was promptly scalded for > >> being so uncouth. I thank those who encourage me to stop spamming > >> for teaching me humility. However, I think the importance of > >> global self awareness is too important to worry about whether or > >> not we like to know about the problems. This is the equivalent of > >> a hit-and-run, in my opinion. I am here to stay, I am not going > >> anywhere and the world will become self-aware in my presence. It > >> is why I have been born. > > > > You are a delusion dipshit, and a bad liar. > I forgive you. > > > If you feel so righteous about your cause, why did you hijack another > > thread without changing the subject? > With all the respect that is due to you, and all others who frequent > these mailing lists, I feel the topic of global voting is too important > to worry about whether or not my particular message fits into a defined > category. The survey thread I chose to reply to is the closest match I > could find that was both recent and relevant to OUR cause. By "our" I > mean all people in the world, not just those involved with me. > > To highlight some facts here: > a) original poster asked about conducting a survey > b) original poster wants to gather the opinion using the internet > c) I am conducting a survey of all people on all views, sorted by most > active vote/talk thread > d) my survey is being conducted on the internet > > > It's because you don't really care if anyone on the list reads it, > Naturally, when you understand the significance of everyone being able > to vote, and then being able to change their vote at any time, and being > able to vote on anything - completely unrestricted, unmoderated, > clear-cut decision. Take a second to imagine in your mind, and call it > fiction if you will, that it is wholly possible that all people can vote > in this way. Now, seeing as we are dealing with fiction, and made up > ideas, you must remember that money is a made up idea. Someone thought > it up. Let's continue... > > > you just want the message to be in the multitude of web archives that > > archive this mailing list so you'll have more links back to your page > > so search engines are more likely to rank you highly. I expect > > you've got some scheme in mind that eventually involves making > > yourself money once you've got enough traffic. > I am not hostile. I care. I love. Yes, you read me right. I have > nothing but love for you all, and whilst you might think I am going to > fail without the use of money - I think you will find that there is a > growing trend where people are starting to question why we have all > believed in money. Money is the religion of today, if you open your > eyes to see it for yourself. I am not here to make money. I am here to > see what the world decides for itself. > > > I sent a complaint to your ISP about the spamming. If enough other > > people do the same, you'll find your site shut down eventually. I > > wish you poor luck and misery. > I forgive you [again] for thinking that I am hostile. I am not hurting > anybody. No blood is being spilt because I am "asking for your > opinion." Go ahead and annoy the ISP if you want, but if they shut > Tibble down it will just appear somewhere else, maybe even being written > by someone new. > > I am on the outside of the matrix. You have no idea how great it is out > here. Unplug, and free your mind, just like Neo does in the famous > movie. Only, try to understand, the real fiction we deal with is money > and those who make it. They use it to control you. Do your own > research. Don't believe the crazy man - because I am crazy...or am I? > > Simon > > > -- > > elbbit As I was reading this, I couldn't help picturing the speaker as King Julian from the Madagascar movies. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpwu8xP0MeNo.pgp Description: PGP signature
Re: Any package for surveys?
Quoth elbbit on Thursday, 27 January 2011: > > Wait! Don't go! This isn't spam! Please! Just listen! > Saying it's not spam doesn't make it not spam. > > Please forward this message to everyone, even if you know full well they > probably won't read or understand it. This message must travel the > matrix in order to flourish. > This is a call to join your spam army. No thanks. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpN8GvkTX9Mu.pgp Description: PGP signature
Re: follow up...
Quoth Chad Perrin on Sunday, 23 January 2011: > On Sun, Jan 23, 2011 at 06:18:37AM -0500, Jerry wrote: > > On Sun, 23 Jan 2011 15:31:40 +1000 > > Da Rock articulated: > > > > > Actually the consensus on this list _is_ to hit reply all- some only > > > get digest or are not even subscribed, so they won't receive posts > > > only posted to the list. Unfortunately that can mean you can continue > > > receiving replies not necessarily directly to your own posts. > > > > consensus > > > > Meaning: > > : a general agreement about something : an idea or opinion that is > > shared by all the people in a group [singular] > > > > OK, when was the vote on this issue taken? I must have been out of > > town that week. > > You and me both. I loathe getting multiples of emails. I'm on the list, > so I already get a copy. I have no problem doing a group reply by > request when someone's not on the list or only gets digest mails, though, > or getting duplicates as a side-effect of that -- again, *by request*. > > Just spamming people with duplicates all the time for no good reason is a > mite annoying, though. If I was aware of a vote, I would have voted > "list reply". > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] +1 -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpE2F6Qa8qHq.pgp Description: PGP signature
Re: harddrive encryption
Quoth Roland Smith on Tuesday, 18 January 2011: > On Mon, Jan 17, 2011 at 10:05:53PM -0700, Modulok wrote: > > On 1/17/11, Roland Smith wrote: > > > On Mon, Jan 17, 2011 at 09:30:39PM +0100, Alokat wrote: > > >> Hi, > > >> > > >> is it possible to encrypt my full harddrive (excluding /boot) during a > > >> freebsd installation. Or do I have to do this after the installation > > >> manually? > > > > > > Currently you have to do it manually afterwards. > > > > > > Personally, I would not bother encrypting the OS data; there is nothing > > > secret > > > there, and it does have a performance impact. Plus it would provide ample > > > material for a known-plaintext attack! > > > > > > > Modern ciphers such as AES are not susceptible to known plaintext > > attacks. > > That is indeed what it says on > http://en.wikipedia.org/wiki/Known-plaintext_attack. But without any > source or other justification. In this case, I'd say [citation needed]! > > At one time Enigma and DES were regarded as unbreakable. :-) > > Roland > -- > R.F.Smith http://www.xs4all.nl/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) It seems prudent to me to reduce the attack surface to that which really needs to be defended -- "When you defend everything, you defend nothing". Not to mention avoiding the overhead of encrypting OS files. What do you folks think of the relative merits of AES vs Blowfish for disk encryption? -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgp3LLybZAwl4.pgp Description: PGP signature
Re: harddrive encryption
Quoth Roland Smith on Tuesday, 18 January 2011: > > Since you are making a backup, why not just run geli(8), newfs(8) the new > encrpyted partition and restore the data? I don't think it is much slower, and > it is a _lot_ safer. > That makes a lot of sense. I don't know why I had such a mental block about running newfs(8) on the partition. Thanks! -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgp9VWOZcZ1pk.pgp Description: PGP signature
Re: harddrive encryption
Quoth Chuck Swiger on Monday, 17 January 2011: > On Jan 17, 2011, at 12:30 PM, Alokat wrote: > > is it possible to encrypt my full harddrive (excluding /boot) during a > > freebsd installation. Or do I have to do this after the installation > > manually? > > I don't believe the current installer knows about HD encryption. Do it after > the install by following the fine documentation in the handbook: > > http://www.freebsd.org/doc/handbook/disks-encrypting.html > > Regards, > -- > -Chuck > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" One thing I don't get from that fine documentation: is it possible to take an existing hard drive with data and encrypt it? Or do I have to create a new encrypted partition and copy all the files to it? -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpkUE50Zl1Za.pgp Description: PGP signature
Re: can somebody give me a shell acct?
Quoth Gary Kline on Saturday, 15 January 2011: > An update on the blogware: it works or is starting to. I had a typo in the > title and cd'd into my homepage then did a recursive grep. NO TITLE. I had > just-assumed that the title stuff as well as the tagline that is the > [optional] subtitle would be kept here. BZZT. Anybody know what's up? > > tia, folks, > > gary > > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix > The 7.97a release of Jottings: http://jottings.thought.org/index.php >http://journey.thought.org > ethic If you want to see where the title is used in your theme, grep for wp_title. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpKehbXib2jz.pgp Description: PGP signature
Re: a few Last qstns on the wordpress installation....
Quoth Gary Kline on Friday, 14 January 2011: > On Fri, Jan 14, 2011 at 01:20:42PM -0800, Gary Kline wrote: > > On Fri, Jan 14, 2011 at 11:48:07AM -0800, Chip Camden wrote: > > > Quoth Gary Kline on Friday, 14 January 2011: > > > > There are differences between murders and a suicide, but both > > are tragic events. ESp'ly when they involve the live s of > > somebody young. anyway, since Monday I've been thinking of the > > title: "Miles to go Before I sleep." > > > > Where is the title string I chose? It is not in www/blog, where > the front pages of word press is. Another thing is that I have a > test file ready. I see where to cut and paste, but can I use html > in my posts? I remember looking at one blogging sit e the other day > that included italics, so am guessing this isn't strictly vanilla > ASCII or 8859-1 > > gary > > PS: I see a page full of buttons to click on; what I want to avoid > is having something captured that isn't ready for prime time . > > > > > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix >Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.97a release of Jottings: http://jottings.thought.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" It's up to the blog theme to display the title. Typically that's done in /wp-content/themes//header.php, but it isn't required. You can use some HTML tags in each post's text. Wordpress filters it, but it will preserve the more useful (, , , etc.). It tries to eliminate the more dangerous ones (
Re: a few Last qstns on the wordpress installation....
Quoth Gary Kline on Friday, 14 January 2011: > This is directed at the few people who actually know how to > configure this port. First, I want to have this installed on at > least my www.thought.org site as well as my transfinite.thought.org > domain. subdomain // virtual-domain. I asked about alterting > the wp-config.php yesterday. This php page memtions having > "multiple installations in one database [[I'm assuming using my > original mysql setup]] bgiving each worpress istall a unique > $table_prefix. Would 'wp0_' and 'wp1_' make sense? > > The last question has to do with the "Site Title"; there were no > examples, so I don't know if this means listing my site as www > or www.thought.org OR Gary's Blog or "YO! Whatzup?" > > I have googled for examples of this last bit; no thing so far. > > Anybody? > > gary > > > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix >Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.97a release of Jottings: http://jottings.thought.org > Both of those can be anything you want. The database prefix just makes your database names unique. I usually use some form of the blog name itself as the prefix. The site title is just a string that can be accessed from your WP theme. usually the theme renders it as part of the title of each page, as well as putting it near the top of the page somewhere (usually). -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgp7Mh8r4db5F.pgp Description: PGP signature
Re: Which php??
Quoth Gary Kline on Thursday, 13 January 2011: > > I have saved a copy of the original config page and have some > questions that I'll need for when I write up my readable > tutorial page. -I don't think many of you know that for > heading toward 7 years, I was the lead writer for a Q/A help page > for newcomers to FreeBSD. We all can write; it isn't that > difficult. But I spent/wasted 15 years of banging away on a > typewriter writing stuff and editing stuff before I got > seriously lucky and discovered computers. I will need help > from the rest of the list and readers to make my HOW-TO INSTALL > WORDPRESS strictly first-rate. Given that, I should be the last > person to *ever* invest going into four days on this kind of > effort. That said, a straight-up thanks for y'all who have > helped me with this.- > > When you get a rough draft done, I'll be glad to walk through it and note any issues. I've been meaning to attempt a WordPress installation on FreeBSD for testing purposes (all my live sites are hosted on a managed system that came with Apache and PHP already configured). -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpa39FBGpqXN.pgp Description: PGP signature
Re: Date of a FreeBSD installation
Quoth n j on Friday, 14 January 2011: > >>> I'm just guessing if there is a way to know a FreeBSD installation date. > >>> We can't look after the uname -a ident since an update of the FreeBSD > >>> kernel is possible. > > How about looking at /proc or /mnt? > > On a couple of my boxes that I checked, those files came up being the > oldest and probably match the installation date. > > -- > Nino For me, /proc is older, /mnt is newer, than the install date. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgppQhu3EGJFK.pgp Description: PGP signature
Re: Date of a FreeBSD installation
Quoth David DEMELIER on Friday, 14 January 2011: > 2011/1/13 Chip Camden : > > > > The date on the /home symlink reflects my install date. I don't think > > anything would touch that. > > > > -- > > Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F > > http://camdensoftware.com | http://chipsquips.com | > > http://chipstips.com > > > > And to be sure that anything can touch it you can add the the `uchf' > flag to the symlink : > > markand@Melon ~ $ ls -l /home > lrwxr-xr-x 1 root wheel 8 11 Jan 2011 /home -> usr/home > markand@Melon ~ $ sudo chflags uchg /home > markand@Melon ~ $ sudo touch /home > touch: /home: Operation not permitted > > But be careful, apply `uchg' flag on /home and not /home/. > > -- > Demelier David Touché. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpDRk8dkfyJb.pgp Description: PGP signature
Re: Date of a FreeBSD installation
Quoth Carl Chave on Friday, 14 January 2011: > > I'd suggest looking at the Btimes of top level directories > > > > stat -f "%SB %N" /* > > Or how about just / as this ~15 minutes earlier than most of the > remaining top level directories > > > sodserve# stat -f "%SB %N" /* > Jan 9 04:54:21 2011 /COPYRIGHT > Jan 9 04:54:21 2011 /bin > Jan 9 04:54:21 2011 /boot > Dec 31 18:59:59 1969 /dev > Jan 9 04:54:21 2011 /etc > Jan 9 04:54:21 2011 /lib > Jan 9 04:54:21 2011 /libexec > Jan 9 04:54:21 2011 /media > Jan 9 04:54:21 2011 /mnt > Jan 9 04:54:21 2011 /proc > Jan 9 04:54:21 2011 /rescue > Jan 9 04:54:21 2011 /root > Jan 9 04:54:21 2011 /sbin > Jan 9 04:54:21 2011 /sys > Jan 9 04:48:39 2011 /tmp > Jan 9 04:48:45 2011 /usr > Jan 9 04:49:39 2011 /var > > sodserve# stat -f "%SB %N" / > Jan 9 04:39:59 2011 / For me, that gets the Nov 21 2009 date, which is earlier than my install date. So far, /etc/hostid and the /home symlink seem to be the winners. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpXt05mhKVRS.pgp Description: PGP signature
Re: Date of a FreeBSD installation
Quoth Carl Johnson on Thursday, 13 January 2011: > Polytropon writes: > > > On Thu, 13 Jan 2011 13:50:27 -0800, Chuck Swiger wrote: > >> On Jan 13, 2011, at 1:46 PM, Devin Teske wrote: > >> > This is nearly always accurate on any FreeBSD system (when wanting to > >> > query the date the machine was built): > >> > > >> > ls -l /etc/defaults/rc.conf > >> > >> I gather that you don't ever run mergemaster, which would update this file? > >> My machine installed in 2001 has a Dec 2010 date for that file: > >> > >> -r--r--r-- 1 root wheel 36037 Dec 1 14:13 /etc/defaults/rc.conf > > > > Exactly that was my thought. Maybe a file that is NOT subject > > to one of the system upgrade procedures would be better? Maybe > > something in /boot? > > > > % ls -l /etc/defaults/rc.conf > > -r--r--r-- 1 root wheel 34300 Aug 24 2008 /etc/defaults/rc.conf > > % ls -l /boot/defaults/loader.conf > > -r--r--r-- 1 root wheel 19426 Aug 24 2008 /boot/defaults/loader.conf > > > > No, forget about that, also nonsense, looks to new... > > How about /var/empty: > > % ls -ldo /var/empty/ > dr-xr-xr-x 2 root wheel schg 512 Jul 18 19:16 /var/empty/ > > It can be changed, but doesn't look likely. > > -- > Carl Johnson ca...@peak.org > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" On my system, it gives a date several months in advance of my install date (Nov 21 2009). -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpFDB7gtEbgU.pgp Description: PGP signature
Re: Date of a FreeBSD installation
Quoth Ivan Voras on Friday, 14 January 2011: > On 13/01/2011 21:28, David Demelier wrote: > >Hello folks, > > > >I'm just guessing if there is a way to know a FreeBSD installation date. > >We can't look after the uname -a ident since an update of the FreeBSD > >kernel is possible. > > If you haven't removed it, a line in /etc/rc.conf should be written by > sysinstall at system install time: > > # -- sysinstall generated deltas -- # Sun Sep 14 16:13:22 2008 > > On a newer system (7+?), the timestamp of /etc/hostid would be from the > first boot. > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" /etc/hostid has the right date for me. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgprYENDxM96I.pgp Description: PGP signature
Re: Date of a FreeBSD installation
Quoth Chuck Swiger on Thursday, 13 January 2011: > On Jan 13, 2011, at 12:45 PM, Chip Camden wrote: > > On my system, /etc/termcap has the date well after my installation > > (Jun 28 2010) and /etc/rmt dates to well before (Nov 21 2009). I first > > installed FreeBSD on this system on Apr 1 2010. > > Certainly the target of the link would change; my /etc/termcap points to: > > -r--r--r-- 1 root wheel 206901 Dec 14 21:03 /usr/share/misc/termcap > > This particular box I'm looking at had been updated from FreeBSD-4.x through > 7-STABLE, so a 2001 timestamp for the original installs seems about right. > > I wonder, are you folks using something other than UFS for / > filesystem...perhaps ZFS or whatever handles the dates on symlinks > differently? > > Regards, > -- > -Chuck I'm all UFS. My first installation was 8.0-RELEASE. At that time, I don't think termcap was even a symlink, but I could be mistaken. I'm looking at the date on the symlink itself, not its target. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgplVikbzxCvp.pgp Description: PGP signature
Re: Date of a FreeBSD installation
Quoth Chuck Swiger on Thursday, 13 January 2011: > On Jan 13, 2011, at 12:28 PM, David Demelier wrote: > > I'm just guessing if there is a way to know a FreeBSD installation date. We > > can't look after the uname -a ident since an update of the FreeBSD kernel > > is possible. > > > > I think searching a file absolutely not touched ever in the system can > > helps but which one? > > > Symlinks under /etc are a good choice: > > # cd /etc ; ls -ltr | head > total 1242 > lrwxrwxrwx 1 root wheel 23 May 26 2001 termcap@ -> > /usr/share/misc/termcap > lrwxrwxrwx 1 root wheel 13 May 26 2001 rmt@ -> /usr/sbin/rmt > > Regards, > -- > -Chuck > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" On my system, /etc/termcap has the date well after my installation (Jun 28 2010) and /etc/rmt dates to well before (Nov 21 2009). I first installed FreeBSD on this system on Apr 1 2010. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpd4KqKCYv80.pgp Description: PGP signature
Re: Date of a FreeBSD installation
Quoth David Demelier on Thursday, 13 January 2011: > Hello folks, > > I'm just guessing if there is a way to know a FreeBSD installation date. > We can't look after the uname -a ident since an update of the FreeBSD > kernel is possible. > > I think searching a file absolutely not touched ever in the system can > helps but which one? > > markand@Melon ~ $ ls -l /root/.cshrc > -rw-r--r-- 2 root wheel 798 19 Jul 04:17 /root/.cshrc > > It seems that this file has the FreeBSD dist access time so can't refers > to neither. > > Do you have any clue? > > Cheers, > > -- > David Demelier > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" The date on the /home symlink reflects my install date. I don't think anything would touch that. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpsDq2vwbc7R.pgp Description: PGP signature
Re: problem with shell script
Quoth Frank Bonnet on Wednesday, 12 January 2011: > Hello > > I'm in trouble with a simple shell script that give > erroneous value when running ... > > If I run commands interactively everything runs well > > > ps ax | grep slapd | grep -v grep | wc -l > 1 > > If I run in the following shell script : > > #!/bin/sh > SD=0 > SD=`ps -ax | grep slapd | grep -v grep | wc -l` > echo $SD > > the result is 3 !!! > > > Any info welcome ! > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Ever hear of pgrep(1)? -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpzsxgMvlyzm.pgp Description: PGP signature