Re: 'rm' Can not delete files
Jerry McAllister jerr...@msu.edu wrote: On Fri, Feb 10, 2012 at 10:34:20AM -0500, Henry Olyer wrote: I use bash 4. OK. So?? If you had read the thread before posting, you would have known that someone asked which shell Henry was using (and he answered). ___ freebsd-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: 'rm' Can not delete files
Matthew Seaman freebsd-questi...@infracaninophile.co.uk wrote: ls -1 | xargs rm but be aware that that wont work for filenames with spaces. True. Can't do that using ls to generate the list of filenames as there is no option to generate a null-separated list amongst ls's multitudinous collection. It can, however, be done indirectly :) $ ls -1 | tr '\012' '\000' | xargs -0 rm ___ freebsd-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: 'rm' Can not delete files
On 11/02/2012 15:33, per...@pluto.rain.com wrote: Matthew Seaman freebsd-questi...@infracaninophile.co.uk wrote: ls -1 | xargs rm but be aware that that wont work for filenames with spaces. True. Can't do that using ls to generate the list of filenames as there is no option to generate a null-separated list amongst ls's multitudinous collection. It can, however, be done indirectly :) $ ls -1 | tr '\012' '\000' | xargs -0 rm Until you run into someone who creates filenames with newlines in them... Well, actually in that case, ls(1) would usually mangle the name: $ touch 'a file name with new lines in it' $ ls a* a?file name with?new lines in it Since it uses '?' to replace any unprintable character, that's not bullet proof either. Of course, ls(1) has an option for that: $ ls -B a* a\012file name with\012new lines in it Actually, it has two options for that: $ ls -b a* a\nfile name with\nnew lines in it and before Randal picks me up again on the differences between ls(1) outputting to the terminal rather than into anything else... $ ls a* ls.out $ hd ls.out 61 0a 66 69 6c 65 20 6e 61 6d 65 20 77 69 74 68 |a.file name with| 0010 0a 6e 65 77 20 6c 69 6e 65 73 20 69 6e 20 69 74 |.new lines in it| * 0020 No mangling occurs if you pipe the output into another process. Even so, the conclusion must be that ls(1) is not the best choice for generating a list of file names *for programmatic input* if you have to deal with the full gamut of possible names. find(1) is much better in that case. ls(1) is great for displaying to people in pretty much all circumstances, and it should only be used programmatically if you can /guarantee/ you aren't going run into any of the tricky cases. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: Wireless Problem
On Fri, 10 Feb 2012 22:58:22 +0100 zaklinaczcipek128 articulated: Hi, I'm struggling with my wireless cards couple days and I can't figure out what's wrong. Following I'm under FreeBSD 9.0 RELEASE and ever since I've used it I can't connect to any wireless network. I've got Atheros NIC and under every other OS it works fine, even earlier when I were under FreeBSD 7.2 it worked well, but now I got weird issues. I read a lot of it. I followed handbook with no success. I can connect to the network (no difference if it secured or not) i get IP from DHCP but I can't even ping my router. All drivers are loaded, my /etc/wpa_supplicant.conf is all right, I even add a line to the /etc/resolve.conf. I've reinstalled FreeBSD 9.0 and first thing I wanted to check was my wireless and unfortunately, it's the same, not working, same problem. Does the FreeBSD9.0 has any hidden firewall which block my ping ? My router is find. Firstly, I thought I was a bug then I bought another NIC with Realtek 8187 chipset and things look the same. Both cards can scan networks with results, and they seem to work proper so any ideas what can be wrong ? It might have been nice if you had given your router information. Anyway, did you happen to assign a specific IP to your machine in the routers configuration? Usually something like: http//192.168.1.0 or 192.168.1.1 or something like that will get you into the router's configuration screen. I am assuming that the router is assigning you IP and not your PC. You might try shutting down everything, including the router, possibly even zeroing out the router (probably totally unnecessary) and restarting the router then a minute later the rest of your network. See what happens then. Did you check the /etc/hosts file for any errant entries? -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ It is always easier to blame others than to accept responsibility. ___ freebsd-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: 'rm' Can not delete files
On Sat, 11 Feb 2012 12:05:14 +1100 andrew clarke wrote: On Fri 2012-02-10 16:12:06 UTC+, Matthew Seaman (m.sea...@infracaninophile.co.uk) wrote: In addition, I don't believe it solves the OP's initial problem of the argument list being too long! You'd probably need to use the xargs -n switch here. Go and read the xargs(1) man page carefully. xargs is specifically designed to avoid arglist overflows. Ah, I grepped for 'limit' and 'overflow', didn't see anything applicable, and didn't notice the -s switch. That it avoids arglist overflows should perhaps be written more obviously in the man page (though I'm not sure how...) The important passage is the description of what xargs does: Any arguments specified on the command line are given to utility upon each invocation, followed by some number of the arguments read from the standard input of xargs. This is repeated until standard input is exhausted. It would be extremely perverse to go to the trouble of breaking-up stdin into chunks, but to choose a size that's too big to pass to the utility. You expect a man page to document perversity, but not to document all the perverse thing that aren't done. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: 'rm' Can not delete files
--As of February 10, 2012 4:24:58 PM +, Matthew Seaman is alleged to have said: On 10/02/2012 16:04, Matthew Story wrote: find . -type f -depth 1 -print0 | xargs -n99 -0 -s8192 -c5 rm -- or some such, depending on your needs, I believe in most situations this particular invocation will also out-perform find ... -delete. Why would you believe that? find ... -delete calls unlink(2) directly on each file it finds as it searches the directory tree given that it matches the other find predicates. Whereas find ... -print0 | xargs ... rm ... involves a whole complicated sequence of find doing the same searching and matching job, then marshalling lists of filenames, piping them between processes, then xargs exec(2)ing rm with chunks of that arglist; each rm invocation then finally ... calling unlink(2) on each of the named files. On the other hand, passing it through xargs makes the deletion multi-threaded (well, multi-process), while using -delete keeps it all in one process. Depending on your execution environment, that may be a win. Actually, I doubt you'ld see much difference above the noise in the speed of either of those two commands: they're both going to spend the vast majority of the time waiting for disk IO, and that's common to any way of doing this job. This is likely the root of the issue however. ;) (There are probably some pathological cases of multi-processor, multi-controller, multi-disk systems where having multiple IO streams would make a difference, but they are likely to be few for something like this.) Daniel T. Staal --- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
replacing a kernel module located in installation Dvd
Hi, I am looking for a way to replace a kernel module on installation DVD and rebuild it so i can use it. I have made one about 2-3 years ago based on a script that i have found on internet but now i couldn't able to find it. Can someone direct me to the right place or suggest a way to do so since I absolutely remember nothing on how it was done.. Thanks in advance. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Question about kernel panic
Greetings, A server of mine kernel panicked and in the serial console it prints non stop these messages which are repeated again and again.. KDB: stack backtrace: #0 0x802fec5e at kdb_backtrace+0x5e #1 0x80287e57 at hardclock+0x117 #2 0x804610a2 at lapic_handle_timer+0xd2 #3 0x8045b22d at Xtimerint+0x8d #4 0x802e07d5 at softclock+0x305 #5 0x802a4bc4 at intr_event_execute_handlers+0x104 #6 0x802a6255 at ithread_loop+0x95 #7 0x802a1f4f at fork_exit+0x11f #8 0x8045ab9e at fork_trampoline+0xe interrupt total irq1: atkbd0 1 irq4: uart0 7376 irq14: ata01 irq18: atapci2 1237165 irq20: em0 86529 cpu0: timer232803254 cpu1: timer248008646 cpu2: timer248008707 cpu3: timer248008856 Total 978160831 KDB: stack backtrace: The server is: 8.2-STABLE FreeBSD 8.2-STABLE #1: Mon Jan 16 15:54:50 CPU: Intel(R) Xeon(TM) CPU 3.40GHz (3391.52-MHz K8-class CPU) Origin = GenuineIntel Id = 0xf4a Family = f Model = 4 Stepping = 10 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0x649dSSE3,DTES64,MON,DS_CPL,EST,CNXT-ID,CX16,xTPR AMD Features=0x20100800SYSCALL,NX,LM AMD Features2=0x1LAHF TSC: P-state invariant real memory = 8589934592 (8192 MB) avail memory = 8243830784 (7861 MB) This machine will be rebooted on Monday, so from the time being I can only watch these messages repeated again and again. This server is mainly used for virtualization (virtualbox) and has ZFS, on a Sil 3112 and Intel 6300ESB SATA150 Controllers. I think that either the Sil controller or memory exhaustion due to ZFS and virtualbox has occured. How can I figure out what has really happened? Can I issue any command from the serial console? Thank you ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Can't build en-freebsd-doc-20120205
curlew:/home/mike% uname -a FreeBSD curlew.lan 8.1-RELEASE-p5 FreeBSD 8.1-RELEASE-p5 #0: Tue Sep 27 16:18:26 UTC 2011 r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 curlew:/home/mike% cd /usr/ports/misc/freebsd-doc-en curlew:/usr/ports/misc/freebsd-doc-en% make showconfig === The following configuration options are available for en-freebsd-doc-20120205: HTML=off Single HTML file per document HTML_SPLIT=on The default HTML format used on www.FreeBSD.org PDF=off PDF format PS=off PostScript format TXT=off Plain text === Use 'make config' to modify these settings Attempting to build freebsd-doc-en fails as shown below. curlew:/usr/ports/misc/freebsd-doc-en# make === License check disabled, port has not defined LICENSE === Found saved configuration for en-freebsd-doc-20120205 = freebsd-doc-20120205.tar.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/blackend/freebsd-doc-20120205.tar.gz freebsd-doc-20120205.tar.gz 100% of 26 MB 110 kBps 00m00s === Extracting for en-freebsd-doc-20120205 = SHA256 Checksum OK for freebsd-doc-20120205.tar.gz. === Patching for en-freebsd-doc-20120205 === en-freebsd-doc-20120205 depends on package: docproj-nojadetex=1.17 - found === Configuring for en-freebsd-doc-20120205 === Building for en-freebsd-doc-20120205 /bin/cat /usr/ports/misc/freebsd-doc-en/pkg-plist.html-split /usr/ports/misc/freebsd-doc-en/pkg-plist.html-common /usr/ports/misc/freebsd-doc-en/pkg-plist.extras /usr/ports/misc/freebsd-doc-en/pkg-plist.common /data1/tmp/usr/ports/misc/freebsd-doc-en/work/pkg-plist === en_US.ISO8859-1 (all) === en_US.ISO8859-1/articles (all) === en_US.ISO8859-1/articles/5-roadmap (all) [snip] /usr/bin/sed -i -e 's/ /\#09;/g' $(/usr/bin/xargs HTML.manifest) /usr/local/bin/tidy -wrap 90 -m -raw -preserve -f /dev/null -asxml $(/usr/bin/xargs HTML.manifest) /usr/local/bin/tidy: not found /usr/bin/sed -i -e 's/ /\#09;/g' $(/usr/bin/xargs HTML.manifest) /usr/local/bin/tidy -wrap 90 -m -raw -preserve -f /dev/null -asxml $(/usr/bin/xargs HTML.manifest) /usr/local/bin/tidy: not found === en_US.ISO8859-1/articles/casestudy-argentina.com (all) /bin/rm -f docbook.css /bin/cat /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/share/misc/docbook.css docbook.css Index is disabled or no index to generate. Index is disabled or no index to generate. /usr/bin/env SP_ENCODING=ISO-8859-1 /usr/local/bin/jade -V html-manifest -ioutput.html -d /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/share/sgml/default.dsl -ifreebsd.urls.relprefix.4 -V %generate-legalnotice-link% -V %generate-article-toc% -ioutput.html.images -D /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/casestudy-argentina.com/../../../share/images/articles/casestudy-argentina.com -D /usr/obj/data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/casestudy-argentina.com -c /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/share/sgml/catalog -c /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/share/sgml/catalog -c /usr/local/share/sgml/docbook/dsssl/modular/catalog -c /usr/local/share/sgml/iso8879/catalog -c /usr/local/share/sgml/jade/catalog -c /usr/local/share/sgml/catalog.ports -t sgml /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/casestudy-argentina.com/article.sgml /usr/bin/env SP_ENCODING=ISO-8859-1 /usr/local/bin/jade -V html-manifest -ioutput.html -d /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/share/sgml/default.dsl -ifreebsd.urls.relprefix.4 -V %generate-legalnotice-link% -V %generate-article-toc% -ioutput.html.images -D /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/casestudy-argentina.com/../../../share/images/articles/casestudy-argentina.com -D /usr/obj/data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/casestudy-argentina.com -c /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/share/sgml/catalog -c /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/share/sgml/catalog -c /usr/local/share/sgml/docbook/dsssl/modular/catalog -c /usr/local/share/sgml/iso8879/catalog -c /usr/local/share/sgml/jade/catalog -c /usr/local/share/sgml/catalog.ports -t sgml /data1/tmp/usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/casestudy-argentina.com/article.sgml /usr/bin/sed -i -e 's/ /\#09;/g' $(/usr/bin/xargs HTML.manifest) /usr/bin/sed -i -e 's/ /\#09;/g' $(/usr/bin/xargs HTML.manifest) sed: rename(): No such file or directory /usr/local/bin/tidy -wrap 90 -m -raw -preserve -f /dev/null -asxml $(/usr/bin/xargs HTML.manifest) *** Error code 1 /usr/local/bin/tidy: not found 1 error *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 1 error *** Error code 1 Stop in /usr/ports/misc/freebsd-doc-en. *** Error code 1 Stop in
kernel double fault
Здравствуйте, . Dump header from device /dev/ad4s1b Architecture: i386 Architecture Version: 2 Dump Length: 492789760B (469 MB) Blocksize: 512 Dumptime: Sat Feb 11 14:27:35 2012 Hostname: Magic: FreeBSD Kernel Dump Version String: FreeBSD 9.0-CURRENT #4: Fri Jun 10 01:30:12 UTC 2011 :/usr/obj/usr/src/sys/PAE_KES Panic String: double fault Dump Parity: 3261793647 Bounds: 9 Dump Status: good # kgdb kernel.debug /var/crash/vmcore.9 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-marcel-freebsd...No struct type named linker_file. No struct type named linker_file. No struct type named linker_file. Attempt to extract a component of a value that is not a structure. No struct type named linker_file. No struct type named linker_file. No struct type named linker_file. Attempt to extract a component of a value that is not a structure. Attempt to extract a component of a value that is not a structure pointer. Attempt to extract a component of a value that is not a structure pointer. kgdb: kvm_read: invalid address (0x754f0078) kgdb: kvm_read: invalid address (0x6172746b) #0 0x in ?? () (kgdb) backtrace #0 0x in ?? () it seems useless, but may I get more info from that for debugging? -- С уважением, Коньков mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Can clang compile RELENG_9?
I get errors when trying to compile RELENG_9 with clang. Is clag suppose to work when it comes to compiling the OS or am I missing something: clang -O2 -pipe -DUSE_GZIP=1 -I/usr/src/usr.sbin/sysinstall/../../gnu/lib/libodialog -I. -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch-enum -Wno-empty-body -c /usr/src/usr.sbin/sysinstall/dispatch.c /usr/src/usr.sbin/sysinstall/dispatch.c:594:17: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] msgConfirm(err); ^~~ 1 error generated. *** Error code 1 When compiling the kernel: clang -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -nostdinc -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror ../../../dev/an/if_an.c ../../../dev/an/if_an.c:799:41: error: implicit conversion from enumeration type 'enum ieee80211_phytype' to different enumeration type 'enum ieee80211_phymode' [-Werror,-Wconversion] mword = ieee80211_rate2media(NULL, r, IEEE80211_T_DS); ^~ ../../../dev/an/if_an.c:3301:30: error: implicit conversion from enumeration type 'enum ieee80211_phytype' to different enumeration type 'enum ieee80211_phymode' [-Werror,-Wconversion] status.an_current_tx_rate, IEEE80211_T_DS); ^~ 2 errors generated. *** Error code 1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Can clang compile RELENG_9?
Sorry for the noise. I missed something in the wiki. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Can clang compile RELENG_9?
Dennis Glatting wrote: I get errors when trying to compile RELENG_9 with clang. Is clag suppose to work when it comes to compiling the OS or am I missing something: [snip] I can't speak to RELENG_9, but I have successfully rebuilt the RELEASE with CLANG (make/install world kernel). My /etc/make.conf as per instructions I found on the wiki: .if !defined(CC) || ${CC} == cc CC=clang .endif .if !defined(CXX) || ${CXX} == c++ CXX=clang++ .endif .if !defined(CPP) || ${CPP} == cpp CPP=clang-cpp .endif # Don't die on warnings NO_WERROR= WERROR= # Don't forget this when using Jails! NO_FSCHG= This was with amd64, have not tried any 32 bit. With custom kernel as well. -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: MFC 7840W under CUPS
On Sun, 05 Feb 2012 21:21:59 +0100, Ouyang Xueyu wrote: Hello, I have Freebsd 8.2 and CUPS installed and try to print on my Brother MFC 7840W printer. The printer is accessible by a static IP address, is configured in CUPS but everytime I only get blank pages when I'm trying to print. Does anybody know a solution for this behaviour? The technical specification of the printer at http://www.brother-usa.com/mfc/modeldetail.aspx?PRODUCTID=MFC7840W#.TzbkwOsS-Jo indicates that it does understand PCL. Just for testing, you could try to _not_ use CUPS and send PCL to the printer directly, either by the system's spooling mechanism (which seems to be considered depricated now as the big desktop environments and some stand-alonge applications consider CUPS the only printing interface, which they seem to hardcode into the programs) or by the direct way, using its network connection (which is a good thing, better than USB in my opinion). Really - if the specifications say the printer can do PCL and has some kind of PS, why should it be complicated to get that excellent capabilities working with CUPS? Here is a simple test that you can use: First print something from an application (web browser, text processing program, image manipulator etc.), but send the output to a file. Most print dialogs offer a print to file choice. Save the result to /tmp/print.ps - I'll use this name for demonstration, you can use any other name. Then verify what you've printed to be a PostScript file. % file /tmp/print.ps /tmp/print.ps: PostScript document text conforming DSC level 3. You can verify the content to be printed using any PS viewer, e. g. gv or gs, or whatever comes with your desktop environment. If it is a valid PS file, you can do two things: a) Test if the printer's BR-Script3 is PS-compatible: % nc 192.168.123.456 9100 /tmp/print.ps Let's assume that 192.168.123.456 is the IP of the printer. :-) Let's also assume that port 9100 is the port where the printer accepts jobs. Some printers use different ports for their different personalities. See the documentation which port to use. If unsure, leave it blank. b) Test if the printer does understand PCL. Same assumptions apply. % printf \033k2G | nc 192.168.123.456 9100 % gs -q -dBATCH -dNOPAUSE -dPARANOIDSAFER -dSAFER \ -sDEVICE=ljet4 -sPAPERSIZE=a4 -r600x600 \ -sOutputFile=- /tmp/print.ps | nc 192.168.123.456 9100 You can see that this test specifies a ljet4 printer driver. This refers to the HP Laserjet 4 and 4000 families, but it does produce PCL, so it should be fine. Report back if this works (i. e. _which_ of them, and if not, with which unexpected results). If it does work, my suggestion would be to dump CUPS and use the system's default mechanism with a man made printer filter. It's very easy. Easier than dealing with the CUPS blackbox in my opinion... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
update, [solved]: journal timestamp
An amd64 running fbsd9-RC1 was shutdown overnight from the 'shutdown -p now' command. It reported an unclean shutdown and I ran 'fsck -y'. Still it will not boot and the message is Journal timestamp does not match fs mount time. This is occurring for both /var and /usr. Sporadic episodes of dd, mount, fsck and the like produced no results- apparently if the journal is out of sync then FreeBSD offers no utility to fix it. With a new disk and install of FreeBSD9 then I could mount ufs /usr read-only and copy files to the new installation and then with 'zfs list' created a mount-point for the zfs disk and copied those files as well. Seems like one of the disks was failing. I decided to use a partition of the large disk; i.e., ada0p9: # zpool attach bigD /dev/gpt/bigD0 /dev/ada0p9 ** The first 74g disk is reporting errors: (146) @ 16:10:30 zpool status bigD pool: bigD state: ONLINE status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scan: resilver in progress since Sat Feb 11 15:59:48 2012 3.82G scanned out of 4.19G at 5.60M/s, 0h1m to go 3.82G resilvered, 91.02% done config: NAME STATE READ WRITE CKSUM bigD ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/bigD0 ONLINE 0 0 1 (resilvering) gpt/bigD1 ONLINE 0 0 0 ada0p9 ONLINE 0 0 0 (resilvering) errors: No known data errors ** No data errors, now spread across three disks: (149) @ 16:14:18 zpool status bigD pool: bigD state: ONLINE status: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected action: Determine if the device needs to be replaced, and clear the errors using 'zpool clear' or replace the device with 'zpool replace'. scan: resilvered 4.20G in 0h14m with 0 errors on Sat Feb 11 16:14:22 config: NAME STATE READ WRITE CKSUM bigD ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/bigD0 ONLINE 0 0 1 gpt/bigD1 ONLINE 0 0 0 ada0p9 ONLINE 0 0 0 errors: No known data errors ** Just in case: (31) @ 16:16:54 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot \ -i 1 ada0 bootcode written to ada0 ** Clear the error, so I can run 'zpool status' again: (151) @ 16:20:21 zpool clear bigD /dev/gpt/bigD0 ** (152) @ 16:21:00 zpool status bigD pool: bigD state: ONLINE scan: resilvered 4.20G in 0h14m with 0 errors config: NAME STATE READ WRITE CKSUM bigD ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/bigD0 ONLINE 0 0 0 gpt/bigD1 ONLINE 0 0 0 ada0p9 ONLINE 0 0 0 errors: No known data errors ** # shutdown -r now ** (29) @ 16:26:10 zpool scrub bigD ** The disk is reporting more errors: (30) @ 16:27:03 zpool status bigD pool: bigD state: ONLINE status: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected. action: Determine if the device needs to be replaced, and clear the errors using 'zpool clear' or replace the device with 'zpool replace'. scan: scrub in progress since Sat Feb 11 16:26:51 2012 1.16G scanned out of 4.19G at 3.46M/s, 0h14m to go 120K repaired, 27.76% done config: NAME STATE READ WRITE CKSUM bigD ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/bigD0 ONLINE 0 019 (repairing) gpt/bigD1 ONLINE 0 0 0 ada0p9 ONLINE 0 0 0 errors: No known data errors ** If the disk fails, the data mirror should still be okay: A mirror of two or more devices. Data is replicated in an identical fashion across all components of a mirror. A mirror with N disks of size X can hold X bytes and can withstand (N-1) devices failing before data integrity is compromised. ** (33) @ 16:41:14 zpool status bigD pool:
Re: Can't build en-freebsd-doc-20120205
On Saturday 11 February 2012, Mark wrote: I had this a few days ago. A search returned keep restarting make install and it will build and install. You will notice it will stop at different place each time, just restart the buld. Thanks for the tip. It completed on the second pass. -- Mike Clarke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org