glabel(8) a gmirror(8) doesn't work
Hello community, Yesterday I have installed FBSD 7.2-RELEASE. I have installed on a mirror created with gmirror(8). All I have modified on this system is that I have updated the sources, rebuild the world and kernel and of course install. I have named the mirror system0 and all worked well. Now the problem is that i want to glabel the partitions on the mirror so i have followed the following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. After reading the man of gmirrror(8) and glabel(8) i have noticed that both of them store metadata on the last sector of the provider. From this results that what I want to do is not possible, at least my logic tells me that. Since gmirror wrote metadata to the last sector of the provider, glabel tries to rewrite it and the system stops the process to protect the filesystem. But then again for gmirror the providers are the two hdd i use for mirroring and for glabel the provider is the mirror itself. That's again what my logic tells me. So i think there is some kind of separation between the two modules and things should work. I have searched a bit but couldn't find any relevant info on labeling a mirror. I just want to know if this is possible and if it's not I'd like to understand why. Labeling a partition is not a must-have but it's sure nice :). thanks, v -- network warrior since 2005 ___ freebsd-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: glabel(8) a gmirror(8) doesn't work
following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. replace mount -a with mount / you can't write directly to partition which is mounted mounted ___ freebsd-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 - help w configure, make, etc.
PS: I DID actually find something similar to ports for Solaris: opencsw.org / blastwave.org. I guess there's some feuding between some NetBSD pkgsrc system works under solaris ___ freebsd-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: kernel compiling questions
I am trying to figure out how when making the kernel that the number is incremented. For example my system reads: FreeBSD 7.2-RELEASE #4 I have my own kernel that works, however I would like to have it read this: FreeBSD 7.2-RELEASE #0 Is there a way to resolve this? the number is incremented every time you do config on the same build directory. ___ freebsd-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: glabel(8) a gmirror(8) doesn't work
On Wed, Jun 10, 2009 at 9:58 AM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. replace mount -a with mount / you can't write directly to partition which is mounted mounted Thanks this time it worked. I am almost sure (99%) I've tried that already yesterday but the 1% wins. One more question can i label the / partition. I have the same error when i try to label it. v -- network warrior since 2005 ___ freebsd-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: Control-Z the Sleep Signal
Martin McCormick mar...@dc.cis.okstate.edu wrote: Thanks to all. In this case, I made SIGTSTP have the same effect in the program that CTRL-C does (SIGINT) so now either signal makes the application remove the lock and quit gracefully. To each his own, I guess. To anyone familiar with the usual Unix/Linux conventions, this response to ^Z is going to be thoroughly unexpected. Is there any reasonable way to do only the minimum cleanup need for the lock to be safely removed, and then suspend, reacquiring the lock when resumed? ___ freebsd-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: another compile error
On 9 Jun 2009 , Kent Stewart entreated about Re: another compile error: trying to build kernel for 7.2 and get this (my earlier problem was my having CFLAGS=... in /etc/src.conf) MAKE=make sh /usr/src/sys/conf/newvers.sh LERGY72 cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs - Hello, If you want udbp(4) you have to know that it requires netgraph(4). They are both available as modules and/or kernel config options (actually udbp(4) is a device :) ). If that is all it takes, then, I think that GENERIC should mention the options NETGRAPH as a requirement for udbp. There are numerous places with requires miibus as a comment because a device won't compile without it. A commented line has often been there because it was a work in progress such as ULE was for what seems like years or broken for unknown reasons. GENERIC was always self documenting. Thanks guys. having 'options NETGRAPH' is indeed the fix. There is no mention of it being required for udbp in GENERIC, nor in either of the NOTES files. It is mentioned in the man for udbp, which I hadn't read (yet), silly me. -- DA Fo rsythNetwork Supervisor Principal Technical Officer -- Institute for Water Research http://www.ru.ac.za/institutes/iwr/ ___ freebsd-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: glabel(8) a gmirror(8) doesn't work
Valentin Bud wrote: On Wed, Jun 10, 2009 at 9:58 AM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. replace mount -a with mount / you can't write directly to partition which is mounted mounted Thanks this time it worked. I am almost sure (99%) I've tried that already yesterday but the 1% wins. One more question can i label the / partition. I have the same error when i try to label it. v You should be able to. Just reboot into single user mode and *do not* enter any mount commands. The / partition is mounted read only in this case, and tunefs -L will succeed. ___ freebsd-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: ISP questions
On Tue, 9 Jun 2009 17:13:47 -0600 Chad Perrin per...@apotheon.com wrote: If 0.111% of customers are unfortunate enough to end up with something entirely beyond their control causing something to happen that can be imagined to be a violation of GoDaddy's partially undisclosed policies, and 0.1% of GoDaddy customers end up getting their domain names held hostage to the tune of several hundred dollars as a result of those incidents entirely beyond their control, that means that about 90% of people GoDaddy has any way of exploiting, extorting, or otherwise screwing over in a manner defensible in court are getting exactly that treatment. (Note that I'm making up numbers here, just like you.) So . . . you're basically gambling that you'll never be the victim of circumstances that would allow GoDaddy to figure it can get away with screwing you over. I prefer to gamble on other things. Your mileage may vary. I am not going to debate. 1) Your math doesn't even begin to compute - as you stated. 2) You have supplied no factual proof of your statement. Innuendo is not evidence. Every time you get in a car, you risk your life. Does that mean you should live in a bubble? If you have documented proof of your statements, I would love to see them. If not, you sound like someone who screwed up, got burned and like is now the norm in our society, refusing to take responsibility for it; preferring to place the blame on someone or something else. If you don't like GoDaddy, that is your prerogative. However, slandering them with undocumented statements is rather low. As I said, I have not had a problem with them in the seven years I have used their services. Obviously, that does not coincide with your statements. Out of morbid curiosity, who are you presently using? I am willing to bet that I can find someone with a horror story to tell about them also. Would it be accurate; you tell me? -- Jerry ges...@yahoo.com QOTD: Every morning I read the obituaries; if my name's not there, I go to work. signature.asc Description: PGP signature
Re: Reproduce previous stdout output without running previous command
On Mon, Jun 08, 2009 at 11:13:00PM -0700, Norbert Papke wrote: On June 8, 2009, Daniel Underwood wrote: Further suppose that after running the command, I decide I want to save the output to a text file, so I can analyze the results outside of the terminal. What can I do? Well, I can do a traditional copy-and-paste, or I could re-enter the previous command and send it to a text file (which I ought to have done in the first place). But is there another option? Is there some variable (such as, hypothetically, $output[n], where n=some integer index) that I could use to store the results in a text file? Such an option might look like the following: You could use sysutils/screen from ports. Screen lets you capture your session in a log file. If you decide you need the output from a previous command, it would be trivial to extract from the log. Nobody's mentioned script(1). Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: glabel(8) a gmirror(8) doesn't work
Thanks this time it worked. I am almost sure (99%) I've tried that already yesterday but the 1% wins. One more question can i label the / partition. I have the same error when i try to label it. don't do mount / or boot from liveCD ___ freebsd-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: ISP questions
Every time you get in a car, you risk your life. Does that mean you Everything is dangerous, life itself being the most - always ends with death. ___ freebsd-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: glabel(8) a gmirror(8) doesn't work
On Wed, Jun 10, 2009 at 12:25 PM, Manolis Kiagias son...@otenet.gr wrote: Valentin Bud wrote: On Wed, Jun 10, 2009 at 9:58 AM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. replace mount -a with mount / you can't write directly to partition which is mounted mounted Thanks this time it worked. I am almost sure (99%) I've tried that already yesterday but the 1% wins. One more question can i label the / partition. I have the same error when i try to label it. v You should be able to. Just reboot into single user mode and *do not* enter any mount commands. The / partition is mounted read only in this case, and tunefs -L will succeed. Yes it worked. Thank you very much. The odd thing is that I once tried to label it after mounting / and rw and afterward changed it to ro with the help of mount and it did not work. a great day, v -- network warrior since 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Security Problem: linux-pango-1.10.2.3
There is a reported security problem with linux-pango-1.10.2.3 in the ports system. That is preventing me from building the 'nspluginwrapper' port. Actually, I did build it by using the DISABLE_VULNERABILITIES=yes flag; however, I do not really like doing it that way. This problem has been known for awhile now. Does anyone know when this port will be fixed? -- Jerry ges...@yahoo.com One father is more than a hundred schoolmasters. George Herbert signature.asc Description: PGP signature
RE: glabel(8) a gmirror(8) doesn't work
List members; http://www.freebsd.org/doc/en/books/handbook/geom-glabel.html Starting with FreeBSD 7.2, the glabel(8) class supports a new label type for UFS file systems, based on the unique file system id, ufsid. Is the above clause applicable in this case ? instead of using tunefs -L can we use# glabel status ? and can use the ufsid labels of /dev/ufsid/and edit /etc/fstab entries for the partitions? From: valentin@gmail.com Date: Wed, 10 Jun 2009 09:12:47 +0300 To: freebsd-questions@freebsd.org Subject: glabel(8) a gmirror(8) doesn't work Hello community, Yesterday I have installed FBSD 7.2-RELEASE. I have installed on a mirror created with gmirror(8). All I have modified on this system is that I have updated the sources, rebuild the world and kernel and of course install. I have named the mirror system0 and all worked well. Now the problem is that i want to glabel the partitions on the mirror so i have followed the following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. After reading the man of gmirrror(8) and glabel(8) i have noticed that both of them store metadata on the last sector of the provider. From this results that what I want to do is not possible, at least my logic tells me that. Since gmirror wrote metadata to the last sector of the provider, glabel tries to rewrite it and the system stops the process to protect the filesystem. But then again for gmirror the providers are the two hdd i use for mirroring and for glabel the provider is the mirror itself. That's again what my logic tells me. So i think there is some kind of separation between the two modules and things should work. I have searched a bit but couldn't find any relevant info on labeling a mirror. I just want to know if this is possible and if it's not I'd like to understand why. Labeling a partition is not a must-have but it's sure nice :). thanks, v -- network warrior since 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org _ cricket and news. Logon to MSN Video for the latest clips http://www.exploremyway.com___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: glabel(8) a gmirror(8) doesn't work
On Wed, Jun 10, 2009 at 3:20 PM, dhaneshk k dhanes...@hotmail.com wrote: List members; http://www.freebsd.org/doc/en/books/handbook/geom-glabel.html Starting with FreeBSD 7.2, the glabel(8)http://www.FreeBSD.org/cgi/man.cgi?query=glabelsektion=8class supports a new label type for UFS file systems, based on the unique file system id, ufsid. Is the above clause applicable in this case ? instead of using tunefs -L can we use# glabel status ? and can use the ufsid labels of /dev/ufsid/and edit /etc/fstab entries for the partitions? Well yes you are right. The point of labeling the partitions was/is to make the names more easier to remember IMO. Remembering a string (the ufsid) is not quite my specialty. Anyway thanks for the heads up. v From: valentin@gmail.com Date: Wed, 10 Jun 2009 09:12:47 +0300 To: freebsd-questions@freebsd.org Subject: glabel(8) a gmirror(8) doesn't work Hello community, Yesterday I have installed FBSD 7.2-RELEASE. I have installed on a mirror created with gmirror(8). All I have modified on this system is that I have updated the sources, rebuild the world and kernel and of course install. I have named the mirror system0 and all worked well. Now the problem is that i want to glabel the partitions on the mirror so i have followed the following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. After reading the man of gmirrror(8) and glabel(8) i have noticed that both of them store metadata on the last sector of the provider. From this results that what I want to do is not possible, at least my logic tells me that. Since gmirror wrote metadata to the last sector of the provider, glabel tries to rewrite it and the system stops the process to protect the filesystem. But then again for gmirror the providers are the two hdd i use for mirroring and for glabel the provider is the mirror itself. That's again what my logic tells me. So i think there is some kind of separation between the two modules and things should work. I have searched a bit but couldn't find any relevant info on labeling a mirror. I just want to know if this is possible and if it's not I'd like to understand why. Labeling a partition is not a must-have but it's sure nice :). thanks, v -- network warrior since 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Get easy photo sharing with Windows LiveT Photos. Drag n' drophttp://www.microsoft.com/india/windows/windowslive/photos.aspx -- network warrior since 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
using gutenprint drivers - cups vs foomatic
There is a gutenprint driver for my printer (Epson Stylus Photo 280) that doesn't appear in the gutenprint or foomatic ppd directories in /usr/local/share. It only appears after I install gutenprint-cups, and then it appears in a gutenprint subfolder somewhere under /usr/local/share/cups/. Since many of the installed applications don't seem to want to access the cups printer, I'd like to switch back to lpd rather than always recompiling applications with CUPS support. Will the ppd files under /usr/local/share/cups work with foomatic and lpd? Thanks, Andrew ___ freebsd-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: Security Problem: linux-pango-1.10.2.3
On Wed, 10 Jun 2009 07:58:51 -0400 Jerry wrote: There is a reported security problem with linux-pango-1.10.2.3 in the ports system. That is preventing me from building the 'nspluginwrapper' port. Actually, I did build it by using the DISABLE_VULNERABILITIES=yes flag; however, I do not really like doing it that way. This problem has been known for awhile now. Does anyone know when this port will be fixed? The answer is yes, if someone find an rpm package of linux-pango for Fedora Core 4 which is not vulnarable. WBR -- bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
disk with high frequency noise only on FreeBSD
The hard disk of a new computer makes annoying high frequency noises -- probably while seeking -- on FreeBSD 7.2-RELEASE. I booted up a Linux live CD and could not hear anything doing the same kind of access. (To test that, I put a ports tree on a FAT partition and did 'cat */*/Makefile' from FreeBSD and Linux.) Using sysutils/ataidle, I changed the AAM to different values with no effect. (The disk does not support APM.) What is different between FreeBSD and Linux in this regard? Is the disk probably broken? (I guess I would be out of luck with support if I cannot reproduce it on a different OS.) The disk is a WDC WD1600AAJS-07PSA0 with firmware 05.06H05. Thanks, Jan Henrik ___ freebsd-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: glabel(8) a gmirror(8) doesn't work
dhaneshk k wrote: List members; http://www.freebsd.org/doc/en/books/handbook/geom-glabel.html Starting with FreeBSD 7.2, the glabel(8) class supports a new label type for UFS file systems, based on the unique file system id, ufsid. Is the above clause applicable in this case ? instead of using tunefs -L can we use# glabel status ? and can use the ufsid labels of /dev/ufsid/and edit /etc/fstab entries for the partitions? Yes, exactly as noted in the Handbook's example. Still ufsid labels are not exactly 'memorable' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
[AllCEUs.com] View Counseling Education Videos Online at Blip.tv
-View AllCEUs counseling education videos http://allceus.blip.tv -20% savings code for CEUs, from the already lowest industry cost (code: 4989) Don't want any more message from us, just let us know: http://allceus.com/mail_list/?p=unsubscribeuid=4499e5ff375326efdcd9e044bebad6f3 Having trouble viewing this email? View it in your browser. http://www.allceus.com/newsletter/News0609.html To update your preferences visit http://allceus.com/mail_list/?p=preferencesuid=4499e5ff375326efdcd9e044bebad6f3 Dr. Dawn-Elise Snipes dr.dawn-elise_sni...@allceus.com PO BOX 1688 Alachua, FL 32616 -- Powered by PHPlist, www.phplist.com -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: disk with high frequency noise only on FreeBSD
if it's the same high-frequency noise like an alarm, like a trouble indicator.. I had a SCSI that would scream for a few minutes every hour a long time ago. Later I kept up reading and it seemed to indicate an overheating sensor and the alarm trips. is there adequate cooling for that drive, both over and under it? On 6/10/09, Jan Henrik Sylvester m...@janh.de wrote: The hard disk of a new computer makes annoying high frequency noises -- probably while seeking -- on FreeBSD 7.2-RELEASE. I booted up a Linux live CD and could not hear anything doing the same kind of access. (To test that, I put a ports tree on a FAT partition and did 'cat */*/Makefile' from FreeBSD and Linux.) Using sysutils/ataidle, I changed the AAM to different values with no effect. (The disk does not support APM.) What is different between FreeBSD and Linux in this regard? Is the disk probably broken? (I guess I would be out of luck with support if I cannot reproduce it on a different OS.) The disk is a WDC WD1600AAJS-07PSA0 with firmware 05.06H05. Thanks, Jan Henrik ___ freebsd-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: disk with high frequency noise only on FreeBSD
Tim Judd wrote: On 6/10/09, Jan Henrik Sylvester m...@janh.de wrote: The hard disk of a new computer makes annoying high frequency noises -- probably while seeking -- on FreeBSD 7.2-RELEASE. I booted up a Linux live CD and could not hear anything doing the same kind of access. (To test that, I put a ports tree on a FAT partition and did 'cat */*/Makefile' from FreeBSD and Linux.) Using sysutils/ataidle, I changed the AAM to different values with no effect. (The disk does not support APM.) What is different between FreeBSD and Linux in this regard? Is the disk probably broken? (I guess I would be out of luck with support if I cannot reproduce it on a different OS.) The disk is a WDC WD1600AAJS-07PSA0 with firmware 05.06H05. if it's the same high-frequency noise like an alarm, like a trouble No, it does not sound like a deliberate signal. It is more like high frequency scratching at the upper range of the hearable spectrum. I have heard a similar noise from other hard disks, but much more quiet and not quite as high. This one is extremely annoying. It cannot be due to overheating, since it is there from the first boot, but only on FreeBSD -- especially if I access many small files. Thanks, Jan Henrik ___ freebsd-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: Control-Z the Sleep Signal
On Wednesday 10 June 2009 00:49:16 per...@pluto.rain.com wrote: Martin McCormick mar...@dc.cis.okstate.edu wrote: Thanks to all. In this case, I made SIGTSTP have the same effect in the program that CTRL-C does (SIGINT) so now either signal makes the application remove the lock and quit gracefully. To each his own, I guess. To anyone familiar with the usual Unix/Linux conventions, this response to ^Z is going to be thoroughly unexpected. Is there any reasonable way to do only the minimum cleanup need for the lock to be safely removed, and then suspend, reacquiring the lock when resumed? Agreed. You're solving the wrong problem by mapping CTRL-Z to CTRL-C. The questions you should be asking are: 1) Why are stale locks bad for the app? 2) Why do stale locks occur to begin with? 3) Do the locks really solve the problem you thought you needed them for to begin with? 4) Why is it not possible to remove the locks if the PID that created them is not instance of said program? -- Mel ___ freebsd-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: Need advise on how to mount certain CD's
On Tuesday 09 June 2009 11:58:11 Leslie Jensen wrote: It says :file -s /dev/acd0 /dev/acd0: data The other possibility is that the CD isn't closed (fixated). UDF is a superset of CD9660 anyway, so even UDF formatted should be mountable with cd9660. -- Mel ___ freebsd-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: Control-Z the Sleep Signal
Mel Flynn writes: Agreed. You're solving the wrong problem by mapping CTRL-Z to CTRL-C. The questions you should be asking are: 1) Why are stale locks bad for the app? Because if there is one, nobody else in our group can use the app to assign IP addresses. I made it back in 1993 so that only one person could use it at a time because it adds and or deletes records from the DNS and DHCP servers. 2) Why do stale locks occur to begin with? 3) Do the locks really solve the problem you thought you needed them for Now, there's an excellent question. They almost never do and when they do, something very bad has happened and it needs immediate attention. It could be that somebody put the program to sleep because it hung as was recently the case or that it choked so to speak which means it abnormally ended. 4) Why is it not possible to remove the locks if the PID that created them is not instance of said program? The locks are owned by root as the program runs setuid to root chmod 4755. On occasion, I find stuff I did 16 years ago and wonder, What was I thinking? I will revisit the signal handler and make it output an error message on CTRL-Z because we don't want it running if it isn't in use. Thanks for points well taken. ___ freebsd-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: Need advise on how to mount certain CD's
On Wednesday 10 June 2009 08:19:56 Wojciech Puchar wrote: The other possibility is that the CD isn't closed (fixated). UDF is a superset no it is not. Well, the 1.02 version (DVD-video) is, but I see the UDF format has let go of ISO9660 support in later versions. Pity. -- Mel ___ freebsd-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: Control-Z the Sleep Signal
On Wednesday 10 June 2009 08:28:14 Martin McCormick wrote: Mel Flynn writes: Agreed. You're solving the wrong problem by mapping CTRL-Z to CTRL-C. The questions you should be asking are: 1) Why are stale locks bad for the app? Because if there is one, nobody else in our group can use the app to assign IP addresses. I made it back in 1993 so that only one person could use it at a time because it adds and or deletes records from the DNS and DHCP servers. If this is the sole purpose of the program, I would retire it if you're using ISC provided software for these services. rndc and omshell can do all of this using atomic operations. Information is gathered first, then sent in one block to the server, so even if two people try to modify/delete the same record, the one that comes first makes the change, and the second one is handled according to the new information. -- Mel ___ freebsd-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: GCC/GCJ and pdftk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe Auty wrote: bf wrote: However, I've also read in the pdftk port logs that gcj is included in GCC 3.4+ when WITHOUT_JAVA in the GCC Makefile is set to no or commented out. So, I compiled GCC with gcj support without a problem, and Oh yes, did you? Really? How? Better look again. Yes, I did: $ ls /usr/local/bin/gcj* /usr/local/bin/gcj42/usr/local/bin/gcjh42 Hi Joe, I've done some experimentation here on my amd64 virtual machine, and I haven't been able to convince gcc 4.2 to build with libjava/gcj support yet. It doesn't appear to be as simple as commenting out the WITHOUT_JAVA parts of gcc42/Makefile. On my machine, there are directives in the gcc configure script to prevent libjava from building on FreeBSD. However, this could be due to the fact that my VM is running -CURRENT from late last year. Can you send me the output of uname -a of the machine where you ran your gcc+libgcj build successfully? Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKL+/L0sRouByUApARArZ4AKCIg6Y/M7uYgL3mMRuU0frqFtQdDACfbCov ogJbyz19CmCUhvR+FUBD1PI= =39jV -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Advertising Inquiry
Are you the right person to talk to about advertising on www.freebsd.org? Thank you, Kate Werrett Publisher Analyst EnticeLabs, Inc. (801) 692-4058 kwerr...@enticelabs.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
AFP Client in FreeBSD
Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness ___ freebsd-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: Advertising Inquiry
In response to Kate Werrett kwerr...@enticelabs.com: Are you the right person to talk to about advertising on www.freebsd.org? Thank you, Obviously, you didn't look at the site. There is no advertising on it. There is nobody to contact. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ freebsd-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: PDF inventory software
2009/6/9 Daniel Underwood djuatde...@gmail.com: When I enter: $ find *.pdf -print0 | xargs -0 pdftotext nothing seems to happen. Although there is no error message, the text files are not created. Any idea why? Ah, apologies. I was just testing with $ find *.pdf -print0 | xargs -0 cat to see if the pipe itself worked as expected. I guess pdftotext is one of those things I've yet to grok, since on my end all I get is the -h message from pdftotext. PS I'm glad you did find (better) help on the list. -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: OT - help w configure, make, etc.
This is a bit off-topic, but the same basic method works pretty well under BSD, and it's useful when you don't have exactly the port you need or the exact version of a library that a port expects. On Tue, 9 Jun 2009 12:06:04 -0500, Gary Gatten ggat...@waddell.com said: G Yep, one reason I thought OT would be best is I'm trying to move this G app to a Solaris 10 x86 system (don't ask). Here's what I did under Solaris-10. First, build the stuff that GNU autotools needs, like GNU m4: me% wget http://ftp.gnu.org/gnu/m4/m4-1.4.13.tar.gz me% gtar xzf m4-1.4.13.tar.gz me% cd m4-1.4.13 me% CC=gcc CFLAGS=-O2 ./configure --mandir=/usr/local/man \ --program-prefix=g me% make me% make check root# make install me% make distclean me% gm4 --version m4 (GNU M4) 1.4.13 Copyright (C) 2009 Free Software Foundation, Inc. The program-prefix part installs it as gm4, just in case your vendor version of m4 is unique in some way. me% wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.63.tar.gz me% gtar xzf autoconf-2.63.tar.gz me% cd autoconf-2.63 me% CC=gcc CFLAGS=-O2 EMACS=no ./configure --mandir=/usr/local/man me% make me% make check root# make install me% make distclean You'll also need automake to get a recent version of aclocal: me% wget http://ftp.gnu.org/gnu/automake/automake-1.11.tar.gz me% gtar xzf automake-1.11.tar.gz me% cd automake-1.11 me% CC=gcc CFLAGS=-O2 ./configure --mandir=/usr/local/man me% make me% make check root# make install me% make clean As far as recreating the build system for ntop, that's a snap after the auto-stuff is installed: me% wget http://downloads.sourceforge.net/ntop/ntop-3.3.10.tar.gz me% gtar xzf ntop-3.3.10.tar.gz me% cd ntop-3.3.10 me% ./autogen.sh However, ntop depends on rrdtool being installed, and that drags in everything on Earth: me% wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.8.tar.gz me% gtar xzf rrdtool-1.3.8.tar.gz me% cd rrdtool-1.3.8 me% cat /tmp/doconfig #!/bin/sh CC=gcc CFLAGS=-O2 LDFLAGS=-L/opt/sfw/lib CPPFLAGS=-I/opt/sfw/include LIBTOOL=/opt/sfw/bin/libtool export CC CFLAGS LDFLAGS CPPFLAGS LIBTOOL ./configure --disable-nls --disable-ruby --disable-libintl exit 0 me% sh /tmp/doconfig checking build system type... i386-pc-solaris2.10 ... I could not find a working copy of cairo-png I could not find a working copy of cairo-svg I could not find a working copy of cairo-pdf I could not find a working copy of cairo-ps I could not find a working copy of pangocairo configure: error: Please fix the library issues listed and try again. At this point, I was in dependency hell. I tried messing with the load and include compiler flags to get to the versions under /opt/sfw, but I had no luck. There's probably some really easy way to build this, or I could just build the required libraries, but I didn't have time to mess with it. -- Karl Vogel I don't speak for the USAF or my company A host of nameservers --collective nouns, June 1999 LINGUIST ___ freebsd-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: AFP Client in FreeBSD
On Wed, Jun 10, 2009 at 6:45 PM, Chris Manessch...@chrismaness.com wrote: an AFP server, but there is little information on the client. Any suggestions? rsync ? Cheers, Steph ___ freebsd-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: AFP Client in FreeBSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Maness wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness Hi Chris, It looks like this has some potential: http://sourceforge.net/projects/afpfs-ng Care to write a port for it? Cheers, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKL/pB0sRouByUApARAi9SAJ4q1KubS8TvgS3sXPakz1L/maP7NgCeJuul XjHUeICU7DBm2DlQy53U3L0= =0PRJ -END PGP SIGNATURE- ___ freebsd-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: AFP Client in FreeBSD
an AFP server, but there is little information on the client. Any suggestions? rsync ? Cheers, Steph Well I am using the dump command, and I am not sure if I want to dump to the same partition that I am backing up. Can I use rsync to pipe the dump output via ssh? Thanks, Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: AFP Client in FreeBSD
On Wed, Jun 10, 2009 at 11:24 AM, Greg Larkinglar...@freebsd.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Maness wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness Hi Chris, It looks like this has some potential: http://sourceforge.net/projects/afpfs-ng Care to write a port for it? Cheers, Greg - -- Greg Larkin Yea, I was looking for a port for it, but there isn't any. I don't have the time right now to port it or start a new port. Thanks, Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
devd or devfs for ucom?
I'm having trouble making my ucom devices public, following the handbook (had it working on 7.0, but had a disk crash). So, should I be using devd.conf or devfs.rules? They sure seem built to do the same thing to me... Thanks, Steve ___ freebsd-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: devd or devfs for ucom?
On Wed, Jun 10, 2009 at 11:37:56AM -0700, Steve Franks wrote: I'm having trouble making my ucom devices public, following the handbook (had it working on 7.0, but had a disk crash). So, should I be using devd.conf or devfs.rules? They sure seem built to do the same thing to me... For setting device permissions, you should use devfs.rules in this case, since USB devices can come and go at any time. devfs.conf is for devices present at boot time. See devfs.rules(5) and devfs.conf(5). The purpose of devd is more to perform other actions (e.g. run a script or program) if a certain event occurs. See e.g. devd.conf(5). Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpCSY6z9iTdr.pgp Description: PGP signature
Python 2.6 and upgrade-site-packages
I haven't performed the upgrade from 2.5 to 2.6 yet but I notice my /usr/local/lib/python2.5/site-packages is empty. Does that mean I can skip running upgrade-site-packages afterwards and avoid the problems with portmaster, currently discussed on the list? /Morgan ___ freebsd-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: devd or devfs for ucom?
On Wed, Jun 10, 2009 at 11:37 AM, Steve Franksbahamasfra...@gmail.com wrote: I'm having trouble making my ucom devices public, following the handbook (had it working on 7.0, but had a disk crash). So, should I be using devd.conf or devfs.rules? They sure seem built to do the same thing to me... Thanks, Steve While I wouldn't mind an answer to that question, it's actually working; however, my program that uses libftdi libusb to talk to my ugen still needs to run as sudo to see the device - but if I run chmod 666 /dev/* (which I'm sure is a bad idea), I don't need sudo; what device is required for libusb besides ugen? The hub? Best, Steve ___ freebsd-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: AFP Client in FreeBSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Maness wrote: On Wed, Jun 10, 2009 at 11:24 AM, Greg Larkinglar...@freebsd.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Maness wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness Hi Chris, It looks like this has some potential: http://sourceforge.net/projects/afpfs-ng Care to write a port for it? Cheers, Greg - -- Greg Larkin Yea, I was looking for a port for it, but there isn't any. I don't have the time right now to port it or start a new port. Thanks, Chris Hi Chris, Will it at least compile on your system? If it does, and it works as expected, there's no need to write a port for it right away. If you're interested in adding it to the ports tree at some point later, I would be happy to provide some guidance. Cheers, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKMADW0sRouByUApARAvonAJ0X+jCaivFtkWFXztoMpZBr/vR0IQCcDNUY o3n9jXe2ulzJr0dOXMa3yk4= =pYt7 -END PGP SIGNATURE- ___ freebsd-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: devd or devfs for ucom?
On Wed, Jun 10, 2009 at 11:47:14AM -0700, Steve Franks wrote: On Wed, Jun 10, 2009 at 11:37 AM, Steve Franksbahamasfra...@gmail.com wrote: I'm having trouble making my ucom devices public, following the handbook (had it working on 7.0, but had a disk crash). So, should I be using devd.conf or devfs.rules? They sure seem built to do the same thing to me... Thanks, Steve While I wouldn't mind an answer to that question, it's actually working; however, my program that uses libftdi libusb to talk to my ugen still needs to run as sudo to see the device - but if I run chmod 666 /dev/* (which I'm sure is a bad idea), I don't need sudo; what device is required for libusb besides ugen? The hub? It will need access to /dev/usb* My solution was to create a group called 'usb', adding my user-id as a member, and set that as the group of /dev/usb*, with permissions 0660: --- /etc/devfs.rules excerpt --- [myrules=10] add path 'uscanner*' mode 0660 group usb add path 'usb*' mode 0660 group usb add path 'ugen*' mode 0660 group usb --- /etc/devfs.rules excerpt --- --- /etc/rc.conf excerpt --- # Set the default devfs ruleset. devfs_system_ruleset=myrules --- /etc/rc.conf excerpt --- Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp5tzoNCPuzi.pgp Description: PGP signature
Re: Need advise on how to mount certain CD's
Well, the 1.02 version (DVD-video) is, but I see the UDF format has let go of ISO9660 support in later versions. Pity. but the CD/DVD must be finished so UDF incremental format is scanned and ISO data generated. ___ freebsd-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: ugen device no permissions for libusb [was: Re: devd or devfs for ucom?]
While I wouldn't mind an answer to that question, it's actually working; however, my program that uses libftdi libusb to talk to my ugen still needs to run as sudo to see the device - but if I run chmod 666 /dev/* (which I'm sure is a bad idea), I don't need sudo; what device is required for libusb besides ugen? The hub? It will need access to /dev/usb* My solution was to create a group called 'usb', adding my user-id as a member, and set that as the group of /dev/usb*, with permissions 0660: --- /etc/devfs.rules excerpt --- [myrules=10] add path 'uscanner*' mode 0660 group usb add path 'usb*' mode 0660 group usb add path 'ugen*' mode 0660 group usb --- /etc/devfs.rules excerpt --- --- /etc/rc.conf excerpt --- # Set the default devfs ruleset. devfs_system_ruleset=myrules --- /etc/rc.conf excerpt --- Ah! Perfect, that was the ticket - I didn't have permissions for the usb device, even though I had permissions for ugen. Should've occurred to me sooner. Been running it under sudo for a few weeks now... Thanks, Roland, Steve ___ freebsd-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: AFP Client in FreeBSD
MacOS X is unix-based. All it's GUI and other isn't unixlike, but base system is. You may compile unix commands on it. Maybe just ftpd, or rsync? On Wed, 10 Jun 2009, Chris Maness wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness ___ freebsd-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: AFP Client in FreeBSD
Well I am using the dump command, and I am not sure if I want to dump to the same partition that I am backing up. Can I use rsync to pipe the dump output via ssh? you don't need rsync to it. you need dump and ssh - as you said ___ freebsd-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: Need a filesystem with unlimited inodes
On Tue, 9 Jun 2009 03:10:46 am Matthew Seaman wrote: M Or store your data in a RDBMS rather than in the filesystem. On Tue, 9 Jun 2009 09:45:48 -0500, Kirk Strauser k...@strauser.com said: K Hear, hear. I'm hard pressed to imagine why you'd need 100M 1KB files. DBs are great when you have structured data, but semi-structured text (like email) makes for a very poor fit. To see why, have a look at http://www.memoryhole.net/~kyle/databaseemail.html If you really need to store 100 million smallish chunks of information, consider using zip. Create 256 folders named 00-ff: #!/bin/sh hex='0 1 2 3 4 5 6 7 8 9 a b c d e f' for x in $hex ; do for y in $hex ; do mkdir ${x}${y} done done exit 0 Use the hash of your choice to map the name of each chunk to one of 256 zipfiles under each directory. This gives you 64k zipfiles, and if you put 1500 or so chunks in each one, you're pretty close to 100 million. me% cat mkchunks #!/usr/bin/perl -w for $chunk (@ARGV) { $_ = chunk2file($chunk); $file = $1/$2.zip if m/(..)(..)/; print $file $chunk\n; } exit(0); sub chunk2file { my $str = shift; my ($byte, $sum); use integer; $sum = 0; foreach $byte (unpack(C*, $str)) { # SDBM hash $sum = $byte + 65587 * $sum; } $sum = 0x;# keep lowest 16 bits no integer; return sprintf(%4.4x, $sum); } me% ./mkchunks freebsd solaris 16/f7.zip freebsd ca/1f.zip solaris You'll get a better distribution if you use a hash like Digest::SHA1. -- Karl Vogel I don't speak for the USAF or my company People like you are the reason people like me need medication. --bumper sticker ___ freebsd-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: AFP Client in FreeBSD
On Wed, Jun 10, 2009 at 12:05 PM, Wojciech Pucharwoj...@wojtek.tensor.gdynia.pl wrote: MacOS X is unix-based. All it's GUI and other isn't unixlike, but base system is. You may compile unix commands on it. Maybe just ftpd, or rsync? I use dump. I think dumping to the same partition that you are backing up is a bad idea. In order to use these methods I would have to dump, then transfer the dump file. If I can use rsync to pipe the dump output, that would probably work. I think I remember reading about that somewhere. Thanks, Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: AFP Client in FreeBSD
On Wed, Jun 10, 2009 at 02:52:06PM -0400, Greg Larkin wrote: Chris Maness wrote: On Wed, Jun 10, 2009 at 11:24 AM, Greg Larkinglar...@freebsd.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Maness wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? If you want to transfer dumps, netcat (nc) is the fastest way to go. I guess it doesn't come with OS X, since it is available from macports or darwinports. I was able to saturate the 10 Mbit connection between a laptop and a desktop when transferring a dump file. :-) Of course you can also pipe the dump output directly to netcat, but in that case the speed of the dump is the bottleneck. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp1sn2puxRoA.pgp Description: PGP signature
Re: AFP Client in FreeBSD
Chris Maness schrieb: Well I am using the dump command, and I am not sure if I want to dump to the same partition that I am backing up. Can I use rsync to pipe the dump output via ssh? rsync works on files, dump on filesystems. If you want to use dump, the fine FreeBSD manuals says: # /sbin/dump -0uan -f - /usr | \ gzip -2 | ssh -c blowfish \ targetu...@targetmachine.example.com\ dd of=/mybigfiles/dump-usr-l0.gz man ssh for setting up authentication with keys. On the mac, you must enable remote login under Systempanel - Sharing - Services if I remember correctly. -- Timm ___ freebsd-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: AFP Client in FreeBSD
On Wednesday, June 10, 2009, at 09:45AM, Chris Maness ch...@chrismaness.com wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? I regularly backup my FreeBSD boxes using dump and ssh to a very large hard drive on my mac. Here is how I do it: - Turn on SSH access on the mac (I believe in OSX.5 it is called Remote Login) - Setup PubkeyAuthentication: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/openssh.html (Section 14.11.6 - works the same on Mac and FreeBSD) - Wrote a script similar to this: *** #!/bin/sh /sbin/dump -1uaL -f - / | gzip -2 | ssh u...@192.168.0.xxx dd of=/Volumes/Remote\ Backup/root.gz /sbin/dump -1uaL -f - /tmp | gzip -2 | ssh u...@192.168.0.xxx dd of=/Volumes/Remote\ Backup/tmp.gz /sbin/dump -1uaL -f - /var | gzip -2 | ssh u...@192.168.0.xxx dd of=/Volumes/Remote\ Backup/var.gz /sbin/dump -1uaL -f - /usr | gzip -2 | ssh u...@192.168.0.xxx dd of=/Volumes/Remote\ Backup/usr.gz echo Dumps Done *** (of course adjust the user from user to your actual ssh username, adjust Remote\ Backup to your actual volume name, and fix the IP address to be the mac's actual IP address, and adjust the dump level as desired.) - Added this to crontab: *** # Run the backup script 5 4 * * * root/root/backup-script *** Runs every day backing up my unix partitions to the filenames given (root.gz, etc) on the volume on my Mac. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
CF cards
Hi, Could anyone recommend a decent CF card and CF to ATA adapter that works well with freebsd. My intended use for it is on a machine providing firewall and dns services for my internal network. Thanks Gardner Bell ___ freebsd-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: Control-Z the Sleep Signal
Mel Flynn writes: If this is the sole purpose of the program, I would retire it if you're using ISC provided software for these services. rndc and omshell can do all of this using atomic operations. Information is gathered first, then sent in one block to the server, so even if two people try to modify/delete the same record, the one that comes first makes the change, and the second one is handled according to the new information. Quite true. The ISC software is wonderful but it doesn't deal with static bootP and even worse static IP addresses that have no bootP associated with them. We have tons of both. Dynamic DHCP isn't really a good solution for printers and servers. BootP is much more stable for them since nobody can bump them off. We have some departments on campus that are like herding cats in that there is always somebody hard-coding their IP address in to a DHCP lease, etc. We have other areas where people have had the same dynamic lease for literally years and think it is static. We usually set up a subnet about half dynamic and half static which works well for us. The program I wrote reads the dhcpd.conf file and blocks out the dynamic ranges so one can not assign a static entry in those ranges so it has grown to work with the ISC products. It reads the subnet mask, finds the dynamic ranges and then compares against the A records in DNS to quickly find the next free IP address. We use both bind and the ISC DHCP server and are very satisfied customers. When you use omshell to add a bootP entry, it inserts it as a clause in the dhcpd.leases file but you still must specify all the parameters yourself. ___ freebsd-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: Advertising Inquiry
On Wed, Jun 10, 2009 at 02:11:51PM -0400, Bill Moran wrote: In response to Kate Werrett kwerr...@enticelabs.com: Are you the right person to talk to about advertising on www.freebsd.org? Thank you, Obviously, you didn't look at the site. There is no advertising on it. There is nobody to contact. That's right, Bill, but it might be that Ms. Werrett is interested in becoming one of the underwriters of the FreeBSD Project. Ms. Werrett, if you are interested in going further than an ad, please let the rest of us know. The -questions email is a general-purpose mailing list. Chances are that there is a someone with more knowledge of the Project. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.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: ISP questions
On Wed, Jun 10, 2009 at 06:33:05AM -0400, Jerry wrote: On Tue, 9 Jun 2009 17:13:47 -0600 Chad Perrin per...@apotheon.com wrote: If 0.111% of customers are unfortunate enough to end up with something entirely beyond their control causing something to happen that can be imagined to be a violation of GoDaddy's partially undisclosed policies, and 0.1% of GoDaddy customers end up getting their domain names held hostage to the tune of several hundred dollars as a result of those incidents entirely beyond their control, that means that about 90% of people GoDaddy has any way of exploiting, extorting, or otherwise screwing over in a manner defensible in court are getting exactly that treatment. (Note that I'm making up numbers here, just like you.) So . . . you're basically gambling that you'll never be the victim of circumstances that would allow GoDaddy to figure it can get away with screwing you over. I prefer to gamble on other things. Your mileage may vary. I am not going to debate. 1) Your math doesn't even begin to compute - as you stated. How do you figure? 2) You have supplied no factual proof of your statement. Innuendo is not evidence. Try http://nodaddy.com for examples. Every time you get in a car, you risk your life. Does that mean you should live in a bubble? If you have documented proof of your statements, I would love to see them. If not, you sound like someone who screwed up, got burned and like is now the norm in our society, refusing to take responsibility for it; preferring to place the blame on someone or something else. I haven't been burned by GoDaddy. As you might have surmised from previous statements (if you were paying enough attention), I have chosen to learn from others' mistakes in the case of GoDaddy rather than obstinately insisting on making such a mistake for myself. Thanks for degrading the apparent rigor of your own arguments by descending into ad hominem fallacy, though, assuming I've done something I haven't so you can blame me, the hypothetical victim, for what has(n't actually) been done to me. The only way I remember having been burned by my choice of registrar, and thus having to learn from my own mistake, was the case of using a single provider for both domain registration and Webhosting. I learned from that experience that if a single provider handles both domain registration and Webhosting for that domain, it makes it really easy for that provider to screw the user by making it as difficult as possible to move one or the other service to a different provider, thus costing more money over a longer period while giving crappy service -- essentially creating an artificial lock-in situation from which it may be difficult to extricate oneself. I didn't have that particular problem with GoDaddy, but I certainly wouldn't put it past that company. If you don't like GoDaddy, that is your prerogative. However, slandering them with undocumented statements is rather low. As I said, I have not had a problem with them in the seven years I have used their services. Obviously, that does not coincide with your statements. You didn't ask for documentation, and that's not the direction the discussion was going. I provided a URL so you can see some corroborating documentation of real-world incidents above, though, now that you've specifically brought up the point of such evidence. The fact you, yourself have not had a problem, may well be a matter of nothing but luck. In fact, I'm sure most GoDaddy customers haven't had a problem. That's sorta the point, though -- as long as the incidence of problems is kept below a particular threshold, GoDaddy is free to screw over that small percentage of exceptions with relative impunity, unless those who know about such incidents try to get the word out to help other would-be customers protect themselves. It's not like I have a selfish aim in suggesting one use a different registrar; I don't run, or work for, or otherwise have a relationship with, a competing company (other than being another company's customer, of course). Out of morbid curiosity, who are you presently using? I am willing to bet that I can find someone with a horror story to tell about them also. Would it be accurate; you tell me? I'm using pairNIC. If you find such horror stories, please let me know, and I'll investigate them to determine whether I consider them credible and suggestive of the likelihood that the same thing could happen to me. Some horror stories are suggestive of bad policy to which I don't want to submit myself; others are merely suggestive of a fluke, or exaggeration. The fact is that the GoDaddy horror stories I've seen have, in some cases, actually been thoroughly documented not only by the parties involved (on both sides, in fact), but by the news media as well, and they're very suggestive of policies that can lead to terrible abuses of customers in the future. Meanwhile, pairNIC
FreeSBIE
Hello, I'm not sure who to contact about this, but there is a problem with the freesbie.org website. I can't seem to connect to it. With Mozilla Firefox 3.0.1.0, I get the error message Network Timeout, The server at www.freesbie.org is taking too long to respond. and with Internet Explorer 7, I get an error message Internet Explorer cannot display webpage. --Christopher /\ . . /\ __ Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/ ___ freebsd-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: CF cards
On 6/10/09 10:46 PM, gbel...@rogers.com wrote: Hi, Could anyone recommend a decent CF card and CF to ATA adapter that works well with freebsd. My intended use for it is on a machine providing firewall and dns services for my internal network. I got a card reader one from this swedish guy. http://www.kabelpiraten.se/catalog/product_info.php?cPath=44_27products_id=191 I tried a couple of different CF cards, and as far as I can see every card goes. It depends more on how much money you want to spend (more money, more speed and capacity) -- chs ___ freebsd-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: CF cards
Could anyone recommend a decent CF card and CF to ATA adapter that works well with freebsd. My intended use for it is on a machine providing firewall and dns services for my internal network. all should work - ATA adapter has no electronics on it, as CF is ATA compatible just have different connector. So any ATA adapter, but check CF card before buying___ freebsd-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: AFP Client in FreeBSD
I use dump. I think dumping to the same partition that you are backing up is a bad idea. works fine and WILL work fine by design. just you have to create directory, flag it with nodump and dump to file in that directory ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Compiling in sound driver in kernel
This is my first attempt to compile in a driver in a new kernel I am attempting to build. Using loader.conf, I have the 'snd_hda' driver presently being loaded. I want to compile it directly into the kernel. I tried this: device snd_hda # Sound driver Unfortunately, the kernel will not build. What is the proper way to build a kernel with sound embedded into it? Thanks! -- Carmel ___ freebsd-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: FreeSBIE
On Wed, 10 Jun 2009 14:13:45 -0700 (PDT), Chris Neudorf chrisneud...@yahoo.ca wrote: Hello, I'm not sure who to contact about this, but there is a problem with the freesbie.org website. I can't seem to connect to it. Me neither. % telnet 83.149.156.188 80 Trying 83.149.156.188... ... long long time passes ... telnet: connect to address 83.149.156.188: Operation timed out telnet: Unable to connect to remote host And nothing more. Seems that the site (or their web server in particular) is down. -- Polytropon From 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: Compiling in sound driver in kernel
Carmel wrote: This is my first attempt to compile in a driver in a new kernel I am attempting to build. Using loader.conf, I have the 'snd_hda' driver presently being loaded. I want to compile it directly into the kernel. I tried this: devicesnd_hda # Sound driver Unfortunately, the kernel will not build. What is the proper way to build a kernel with sound embedded into it? Thanks! Well, just add the following line too: device sound (This is automatically loaded too when the module is used) ___ freebsd-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: Compiling in sound driver in kernel
On Wed, 10 Jun 2009 18:11:56 -0400, Carmel carmel...@hotmail.com wrote: This is my first attempt to compile in a driver in a new kernel I am attempting to build. Using loader.conf, I have the 'snd_hda' driver presently being loaded. I want to compile it directly into the kernel. I tried this: devicesnd_hda # Sound driver Unfortunately, the kernel will not build. What is the proper way to build a kernel with sound embedded into it? I have this: # Sound device sound device snd_cmi As far as I know, both sound and snd_* for your particular hardware is needed in the kernel configuration file. I'm not sure if only device sound is sufficient and / or will load snd_* required automatically. -- Polytropon From 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: Compiling in sound driver in kernel
On Wed, Jun 10, 2009 at 06:11:56PM -0400, Carmel wrote: This is my first attempt to compile in a driver in a new kernel I am attempting to build. Using loader.conf, I have the 'snd_hda' driver presently being loaded. I want to compile it directly into the kernel. I tried this: Unfortunately, the kernel will not build. What is the proper way to build a kernel with sound embedded into it? You're missing something: device sound devicesnd_hda # Sound driver Have you looked at the manual page? 'man snd_hda' would have told you this. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpd8gCuhH8OS.pgp Description: PGP signature
Re: FreeSBIE
Chris Neudorf wrote: Hello, I'm not sure who to contact about this, but there is a problem with the freesbie.org website. I can't seem to connect to it. With Mozilla Firefox 3.0.1.0, I get the error message Network Timeout, The server at www.freesbie.org is taking too long to respond. and with Internet Explorer 7, I get an error message Internet Explorer cannot display webpage. This happens every so often, as the list has seen this question before. More than likely at some point they'll come back up. When, and how long it takes, we will see. They've probably had some form of calamity that will take them some time to work out. -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: AFP Client in FreeBSD
Mac OS X supports NFS, so you could always mount your Mac on FreeBSD via NFS. Patrick On Wed, Jun 10, 2009 at 10:45 AM, Chris Manessch...@chrismaness.com wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness ___ freebsd-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: Need a filesystem with unlimited inodes
On 6/8/09, Kelly Jones kelly.terry.jo...@gmail.com wrote: What UFS-like filesystem has unlimited inodes, but is a drop-in replacement for ext3, and is fairly easy to configure? Thanks to everyone who replied. I'm using 100+ rented cloud servers to do stuff for me and rsync the results back to a server I own. I'm sure I could use a db or zip file somehow, but my goal is to get the data centralized ASAP, since I'm paying per hour for the rented cloud servers. DBs and ZIP files would take more time. Once I have the data on my server, I can take as much time as I want. My problem: I ran out of inodes during the rsync process, and had to re-do some of the work, wasting some of my cloud servers time/money. I ended up settling on zfs. It hung hard once (had to reboot the server), which scares me, but it otherwise behaves very well. With compress=gzip-9, it's even saving me disk space. Yes, I realize cloud computing is cheap (and I'm actually still on a free trial), but I value efficiency. -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ___ freebsd-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: GCC/GCJ and pdftk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe Auty wrote: Joe Auty wrote: bf wrote: However, I've also read in the pdftk port logs that gcj is included in GCC 3.4+ when WITHOUT_JAVA in the GCC Makefile is set to no or commented out. So, I compiled GCC with gcj support without a problem, and Oh yes, did you? Really? How? Better look again. Sorry, I forgot to answer the how part of this: I simply build GCC42 with WITHOUT_JAVA set to no. Yes, I did: $ ls /usr/local/bin/gcj* /usr/local/bin/gcj42 /usr/local/bin/gcjh42 commented out the NOT_FOR_ARCHS line above to force an install of pdftk: === pdftk-1.41 depends on executable: gmake - found === pdftk-1.41 depends on shared library: gcj - not found === Verifying install for gcj in /usr/ports/lang/gcc42 === Returning to build of pdftk-1.41 Error: shared library gcj does not exist gcj does indeed exist in /usr/ports/lang/gcc42: # find /usr/ports/lang/gcc42 -name gcj /usr/ports/lang/gcc42/work/gcc-4.2-20090325/libjava/gnu/gcj /usr/ports/lang/gcc42/work/gcc-4.2-20090325/libjava/gcj /usr/ports/lang/gcc42/work/build/gcc/gcj The gcj that the port is searching for must be the appropriate binary executable, or a link to it, and must be in your PATH. In this case, if properly installed via the port, it would be: gcj42, gcj43, gcj44, or gcj45, and would be in /usr/local/bin. See above. The reason why I was thinking that for some reason it looks for it in the port directory is the following in the Makefile: # needs gcj LIB_DEPENDS= gcj:${PORTSDIR}/lang/gcc${CSUFF} Perhaps I'm just misinterpreting things... It's strange though that the reason for pdftk not building seems to be that gcj does not compile on amd64 systems, when this doesn't seem to be true. I've read about problems with memory consumption of gcj, but I don't know if these still remain true - these posts were rather old. However, again, all of this is with huge accuracy caveats, I'm definitely not confident with my piecing together of information here... All that you have done is find what I suspect are empty directories in the WRKDIR for the lang/gcc42 port. Consider the 'which' command; or limiting the directories searched and the using of '-not -type d' if employing 'find' in this way in the future. Any suggestions as to what I can do to build pdftk? This particular project will surely be much harder if I can't get pdftk tobuild/compile... In the order of increasing effort: 1) Use a tool other than pdftk to manipulate your PDF files. pdftk is just a wrapper around an old version of devel/itext, structured with the idea of compiling it with gcj. You could just install Java and use the more up-to-date devel/itext. Or use print/ghostscript8, graphics/poppler, or print/xpdf, either directly or via one of the many programs (for example, print/kpdftool) that use them to do the dirty work. Also textproc/p5-CAM-PDF, print/py-pdf, ... I will definitely look at itext! I'm using FPDI to insert header stamps into existing PDF files, and need something to rotate and merge PDFs. I've looked at Ghostscript a little, but was really attracted to the simplicity of doing this in pdftk. If you have any other suggestions of solutions I could look into other than itext, I'd appreciate them! I'm rather new to PDF manipulation... 2) Switch your system to i386 and use pdftk. 3) Find a way to build gcj on architectures other than i386, or persuade or browbeat gerald@ into doing it. Debian has packages for other architectures, for example. You could look at what they've done. b. Hi all, I compiled gcc42+libgcj successfully and then print/pdftk without any problems on 7.1-RELEASE amd64. Still to do: - - Run make check in gcc42 work directory to see if any problems pop up - - Run some tests with pdftk on sample PDF files to check for problems - - Contact gerald@ to find out if there are other reasons why libgcj should not be enabled on amd64. Cheers, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKMEBM0sRouByUApARAgBdAKDE6iBJjevQu1zNNodBCKbm1yrCowCgnVNj N2HCr1Ijz8paREMUr4GJUiI= =xg4+ -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Automagic revision numbers with Perl Modules and SVN
Hey all, I've been migrating all of my projects from CVS to SVN (starting over from the beginning). All of the projects in question are Perl modules. Can someone give me a tip on what I have to do in order to prevent the following when I do a ``make install''?: FreeBSD: Registering installation in the package database Cannot create directory /var/db/pkg/bsdpan-EagleUser-1.009: File exists I'm trying to follow documentation on the 'net, but to no avail. Following is a patch to how I had the module configured for CVS, and what I changed to based on what I found on the web for SVN. To be honest, I'm not a coder, so I don't even know if what I'm changing is in the proper place or not. Any guidance to fix the version numbering (especially to fix the FreeBSD package db) to make it automagic again, is very welcome: %svn diff -r56 EagleUser.pm Index: EagleUser.pm === --- EagleUser.pm(revision 56) +++ EagleUser.pm(working copy) @@ -13,7 +13,7 @@ @EXPORT = qw( ); -$VERSION = sprintf %d.%03d, q$Revision: 1.9 $ =~ /: (\d+)\.(\d+)/; +$VERSION = (q$Revision: 1.9 $ =~ /: (\d+)\.(\d+)/; Thanks, Steve smime.p7s Description: S/MIME Cryptographic Signature
Re: PDF inventory software
Hmm.. The command find *.pdf -exec pdftotext {} \; works in directories in which no PDF file returns the Document has not the mandatory ending %EOF error. When a directory contains one of these files, none of the files get converted. Is there some way to ignore or skip over this %EOF problem and continue operating on the remaining PDFs? Use something like: find -X DIR -name '*.[pP][dD][fF]' | xargs -I % pdftotext % where DIR is the root of the filesystem directory hierarchy to be searched. Be careful of how many arguments you feed to pdftotext: it can overwrite files. You may need to handle some files with encryption, etc. differently. b. ___ freebsd-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: AFP Client in FreeBSD
Wojciech Puchar wrote: I use dump. I think dumping to the same partition that you are backing up is a bad idea. works fine and WILL work fine by design. just you have to create directory, flag it with nodump and dump to file in that directory I forgot about nodump. Thanks. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: AFP Client in FreeBSD
I tried mounting a mac box to my FreeBSD server a while back, but I think I was not able to get it to go RW. How do you set up NFS as a service in OSX 10.4? That would be the best way as my backup scripts are already set up to do an NFS mount. Thanks, Chris On Wed, Jun 10, 2009 at 3:22 PM, patrickgibblert...@gmail.com wrote: Mac OS X supports NFS, so you could always mount your Mac on FreeBSD via NFS. Patrick On Wed, Jun 10, 2009 at 10:45 AM, Chris Manessch...@chrismaness.com wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness ___ freebsd-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: Automagic revision numbers with Perl Modules and SVN
Jason Helfman wrote: Have you heard of cvs2svn? I am not sure if this could be a good candidate for your migration, or not, but we used it successfully at a company I used to work for. http://cvs2svn.tigris.org/ Thanks Jason, but it's too late for that. Essentially, I rm'd the CVS directories from my projects to start directly from scratch. When I toyed with CVS, I really didn't know what I was doing. Now I'm using SVN, with a better understanding, and the willingness to stick with it for management of my code. I let CVS lapse, and was editing things outside of it's scope. This time, I'm keeping a proper central repository as our company/services are expanding too quickly for me to keep /home/steve/devel directories on each and every server. Cheers, Steve smime.p7s Description: S/MIME Cryptographic Signature
When the Remote end of a Telnet drops
In the last two weeks, we have suddenly begun having a problem when telnetting to a telephone switch in order to manage it. This device does not have ssh or we would sure be using that. We run an expect script to poll various registers on the switch and the process is fairly simple. We ask for various listings of registers. When done with a listing, the switch sends a prompt which we see and then either go to the next poll or end and log out. Recently, output just stops at the end of a line with no corruption of the text. There is even a Return character. The telnet session just sits there for days if we don't stop it. It is tempting to point fingers at the switch and the people closest to the switch say that it must be something with the network, all that fun sort of stuff that happens when you don't have undisputable proof and it doesn't happen every day. Exactly a month ago, I upgraded the patch level on this system to FreeBSD 6.3-RELEASE-p10 Does anybody know if there are any recent issues with telnet? As a test, I telnetted to a system and then literally pulled the Ethernet plug on the remote system. The system I was telnetting from sat for many minutes. I finally hit Enter and a few minutes later, it figured out there was nothing on the remote end. There was the usual Connection closed by foreign host. message. Is there a way to make telnet either more proactive about detecting a loss of connection or of logging oddities if the connection is flickering? One such stall happened on a weekend and the connection appeared to be up for 4 days. A ps ax |grep telnet |grep -v grep showed a connection still up at least until I killed it. At that point, it logged terminated and ended. I can certainly put a timeout in expect but we have been using this same script, etc, for around 6 years and never had this problem before so a timeout would just hide whatever has changed. My own gut feeling is that the FreeBSD system is fine as we have no other problems with anything else. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group ___ freebsd-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: Control-Z the Sleep Signal
On Wednesday 10 June 2009 13:33:19 Martin McCormick wrote: We use both bind and the ISC DHCP server and are very satisfied customers. When you use omshell to add a bootP entry, it inserts it as a clause in the dhcpd.leases file but you still must specify all the parameters yourself. Perhaps you can use the omapi(3) interfaces. I'm sure the ISC developers would like to know why you cannot and perhaps provide the interfaces you need. Or you could wrap omshell with the input you retrieved. Whichever, it would allow you to get rid of the locks all together by putting the burden on the DHCP server, rather then a shared client program. -- Mel ___ freebsd-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: AFP Client in FreeBSD
Oh, I don't know about 10.4. Looks easy enough in 10.5: http://www.macresearch.org/nfs-exports-leopard You could also use sshfs: http://www.freshports.org/sysutils/fusefs-sshfs/ It would be a bit slower, but reliable. Patrick On Wed, Jun 10, 2009 at 5:57 PM, Chris Manessch...@chrismaness.com wrote: I tried mounting a mac box to my FreeBSD server a while back, but I think I was not able to get it to go RW. How do you set up NFS as a service in OSX 10.4? That would be the best way as my backup scripts are already set up to do an NFS mount. Thanks, Chris On Wed, Jun 10, 2009 at 3:22 PM, patrickgibblert...@gmail.com wrote: Mac OS X supports NFS, so you could always mount your Mac on FreeBSD via NFS. Patrick On Wed, Jun 10, 2009 at 10:45 AM, Chris Manessch...@chrismaness.com wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness ___ freebsd-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: another compile error
On Tue, Jun 09, 2009 at 05:00:20PM +0200, DA Forsyth wrote: Hiya trying to build kernel for 7.2 and get this (my earlier problem was my having CFLAGS=... in /etc/src.conf) MAKE=make sh /usr/src/sys/conf/newvers.sh LERGY72 cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs - Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline - Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc - I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL - DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common - finline-limit=8000 --param inline-unit-growth=100 --param large- function-growth=1000 -mno-align-long-strings -mpreferred-stack- boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 - ffreestanding -Werror vers.c linking kernel.debug udbp.o(.text+0x59): In function `ng_udbp_disconnect': /usr/src/sys/dev/usb/udbp.c:857: undefined reference to `ng_rmnode_self' udbp.o(.text+0xc9): In function `udbp_detach': /usr/src/sys/dev/usb/udbp.c:450: undefined reference to `ng_rmnode_self' udbp.o(.text+0xde):/usr/src/sys/dev/usb/udbp.c:452: undefined reference to `ng_unref_node' udbp.o(.text+0x79e): In function `udbp_attach': /usr/src/sys/dev/usb/udbp.c:375: undefined reference to `ng_newtype' udbp.o(.text+0x7cc):/usr/src/sys/dev/usb/udbp.c:381: undefined reference to `ng_make_node_common' udbp.o(.text+0x813):/usr/src/sys/dev/usb/udbp.c:384: undefined reference to `ng_name_node' udbp.o(.text+0x828):/usr/src/sys/dev/usb/udbp.c:385: undefined reference to `ng_unref_node' udbp.o(.text+0x993): In function `ng_udbp_rcvmsg': /usr/src/sys/dev/usb/udbp.c:705: undefined reference to `M_NETGRAPH_MSG' udbp.o(.text+0xa55):/usr/src/sys/dev/usb/udbp.c:733: undefined reference to `ng_address_ID' udbp.o(.text+0xa6e):/usr/src/sys/dev/usb/udbp.c:733: undefined reference to `ng_snd_item' udbp.o(.text+0xa7d):/usr/src/sys/dev/usb/udbp.c:733: undefined reference to `ng_free_item' udbp.o(.text+0xa89):/usr/src/sys/dev/usb/udbp.c:734: undefined reference to `M_NETGRAPH_MSG' udbp.o(.text+0xb15): In function `udbp_in_transfer_cb': /usr/src/sys/dev/usb/udbp.c:531: undefined reference to `ng_package_data' udbp.o(.text+0xb3a):/usr/src/sys/dev/usb/udbp.c:531: undefined reference to `ng_address_hook' udbp.o(.text+0xb4e):/usr/src/sys/dev/usb/udbp.c:531: undefined reference to `ng_snd_item' udbp.o(.text+0xd33): In function `ng_udbp_rmnode': /usr/src/sys/dev/usb/udbp.c:815: undefined reference to `ng_unref_node' udbp.o(.text+0xd46):/usr/src/sys/dev/usb/udbp.c:817: undefined reference to `ng_make_node_common' udbp.o(.text+0xd7f):/usr/src/sys/dev/usb/udbp.c:820: undefined reference to `ng_name_node' udbp.o(.text+0xd90):/usr/src/sys/dev/usb/udbp.c:821: undefined reference to `ng_unref_node' udbp.o(.text+0xde3): In function `ng_udbp_rcvdata': /usr/src/sys/dev/usb/udbp.c:752: undefined reference to `ng_free_item' udbp.o(.rodata+0x20): In function `ng_udbp_connect': /usr/src/sys/dev/usb/udbp.c:842: undefined reference to `ng_parse_int32_type' udbp.o(.rodata+0x3c): In function `ng_udbp_disconnect': /usr/src/sys/dev/usb/udbp.c:853: undefined reference to `ng_parse_struct_type' udbp.o(.rodata+0x64):/usr/src/sys/dev/usb/udbp.c:859: undefined reference to `ng_parse_int32_type' udbp.o(.rodata+0x70): In function `udbp_detach': /usr/src/sys/dev/usb/udbp.c:433: undefined reference to `ng_parse_int32_type' *** Error code 1 Stop in /usr/obj/usr/src/sys/LERGY72. *** Error code 1 -- DA Fo rsythNetwork Supervisor Principal Technical Officer -- Institute for Water Research http://www.ru.ac.za/institutes/iwr/ Looks like you are missing `options NETGRAPH' in your kernel config (check udbp(4), EXAMPLES section). Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Help With rc.d Script
I installed a software named urchin on my FBSD 7.2 box. Unfortunately, it didn't come with an rc.d script to automate startup and shutdown. And even more unfortunately, I can't seem to get my head around the concepts in Practical rc.d scripting in BSD (http://www.freebsd.org/doc/en/articles/rc-scripting/rcng-daemon.html). This is the command that starts the app: /usr/local/urchin/bin/urchinctl And here are the options: Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action where: -v prints out the version of urchinctl -h prints out this information -e activates encryption (SSL) in the webserver -s performs the action on the Urchin scheduler ONLY -w performs the action on the Urchin webserver ONLY -p specifies the port for the webserver to listen on action is either: start, stop, restart, or status start: starts the webserver and scheduler stop:stops the webserver and scheduler restart: stops and then starts the webserver and scheduler status: prints out whether the webserver and scheduler are running By default, the action is performed on both the webserver and the schedulers unless the -s or -w options are specified All I want to do is create a script within the rc.d framework that runs /usr/local/urchin/bin/urchinctl start when the system boots and /usr/local/urchin/bin/urchinctl stop when the system shuts down. Following the examples in the guide mentioned above, here is my attempt at that file: #!/bin/sh # PROVIDE: urchin # REQUIRE: NETWORKING # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable urchin: # urchin_enable=YES (bool): Set to NO by default. # Set it to YES to enable urchin. . /etc/rc.subr name=urchin rcvar=`set_rcvar` command=/usr/local/urchin/bin/urchinctl eval ${rcvar}=\${${rcvar}:-'NO'} load_rc_config $name run_rc_command $1 I have also ensured that 'urchin_enable=YES' is in /etc/rc.conf. However when I run the rc.d script, the urchinctl appears to run but doesn't like whatever arguments that are passed. See this output: urchin# ./urchin-server start Starting urchin. Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action snipped rest of options already shown above I'm sure I'm missing some simple concept. I'd really appreciate a kick in the right direction. Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help With rc.d Script
On Wednesday 10 June 2009 17:12:23 Drew Tomlinson wrote: I installed a software named urchin on my FBSD 7.2 box. Unfortunately, it didn't come with an rc.d script to automate startup and shutdown. And even more unfortunately, I can't seem to get my head around the concepts in Practical rc.d scripting in BSD (http://www.freebsd.org/doc/en/articles/rc-scripting/rcng-daemon.html). This is the command that starts the app: /usr/local/urchin/bin/urchinctl And here are the options: Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action where: -v prints out the version of urchinctl -h prints out this information -e activates encryption (SSL) in the webserver -s performs the action on the Urchin scheduler ONLY -w performs the action on the Urchin webserver ONLY -p specifies the port for the webserver to listen on action is either: start, stop, restart, or status start: starts the webserver and scheduler stop:stops the webserver and scheduler restart: stops and then starts the webserver and scheduler status: prints out whether the webserver and scheduler are running By default, the action is performed on both the webserver and the schedulers unless the -s or -w options are specified All I want to do is create a script within the rc.d framework that runs /usr/local/urchin/bin/urchinctl start when the system boots and /usr/local/urchin/bin/urchinctl stop when the system shuts down. Following the examples in the guide mentioned above, here is my attempt at that file: #!/bin/sh # PROVIDE: urchin # REQUIRE: NETWORKING # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable urchin: # urchin_enable=YES (bool): Set to NO by default. # Set it to YES to enable urchin. . /etc/rc.subr name=urchin rcvar=`set_rcvar` command=/usr/local/urchin/bin/urchinctl ${name}_args=$1 : ${name}_enable=NO load_rc_config $name run_rc_command $1 I think the above would work, but didn't test it. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help With rc.d Script
--On June 10, 2009 6:12:23 PM -0700 Drew Tomlinson d...@mykitchentable.net wrote: I installed a software named urchin on my FBSD 7.2 box. Unfortunately, it didn't come with an rc.d script to automate startup and shutdown. And even more unfortunately, I can't seem to get my head around the concepts in Practical rc.d scripting in BSD (http://www.freebsd.org/doc/en/articles/rc-scripting/rcng-daemon.html). This is the command that starts the app: /usr/local/urchin/bin/urchinctl And here are the options: Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action where: -v prints out the version of urchinctl -h prints out this information -e activates encryption (SSL) in the webserver -s performs the action on the Urchin scheduler ONLY -w performs the action on the Urchin webserver ONLY -p specifies the port for the webserver to listen on action is either: start, stop, restart, or status start: starts the webserver and scheduler stop:stops the webserver and scheduler restart: stops and then starts the webserver and scheduler status: prints out whether the webserver and scheduler are running By default, the action is performed on both the webserver and the schedulers unless the -s or -w options are specified All I want to do is create a script within the rc.d framework that runs /usr/local/urchin/bin/urchinctl start when the system boots and /usr/local/urchin/bin/urchinctl stop when the system shuts down. Following the examples in the guide mentioned above, here is my attempt at that file: # !/bin/sh # PROVIDE: urchin # REQUIRE: NETWORKING # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable urchin: # urchin_enable=YES (bool): Set to NO by default. # Set it to YES to enable urchin. . /etc/rc.subr name=urchin rcvar=`set_rcvar` command=/usr/local/urchin/bin/urchinctl eval ${rcvar}=\${${rcvar}:-'NO'} load_rc_config $name run_rc_command $1 I have also ensured that 'urchin_enable=YES' is in /etc/rc.conf. However when I run the rc.d script, the urchinctl appears to run but doesn't like whatever arguments that are passed. See this output: urchin# ./urchin-server start Starting urchin. Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action snipped rest of options already shown above I'm sure I'm missing some simple concept. I'd really appreciate a kick in the right direction. Where is urchin located? /usr/local/bin? /usr/local/bin/urchin/bin? Or somewhere else? Is urchinctl a shell or perl script? Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ** WARNING: Check the headers before replying ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help With rc.d Script
Mel Flynn wrote: On Wednesday 10 June 2009 17:12:23 Drew Tomlinson wrote: I installed a software named urchin on my FBSD 7.2 box. Unfortunately, it didn't come with an rc.d script to automate startup and shutdown. And even more unfortunately, I can't seem to get my head around the concepts in Practical rc.d scripting in BSD (http://www.freebsd.org/doc/en/articles/rc-scripting/rcng-daemon.html). This is the command that starts the app: /usr/local/urchin/bin/urchinctl And here are the options: Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action where: -v prints out the version of urchinctl -h prints out this information -e activates encryption (SSL) in the webserver -s performs the action on the Urchin scheduler ONLY -w performs the action on the Urchin webserver ONLY -p specifies the port for the webserver to listen on action is either: start, stop, restart, or status start: starts the webserver and scheduler stop:stops the webserver and scheduler restart: stops and then starts the webserver and scheduler status: prints out whether the webserver and scheduler are running By default, the action is performed on both the webserver and the schedulers unless the -s or -w options are specified All I want to do is create a script within the rc.d framework that runs /usr/local/urchin/bin/urchinctl start when the system boots and /usr/local/urchin/bin/urchinctl stop when the system shuts down. Following the examples in the guide mentioned above, here is my attempt at that file: #!/bin/sh # PROVIDE: urchin # REQUIRE: NETWORKING # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable urchin: # urchin_enable=YES (bool): Set to NO by default. # Set it to YES to enable urchin. . /etc/rc.subr name=urchin rcvar=`set_rcvar` command=/usr/local/urchin/bin/urchinctl ${name}_args=$1 : ${name}_enable=NO load_rc_config $name run_rc_command $1 I think the above would work, but didn't test it. I appreciate your help and added those lines. However it seems it didn't help. urchin# ./urchin-server status urchin_args=status: not found urchin is not running. However it is running: urchin# /usr/local/urchin/bin/urchinctl status Urchin webserver is running Urchin MASTER scheduler is running Urchin SLAVE scheduler is running Any other suggestions? Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help With rc.d Script
Paul Schmehl wrote: --On June 10, 2009 6:12:23 PM -0700 Drew Tomlinson d...@mykitchentable.net wrote: I installed a software named urchin on my FBSD 7.2 box. Unfortunately, it didn't come with an rc.d script to automate startup and shutdown. And even more unfortunately, I can't seem to get my head around the concepts in Practical rc.d scripting in BSD (http://www.freebsd.org/doc/en/articles/rc-scripting/rcng-daemon.html). This is the command that starts the app: /usr/local/urchin/bin/urchinctl And here are the options: Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action where: -v prints out the version of urchinctl -h prints out this information -e activates encryption (SSL) in the webserver -s performs the action on the Urchin scheduler ONLY -w performs the action on the Urchin webserver ONLY -p specifies the port for the webserver to listen on action is either: start, stop, restart, or status start: starts the webserver and scheduler stop:stops the webserver and scheduler restart: stops and then starts the webserver and scheduler status: prints out whether the webserver and scheduler are running By default, the action is performed on both the webserver and the schedulers unless the -s or -w options are specified All I want to do is create a script within the rc.d framework that runs /usr/local/urchin/bin/urchinctl start when the system boots and /usr/local/urchin/bin/urchinctl stop when the system shuts down. Following the examples in the guide mentioned above, here is my attempt at that file: # !/bin/sh # PROVIDE: urchin # REQUIRE: NETWORKING # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable urchin: # urchin_enable=YES (bool): Set to NO by default. # Set it to YES to enable urchin. . /etc/rc.subr name=urchin rcvar=`set_rcvar` command=/usr/local/urchin/bin/urchinctl eval ${rcvar}=\${${rcvar}:-'NO'} load_rc_config $name run_rc_command $1 I have also ensured that 'urchin_enable=YES' is in /etc/rc.conf. However when I run the rc.d script, the urchinctl appears to run but doesn't like whatever arguments that are passed. See this output: urchin# ./urchin-server start Starting urchin. Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action snipped rest of options already shown above I'm sure I'm missing some simple concept. I'd really appreciate a kick in the right direction. Where is urchin located? /usr/local/bin? /usr/local/bin/urchin/bin? Or somewhere else? Is urchinctl a shell or perl script? There is no actual urchin as far as I know. The control file is /usr/local/urchin/bin/urchinctl. It is a executable file: urchin# file /usr/local/urchin/bin/urchinctl /usr/local/urchin/bin/urchinctl: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped After running /usr/local/urchin/bin/urchinctl start, I have these related processes: urchin# ps acux | grep urchin root70937 0.0 0.0 3184 1996 ?? Ss7:00PM 0:00.01 urchinwebd nobody 70938 0.0 0.0 3184 2000 ?? I 7:00PM 0:00.00 urchinwebd nobody 70939 0.0 0.0 3184 2000 ?? I 7:00PM 0:00.00 urchinwebd nobody 70940 0.0 0.0 3184 2000 ?? I 7:00PM 0:00.00 urchinwebd nobody 70941 0.0 0.0 3184 2000 ?? I 7:00PM 0:00.00 urchinwebd nobody 70942 0.0 0.0 3184 2000 ?? I 7:00PM 0:00.00 urchinwebd nobody 70944 0.0 0.0 1460 720 ?? Ss7:00PM 0:00.03 urchind nobody 70946 0.0 0.0 1332 668 ?? Is7:00PM 0:00.51 urchind And conversely, /usr/local/urchin/bin/urchinctl stop removes all of the above processes. Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help With rc.d Script
since the rc.d scripts (as much as lots of other scripts in BSD are..) are borne shell scripts, can't 'set -x' be in the script to show the flow of it running??? That's what I'd try first. --Tim On 6/10/09, Drew Tomlinson d...@mykitchentable.net wrote: I installed a software named urchin on my FBSD 7.2 box. Unfortunately, it didn't come with an rc.d script to automate startup and shutdown. And even more unfortunately, I can't seem to get my head around the concepts in Practical rc.d scripting in BSD (http://www.freebsd.org/doc/en/articles/rc-scripting/rcng-daemon.html). This is the command that starts the app: /usr/local/urchin/bin/urchinctl And here are the options: Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action where: -v prints out the version of urchinctl -h prints out this information -e activates encryption (SSL) in the webserver -s performs the action on the Urchin scheduler ONLY -w performs the action on the Urchin webserver ONLY -p specifies the port for the webserver to listen on action is either: start, stop, restart, or status start: starts the webserver and scheduler stop:stops the webserver and scheduler restart: stops and then starts the webserver and scheduler status: prints out whether the webserver and scheduler are running By default, the action is performed on both the webserver and the schedulers unless the -s or -w options are specified All I want to do is create a script within the rc.d framework that runs /usr/local/urchin/bin/urchinctl start when the system boots and /usr/local/urchin/bin/urchinctl stop when the system shuts down. Following the examples in the guide mentioned above, here is my attempt at that file: #!/bin/sh # PROVIDE: urchin # REQUIRE: NETWORKING # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable urchin: # urchin_enable=YES (bool): Set to NO by default. # Set it to YES to enable urchin. . /etc/rc.subr name=urchin rcvar=`set_rcvar` command=/usr/local/urchin/bin/urchinctl eval ${rcvar}=\${${rcvar}:-'NO'} load_rc_config $name run_rc_command $1 I have also ensured that 'urchin_enable=YES' is in /etc/rc.conf. However when I run the rc.d script, the urchinctl appears to run but doesn't like whatever arguments that are passed. See this output: urchin# ./urchin-server start Starting urchin. Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action snipped rest of options already shown above I'm sure I'm missing some simple concept. I'd really appreciate a kick in the right direction. Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help With rc.d Script
--On June 10, 2009 7:09:17 PM -0700 Drew Tomlinson d...@mykitchentable.net wrote: All I want to do is create a script within the rc.d framework that runs /usr/local/urchin/bin/urchinctl start when the system boots and /usr/local/urchin/bin/urchinctl stop when the system shuts down. Following the examples in the guide mentioned above, here is my attempt at that file: # !/bin/sh # PROVIDE: urchin # REQUIRE: NETWORKING # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable urchin: # urchin_enable=YES (bool): Set to NO by default. # Set it to YES to enable urchin. . /etc/rc.subr name=urchin rcvar=`set_rcvar` command=/usr/local/urchin/bin/urchinctl eval ${rcvar}=\${${rcvar}:-'NO'} load_rc_config $name run_rc_command $1 I have also ensured that 'urchin_enable=YES' is in /etc/rc.conf. However when I run the rc.d script, the urchinctl appears to run but doesn't like whatever arguments that are passed. See this output: urchin# ./urchin-server start Starting urchin. Usage: urchinctl [-v] [-h] [-e] [-s|-w] [-p port] action snipped rest of options already shown above I'm sure I'm missing some simple concept. I'd really appreciate a kick in the right direction. Where is urchin located? /usr/local/bin? /usr/local/bin/urchin/bin? Or somewhere else? Is urchinctl a shell or perl script? There is no actual urchin as far as I know. The control file is /usr/local/urchin/bin/urchinctl. It is a executable file: urchin# file /usr/local/urchin/bin/urchinctl /usr/local/urchin/bin/urchinctl: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped After running /usr/local/urchin/bin/urchinctl start, I have these related processes: urchin# ps acux | grep urchin root70937 0.0 0.0 3184 1996 ?? Ss7:00PM 0:00.01 urchinwebd nobody 70938 0.0 0.0 3184 2000 ?? I 7:00PM 0:00.00 urchinwebd nobody 70939 0.0 0.0 3184 2000 ?? I 7:00PM 0:00.00 urchinwebd nobody 70940 0.0 0.0 3184 2000 ?? I 7:00PM 0:00.00 urchinwebd nobody 70941 0.0 0.0 3184 2000 ?? I 7:00PM 0:00.00 urchinwebd nobody 70942 0.0 0.0 3184 2000 ?? I 7:00PM 0:00.00 urchinwebd nobody 70944 0.0 0.0 1460 720 ?? Ss7:00PM 0:00.03 urchind nobody 70946 0.0 0.0 1332 668 ?? Is7:00PM 0:00.51 urchind And conversely, /usr/local/urchin/bin/urchinctl stop removes all of the above processes. In your script command is path_to_urchinctl. rc.subr will look for a process named urchinctl and a pidfile named urchinctl.pid. It appears that neither will be found, so the script can't stop or restart the processes, because it doesn't know the pid and therefore the process that it needs to kill. That doesn't explain why it won't start the processes though. I *think* you need to name the script urchin rather than urchin-server, but I can't test that. To fix the pid problem, rc.subr offers some optional statements that, with the proper arguments, can overcome the problem. You'll have to read man rc.subr and test it to figure out what works, but here's an example that might work: pidfile=/var/run/urchinwebd.pid check_pidfile=${pidfile} If that does work, your script should at least be able to report the status (running or not). I'm assuming that, because root is running the lowest numbered process, killing that process will kill all the children as well. Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ** WARNING: Check the headers before replying ___ freebsd-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: Need a filesystem with unlimited inodes
Could you use several large hard drives each with several partitions that each have one filesystem? With eight drives and eight partitions on each, you would multiply the maximum total number of inodes by 256. Mike -- Michael David Crawford m...@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen ___ freebsd-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: Need a filesystem with unlimited inodes
Michael David Crawford a écrit : Could you use several large hard drives each with several partitions that each have one filesystem? With eight drives and eight partitions on each, you would multiply the maximum total number of inodes by 256. Mike Hello It seems ZFS would match his needs , why don't use it ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
need network printer printcap example
has anybody got an example of a printcap file w/ an entry for a standalone network printer? i'd be grateful for one. thx. david coder network engineer emeritus ntt/verio ___ freebsd-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: need network printer printcap example
Dell_2|Dell_2:rm=tim.energyctrl.local:rp=Dell_2: PDF-printer|PDF-printer:rm=tim.energyctrl.local:rp=PDF-printer: Xerox|Xerox:rm=tim.energyctrl.local:rp=Xerox: Generated by use of cups server. tim.energyctrl.local is the local workstation that runs cupsd. PDF-printer is a pseudo printer, attached locally :) --TJ On 6/10/09, dacoder d...@dcoder.net wrote: has anybody got an example of a printcap file w/ an entry for a standalone network printer? i'd be grateful for one. thx. david coder network engineer emeritus ntt/verio ___ freebsd-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: Need a filesystem with unlimited inodes
Frank Bonnet wrote: It seems ZFS would match his needs , why don't use it ? Does ZFS really work on FreeBSD? It seems like every day someone is posting about ZFS either getting corrupted or panicking their kernel. Mike -- Michael David Crawford m...@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org