Re: download cvsup?
Tim Dunphy wrote: hey listers!! sorry for all the trouble.. just as an FYI it turned out to NOT be a DNS issue at all!!! it was a routing issue... this command apparently did the trick... [r...@lbsd2:/usr/home/bluethundr]#/etc/rc.d/routing restart add net default: gateway 192.168.1.1 [r...@lbsd2:/usr/home/bluethundr]#ping google.com PING google.com (173.194.33.104): 56 data bytes 64 bytes from 173.194.33.104: icmp_seq=0 ttl=55 time=14.083 ms 64 bytes from 173.194.33.104: icmp_seq=1 ttl=55 time=14.537 ms 64 bytes from 173.194.33.104: icmp_seq=2 ttl=55 time=14.531 ms sometimes it's the simplest solutions under our noses. :) Sorry for not getting back any sooner, went camping in the mountains for a bit. Glad to hear it is resolved. The above is accomplished via this: defaultrouter=192.168.1.1 in your /etc/rc.conf. If you are using this machine as a gateway for the other machines and it is between your FIOS router and the other machines, the defaultrouter value for the other machines would point to the gateway box's internal facing address. -Mike ___ 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: okay, time to ask the wizards.
On Wed, Oct 27, 2010 at 07:10:55PM -0600, Chad Perrin wrote: On Wed, Oct 27, 2010 at 06:04:50PM -0700, Gary Kline wrote: I've got a very large file with paragraphs separated only by \n. How do I put a blank line _after_ each newline? perl -e 'while () { s/$/\n/; print; }' You could also open the file in vi or Vim and give it this command: :%s/$/^M/ Note that you don't type in that ^M by using the ^ and M keys on the keyboard. Instead, you first type ctrl-v then press the Enter key. Thanks, much I've been editing the entire day [[ well, before I stopped to watch the ST DVD:-)]]. Then trying to remember how the hell to get a newline into a vi :sub. There is a way using tr that is among the tr man page examples. Not sure that will work. I'll put your perl exaple with -pi.bak into my ~/bin directory. That way, when my brain stalls I'll have it. gary PS: There are a few remaining regex tricks that I have to catch before I run the file thru atom. For now: calling T-- -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: okay, time to ask the wizards.
On Wed, Oct 27, 2010 at 07:29:25PM -0600, Chad Perrin wrote: On Wed, Oct 27, 2010 at 06:14:04PM -0700, Nerius Landys wrote: You mean replace each newline character with two newline characters? perl -p -i -e 's/\n/\n\n/g' yourfile.txt Hm. Didn't think of perl; but yeah. The g in that is unnecessary. I'd also be inclined to use $ in the matching part of that regex than \n, and only require one newline character in the substitution part as a result: perl -pie 's/$/\n/' filename.txt I think the '$' wins because there might be an embedded newline. The pdf2html utility uses them to match the page-size of the PDF. Plus . . . I like pie. Yup. -g -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
No GPT on an usb key
Hello, I'm trying to put on my USB mass storage device a GPT scheme partitions. But gpart still add them as slices : To be sure to remove the MBR before I dd'ed it $ sudo dd if=/dev/zero of=/dev/da0 bs=512 count=1 1+0 records in 1+0 records out 512 bytes transferred in 0.003369 secs (151970 bytes/sec) $ sudo gpart create -s GPT da0 da0 created $ gpart show da0 = 34 15771653 da0 GPT (7.5G) 34 15771653 - free - (7.5G) $ sudo gpart add -b 34 -t freebsd da0 da0s1 added Why it is still s1? In my kernel config I have this : device crypto options GEOM_ELI options GEOM_PART_GPT options GEOM_LABEL options GEOM_VOL Do I need something that I forgot? Kind regards, -- Demelier David ___ 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: okay, time to ask the wizards..
Chad Perrin per...@apotheon.com wrote: Plus . . . I like pie. A bit out of season, aren't we? It's nowhere near 1 minute before 2 on March 14. ___ 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
Digicom Internet Key
Hello. I've been asked to try to send SMs via a 3G Internet Key. I've not seen it personally, but it should be a Digicom 7.2 HSUPA. Here's what I get: # usbconfig ugen0.1: UHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: UHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: UHCI root HUB Intel at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen3.1: UHCI root HUB Intel at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: EHCI root HUB Intel at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.2: Pirelli 3.5G HSPA Adapter Pirelli, Inc. at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON System is 8.0p3/amd64. Any hint on what driver I should use? It is recognized as a CD-ROM (with its Windows software aboard), I guess I should switch it to modem-mode, but I'm not sure how. I tried a camcontrol eject, the cd device was lost, but nothing new appeared. Or was it nothing new *was recognized* by any driver? bye Thanks av. ___ 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
Sendmail as client via smarthost and ssl
To send email from my computer at work I need to send through a smarthost. In the past I had added the line: define(`SMART_HOST', `[smpt.ki.se]') to my mc file, plus some address rewriting for outgoing mail. This has worked for years. Now the mail system has changed and it requires some authentication, connection via ssl to a different server and via a different port (587). Since then I have not been able to get my computer to send email via the smarthost. Not knowing much about sendmail, I tried google and more or less blindly followed suggestions. Here is what I have done so far, but sending email still does not work: 1. recompiled sendmail with sasl by adding the following lines to /etc/make.conf + installing security/cyrus-sasl2 + recompiling sendmail: SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl2 2. Adding the following line to my mc file (+ make all install restart): define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl dnl Set port define(`RELAY_MAILER_ARGS', `IPC $h 587') I also changed the smarthost to the new name: define(`SMART_HOST', `[send.ki.se]') 3. create the file /etc/mail/auth/client-info + run makemap hash client-info client-info: AuthInfo:[send.ki.se] I:LOGIN P:PASSWORD When trying to send email the returned email from the Mail Delivery Subsystem MAILER-DAEMON contains the following error message: - The following addresses had permanent fatal errors - christopher.ill...@web.de (reason: 530 5.7.1 Client was not authenticated) - Transcript of session follows - ... while talking to send.ki.se.: MAIL From:christopher.ill...@ki.se SIZE=473 AUTH= 530 5.7.1 Client was not authenticated 554 5.0.0 Service unavailable In /var/log/maillog the following error messages appear: Oct 28 13:52:53 muck sm-mta[19110]: STARTTLS=client, relay=send.ki.se., version=TLSv1/SSLv3, verify=FAIL, cipher=AES128-SHA, bits=128/128 Oct 28 13:52:58 muck sm-mta[19110]: o9SBqqHs019108: to=christopher.ill...@web.de, ctladdr=ch...@muck.ks.se (1001/1001), delay=00:00:06, xdelay=00:00:06, mailer=relay, pri=30473, relay=send.ki.se. [130.229.20.26], dsn=5.0.0, stat=Service unavailable Oct 28 13:52:58 muck sm-mta[19110]: o9SBqqHs019108: o9SBqwHs019110: DSN: Service unavailable Any suggestions to help me send email from my computer are gratefully appreciated. The system is 8-stable. Christopher ___ 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: okay, time to ask the wizards.
From: Gary Kline kl...@thought.org To: FreeBSD Mailing List freebsd-questions@freebsd.org Cc: Subject: okay, time to ask the wizards. I've got a very large file with paragraphs separated only by \n. How do I put a blank line _after_ each newline? have you tried something as simple as sed -e 's/\n//' infile outfile -or- awk '{print; print ;}' infile -- ___ 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
Port update problem?
I just updated /usr/ports (with portsnap fetch update) and then ran /etc/periodic/weekly/400.status-pkg to check which needed rebuilding and got (please excuse any line wrapping) fileserver# /etc/periodic/weekly/400.status-pkg Check for out of date packages: pkg_version: Failed to get PKGNAME from /usr/ports/net/GeoIP/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/ORBit2/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/security/openssh-askpass/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/print/a2ps-a4/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/graphics/aalib/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/dns/adns/Makefile! and so on for 387 ports. The complete list is attached. Any ideas how to fix this? -- Although the wombat is real and the dragon is not, few know what a wombat looks like, but everyone knows what a dragon looks like. -- Avram Davidson, _Adventures in Unhistory_ Check for out of date packages: pkg_version: Failed to get PKGNAME from /usr/ports/net/GeoIP/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/ORBit2/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/security/openssh-askpass/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/print/a2ps-a4/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/graphics/aalib/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/dns/adns/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11/appres/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/asciidoc/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/accessibility/atk/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/autoconf213/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/autoconf268/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/automake111/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/automoc4/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11-fonts/bdftopcf/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11/beforelight/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11/bigreqsproto/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11/bitmap/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/archivers/cabextract/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/audio/cdparanoia/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/cmake/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11/compositeproto/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/sysutils/consolekit/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/sysutils/cpdup/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11/damageproto/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/dbus-glib/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/desktop-file-utils/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/dev86/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11/dmxproto/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/docbook-410/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/docbook-420/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/docbook-430/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/docbook-440/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/docbook-450/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/docbook-sk/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/docbook-xml/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/docbook-xml-430/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/docbook-xml-440/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/docbook-xml-450/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11/dri2proto/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/devel/eggdbus/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/sysutils/eject/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11-fonts/encodings/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11/evieext/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/expat2/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11/fixesproto/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/textproc/flex/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11-fonts/font-adobe-100dpi/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11-fonts/font-adobe-75dpi/Makefile! pkg_version: Failed to get PKGNAME from /usr/ports/x11-fonts/font-adobe-utopia-100dpi/Makefile! pkg_version: Failed to get PKGNAME from
Re: Shotwell 0.7 on FreeBSD
Anselm Strauss amsiba...@gmail.com writes: I was wondering if there are any plans when shotwell in version 0.7 will come on ports. Currently it is on 0.6.1, the new version would make it possible to import a f-spot library. But it also requires an update of vala from 0.8 to 0.9. Are there any blockers? You probably need to ask the maintainers. ___ 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
ghostscript install problem
Hello, I am trying to install ghostscript8 from ports on 8.0-RELEASE-p4. The build stops when /usr/ports/print/ghostscript8/work/ghostscript-8.64/epag-3.09/ert is to be installed in /usr/local/bin. The error is file not found. Error code 71. I tried going to the epag-3.09 directory: make clean make The following warnings are produced: ert.c: In function 'printUsageAndExit': ert.c:34: warning: incompatible implicit declaration of built-in function 'exit' ert.c: In function 'main': ert.c:52: warning: incompatible implicit declaration of built-in function 'malloc' ert.c:55: warning: incompatible implicit declaration of built-in function 'exit' ert.c:63: warning: incompatible implicit declaration of built-in function 'strlen' ert.c:73: warning: incompatible implicit declaration of built-in function 'exit' ert.c:82: warning: incompatible implicit declaration of built-in function 'exit' ert.c:87: warning: incompatible implicit declaration of built-in function 'exit' ert.c:116: warning: incompatible implicit declaration of built-in function 'exit' What can I do to resolve this problem? Best regards, Fred ___ 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
Jeane Wullur invites you to Trusted Opinion
I am using TrustedOpinion to get recommendations from our friends. I think you will like it too. Here is my private invitation for you: http://www.trustedopinion.com/join/invite/4cc9800397fa0 - Jeane If you prefer not to receive emails from Trusted Opinion, click here: http://www.trustedopinion.com/unsubscribe/crc3731671452213771035 -- Copyright 2010 Trusted Opinion Inc. All rights reserved. 228 Hamilton Ave. 3rd Floor Palo Alto, CA 94301, USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Nina Zokaya. has forwarded a page to you from Wacom India
[1]Wacom India [2]Nina Zokaya. thought you would like to see this page from the Wacom India web site. Message from Sender: zokayan...@yahoo.co.uk Hello!!! I am Nina Zokaya I saw your contact mail today when i was searching and browsing through internet,and i was deeply moved.I think that you are a very interesting person.So I decided to use the chance to get to know you.i do not think that the age appearance is so important. The most important is what is inside you and how do you feel about the life.I know this life from many sides and I am rather mature already to know how to make a man happy.I think we should use every chance to find our happiness. and I am contacting you for obvious reason which you will understand.Reply me through my email address so (zokayan...@yahoo.co.uk)that i will send my photo and more details to you,and i have a very important thing to tell you,i still hope for your reply,have a pleasant day, Nina Zokaya. [3]IKEA chooses Wacom's SignPad to reduce costs and paperwork Wacom, the leading manufacturer of pen tablets, interactive pen displays and intuitive interface devices, today announces that the major home furnishings retailer IKEA has adopted the electronic receipt storage solution from TeleCash GmbH Co. KG based on Wacom�s LCD signature tablet technology - the STU-500 (or SignPad)?- across Germany. In pionieering this solution, TeleCash is using the market leading technology from Wacom for generating electronical signatures. [4]Click here to read more on our site References 1. http://www.wacom.co.in/ 2. mailto:zokayan...@yahoo.co.uk 3. http://www.wacom.co.in/forward/emailref/301 4. http://www.wacom.co.in/forward/emailref/301 ___ 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: Sendmail as client via smarthost and ssl
2010-10-28 14:49, Christopher Illies: To send email from my computer at work I need to send through a smarthost. In the past I had added the line: define(`SMART_HOST', `[smpt.ki.se]') Brackets are only needed for ipaddresses. What happens when you remove the brackets, like so define(`SMART_HOST', `your.mail.server') Nothing changes. I get the same error messages as with the brackets. ___ 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: ghostscript install problem
Fred f...@blakemfg.com writes: Hello, I am trying to install ghostscript8 from ports on 8.0-RELEASE-p4. The build stops when /usr/ports/print/ghostscript8/work/ghostscript-8.64/epag-3.09/ert is to be installed in /usr/local/bin. The error is file not found. Error code 71. I tried going to the epag-3.09 directory: make clean make The following warnings are produced: ert.c: In function 'printUsageAndExit': ert.c:34: warning: incompatible implicit declaration of built-in function 'exit' ert.c: In function 'main': ert.c:52: warning: incompatible implicit declaration of built-in function 'malloc' ert.c:55: warning: incompatible implicit declaration of built-in function 'exit' ert.c:63: warning: incompatible implicit declaration of built-in function 'strlen' ert.c:73: warning: incompatible implicit declaration of built-in function 'exit' ert.c:82: warning: incompatible implicit declaration of built-in function 'exit' ert.c:87: warning: incompatible implicit declaration of built-in function 'exit' ert.c:116: warning: incompatible implicit declaration of built-in function 'exit' What can I do to resolve this problem? You could always start by updating your ports. At least that way, those of us with current versions of the port would be able to look at the same makefiles and so forth. That said, go back to the main port directory, make clean, make rmconfig, and build again; *don't* change the port options when given the choice (after all, the port did build on a clean system, so the problem's probably something you set up). Also make sure there's nothing relevant in /etc/make.conf. Another point: if you still have the problem after following this advice, copy-and-paste the actual errors, rather than trying to re-type it. Good luck. ___ 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] writing filters in sh
Quoth Chad Perrin on Wednesday, 27 October 2010: I know that in sh you can get the contents out of files specified as command line arguments: while read data; do echo $data done $@ I know you can also get the contents of files from pipes and redirects: while read data; do echo $data done In Perl, you can use a single construct to do both and, unlike the first sh example, it can also take multiple filenames as arguments and effectively concatenate their contents: while () { print $_; } I'm not exactly an *expert* in sh, in part because when things start getting interesting while I'm writing shell scripts I tend to just use a more robust language like Perl. Please let me know if there's some way to use a simple idiom like the Perl example to get the same results in sh. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Here's a way to do what you're wanting to do. Unfortunately, it isn't a generalized, single construct: #!/bin/sh if [ $# -ge 1 ];then exec cat $@ | $0 exit fi while read data; do echo $data done My lame attempts to generalize the first paragraph into an alias, function, or shell script have met with disappointment. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpjo7rkj0npn.pgp Description: PGP signature
Re: okay, time to ask the wizards.
On Thu, 2010-10-28 at 15:18 +1030, Wayne Sierke wrote: On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline kl...@thought.org wrote: I've got a very large file with paragraphs separated only by \n. How do I put a blank line _after_ each newline? snip In this particular case however, sed does offer the pièce de résistance: sed G Mea culpa. Someone contacted me off-list querying the validity of my sed statement which highlighted that my solution description was overly terse. Of course what I was suggesting was: sed G sourcefile and practically used as something like: sed G sourcefile newfile or: sed -i .orig -e G sourcefile e.g.: %cat sourcefile Line one. Line two. Line three. %D %sed G sourcefile Line one. Line two. Line three. % Wayne ___ 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: Shotwell 0.7 on FreeBSD
On Thu, 28 Oct 2010 10:00:50 -0400 Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Anselm Strauss amsiba...@gmail.com writes: I was wondering if there are any plans when shotwell in version 0.7 will come on ports. Currently it is on 0.6.1, the new version would make it possible to import a f-spot library. But it also requires an update of vala from 0.8 to 0.9. Are there any blockers? You probably need to ask the maintainers. Vala 0.10 will arrive with the GNOME 2.32 update. Which should be committed in 1 a 2 weeks. We just finishing up some small problems. And running some regression tests. -Koop ___ 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: download cvsup?
thanks for the suggestion! but the other machines on this network do not use the FreeBSD machine as a router. They merely reference it as their first choice of DNS servers. So as of now networking is good to go for all machines. best!! On Thu, Oct 28, 2010 at 2:32 AM, Michael Powell nightre...@hotmail.com wrote: Tim Dunphy wrote: hey listers!! sorry for all the trouble.. just as an FYI it turned out to NOT be a DNS issue at all!!! it was a routing issue... this command apparently did the trick... [r...@lbsd2:/usr/home/bluethundr]#/etc/rc.d/routing restart add net default: gateway 192.168.1.1 [r...@lbsd2:/usr/home/bluethundr]#ping google.com PING google.com (173.194.33.104): 56 data bytes 64 bytes from 173.194.33.104: icmp_seq=0 ttl=55 time=14.083 ms 64 bytes from 173.194.33.104: icmp_seq=1 ttl=55 time=14.537 ms 64 bytes from 173.194.33.104: icmp_seq=2 ttl=55 time=14.531 ms sometimes it's the simplest solutions under our noses. :) Sorry for not getting back any sooner, went camping in the mountains for a bit. Glad to hear it is resolved. The above is accomplished via this: defaultrouter=192.168.1.1 in your /etc/rc.conf. If you are using this machine as a gateway for the other machines and it is between your FIOS router and the other machines, the defaultrouter value for the other machines would point to the gateway box's internal facing address. -Mike ___ 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 -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!! ___ 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: Sendmail as client via smarthost and ssl
On Thu, 2010-10-28 at 14:49 +0200, Christopher Illies wrote: snip Not knowing much about sendmail, I tried google and more or less blindly followed suggestions. Here is what I have done so far, but sending email still does not work: 1. recompiled sendmail with sasl by adding the following lines to /etc/make.conf + installing security/cyrus-sasl2 + recompiling sendmail: SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl2 2. Adding the following line to my mc file (+ make all install restart): define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl dnl Set port define(`RELAY_MAILER_ARGS', `IPC $h 587') I can't speak to the validity of the technique that you're attempting to use, however the 'dnl' directive is an instruction to ignore the rest of the line (c.f. '#' in shell scripts, etc., in fact I believe 'dnl' is a mnemonic for something like delete to newline or discard to newline). In which case these are probably intended to be: define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl dnl Set port define(`RELAY_MAILER_ARGS', `IPC $h 587')dnl Wayne ___ 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
start slapd automatically
Hey listers, I have a quick one for ya.. I am running openLDAP 2.4 server on my freebsd box and it's coming along nicely. But whenever I reboot the box it doesn't start automatically. What's the best way to accomplish this? My /etc/defaults/rc.conf has the following entry: local_startup=/usr/local/etc/rc.d # startup script dirs. And slapd is living in the location referenced on that line: [r...@lbsd2:/usr/home/bluethundr]#ls -l /usr/local/etc/rc.d/slapd -r-xr-xr-x 1 root wheel 3591 Oct 9 21:37 /usr/local/etc/rc.d/slapd So I am under the impression that it should be starting there normally. Thanks for your help! -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!! ___ 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: Sendmail as client via smarthost and ssl
On Thu, 2010-10-28 at 14:49 +0200, Christopher Illies wrote: snip define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl dnl Set port define(`RELAY_MAILER_ARGS', `IPC $h 587') I can't speak to the validity of the technique that you're attempting to use, however the 'dnl' directive is an instruction to ignore the rest of the line (c.f. '#' in shell scripts, etc., in fact I believe 'dnl' is a mnemonic for something like delete to newline or discard to newline). In which case these are probably intended to be: define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl dnl Set port define(`RELAY_MAILER_ARGS', `IPC $h 587')dnl Wayne Yes, you are right. This is not only how these lines are intended to be, this is how they actually look like. Some newlines were deleted while copy-and-pasting these lines. Sorry for the confusion. Christopher ___ 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: start slapd automatically
Tim Dunphy bluethu...@gmail.com writes: I have a quick one for ya.. I am running openLDAP 2.4 server on my freebsd box and it's coming along nicely. But whenever I reboot the box it doesn't start automatically. What's the best way to accomplish this? My /etc/defaults/rc.conf has the following entry: local_startup=/usr/local/etc/rc.d # startup script dirs. And slapd is living in the location referenced on that line: [r...@lbsd2:/usr/home/bluethundr]#ls -l /usr/local/etc/rc.d/slapd -r-xr-xr-x 1 root wheel 3591 Oct 9 21:37 /usr/local/etc/rc.d/slapd So I am under the impression that it should be starting there normally. You probably missed the rc.conf entry, described in the message that was printed when you installed the port. Specifically: In order to run the LDAP server, you need to edit %%PREFIX%%/etc/openldap/slapd.conf to suit your needs and add the following lines to /etc/rc.conf: slapd_enable=YES slapd_flags='-h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/;' slapd_sockets=/var/run/openldap/ldapi Then start the server with %%PREFIX%%/etc/rc.d/slapd start or reboot. Where %%PREFIX%% is presumably /usr/local. ___ 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] writing filters in sh
On Thu, Oct 28, 2010 at 08:11:48AM -0700, Chip Camden wrote: Here's a way to do what you're wanting to do. Unfortunately, it isn't a generalized, single construct: #!/bin/sh if [ $# -ge 1 ];then exec cat $@ | $0 exit fi while read data; do echo $data done My lame attempts to generalize the first paragraph into an alias, function, or shell script have met with disappointment. I was hoping for a generalized, simple idiom for this, rather than needing to implement it myself, for demonstration purposes (and for easy reuse later, of course). Your solution does not exactly fit my preferences for simplicity, but I might include it in an article I'm writing anyway. It's simple and readable enough that it should not clutter up the article much. I tested it for some simple use cases, and it works well. Thanks for saving me a little trouble. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpizZeoyZjA6.pgp Description: PGP signature
mediatomb and m3u issues
Hi, This is for any mediatomb users. I recently installed Mediatomb with mencoder. Everything works solid on the video side of things.. I can stream video from my FreeBSD machine to my PS3 without any issue. The only issue I see is when I add my music to the mediatomb db. I keep getting a segmentaion fault: Oct 27 17:10:57 hbca kernel: pid 92235 (mediatomb), uid 1001: exited on signal 11 (core dumped) Soon as mediatomb crashes, I check the last file it crashed on, usually a .m3u and remove that .m3u file and then it add the files to the db fine... Anyone know of another workaround?? Thanks, vic ___ 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] writing filters in sh
Quoth Chad Perrin on Thursday, 28 October 2010: On Thu, Oct 28, 2010 at 08:11:48AM -0700, Chip Camden wrote: Here's a way to do what you're wanting to do. Unfortunately, it isn't a generalized, single construct: #!/bin/sh if [ $# -ge 1 ];then exec cat $@ | $0 exit fi while read data; do echo $data done My lame attempts to generalize the first paragraph into an alias, function, or shell script have met with disappointment. I was hoping for a generalized, simple idiom for this, rather than needing to implement it myself, for demonstration purposes (and for easy reuse later, of course). Your solution does not exactly fit my preferences for simplicity, but I might include it in an article I'm writing anyway. It's simple and readable enough that it should not clutter up the article much. I tested it for some simple use cases, and it works well. Thanks for saving me a little trouble. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] You're most welcome. Perhaps someone with more sh fu can transform the 'if' paragraph into a one-liner at least. When I tried to do so, I got an unexpected ; error. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpzmkVIUTbKw.pgp Description: PGP signature
Re: start slapd automatically
ok thanks.. this is what I tried: [r...@lbsd2:/var/run/openldap]#vi /usr/local/etc/rc.conf # -- sysinstall generated deltas -- # Sun Aug 15 18:54:08 2010 # Created: Sun Aug 15 18:54:08 2010 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter=192.168.1.1 hostname=LBSD2.summitnjhome.com ifconfig_bge0=inet 192.168.1.44 netmask 255.255.255.0 sshd_enable=YES apache22_enable=YES mysql_enable=YES hald_enable=YES dbus_enable=YES dbus_enable=YES hald_enable=YES local_startup={local_startup} /usr/local/kde4/etc/rc.d kde4_enable=YES named_enable=YES slapd_enable=YES slapd_enable=YES slapd_flags='-h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://192.168.1.44/;' slapd_sockets=/var/run/openldap/ldapi # -- sysinstall generated deltas -- # Thu Sep 16 00:12:09 2010 rpcbind_enable=YES nfs_server_enable=YES slapd_enable=YES [r...@lbsd2:/var/run/openldap]#/usr/local/etc/rc.d/slapd restart Stopping slapd. Waiting for PIDS: 6701. Starting slapd. [r...@lbsd2:/var/run/openldap]#lsof -U | grep slapd slapd 6824 ldap3u unix 0xc895 0t0 -0xc46cb19c slapd 6824 ldap3u unix 0xc895 0t0 -0xc46cb19c [r...@lbsd2:/var/run/openldap]#ls -lh /var/run/openldap/ total 8 -rw-r--r-- 1 ldap ldap 0B Oct 28 12:10 ldapi -rw-r--r-- 1 ldap ldap42B Oct 28 12:15 slapd.args -rw-r--r-- 1 ldap ldap 5B Oct 28 12:15 slapd.pid [r...@lbsd2:/var/run/openldap]#cat /var/run/openldap/ldapi [r...@lbsd2:/var/run/openldap]# I'm not sure why the socket file is empty at the moment..but I have verified that openLDAP is functioning...I can bounce around the network easily by logging in as the LDAP users... can't actually reboot the machine right now, but hopefully this should work. I'll give a shout the next time I reboot if it doesn't start slapd as expected. thanks! On Thu, Oct 28, 2010 at 11:53 AM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Tim Dunphy bluethu...@gmail.com writes: I have a quick one for ya.. I am running openLDAP 2.4 server on my freebsd box and it's coming along nicely. But whenever I reboot the box it doesn't start automatically. What's the best way to accomplish this? My /etc/defaults/rc.conf has the following entry: local_startup=/usr/local/etc/rc.d # startup script dirs. And slapd is living in the location referenced on that line: [r...@lbsd2:/usr/home/bluethundr]#ls -l /usr/local/etc/rc.d/slapd -r-xr-xr-x 1 root wheel 3591 Oct 9 21:37 /usr/local/etc/rc.d/slapd So I am under the impression that it should be starting there normally. You probably missed the rc.conf entry, described in the message that was printed when you installed the port. Specifically: In order to run the LDAP server, you need to edit %%PREFIX%%/etc/openldap/slapd.conf to suit your needs and add the following lines to /etc/rc.conf: slapd_enable=YES slapd_flags='-h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/;' slapd_sockets=/var/run/openldap/ldapi Then start the server with %%PREFIX%%/etc/rc.d/slapd start or reboot. Where %%PREFIX%% is presumably /usr/local. -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!! ___ 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: okay, time to ask the wizards.
On Thu, Oct 28, 2010 at 03:18:02PM +1030, Wayne Sierke wrote: On Wed, 2010-10-27 at 18:16 -0700, Liontaur wrote: On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline kl...@thought.org wrote: I've got a very large file with paragraphs separated only by \n. How do I put a blank line _after_ each newline? Perhaps using sed? i'm definitely no sed expert but the substitute command would work, just substitute one \n with two? Mark Not quite. When considering sed(1), recall that: Normally, sed cyclically copies a line of input, not including its terminating newline character, into a pattern space, ... (then) copies the pattern space to the standard output, appending a newline, and deletes the pattern space. So there is no \n in the initial pattern space to be substituted. Characters can however be inserted at the end of the line (before the original \n) with: s/$/text to insert/ as Chad used in his perl solution. Unfortunately FreeBSD sed's substitute doesn't recognise \n as newline in a substitution, although it's possible to insert a literal newline character through various shell-dependent techniques. In this particular case however, sed does offer the pièce de résistance: sed G The operation is left as a learning exercise for the reader. Wayne Well, I hope this mouse and paste works across konsoles. I've had this stuff in my ~/.HowTo file for a couple years. I don't remember the % sed G bit, but it would've saved a lot of electrons. %%% sed howto's: FILE SPACING: # double space a file sed G # double space a file which already has blank lines in it. Output file # should contain no more than one blank line between lines of text. sed '/^$/d;G' # triple space a file sed 'G;G' Yup. Works. So there, gents, you've got it from wherever I got it from. thanks for the insights from ``y'all|you-all|you'n's|everybody'' gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: okay, time to ask the wizards.
On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote: From: Gary Kline kl...@thought.org To: FreeBSD Mailing List freebsd-questions@freebsd.org Cc: Subject: okay, time to ask the wizards. I've got a very large file with paragraphs separated only by \n. How do I put a blank line _after_ each newline? have you tried something as simple as sed -e 's/\n//' infile outfile -or- awk '{print; print ;}' infile -- There's another way, using awk. :-) gary ___ 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 -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Jabber/XXMP suggestions?
What are your recommendations for a Jabber server? I've tried to get jabberd (2) installed but had PAM issues with it; previously ran openfire but wasn't happy with it running in Java and the same goes, now, with ejabberd which I haven't installed but also runs on Java. Not a lot of users, but I'd like to have SSL and the possibility of a guest account to hook through my website to do customer support when I'm online. I'll worry about how to make that happen later. Thanks, Ryan___ 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
Resetting the sound system
Dear list, the audio software I use sometimes seems to handle unappropriately its input and leave the sound system in a strange state. When this happens, the lowest frequencies of the played sound are very attenuated and what is still audible sounds unpleasantly metallic. Rebooting the machine immediately brings up the sound system in shape again, but it would be nice if they were a more sensible way to reset it! Here are the relevant lines of `dmesg`: pcm0: VIA VT8237 port 0xe100-0xe1ff irq 22 at device 17.5 on pci0 pcm0: [ITHREAD] pcm0: VIA Technologies VIA1617A AC97 Codec pcm0: VIA DXS Enabled: DXS 4 / SGD 1 / REC 1 Best regards, Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:Port update problem?
Fetch the current INDEX as well, or build a new INDEX, that happens when there isn't a proper INDEX. Also take a look at the FreeBSD Handbook Chapter 5 and the man page for portsnap. ___ 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: okay, time to ask the wizards.
On Thu, 2010-10-28 at 09:31 -0700, Gary Kline wrote: On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote: From: Gary Kline kl...@thought.org To: FreeBSD Mailing List freebsd-questions@freebsd.org Cc: Subject: okay, time to ask the wizards. I've got a very large file with paragraphs separated only by \n. How do I put a blank line _after_ each newline? have you tried something as simple as sed -e 's/\n//' infile outfile -or- awk '{print; print ;}' infile -- There's another way, using awk. :-) awk '{print $0\n}' ^_^ gary ___ 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 -- Cheers, Devin Teske - CONTACT INFORMATION - Business Solutions Consultant II FIS - fisglobal.com 510-735-5650 Mobile 510-621-2038 Office 510-621-2020 Office Fax 909-477-4578 Home/Fax devin.te...@fisglobal.com - LEGAL DISCLAIMER - This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. - FUN STUFF - -BEGIN GEEK CODE BLOCK- Version 3.1 GAT/CS d(+) s: a- C++() UB$ P++() L++() !E--- W++ N? o? K- w O M+ V- PS+ PE Y+ PGP- t(+) 5? X+(++) R++ tv(+) b+(++) DI+(++) D(+) G+++ e+ h r++ y+ --END GEEK CODE BLOCK-- http://www.geekcode.com/ - END TRANSMISSION - ___ 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
slightly OT... .
First, since abiword and OOo both work across many platforms, this isn't a FreeBSD question, but humor me anyway. A [long] while ago I checked on the OOOForums list and got the howto's of changing this into ``this'' in openoffice. [[And 'this into `this': it's a two-fer]]. Has anybody tried this with abiword?? Clues, tips please? (Figure I'll ask here first.) My ascii-to-markup program does the same thing, but only for double-quotes since the fact that the zillions of contractions like can't, would've, and informal english like So: howzit hangin'? gave me *many* second thoughts. 1) Does anybody onlist have any idea howto turn 'this' into lsquo' ? In the HTML ampersand chars list, that's what it is called. Using the ampersand and ints it is #8286; -- minus the quotes, of course. 2) Iwould like some clues howto automate this either via abiword OR algorithm. It took some large N days back in 1994 when I first hacked atom to realize that I would have to use recursion to get the left|beginning and right|closing double quotes. 3) Or should I give up and do this by eyeball?! tia, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:Port update problem?
Fetch the current INDEX as well, that happens when there isn't a proper INDEX. Also take a look at the FreeBSD Handbook Chapter 5 and the man page for portsnap ___ 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] writing filters in sh
On Wed, 2010-10-27 at 15:28 -0600, Chad Perrin wrote: I know that in sh you can get the contents out of files specified as command line arguments: while read data; do echo $data done $@ I know you can also get the contents of files from pipes and redirects: while read data; do echo $data done In Perl, you can use a single construct to do both and, unlike the first sh example, it can also take multiple filenames as arguments and effectively concatenate their contents: while () { print $_; } I'm not exactly an *expert* in sh, in part because when things start getting interesting while I'm writing shell scripts I tend to just use a more robust language like Perl. Please let me know if there's some way to use a simple idiom like the Perl example to get the same results in sh. see here: http://druidbsd.sf.net/download/sysrc.txt For example (NOTE: this is just an example -- the function itself is inefficient when one considers instead `tail -r file' and `tail -r file' and `cat file | tail -r', though the function serves as a good example of how to achieve what you want): # ... | lrev # lrev $file ... # # Reverse lines of input. Unlike rev(1) which reverses the ordering of # characters on a single line, this function instead reverses the line # sequencing. # # For example, the following input: # # Line 1 # Line 2 # Line 3 # # Becomes reversed in the following manner: # # Line 3 # Line 2 # Line 1 # lrev() { local stdin_rev= if [ $# -gt 0 ]; then # # Reverse lines from files passed as positional arguments. # while [ $# -gt 0 ]; do local file=$1 [ -f $file ] lrev $file shift 1 done else # # Reverse lines from standard input # while read -r LINE; do stdin_rev=$LINE $stdin_rev done fi echo -n $stdin_rev } -- Cheers, Devin Teske - CONTACT INFORMATION - Business Solutions Consultant II FIS - fisglobal.com 510-735-5650 Mobile 510-621-2038 Office 510-621-2020 Office Fax 909-477-4578 Home/Fax devin.te...@fisglobal.com - LEGAL DISCLAIMER - This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. - END TRANSMISSION - ___ 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] writing filters in sh
On Thu, 28 Oct 2010 09:17:12 -0700, Chip Camden sterl...@camdensoftware.com wrote: Perhaps someone with more sh fu can transform the 'if' paragraph into a one-liner at least. When I tried to do so, I got an unexpected ; error. Not tested, but this should do the trick: #!/bin/sh if [ $# -ge 1 ] ( exec cat $@ | $0; exit ) while read data; do echo $data; done The ; denotes a line break, means that you can use EITHER ; or a newline. In the original construct, if [ $# -ge 1 ]; then exec cat $@ | $0 exit fi you can change the ; into if [ $# -ge 1 ] then exec cat $@ | $0 exit fi which is often seen in scripts. In this case, no ; is required (or even allowed). The same rule applies for the while/do/done iterator. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Jabber/XXMP suggestions?
ejabberd is erlang not java. I used it without any problems for some years Rodrigo On Thu, 28 Oct 2010 11:28:48 -0500 Ryan Coleman edi...@d3photography.com wrote: What are your recommendations for a Jabber server? I've tried to get jabberd (2) installed but had PAM issues with it; previously ran openfire but wasn't happy with it running in Java and the same goes, now, with ejabberd which I haven't installed but also runs on Java. Not a lot of users, but I'd like to have SSL and the possibility of a guest account to hook through my website to do customer support when I'm online. I'll worry about how to make that happen later. Thanks, Ryan___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: okay, time to ask the wizards.
Quoth Devin Teske on Thursday, 28 October 2010: On Thu, 2010-10-28 at 09:31 -0700, Gary Kline wrote: On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote: From: Gary Kline kl...@thought.org To: FreeBSD Mailing List freebsd-questions@freebsd.org Cc: Subject: okay, time to ask the wizards. I've got a very large file with paragraphs separated only by \n. How do I put a blank line _after_ each newline? have you tried something as simple as sed -e 's/\n//' infile outfile -or- awk '{print; print ;}' infile -- There's another way, using awk. :-) awk '{print $0\n}' ^_^ Birdie -- but, sed G is an eagle. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgp9qhMaK4X6u.pgp Description: PGP signature
Re: Port update problem?
On 10/28/10 17:56, Doug Spangler wrote: Fetch the current INDEX as well, that happens when there isn't a proper INDEX. Also take a look at the FreeBSD Handbook Chapter 5 and the man page for portsnap The command (it's portsnap wrapped up with start finish time messages that can be run from cron) has worked perfectly correctly for weeks, with no problems. What I'm interested in is why it failed this time when it seemed to behave no differently from any time before, with no error messages. BTW, Handbook contents: 5 The X Window System Methinks you mean Chapter 4, which I'm familiar with, ditto portsnap. I switched to using it rather than csup months ago, and it's been faultless until now. I probably should have copied cperciva on the initial post. -- Although the wombat is real and the dragon is not, few know what a wombat looks like, but everyone knows what a dragon looks like. -- Avram Davidson, _Adventures in Unhistory_ ___ 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] writing filters in sh
On Thu, 28 Oct 2010 19:28:26 +0200, Polytropon free...@edvax.de wrote: On Thu, 28 Oct 2010 09:17:12 -0700, Chip Camden sterl...@camdensoftware.com wrote: Perhaps someone with more sh fu can transform the 'if' paragraph into a one-liner at least. When I tried to do so, I got an unexpected ; error. Not tested, but this should do the trick: #!/bin/sh if [ $# -ge 1 ] ( exec cat $@ | $0; exit ) while read data; do echo $data; done Attention - does NOT work! Maybe my sh fu is just shhh foo. :-) #!/bin/sh [ $# -ge 1 ] ( exec cat $@ | $0; exit ) while read data; do echo $data; done THIS is better. You can see that if has been removed, leaving a call to the program test (/bin/test is /bin/[), as long as sh does not use a built-in test or [ mechanism. The if is not neccessary here, as the if-then-fi construct is implicated by the use of . Tested. Works. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: [OT] writing filters in sh
Quoth Polytropon on Thursday, 28 October 2010: On Thu, 28 Oct 2010 09:17:12 -0700, Chip Camden sterl...@camdensoftware.com wrote: Perhaps someone with more sh fu can transform the 'if' paragraph into a one-liner at least. When I tried to do so, I got an unexpected ; error. Not tested, but this should do the trick: #!/bin/sh if [ $# -ge 1 ] ( exec cat $@ | $0; exit ) while read data; do echo $data; done The ; denotes a line break, means that you can use EITHER ; or a newline. In the original construct, if [ $# -ge 1 ]; then exec cat $@ | $0 exit fi you can change the ; into if [ $# -ge 1 ] then exec cat $@ | $0 exit fi which is often seen in scripts. In this case, no ; is required (or even allowed). The same rule applies for the while/do/done iterator. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Tested, and it had a bug ('if' is extraneous). It also waits for input even if it has file arguments. But it's easily corrected: #!/bin/sh [ $# -ge 1 ] exec cat $@ exit | $0 while read data; do echo $data; done The first line can be converted to an alias, like so: alias inargs='[ $# -ge 1 ] exec cat $@ exit | $0' So, if you add the alias to your profile, you can use it to enable the behavior in any script: #!/bin/sh inargs while read data; do echo $data; done Thanks for the pointer in the right direction. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpLgX2WMBYbo.pgp Description: PGP signature
Re: [OT] writing filters in sh
On Thu, 28 Oct 2010 09:17:12 -0700, Chip Camden sterl...@camdensoftware.com said: C Perhaps someone with more sh fu can transform the 'if' paragraph into a C one-liner at least. When I tried to do so, I got an unexpected ; error. Try this: #!/bin/sh test $# -ge 1 cat $@ | exec $0 exit 0 IFS=$'\n' while read data; do echo $data done exit 0 Resetting IFS is only necessary if you want to preserve whitespace in each line. Putting $data in quotes prevents any shell metacharacters from being expanded. -- Karl Vogel I don't speak for the USAF or my company Sign in a New York drugstore: We dispense with accuracy ___ 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: Jabber/XXMP suggestions?
Well, it's requiring that I download updates from Sun... so I'm avoiding it from past experience with trying to navigate their website. I'll put it back on the list. On Oct 28, 2010, at 12:30 PM, Rodrigo Gonzalez wrote: ejabberd is erlang not java. I used it without any problems for some years Rodrigo On Thu, 28 Oct 2010 11:28:48 -0500 Ryan Coleman edi...@d3photography.com wrote: What are your recommendations for a Jabber server? I've tried to get jabberd (2) installed but had PAM issues with it; previously ran openfire but wasn't happy with it running in Java and the same goes, now, with ejabberd which I haven't installed but also runs on Java. Not a lot of users, but I'd like to have SSL and the possibility of a guest account to hook through my website to do customer support when I'm online. I'll worry about how to make that happen later. Thanks, Ryan___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ 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] writing filters in sh
Quoth Karl Vogel on Thursday, 28 October 2010: On Thu, 28 Oct 2010 09:17:12 -0700, Chip Camden sterl...@camdensoftware.com said: C Perhaps someone with more sh fu can transform the 'if' paragraph into a C one-liner at least. When I tried to do so, I got an unexpected ; error. Try this: #!/bin/sh test $# -ge 1 cat $@ | exec $0 exit 0 IFS=$'\n' while read data; do echo $data done exit 0 Resetting IFS is only necessary if you want to preserve whitespace in each line. Putting $data in quotes prevents any shell metacharacters from being expanded. -- Karl Vogel I don't speak for the USAF or my company Sign in a New York drugstore: We dispense with accuracy ___ 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 Much better than my latest version, which always invokes $0. As an alias: alias inargs='[ $# -ge 1 ] cat $@ | exec $0 exit' #!/bin/sh inargs while read data; do echo $data; done -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpRPZvoCdAhv.pgp Description: PGP signature
Re: Port update problem?
You are correct I meant chapter 4. Just out of curiosity is your INDEX intact or is that the cause of the odd behavior of /etc/periodic/weekly/400.status-pkg, portion of the problem. I understand that it is not the root cause of your problem just a symptom. On Thu, 2010-10-28 at 18:41 +0100, Arthur Chance wrote: On 10/28/10 17:56, Doug Spangler wrote: Fetch the current INDEX as well, that happens when there isn't a proper INDEX. Also take a look at the FreeBSD Handbook Chapter 5 and the man page for portsnap The command (it's portsnap wrapped up with start finish time messages that can be run from cron) has worked perfectly correctly for weeks, with no problems. What I'm interested in is why it failed this time when it seemed to behave no differently from any time before, with no error messages. BTW, Handbook contents: 5 The X Window System Methinks you mean Chapter 4, which I'm familiar with, ditto portsnap. I switched to using it rather than csup months ago, and it's been faultless until now. I probably should have copied cperciva on the initial post. ___ 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] writing filters in sh
On Thu, 2010-10-28 at 09:17 -0700, Chip Camden wrote: Quoth Chad Perrin on Thursday, 28 October 2010: On Thu, Oct 28, 2010 at 08:11:48AM -0700, Chip Camden wrote: Here's a way to do what you're wanting to do. Unfortunately, it isn't a generalized, single construct: #!/bin/sh if [ $# -ge 1 ];then exec cat $@ | $0 exit fi while read data; do echo $data done My lame attempts to generalize the first paragraph into an alias, function, or shell script have met with disappointment. Here you go: alias myfilter=/bin/sh -c ''myfilter() { if [ $# -gt 0 ]; then while [ $# -gt 0 ]; do [ -f $1 ] myfilter $1; shift 1; done; else while read LINE; do : some transform ; echo $LINE; done; fi; }; myfilter $@'' -- /bin/sh The above is to be entered as a single command-line. NOTE: If you're using either csh or tcsh, you only need to make one change... change alias myfilter=... to instead alias myfilter ... (that's right, just change the equals sign to a space). Here's a demo: $ printf Line 1\nLine 2\nLine 3\n | myfilter Line 1 Line 2 Line 3 $ head -2 /etc/rc.conf | myfilter # This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. $ myfilter /etc/rc.conf | head -2 # This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. $ cat /etc/rc.conf | myfilter | head -2 # This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. $ myfilter somefile Line 1 Line 2 Line 3 ^D $ cat somefile Line 1 Line 2 Line 3 I was hoping for a generalized, simple idiom for this, rather than needing to implement it myself, for demonstration purposes (and for easy reuse later, of course). Your solution does not exactly fit my preferences for simplicity, but I might include it in an article I'm writing anyway. It's simple and readable enough that it should not clutter up the article much. I tested it for some simple use cases, and it works well. Thanks for saving me a little trouble. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] You're most welcome. Perhaps someone with more sh fu can transform the 'if' paragraph into a one-liner at least. When I tried to do so, I got an unexpected ; error. -- Cheers, Devin Teske - CONTACT INFORMATION - Business Solutions Consultant II FIS - fisglobal.com 510-735-5650 Mobile 510-621-2038 Office 510-621-2020 Office Fax 909-477-4578 Home/Fax devin.te...@fisglobal.com - LEGAL DISCLAIMER - This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. - END TRANSMISSION - ___ 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: Jabber/XXMP suggestions?
I didnt remember that, checking erlang port it has # The Java applications that are part of the Erlang distribution are # not strictly necessary - it is included for completeness sake. A # problem with the Erlang build procedure is that it only checks if # javac is in the regular path - and then assumes that all of the jdk # utilities is in the path as well. The only way to make sure that # this is the case (that I could think of at least) was to make sure # ${JAVA_HOME}/bin is added to the PATH, using the *_ENV macros. .if !defined(WITHOUT_JAVA) USE_JAVA= yes JAVA_VERSION= 1.4+ # Make sure ${JAVA_HOME}/bin is in the path CONFIGURE_ENV+= PATH=${PATH}:${JAVA_HOME}/bin MAKE_ENV+= PATH=${PATH}:${JAVA_HOME}/bin SCRIPT_ENV+=PATH=${PATH}:${JAVA_HOME}/bin .endif So, you should be able to avoid java (not required for ejabberd) with WITHOUT_JAVA I hope this help On Thu, 28 Oct 2010 12:53:29 -0500 Ryan Coleman edi...@d3photography.com wrote: Well, it's requiring that I download updates from Sun... so I'm avoiding it from past experience with trying to navigate their website. I'll put it back on the list. On Oct 28, 2010, at 12:30 PM, Rodrigo Gonzalez wrote: ejabberd is erlang not java. I used it without any problems for some years Rodrigo On Thu, 28 Oct 2010 11:28:48 -0500 Ryan Coleman edi...@d3photography.com wrote: What are your recommendations for a Jabber server? I've tried to get jabberd (2) installed but had PAM issues with it; previously ran openfire but wasn't happy with it running in Java and the same goes, now, with ejabberd which I haven't installed but also runs on Java. Not a lot of users, but I'd like to have SSL and the possibility of a guest account to hook through my website to do customer support when I'm online. I'll worry about how to make that happen later. Thanks, Ryan___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
adding user ldif to ldap
hi list.. I am trying to add an ldif with my users that I have derived from /etc/passwd. for some reason ldapadd is choking on the root user... may I ask how best to correct this? Here is the error: LBSD2# ldapadd -x -D cn=Manager,dc=summitnjhome,dc=com -w localG30rg3T0wn -f /tmp/passwd.ldif adding new entry uid=root,ou=People,dc=summitnjhome,dc=com ldap_add: Invalid syntax (21) additional info: objectClass: value #6 invalid per syntax Here is the entry that seems to be the problem: dn: uid=root,ou=People,dc=summitnjhome,dc=com uid: root cn: Enoch givenName: Enoch sn: mail: r...@summitnjhome.com mailRoutingAddress: r...@mail.summitnjhome.com mailHost: mail.summitnjhome.com objectClass: inetLocalMailRecipient objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: posixAccount objectClass: top objectClass: kerberosSecurityObject userPassword: {crypt}* krbName: r...@summitnjhome.com loginShell: /bin/csh uidNumber: 0 gidNumber: 0 homeDirectory: /root gecos: Enoch And here are the schemas I have included in my slapd.conf: LBSD2# cat /usr/local/etc/openldap/slapd.conf # # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. # include /usr/local/etc/openldap/schema/core.schema include /usr/local/etc/openldap/schema/cosine.schema include /usr/local/etc/openldap/schema/inetorgperson.schema include /usr/local/etc/openldap/schema/openldap.schema include /usr/local/etc/openldap/schema/sudoers.schema include /usr/local/etc/openldap/schema/nis.schema include /usr/local/etc/openldap/schema/misc.schema Thanks for your help! -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!! ___ 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: Jabber/XXMP suggestions?
excellent. I didn't dig in too deeply last night when I was trying to install it. On Oct 28, 2010, at 1:23 PM, Rodrigo Gonzalez wrote: I didnt remember that, checking erlang port it has # The Java applications that are part of the Erlang distribution are # not strictly necessary - it is included for completeness sake. A # problem with the Erlang build procedure is that it only checks if # javac is in the regular path - and then assumes that all of the jdk # utilities is in the path as well. The only way to make sure that # this is the case (that I could think of at least) was to make sure # ${JAVA_HOME}/bin is added to the PATH, using the *_ENV macros. .if !defined(WITHOUT_JAVA) USE_JAVA= yes JAVA_VERSION= 1.4+ # Make sure ${JAVA_HOME}/bin is in the path CONFIGURE_ENV+= PATH=${PATH}:${JAVA_HOME}/bin MAKE_ENV+= PATH=${PATH}:${JAVA_HOME}/bin SCRIPT_ENV+=PATH=${PATH}:${JAVA_HOME}/bin .endif So, you should be able to avoid java (not required for ejabberd) with WITHOUT_JAVA I hope this help On Thu, 28 Oct 2010 12:53:29 -0500 Ryan Coleman edi...@d3photography.com wrote: Well, it's requiring that I download updates from Sun... so I'm avoiding it from past experience with trying to navigate their website. I'll put it back on the list. On Oct 28, 2010, at 12:30 PM, Rodrigo Gonzalez wrote: ejabberd is erlang not java. I used it without any problems for some years Rodrigo On Thu, 28 Oct 2010 11:28:48 -0500 Ryan Coleman edi...@d3photography.com wrote: What are your recommendations for a Jabber server? I've tried to get jabberd (2) installed but had PAM issues with it; previously ran openfire but wasn't happy with it running in Java and the same goes, now, with ejabberd which I haven't installed but also runs on Java. Not a lot of users, but I'd like to have SSL and the possibility of a guest account to hook through my website to do customer support when I'm online. I'll worry about how to make that happen later. Thanks, Ryan___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: slightly OT... .
Sorry: don't bother with this [below]; there weren't that many embedded quotes. By-hand worked fine. --g On Thu, Oct 28, 2010 at 10:12:38AM -0700, Gary Kline wrote: First, since abiword and OOo both work across many platforms, this isn't a FreeBSD question, but humor me anyway. A [long] while ago I checked on the OOOForums list and got the howto's of changing this into ``this'' in openoffice. [[And 'this into `this': it's a two-fer]]. Has anybody tried this with abiword?? Clues, tips please? (Figure I'll ask here first.) My ascii-to-markup program does the same thing, but only for double-quotes since the fact that the zillions of contractions like can't, would've, and informal english like So: howzit hangin'? gave me *many* second thoughts. 1) Does anybody onlist have any idea howto turn 'this' into lsquo' ? In the HTML ampersand chars list, that's what it is called. Using the ampersand and ints it is #8286; -- minus the quotes, of course. 2) Iwould like some clues howto automate this either via abiword OR algorithm. It took some large N days back in 1994 when I first hacked atom to realize that I would have to use recursion to get the left|beginning and right|closing double quotes. 3) Or should I give up and do this by eyeball?! tia, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ghostscript install problem
Lowell Gilbert wrote: Fred f...@blakemfg.com writes: Hello, I am trying to install ghostscript8 from ports on 8.0-RELEASE-p4. The build stops when /usr/ports/print/ghostscript8/work/ghostscript-8.64/epag-3.09/ert is to be installed in /usr/local/bin. The error is file not found. Error code 71. I tried going to the epag-3.09 directory: make clean make The following warnings are produced: ert.c: In function 'printUsageAndExit': ert.c:34: warning: incompatible implicit declaration of built-in function 'exit' ert.c: In function 'main': ert.c:52: warning: incompatible implicit declaration of built-in function 'malloc' ert.c:55: warning: incompatible implicit declaration of built-in function 'exit' ert.c:63: warning: incompatible implicit declaration of built-in function 'strlen' ert.c:73: warning: incompatible implicit declaration of built-in function 'exit' ert.c:82: warning: incompatible implicit declaration of built-in function 'exit' ert.c:87: warning: incompatible implicit declaration of built-in function 'exit' ert.c:116: warning: incompatible implicit declaration of built-in function 'exit' What can I do to resolve this problem? You could always start by updating your ports. At least that way, those of us with current versions of the port would be able to look at the same makefiles and so forth. That said, go back to the main port directory, make clean, make rmconfig, and build again; *don't* change the port options when given the choice (after all, the port did build on a clean system, so the problem's probably something you set up). Also make sure there's nothing relevant in /etc/make.conf. Another point: if you still have the problem after following this advice, copy-and-paste the actual errors, rather than trying to re-type it. Good luck. ___ 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 Ghostscript8 compiled and installed ok. It was probably the rmconfig that fixed it. I had unset a lot of options that were of no value to me. Maybe one or more of them are not really optional. Concerning the copy paste, root is not running X so there is no copy and paste. I tried redirecting error output from make with 2$HOME/make_error but make sees the redirection as an instruction it does not know how to do. Thanks for the help. Best regards, Fred ___ 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: ghostscript install problem
Fred f...@blakemfg.com writes: Ghostscript8 compiled and installed ok. It was probably the rmconfig that fixed it. I had unset a lot of options that were of no value to me. Maybe one or more of them are not really optional. Or more likely, optional but other options depend on them. Concerning the copy paste, root is not running X so there is no copy and paste. I tried redirecting error output from make with 2$HOME/make_error but make sees the redirection as an instruction it does not know how to do. Sounds like you're using a csh-style shell. Redirection is one of the things they do really badly. There are other options, like script(1) in the base system, or sysutils/screen in ports. ___ 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] writing filters in sh
I was hoping for a generalized, simple idiom for this, rather than needing to implement it myself, for demonstration purposes #!/bin/sh cat $@ | while read x do echo I saw $x done Sheesh. R's, John ___ 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] writing filters in sh
Quoth John Levine on Thursday, 28 October 2010: I was hoping for a generalized, simple idiom for this, rather than needing to implement it myself, for demonstration purposes #!/bin/sh cat $@ | while read x do echo I saw $x done Sheesh. R's, John ___ 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 stage_directionSmacks forehead as if starring in a V-8 commercial/stage_direction And of course, if the script does input in more than one place, you can enclose the entire section in parentheses after the pipe: cat $@ | ( read x ... read y ... select ans in a b c; do break; done ) -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpSZZpbI2Pws.pgp Description: PGP signature
ssh key authentication problem...
Can anyone help me debug an ssh key-based authentication problem? I have an 8.1-R server running sshd, with one user account. On the server, I've used ssh-keygen to generate id_rsa and id_rsa.pub. On my laptop I then pulled the id_rsa.pub file over and: % cat id_rsa.pub .ssh/authorized_keys Now I try to login from the laptop (also 8.1-R) to the server. It pauses for a second and presents me with a 'Password:' prompt, so obviously the key authentication isn't working. He's a debugging chunk from sshd run with '-ddd' flags: debug1: PAM: initializing for peter debug1: userauth-request for user peter service ssh-connection method publickey debug1: attempt 1 failures 0 debug2: input_userauth_request: try method publickey debug1: test whether pkalg/pkblob are acceptable debug3: mm_key_allowed entering debug3: mm_request_send entering: type 20 debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED debug3: mm_request_receive_expect entering: type 21 debug3: mm_request_receive entering debug1: PAM: setting PAM_RHOST to 192.168.1.4 debug2: monitor_read: 45 used once, disabling now debug3: mm_request_receive entering debug3: monitor_read: checking request 3 debug3: mm_answer_authserv: service=ssh-connection, style= debug2: monitor_read: 3 used once, disabling now debug3: mm_request_receive entering debug3: monitor_read: checking request 20 debug3: mm_answer_keyallowed entering debug3: mm_answer_keyallowed: key_from_blob: 0x286067c0 debug1: trying public key file /home/peter/.ssh/authorized_keys debug1: fd 4 clearing O_NONBLOCK debug3: secure_filename: checking '/usr/home/peter/.ssh' debug3: secure_filename: checking '/usr/home/peter' debug3: secure_filename: terminating check at '/usr/home/peter' debug2: key not found debug1: trying public key file /home/peter/.ssh/authorized_keys2 Failed publickey for peter from 192.168.1.4 port 43046 ssh2 debug3: mm_answer_keyallowed: key 0x286067c0 is not allowed debug3: mm_request_send entering: type 21 debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa debug3: mm_request_receive entering debug1: userauth-request for user peter service ssh-connection method keyboard-interactive debug1: attempt 2 failures 1 debug2: input_userauth_request: try method keyboard-interactive debug1: keyboard-interactive devs Anyone suggest what I'm doing wrong? TIA. Peter Harrison. ___ 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: ssh key authentication problem...
On 10/28/10 3:39 PM, Peter Harrison wrote: Can anyone help me debug an ssh key-based authentication problem? I have an 8.1-R server running sshd, with one user account. On the server, I've used ssh-keygen to generate id_rsa and id_rsa.pub. On my laptop I then pulled the id_rsa.pub file over and: % cat id_rsa.pub .ssh/authorized_keys Either I'm having reading comprehension problems, or you've got things backwards. If you're trying to login into the server across the network, the id_rsa.pub file goes into .ssh/authorized_keys file on the server, and the id_rsa file lives on your laptop, all nicely secured with a passphrase in case somebody steals your laptop. --Jon Radel j...@radel.com
Re: ssh key authentication problem...
On 28 October 2010 20:39, Peter Harrison peter.piggy...@virgin.net wrote: Can anyone help me debug an ssh key-based authentication problem? I have an 8.1-R server running sshd, with one user account. On the server, I've used ssh-keygen to generate id_rsa and id_rsa.pub. On my laptop I then pulled the id_rsa.pub file over and: % cat id_rsa.pub .ssh/authorized_keys Now I try to login from the laptop (also 8.1-R) to the server. It pauses for a second and presents me with a 'Password:' prompt, so obviously the key authentication isn't working. He's a debugging chunk from sshd run with '-ddd' flags: debug1: PAM: initializing for peter debug1: userauth-request for user peter service ssh-connection method publickey debug1: attempt 1 failures 0 debug2: input_userauth_request: try method publickey debug1: test whether pkalg/pkblob are acceptable debug3: mm_key_allowed entering debug3: mm_request_send entering: type 20 debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED debug3: mm_request_receive_expect entering: type 21 debug3: mm_request_receive entering debug1: PAM: setting PAM_RHOST to 192.168.1.4 debug2: monitor_read: 45 used once, disabling now debug3: mm_request_receive entering debug3: monitor_read: checking request 3 debug3: mm_answer_authserv: service=ssh-connection, style= debug2: monitor_read: 3 used once, disabling now debug3: mm_request_receive entering debug3: monitor_read: checking request 20 debug3: mm_answer_keyallowed entering debug3: mm_answer_keyallowed: key_from_blob: 0x286067c0 debug1: trying public key file /home/peter/.ssh/authorized_keys debug1: fd 4 clearing O_NONBLOCK debug3: secure_filename: checking '/usr/home/peter/.ssh' debug3: secure_filename: checking '/usr/home/peter' debug3: secure_filename: terminating check at '/usr/home/peter' debug2: key not found debug1: trying public key file /home/peter/.ssh/authorized_keys2 Failed publickey for peter from 192.168.1.4 port 43046 ssh2 debug3: mm_answer_keyallowed: key 0x286067c0 is not allowed debug3: mm_request_send entering: type 21 debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa debug3: mm_request_receive entering debug1: userauth-request for user peter service ssh-connection method keyboard-interactive debug1: attempt 2 failures 1 debug2: input_userauth_request: try method keyboard-interactive debug1: keyboard-interactive devs Anyone suggest what I'm doing wrong? TIA. Peter Harrison. ___ 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 you have the setup the keys the wrong way around by the sound of it. The ssh server should have the public keys only in the authorized_keys files, and your client/desktop should have the private keys in your ~/.ssh ___ 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: ssh key authentication problem...
You have to do the other way generate at laptop, put in authorized_key at server the public key and then you will be able to ssh to server from laptop using key authorization On Thu, 28 Oct 2010 20:39:53 +0100 Peter Harrison peter.piggy...@virgin.net wrote: Can anyone help me debug an ssh key-based authentication problem? I have an 8.1-R server running sshd, with one user account. On the server, I've used ssh-keygen to generate id_rsa and id_rsa.pub. On my laptop I then pulled the id_rsa.pub file over and: % cat id_rsa.pub .ssh/authorized_keys Now I try to login from the laptop (also 8.1-R) to the server. It pauses for a second and presents me with a 'Password:' prompt, so obviously the key authentication isn't working. He's a debugging chunk from sshd run with '-ddd' flags: debug1: PAM: initializing for peter debug1: userauth-request for user peter service ssh-connection method publickey debug1: attempt 1 failures 0 debug2: input_userauth_request: try method publickey debug1: test whether pkalg/pkblob are acceptable debug3: mm_key_allowed entering debug3: mm_request_send entering: type 20 debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED debug3: mm_request_receive_expect entering: type 21 debug3: mm_request_receive entering debug1: PAM: setting PAM_RHOST to 192.168.1.4 debug2: monitor_read: 45 used once, disabling now debug3: mm_request_receive entering debug3: monitor_read: checking request 3 debug3: mm_answer_authserv: service=ssh-connection, style= debug2: monitor_read: 3 used once, disabling now debug3: mm_request_receive entering debug3: monitor_read: checking request 20 debug3: mm_answer_keyallowed entering debug3: mm_answer_keyallowed: key_from_blob: 0x286067c0 debug1: trying public key file /home/peter/.ssh/authorized_keys debug1: fd 4 clearing O_NONBLOCK debug3: secure_filename: checking '/usr/home/peter/.ssh' debug3: secure_filename: checking '/usr/home/peter' debug3: secure_filename: terminating check at '/usr/home/peter' debug2: key not found debug1: trying public key file /home/peter/.ssh/authorized_keys2 Failed publickey for peter from 192.168.1.4 port 43046 ssh2 debug3: mm_answer_keyallowed: key 0x286067c0 is not allowed debug3: mm_request_send entering: type 21 debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa debug3: mm_request_receive entering debug1: userauth-request for user peter service ssh-connection method keyboard-interactive debug1: attempt 2 failures 1 debug2: input_userauth_request: try method keyboard-interactive debug1: keyboard-interactive devs Anyone suggest what I'm doing wrong? TIA. Peter Harrison. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ssh key authentication problem...
On 28 October 2010 22:13, krad kra...@gmail.com wrote: On 28 October 2010 20:39, Peter Harrison peter.piggy...@virgin.netwrote: Can anyone help me debug an ssh key-based authentication problem? I have an 8.1-R server running sshd, with one user account. On the server, I've used ssh-keygen to generate id_rsa and id_rsa.pub. On my laptop I then pulled the id_rsa.pub file over and: % cat id_rsa.pub .ssh/authorized_keys Now I try to login from the laptop (also 8.1-R) to the server. It pauses for a second and presents me with a 'Password:' prompt, so obviously the key authentication isn't working. He's a debugging chunk from sshd run with '-ddd' flags: debug1: PAM: initializing for peter debug1: userauth-request for user peter service ssh-connection method publickey debug1: attempt 1 failures 0 debug2: input_userauth_request: try method publickey debug1: test whether pkalg/pkblob are acceptable debug3: mm_key_allowed entering debug3: mm_request_send entering: type 20 debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED debug3: mm_request_receive_expect entering: type 21 debug3: mm_request_receive entering debug1: PAM: setting PAM_RHOST to 192.168.1.4 debug2: monitor_read: 45 used once, disabling now debug3: mm_request_receive entering debug3: monitor_read: checking request 3 debug3: mm_answer_authserv: service=ssh-connection, style= debug2: monitor_read: 3 used once, disabling now debug3: mm_request_receive entering debug3: monitor_read: checking request 20 debug3: mm_answer_keyallowed entering debug3: mm_answer_keyallowed: key_from_blob: 0x286067c0 debug1: trying public key file /home/peter/.ssh/authorized_keys debug1: fd 4 clearing O_NONBLOCK debug3: secure_filename: checking '/usr/home/peter/.ssh' debug3: secure_filename: checking '/usr/home/peter' debug3: secure_filename: terminating check at '/usr/home/peter' debug2: key not found debug1: trying public key file /home/peter/.ssh/authorized_keys2 Failed publickey for peter from 192.168.1.4 port 43046 ssh2 debug3: mm_answer_keyallowed: key 0x286067c0 is not allowed debug3: mm_request_send entering: type 21 debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa debug3: mm_request_receive entering debug1: userauth-request for user peter service ssh-connection method keyboard-interactive debug1: attempt 2 failures 1 debug2: input_userauth_request: try method keyboard-interactive debug1: keyboard-interactive devs Anyone suggest what I'm doing wrong? TIA. Peter Harrison. ___ 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 you have the setup the keys the wrong way around by the sound of it. The ssh server should have the public keys only in the authorized_keys files, and your client/desktop should have the private keys in your ~/.ssh note the server does have private and public keys, but they are hosts keys not user ones and are stored in /etc/ssh/. You dont normally have to generate these as the rc scripts take card of that on the 1st invocation ___ 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: ssh key authentication problem...
On Thu, Oct 28, 2010 at 12:39 PM, Peter Harrison peter.piggy...@virgin.net wrote: Can anyone help me debug an ssh key-based authentication problem? I have an 8.1-R server running sshd, with one user account. On the server, I've used ssh-keygen to generate id_rsa and id_rsa.pub. On my laptop I then pulled the id_rsa.pub file over and: % cat id_rsa.pub .ssh/authorized_keys i assume you copied it to ~/.ssh/authorized_keys or $HOME/.ssh/authorized_keys? other things worth checking are permissions of ~/.ssh and the files contained in there? man 1 ssh details permissions, but briefly: ~/.ssh/authorized_keys Lists the public keys (RSA/DSA) that can be used for logging in as this user. The format of this file is described in the sshd(8) manual page. This file is not highly sensitive, but the recommended permissions are read/write for the user, and not accessible by others. it also covers other files as well. HTH -pete -- pete wright www.nycbug.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
OT: What's going on with gcc?
I seems like there are changes every other day. And on my old machine it takes about eight hours to recompile. ___ 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: What's going on with gcc?
On Thu, Oct 28, 2010 at 5:06 PM, Arthur Barlow arthurbar...@gmail.comwrote: I seems like there are changes every other day. And on my old machine it takes about eight hours to recompile. /usr/ports/devel/ccache -- Adam Vande More ___ 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: What's going on with gcc?
On Oct 28, 2010, at 3:06 PM, Arthur Barlow wrote: I[t] seems like there are changes every other day. And on my old machine it takes about eight hours to recompile. The base system compiler doesn't change that often (unless you are tracking -CURRENT), so you probably are asking about one of the lang/gcc ports...? -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ssh key authentication problem...
Hi-- On Oct 28, 2010, at 12:39 PM, Peter Harrison wrote: debug1: trying public key file /home/peter/.ssh/authorized_keys debug1: fd 4 clearing O_NONBLOCK debug3: secure_filename: checking '/usr/home/peter/.ssh' debug3: secure_filename: checking '/usr/home/peter' debug3: secure_filename: terminating check at '/usr/home/peter' debug2: key not found It's likely that the permissions to the private key are wrong somewhere in the path. Something like chmod go-w / /usr /usr/home /usr/home/peter /usr/home/peter/.ssh /usr/home/peter/.ssh/id_rsa is likely to help Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: OT: What's going on with gcc?
On Thu, Oct 28, 2010 at 3:15 PM, Chuck Swiger cswi...@mac.com wrote: On Oct 28, 2010, at 3:06 PM, Arthur Barlow wrote: I[t] seems like there are changes every other day. And on my old machine it takes about eight hours to recompile. The base system compiler doesn't change that often (unless you are tracking -CURRENT), so you probably are asking about one of the lang/gcc ports...? -- -Chuck Yes, that's it. I'm running FBSD 8.1 and I check the ports with pkg_version -vIL= daily, and it seems there has been this almost constant version upgrade for the last couple of weeks. I use portupgrade to do my upgrades. ___ 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: What's going on with gcc?
On Oct 28, 2010, at 3:34 PM, Arthur Barlow wrote: Yes, that's it. I'm running FBSD 8.1 and I check the ports with pkg_version -vIL= daily, and it seems there has been this almost constant version upgrade for the last couple of weeks. I use portupgrade to do my upgrades. Hmm, updates seem to happen about once a week: http://www.freshports.org/lang/gcc42 [ last change 14 Aug 2010 ] http://www.freshports.org/lang/gcc44 [ last change 27 Oct 2010, 3 changes this month, 5 in Sept ] http://www.freshports.org/lang/gcc45 [ last change 24 Oct 2010, 3 changes this month, 6 in Sept ] http://www.freshports.org/lang/gcc46 [ last change 24 Oct 2010, 3 changes this month, 7 in Sept ] Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
mount_msdosfs -L ... [odd behaviour ?]
Hello :-) 'mount_msdosfs -L en_US.UTF-8 /dev/da0 local/mnt/' executed by a non root-user prints out the following mount_msdosfs: msdosfs_iconv: Operation not permitted and then stops with error 71 on console. Later, the same command, executed by the same user, completes correctly if some time before the root user has succesfully issued it and unmounted the device. Any clues ? Things I am probably missing ? Does Anyone else notice this (odd) behaviour (if it is odd) ? Thank you d * FreeBSD 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 /usr/obj/usr/src/sys/GENERIC i386 * http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/109024 , similar problem but dates 2007 / 2009 ... :-O ___ 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
mount_msdosfs -L ... [odd behaviour ?]
Hello :-) 'mount_msdosfs -L en_US.UTF-8 /dev/da0 local/mnt/' executed by a non root-user prints out the following mount_msdosfs: msdosfs_iconv: Operation not permitted and then stops with error 71 on console. Later, the same command, executed by the same user, completes correctly if some time before the root user has succesfully issued it and unmounted the device. Any clues ? Things I am probably missing ? Does Anyone else notice this (odd) behaviour (if it is odd) ? Thank you d * FreeBSD 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 /usr/obj/usr/src/sys/GENERIC i386 * http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/109024 , similar problem but dates 2007 / 2009 ... :-O ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mount_msdosfs -L ... [odd behaviour ?]
Hi, Dan-- On Oct 28, 2010, at 3:45 PM, dan wrote: 'mount_msdosfs -L en_US.UTF-8 /dev/da0 local/mnt/' executed by a non root-user prints out the following mount_msdosfs: msdosfs_iconv: Operation not permitted and then stops with error 71 on console. Later, the same command, executed by the same user, completes correctly if some time before the root user has succesfully issued it and unmounted the device. Any clues ? Things I am probably missing ? Does Anyone else notice this (odd) behaviour (if it is odd) ? It's probably coming from /usr/src/sbin/mount_msdosfs/mount_msdosfs.c: if (set_charset(iov, iovlen, cs_local, cs_dos) == -1) err(EX_OSERR, msdosfs_iconv); ...since set_charset() tries to load the msdosfs_iconv libiconv kernel modules: if (modfind(msdosfs_iconv) 0) if (kldload(msdosfs_iconv) 0 || modfind(msdosfs_iconv) 0) { warnx(cannot find or load \msdosfs_iconv\ kernel module); return (-1); } kldload() fails with EPERM if you are not root: [EPERM]You do not have access to read the file or link it with the kernel. You should be the root user to be able to use the kld system calls. Once root has loaded these modules, you can invoke mount_msdosfs as a normal user because they are already available. You can put kldload msdosfs_iconv into /etc/rc.local, or maybe tweak /boot/loader.conf to load these at boot if you prefer. Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ghostscript install problem
On Thu, 28 Oct 2010, Fred wrote: Concerning the copy paste, root is not running X so there is no copy and paste. I tried redirecting error output from make with 2$HOME/make_error but make sees the redirection as an instruction it does not know how to do. http://forums.freebsd.org/showthread.php?t=17309 ___ 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] writing filters in sh
On Thu 28 Oct 2010 at 13:52:27 PDT Chip Camden wrote: stage_directionSmacks forehead as if starring in a V-8 commercial/stage_direction A friend of mine used to call that a Neanderthal Moment. (Smack your forehead, shrug your shoulders, and imagine it is reshaping your body.) ___ 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: Sendmail as client via smarthost and ssl
On 28/10/2010 15:25, Christopher Illies wrote: 2010-10-28 14:49, Christopher Illies: To send email from my computer at work I need to send through a smarthost. In the past I had added the line: define(`SMART_HOST', `[smpt.ki.se]') Brackets are only needed for ipaddresses. What happens when you remove the brackets, like so define(`SMART_HOST', `your.mail.server') Nothing changes. I get the same error messages as with the brackets. I'm a bit late here, but... All I had to do for was add AuthInfo:relay.isp.net U:smmsp I:username P:PassWord M:PLAIN to /etc/mail/access and the smarthost directive. I assume from your config this would go in /etc/mail/auth/client-info From /usr/share/sendmail/cf/README Providing SMTP AUTH Data when sendmail acts as Client - If sendmail acts as client, it needs some information how to authenticate against another MTA. This information can be provided by the ruleset authinfo or by the option DefaultAuthInfo. The authinfo ruleset looks up {server_name} using the tag AuthInfo: in the access map. If no entry is found, {server_addr} is looked up in the same way and finally just the tag AuthInfo: to provide default values. Note: searches for domain parts or IP nets are only performed if the access map is used; if the authinfo feature is used then only up to three lookups are performed (two exact matches, one default). (I also set up SSL separately as i'm using plain method but you seem to have that covered.) Hope thats useful to you. Vince ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: slightly OT... .
I wrote some files using a MacBook and saved them as .RTF files. And discovered that I couldn't move them to FreeBSD and use AbiWord. What do I to make them work? On Thu, Oct 28, 2010 at 3:06 PM, Gary Kline kl...@thought.org wrote: Sorry: don't bother with this [below]; there weren't that many embedded quotes. By-hand worked fine. --g On Thu, Oct 28, 2010 at 10:12:38AM -0700, Gary Kline wrote: First, since abiword and OOo both work across many platforms, this isn't a FreeBSD question, but humor me anyway. A [long] while ago I checked on the OOOForums list and got the howto's of changing this into ``this'' in openoffice. [[And 'this into `this': it's a two-fer]]. Has anybody tried this with abiword?? Clues, tips please? (Figure I'll ask here first.) My ascii-to-markup program does the same thing, but only for double-quotes since the fact that the zillions of contractions like can't, would've, and informal english like So: howzit hangin'? gave me *many* second thoughts. 1) Does anybody onlist have any idea howto turn 'this' into lsquo' ? In the HTML ampersand chars list, that's what it is called. Using the ampersand and ints it is #8286; -- minus the quotes, of course. 2) Iwould like some clues howto automate this either via abiword OR algorithm. It took some large N days back in 1994 when I first hacked atom to realize that I would have to use recursion to get the left|beginning and right|closing double quotes. 3) Or should I give up and do this by eyeball?! tia, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ 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: slightly OT... .
On Thu, 28 Oct 2010 22:22:26 -0400, Henry Olyer henry.ol...@gmail.com wrote: I wrote some files using a MacBook and saved them as .RTF files. And discovered that I couldn't move them to FreeBSD and use AbiWord. What do I to make them work? You could try to use one of the tools provided in the ports collection: a) rtf2latex then continue to remove macros to gain plain text b) rtf2html same game here c) rtfreader d) rtfx this is a tool that gives XML output - maybe usabe for further input to AbiWord e) unrtf includes processing like a) and b), and some more formats Which tool to use depends on how you intnd to further use the documents. If it's just about the text, the pure filter programs should be sufficient. Otherwise, try to load them in OpenOffice and see how you can export them from there; ^A ^C and ^V into a text editor should work from there, too. Oh the joy of nonstandard file formats. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ssh key authentication problem...
Peter, Have you verified permissions of 700 on .ssh and 640 on authorized_keys and authorized_keys2? If you do not have an authorized_keys2 simply copy the former to that name and give it a go. Cheers, Mikel King _ From: Peter Harrison [mailto:peter.piggy...@virgin.net] To: questi...@freebsd.org Sent: Thu, 28 Oct 2010 15:39:53 -0400 Subject: ssh key authentication problem... Can anyone help me debug an ssh key-based authentication problem? I have an 8.1-R server running sshd, with one user account. On the server, I've used ssh-keygen to generate id_rsa and id_rsa.pub. On my laptop I then pulled the id_rsa.pub file over and: % cat id_rsa.pub .ssh/authorized_keys Now I try to login from the laptop (also 8.1-R) to the server. It pauses for a second and presents me with a 'Password:' prompt, so obviously the key authentication isn't working. He's a debugging chunk from sshd run with '-ddd' flags: debug1: PAM: initializing for peter debug1: userauth-request for user peter service ssh-connection method publickey debug1: attempt 1 failures 0 debug2: input_userauth_request: try method publickey debug1: test whether pkalg/pkblob are acceptable debug3: mm_key_allowed entering debug3: mm_request_send entering: type 20 debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED debug3: mm_request_receive_expect entering: type 21 debug3: mm_request_receive entering debug1: PAM: setting PAM_RHOST to 192.168.1.4 debug2: monitor_read: 45 used once, disabling now debug3: mm_request_receive entering debug3: monitor_read: checking request 3 debug3: mm_answer_authserv: service=ssh-connection, style= debug2: monitor_read: 3 used once, disabling now debug3: mm_request_receive entering debug3: monitor_read: checking request 20 debug3: mm_answer_keyallowed entering debug3: mm_answer_keyallowed: key_from_blob: 0x286067c0 debug1: trying public key file /home/peter/.ssh/authorized_keys debug1: fd 4 clearing O_NONBLOCK debug3: secure_filename: checking '/usr/home/peter/.ssh' debug3: secure_filename: checking '/usr/home/peter' debug3: secure_filename: terminating check at '/usr/home/peter' debug2: key not found debug1: trying public key file /home/peter/.ssh/authorized_keys2 Failed publickey for peter from 192.168.1.4 port 43046 ssh2 debug3: mm_answer_keyallowed: key 0x286067c0 is not allowed debug3: mm_request_send entering: type 21 debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa debug3: mm_request_receive entering debug1: userauth-request for user peter service ssh-connection method keyboard-interactive debug1: attempt 2 failures 1 debug2: input_userauth_request: try method keyboard-interactive debug1: keyboard-interactive devs Anyone suggest what I'm doing wrong? TIA. Peter Harrison. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
start kde in 8.1
hey guys, I have kdebase4 installed successfully under freebsd 8.1 I found the following advice on the net with so far isn't working to start it: echo startkde ~/.xinitrc I have attempted startx but the system doesn't know about it. may I have a suggestion to proceed? thanks! -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!! ___ 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: start kde in 8.1
sorry forgot to mention I am running it on a dell optiplex gx620 .. thanks in advance On Thu, Oct 28, 2010 at 11:16 PM, Tim Dunphy bluethu...@gmail.com wrote: hey guys, I have kdebase4 installed successfully under freebsd 8.1 I found the following advice on the net with so far isn't working to start it: echo startkde ~/.xinitrc I have attempted startx but the system doesn't know about it. may I have a suggestion to proceed? thanks! -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!! -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!! ___ 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: start kde in 8.1
On Thu, 28 Oct 2010 20:24:19 -0700, Tim Dunphy bluethu...@gmail.com wrote: sorry forgot to mention I am running it on a dell optiplex gx620 .. thanks in advance On Thu, Oct 28, 2010 at 11:16 PM, Tim Dunphy bluethu...@gmail.com wrote: hey guys, I have kdebase4 installed successfully under freebsd 8.1 I found the following advice on the net with so far isn't working to start it: echo startkde ~/.xinitrc I have attempted startx but the system doesn't know about it. may I have a suggestion to proceed? thanks! -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!! -- Using Opera's revolutionary email client: http://www.opera.com/mail/ Did you install xorg? -/usr/ports/x11/xorg ___ 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: start kde in 8.1
On Thu, Oct 28, 2010 at 8:16 PM, Tim Dunphy bluethu...@gmail.com wrote: hey guys, I have kdebase4 installed successfully under freebsd 8.1 I found the following advice on the net with so far isn't working to start it: echo startkde ~/.xinitrc I have attempted startx but the system doesn't know about it. may I have a suggestion to proceed? thanks! For KDE4 it's echo exec /usr/local/kde4/bin/startkde ~/.xinitrc Mark ___ 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: Resetting the sound system
2010/10/28 Michaël Grünewald michaelgrunew...@yahoo.fr Dear list, the audio software I use sometimes seems to handle unappropriately its input and leave the sound system in a strange state. When this happens, the lowest frequencies of the played sound are very attenuated and what is still audible sounds unpleasantly metallic. Rebooting the machine immediately brings up the sound system in shape again, but it would be nice if they were a more sensible way to reset it! Here are the relevant lines of `dmesg`: pcm0: VIA VT8237 port 0xe100-0xe1ff irq 22 at device 17.5 on pci0 pcm0: [ITHREAD] pcm0: VIA Technologies VIA1617A AC97 Codec pcm0: VIA DXS Enabled: DXS 4 / SGD 1 / REC 1 Best regards, Michael Not sure if there's an easier way, but if you've got the audio driver kldloaded then just unload and reload it. If it's compiled in your kernel then I don't know. kldunload snd_via8233 kldload snd_via8233 Mark ___ 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: start kde in 8.1
Tim Dunphy bluethu...@gmail.com writes: sorry forgot to mention I am running it on a dell optiplex gx620 .. thanks in advance On Thu, Oct 28, 2010 at 11:16 PM, Tim Dunphy bluethu...@gmail.com wrote: hey guys, I have kdebase4 installed successfully under freebsd 8.1 I found the following advice on the net with so far isn't working to start it: echo startkde ~/.xinitrc I have attempted startx but the system doesn't know about it. may I have a suggestion to proceed? Do you have /usr/local/kde4/bin in your path? -- Carl Johnsonca...@peak.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: start kde in 8.1
On Thu, 28 Oct 2010, Tim Dunphy wrote: I have kdebase4 installed successfully under freebsd 8.1 I found the following advice on the net with so far isn't working to start it: echo startkde ~/.xinitrc I have attempted startx but the system doesn't know about it. may I have a suggestion to proceed? Is xorg installed? % pkg_info -Ix xorg-7 If it's installed, rehash. ___ 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
man(1) output error
On 8-stable, this works: % man csh | less +/rehash but after exiting less: 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 This error seems new. ___ 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