Re: [Solved] Youtube & Flash Videos broken?
in message <20130408093145.GA3009@tinyCurrent>, wrote Matthias Apitz thusly... > > El día Monday, April 08, 2013 a las 11:04:41AM +0200, Patrick Lamaiziere > escribió: > > > Le Sun, 7 Apr 2013 13:38:55 +0200, > > Jens Schweikhardt a écrit : > > > > > # We've had a thread about it in the forums, with a couple of > > > workarounds: # http://forums.freebsd.org/showthread.php?t=38627 > > > > > > Thanks for this helpful link. It contained the solution to my problem: > > > > > > 1) In about:config, set dom.ipc.plugins.enabled to false > > > 2) Exit and restart Firefox (really, just doing 1) did not work). > > > > Cool that works here too, nice. Thanks. > > I helped me as well. Can someone give a bit light of explanation > what the parameter does in detail and why it should be set to > 'false'? Thanks An explanation on Adobe forum ... http://forums.adobe.com/thread/666110 32d reply ... ... The crash protection feature in Firefox 3.6 is enabled for certain plugins only. The four preferences that we modified here specifies four different out-of-process plugins. They are the the NPAPI test plugin, Adobe Flash, Apple QuickTime (Windows) and Microsoft Silverlight (Windows). These plugins are specified in a separate dom.ipc.plugins.enabled. preference by default is set to true. We can disable them by changing their value to false. And thus plugin-container.exe will not run. By default the preference dom.ipc.plugins.enabled is already set to "false". So, no need to touch it. The dom.ipc.plugins.timeoutSecs is also not important here as other values are false. Similar is on ... (skip to bottom) https://support.mozilla.org/en-US/questions/707085 (Also, I was reminded of "perlipc" pod related to inter-process communication in Perl.) -- ___ 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: Youtube & Flash Videos broken?
in message <5160aaf9.2020...@sneakertech.com>, wrote Quartz thusly... > > > > I can work around this by downloading the files with clive and watching > > with mplayer, but I'd like to make this work again. > > To be honest, this is really the best solution for all platforms, > win/mac/bsd/etc. I don't have flash installed on any of my > machines: I use a plugin that downloads the mp4 and auto opens it > in a local video player. Is the plugin that you speak of called "Download YouTube Videos as MP4"? I have tried some extensions -- e.g. "Flash and Video Download", "Download Helper" -- that require a bit of video to be played initially before it can be downloaded (outside of YouTube; for YouTube videos, I prefer to use youtube_dl). - Parv -- ___ 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: Youtube & Flash Videos broken?
in message <20130407000932.678efc0d.free...@edvax.de>, wrote Polytropon thusly... > > On Sat, 6 Apr 2013 23:39:11 +0200, Jens Schweikhardt wrote: ... > > Is anyone else but me able to play flash, like for example "The > > true science of multiple universes" in > > http://www.youtube.com/watch?v=Ywn2Lz5zmYg ? > > The video has a "ad overlay" (can skip after a few seconds), > video itself plays fine here. Note that I'm providing you > this reference from the past: I'm using Opera with the Linux > Flash plugin (installed as described in the handbook), and > the versions are opera-11.50, opera-linuxplugins-11.50, > and linux-f10-flashplugin-10.3r183.5, installed in summer 2011. The video played fine in Firefox (firefox-17.0.3,1) & Shockwave Flash (11.1 r102) plugin (there is also a "FutureSplash Player" plugin). Initially there was a purple window with small circular ">" (play) button but nothing was being displayed; audio of the original video started playing by itself. Few seconds later, the purple window disappeared. Opera (opera-12.14), OTOH, reported that flash plugin (opera-linuxplugins-12.14; linux-f10-flashplugin-11.2r202.275) crashed. > > Other types play just fine, like "Pt1gard's 10-Question Apollo Test" > > http://www.youtube.com/watch?v=oUPtiYiMCbQ > > Yes, plays fine. No problem here either with either of the browsers. - parv -- ___ 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"
math/p5-Bit-Vector size error (was PERL problem installing SQLgrey)
in message <51253e9d.901a.28c09d00.5088e...@go2france.com>, wrote lcon...@go2france.com thusly... > > > freebsd 9.0 > > portsnap fetch update ... > ===> Installing for sqlgrey-1.8.0 ... > ===> sqlgrey-1.8.0 depends on package: p5-Date-Calc>=0 - not found > ===>Verifying install for p5-Date-Calc>=0 in /usr/ports/devel/p5-Date-Calc > ===> p5-Date-Calc-6.3 depends on package: p5-Bit-Vector>=7.1 - not found > ===>Verifying install for p5-Bit-Vector>=7.1 in > /usr/ports/math/p5-Bit-Vector > ===> Extracting for p5-Bit-Vector-7.2_2 > => SHA256 Checksum mismatch for Bit-Vector-7.2.tar.gz. > > > and it can't find it anywhere else. > > bombs out with: > > fetch: > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/Bit-Vector-7.2.tar.gz: > size mismatch: expected 135586, actual 137817 No error of that sort here (on FreeBSD 8.3-STABLE/i386 in Hawaii, USA). > => Couldn't fetch it - please try to retrieve this > => port manually into /usr/ports/distfiles/ and try again. > *** Error code 1 ... Here source was fetched from ... ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Bit/Bit-Vector-7.2.tar.gz ... and port was built without fatal errors (lots of "warning: cast to pointer from integer of different size" though). -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Opera
in message <3869488.94aln8e...@luna.wi.rr.com>, wrote ajtiM thusly... > > Hi! > > I use Opera 12.12. I use KDE 4 and Fluxbox. > In operaprefs.ini I have > [File Selector] > Dialog Toolkit=4 > > which help me that Opera works othervise I get: > libpng error: incorrect data check > libpng error: incorrect data check > Segmentation fault (core dumped) > > This happened on KDE but without above lines in operaprefs.ini, Opera works > without problem on Fluxbox. > > What is different, please? (Go to "opera:config" by typing in the address bar. Then in the search field (one with magnifying lend), type "toolkit". You will then see only "File Selector: Dialog Toolkit" option. When you click the "[?]" icon, you will the values (0-4) and short explanation.) With that out of way, option value "4" tells opera to "use X11 for file selector" instead of auto detected one, Qt, GTK, or KDE one. Seems like any or all of opera, kde, png library need to be rebuilt, possibly along with other respective dependencies. Sorry, I couldn't be of much help with this. -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How to fix a broken owner for files from world & build from ports?
in message , wrote Ralf Mardorf thusly... > > Hi :) > > I hope it's ok, when I open a new thread for this issue. > First I need to know what files have a bad owner. > > I'm running > # freebsd-update IDS >> outfile_28Jan2013.ids > perhaps this will give some useful output, regarding to a wrong owner for > files from world. > > It's still running. > > I still have no idea how to check this for the files build from ports. If I understand your problem correctly, it is of incorrect owner & group. If so, are there any problems with just running "chown -R" on the parent directory (say /usr/local, where ports are installed by default)? - parv -- ___ 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"
OT - Opera 12.12 crashes while uploading an image on Flickr
Recently Opera -- Opera/9.80 (X11; FreeBSD 8.3-STABLE i386) Presto/2.12.388 Version/12.12 -- has been crashing whenever I try to upload an image in JPEG format ... http://farm9.staticflickr.com/8364/8369048901_d47c385819_b_d.jpg ( opened raw file in ufraw 0.18_4; sent to gimp 2.6.12,2; resized & saved as JPEG. I uploaded it via Firefox 10.0.11,1 without any problems. ) ... on Flickr via ... http://www.flickr.com/photos/upload/basic/?reason=noflash ... Opera crashes during the transfer (after file has been chosen by pressing "Choose ..." and pressing "UPLOAD"). Could anybody tell me if the problem is with Opera-Flickr interaction or something inherent in the file itself? (Also posted to newsgroup opera.linux.) - parv -- ___ 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: Somewhat OT - A Makefile Question
in message <4fd0adfb.8030...@tundraware.com>, wrote Tim Daneliuk thusly... > > On 06/07/2012 12:19 AM, Parv wrote: > > in message<4fcf48af@tundraware.com>, > > wrote Tim Daneliuk thusly... > >> > > ... > >> Within a makefile, I need to assign the name of a program as > >> in: > >> > >> FOO = "bar". > >> > >> The problem is that 'bar' may also be know as, say, "bar.sh". > > ... > >> Is there a simple way to determine which form "bar" or "bar.sh" > >> on on a given system *at the time the make is run*? If both > >> exist, I will pick one arbitrarily, > > ... > >> For example I don't think this works when both are there: > >> > >> FOO = $(shell `which bar bar.sh) > > > > Modify the subshell command to ... > > > >which bar bar.sh | head -n 1 > > > > > > ... as in (for FreeBSD make) ... > > > >shell=`which zsh sh tcsh csh 2>/dev/null | fgrep -v 'not found' | head > > -n 3` ... > Thanks. Happy to help. > I came up with something similar, but I think your recipe is a bit > more elegant ... It was "If both exist, I will pick one arbitrarily ... " that helped much in modification of the original. - parv -- ___ 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: Is this something we (as consumers of FreeBSD) need to be aware of?]
in message <1849552.ouqdgjx...@x220.ovitrap.com>, wrote Erich thusly... > > On 06 June 2012 23:27:39 Chad Perrin wrote: ... > > I have immediately installed FreeBSD on the last four or five > > laptops I > > I do this since 5.2 is out with all my purchases. ... > I have to admit, that I have had to install twice Fedora because > the notebook hardware was not supported at that moment of time. > > The second Fedora installation will go as soon as get finished my > travelling or I get me hands on a new hard disk. Erich, could you please list the offending Lenovo models? ... > What also has to be mentioned is the fact that people have to be > more careful when shopping for new hardware with FreeBSD in mind. > AMD based hardware is here of advantage at the moment. But it has > other disadvantages. ... What would be the said disadvantages? - parv -- ___ 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: Somewhat OT - A Makefile Question
in message <4fcf48af@tundraware.com>, wrote Tim Daneliuk thusly... > ... > Within a makefile, I need to assign the name of a program as in: > > FOO = "bar". > > The problem is that 'bar' may also be know as, say, "bar.sh". ... > Is there a simple way to determine which form "bar" or "bar.sh" on > on a given system *at the time the make is run*? If both exist, I > will pick one arbitrarily, ... > For example I don't think this works when both are there: > > FOO = $(shell `which bar bar.sh) Modify the subshell command to ... which bar bar.sh | head -n 1 ... as in (for FreeBSD make) ... shell=`which zsh sh tcsh csh 2>/dev/null | fgrep -v 'not found' | head -n 3` all: @printf "%s\n" ${shell} - parv -- ___ 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: /usr/home vs /home
I vote for multiple partitions with user specified names (or at least be able to change /home mount point to something else) & allocated space. in message <4f3f1817.7030...@herveybayaustralia.com.au>, wrote Da Rock thusly... > > On 02/18/12 12:16, Daniel Staal wrote: > > --As of February 17, 2012 11:46:23 PM +0100, Polytropon is alleged to > > have said: > > > >> Well, to be honest, I never liked the "old style" default > >> with /home being part of /usr. As I mentioned before, _my_ > >> default style for separated partitions include: > >> > >> / > >> swap > >> /tmp > >> /var > >> /usr > >> /home I like having /var and/or /tmp to be separate from /, /usr, /home in case it fills up or gets damaged. For me, they are not as much as critical as the rest. > >> In special cases, add /opt or /scratch as separate partitions > >> with intendedly limited sizes. > >> > >> You can see that all user data is kept independently from > >> the rest of the system. It can easily be switched over to > >> a separate "home disk" if needed. > > > > --As for the rest, it is mine. > > > > I'm in agreement with you on that I like to have /home be a > > separate partition, and not under /usr. (Of course, my current > > zfs system has 40 partitions...) Partly though I recognize that > > I like it because that's what I'm used to, and how I learned to > > set it up originally. (My first unix experience was with > > OpenBSD, over 10 years ago now.) > > > > I've never seen anything listing the main reasons for having > > /home under /usr though. I figure there must be a decent reason > > why. Would anyone care to enlighten me? What are the perceived > > advantages? (Particularly if you then make a symlink to /home.) > > But seriously, for the pedantic yes, but for a desktop user (at > least) having home on /usr partition makes sense - balances space > and functionality; Give / + /usr a 1 or 2 GB for FreeBSD files; allot the rest to other partitions. > plus a lack of nodes on the disk for partitions? Limit was 8 I > think. But now with /usr/home if you want to install from ports it > can take a few gig, but that can be wasted because you're not > always installing from ports, so might as well share space with > the home directories and balance that way. Otherwise you'd need > 30G (about) for /usr/ports and all the stuff you want to install > and then that cannot be used at all for /home which could be > cleared quite easily to make room if necessary if it was on the > same partition. # df -h | egrep -v 'devfs|proc' ; echo ; swapinfo ; echo ; \ # ll -d /{var,home,tmp} /usr/{ports,local,src,obj} ; Filesystem SizeUsed Avail Capacity Mounted on /dev/ad4s4a2.9G1.5G1.2G56%/ /dev/ad4s4d989M243M667M27%/var /dev/ad4s4e275G172G 80G68%/misc Device 1K-blocks UsedAvail Capacity /dev/ad4s210442880 1044288 0% lrwxr-xr-x 1 root wheel 10 Apr 2 2010 /home@ -> /misc/home lrwxr-xr-x 1 root wheel 13 Apr 2 2010 /tmp@ -> /var/tmp-root lrwxr-xr-x 1 root wheel 11 Apr 2 2010 /usr/local@ -> /misc/local lrwxr-xr-x 1 root wheel9 Apr 2 2010 /usr/obj@ -> /misc/obj lrwxr-xr-x 1 root wheel 11 Apr 2 2010 /usr/ports@ -> /misc/ports lrwxr-xr-x 1 root wheel9 Dec 6 20:35 /usr/src@ -> /misc/src drwxr-xr-x 27 root wheel 512 Feb 18 13:11 /var/ (There is another partition, /toybox of 8.5 GB, currently not mounted, to experiment with virtualbox.) - parv -- ___ 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"
OT: Old books (before c. 2009) for the price of shipping
I have following books (bought before 2009) that need to be disposed of, one way or another within next 7-8 days. If you are interested in any of them, contact me privately about the shipping payment (to be shipped from Allentown, Pennsylvania, USA via USPS) & your list ... * Sed & Awk -- Dale Doughberty & Arnold Robbins * The New Korn Shell Command and Programming Language -- Morris I Bolsky, David G Korn * Sendmail -- O'Reilly - Bryan Costales with Eric Allman * Java in a Nutshell -- O'Reilly - David Flangan * Core Java, Volume 1 - Fundamentals -- Cay S. Horstmann, Gary Cornell * Managed C++ and .Net Development -- Stephen R G Fraser, Forward by Arthur Laksberg * Counter Hack - A Step by Step Guide to Computer Attacks and Effective Defenses -- Ed Skoudis * Scene of the Cybercrime: Computer Forensics Handbook -- Debra Littlejohn Shinder, Ed Tiltel * Cybercrime Vandalizing the Information Society -- Steven Furnell * Codes, Ciphers and Other Cryptic and Clandestine Communication: 400 Ways to Send Secret Messages from Hieroglyphs to the Internet -- Fred B Wrixon - parv -- ___ 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: p5-ExtUtils-MakeMaker-6.56_1 and p5-ExtUtils-Install-1.54_1 conflict
in message , wrote n dhert thusly... > > p5-ExtUtils-MakeMaker-6.56_1 and p5-ExtUtils-Install-1.54_1 > conflict both telling that the other one should be deleted. ... > so far, I opted for keeping p5-ExtUtils-Install-1.54_1, deleting > p5-ExtUtils-MakeMaker-6.56_1, is this wise or should it be the > other way round? or what? I would say keep EU::MM, delete EU::I for now (see below & other recent message by Matthew S). > There's nothing in /usr/ports/UPDATING about that.. For background refer to ... http://cpansearch.perl.org/dist/ExtUtils-Install/Changes ... which, in short, shows the EU::I extracted from EU::MM is slowly diverging from its origin; work is ongoing to keep it compatible with the EU::MM version of the installed files. - parv -- ___ 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: pkg-add - package insists on old version of Perl
in message <4e08aca7.5080...@gracenpeace.net>, wrote Joe in MPLS thusly... > > I am trying to install the Amanda server package. I am running FreeBSD > 8.2 with Perl 5.12.3. > > The package lists Perl 5.10.1 as a dependency and since my newer version > of Perl conlicts with the older version the install fails. pkg_add with > "-f" just tries to force the installation of the older Perl and fails. > > How do I get the package to install and use the Perl I already have? I'd > rather not downgrade Perl. pkg_add should not fail itself in installing a package ... -f, --force Force installation to proceed even if prerequisite packages are not installed or the requirements script fails. Although pkg_add will still try to find and auto-install missing prerequisite packages, a failure to find one will not be fatal. ... then, just to confirm, pkg_add did not succeed in installing the desired package in the end? I wonder if using -F ... -F Already installed packages are not an error. ... would install perl 5.10 too in addition to 5.12, or install of 5.10 would be skipped?. - parv -- ___ 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: editors/openoffice.org-3
in message <20110530163134.ga51...@think.gnix.co.uk>, wrote Jamie Paul Griffin thusly... > > I wouldn't mind using one of the packages but they want perl version > 5.12 and I don't want to use that just for OO. Do you have another perl installed such that installing version 5.12 would cause much churn even if only to be replaced later? - parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Make gtk widgets use a larger font
in message <20101209114208.c1...@qroenaqrq.6qbyyneqvnyhc.pbz>, wrote Lars Eighner thusly... > > How do I make gtk widgets use larger fonts? I found an old linux > FAQ on this, but it appears to have nothing to do with the way > configuration works on FreeBSD. In ~/.gtkrc-2.0, I have ... style "default" { #font="-adobe-new century schoolbook-medium-r-normal--14-*-*-*-*-*-iso8859-1" #font_name="New Century Schoolbook 12" font_name="Bitstream Vera Sans 10" } style "user-tooltip" { font_name="Screen 15" } # 'gtk-font-name' property is needed for damned Firefox 1.5 as # 'font_name' property alone didn't work, but does for Gimp 2.2. # Anti-aliased fonts are used though i would love to use # non-anti-aliased font in order to get New Century Schoolbook 14 # font. #gtk-font-name = "Bitstream Vera Serif 12" #gtk-font-name = "New Century Schoolbook 12" gtk-font-name = "Bitstream Vera Sans 10" widget "*" style "default" widget "*tooltip*" style "user-tooltip" ... and in ~/.gtkrc ... style "default" { font="-adobe-new century schoolbook-medium-r-normal--18-*-*-*-p-*-iso8859-1" } style "user-tooltip" { font="-sgi-screen-bold-r-normal--16-*-*-*-*-0-iso8859-1" } widget "*" style "default" widget "*tooltip*" style "user-tooltip" - parv -- ___ 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: man(1) output error
in message , wrote Warren Block thusly... > > On Sat, 30 Oct 2010, Adam Vande More wrote: > > > On Sat, Oct 30, 2010 at 10:13 PM, wrote: > > I tried with "man perlfunc | less '+/y'" (also repeated the above > > with csh) which did not result in any error messages in zsh 4 on > > FreeBSD 8-STABLE (c. Sep 9 2010). > > > > > > Perhaps it's not directly related to the shell since your config > > is similar to except my stable is from Oct 4 and the error > > happens here. > > Sounds right. The initial search command for less (+/whatever) is > not always needed; after the error appears with it, just 'man > perlfunc | less' will give the errors. > > The errors appear here when 'man perlfunc | less +/y' is run on > csh, bash, or zsh and "q" is pressed before the EOF has been > reached: > >% man perlfunc | less +/y >Error executing formatting or display command. >system command exited with status 36096 >No manual entry for perlfunc Yes, pressing "q" in less produces the above too here. > The status is always 36096, or 0x8d00. Haven't yet found a short > man page which does this. Interestingly, longer man pages may do > it twice: > >% man ifconfig | less +/following >Error executing formatting or display command. >system command exited with status 36096 >Error executing formatting or display command. >system command exited with status 36096 >No manual entry for ifconfig Now this is also reproducible. > Go to the EOF with "G" first, then press "q", and there are no > errors. Yep. Thanks Warren for listing various cases. That made me realize that I did went to the end of two manual pages when I had tried to reproduce the error earlier. - parv -- ___ 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: man(1) output error
in message , wrote Warren Block thusly... > > On Sat, 30 Oct 2010, Warren Block wrote: > > > On Fri, 29 Oct 2010, Chip Camden wrote: > > > >>> % man csh | less +/rehash > >>> > >>>rehash Causes the internal hash table of the contents of the > >>> directo- > >>>ries in the path variable to be recomputed. This is > >>> needed if > >>> [...] > >>> Error executing formatting or display command. > >>> system command exited with status 36096 > >>> Error executing formatting or display command. > >>> system command exited with status 36096 > >>> No manual entry for csh ... > >> I can confirm that the very latest 8.1-STABLE (csup and build > >> this morning) reproduces the problem. uname -a: > >> > >> FreeBSD libertas.local.camdensoftware.com 8.1-STABLE FreeBSD 8.1-STABLE > >> #85: Fri Oct 29 10:27:19 PDT 2010 > >> sterl...@libertas.local.camdensoftware.com:/usr/obj/usr/src/sys/LIBERTAS > >> amd64 > > > > This seems to be a problem with the csh man page. Other pages > > work fine, like 'man hosts | less +/named' or 'man devfs | less > > +/ruleset'. > > Actually, it appears to be a problem with long manual pages, > including csh, bash, or perlfunc. I tried with "man perlfunc | less '+/y'" (also repeated the above with csh) which did not result in any error messages in zsh 4 on FreeBSD 8-STABLE (c. Sep 9 2010). - parv -- ___ 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"
Opera 10.61 (FreeBSD 8/i386) crash - can't read kernel memory
Why does Opera 10.61.6430 want to read kernel memory (on FreeBSD 8[.0]-STABLE/i386), leading to eventual death ... opera [crash logging]: Can't read kernel memory: : /dev/mem: Permission denied opera [crash logging]: CRASH!! got signal SIGSEGV at address 0819DEA6 ... while shutting down normally? (Yes, of course, only root:kmem has read access to /dev/mem.) Also, is there any way to prevent creation of /var/tmp/crash.txt every time it crashes? - parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Xorg Problems
in message <4c70a618.d6d35...@blakemfg.com>, wrote Fred Boatwright thusly... > > The .xinitrc file: > xrdb > xsetroot -solid gray & > xterm -geometry +0-100 & > xconsole -geometry -0+0 -fn 5x7 & > #exec olvwm #complained about a missing font > exec fvwm ... > I don't understand why xterm and xconsole are to be started before > the window manager. Window manager is started at the end so that when it exits, it takes all the open programs with it. If you start the window manager in background too ... xrdb ... exec fvwm & ... then all you would see is a flash of window opening (and subsequently closing) as no program would be there to block exiting out of X11. You could start any other program in foreground after starting window manager ... xrdb ... fvwm & # Exit this xterm, exit out of X11. exec xterm -T 'Die, Die!' You would need to then exit that program so that open files close, other programs die, X11 shuts down, and so on, so forth. - parv -- ___ 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: Customizable wall clock for several time zones
in message <20100821055224.ec9f0d12.free...@edvax.de>, wrote Polytropon thusly... > > I'm searching for a round-clock style clock application for X, > and I would prefer a standalone program (not integrated with > KDE, Gnome, or else). It should be possible to define several > timezones and attach a label to each clock ... > []= The clock =X > | | > | / | \/ \ \/ /\ | > | | +- | | -+ | | + | | > | \/\/\__|_/ | > | BLAH MEOWDOGFOOD! | > +--+ You could place multiple x11-clocks/rclock instances side by side with different time zones (-adjust option) to partially reach there, as it does not allow to set the title (I only tested -title option). - parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Can't remove or move file
in message <20100820164939.gb50...@guilt.hydra>, wrote Chad Perrin thusly... > ... > > On 08/20/10 09:06, Mark Tinguely wrote: > > > > > >For many commands, the "--" stops the argument processing: > > > > > > rm -- -elDeJaPWGg.flv ... > There are a couple more ways to get around this. One requires planning > ahead, the other requires less typing (if you hand-typed the filename). > > If you want to plan ahead, you can use the -o option with youtube-dl: > > youtube-dl -o output_filename.flv 'url_for_youtube_video' > > This sets the name of the file that will appear on your computer to > "output_filename.flv", so you control what the file is called. ... On a similar & more flexible note, using --title option will make youtube-dl to use title for the file name. This option has given me back lost sanity when trying to find the right file after fetching more than one. - parv -- ___ 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: Skype
in message <20100811124006.ga2...@borusse.ewmr.base>, wrote Alex Huth thusly... > > Is anyone using skype on freebsd 8 and can tell me how to do the > setup? Seem to be that there is no port and on the website i find > no package for freebsd. Well, version 1.x does not work at all as in I was not able to log in after generating an account via web. Version 2.x as it existed in ports not too long ago was broken due to missing source file (not as in raw code but as in binaries). Then I searched for a possible solution that led me to download ... http://kobyla.info/soft/distfiles/skype_static-2.0.0.72-oss.tar.bz2 ... in /misc/ports/distfiles; edit net/skype/Makefile to set proper PORTVERSION; & generate net/skpe/distinfo which led to successful install & use of skype as in I could log in with the same password & userid generated earlier & place a call or two. - parv -- ___ 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: Re : cannot install opera
in message , wrote Franci Nabalanci thusly... > > It is interesting why they are waiting for update if they found > vulnerabilities on June 25th and version 10.11 was out long time > ago. For one, perhaps nobody submitted update to 10.11 version. For second, in the PR mentioned earlier to update to 10.60 ... http://www.freebsd.org/cgi/query-pr.cgi?pr=148294 ... if one READS it, initially there were problems with port update itself. Then, 10.60 crashes a lot. I myself am using 10.11 version, installed from a local port. As the port was intended only for i386 architecture, I did not submit a PR. Let me know if anybody wants it. - parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD vs YouTube
in message <20100714192246.b4daa560.free...@edvax.de>, wrote Polytropon thusly... > > On Wed, 14 Jul 2010 20:06:14 +0300, Odhiambo Washington > wrote: > > Is this the same way the Linux users have it?:-) > > I don't think so. The Linux "Flash" plugin seems to work better on > Linux than it does on FreeBSD. ... > "Flash" stuff on Linux is to have this plugin installed for > Firefox. As I'm not a regular Linux user, I can't be sure, but at > least that's my opinion. :-) On CentOS 5.x, I have yet to experience a problem with videos on YouTube, Vimeo, & some others while playing them in Firefox via Flash plugin. On FreeBSD, when possible, I download the file to play with xine. - parv -- ___ 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: check for numeric content in a shell script (FreeBSD sh)
in message <20100624192256.gf...@libertas.local.camdensoftware.com>, wrote Chip Camden thusly... > > On Jun 24 08:39, Parv wrote: > > in message <20100624183407.ga49...@holstein.holy.cow>, > > wrote p...@pair.com thusly... > > > > > > # Matches a number, either positive (without '+' sign) or > > > # negative, which is either a whole number; or a real number > > > # ending with decimal point, or a real number with or without > > > # leading digits before the decimal point. > > . ^ > > . ^ plural > > > ^ > > > -? > > > ( > > > [0-9] [.]? [0-9]* > > > | > > > [0-9]? [.] [0-9]+ > > .^ > > .^ oops > > > > Please change the immediately above regex portion to ... > > > > [0-9]* [.] [0-9]+ ... > We still need to be able to handle numbers without a decimal. First alternative above handles that ... [0-9] # Match 1 digit, [.]?# followed by an optional decimal, [0-9]* # followed by any number of optional digits. > Try this: > > [0-9]*\.?[0-9]+ If it is really /^[0-9]*\.?[0-9]+$/, then it does not match a negative number or a number ending with a decimal (e.g. 8.). > The question mark says "0 or 1" > > > > > ) > > > $ Annotated regex now is ... ^ # Anchor at the beginning of string; -? # followed by an optional -ve sign; ( # start grouping|alternatives; [0-9] # match 1 digit, [.]?# followed by an optional decimal, [0-9]* # followed by any number of optional digits; | # OR, [0-9]* # match any number of optional digits, [.] # followed by 1 decimal point, [0-9]+ # followed by 1 or more digits; ) # end of grouping; $ # anchor at the end of the string. - parv -- ___ 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: check for numeric content in a shell script (FreeBSD sh)
in message <20100624183407.ga49...@holstein.holy.cow>, wrote p...@pair.com thusly... > > # Matches a number, either positive (without '+' sign) or > # negative, which is either a whole number; or a real number > # ending with decimal point, or a real number with or without > # leading digits before the decimal point. . ^ . ^ plural > ^ > -? > ( > [0-9] [.]? [0-9]* > | > [0-9]? [.] [0-9]+ .^ .^ oops Please change the immediately above regex portion to ... [0-9]* [.] [0-9]+ - parv > ) > $ -- ___ 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: check for numeric content in a shell script (FreeBSD sh)
in message <87d3vgmj1s@cjlinux.localnet>, wrote Carl Johnson thusly... > > Carl Johnson writes: > > > Carl Johnson writes: > > > >> vogelke+u...@pobox.com (Karl Vogel) writes: > >> > >>>>> On Thu, 24 Jun 2010 09:24:39 +0800, > >>>>> Aiza said: > >>> > >>> A> Receiving a variable from the command line that is suppose > >>> A> to contain > >>> A> numeric values. How do I code a test to verify the content > >>> A> is numeric? > >>> > >>> The script below will work with the Bourne or Korn shell. > >>> Results for "0 1 12 1234 .12 1.234 12.3 1a a1": > >>> > >>> 0 is numeric > >>> 1 is numeric > >>> 12 is numeric > >>> 1234 is numeric > >>> .12 is numeric > >>> 1.234 is numeric > >>> 12.3 is numeric > >>> 1a is NOT numeric > >>> a1 is NOT numeric > >> > >> You might want to try testing "123..45". > >> I tried changing: > >>>if expr "$arg" : "[0-9]*[\.0-9]*$" > /dev/null > >> to: > >> if expr "$arg" : "[0-9]*\.*[0-9]*$" > /dev/null > >> but it still claims that it is numeric, so *I* must be missing > >> something. > > > > I just realized that I had a stupid mistake there and should > > have used: > > if expr "$arg" : "[0-9]*\.[0-9]*$" > /dev/null > And of course that was another stupid mistake that I didn't test > properly. I really wanted 0 or 1 decimal points, so I wanted > '\.\?', except that FreeBSD expr doesn't recognize '\?'. I > finally ended up with the following which seems to work as *I* > expected it to work: > if expr "$arg" : "[1-9]*\.\{0,1\}[0-9]*$" > /dev/null That regex considers "." a number but not "0.9" (this one seems to be due to typo) nor a negative number. I would personally to use egrep or awk (printf "%s" "${arg}" | egrep "${regex}" [0]) instead of expr. - parv [0] Compact regex # Matches a number, either positive (without '+' sign) or # negative, which is either a whole number; or a real number # ending with decimal point, or a real number with or without # leading digits before the decimal point. ^ -? ( [0-9] [.]? [0-9]* | [0-9]? [.] [0-9]+ ) $ ...by removing whitespace before use. -- ___ 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: office apps
in message <20100609005847.gf37...@guilt.hydra>, wrote Chad Perrin thusly... > > On Tue, Jun 08, 2010 at 04:43:42AM -1000, p...@pair.com wrote: ... > > It took about 15 "seconds" of manual count to see an empty > > window after typing "openoffice.org-3.0.0 -nologo". ... > I'm not sure what you mean by this. Empty window? Sorry, by "empty window" I meant the open office swriter window showing an empty, spanking new document (to start writing in). - parv -- ___ 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: office apps
in message , wrote Alejandro Imass thusly... > > On Mon, Jun 7, 2010 at 12:40 PM, Chip Camden > wrote: > > On Jun 07 2010 11:21, Anh Ky Huynh wrote: > >> On Sun, 6 Jun 2010 13:34:16 -0700 Chip Camden > >> wrote: ... > >> > Does anyone have a recommendation for a lighter-weight office > >> > suite? OOo is such a pig. It takes a good minute to start it > >> > up and open a spreadsheet. > >> > >> There are some tips to speed up your Ooo. But if your Ooo took > >> minute to start, I guess that your system has a low hardware? > > > > I wouldn't have thought that an Intel Core i3 M350 (2.27Ghz) > > with 4GB would be considered "lo (sic) hardware". Everything > > else runs very quickly, even Windows 7 in VirtualBox. OOo is the > > only time I find myself waiting impatiently. ... > Anyway, chack to see if you may have a broken Java implementation, > and check to see if it's possible to get OO to work with Sun's JRE > 6, and give that a go and see. I have a gut feeling your problem > is related to a broken Java VM somewhere in your machine. Am I the only one who has (force) installed open office from package without java dependency and has yet to see a problem with MS Word & simple Excel files? It took about 15 "seconds" of manual count to see an empty window after typing "openoffice.org-3.0.0 -nologo". Hardware is ... Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz (1795.52-MHz 686-class CPU) ... avail memory = 3119153152 (2974 MB) ... ad4: 305245MB at ata2-master UDMA100 SATA 1.5Gb/s (5400 rpm) "pkg_info -rx openoffice | sort -fu" shows ... Dependency: atk-1.28.0 Dependency: bitstream-vera-1.10_4 Dependency: cairo-1.8.8_1,1 Dependency: compositeproto-0.4 Dependency: damageproto-1.1.0_2 Dependency: desktop-file-utils-0.15_1 Dependency: encodings-1.0.2,1 Dependency: expat-2.0.1_1 Dependency: fixesproto-4.0 Dependency: font-bh-ttf-1.0.0 Dependency: font-misc-ethiopic-1.0.0 Dependency: font-misc-meltho-1.0.0_1 Dependency: font-util-1.0.1 Dependency: fontconfig-2.8.0,1 Dependency: freetype2-2.3.11 Dependency: gamin-0.1.10_3 Dependency: gdbm-1.8.3_3 Dependency: gettext-0.17_1 Dependency: gio-fam-backend-2.22.4 Dependency: glib-2.22.4 Dependency: gnome-mime-data-2.18.0_3 Dependency: gnome_subr-1.0 Dependency: gtk-2.18.7_1 Dependency: hicolor-icon-theme-0.12 Dependency: icu-3.8.1_3 Dependency: inputproto-1.5.0 Dependency: jpeg-8_1 Dependency: kbproto-1.0.3 Dependency: libart_lgpl-2.3.20,1 Dependency: libfontenc-1.0.4 Dependency: libICE-1.0.4_1,1 Dependency: libiconv-1.13.1_1 Dependency: libpthread-stubs-0.3_3 Dependency: libSM-1.1.0_1,1 Dependency: libX11-1.2.1_1,1 Dependency: libXau-1.0.4 Dependency: libXaw-1.0.5_1,1 Dependency: libxcb-1.5 Dependency: libXcomposite-0.4.0,1 Dependency: libXcursor-1.1.9_1 Dependency: libXdamage-1.1.1 Dependency: libXdmcp-1.0.2_1 Dependency: libXext-1.0.5,1 Dependency: libXfixes-4.0.3_1 Dependency: libXft-2.1.14 Dependency: libXi-1.2.1,1 Dependency: libXinerama-1.0.3,1 Dependency: libxml2-2.7.6_2 Dependency: libXmu-1.0.4,1 Dependency: libXp-1.0.0,1 Dependency: libXpm-3.5.7 Dependency: libXrandr-1.3.0 Dependency: libXrender-0.9.4_1 Dependency: libXt-1.0.5_1 Dependency: mkfontdir-1.0.4 Dependency: mkfontscale-1.0.6 Dependency: pango-1.26.2_2 Dependency: pcre-8.00 Dependency: pixman-0.16.6 Dependency: pkg-config-0.23_1 Dependency: png-1.4.1_1 Dependency: printproto-1.0.4 Dependency: randrproto-1.3.0 Dependency: renderproto-0.9.3 Dependency: shared-mime-info-0.71 Dependency: tiff-3.9.2_1 Dependency: xcb-util-0.3.6_1 Dependency: xextproto-7.0.5 Dependency: xf86vidmodeproto-2.2.2 Dependency: xineramaproto-1.1.2 Dependency: xorg-fonts-truetype-7.4 Dependency: xproto-7.0.15 Depends on: Information for en-openoffice.org-US-3.0.0: - parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: which is the basic differences between the shells?
in message <20100606182148.gb28...@guilt.hydra>, wrote Chad Perrin thusly... ... > > > On Sat, Jun 05, 2010 at 04:17:15PM -0700, Chip Camden wrote: > > > > > > > > I like zsh, because it's sh-compatible, brings in a lot of > > > > the good ideas from csh/tcsh, and the license appears to be > > > > copyfree rather than copyleft. ... > I'm curious about why you prefer zsh for an interactive shell. > What zsh features would you miss if you used tcsh instead (what > I've been using)? > > I'm always willing to be convinced to try something better. I cannot say about the tcsh features. I switched from bash to zsh mainly for excellent vi-mode editing support, more so over multiple lines. ksh & bash were horrible in that respect. Recently I have found that regular expression like [a-d] (instead of {a,b,c,d}) in file name generation work as expected. zsh has more ways to help file name generation which I have not looked into yet. And of course, as stated earlier, compatibility between a bourne shell script & an interactive shell helps immensely while developing|debugging a script. - parv -- ___ 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: an ACK, still here...
in message <20100522091753.a2f3b17d.free...@edvax.de>, wrote Polytropon thusly... > ... > I had a similar problem, too: USB slot only on the back of the PC, > hard to reach, and that's why uncomfortable and furthermore > unusable. > > My solution was to get an USB cable USB-A plug to USB-A socket, > quite simple, and have the USB socket (now on wire) directly > on the desk. > > If you recognize you often need more than one USB slot, you > usually would decide to get an USB hub ... > One of the most comfortable solutions I've seen (and used) > is to have a USB slot (ot two, usually) on the keyboard. A > good example for this is the Apple keyboard, and of course > the Sun USB type 7 keyboard. ... When one buys a hub, please have one with (the option to use) external power supply as keyboard ports may be underpowered. That will become a factor when powering a, well, power hungry(ier) USB devices (say, a 2.5 in HDD in an external enclousre). - parv -- ___ 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: Magic Jack VOIP telephone
in message , wrote Alejandro Imass thusly... > ... > I [...] just stuck with Skype who now BTW offers international SIP > services, so I also hooked up Skype + Asterisk. This means you can > purchase Skype phone # and attach it to your Asterisk and > everything in FBSD. No Windoze crappy software. Alejandro, how time & labour intensive is to set up Asterisk on a daily use laptop? Could Asterisk not be used by itself for all VoIP needs per my superficial Asterisk understanding? Was setting up Asterisk as simple as installing /usr/ports/net/asterisk-bristuff or /usr/ports/net/asterisk1{2,6}? - parv -- ___ 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: [OT] Was: Disabling DNS
in message <20100420183728.ga60...@gizmo.acns.msu.edu>, wrote Jerry McAllister thusly... > > On Tue, Apr 20, 2010 at 12:48:46PM -0430, Alberto Mijares wrote: ... > > >> FreeBSD has an excelent documentation. Just reading the manual you > > >> will know how to acomplish dummy sysadmin tasks like this. . ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ > > > ^ > > > > > > Maybe you have a language problem, but this looks very much like > > > inappropriate response. We do no call names on this list. It > > > is unhelpful, unfriendly and non-professional. ... > > Just in case, I made a search of every word I used in a > > dictionary; and no offensive nor annoying meaning was found (OK, > > I misstyped "accomplish", sorry about that. My native language > > is spanish). ... > A person needs to be encouraged to read the documentation but > should not be called a dummy.I suppose you might have had a > different intent for the use of that word which is why I mentioned > the possibility of having a language problem.But, it appeared > in the text that you were calling the person stupid and that is > inappropriate for postings to this list. We avoid personal > attacks. Jerry, Alberto was referring to the task not the person being dummy (as in basic, easy) as explained already by Bill. There was no personal attack. I got that sense after reading Alberto's reply, before both Bill's explanation & your indignation. Please read the response in context. - parv -- ___ 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: perl links
in message <86zl1btumw@red.stonehenge.com>, wrote Randal L. Schwartz thusly... > > >>>>> "Anton" == Anton Yuzhaninov writes: > > > Anton> most perl scripts begins with > > Anton> #!/usr/bin/perl > > Anton> this is common convention (also outside *BSD world) > > In fact, it's the recommendation from the original Camel book in 1990 > (which I wrote, but the kids forget that :) that no matter where you > install Perl, you always link/symlink /usr/bin/perl so that scripts can > safely use shebang. So, you are the guilty one. By that logic, every software should assume some location, so that people can have fun with link farm maintainance. - parv -- ___ 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: perl qstn...
in message <867homm1qf@red.stonehenge.com>, wrote Randal L. Schwartz thusly... > > >>>>> "Matthew" == Matthew Seaman > >>>>> writes: > > Matthew> As far as I know, perl and its descendant ruby are the > Matthew> only programming languages that let you put the > Matthew> condition test after the action, despite this being > Matthew> exceeding familiar in human languages. > > Except, we old-timers remember that Larry Wall directly lifted this > from RSTS-E BASIC-PLUS, which he had used at Pacific University as a > student. Having hacked BASIC-PLUS myself around the same time, I > recognized it instantly. > > BASIC-PLUS went further though, allowing them to be nested. So > you'd end up with monstrosities like: "Beauty is in the eye ...", or, perhaos you would prefer "Only a mother would ...". > PRINT a > IF a % 3 = 2 > FOR a = b TO b+7 > FOR b = 0 TO 90 STEP 10; Oh Randal, don't tease me please about the lack of such loveliness in perl. - parv -- ___ 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: perl qstn...
in message <20100404203951.gb47...@thought.org>, wrote Gary Kline thusly... > > ---Maybe you can clue me in on this one: around a dozen years ago > i somw found a recursive grep named tgrep online. to save tying, > i renamed it "rgr". i can start anywhere and 'rgr pattern' > --WITHOUT ANY ASTERISK-- will find any pattern and skip binary or > tarballs or compressed files. given this, rgr has become my > favorite utility, but since it doesn't have All of grep's > options, yes, it's tru e, there are times whrn i have to use the > real thing. i have searched for tgrep and cannot find a newer > more complete version. would you or anyone reading this know > where an upgraded version is? > > Here is the Usage string: > > p4 13:07 [5524] rgr > Usage: tgrep [-iredblLnf] regexp filepat ... > tgrep -h for help > > > if not for trgep/rgr my shoulder would've fallen off and just > laid on the floor; that's how much i use this script. having the > 'w' switch would be nice, so would the -N switch. What does "-N" do in grep included with FreeBSD? My version (FreeBSD 8) only has "-n". I know of one tcgrep (by Tom Christiansen) ... http://www.perl.com/CPAN/authors/id/TOMC/scripts/tcgrep.gz Then, there is ack ... http://search.cpan.org/dist/ack/ack ... may need to tinker with option to search non-Perl files (see -a option). Or, simply ... #!/bin/sh # If your particular egrep is laced with potent PCRE, may use -P # option (before "$@") to specify Perl regex. egrep -r $@ . - parv -- ___ 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: procmail regex help ... sometimes works, sometimes doesn't...
in message <471394.79697...@web111611.mail.gq1.yahoo.com>, wrote George Sanders thusly... > > I have added a very standard, very common regex line to my > .procmailrc to filter character sets I can't read: > > > UNREADABLE='[^?"]*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|ks_c_5601|3Deuc-kr|koi8' > :0: > * ^Content-Type:.*multipart > * B ?? $ ^Content-Type:.*^?.*charset="?($UNREADABLE) > unreadable_messages > > > I know that this works because my "unreadable_messages" mail file > is now full of messages with headers like: > > > From: =?GB2312?B?xMLTq9Or?= > Subject: =?GB2312?B?MjAxMMTqyMvBptfK1LS4w9bYytPKssO0?= > To: "me" > Content-Type: text/html; > charset="gb2312" > > > However, a lot of mail gets through to my inbox that matches: > > > From: "osdeiiftn...@gmail.com" > Reply-To: "osdeiiftn...@gmail.com" > Message-ID: <533pbxxy2oc> > To: me > Subject: Fw: > \xb8\xf2\xad\xe8\xa5X\xa8\xd3\xbd\xe6~\xb1o\xb4\xa9\xa9f\xaa\xb1\xb5L\xaeM\xa4\xba\xaeg\xb2n\xa7o > X-Mailer: inhalation > Organization: Microsoft Outlook Express 6.00.2462. > Mime-Version: 1.0 > Content-Type: multipart/alternative; > boundary="1-104247307-2712732737=:8213" > Status: RO > X-Status: > X-Keywords: > X-UID: 63502 > > --1-104247307-2712732737=:8213 > Content-Type: text/plain; charset="big5" > Content-Transfer-Encoding: quoted-printable > > > However, "big5" is very clearly listed in my regex above, and as > far as I can tell, this mail should match perfectly... > > I cannot see why these "big5" emails are not matching my procmail > regex ... is it obvious to anyone ? Is "Content-Type:" completely missing from the body of your first example? Do you have your examples flipped? I would have thought that first example would have delivered in your inbox & second one in your unreadable_messages one. In any case, what does the procmail log say? See also http://www.professional.org/procmail/sandbox.html#. Do try your luck on procm...@lists.rwth-aachen.de list, http://mailman.rwth-aachen.de/mailman/listinfo/procmail. - parv -- ___ 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: Compose key and xterm vs. UTF-8
Nothing of susbtance here ... in message <20100314114524.gb25...@slackbox.erewhon.net>, wrote Roland Smith thusly... > > On Sun, Mar 14, 2010 at 12:16:45AM +, Christian Weisgerber wrote: > > Short: > > -- > > Why do compose key sequences fail to work in a UTF-8 xterm? > > The port x11/rxvt-unicode is lighter on resources then xterm, and > works fine with utf-8. (with LANG=en_US.UTF-8 and > LC_ALL=en_US.UTF-8 set) I tried to open a genunine xterm window but a kterm-like window was opened. Tried it again; got another non-xterm window. The experience was rather annoying. After waking up I realized what had happened, and life went on as it was before. - parv -- ___ 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: is there a native driver for 'Dell Wireless 1397'?
in message <201003100850.58321.l...@bsd.com.br>, wrote Mario Lobo thusly... > ... > I have 8-STABLE amd64 > > I have a dell vostro 1320 with a 4315 wireless and got it working > with the bwn driver from HEAD (svn) and the net/bwn-firmware-kmod > port. Mario, do WPA & WPA2 work with the card? - parv -- ___ 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: GEOM label clarification
in message <20091017005844.77c28cc1.free...@edvax.de>, wrote Polytropon thusly... > > On Sat, 17 Oct 2009 00:43:37 +0300, Manolis Kiagias wrote: > > Is this your normal '/' filesystem, and is it mounted? If it is > > reboot your system and select 'single user mode' from the > > loader.menu > > Then use glabel in the single user mode prompt. > > This will not work if you just 'shutdown now', you have to > > reboot into single user mode. > > Isn't it sufficient to unmount any partitions and keep / in -o ro > mode, and then perform the glabel command, which is obviously best > done in single user mode? > > # shutdown now > # umount /home /usr /var /tmp > # mount -r / > # glabel label rootfs /dev/ad0s1a That did not work for the 3-4 times I had tried on 6.[2-4]-STABLE. Booting regulary in single user mode (choice 4 or 5) also did not allow glabel'ing (for root). - parv -- ___ 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: Is there such thing as a 'soft checksum' tool?
in message <44skf0c6zq@lowell-desk.lan>, wrote Lowell Gilbert thusly... > > Modulok writes: (I am replyin to Lowell's reply for I do not have OP.) > > I'm not even sure such a tool exists, but it's worth asking: > > > > I'm looking for a pseudo-checksum tool for use with catalogging > > images. For example, a strict checksum algorithm, like the sha > > family, will produce a dramatically different checksum for two > > files which differ by only a single bit. I'm looking for > > something where two images images, which are similar, get a > > proportionally similar checksum. When I speak of similarities > > I'm referring to their image patterns. i.e two images of > > differing sizes, which are otherwise identical, would produce > > very similar checksums. So the closer the checksums are, the > > more similar two given images are. > > > > Does anyone know of anything like this? See if this ... http://www.stonehenge.com/merlyn/LinuxMag/col50.html ... fits. - parv -- ___ 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: Don't let mergemaster beat you down [was Re: Failed update]
in message <1249971512.63923.1045.ca...@predator-ii.buffyverse>, wrote Wayne Sierke thusly... > > On Sun, 2009-08-09 at 08:34 -0700, Richard Mahlerwein wrote: > > I'm redoing the whole process in single user mode. My guess is > > I goofed something during mergemaster and devd.conf is messed > > up. (Mergemaster is, undeniably, my least favorite utility). > > I lost practically all of my 'mergemaster pain' when I adopted the > habit of using it with -iUP options: > > -iAutomatically install any files that do not exist in the des- > tination directory. > -PPreserve files that you replace in > /var/tmp/mergemaster/preserved-files-, or another > directory you specify in your mergemaster rc file. > -UAttempt to auto upgrade files that have not been user modi- > fied. Ah. My mnemonic would be "PiU" as in "Pew! Pew!". - Parv -- ___ 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"
Availability & quality of manual pages (was Re: FreeBSD for the common man(or woman))
in message <20090808195518.7eb8e5ee.free...@edvax.de>, wrote Polytropon thusly... > > On Sat, 8 Aug 2009 10:46:00 -0600, Chad Perrin > wrote: > > Yeah, I hate that stuff. (referring to loathsome info pages.) > > The GNU project is kind of like the Microsoft of the open source > > community, that way. > > Be happy that there at least is an info manual. In many cases, > there is NO local documentation, neither in man or info format. ... > Fortunately, there are even "GUI only" projects that keep up with > the good manpage tradition. Have you ever tried "man opera" ... Hot Diggity! I never thought of Opera having a man page. Thanks much. Dang it! Firefox does not have one. - Parv -- ___ 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"
Base system directory sizes for FreeBSD/i386 7 & 8
Hi, I am interested in installing FreeBSD/i386 7-STABLE & testing -CURRENT with either encryption of all the slices or only $HOME (possibly just a plain directory). Could you please let me know the directory sizes for the base system with debug kernel (including old one) for FreeBSD/i386 7 & 8? What would be the additional overhead for encryption of slices|direcoteries? And, how does zfs use affect the overall things? - Parv -- ___ 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: eSATA and/or Firewire 800|400 card, cardbus or expresscard 54mm
In message <20090624121036.ga3...@holstein.holy.cow> on -mobile list[0], I asked for suggestions for a firewire or eSATA card to be put in Thinkpad T61 PCMCIA or EtherExpress slot, while most likely running FreeBSD 7. After about 6 days getting no replies but still dwindling hard disk space, where should I ask the question again: -hardware, -firewire, -stable, here[1]? - Parv [0] http://lists.freebsd.org/pipermail/freebsd-mobile/2009-June/011664.html [1] Well, I kind of did. -- ___ 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: netbooks vs FreeBSD
in message <20090524135229.ga3...@current.sisis.de>, wrote Matthias Apitz thusly... > > > Alexandre "Sunny" Kovalenko escribió: > > >I did not run FreeBSD on it, so I apologize for slight OT, but > > >my wife's Samsung NC10 (2.8 lbs, 10.2" screen, 160GB 5400RPM > > >HDD) is pushing 6 hours of the battery life with the wireless > > >on and memory upgraded to 2GB. This is under Windows XP HOME > > >ULCPC though. ... > I have a real netbook, an EeePC 900 with 20 GByte SSD, Wifi, > 1024x600 9" display and an attached USB Huawei E220 dongel for > UMTS. I have installed 8-CURRENT and all works as it should, only > the inbuild cam is not supported, but I don't neet this at the > moment (maybe later when Skype for FreeBSD can do video as well). Matthias, What kind of battery life do you get (with and without WIFI use)? - Parv -- ___ 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: netbooks vs FreeBSD
in message <20090524161901.gb3...@current.sisis.de>, wrote Matthias Apitz thusly... > > > On Sun, 24 May 2009 15:52:29 +0200, Matthias Apitz wrote: > > > I have a real netbook, an EeePC 900 with 20 GByte SSD, Wifi, > > > 1024x600 9" display and an attached USB Huawei E220 dongel for > > > UMTS. I have installed 8-CURRENT and all works as it should, > > > only the inbuild cam is not supported, but I don't neet this > > > at the moment (maybe later when Skype for FreeBSD can do video > > > as well). ... > The battery (6600 mAh) gives me around 4.5 hours autonomy, but > often I find a point with power. (Argh, darn quicky fingers!) Sorry for bothering with earlier mail about battery life. - Parv -- ___ 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: Cleaning up multiplicates in elf ldconfig path
in message <200903302145.48743.mel.flynn+fbsd.questi...@mailing.thruhere.net>, wrote Mel Flynn thusly... > > On Sunday 29 March 2009 16:39:15 Parv wrote: > > I am on FreeBSD/i386 6.4-STABLE (around Mar 1, 2009). I failed > > to find a solution to the (cosmetic) problem of ldconfig path > > having duplicate directories (dmesg output wrapped for this > > email) ... ( ... and both /usr/{X11R6,local} point to /misc/local ... ) > I've been running without /usr/X11R6 symlink for a long time and > since XFree86 support has been removed from ports, it seems > logical it can be safely deleted. However, flz@ (maintainer of > xorg) has the authoritative answer. Thanks Mel, at least for the confirmation. Since I sent the email, I have moved out /usr/X11R6 link (effectively deleted). After two days of daily use I have not seen anything different, besides cleaned up dmesg(1) output. - Parv -- ___ 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: Cleaning up multiplicates in elf ldconfig path
in message <20090329143915.ga1...@holstein.holy.cow>, wrote Parv thusly... > ... > I failed to find a solution to the (cosmetic) problem of ldconfig > path having duplicate directories ... > I suppose I could stick in /etc/rc.conf this ... > > ldconfig_paths="/usr/lib/compat /usr/local/lib > /usr/local/lib/compat/package" ... The last path above should have been "/usr/local/lib/compat/pkg". - Parv -- ___ 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"
Cleaning up multiplicates in elf ldconfig path
I am on FreeBSD/i386 6.4-STABLE (around Mar 1, 2009). I failed to find a solution to the (cosmetic) problem of ldconfig path having duplicate directories (dmesg output wrapped for this email) ... ELF ldconfig path: /lib /usr/lib /usr/lib/compat \ /usr/X11R6/lib /usr/local/lib \ /misc/local/lib/compat \ /misc/local/lib/gcc-4.2.4 \ /misc/local/lib/gcc-4.3.3 \ /misc/local/lib/gegl-0.0 \ /misc/local/lib/gnash \ /misc/local/lib/graphviz \ /misc/local/lib/nss \ /misc/local/lib/qt4 \ /misc/local/lib/zsh \ /misc/local/lib/compat /misc/local/lib/gcc-4.2.4 \ /misc/local/lib/gcc-4.3.3 \ /misc/local/lib/gegl-0.0 \ /misc/local/lib/gnash \ /misc/local/lib/graphviz \ /misc/local/lib/nss \ /misc/local/lib/qt4 \ /misc/local/lib/zsh Note that /usr/X11R6 & /usr/local are symbolic links to /misc/local. Is that what is causing the "problem" (since /etc/rc.d/ldconfig reads the default paths of both /usr/X11R6/lib & /usr/local/lib)? If so, is it ok to eliminate the /usr/X11R6 symbolic link? And/Or, is there any other way to remove the multiplicates? I suppose I could stick in /etc/rc.conf this ... ldconfig_paths="/usr/lib/compat /usr/local/lib /usr/local/lib/compat/package" ... but then I would have make sure above does not miss any new paths added to /etc/defaults/rc.conf. Opinions or suggestions? - Parv -- ___ 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: game advice
in message <[EMAIL PROTECTED]>, wrote Andriy Babiy thusly... > > Could anyone share their gaming experiences? My son is 8 years > old. Card games and balls are good, but I think he wants something > more dynamic rather than educational :-) On one machine, with > recent video card, I plan to install glest for him. Another > machine has P-III and Matrox 8 Mb. Is there anything "peaceful" > but dynamic enough for an older video card? I am not 8 years old anymore, so I cannot say what your son would like but should be suitable for your computers. I personally like atris & xpuzzletama, my sister likes xjewel more -- all three are tetris like in one way or other. Oh, there is also koth (& scorched3D) which takes^Wtests patience & aiming skills. I remember a Mac version (around 1994-1997) being not so hard. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Anyone has migrated Xorg from 6.9 to 7.2 with success ?
in message <[EMAIL PROTECTED]>, wrote Frank Bonnet thusly... > > I tried twice starting from a fresh 6.2-R installed machine and > followed intructions of the updating file but it failed twice ... > Once Xorg has been upgraded I've never been able to start X > server again , I use KDE so I start X server with the kdm > command. I do not use kde. Anyway, what else to tell you as I too had no problems whilst not following the official directions. I de installed X 6.9.x & all the dependent software; installed X 7.x; rebuild+reinstalled the needed software. Somewhere in there set /usr/X11R6 symbolic link to $LOCALBASE, and set $X11BASE same as $LOCALBASE in /etc/make.conf. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Post Xorg 7.x - Settings for switching to console from X (was Re: Stranges messages in terminal)
in message <[EMAIL PROTECTED]>, wrote Robert Huff thusly... > > Ctl-Alt-Fn used to allow me to switch consoles; with Xorg 7.2, no > more. Would some kind sole point me to the documentation on how > to enable this again? I had the following section in xorg.conf (Xorg 6.[89]) which I have copied to the 7.x version to be able to switch to console from X ... Section "ServerFlags" Option "DontZap" "false" Option "DontZoom" "true" Option "AllowMouseOpenFail""true" # XFree86 4.[34].x - Add "DontVTSwitch" to be false (for # console switching). Option "DontVTSwitch" "false" Option "HandleSpecialKeys" "always" # Xorg 6.8.(2|99.903) - Add "XkbDisable" to be true (for # console switching). Option "XkbDisable""true" EndSection ... so I suppose one or both of "DontVTSwitch" & "XkbDisable" options would allow the switching; feel free to test. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT - Perl Script in Apache
in message <[EMAIL PROTECTED]>, wrote White Hat thusly... > > Running Apache on a FreeBSD-6.2 machine, I am attempting to set up > a web page that changes a specific image on a daily basis. I found > a Perl script that is supposed to do this, but it seems to fail. > All that is displayed is a red [X]. If I run the script from the > command line, it works, as it should. Well, at least it displays > the correct file name. ... > To display an image simply use this in your HTML: > ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ Note that here, value for "src" attribute, the file location which can be accessed through the web server is needed. If the Perl program spits that out, great. The program posted puts out additional junk as is. When you look at the source of the generated page where you use img tag, what do you actually see? You may need to employ SSI ... http://httpd.apache.org/docs/2.2/howto/ssi.html ... as in ... "> Do not forget to mark perl_script.pl executable. > #!/usr/local/bin/perl > > # find out the day of the year > my $day_of_year = (localtime(time()))[7]; > > # define the path where the images live "." is the > current directory Please either carefully reformat the program or post the original as is. As you had posted, this program will not even compile as the comments are not properly wrapped. ... > print "Location: $files[$image_to_use]\n\n"; Does the image appear if you change the print argument to just the file name, as in ... print $files[$image_to_use]; (... for there is no need to generate a HTTP header (which could be considered erroneous) for your usage for the header has been already sent as part of the page presented containing the img tag)? - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: normal mount points
in message <[EMAIL PROTECTED]>, wrote Jerry McAllister thusly... > > On Sat, Apr 28, 2007 at 11:21:20AM -0700, Graham North wrote: > > > I ran the df command last night to check slice sizes in > > anticipation of doing some backup and eventual tranfer to a new > > machine. The output gave me not just normal slices that were > > created at install but also three additional (mount points?) > > /proc > > /net > > /host > > No problem. /proc is sort of a psuedo file system that enables > some routines such as top to look at certain pieces of > information. > > Probably /net and /host are also psuedo file systems, but I have > never seen them before. If they are legit, they are for something > I do not run. Could it be that /{ne,hos}t mount points are due to use of a{manda,utomounter}? - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Loop/wildcard-like syntax for GNU make?
in message <[EMAIL PROTECTED]>, wrote Kelly Jones thusly... Would you mind cutting the number of mailing lists? I think a|any technical list would have been enough. Anyway ... > Here's a Makefile that converts 3 GIFs to JPGs in a given directory: > > 1.jpg: 1.gif >/usr/local/bin/convert 1.gif 1.jpg > 2.jpg: 2.gif >/usr/local/bin/convert 2.gif 2.jpg > 3.jpg: 3.gif >/usr/local/bin/convert 3.gif 3.jpg > > How do I generalize this to apply to ALL the GIFs in a given > directory? I tried: > > *.jpg: *.gif >/usr/bin/local/bin/convert $1.gif $1.jpg > > but this obviously doesn't work (I didn't really expect it to). Neither does > > for $i (*.jpg) { > $i.jpg: $i.gif > /usr/bin/local/bin/convert $i.gif $i.jpg > } Following worked with both BSD & GNU make 3.81 (mind the tabs|spaces)... # Makefile all: @for i in 1 2 3;\ do \ echo "i: $$i";\ done ... so some version of body of a target below should work for you (mind the spaces|tabs) ... @cd "$$image_dir";\ for f in *.gif;\ do \ new=$( basename "$$f" '.gif' )'.jpg';\ convert "$$f" "$$new";\ done - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [OT] can sed handle this situation? (might require variable)
in message <[EMAIL PROTECTED]>, wrote Zhang Weiwu thusly... > > On Sun, 2007-04-15 at 01:40 -0400, Parv wrote: > > in message <[EMAIL PROTECTED]>, > > wrote Zhang Weiwu thusly... ... > > > I've got a situation that looks like require using variable > > > and not possible to process with sed. But I am not sure. Can > > > someone suggest me if this task is out of scope of sed? > > > > Try some variation of what Garret suggested if sed is the > > requirement and skip rest of the message. > > Thank you very much for all of you providing insights. I have not > yet tried all possibilities in sed but I have just discovered it's > relatively easy to handle this task in awk with this script: > > /^$/ { print "createTimestamp:", timeStamp; timeStamp = ""; } This prints a "createTimestamp:" line on its own block for every 2 consecutive empty lines (in context of the whole program). > /^ahkCreateTimeStamp:/ { timeStamp = $2;} > /^createTimestamp:/ { if (timeStamp == "") timeStamp = $2; } > > $0 !~ /^ahkCreateTimeStamp:/ && $0 !~ /^createTimestamp:/ { > print; > } Interesting, your description of the solution (sadly not in the quoted reply) allowed for "createTimestamp" move to "ahkCreateTimeStamp" line, but implementation above keeps the "createTimestamp" at its place. So I suppose order does not matter(?). - Parv -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [OT] can sed handle this situation? (might require variable)
Darn, forgot to copy to the dear list; so here it is (sent to OP previously) ... in message <[EMAIL PROTECTED]>, wrote Zhang Weiwu thusly... > > Dear list. I could not find a mailing list about 'sed' (there is > an very inactive Yahoo Group though) so I wish to try some luck > here. Try, comp.unix.misc newsgroup. > I've got a situation that looks like require using variable and > not possible to process with sed. But I am not sure. Can someone > suggest me if this task is out of scope of sed? Try some variation of what Garret suggested if sed is the requirement and skip rest of the message. > The input document is sections of data separated by an empty new > line ... >dn: uid=ABB,ou=contacts,ou=china,dc=ahk,dc=de >uid: ABB >ahkCreateTimeStamp: 1996032800Z >creatorsName: cn=manager,dc=ahk,dc=de >createTimestamp: 20060425094550Z > >dn: uid=paulblome,ou=contacts,ou=china,dc=ahk,dc=de >uid: paulblome >sn: Blome >createTimestamp: 20060417071950Z >modifiersName: cn=manager,dc=ahk,dc=de >modifyTimestamp: 20060630094026Z > > The above sample showed two sections in input data. It's required to > process the data in following rule: > >if a data section has "ahkCreateTimeStamp: abc", replace it >with "createTimestamp: abc" and remove the original >"createTimestamp: def" line; > > That is, the result data of above sample should be: > >dn: uid=ABB,ou=contacts,ou=china,dc=ahk,dc=de >uid: ABB >createTimestamp: 1996032800Z >creatorsName: cn=manager,dc=ahk,dc=de > >dn: uid=paulblome,ou=contacts,ou=china,dc=ahk,dc=de >uid: paulblome >sn: Blome >createTimestamp: 20060417071950Z >modifiersName: cn=manager,dc=ahk,dc=de >modifyTimestamp: 20060630094026Z Here is my version in Perl (v5.8.8; run it by giving it files to process as command line arguments; no files are modified; output goes to the standard output) ... #!/usr/local/bin/perl use warnings; use strict; my $orig = 'createTimestamp'; my $changed = 'ahkCreateTimeStamp' ; # Mapping of changed & original strings with related regular # expressions. my %replacement; @replacement{ ( 'changed' , 'orig' ) } = map { [ $_ , qr(^ \s*# Optional whitespace at the beginning; $_ # time stamp text; \s* : # optional whitespace before colon; \s* # optional whitespace; \S+ # non whitespace character sequence (time stamp); .* $# then anything or nothing else at the end. )xm ] } ( $changed , $orig ) ; # Process files, given as command line arguments. Output is # printed on standard output, no file is actually modified. for my $file ( @ARGV ) { my $fh; unless ( open $fh , '<' , $file ) { warn "Cannot open file '$file': $!\n" ; next; } update_time_stamp( \%replacement , $fh ); close $fh or die "Cannot close '$file': $!\n" ; } exit; sub update_time_stamp { my ( $map , $fh ) = @_; my $changed = $map->{'changed'}; my $orig = $map->{'orig'}; # Set input record separator to parse data in blocks. local $/ = "" ; while ( my $block = <$fh> ) { # Nothing to do if there is no ahk* string. next unless $block =~ m/$changed->[1]/ && $block =~ m/$orig->[1]/ ; for ( $block ) { # Remove original replacement time stamp line. (Order does # not matter as only the text is changed not the associated # time stamp value.) s/$orig->[1]//; # Update time stamp string. s/$changed->[0]/$orig->[0]/; } # Remake the block by removing empty line (caused by removal of # replacement time stamp line.) $block = join "\n" , grep { $_ !~ m/^\s*$/ } split /\n+/ , $block ; # Add removed new line at the end, and another as separator. $block .= "\n\n" ; } # For each & every block processed ... continue { print $block ; } } __END__ - Parv -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: I like Ubuntu
in message <[EMAIL PROTECTED]>, wrote Paul Butler thusly... > > If, however, heart-stopping speed appeals to you, you want > intelligently planned technology with the latest stable > applications, you are operating web servers, or you just plain > want to get expertise in real Unix then there is nothing like > FreeBSD. > > Merely by living with FreeBSD for a year or two on your desktop or > laptop, you will really deepen your understanding of unix-derived > systems in a way which is not possible with Linux. This may be > very helpful if you either have or contemplate a career in IT. I note that Paul mentioned "IT" not a "Unix System Administration". So consider the following as my rant. There seems to be no entity which offers *entry level* Unix System Administration position to those not already living in immediate surrounding area (even if one is willing to relocate (at one's own expense)). And "Junior" positions require near 3 years of Unix or Linux *paid* experience. In my experience, the Unix knowledge & experience gained by using FreeBSD (despite the number of years using it) on a machine connected to Internet -- but not actively taking part in LAN-y things like internal DNS, file- and backup/restore server, heterogeneous computing environment, etc. -- can help only for non-system administration positions. - Parv -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Append only directory ? Is this possible with unix permissions ?
in message <[EMAIL PROTECTED]>, wrote Gore Jarold thusly... > > I have a user whose home directory I would like to make "append > only". See chflags(1), getfacl(1), and setfacl(1). > That is to say, they cannot delete files, or delete information > from files, but they _can_ create new files or append information > to existing files. If you set sappnd flag (via chflags) on a directory, then nobody will be able to delete any pre-existing files (or files created later) in that directory. However, any file in that directory can still be truncated to size of 0. If set the same flag on a file, then that particular file cannot be deleted or truncated, only be appeneded. So you may need to set the sappnd flag at least on each file. > Or, if that is not possible, at the very least I wouldlike the > ability to create new files, while not being allowed to delete any > files. > > Is this possible with unix permissions ? Is it possible in the > freebsd filesystem in any way at all ? The sticky bit, as mentioned in other reply, will limit file modifications, including deletion, to the owner of the file. In case like this ACLs seem to be most appropriate. FreeBSD 5.0 included "a complete ACL implementation based on extended attributes for the UFS and UFS2 file systems". See also acl(9) which lists the appropriate kernel option (UFS_ACL). - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: problems installing perl-5.8.8
in message <[EMAIL PROTECTED]>, wrote Glenn Sieb thusly... > > Don Munyak wrote: > >I am having problems installing perl5.8.8 on a up-to-date > >FreeBSD-6.2. After running... > > > >web# cd /usr/ports/lang/perl5.8 > >web# make > >scripts install perl... > > > >web# make test > >(8) tests fail with the following message > > Hmm.. 'make' by itself only prepares the source to be installed.. > try doing 'make install' ... it should run 'make test' for you. :) I do not think that test would run on perl install unless things have changes since May 2006 (from build log on May 16 2006) ... ... Everything is up to date. Type 'make test' to run test suite. *** Error code 1 (ignored) if [ -n "" ]; then cd utils; make compile; cd ../x2p; make compile; cd ../pod; make compile; else :; fi LD_LIBRARY_PATH=/work/ports/misc/ports/lang/perl5.8/work/perl-5.8.8 ./perl installperl --destdir= WARNING: You've never run 'make test' or some tests failed! (Installing anyway.) /misc/local/bin/perl5.8.8 /misc/local/lib/perl5/5.8.8/abbrev.pl ... - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Recover Make ARG's from a ports Install
in message <[EMAIL PROTECTED]>, wrote Randy Pratt thusly... > > On Mon, 12 Mar 2007 20:15:20 -0400 > Parv <[EMAIL PROTECTED]> wrote: > > > in message <[EMAIL PROTECTED]>, > > wrote Alexander Schlichting thusly... > > > > > > On a server I have a package installed using ports and now I > > > have to install the package with exactly the same make > > > arguments on another server. I just don't find a way to see > > > what arguments where used to install it the first time. With > > > Linux I would look into config.status is there something > > > similar with FreeBSD? > > > > There may be config.status present in $WRKSRC directory (in a > > port directory, run "make -V WRKSRC" to find the value) if that > > port's make process generates such a file AND you have not run > > "make clean" yet. (That also means you have to compile the port > > yourself.) > > > > To save make arguments for future use, you could write a wrapper > > which would save the arguments in a file|database before running > > appropriate make target. Use the same wrapper to retrieve the > > stored arguments. (removed self promotion) > /usr/local/etc/pkgtools.conf > > See man 5 pkgtools.conf for a full description. I am personally aware of that but do not use it. Besides using /etc/make.conf & OPTIONS, I am just fine with specifying options on the command line mostly because this is the most flexible way of experimenting with options. > It has the advantage that portupgrade will use the contents of > that file when updating to new versions so that your settings are > not lost. > > Make arguments as well as a variety of other options for > installing and updating ports can reside there. That is similar as specifying in /etc/make.conf as listed by someone else (with the added benefit of not having to install anything outside of base system). In any case, neither of /etc/make.conf or portupgrade provide the facility to store the arguments given on command line if one happen to do that instead of updating either of the two files. Note that the command line recording that I am trying to describe is not a substitute[0] to but complementary to various port|package tools (if they are happened to be installed). - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Recover Make ARG's from a ports Install
in message <[EMAIL PROTECTED]>, wrote Alexander Schlichting thusly... > > On a server I have a package installed using ports and now I have > to install the package with exactly the same make arguments on > another server. I just don't find a way to see what arguments > where used to install it the first time. With Linux I would look > into config.status is there something similar with FreeBSD? There may be config.status present in $WRKSRC directory (in a port directory, run "make -V WRKSRC" to find the value) if that port's make process generates such a file AND you have not run "make clean" yet. (That also means you have to compile the port yourself.) To save make arguments for future use, you could write a wrapper which would save the arguments in a file|database before running appropriate make target. Use the same wrapper to retrieve the stored arguments. Below is my attempt at such a wrapper (feel free to change) ... http://www103.pair.com/parv/comp/src/sh/pmk ... to see available commands just run "pmk" without any arguments. Provide arguments to a make target as ... pmk [ arg_1 arg_2 arg_3 ... ] - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: polling my FreeBSD compariots...
in message <[EMAIL PROTECTED]>, wrote Jonathan Horne thusly... > ... > so far i have it built with 6.2-RELEASE-p2, and xorg up to the > minimal desktop. > > id like to try to try something thats not gnome, or basically id > like to try some of the lesser known, but still just as functional > desktops. > > can i get some recommendations, as well as what graphical mail > reader and web browser works best with your recommendation? I have been using FVWM 2 (-devel version) for quite a while. Tvtwm is the "emergency" wm when/if fvwm upgrade goes berserk or has not been installed yet. The most interesting point is that windows are almost in the same place|state -- given same page layout -- whilst switching between the two. I think vtwm provides for more eye candy than tvtwm. I used Ion (pre-lua change) which did not disappoint; have not used current Ion version due to laziness about learning lua just to edit a configuration file. It seemed most helpful in managing gimp windows. Opera is the web browser I use (over Firefox) mainly due the ease of assiging|using key bindings similar to vi or mutt. Mutt (-devel version) is the mail reader in xterm (unless I am in hurry, then mutt works just fine on console too for fast reading). Some of my configuration files .. http://www103.pair.com/parv/comp/unix/cf/ http://www103.pair.com/parv/comp/unix/x/ - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [OT] What does this pipe do?
in message <[EMAIL PROTECTED]>, wrote Oliver Fromme thusly... > > Just for completeness, ">&" (file) and ">|" (pipe) are also ^^ ^^ > supported by zsh (which is a bourne-shell like sh, ksh or bash). The ">|" construct (in bash [23] & zsh 4), as I know, is to bypass no-clobber option (when set of course) when redirecting to a file. Actually, from zshall(1) ... >| word >! word Same as >, except that the file is truncated to zero length if it exists, even if CLOBBER is unset. ... >>| word >>! word Same as >>, except that the file is created if it does not exist, even if CLOBBER is unset. > In fact it's simply a shortcut for "2>&1" (which means to dup > descriptor 2 [=stderr] to desciptor 1 [=stdout]). - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: regexp [. .]
in message <[EMAIL PROTECTED]>, wrote [EMAIL PROTECTED] thusly... > > On Wed, 17 Jan 2007 07:15:34 +0500, Parker Anderson > <[EMAIL PROTECTED]> wrote: > > >Is there a certain match you are trying to pattern? From the > >looks of it, [ch]* would match a similar set of characters, but > >it isn't as strict about which pattern they should be in. > > I need 'some[^[.pattern.]]' working, i.e. matching 'some' if it > isn't followed by 'pattern'. Curiously that seems there isn't > additional information about it somewhere except the page you've > denoted. I missed the beginning of the thread, but in case you are|can use perl, following use of zero-width negative look-ahead assertion will match 'some' that is not followed by 'pattern' ... 'm/some(?!pattern)/' See perlre(1), "(?!pattern)" section (& around it) for details. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Releng-6.2 upgrade HINT for iwi0 user !!
Do wrap lines around 69 or so characters (to give me no incentive to ignore your mail otherwise). in message <[EMAIL PROTECTED]>, wrote Hanno Krusken thusly... > > well this posting is send before, part of, the specific upgrade hint > regarding the iwi0 driver ! I feel compelled to reply since I get the OP the second time which seems to be same as the first time, and it rubbed me the wrong way the first time I read it. > now, FreeBSD-6.1-RELENG uses /usr/ports/net/iwi-firmware, but after > the upgrade to FreeBSD-6.2-RELENG iwi0 will NOT work, you need to > prefetch the port file /usr/ports/net/iwi-firmware-kmod !! you need > to "make fetch" the distfile "ipw2200-fw-3.0.tgz" befor you "make > buildworld" or you will not get your Wlan working if you relay on > iwi0 to do your upgrades !!! after fetching the > "ipw2200-fw-3.0.tgz" file place it in /usr/ports/distfiles, If ports tree is up do date, "net/iwi-firmware-kmod" port will already be there. Run of "make fetch" inside that port will place -- without any extra effort on user's part -- the required file in ${DISTDIR:-/usr/ports/distfiles}. > rebuild the system to FreeBSD-6.2, install > /usr/ports/net/iwi-firmware-kmod with kernel settings: > > # Wireless NIC cards > options BRIDGE > deviceif_bridge > devicewlan# 802.11 support > devicewlan_wep# WEP crypto > devicewlan_ccmp > devicewlan_tkip > devicewlan_xauth > devicewlan_acl > #device an # Aironet 4500/4800 802.11 wireless > NICs. > deviceawi # BayStack 660 and others > deviceiwi # Intel/PRO 2915abg miniPCI > devicefirmware# Intel/PRO 2915abg miniPCI load > Firmware > devicewi # WaveLAN/Intersil/Symbol 802.11 > wireless NICs. > - > and you are done !!! Alternatively, wlan*, firmware, NIC drivers can be loaded as modules by referencing the appropriate bits in /boot/loader.conf without the need to modify the kernel for just this purpose. I have ... wlan_load="YES" wlan_ccmp_load="YES" wlan_tkip_load="YES" firmware_load="YES" if_iwi_load="YES" > the port "/usr/ports/net/iwi-firmware" is no longer needed, and > can be deleted !! ... as can be any other port directory which you may not need. A c(v)sup will, however, recreate them unless deleted ports have been specified in the appropriate "refuse" file. I really do not care about rest of the post in which procedure for ports & src update was preceded with a gian heap of fluff. I just mention that if one is using a version of FreeBSD new enough, for most purposes cvsup(1) can be replaced with system csup(1). - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
OT: sed usage (was Re: Search & Replace Issue)
in message <[EMAIL PROTECTED]>, wrote DeepTech thusly... > > sed -e 's/http\:\/\/www\.domain\.htm\///g' *.htm > *.htm That will most likely destroy the original file(s). Depending on your shell, you will get redirection error from the shell if there happen to be more than one file matching the pattern '*.htm'. In particular, in zsh 4.2.6 ... # cat p polka dot # cp -f p q; cp -f p qq # ls -l p q* -rw--- 1 parv people 10 Dec 24 23:32 p -rw--- 1 parv people 10 Dec 24 23:32 q -rw--- 1 parv people 10 Dec 24 23:32 qq # sed -e '' q* >| q* # ls -l q* -rw--- 1 parv people 0 Dec 24 23:34 q -rw--- 1 parv people 0 Dec 24 23:34 qq > NOTE: not sure if u have to use a '\' before that ':' No, ':' need not be escaped. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Search & Replace Issue
in message <[EMAIL PROTECTED]>, wrote Garrett Cooper thusly... > cat file.html | sed -e "s|http://www.domain.com||g" ... Not really a need for cat(1), just use input redirection ... sed -e '...' < file - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Search & Replace Issue
in message <[EMAIL PROTECTED]>, wrote Josh Paetzel thusly... > > On Saturday 23 December 2006 21:29, Jack Stone wrote: > > Appreciate a tip on how to search & replace hundreds of *.htm > > files: > > >From this: > > > > http://www.domain.com/tales/wouf.html > > To this: > > http://www.domain.com!!g' *.html ... in case of "hundreds of *.htm", use xargs(1) pipeline ... find dir-of-HTML-files -type f -name '*.html' -print0 \ | xargs -0 perl -pi -e 's!(?<=href=")\Qhttp://www.domain.com!!g' Feel free to change Perl version with sed (the version of sed with -i option[0]) one ... find ... \ | ... sed -i -e 's,\(href="\)http://www\.domain\.com,\1,g' [0] That makes this reply on point. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: wireless 3945 status?
in message <[EMAIL PROTECTED]>, wrote Vince thusly... > > Marwan Sultan wrote: > > > > What about 3945ABG > > > > any news or updates for Intel PRO/Wireless 3945ABG ? ... > > I my self, tried many drivers and many packegs, but nothing > > works in fact. > > including > > http://ipw3945.sourceforge.net/ ... > Last I heard the only driver for the 3945ABG is the unsupported > one by Damien Bergamini. however this post > http://lists.freebsd.org/pipermail/freebsd-drivers/2006-December.txt > gives me hope :) Look for the link for wpi-freebsd.tgz, that > should be a driver that works to some extent. I had partial success with the wpi driver on Toshiba Satellite A105-40??. I need to systematically write the steps & the output & post about the problems to the -mobile@ list. In short, before I recompiled the kernel (6.2-PRERELEASE) with kdb, & more importantly with WITNESS & INVARIANTS support, after loading the driver, system used to go in panic on shutdown or reboot. There definitely was a working connection during my unstructured testing. Will post again w/ more details. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: simple question...how to show packages which depend upon a particular port
in message <[EMAIL PROTECTED]>, wrote Dino Vliet thusly... > > I'm almost ashamed to ask this BUT I really don't know how to find > the packages which depend upon a particular port. > > In this case, a portversion -l "<" showed mysql-client in that > list. I can't recall having installed it by myself Did you install mysql-server with default options? Actually, in mysql51-server port, there is no option to disable install of the client portion. > I wanted to know what the packages are which depend on it. Can > somebody show me this command..and if it will be a RTFM > answer, please tell me which FM:-) Here are some of the ways not requiring connection to Internet I know ... - running "make -V {LIB,RUN,BUILD}_DEPENDS" in a port directory also lists the appropriate type of dependency list, so would running "make pretty-print-{run,build}-depends-list"; - pkg_info(1) w/ -[rR] options lists the dependencies for given ports|packages; - ${PORTSDIR:-/usr/ports}/INDEX* lists dependencies for each port (which may need post processing to be human readable); - sysutils/pkg_tree port creates text tree of the dependencies; As for FM, see ... - pkg_info(1) & pkg_tree(7) man pages; - ${PORTSDIR:-/usr/ports}/Mk/bsd.port.mk - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: WiFi Woes !
in message <[EMAIL PROTECTED]>, wrote Graham Bentley thusly... > > > > Have tried 'route add 192.168.7.1' and editting rc.conf by hand > > to no avail. > > can now ping router however cannot ping external addresses even by > ip ... maybe I messed up by playing with 'route add' ? How do I > check that or put it back to install defaults ? Check the routes by netstat(1) with options "-rn" (-r option to lists the routing tables; -n option to list only the IP addresses, not host names). Below is the output on my machine (without localhost) ... # netstat -rn | grep -v '127.0.0.' Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.2.1UGS 0 6903 iwi0 192.168.2 link#1 UC 00 iwi0 192.168.2.100:04:e2:7c:c0:ca UHLW2 61 iwi0511 Route can be changed first by deleteing it by running route(1) with command "delete" (specify a route to delete) or "flush" (remove all the routes). Set "defaultrouter" in /etc/rc.conf with the value of IP address of your router to avoid manually running route(1). I have ... # grep defaultrouter /etc/rc.conf ... defaultrouter="192.168.1.1" For more information, see respective man pages, and FreeBSD Handbook, in particular ... http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: WiFi Woes !
in message <[EMAIL PROTECTED]>, wrote [EMAIL PROTECTED] thusly... > > Route can be changed first by deleteing it by running route(1) ^ ^ ^ ^ ^ ^ ^ ^ ... > For more information, see respective man pages I seriously apologize for providing the incorrect man page section. The reference to the man page should have been route(8). - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Opera and FreeBSD
in message <[EMAIL PROTECTED]>, wrote Bachilo Dmitry thusly... > > FreeBSD is not Linux, FreeBSD is UNIX. Close but not quite. FreeBSD is Unix not UNIX; difference is in the money to be paid to be certified as all capitals. ... Unless you were going for the emphasis. :) - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Shutting down as user
in message <[EMAIL PROTECTED]>, wrote Rem P Roberti thusly... > > I just installed 6.1 on an old laptop, and I am unable to shutdown > as user. I get a "permission denied" error message. Other than already proposed solution, given that you are the only person sitting near the machine & working power management, a press of the power button should cleanly shut down the computer. At least that is what happens on/with FreeBSD 6.x, with ACPI enabled, on my IBM Thinkpad T42 when I am feeling lazy enough to avoid typing "shutdown -p now". - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Window Manager Recommendations
in message <[EMAIL PROTECTED]>, wrote Joel Adamson thusly... > > I am switching over my desktop system to FreeBSD ... want to > choose a nice window manager. One of the more annoying things I > want to get away from in Microsoft Windows is focus-shifting: I'll > be typing along in one place, then a webpage will finish loading, > the window focus shifts, I keep typing and execute a bunch of > commands in the new window ... > In general I'd prefer a window manager that avoids these sorts of > things (i.e., only does what I ask it to). In FVWM (under /usr/ports/x11-wm/fvwm2-devel), you can set the window raising & moving, focus changing, & pointer moving poiclies to achieve what you want. You can even set it per window (based on its resource or title). You should install fvwm-themes too (in /usr/ports/x11-themes/fvwm-themes) if you don't want to directly edit the configuration files. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: hp or Toshiba laptop?
Sorry for using somebody else's reply to reply to OP as I had deleted the OP. in message <[EMAIL PROTECTED]>, wrote Joel Dahl thusly... > > On Thu, 2006-09-07 at 08:38 -0400, Christian Lopez de Castilla > Wagner wrote: > > > I'm looking into buying a new laptop in the next week ... > > Toshiba Tecra A6-SP3032 (Core Duo 1.83GHz, Intel PRO/Wireless > > 3945ABG (802.11a/b/g) ... I happen to be currently using Toshiba Satellite A105-40xx (work computer), which cost around $800-900 from Circuit City or Best Buy (US chain stores). After few weeks of usage, the keyboard turns out to be rather crappy. When i type -- my typing speed is around 25 wpm & not much of a touch typist -- the keys (more likely the spring) whine as if they need lubrication & have become rather loose. On another Toshiba Satellite, about a year old (as overheard from a coworker; I used it for 2-3 months), Fn key has become so ridiculously loose it behaves like a loose leaf paper covering a sauce pan. So, be mindful of Tecra's keyboard. OTOH, two year old IBM Thinkpad T42's ($1600) keyboard is working wonderfully; five old Dell Inspiron 5000e's (a thousand some dollars at the time) keyboard is still better than above mentioned new Toshiba Satellite. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: pkgdb -Fu failing: can't convert nil into String
in message <[EMAIL PROTECTED]>, wrote Noah thusly... > > Somebody know what is going on here? I can't figure it out and > never seen this before. Neither do i but that won't stop me from speculating ... > > # pkgdb -Fu > ---> Updating the pkgdb > ---> Checking the package registry database > Stale dependency: b2evolution-0.9.2 -> marked (): > marked: Not in due form: - Here, "marked" seems like some sort of place holder for the missing dependency port. The otherwise non empty "()" contain the port directory, under ${PORTSDIR:-/usr/ports}, of the dependency port. > Install stale dependency? ([y]es/[n]o/[a]ll) [yes] a > can't convert nil into String When you answered "all", pkgdb prepared to install the port "marked" but could not parse that name in - format, so the result was empty string or 'nil' in Ruby, the programming language of choice for portupgrade tools. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Finding out which options you used when compiling a package?
in message <[EMAIL PROTECTED]>, wrote Chris thusly... > > Is there anyway to find out which defines you decleared on the > make line you used to compile a port Create a wrapper around make which records the command and/or options before actually calling make. Add a few things like logging the make output, showing last few lines of the log on a failure, seeing the last used options|commands, etc. to have something like this, mostly uncommented, script ... http://www103.pair.com/parv/comp/src/sh/port-make - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: A question for the AWK wizards
in message <[EMAIL PROTECTED]>, wrote Parv thusly... > > You need to use substr() not awk to shorten a line. ` ^ ^ ^ ^ ^ ^ ^ ^ ` ^ ^ ^ ^ ^ ^ ^ ^ Dang it! I meant to use the substr() function in awk. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: A question for the AWK wizards
in message <[EMAIL PROTECTED]>, wrote Murray Taylor thusly... > > # generate the sms message > # the awk code forces the message to be < 160 chars ... >tmpfile=`mktemp -t sms` >echo ${phone} >> ${tmpfile} >${AWK} '{ printf "%-0.159s", $0 }' >> ${tmpfile} << EOF2 > `echo $msg` > EOF2 As it is, any line longer than 159 characters will just overflow. You need to use substr() not awk to shorten a line. Even after that modification, that won't solve your actual problem as the awk script will just shorten EACH line (when record separator is newline), not the whole output. There are ports which seems to do what you want to do. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Searching a drive and copying files
t;C*", $image->ImageToBlob(); $cache->set( $key, [ @vector ] ); } BUCKET: for my $bucket ( @buckets ) { my $error = 0; INDEX: for my $index ( 0 .. $#vector ) { $error += abs( $bucket->[ 0 ][ $index ] - $vector[ $index ] ); next BUCKET if $error > $fuzz * @vector; } push @$bucket, $file; #print "linked ", join( ", ", @$bucket[ 1 .. $#$bucket ] ), "\n"; next FILE; } push @buckets, [ [ @vector ], $file ]; } # Connect images only, no interactive process #exit; for my $bucket ( @buckets ) { my @names = @$bucket; shift @names; # first element is vector next unless @names > 1; # skip unique images my $images = Image::Magick->new; $images->Read( @names ); compare_as_text( $images ); my $sums = collect_md5sum( $images ); { # Silence warning about single use of $b. no warnings 'once'; compare_as_image( $images ) unless reduce { $a eq $b ? $a : 0 } @$sums; } print "Delete? [picture number] "; my $img_count = scalar @{ $images }; my @dead; chomp( my $dead = ); @dead = $dead =~ m/^ \s* [*+] $/x ? ( 1 .. $img_count ) : $dead =~ m/^ \s* - \d+ $/x ? ( $img_count + $dead + 1 .. $img_count ) : grep { $_ >= 1 and $_ <= $img_count } $dead =~ /(\d+)/g; for ( @dead ) { my $dead_name = $images->[ $_ - 1 ]->Get( 'base-filename' ); warn "rm $dead_name\n"; unlink $dead_name or warn "Cannot rm $dead_name: $!"; warn "\n"; } } sub compare_as_text { my $images = shift; my $frmt = "%d: %s\n -- %dx%d %0.3f kB\n"; foreach my $img ( 0 .. scalar @$images - 1 ) { printf $frmt , ( $img + 1 ), $images->[ $img ]->Get( 'base-filename' ) , $images->[ $img ]->Get( 'width' ), $images->[ $img ]->Get( 'height' ) , ( $images->[ $img ]->Get( 'filesize' ) / 1024 ) ; } } sub collect_md5sum { my $images = shift; my @md5; foreach ( 0 .. scalar @$images - 1 ) { my $name = $images->[ $_ ]->Get( 'base-filename' ); push @md5, ( split ' ', qx/ md5 $name / )[ 3 ]; } return [ @md5 ]; } sub compare_as_image { my $images = shift; my $montage = $images->Montage ( geometry => '370x500' , tile => '2x2' , label => "[%p] %i %wx%h %b" ); print "processing...\n"; $montage->Display(); } sub warnif { my $value = shift; carp $value if $value; } sub usage { my ( $exit, $message ) = @_; print STDERR $message, "\n" if $exit && $message; my $old_fd = select( $exit == 0 ? \*STDOUT : \*STDERR ); print <<"_USAGE_"; similar-image - Keep|Delete similar looking images similar-image [ -fuzz ] [ -corrupt | -nocorrupt ] < files directories > This program takes the following options ... -f | -fuzzPermitted average deviation in the vector elements; (set value: $fuzz). -c | -corrupt Move corrupt images into this directory; (set value: $corrupt_dir). -nc | -nocorrupt Do not define a corrupted-image directory (so that files are not moved). _USAGE_ select $old_fd; exit( $exit ); } __END__ - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: aterm -e screen does not source .bashrc (was: Re: been buggin' me for a while now (console resolution))
in message <[EMAIL PROTECTED]>, wrote Giorgos Keramidas thusly... > > On 2006-07-11 12:05, Peter <[EMAIL PROTECTED]> wrote: > >--- Giorgos Keramidas <[EMAIL PROTECTED]> wrote: > >> What do you see in your HOME directory with: > >> > >>$ ls -ld .*profile .*rc ... > > $ ls -ld .*profile .*rc > > -rw-rw 1 peter users 767B Jul 29 2005 .cshrc > > -rw--- 1 peter users26B May 2 11:08 .dmrc > > -rw-rw 1 peter users 331B Jul 29 2005 .mailrc > > -rw-rw 1 peter users31B Jun 28 21:33 .mcoprc > > -rw-rw 1 peter users 1.6K Jul 4 15:31 .profile > > -rw-r--r-- 1 peter users 616B Jun 19 22:10 .screenrc > > -rw-rw 1 peter users 975B Jul 29 2005 .shrc > > -rw-rw 1 peter users 402B Jul 11 09:29 .xinitrc ... > Sorry for the bogus request. I meant: > > $ ls -ld .bash* .sh* .profile If Peter had a ~/.bash_profile that would have shown even with your first request. So ... relax. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: shell retrieve history (up arrow) not working
in message <[EMAIL PROTECTED]>, wrote Lowell Gilbert thusly... > > "Marty Landman" <[EMAIL PROTECTED]> writes: > > > I have a 4.8 installation ... The root account up-arrow > > history retrieve feature works fine, while on my user account it > > doesn't, displaying instead > > > > $ ^[[A^[[C^[[B^[[D > > > > when I press the arrow keys in order (up, right, down, left) > > They are using different shells. Root uses csh by default, your > user account is using sh. Try "set -o emacs" for sh. Just a note, arrow keys for history retrieval also works with 'vi' option (set -o vi). - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: shell scripting: help appreciated
in message <[EMAIL PROTECTED]>, wrote Parv thusly... > > in message <[EMAIL PROTECTED]>, > wrote [EMAIL PROTECTED]@mgedv.net thusly... > > By the way [EMAIL PROTECTED]@mgedv.net do something about ... Reporting-MTA: dns; mta9.adelphia.net Arrival-Date: Mon, 3 Jul 2006 13:49:48 -0400 Received-From-MTA: dns; default.chvlva.adelphia.net (69.160.66.115) Final-Recipient: RFC822; <[EMAIL PROTECTED]> Action: failed Status: 5.2.0 Remote-MTA: dns; mail.mgedv.net (81.223.168.230) Diagnostic-Code: smtp; 521 : Client host rejected: 550 service denied (20003) - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: shell scripting: help appreciated
in message <[EMAIL PROTECTED]>, wrote [EMAIL PROTECTED]@mgedv.net thusly... > > /bin/sh stops working correctly with a content-controlled do-loop. > > the shell-script layout is as follows: > (it's not that trivial, just to show the meaning) > --- > /test/foo.conf (originally ~60 lines): > test1 testval1optional_testval1 > test2 testval2optional_testval2 > > /test/foo.sh (this is the original loop code): > cat "$g_dir_etc/compile.lst"|\ ... ( some pipeline ) ... > while read gh_name gh_src gh_srcdir > do > > /bin/sh -c subprogram.sh $h_val1 $h_val2 $h_opt1; > > done; > > /test/foo_sub.sh: > > --- > > if i change the line > /bin/sh -c subprogram.sh $h_val1 $h_val2 $h_opt1; > to > echo /bin/sh -c subprogram.sh $h_val1 $h_val2 $h_opt1; > the program loops for all records in the foo.conf correctly. > > if i remove the "echo" keyword, the sub-script get's executed, > but the shell terminates as if there were lesser records in > the foo.conf file! > i scripted as many debug messages as possible, for every loop > they get executed and there are no errors/etc... happening. > and interestingly, the execution stops always on the same record! > if i comment out some records of my foo.conf, the sub-shell gets > executed for more records. So, what is it exactly in the records (and/or values given to subprogram.sh) where the execution stops? - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: requesting some info on CVSUP (some is help related, others are your own personal preferences)
in message <[EMAIL PROTECTED]>, wrote Jim Stapleton thusly... > > I'll just go based on the lines in the SUPFILE of interest: > > > 1) *default base=/var/db > > Does anyone use anything else? Why (I mean beyond "my database isn't > in /var/db", Why isn't it there)? base is the place for cvsup to store its files in sup directory. I have set it to /misc. > 2) *default prefix=/usr > > Anyone have their ports prefix someplace other than /usr? Again why is > it elsewhere? Sure, it in /misc, which has much more free space than /usr which has space only for the base system files (plus some room to cope with the growth). - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Directory and file comparison tool for X?
in message <[EMAIL PROTECTED]>, wrote Norberto Meijome thusly... > > I'm looking for a tool that will allow me to compare directories > (recursively) showing what files are different,etc. meld ( > textproc/meld ) can do this to some extent, showing missing > files,etc, but not showing what files are different withoug having > to open each file and do a diff. People mentioned diff & rsync, among other things. Nobody mentioned one named unison, which is similar & different to workings of rsync. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: min disk size for (useful) desktop
in message <[EMAIL PROTECTED]>, wrote Pete C thusly... > > looking for advice/guidelines for a minimum disk size for a decent > desktop install of 6-stable with gnome, openoffice, firefox, gimp > etc. . ... > I have both a 20G and a 250G on hand, so I guess the question > really is is 20G enough ? ? ? 20GB disk should be enough unless you are going to build everything that you need from source in one go without cleaning in bewteen. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Makefile and '$(addprefix)'
in message <[EMAIL PROTECTED]>, wrote Andrew thusly... > > I'm trying to use $(addprefix) build lists of source files and > object files containing the relative paths for each. The problem > is that $(addprefix) never seems to be evaluated. When I run 'make > -p', $OBJECT_LIST looks exactly like in does in my Makefile, which > is listed below. ... > Begin Makefile > > ## compiler settings > CC = gcc > OPTIONS = -Wall -g > > ## directory layout > BASEDIR = ../alice > SOURCEDIR = $(BASEDIR)/sources > OBJECTDIR = $(BASEDIR)/objects > DOCSDIR = $(BASEDIR)/documentation ... > SOURCES_LIST = $(addprefix, $(SOURCEDIR), $(SOURCE)) > OBJECTS_LIST = $(addprefix, $(OBJECTDIR), $(OBJECTS)) > > ## targets > alice: $(OBJECT_LIST) > $(CC) $(OPTIONS) -o $@ $(OBJECT_LIST) ... Looks like you are using gnu make syntax. Read make(1) man page. Replace $(VAR) with ${VAR} & see what happens (i am unsure as i am a light user of BSD make). - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Converting a zsh prompt to bash
in message <[EMAIL PROTECTED]>, wrote Kyrre Nygard thusly... > > > This one, with a real nice color setting: > > ([EMAIL PROTECTED])(09:58+16/05) > (%:~) > > Requires all this: > > PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@' > PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}(' > PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}' > PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}(' > PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})' > PROMPT+=$'%{\e[01;30m\e[00m%} ' > > if [[ `whoami` = root ]] then > PROMPT=$'%{\e[01;31m%}(%{\e[22;31m%}%n%{\e[01;30m%}@' > PROMPT+=$'%{\e[22;31m%}%m%{\e[01;31m%})%{\e[01;31m%}%{\e[01;31m%}(' > PROMPT+=$'%{\e[22;31m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;31m%}%D{%d/%m}' > PROMPT+=$'%{\e[01;31m%})%{\e[01;30m\e[00m%}\n%{\e[01;31m%}(' > PROMPT+=$'%{\e[22;31m%}%#%{\e[01;30m%}:%{\e[22;31m%}%~%{\e[01;31m%})' > PROMPT+=$'%{\e[01;30m\e[00m%} ' > fi > > I was wondering, were I to convert to bash, how would it then look like? All you need to do is replace zsh provided format strings to that of similar bash escape sequences. For example, zsh '%n' (for username) corresponds to bash '\u', '%~' to '\w', and so on. I personally put the color, bold, normal, etc. sequences in a separate file, which is sourced inside the file setting prompt. That gives less of gobbledygook to parse. For zsh, i have somewhere in ~/.zshrc ... # http://www103.pair.com/parv/comp/unix/cf/sh/var/colors . ~/cf/sh/var/colors case $TERM in *xterm* | *rxvt* ) PS1="# ?:%? %j %l ${bold}${yellow_fg}%~${normal}${normal}" PS1="$PS1 %n.${bold}${cyan_fg}%m${normal}${normal}" PS1=" $PS1 (%D{%a %b%d %I%M}) #! " export PS1 ;; * ) PS1="# %j [EMAIL PROTECTED] %l ${bold}%3~${normal} # " export PS1 ;; esac ... similar thing is done for bash prompt. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: very slow boot (newbie)
in message <[EMAIL PROTECTED]>, wrote Barnaby Scott thusly... > > Parv wrote: > ... > >>and then stops! I have timed it - it stops for between 4 and 5 > >>minutes every time. > > > >Does your screen goes blank just after the above message? If so, > >press [Enter] key, you should see the boot being continued, and > >"login:" waiting for input at the end. > > No the screen still has all the previous clutter on it, and > pressing [Enter] just makes a new line Ok then; sorry to waste your time. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: very slow boot (newbie)
in message <[EMAIL PROTECTED]>, wrote Barnaby Scott thusly... > > I have mangaged to install version 6.0 and have had a bit of a > play, but not before re-installing because the boot had been > so slow ... > The boot sequence all goes smoothly ... > until it gets to the following line: > > Configuring syscons: keymap blanktime screensaver. > > and then stops! I have timed it - it stops for between 4 and 5 > minutes every time. Does your screen goes blank just after the above message? If so, press [Enter] key, you should see the boot being continued, and "login:" waiting for input at the end. > PS I am conscious that I don't really know the etiquette around > here too well (apart from not mentioning the logo!) - I don't want > to clutter the list with messages of thanks when help is given, > but at the same time I don't want to seem ungrateful - which is > right? I think everybody appreciates the message when OP tells when/if the problem is solved. IMO, there is really no need to generate a message for each person; a combined (if applicable) public thank you note should be enough. Thanking people who have helped you give them the incentive to keep on helping you & others. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: 7-CURRENT
in message <[EMAIL PROTECTED]>, wrote Perttu Laine thusly... > > Thank's. work fine. Now I have another question about 7-CURRENT. > portupgrade and portversion are giving this error: > --- > uname(1) could be broken - cannot parse the output: 7-CURRENT-SNAP009 i386 > ** Error occured reading /usr/local/etc/pkgtools.conf: >uninitialized constant PkgConfig::OS_PLATFORM > --- > > So. How can one make those pkgtools working? :) That seems like a bug in portupgrade (pkgtools.rb is installed as part of portupgrade) due to, most likely, limited set of rules to parse uname(1) output. Please file a problem report via send-pr(1). I can't help myself but look in source; here is the line 982 in pkgtools.rb (portupgrade 2.0.1_1,1) which fails to parse uname(1) output ... 980 uname = `uname -rm`.chomp 981 982 if m = /^(((\d+)(?:\.\d+[^.\-]*?)+)-(\w+)(-\S+)?) (\w+)$/.match(uname) ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ minor^ version required minor version match 983 OS_RELEASE, OS_REVISION, OS_MAJOR, 984 OS_BRANCH, os_patchlevel, OS_PLATFORM = m[1..-1] 985 OS_PATCHLEVEL = os_patchlevel || "" (I don't know how close Ruby & Perl regular expressions (regexps) are, below analysis is according to Perl rules.) Above regex fails, when there is no minor version since matching of minor version is not optional. To get past that, regex should be ... /^(((\d+)(?:\.\d+[^.\-]*?)?)-(\w+)(-\S+)?) (\w+)$/ ^ ^ optional match - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Remote 'viewing / control' of X Windows
in message <[EMAIL PROTECTED]>, wrote Ow Mun Heng thusly... > > On Sun, 2006-05-07 at 01:34 -0400, Parv wrote: > > in message <[EMAIL PROTECTED]>, > > wrote Marc G. Fournier thusly... > > > > > > I'm dealing with a situation where I'm migrating ppl over to using > > > X vs M$ Windows ... I'd like to be able to help them out remotely, > > > similar to how I can with VNC for Windows ... > > > > > > Is there something similar for Unix that would allow me to > > > 'piggyback' in such a way that they're X desktop is an xterm on my > > > machine, so that I can move their mouse around, show them the > > > steps to do something, etc? > > > > I don't think one could use plain VNC (realvnc, tightvnc & such) to > > move mouse on already running X session. Please let me know if that > > is possible. > > Coming from a Linux background, There _is_ such support. There's one > called 'vino' > * net-misc/vino > Latest version available: 2.12.0 > Latest version installed: 2.12.0 > Size of downloaded files: 1,654 kB > Homepage:http://www.gnome.org/ > Description: An integrated VNC server for GNOME > License: GPL-2 > > which essentially does that. it connects to a running session. Thanks for the additional data. Looking at the dependency list, vino seems to be appropriate only for those who have large part of gnome already installed. > If not mistaken, there is a VNC server edition that does that too ... > > There, however, is x11vnc port (net/x11vnc) which can connects to > > already running X instance which should fulfill Marc's requirement. > > See also x2vnc (x11-servers/x2vnc) port. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Remote 'viewing / control' of X Windows
in message <[EMAIL PROTECTED]>, wrote Marc G. Fournier thusly... > > I'm dealing with a situation where I'm migrating ppl over to using > X vs M$ Windows ... I'd like to be able to help them out remotely, > similar to how I can with VNC for Windows ... > > Is there something similar for Unix that would allow me to > 'piggyback' in such a way that they're X desktop is an xterm on my > machine, so that I can move their mouse around, show them the > steps to do something, etc? I don't think one could use plain VNC (realvnc, tightvnc & such) to move mouse on already running X session. Please let me know if that is possible. There, however, is x11vnc port (net/x11vnc) which can connects to already running X instance which should fulfill Marc's requirement. See also x2vnc (x11-servers/x2vnc) port. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: "Inappropriate file type or format" error when accessing berkely DB file via perl
in message <[EMAIL PROTECTED]>, wrote mark thusly... > I am trying to access my squidguard berkely db files via perl and > DB_File (as per the SquidGuard docs) ... > #!/usr/bin/perl > use DB_File; > my (%url,%domain); > > $DB_BTREE->{compare} = \&domainmatch; ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ I suppose you have domainmatch() sub defined somewhere used in this file but omitted from your post? > my $domain_db = > tie(%domain, "DB_File", "/var/db/squidGuard/warez/domains.db", O_CREAT| > O_RDWR, 0664, $DB_BTREE) || die("domains.db: $!\n"); ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ > $domain_db->put(".six.com","") unless(exists($domain{"six.com"})); > $domain_db->sync; # Seems to only sync the last change. > > undef($domain_db); # Destroy the object > untie(%domain); # Sync and close the file and undef the hash > > The following is returned > > domains.db: Inappropriate file type or format ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ So the program is dying due to failure in tie()ing. Did you check if both SquidGuard & DB_File are linked with the same db library? > When I do a file /var/db/squidGuard/warez/domains.db ... > /var/db/squidGuard/warez/domains.db: Berkeley DB > (Btree, version 8, native byte-order) ... > When I create a db with perl > > #!/usr/bin/perl -w > use strict; > use DB_File; > my %database; > tie %database, 'DB_File', "createdb.dat" > or die "Can't initialize database: $!\n"; > untie %database; ... > file createdb.dat ... > createdb.dat: Berkeley DB 1.85 (Hash, version 2, native byte-order) ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ > I suspect the version 2 / version 8 is the srouce of my > innappropriate file type or format error! mach::DB_File(3) lists ... Using DB_File with Berkeley DB version 2 or greater Although DB_File is intended to be used with Berkeley DB version 1, it can also be used with version 2, 3 or 4. In this case the interface is limited to the functionality provided by Berkeley DB 1.x. Anywhere the version 2 or greater interface differs, DB_File arranges for it to work like version 1. ... so it is not surprising that, in your second case, the db file created is of version 1.x. (Note also that since you had not specified that you wanted a BTree db type, the type is hash.) > I tried reinstalling DB_file guessing that it had some kind of > dependency on DB3.. Thsi had no effect. I tried reinstalling Perl > itself. Also no effect. ... > Relevant Ports installed > > db3-3.3.11_2,1 > bsdpan-DB_File-1.814 ... > perl-5.8.8 DB_File (same version that you had installed separately) is included w/ Perl (at least in 5.8.8). Well, i just searched "Google Groups" for 'perl DB_File db3 "Inappropriate file type or format"' which presented ... http://groups.google.com/group/fa.freebsd.questions/browse_thread/thread/783254b63fbba089/3a8af6e2d78282f9 - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ipfirewall tricks
in message <[EMAIL PROTECTED]>, wrote Bryan Curl thusly... > ... > seperate ipf.rules files and And "ipfirewall" was listed in the subject. Please mind that ipfirewall refers to ipfw(8); ipfilter, ipf(8) ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ refers to, well, ipf. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"