Re: Problems with upgrade - lost partition
Under vmware both disk are online? Show dmesg something about the lost disk? Show atacontrol list your second hdd? When you use a generic kernel freebsd-update upgrade -r 8.1-RELEASE will work fine, i think. Am 18.09.2010 22:58, schrieb Peter Boosten: Ping... -- HTTP://www.boosten.org On 27 aug 2010, at 11:19, Peter Boosten pe...@boosten.org wrote: Hi, I recently updated a machine (running on VMWare) from 7.2 to 8.1. This machine has two (virtual) disks. While the upgrade went rather smooth ('make buildworld, make buildkernel, make installkernel, reboot into single user, mergemaster -p, make installworld, mergemaster, reboot), I lost the partition on the second harddrive. So after reboot, the machine went directly in single user mode, because my /dev/ad1s1a was gone. The only devices in /dev where ad1 (the disk) and ad1s1 (the slice). Since I had a backup this didn't seem to be such a problem, however recreating the slice was. The only way I could get rid of that slice was through the gpart utility (sysinstall wouldn't help me at all): gpart delete ad1s1 gpart destroy ad1 After that sysinstall worked again. Is there any way around this (and preferably rescue the partition somehow, since I have more machines to upgrade, and while backups are there, restoring creates an additional delay in the whole process). Also, the numbering of the NICs changed from le0 to le1, which isn't that a big problem, but rather annoying. Thanks in advance. Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RSS to email?
Is there an app in ports that can fetch RSS feeds and send them as an email? 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: RSS to email?
On 9/20/10 3:00 PM, Chris Maness wrote: Is there an app in ports that can fetch RSS feeds and send them as an email? mail/rss2email? :) Cheers, -- Glen Barber ___ freebsd-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: RSS to email?
Quoth Glen Barber on Monday, 20 September 2010: On 9/20/10 3:00 PM, Chris Maness wrote: Is there an app in ports that can fetch RSS feeds and send them as an email? mail/rss2email? :) Cheers, -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I like newspipe better, but it isn't in ports (that I could find). It's just a python script, though. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgps4qj3MTfLe.pgp Description: PGP signature
Re: RSS to email?
On 9/20/10 3:39 PM, Chip Camden wrote: Quoth Glen Barber on Monday, 20 September 2010: On 9/20/10 3:00 PM, Chris Maness wrote: Is there an app in ports that can fetch RSS feeds and send them as an email? mail/rss2email? :) I like newspipe better, but it isn't in ports (that I could find). It's just a python script, though. That looks interesting. Looks like it's not maintained anymore though. I may try that out anyway. -- Glen Barber ___ freebsd-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: why is the PHP stuff line off by default in ports/lang/php5?
On Mon, Sep 20, 2010 at 08:00, d...@safeport.com wrote: I think that response was not all that unreasonable. I'm not sure if you are referring to me or ale here. 3) I think (proof left to the reader) there is an apache/php package. There's not. There's no way to run pkg_add -r whatever and get the apache module (either that or it is poorly named and not found with a search). And, as I understand it, at one point there was, then it changed. My suggestion was to add it back via a slave port (say lang/php5-apache). This would be *in addition* to the existing lang/php5 port and everyone who is worried about unnecessary dependency bloat, security, etc. would be free to keep using that. Supposedly, there is a reason that shipping a binary package for this is impossible, despite the fact that every major Linux distribution does (and thus millions of web servers run this way) and supposedly there are many detailed descriptions of this reason in the list archives, though I can't find any. Adding the slave port was a good faith suggestion about how to improve the situation to meet everyone's needs. I feel it is rather dismissive and somewhat rude just say The answer is simply 'no' without any explanation. If it has been discussed so many times (for the record, I have been subscribed to this list for two years and have never seen such a thread), then it shouldn't be too hard to post a link. And if the maintainer is too busy with other work to do that, then, as I said, don't reply and let someone else explain it. -- Rob Farmer ___ freebsd-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: RSS to email?
Hello Glen Barber, Am 2010-09-20 15:44:57, hacktest Du folgendes herunter: mail/rss2email? :) That looks interesting. Looks like it's not maintained anymore though. I may try that out anyway. I am using rss2email in my BSD and Debian GNU/Linux Systems with the version which I found in Debian, because there, it IS MAINTAINED. Please be careful if you have a DISK FULL error, because the current version does not check for it and trash the databases to 0 Bytes. AFAIK is this already solved in the latest Linux version which run without any changes on and BSD versions. Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France EURL itsyst...@tdnet UG (limited liability) Owner Michelle KonzackOwner Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix http://www.itsystems.tamay-dogan.net/ http://www.flexray4linux.org/ http://www.debian.tamay-dogan.net/ http://www.can4linux.org/ Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.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: why is the PHP stuff line off by default in ports/lang/php5?
On 20/09/2010 22:22:57, Rob Farmer wrote: My suggestion was to add it back via a slave port (say lang/php5-apache). This would be *in addition* to the existing lang/php5 port and everyone who is worried about unnecessary dependency bloat, security, etc. would be free to keep using that. Yes, but you'ld need several different php5-apache ports to account for the different versions of apache available: 1.3, 2.0, 2.2 at least -- or rather, the corresponding versions of devel/apr. apr itself can depend optionally on mysql, postgresql, openldap, etc. etc. -- each combination of options there produces a runtime pretty much incompatible with either apache or modules compiled against apr with other combinations of modules selected. You begin to see the problem? Having said that, I do feel that having mod_php5 support available as a pkg -- just compiled against the default apache version with the default apache/apr settings -- would be a positive thing. Sometimes you just want to throw some php application onto a server with minimum effort, and being able to do that without having to compile either php or apache is definitely a win. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: extra open ports in rkhunter
Carl Johnson ca...@peak.org writes: I am running rkhunter and it keeps reporting a port inconsistency between sockstat and netstat -a. Netstat shows an extra 5 ports open, but netstat doesn't show what is holding ports open, so I don't know what they are. Does anybody know how to determine what is holding open a port? I have been looking around but none of my ideas show anything. This is a full desktop system with KDE4 and VirtualBox running, so it has a lot of things running. The following are the ports if anybody has any ideas, but I would also like to know how to trace them down myself: tcp4 0 0 *.876 *.*LISTEN tcp6 0 0 *.921 *.*LISTEN udp4 0 0 *.608 *.* udp6 0 0 *.952 *.* udp6 0 0 *.804 *.* I did some further testing after getting some prompting from an off-list email. It turns out that all of those come from rpc.lockd, and that they are not fixed but change after every restart of rpc.lockd. I confirmed this with a fresh install from FreeBSD-8.1-RELEASE-amd64-dvd1.iso into VirtualBox with networking disabled. I also verified the checksums of the .iso to be sure that nothing had been tampered with. I had just been trying out nfs but didn't find anything that I couldn't handle with ssh, so I have since disabled NFS and all rpc daemons. Unlisted ports should be useless, so something else must handle those addresses, probably rpcbind or maybe rpc.statd. It does seem odd that rpc.statd has port addresses that show up in sockstat and others, but rpc.lockd does not. I never did find anthing that will show many of those hidden ports. Nmap will show open ports for tcp4 and tcp6, but it is too slow for upd4 and doesn't handle udp6 at all. Nmap also doesn't identify who has opened ports except by standard addresses, so that can't identify daemons that dynamically assign their addresses. Thanks for all of the suggestions. -- Carl Johnsonca...@peak.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make buildkernel pre-build too long
On Fri Sep 17 10, David DEMELIER wrote: 2010/9/17 Alexander Best arun...@freebsd.org: On Thu Sep 16 10, David DEMELIER wrote: Hi there, I can't understand why this part of make buildkernel is so long on my amd64 machine (8.1-R) make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP=cc -E CC=cc xargs mkdep -a -f .newdep -O2 -frename-registers -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 -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs -I/usr/src/sys/contrib/opensolaris/compat -I/usr/src/sys/dev/cxgb -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 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector This command takes around 5-6 minutes before continuing, on my i386 machine (which is really old) it only takes about 20 seconds. The kernel configs are almost the same for both machines. are there any differences in /etc/make.conf? cheers. alex Do you have any idea? Kind regards, -- Demelier David -- a13x No, except the KERNCONF entry it's exactly the same : hmmmstrange. could you post the ouput of `make -VCFLAGS -VCOPTFLAGS` on both your machines, please? cheers. alex # General settings. KERNCONF=Melon MASTER_SORT?= .fr .uk # Portconf. .if !empty(.CURDIR:M/usr/ports*) exists(/usr/local/libexec/portconf) _PORTCONF!=/usr/local/libexec/portconf .for i in ${_PORTCONF:S/|/ /g} ${i:S/%/ /g} .endfor .endif # Perl. PERL_VERSION=5.10.1 # No need modules. NO_MODULES=yes # Specify other directories. WRKDIRPREFIX= /usr/obj DISTDIR=/usr/distfiles -- Demelier David -- a13x ___ freebsd-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: Problem running custom startup script at proper time
On Mon, Sep 20, 2010 at 09:00, Robert Bonomi bon...@mail.r-bonomi.com wrote: From owner-freebsd-questi...@freebsd.org Sun Sep 19 16:37:49 2010 From: Aaron drizzt...@gmail.com Date: Sun, 19 Sep 2010 14:39:08 -0700 To: freebsd-questions@freebsd.org Subject: Re: Problem running custom startup script at proper time Doh! Forgot to reply to the mailing list. Nope, that didn't work either. Darn. Maybe I'll just have to modify the /etc/rc.d/zfs script to run the for loop first :( How about just modifying the REQUIRE header on it to include 'gnop' the sequencer that selects the order to run rc.d things in sorts based on the REQUIRE/PROVIDES dependencies. Nope, that didn't fix it. I even tried editing /etc/rc.d/zfs and included the gnop commands in the zfs_start(). The gnop still started up _after_ the ZFS in dmesg. However, I did figure it out after looking at the services that were starting up. There is apparent a 'zvol' script, which was the culprit. It was loading some ZFS stuff before the 'zfs' script. Once I set the 'gnop' script to startup before the 'zvol' script, worked like a charm. My zpool status now shows that it's using the gnop devices. Yay!! On Sun, Sep 19, 2010 at 14:04, Boris Samorodov b...@ipt.ru wrote: On Sun, 19 Sep 2010 13:55:41 -0700 Aaron wrote: On Sun, Sep 19, 2010 at 13:27, Boris Samorodov b...@ipt.ru wrote: On Sun, 19 Sep 2010 12:40:52 -0700 Aaron wrote: # PROVIDE: gnop What if you try PROVIDE: disks instead? No good. I also tried the following in the gnop script: # PROVIDE: gnop # REQUIRE: mountcritlocal # BEFORE: zfs /etc/rc.d/geli has this: - # PROVIDE: disks # REQUIRE: initrandom # KEYWORD: nojail - Seems that that should work for you. If not I'm out of ideas for now. The services -r looks promising, but the dmesg is still the same :( =A0When I disable zfs auto-mount, and then run it manually after boot, it uses the .nop devices that were created correctly as it should. EXCERPT services -r /etc/rc.d/mdconfig /etc/rc.d/mountcritlocal /etc/rc.d/gnop /etc/rc.d/zfs -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-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: The nightmarish problem of installing a printer
On Mon, Sep 20, 2010 at 7:16 PM, Robert Bonomi bon...@mail.r-bonomi.com wrote: Adapting MS-Windows print drivers is not 'practical' either. A windows print driver is embedd in the O/S KERNEL, with _system_ calls_ (not mere 'library' routines) that implement the 'device-dependant' rendering of layout/formating directions. One then takes the 'opaque object' so produced and sends it (via _another_ set of system calls) to the 'output' function of that same driver. Is that really so? How about writing some emulation shim like ndis(4) for winprinters? Please correct me if I'm wrong, as I'm not a Windows systems programmer, but this is what I'm thinking about. As far as I understand Windows printing, there are two aspects to resolve, given a vendor supplied windriver binary blob: 1/ the windriver gets some (opaque) data from the GDI+ -- maybe a bitmap, with some meta data. 2/ the windriver interprets this data however it sees fit, and then talks to the NT kernel (maybe via DLL calls) to send electrical impulses to the printer. Now, the data formats of 1/ (GDI stuff) is probably well defined (and therefore published) in gdiplus.dll or something similar and is the same for all windriver blobs. The API/ABI needed to talk to the NT kernel is probably defined in the Windows DDK (or whatever it is called nowadays). So, in both cases, we have stable API/ABI interfaces on both sides of the windriver binary blob: 1/, 2/ at the upper half, and 2/ at the bottom half. So, if we wanted to use those windriver blobs just like in the ndis(4) case, all we need is an emulation shim for both interfaces. Maybe 1/ is already covered by Wine (?) so we could borrow some code from there; and 2/ is basically a matter of mapping the subset of NT calls needed to read from and write to Windows ports to Unix calls to read and write to our Unix devices. Again, I'm no Windows programmer, and it is probably more involved than this. But the basic idea remains: the interfaces on both sides of the windriver binary blobs is pretty stable and (I think) not a secret at all. In the Unix world, printing is handled _externally_ to the kernel. The application must have =its=own=means= of deciding what formatting/layout commands to use -- it _can't_ query the O/S for this info; the O/S simply doesn't have it. Well, it doesn't matter if the windriver shims run as userland daemon or (partially) inside the kernel. The point here is that the windriver - NT, and windriver - GDI+ interface are both stable and not difficult to understand, so both can be emulated. At least theoretically. In practice, it takes some time and effort to get it right, quite obviously. -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Zip file making issues
Does anyone have any advice for this? I'm working on a series of commands - executed in a shell script - that zips a deep directory in a tree. But it makes the full path as part of the ZIP file. That's not what I want - I just want those directories that appear after the *. In this case: -J eliminates all the paths - bad because it also kills those after the * Here's my default that includes the whole d*mn path. /usr/local/bin/zip -r /usr/www/d3photography.com/htdocs/images/paidphotos/1284343047-Le-ach.zip /mount/archive/orders/Sep20/1284343047-Le-ach/download* I could just run a cd to the directory parent and do it there - that would solve the problem - but that's simply too dangerous if the script generator throws an error on the next set of commands (a risk I do not want to take). So how do I get it to store as download/small/image.jpg inside of the ZIP file instead of mount/archive/orders/Sep20/1284343047-Le-ach/download/small/image.jpg. I only recently discovered this bug -- none of my clients have had the guts to tell me about it. TIA, Ryan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Zip file making issues
- Original Message - From: Ryan Coleman edi...@d3photography.com To: FreeBSD Questions freebsd-questions@freebsd.org Sent: Monday, September 20, 2010 11:11 PM Subject: Zip file making issues Does anyone have any advice for this? I'm working on a series of commands - executed in a shell script - that zips a deep directory in a tree. But it makes the full path as part of the ZIP file. That's not what I want - I just want those directories that appear after the *. In this case: -J eliminates all the paths - bad because it also kills those after the * Here's my default that includes the whole d*mn path. /usr/local/bin/zip -r /usr/www/d3photography.com/htdocs/images/paidphotos/1284343047-Le-ach.zip /mount/archive/orders/Sep20/1284343047-Le-ach/download* I could just run a cd to the directory parent and do it there - that would solve the problem - but that's simply too dangerous if the script generator throws an error on the next set of commands (a risk I do not want to take). So how do I get it to store as download/small/image.jpg inside of the ZIP file instead of mount/archive/orders/Sep20/1284343047-Le-ach/download/small/image.jpg. I only recently discovered this bug -- none of my clients have had the guts to tell me about it. == Just change the directory before you start zipping. cd /mount/archive/orders/Sep20/1284343047-Le-ach /usr/local/bin/zip -r /usr/www/d3photography.com/htdocs/images/paidphotos/1284343047-Le-ch.zip download* -- Matt Emmerton ___ freebsd-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: Zip file making issues
On Sep 20, 2010, at 10:32 PM, Matt Emmerton wrote: - Original Message - From: Ryan Coleman edi...@d3photography.com To: FreeBSD Questions freebsd-questions@freebsd.org Sent: Monday, September 20, 2010 11:11 PM Subject: Zip file making issues Does anyone have any advice for this? I'm working on a series of commands - executed in a shell script - that zips a deep directory in a tree. But it makes the full path as part of the ZIP file. That's not what I want - I just want those directories that appear after the *. In this case: -J eliminates all the paths - bad because it also kills those after the * Here's my default that includes the whole d*mn path. /usr/local/bin/zip -r /usr/www/d3photography.com/htdocs/images/paidphotos/1284343047-Le-ach.zip /mount/archive/orders/Sep20/1284343047-Le-ach/download* I could just run a cd to the directory parent and do it there - that would solve the problem - but that's simply too dangerous if the script generator throws an error on the next set of commands (a risk I do not want to take). So how do I get it to store as download/small/image.jpg inside of the ZIP file instead of mount/archive/orders/Sep20/1284343047-Le-ach/download/small/image.jpg. I only recently discovered this bug -- none of my clients have had the guts to tell me about it. == Just change the directory before you start zipping. cd /mount/archive/orders/Sep20/1284343047-Le-ach /usr/local/bin/zip -r /usr/www/d3photography.com/htdocs/images/paidphotos/1284343047-Le-ch.zip download* As I said in my OP: I could just run a cd to the directory parent and do it there - that would solve the problem - but that's simply too dangerous if the script generator throws an error on the next set of commands (a risk I do not want to take). Thank you, though. I'm hoping to find a solution instead with PHP. One of these generated files comes out of PHP in a different directory path where a change of directory is not possible. -- Ryan___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
wireless networking
-- I have 2 wireless adapter that I am able to use for my system. One is a usb device, a D-Link DWA130, and the other is a PCI device, a Netgear WN311T. I can find no information about Linux or UNIX support, or drivers for either, on your website or on the respective manufacturer's sites, nor can I find out what chipsets they are using. Are either of these devices supported with Free-BSD, or the PC-BSD? Bill Kindler ___ freebsd-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: Zip file making issues
Am 21.09.2010, 05:53 Uhr, schrieb Ryan Coleman edi...@d3photography.com: As I said in my OP: I could just run a cd to the directory parent and do it there - that would solve the problem - but that's simply too dangerous if the script generator throws an error on the next set of commands (a risk I do not want to take). Maybe you could: mount -t nullfs -o ro /where/my/data/is /mnt cd /mnt zip ... Regards, Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Zip file making issues
On Sep 20, 2010, at 11:14 PM, Michael Ross wrote: Am 21.09.2010, 05:53 Uhr, schrieb Ryan Coleman edi...@d3photography.com: As I said in my OP: I could just run a cd to the directory parent and do it there - that would solve the problem - but that's simply too dangerous if the script generator throws an error on the next set of commands (a risk I do not want to take). Maybe you could: mount -t nullfs -o ro /where/my/data/is /mnt cd /mnt zip ... Excellent suggestion. I have a PHP possibility I am going to try... and if that fails I think this will be the likely resolution for at least the shell script (although this still doesn't fix the PHP run command - I'll deal with that later I guess) -- Ryan___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Zip file making issues
On 21/09/2010 04:53:58, Ryan Coleman wrote: As I said in my OP: I could just run a cd to the directory parent and do it there - that would solve the problem - but that's simply too dangerous if the script generator throws an error on the next set of commands (a risk I do not want to take). Um changing directory *is* the way to solve this. Really. What you can do in a shell script is work in a sub-shell: that way, even if your zip command goes bananas, you are automatically returned to your original working directory. To create a sub-shell, just enclose your commands in (brackets). ( cd /mount/archive/orders/Sep20/1284343047-Le-ach/ ; zip -r /usr/www/d3photography.com/htdocs/images/paidphotos/1284343047-Le-ach.zip \ download* ) Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Zip file making issues
That changing of directories doesn't solve the PHP script I have building ZIP files, though, with a single shell command (path/to/zip /path/to/zip.zip -r /path/to/folder/to/zip). But I have solved this now with another PHP script that I can call both as part of my Apache CGI but also as a CLI. I just have to implement it which I will do in the morning. -- Ryan On Sep 21, 2010, at 12:14 AM, Matthew Seaman wrote: On 21/09/2010 04:53:58, Ryan Coleman wrote: As I said in my OP: I could just run a cd to the directory parent and do it there - that would solve the problem - but that's simply too dangerous if the script generator throws an error on the next set of commands (a risk I do not want to take). Um changing directory *is* the way to solve this. Really. What you can do in a shell script is work in a sub-shell: that way, even if your zip command goes bananas, you are automatically returned to your original working directory. To create a sub-shell, just enclose your commands in (brackets). ( cd /mount/archive/orders/Sep20/1284343047-Le-ach/ ; zip -r /usr/www/d3photography.com/htdocs/images/paidphotos/1284343047-Le-ach.zip \ download* ) Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
apache22 and threads
Colleagues, When building apache22 from ports, would you recommend to enable or to disable threads support? Even more confusing is the fact that for ports/www/apache22 the default is: Enable threads support in APR is off (WITHOUT_THREADS=true) while for ports/devel/apr1 the default is: Enable Threads in apr is on (WITH_THREADS=true). Thank you in advance for any input. PS ports/devel/apr1 will also be used for the subversion client. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.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
Unable to find device node for /dev/ad4s1b in /dev
Not that I blame the people behind FBSD. I am amazed that it's so robust. But of course, since I purchased this ASPIRE laptop (model 7741Z,) for FreeBSD I'd like to run that on it. So far, well, maybe Billy Gates has finally gotten his memory back, maybe he'll finally make something that works. This is what I know, I run the FBSD install program and immediately, as soon as the system attempts to do the necessary partitioning. That's when the failure occurs, with the complaint that: Unable to find device node for /dev/ad4s1b in /dev I've tried a few things, I can put OpenBSD up, works fine -- except as good as that system is, I need to run FBSD. I do development and research and everything I've done for the last decade is done under FBSD. So I guess I am really serious here, HELP. Oh, one more thing. I can install PC-BSD, that works. And I actually like that system, I just don't want all that overhead, it's pretty resource intensive. I just want my FreeBSD. The thing is, am I going to get 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
vlan + ng_ipfw + ng_netflow == no success
Hello I need the advise. Does anybody got the Subj working? I have FreeBSD 7.3-p2, Generic kernel. I try to set up the netflow traffic accounting using ng_ipfw from vlan interface. I created vlan interface, ipfw rule, set up ng hooks but the netflow export is not working. tcpdump does not catch any packets to the collector. Any suggestion? Should I create the bug report? - - - - - - - - # ifconfig vlan1 create vlan 1 vlandev fxp0 inet 192.168.1.1 netmask 255.255.255.0 # ipfw add 10 ngtee 1 via vlan1 # ngctl -f - ENDL mkpeer ipfw: netflow 1 iface0 name ipfw:1 netflow msg netflow: setdlt { iface=0 dlt=12 } msg netflow: setifindex { iface=0 index=7 } mkpeer netflow: ksocket export inet/dgram/udp msg netflow:export connect inet/10.167.1.252:2055 name netflow:export export msg netflow: settimeouts { inactive = 60 active = 60 } ENDL # ping -c 5 192.168.1.254 PING 192.168.1.254 (192.168.1.254): 56 data bytes 64 bytes from 192.168.1.254: icmp_seq=0 ttl=255 time=0.672 ms 64 bytes from 192.168.1.254: icmp_seq=1 ttl=255 time=0.617 ms 64 bytes from 192.168.1.254: icmp_seq=2 ttl=255 time=0.658 ms 64 bytes from 192.168.1.254: icmp_seq=3 ttl=255 time=0.663 ms 64 bytes from 192.168.1.254: icmp_seq=4 ttl=255 time=0.681 ms --- 192.168.1.254 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.617/0.658/0.681/0.022 ms # ipfw show 00010 10840 ngtee 1 ip from any to any via vlan1 # tcpdump -n host 10.167.1.252 and port 2055 nothing - - - - - - - Good luck -- EMIT-RIPN, EVM7-RIPE ___ freebsd-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: why is the PHP stuff line off by default in ports/lang/php5?
Rob Farmer ha scritto: Adding a slave port would probably be a good solution and shouldn't be too difficult. This issue has been discussed too many times. The answer is simply no, but you can search the archives for the actual reason. You have to comile the module for your specific apache installation. -- Alex Dupre ___ freebsd-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: Unable to find device node for /dev/ad4s1b in /dev
On 20.09.2010 09:17, Henry Olyer wrote: Not that I blame the people behind FBSD. I am amazed that it's so robust. But of course, since I purchased this ASPIRE laptop (model 7741Z,) for FreeBSD I'd like to run that on it. So far, well, maybe Billy Gates has finally gotten his memory back, maybe he'll finally make something that works. This is what I know, I run the FBSD install program and immediately, as soon as the system attempts to do the necessary partitioning. That's when the failure occurs, with the complaint that: Unable to find device node for /dev/ad4s1b in /dev I've tried a few things, I can put OpenBSD up, works fine -- except as good as that system is, I need to run FBSD. I do development and research and everything I've done for the last decade is done under FBSD. So I guess I am really serious here, HELP. Oh, one more thing. I can install PC-BSD, that works. And I actually like that system, I just don't want all that overhead, it's pretty resource intensive. I just want my FreeBSD. The thing is, am I going to get 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 Hi, any hints from the following posts ? http://forums.freebsd.org/showthread.php?t=5288 http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2005-02/2448.html d ___ freebsd-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: why is the PHP stuff line off by default in ports/lang/php5?
On Mon, 20 Sep 2010, Alex Dupre wrote: Rob Farmer ha scritto: Adding a slave port would probably be a good solution and shouldn't be too difficult. This issue has been discussed too many times. The answer is simply no, but you can search the archives for the actual reason. You have to comile the module for your specific apache installation. Ok Alex, and thanks for all your good work. cheers, Ian ___ freebsd-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: why is the PHP stuff line off by default in ports/lang/php5?
On Mon, Sep 20, 2010 at 00:45, Alex Dupre a...@freebsd.org wrote: This issue has been discussed too many times. The answer is simply no, but you can search the archives for the actual reason. You have to comile the module for your specific apache installation. -- Alex Dupre If you can't be bothered to give the actual reason, then why even reply? I have searched the archives. Unfortunately, there are so many messages revolving around how to set up php, secure it, etc. that it becomes difficult to find anything relevant. The only thing I came across was a thread from 2007 about how this is more like a personal preference than engineering as such[1] and its just one of those things that you learn to live with after a while.[2] [1] http://lists.freebsd.org/pipermail/freebsd-questions/2007-June/151399.html [2] http://lists.freebsd.org/pipermail/freebsd-questions/2007-June/151384.html -- Rob Farmer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
TCP Logs Why Connection attempt to closed port
Large quantities of these errors constantly appear in log/dmesg.today. Can anyone explain what is going on and whether any action is needed. If so how to go about tracing the cause. Thanks in advance for any guidance David TCP: [::1]:61570 to [::1]:4713 tcpflags 0x2SYN; tcp_input: Connection attempt to closed port TCP: [127.0.0.1]:62307 to [127.0.0.1]:4713 tcpflags 0x2SYN; tcp_input: Connection attempt to closed port Photographic Artist Permanent Installations Design Creative Imagery and Advanced Digital Techniques High Dynamic Range Photography Official Portraiture Combined darkroom digital creations Systems Adminstrator for the vizion2000.net network ___ freebsd-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: The nightmarish problem of installing a printer
Steven Friedrich free...@insightbb.com wrote: Common Unix Printing System certainly sounds as if the intent was to be the ONE thing that is used for printing. Whether they did a good job of it is another question entirely :( I think that you don't fully apreciate the task at hand. When Unix was first invented, there were no laser printers, ink jets, USB, etc. That no one can create a one-size fits all solution OWES to the fact it's simply not always possible to unify disparate designs. They weren't designed to be interoperable. Technology keeps marchng forward. We need to discard all of it eventually. Back in the CP/M and early MS-DOS days, similar doubts were raised regarding display systems. Fortunately, those doubts did not stop some developers from doing what others thought impossible. The results included X11, which has been rather durable for a considerable time. ___ freebsd-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: apache22 and threads
Victor Sudakov wrote: Colleagues, When building apache22 from ports, would you recommend to enable or to disable threads support? Even more confusing is the fact that for ports/www/apache22 the default is: Enable threads support in APR is off (WITHOUT_THREADS=true) while for ports/devel/apr1 the default is: Enable Threads in apr is on (WITH_THREADS=true). Thank you in advance for any input. PS ports/devel/apr1 will also be used for the subversion client. I wouldn't mind someone with more apache22-fu to elaborate, correcting the following if necessary. My thoughts are this matters depending upon which mpm you choose to build into apache. The default is prefork, and it handles incoming requests by spawning child processes. The main shortcoming associated with this approach is resources such as database connections are not shareable between the child processes, e.g. each must have its own. So each incoming request has to fork a child, then build up, consume, and tear down the database connection. The lifetime will exist during the keepalive period and just be sitting there in memory idle most of the time following the task completion. A threaded mpm such as worker or event, is designed to spawn threads within a process to service incoming requests. One is a hybrid, in that it also forks additional processes as well when a preset thread count is reached. When all threads are contained within the same process each thread is able to share and consume resources in a pool amongst other threads. So an idle database connection which has finished serving a previous request can be immediately reused by a new thread without a build up tear down cycle. So my idea of the usage of WITH_THREADS is for the default prefork mpm it would be NO, while for the event mpm it would be YES. An additional consideration might be what kind of backend is used. For example, since not all of PHP is known to be thread safe it is not recommended for use with a threaded server and mod_php. The way to get around this situation is to separate PHP from Apache with something like mod_fcgid which runs PHP as a FastCGI. This way you can safely run a threaded Apache with non-thread safe PHP. As far as which is the better approach I still am not really sure. Each has its set of pros and cons. -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
dnsmasq, mfsBSD, status refused
Hi I'm trying to replace my gate with a qnap ts-509. I installed mfsBSD, based on FreeBSD-8.1-RELEASE amd64. I just had to build some pre-configured packages, add ipfw, ipfw_nat and libalias to boot modules. Everything's working just fine, except for the DNS (dnsmasq-2.55,1.tbz, rebuilt with config files and ipfw startup script) DHCP works perfectly. But DNS does not... Even on the (soon-to-be) gateway, so I'm assuming ipfw is not related to the problem (in doubt, I still send it) r...@phi /real/tmp : ipfw list 1 check-state 2 allow ip from any to any via lo0 3 allow tcp from any to any established 00500 allow ip from any to any via bge1 00666 allow tcp from me to any out via bge0 setup uid root keep-state 65535 deny ip from any to any (since bge0 is not plugged, it's quite empty...) r...@phi /real/tmp : ./dig @localhost alpha.faust-network ; DiG 9.6.2-P2 alpha.faust-network ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: REFUSED, id: 13068 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;alpha.faust-network. IN A ;; Query time: 13 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Mon Sep 20 13:41:15 2010 ;; MSG SIZE rcvd: 37 basically, my configuration is the following: cache-size=1024 local-ttl=15 log-dhcp interface=bge1 bind-interfaces no-negcache dhcp-range=10.254.254.1,10.254.254.254,255.0.0.0,1h dhcp-boot=pxelinux.0,omega,10.42.42.45 # PXE TFTP server (omega) dhcp-option=3,10.242.42.254 # gateway dhcp-option=19,1# option ip-forwarding off dhcp-option=23,42 # TTL de 42 dhcp-option=44,10.242.42.254# Wins Server dhcp-option=45,10.242.42.254# NetBios DDS dhcp-option=46,8# NetBios Node Type dhcp-option=option:ntp-server,213.186.41.134,88.191.79.242,193.55.167.2,80.65.235.4,194.57.191.1,91.121.45.45 dhcp-script=/usr/local/bin/dhcp_action domain=faust-network expand-hosts bogus-nxdomain=64.94.110.11 #get SSL certificate from another CAServer localmx selfmx conf-file=/usr/local/etc/blocklist.conf # filter adds, shits, facebook, ... my resolv.conf: nameserver 10.242.42.254 #localhost, priv addr nameserver 8.8.4.4 domain faust-network I already have a dnsmasq working perfectly on my current gate (ArchLinux-x86_64). I copied the configuration, making a few changes (192.168.0.0/24 - 10.0.0.0/8). So, I don't understant what I'm doing wrong Any idea? Cheers, --- Samuel Martín Moro {EPITECH.} tek5 CamTrace S.A.S ___ freebsd-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: TCP Logs Why Connection attempt to closed port
On Mon, Sep 20, 2010 at 11:58:38AM +0100, David Southwell wrote: Large quantities of these errors constantly appear in log/dmesg.today. Can anyone explain what is going on and whether any action is needed. If so how to go about tracing the cause. I think you probably have the net.inet.tcp.log_in_vain sysctl set to something other than 0, causing the kernel to log these connection attempts on ports where no service is listening. It is probably nothing to worry about. If you want to turn these warnings off, check in your /etc/rc.conf for `log_in_vain=1' or similar and remove it - the default, set in /etc/defaults/rc.conf, is to not log these attempts. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgp58aKT7MgYT.pgp Description: PGP signature
Re: why is the PHP stuff line off by default in ports/lang/php5?
On Mon, 20 Sep 2010, Rob Farmer wrote: On Mon, Sep 20, 2010 at 00:45, Alex Dupre a...@freebsd.org wrote: This issue has been discussed too many times. The answer is simply no, but you can search the archives for the actual reason. You have to comile the module for your specific apache installation. -- Alex Dupre If you can't be bothered to give the actual reason, then why even reply? I have searched the archives. Unfortunately, there are so many messages revolving around how to set up php, secure it, etc. that it becomes difficult to find anything relevant. The only thing I came across was a thread from 2007 about how this is more like a personal preference than engineering as such[1] and its just one of those things that you learn to live with after a while.[2] [1] http://lists.freebsd.org/pipermail/freebsd-questions/2007-June/151399.html [2] http://lists.freebsd.org/pipermail/freebsd-questions/2007-June/151384.html I think that response was not all that unreasonable. I 'remember' the topic in general. My questions archive has 80,000 messages. Most [all??] of the ones relating to this issue probably do not address that in the subject line and are thus lost [to me]. That said the following reasons come to mind: 1) security - google + security + php = 9.7 million hits Probably enough said. But if I do not have php installed why should I have to prune it from apache or worry about the subset of the 9.7 hits that relate to my server[s]. 2) apache builds w/o php, and should php4, php5, or php6 be included by default? The base apache httpd.conf file requires several statement to support php, they should not have to be removed if php is not installed. Having the base of any port install other packages/ports that are not required breaks the requirements/dependencies that are the heart of the ports system. 3) I think (proof left to the reader) there is an apache/php package. 4) My own opinion of best admin practices generally follows, if you don't need it, don't install it. If you build/install something like wordpress that requires both php and apache, the correct thing is done. Usually even the required directives are added to httpd.conf. The original question does not say if a port management system was used to upgrade apache. If that was the case, perhaps one could argue apache was not updated properly. Even in that case, I would argue that the bug [if any] lies with the port management system. ___ freebsd-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: Problem running custom startup script at proper time
From owner-freebsd-questi...@freebsd.org Sun Sep 19 16:37:49 2010 From: Aaron drizzt...@gmail.com Date: Sun, 19 Sep 2010 14:39:08 -0700 To: freebsd-questions@freebsd.org Subject: Re: Problem running custom startup script at proper time Doh! Forgot to reply to the mailing list. Nope, that didn't work either. Darn. Maybe I'll just have to modify the /etc/rc.d/zfs script to run the for loop first :( How about just modifying the REQUIRE header on it to include 'gnop' the sequencer that selects the order to run rc.d things in sorts based on the REQUIRE/PROVIDES dependencies. On Sun, Sep 19, 2010 at 14:04, Boris Samorodov b...@ipt.ru wrote: On Sun, 19 Sep 2010 13:55:41 -0700 Aaron wrote: On Sun, Sep 19, 2010 at 13:27, Boris Samorodov b...@ipt.ru wrote: On Sun, 19 Sep 2010 12:40:52 -0700 Aaron wrote: # PROVIDE: gnop What if you try PROVIDE: disks instead? No good. I also tried the following in the gnop script: # PROVIDE: gnop # REQUIRE: mountcritlocal # BEFORE: zfs /etc/rc.d/geli has this: - # PROVIDE: disks # REQUIRE: initrandom # KEYWORD: nojail - Seems that that should work for you. If not I'm out of ideas for now. The services -r looks promising, but the dmesg is still the same :( =A0When I disable zfs auto-mount, and then run it manually after boot, it uses the .nop devices that were created correctly as it should. EXCERPT services -r /etc/rc.d/mdconfig /etc/rc.d/mountcritlocal /etc/rc.d/gnop /etc/rc.d/zfs -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-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: why is the PHP stuff line off by default in ports/lang/php5?
d...@safeport.com wrote: On Mon, 20 Sep 2010, Rob Farmer wrote: On Mon, Sep 20, 2010 at 00:45, Alex Dupre a...@freebsd.org wrote: This issue has been discussed too many times. The answer is simply no, but you can search the archives for the actual reason. You have to comile the module for your specific apache installation. [snip] Many admins choose FastCGI over mod_php. We are not interested in having mod_php installed for us by default. So defaulting to 'off' is good. Had the OP been paying attention to this it would have been so simple for him to click the box in make config and build/install mod_php. Why should it be automatically On for those of us who do not want nor use mod_php? Being caught out when a change occurs is simply inattention to detail. [snip] 4) My own opinion of best admin practices generally follows, if you don't need it, don't install it. If you build/install something like wordpress that requires both php and apache, the correct thing is done. Usually even the required directives are added to httpd.conf. The original question does not say if a port management system was used to upgrade apache. If that was the case, perhaps one could argue apache was not updated properly. Even in that case, I would argue that the bug [if any] lies with the port management system. The reason for paying attention is time can, and does, bring change. Maybe once upon a time installing mod_php was the default, but as more people selected alternatives it was decided to leave the choice up to the user. It is by not paying attention that such a change occurs and goes unnoticed. Blindly assuming that 'because it was always *this* way for years' does not mean things won't ever change. Many of these changes are logged in UPDATING. I have been updating Apache and PHP with portupgrade for years. I also recognize that a change in port build options may render the saved options file under the corresponding port directory in /var/db/ports invalid. When and if such a thing occurs it is up to me to recognize and adjust, rather than just blindly 'assume and ignore...'. These are the very typical duties of a system administrator. -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: The nightmarish problem of installing a printer
From owner-freebsd-questi...@freebsd.org Mon Sep 20 07:11:41 2010 Date: Mon, 20 Sep 2010 05:20:52 -0700 From: per...@pluto.rain.com To: free...@insightbb.com Cc: freebsd-questions@freebsd.org Subject: Re: The nightmarish problem of installing a printer Steven Friedrich free...@insightbb.com wrote: Common Unix Printing System certainly sounds as if the intent was to be the ONE thing that is used for printing. Whether they did a good job of it is another question entirely :( I think that you don't fully apreciate the task at hand. When Unix was first invented, there were no laser printers, ink jets, USB, etc. That no one can create a one-size fits all solution OWES to the fact it's simply not always possible to unify disparate designs. They weren't designed to be interoperable. Technology keeps marchng forward. We need to discard all of it eventually. Back in the CP/M and early MS-DOS days, similar doubts were raised regarding display systems. Fortunately, those doubts did not stop some developers from doing what others thought impossible. The results included X11, which has been rather durable for a considerable time. snort, snicker, gasp ROTFLMAO X works IF AND ONLY IF you have: 1) software that uses and responds to the *PUBLISHED* protocol for communicatins between applications and servers 2) a server that _knows_ how to communicate to the actual display device. either because that device behaves in compliance with a PUBLISHED specification, or because somebody who 'knows the secrets' has provided it. There has been an *EXACTLY* EQUIVALENT solution for printers for more than two decades. It's called PostScript. The problem with supporting modern WinPrinters is that a signficant amount of the 'smarts' necessary to produce a printed page are *NOT* in the printer. they are on the 'driver' that the printer manufacturer supplies (and only as MS-WINDOWS(r) code). They 'know the secrets' (see #2 above), of how to talk to the stupid hardware, and provide a 'standard interface' (the windows device driver) on the 'upstream' side of that software. Unfortunately, that is the *only* interface THEY provide -- you can't talk PostScript to it, you can't talk PCL to it, you cant talk X to it, you can't even talk Plain ASCII to it. Since _nobody_else_ knows the secrets of how to actually communite with that stupid hardware, we _CANNOT_ write a driver to use the device, no matter how much we would like to. *UNLESS* the manufacturer releases the protocol info (see #2 above) for direct device communiction, that is. Some hardware 'speaks' a standard' language, and is plug-and-play interchangable with any other device that speaks the same language, without *ANY* changes (not even a different 'device driver') to whatever it is connected to. As long as the connecting device has *a* driver tat supports that standard. Hardware that speaks a 'proprietary' language requires a 'customized' driver on the host system -- one that knows how to translate from the format that applications use to what the printer understands. *IF* the proprietary language is _documented_ -- i.e. =published= (see #2m above) -- then *anybody* with an incendive to do so *CAN* do so. *WITHOUT* such documentation, from *somewhere*, we are simply =unable= to do the things necessary to utilize that printer. No matter _how- 'attractive it is. Adapting MS-Windows print drivers is not 'practical' either. A windows print driver is embedd in the O/S KERNEL, with _system_ calls_ (not mere 'library' routines) that implement the 'device-dependant' rendering of layout/formating directions. One then takes the 'opaque object' so produced and sends it (via _another_ set of system calls) to the 'output' function of that same driver. In the Unix world, printing is handled _externally_ to the kernel. The application must have =its=own=means= of deciding what formatting/layout commands to use -- it _can't_ query the O/S for this info; the O/S simply doesn't have 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