Re: Changing Default Shell
chsh Samuel Martín Moro CamTrace {EPITECH.} tek4 Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) On Fri, Feb 26, 2010 at 5:41 AM, mikel king mikel.k...@olivent.com wrote: On Feb 25, 2010, at 9:57 PM, Roger Campbell wrote: Lowell Gilbert, I would like to thank you for your posting about changing the default shell. I was running in circles until I found your post suggestion vipw. Roger Roger, You can also use pw. pw usermod rcampbell -s /bin/tcsh Regards, Mikel King CEO, Olivent Technologies Senior Editor, BSD News Network Columnist, BSD Magazine 6 Alpine Court, Medford, NY 11763 o: 631.627.3055 c: 631.796.1499 skype:mikel.king http://olivent.com http://www.linkedin.com/in/mikelking http://twitter.com/mikelking ___ freebsd-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: OOo.3.20 vs OOo.3.11
On Thu, Feb 25, 2010 at 11:47:03PM -0600, Dan Nelson wrote: In the last episode (Feb 25), Gary Kline said: I d'loaded and built the latest Version of OOo on my new dual core server, then scp'd it over, stuck it in /usr/local , and tried to install the 3.2.0 version with pkg_add. (I tried other things too, note, zip. The following is an ls -lt of /usr/local with the output of the failed pkg_add. Any idea what I'm doing to cause this fatal blunder? gary r...@tao:/usr/local# pkg_add -v openoffice.org-3.2.0.tbz Requested space: 582M bytes, free space: 1109M bytes in /var/tmp/instmp.eXPq2W pkg_add: package 'openoffice.org-3.2.0' or its older version already installed pkg_add: 1 package addition(s) failed r...@tao:/usr/local# package 'openoffice.org-3.2.0' or its older version already installed Try uninstalling any previous versions of openoffice. thanks for the idea; for amoment i was feeling like the saddest sack in seattle, but both moving OOo-311 elsewhere didn't work so i forced the install with pkg_add -f and that did it. there may be some token file hidden from prev builds. at least one of us is awake. anyway, i took the time to clear out a lot of deadwood... -- Dan Nelson dnel...@allantgroup.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 -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
8.0 PAE kernel, KVA and kern.maxvnodes
I have a 32 bit FreeBSD 8.0 running on a quad core Xeon machine with 6 gigs of RAM. I decided on a 32 bit vs 64 for various reasons. So now I need to enable PAE in the kernel, easy enough. I had a look through all the relevant man pages and I've successfully modified my kernel configuration file. I just have one concern remaining. I do a man 4 pae and the last paragraph has me worried a bit. It's regarding KVA_PAGES and kern.maxvnodes. I'm not really sure what they mean there in the man page, and the tuning manpage does not give further details on this subject. The Google hits that I got regarding this are a bit outdated as well. Should I tamper with these values (KVA_PAGES and/or kern.maxvnodes)? If so, what are some good settings for my 6 gig machine running FreeBSD 8.0? Or maybe just leave as-is? ___ freebsd-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: premature ENOMEM
On Thu, 25 Feb 2010 22:49:22 -0800, Brad Penoff wrote: BP I have a 32-bit machine with 2 GB running FreeBSD 8. I have a complex BP application that starts getting ENOMEM once the resident memory is BP about 200 MB. I adjusted the appropriate /boot/loader.conf and BP /etc/login.conf settings resulting in an increase in the limit BP values to around 2 GB, but still the complex application gives me BP ENOMEM at 200 MB. Including swap space, I should be able to handle 3 BP GB in an application. I need help understanding how I can enable this BP or why I cannot. Don't forget that increase of kern.maxdsiz will decrease space for mmap. And by default malloc in FreeBSD 8 uses mmap. Try to set kern.maxdsiz to small value (may be 0 will be ok). http://docs.freebsd.org/cgi/mid.cgi?200207291839.g6TIduVw055637 -- WBR, Anton Yuzhaninov ___ freebsd-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: Printing via USB Port
On Fri, Feb 26, 2010 at 2:28 AM, Bill Tillman btillma...@yahoo.com wrote: I tried cups but I could not get it to work even though it found the printer on ulpt0:. You may have the permissions-related problem described here: http://farid.hajji.name/blog/2010/02/02/printing-woes-on-freebsd-8-with-cups/ Regards, -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
Mailing lists link in handbook redirects to......
This address http://searchportal.information.com/?o_id=94081domainname=lists.freebsd.org I'm trying to subscribe to freebsd-emulation but I end up at the above. I've tried via the handbook and direct url. Same result. Is this a new behaviour? /Leslie ___ freebsd-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: Mailing lists link in handbook redirects to......
Hi, Leslie Jensen wrote: This address http://searchportal.information.com/?o_id=94081domainname=lists.freebsd.org I'm trying to subscribe to freebsd-emulation but I end up at the above. I've tried via the handbook and direct url. Same result. Is this a new behaviour? Nope, the link works correctly for me. It's possible it's a DNS issue and your ISP does redirection to a search result page when it cannot find the domain. What IP returns from 'dig lists.freebsd.org'? Regards, -- 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: Mailing lists link in handbook redirects to......
On 2010-02-26 12:41, Glen Barber wrote: Hi, Leslie Jensen wrote: This address http://searchportal.information.com/?o_id=94081domainname=lists.freebsd.org I'm trying to subscribe to freebsd-emulation but I end up at the above. I've tried via the handbook and direct url. Same result. Is this a new behaviour? Nope, the link works correctly for me. It's possible it's a DNS issue and your ISP does redirection to a search result page when it cannot find the domain. What IP returns from 'dig lists.freebsd.org'? Regards, I get dig lists.freebsd.org ; DiG 9.6.1-P1 lists.freebsd.org ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 37225 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 3 ;; QUESTION SECTION: ;lists.freebsd.org. IN A ;; ANSWER SECTION: lists.freebsd.org. 3515IN CNAME wwwdyn.freebsd.org. wwwdyn.freebsd.org. 3524IN A 69.147.83.38 ;; AUTHORITY SECTION: freebsd.org.3524IN NS ns3.isc-sns.info. freebsd.org.3524IN NS ns1.isc-sns.net. freebsd.org.3524IN NS ns2.isc-sns.com. ;; ADDITIONAL SECTION: ns1.isc-sns.net.81492 IN A 72.52.71.1 ns1.isc-sns.net.53872 IN 2001:470:1a::1 ns2.isc-sns.com.81492 IN A 38.103.2.1 ;; Query time: 53 msec ;; SERVER: 172.17.0.1#53(172.17.0.1) ;; WHEN: Fri Feb 26 13:39:53 2010 ;; MSG SIZE rcvd: 220 But I'm still redirected! /Leslie ___ freebsd-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: Mailing lists link in handbook redirects to......
On 2010-02-26 12:41, Glen Barber wrote: Hi, Leslie Jensen wrote: This address http://searchportal.information.com/?o_id=94081domainname=lists.freebsd.org I'm trying to subscribe to freebsd-emulation but I end up at the above. I've tried via the handbook and direct url. Same result. Is this a new behaviour? Nope, the link works correctly for me. It's possible it's a DNS issue and your ISP does redirection to a search result page when it cannot find the domain. What IP returns from 'dig lists.freebsd.org'? Regards, If I do host lists.freebsd.org lists.freebsd.org is an alias for wwwdyn.freebsd.org. wwwdyn.freebsd.org has address 69.147.83.38 wwwdyn.freebsd.org has IPv6 address 2001:4f8:fff6::26 wwwdyn.freebsd.org mail is handled by 0 And then use the url http://69.147.83.38/mailman/listinfo/freebsd-emulation I get -- FreeBSD.org - Document not found The file http://realcgi.sky.freebsd.org does not exist at this server. The closest match to your request is http://realcgi.sky.freebsd.org. Please contact the members of the FreeBSD Documentation Project freebsd-...@freebsd.org or the server administrator w...@freebsd.org. Please try our Site Map or Search Page Thank you very much! -- /L ___ freebsd-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: Mailing lists link in handbook redirects to......
On 2010.02.26 08:22, Leslie Jensen wrote: On 2010-02-26 12:41, Glen Barber wrote: Hi, Leslie Jensen wrote: This address http://searchportal.information.com/?o_id=94081domainname=lists.freebsd.org I'm trying to subscribe to freebsd-emulation but I end up at the above. I've tried via the handbook and direct url. Same result. Is this a new behaviour? Nope, the link works correctly for me. It's possible it's a DNS issue and your ISP does redirection to a search result page when it cannot find the domain. What IP returns from 'dig lists.freebsd.org'? Regards, If I do host lists.freebsd.org lists.freebsd.org is an alias for wwwdyn.freebsd.org. wwwdyn.freebsd.org has address 69.147.83.38 wwwdyn.freebsd.org has IPv6 address 2001:4f8:fff6::26 wwwdyn.freebsd.org mail is handled by 0 And then use the url http://69.147.83.38/mailman/listinfo/freebsd-emulation I get -- FreeBSD.org - Document not found I get the same thing as you over v4, but it works fine over v6. Let me know if you want me to push a sub request for you ;) 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
Where can I find port configuration options?
I know you can set your options when you build a port. But where can I find these options for a port? For example, how can I build Firefox with the option to disable anti-aliasing font? Xihong ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
[GJournal+Geli] Quick question before installation
Hi list I am new to all these features and I am about to install FreeBSD8.0 from a USB Drive. Before I take any further steps, I would like to ask whether is possible to perform an installation having an encrypted journaled UFS2 filesystem. As far as I know, I would say it is possible since gjournal and UFS2 operate on top of geli. Is this correct? Thanks in advance and have a nice day. ___ freebsd-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: Where can I find port configuration options?
n Fri, Feb 26, 2010 at 8:06 AM, Xihong Yin x...@gmx.com wrote: I know you can set your options when you build a port. But where can I find these options for a port? For example, how can I build Firefox with the option to disable anti-aliasing font? Wel the shortterm answer to you problems is somethine like this: make config but for long term you should read man ports and at least the ports section in the handbook. -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Printing via USB Port
--- On Fri, 2/26/10, C. P. Ghost cpgh...@cordula.ws wrote: From: C. P. Ghost cpgh...@cordula.ws Subject: Re: Printing via USB Port To: Bill Tillman btillma...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Friday, February 26, 2010, 3:44 AM On Fri, Feb 26, 2010 at 2:28 AM, Bill Tillman btillma...@yahoo.com wrote: I tried cups but I could not get it to work even though it found the printer on ulpt0:. You may have the permissions-related problem described here: http://farid.hajji.name/blog/2010/02/02/printing-woes-on-freebsd-8-with-cups/ Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/ Thanks, that's some very useful information but alas it did not help me. After further testing here is what I can say: 1. The ugen device does not show up in dmesg. 2. The ulpt0 device does show up and it clearly identifies the Brother-HL-2040 printer on the other end of the USB cable. # dmesg | grep ulpt ulpt0: Brother HL-2040 series, class 0/0, rev 2.00/1.00, addr 2 on uhub0 ulpt0: using bi-directional mode 3, I edited /etc/devfs.rules as instructed and restarted the service. I then restarted cupsd. Nothing changed. I cold booted the entire setup but still cupd web interface will not find the printer. If I manually enter the printer and then install a ppd file for it I still get nothing to print. This printer worked fine when I was using lpd and a parallel port. Also the apsfilter port is broken which makes it more difficult for a novice like me to get the correct setting for it with lpr method. So I was really looking forward to getting cupsd working this time round. Any additional advice would be appreciated. ___ freebsd-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: [GJournal+Geli] Quick question before installation
On 02/26/10 14:40, Malibu Carl wrote: Hi list I am new to all these features and I am about to install FreeBSD8.0 from a USB Drive. Before I take any further steps, I would like to ask whether is possible to perform an installation having an encrypted journaled UFS2 filesystem. As far as I know, I would say it is possible since gjournal and UFS2 operate on top of geli. Is this correct? Yes, you would have this graph of GEOM classes: DISK - [possibly some partitions or slices] - GELI - GJOURNAL - UFS GJOURNAL and UFS need to be together, other classes are not position sensitive (within reason). ___ freebsd-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: Printing via USB Port
On Fri, 26 Feb 2010, Bill Tillman wrote: This printer worked fine when I was using lpd and a parallel port. Also the apsfilter port is broken which makes it more difficult for a novice like me to get the correct setting for it with lpr method. So I was really looking forward to getting cupsd working this time round. The original lpd will work with USB printers. This will give you a PostScript printer as the default lp. (Following is collected from several systems, please pardon if something was left out.) /etc/printcap: lp:\ :lp=/dev/ulpt0:\ :sh:\ :mx#0:\ :sd=/var/spool/lpd/lp:\ :if=/usr/local/libexec/ps2pcl:\ :lf=/var/log/lpd-errs: Create the spool directory: % mkdir /var/spool/lpd/lp % chmod 770 /var/spool/lpd/lp Create the PostScript to PCL filter (Brother HL2040 only understands PCL): % echo /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 -sOutputFile=- - /usr/local/libexec/ps2pcl % chmod +x /usr/local/libexec/ps2pcl Add lpd_enable=YES in /etc/rc.conf, and start it manually this time with just % lpd More detail: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-intro-setup.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: premature ENOMEM
Thanks Anton for the advice about a low kern.maxdsiz . Does that work on your machine? I tried to give instructions in the original post so that anyone can tune their machine and try to see what I am seeing. Can others try to see on their own machines if the suggestions work? I'll do anything to help (even provide machines, if need be). I'm surprised how difficult this is FreeBSD compared to Linux and Mac OS X, but I think FreeBSD will be the most performant if I can get over this hump. On my machine, I had kern.maxdsiz, kern.maxssiz, and kern.dfldsiz all set to 2147483648 to match the 2 GB on my machine; that wasn't working though. I tried to modify but had much worse results... I set this: kern.maxdsiz=100 kern.maxssiz=2147483648 kern.dfldsiz=2147483648 ... and NFS didn't load. I set this: kern.maxdsiz=0 kern.maxssiz=2147483648 kern.dfldsiz=2147483648 ... and sshd didn't load! What combination should I try or what combination did you have in mind? Please excuse my ignorance. Also, I don't understand the link you sent... was it mistyped? It seems to go to some index and not any advice on this matter... http://docs.freebsd.org/cgi/mid.cgi?200207291839.g6TIduVw055637 Thanks again for your help and ahead of time to anyone else's... I'm getting a bit desperate and I'm surprised how difficult this is to get working in FreeBSD when it was so simple in Linux and Mac OS X. The thing is, I typically use FreeBSD for the best performance but I can't even get it to run there, at the moment. Thanks, brad On Thu, Feb 25, 2010 at 10:49 PM, Brad Penoff pen...@cs.ubc.ca wrote: Greetings, I have a 32-bit machine with 2 GB running FreeBSD 8. I have a complex application that starts getting ENOMEM once the resident memory is about 200 MB. I adjusted the appropriate /boot/loader.conf and /etc/login.conf settings resulting in an increase in the limit values to around 2 GB, but still the complex application gives me ENOMEM at 200 MB. Including swap space, I should be able to handle 3 GB in an application. I need help understanding how I can enable this or why I cannot. I had this same problem on FreeBSD 6.3 about a year and a half ago, but I found an application-level work-around particular for FreeBSD (the full thread is here http://markmail.org/message/5nsld7pb25m5bfja ; but we found no general solution unfortunately ). This application-level work-around is no longer sufficient so I wanted to revisit the root of this problem I was seeing and hopefully ask this community of smart hackers to give me a hand here... I have created a simplified application that demonstrates this exact same problem and made it easy to reproduce. I was hoping that some kind and helpful person could take a look at it and help me out. It doesn't require any editing of code or anything... In the end, I just need to know how to configure my FreeBSD box with 2 GB of RAM to not give me ENOMEM for this application when it is using only 200 MB, something that never happened in the previous unresolved thread reverenced above. This simplified application has a deliberate memory leak but the goal is for it to not give ENOMEM at 200 MB (I want to be able to use about 1.5 GB). I have created a tarball... I think it may only work on a 32-bit machine. download/wget http://cs.ubc.ca/~penoff/reslim.tgz tar zxf reslim.tgz cd reslim gmake (or make on Linux) sh ./myumem.sh On my system, when this prints our an error message, in top, I only see about 200 MB of both SIZE and RES (they are a few numbers off). The goal is for SIZE to be 1.5 GB or higher; RES is up to the OS. For example, on Linux, SIZE (called VIRT) goes as high as 2.8 GB before the system just becomes slow and unusable (never saw ENOMEM). For FreeBSD, what can I change to increase the possible SIZE before I see ENOMEM? I have tried increasing /boot/loader.conf values to match my 2 GB RAM (kern.maxdsiz, kern.maxssiz, kern.dfldsiz), as well as unlimited values in /etc/login.conf, but still 200 MB seems a hard limit. Any ideas? Why is it not going beyond 200 MB? Resident memory is equal to memory size used by the app so why is it never going to disk to swap before ENOMEM comes up? Thanks a million for any help or advice you could lend. I would be more than willing to help in any way, even providing a machine to try this on (I could sponsor an emulab.net account). Anxious to hear what options exist. Thanks again, brad ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Problem with a sound card
Hi, Please help me with a problem. I installed FreeBSD casiopea.lukawski.net 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct 2 12:21:39 UTC 2009 r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 on Cassiopea Fiva MPC-205E ( http://world.casio.com/system/pa/products/ht/fiva_mpc205e_spec.html ) with build in sound card AC-Link connected sound chip (16-bit stereo PCM) Then I tried kldload snd_driver and the driver was recognised as: casiopea# cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) Installed devices: pcm0: Acer Labs M5451 at io 0x1000 irq 10 kld snd_t4dwave [GIANT] (1p:1v/1r:1v channels duplex default) but... still no sound then I enabled the driver in /boot/defaults/loader.conf snd_t4dwave_load=YES # t4dwave the driver is loading properly, but ... still no sound Following the suggestion from http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-November/005322.html I've put these into my /etc/sysctl.conf: hw.snd.maxautovchans=10 hw.snd.pcm0.vchans=4 still no sound if I try casiopea# mpg123 puszek.mp3 I get: High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.10.0; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes Playing MPEG stream 1 of 1: puszek.mp3 ... [...] MPEG 1.0 layer III, 320 kbit/s, 44100 Hz joint-stereo but still no sound. Please help to solve it, I have no more idea what I can do with. Thanks in advance, Take care, Piotr ___ freebsd-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: Printing via USB Port
Warren, Thanks for your reply. Your answers are usually spot on but this is one of those difficult times when the Windows and Linux guys at work laugh their asses off at me for being such a FreeBSD die-hard. I thought it might be a faulty cable or even the printer shot it's wad so I moved it over to a Windows Vista machine and poof, 15 seconds later it had found it, installed the correct driver and printed two pages for me. I tried your method below and even though I changed x attribute all I got was the following in the /var/log/lpd-errs file: Feb 26 11:30:29 FreeBSD1 lpd[1413]: lp: cannot execv(/usr/local/libexec/ps2pcl): Exec format error Feb 26 11:30:29 FreeBSD1 lpd[1412]: lp: job could not be printed (cfA000FreeBSD1.flgmsi.com) So I added the standard #!/bin/sh line to the beginning of the ps2pcl file and nothing printed, not even error messages about what happened. And that seems to be what's going on here. I also tried the standard ifhp filter file shown in the handbook and switched the device from DJ500 to hl1250. This is the gs driver that worked before with the apsfilter method when the printer was on lpt0: The queue shows it's empty with no jobs waiting and the log files are void of any evidence of what happened to the job. The printer sits there as if nothing happened. I understand these are difficult topics to overcome with FreeBSD as the docs are not always in synch with the OS. But just like before when I had trouble getting this laser printer to work under lpd until I found apsfilter it was difficult. Once I had that method down it was easy to setup again. It's got to be something simple here. Thanks again for the advice. If you think of anything else please pass it on. In the meantime I'm still doing google and yahoo searches and will try again with the #freebsd channel. --- On Fri, 2/26/10, Warren Block wbl...@wonkity.com wrote: From: Warren Block wbl...@wonkity.com Subject: Re: Printing via USB Port To: Bill Tillman btillma...@yahoo.com Date: Friday, February 26, 2010, 10:06 AM Resending this off-list since my filter blocked the reply to Yahoo. I've unblocked Yahoo for now, but that probably won't last long. On Fri, 26 Feb 2010, Warren Block wrote: On Fri, 26 Feb 2010, Bill Tillman wrote: This printer worked fine when I was using lpd and a parallel port. Also the apsfilter port is broken which makes it more difficult for a novice like me to get the correct setting for it with lpr method. So I was really looking forward to getting cupsd working this time round. The original lpd will work with USB printers. This will give you a PostScript printer as the default lp. (Following is collected from several systems, please pardon if something was left out.) /etc/printcap: lp:\ :lp=/dev/ulpt0:\ :sh:\ :mx#0:\ :sd=/var/spool/lpd/lp:\ :if=/usr/local/libexec/ps2pcl:\ :lf=/var/log/lpd-errs: Create the spool directory: % mkdir /var/spool/lpd/lp % chmod 770 /var/spool/lpd/lp Create the PostScript to PCL filter (Brother HL2040 only understands PCL): % echo /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 -sOutputFile=- - /usr/local/libexec/ps2pcl % chmod +x /usr/local/libexec/ps2pcl Add lpd_enable=YES in /etc/rc.conf, and start it manually this time with just % lpd More detail: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-intro-setup.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Printing via USB Port
On Fri, 26 Feb 2010 09:01:35 -0800 (PST) Bill Tillman btillma...@yahoo.com articulated: Thanks for your reply. Your answers are usually spot on but this is one of those difficult times when the Windows and Linux guys at work laugh their asses off at me for being such a FreeBSD die-hard. I thought it might be a faulty cable or even the printer shot it's wad so I moved it over to a Windows Vista machine and poof, 15 seconds later it had found it, installed the correct driver and printed two pages for me. I tried your method below and even though I changed x attribute all I got was the following in the /var/log/lpd-errs file: Feb 26 11:30:29 FreeBSD1 lpd[1413]: lp: cannot execv(/usr/local/libexec/ps2pcl): Exec format error Feb 26 11:30:29 FreeBSD1 lpd[1412]: lp: job could not be printed (cfA000FreeBSD1.flgmsi.com) So I added the standard #!/bin/sh line to the beginning of the ps2pcl file and nothing printed, not even error messages about what happened. And that seems to be what's going on here. I also tried the standard ifhp filter file shown in the handbook and switched the device from DJ500 to hl1250. This is the gs driver that worked before with the apsfilter method when the printer was on lpt0: The queue shows it's empty with no jobs waiting and the log files are void of any evidence of what happened to the job. The printer sits there as if nothing happened. I understand these are difficult topics to overcome with FreeBSD as the docs are not always in synch with the OS. But just like before when I had trouble getting this laser printer to work under lpd until I found apsfilter it was difficult. Once I had that method down it was easy to setup again. It's got to be something simple here. Thanks again for the advice. If you think of anything else please pass it on. In the meantime I'm still doing google and yahoo searches and will try again with the #freebsd channel. I feel your pain. I have struggles getting printers, especially wireless ones, working with FreeBSD for way too long also. It always seems to be a hit or miss adventure. While MS Windows has several problems, printing is not one of them. Good luck, and please post your solution once you have one. -- Jerry ges...@yahoo.com |=== |=== |=== |=== | You cannot use your friends and have them too. ___ freebsd-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: Mailing lists link in handbook redirects to......
On Fri, 26 Feb 2010 14:22:32 +0100, Leslie Jensen les...@eskk.nu wrote: If I do host lists.freebsd.org lists.freebsd.org is an alias for wwwdyn.freebsd.org. wwwdyn.freebsd.org has address 69.147.83.38 wwwdyn.freebsd.org has IPv6 address 2001:4f8:fff6::26 wwwdyn.freebsd.org mail is handled by 0 And then use the url http://69.147.83.38/mailman/listinfo/freebsd-emulation This is quite wrong. You are being redirected through DNS to a bogus FreeBSD.org host name alias. Can you run tcpdump as root and collect all UDP and TCP traffic for port 32 (DNS) on your main network interface? For example, if your main NIC is em0 you can run: # tcpdump -i em0 -nvv -s 2000 -w dns.pcap '(udp or tcp) port 53' Then run the same host/dig commands, stop tcpdump and either make the pcap file available online somewhere or email us with the output of: # tcpdump -n -l -e - -vv -s 2000 -r dns.pcap The output of the final command should be a text dump of he captured traffic, including any Ethernet headers from your host to the local gateway. It will also help if you can tell us what your IP address is (although that's probably relatively easy to guess from the DNS requests of the dumped traffic). ___ freebsd-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: Mailing lists link in handbook redirects to......
From: Giorgos Keramidas keram...@ceid.upatras.gr Date: Fri, 26 Feb 2010 18:09:45 +0200 Subject: Re: Mailing lists link in handbook redirects to.. On Fri, 26 Feb 2010 14:22:32 +0100, Leslie Jensen les...@eskk.nu wrote: If I do host lists.freebsd.org lists.freebsd.org is an alias for wwwdyn.freebsd.org. wwwdyn.freebsd.org has address 69.147.83.38 wwwdyn.freebsd.org has IPv6 address 2001:4f8:fff6::26 wwwdyn.freebsd.org mail is handled by 0 And then use the url http://69.147.83.38/mailman/listinfo/freebsd-emulation This is quite wrong. You are being redirected through DNS to a bogus FreeBSD.org host name alias. *IF* it is wrong, then it is the 'authoritative' FreeBSD nameservers that are giving out the bogus information. wry grin Can you run tcpdump as root and collect all UDP and TCP traffic for port 32 (DNS) Needless to say, DNS is UDP port 53, not 32 You got it right in the command- line, so I'll assume this was just a typo. grin Here's what _I_ see, when querying the authoritative nameservers directly. host121: {206} % whois -h whois.geektools.com freebsd.org GeekTools Whois Proxy v5.0.4 Ready. Checking server [whois.publicinterestregistry.net] Results: Domain ID:D4488916-LROR Domain Name:FREEBSD.ORG Created On:19-Sep-1994 04:00:00 UTC Last Updated On:14-Feb-2010 05:20:52 UTC Expiration Date:18-Sep-2016 04:00:00 UTC Sponsoring Registrar:Tucows Inc. (R11-LROR) Status:CLIENT TRANSFER PROHIBITED Status:CLIENT UPDATE PROHIBITED Status:TRANSFER PROHIBITED Registrant ID:tuHbzdTWLmystFVY Registrant Name:THE FREEBSD FOUNDATION Registrant Organization:THE FREEBSD FOUNDATION Registrant Street1:P.O. Box 20247 Registrant Street2: Registrant Street3: Registrant City:BOULDER Registrant State/Province:CO Registrant Postal Code:80308 Registrant Country:US Registrant Phone:+1.7202075142 Registrant Phone Ext.: Registrant FAX: Registrant FAX Ext.: Registrant Email:bo...@freebsdfoundation.org Admin ID:tuHbzdTWLmystFVY Admin Name:THE FREEBSD FOUNDATION Admin Organization:THE FREEBSD FOUNDATION Admin Street1:P.O. Box 20247 Admin Street2: Admin Street3: Admin City:BOULDER Admin State/Province:CO Admin Postal Code:80308 Admin Country:US Admin Phone:+1.7202075142 Admin Phone Ext.: Admin FAX: Admin FAX Ext.: Admin Email:bo...@freebsdfoundation.org Tech ID:tuHbzdTWLmystFVY Tech Name:THE FREEBSD FOUNDATION Tech Organization:THE FREEBSD FOUNDATION Tech Street1:P.O. Box 20247 Tech Street2: Tech Street3: Tech City:BOULDER Tech State/Province:CO Tech Postal Code:80308 Tech Country:US Tech Phone:+1.7202075142 Tech Phone Ext.: Tech FAX: Tech FAX Ext.: Tech Email:bo...@freebsdfoundation.org Name Server:NS1.ISC-SNS.NET Name Server:NS2.ISC-SNS.COM Name Server:NS3.ISC-SNS.INFO Name Server: Name Server: Name Server: Name Server: Name Server: Name Server: Name Server: Name Server: Name Server: Name Server: DNSSEC:Unsigned host121: {201} % dig @ns1.isc-sns.net lists.freebsd.org ; DiG 8.1 @ns1.isc-sns.net lists.freebsd.org ; (1 server found) ;; res options: init recurs defnam dnsrch ;; got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 10 ;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 5 ;; QUERY SECTION: ;; lists.freebsd.org, type = A, class = IN ;; ANSWER SECTION: lists.freebsd.org. 1H IN CNAME wwwdyn.freebsd.org. wwwdyn.freebsd.org. 1H IN A 69.147.83.38 ;; AUTHORITY SECTION: freebsd.org.1H IN NSns2.isc-sns.com. freebsd.org.1H IN NSns1.isc-sns.net. freebsd.org.1H IN NSns3.isc-sns.info. ;; ADDITIONAL SECTION: ns1.isc-sns.net.1H IN A 72.52.71.1 ns1.isc-sns.net.1H IN 2001:470:1a::1 ns2.isc-sns.com.1H IN A 38.103.2.1 ns3.isc-sns.info. 1H IN A 63.243.194.1 ns3.isc-sns.info. 1H IN 2001:5a0:10::1 ;; Total query time: 50 msec ;; FROM: host121.r-bonomi.com to SERVER: ns1.isc-sns.net 72.52.71.1 ;; WHEN: Fri Feb 26 12:44:09 2010 ;; MSG SIZE sent: 35 rcvd: 264 host121: {202} % dig @ns2.isc-sns.com lists.freebsd.org ; DiG 8.1 @ns2.isc-sns.com lists.freebsd.org ; (1 server found) ;; res options: init recurs defnam dnsrch ;; got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 10 ;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 5 ;; QUERY SECTION: ;; lists.freebsd.org, type = A, class = IN ;; ANSWER SECTION: lists.freebsd.org. 1H IN CNAME wwwdyn.freebsd.org. wwwdyn.freebsd.org. 1H IN A 69.147.83.38 ;;
Re: Mailing lists link in handbook redirects to......
Hi-- On Feb 26, 2010, at 10:57 AM, Robert Bonomi wrote: http://69.147.83.38/mailman/listinfo/freebsd-emulation This is quite wrong. You are being redirected through DNS to a bogus FreeBSD.org host name alias. *IF* it is wrong, then it is the 'authoritative' FreeBSD nameservers that are giving out the bogus information. wry grin I think the problem is the webserver is using vhosts and doesn't process a request by IP or by other hostnames through the right config for Mailman lists. For example: http://lists.freebsd.org/mailman/listinfo/freebsd-emulation ...works fine, but: http://wwwdyn.freebsd.org/mailman/listinfo/freebsd-emulation ...or by IP address will fail. Experimentation with telnet or curl specifying different Host: headers should confirm this behavior. :-) Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Printing via USB Port
On Fri, 26 Feb 2010, Bill Tillman wrote: Your answers are usually spot on but this is one of those difficult times when the Windows and Linux guys at work laugh their asses off at me for being such a FreeBSD die-hard. That's like laughing at a chef when fast food is available. So I added the standard #!/bin/sh line to the beginning of the ps2pcl Doh. Time for me to create an article on this to avoid mistakes like that. file and nothing printed, not even error messages about what happened. This probably means it works. The ps2pcl filter expects PostScript input; it doesn't auto-format like apsfilter. So format your print jobs in PS first. Many applications do that already (OpenOffice), or there are conversion programs like enscript (print/enscript-letter) for text. % enscript testfile.txt Will format testfile.txt into PS and send it to the lp printer. This works for me here--I reconnected my printer via USB to try it. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Installing x11
When installing X11 I get the error message : Error code 1 I use # cd /usr/ports/x11/org # make clean isnatll stop in /usr/ports/graphics/dri. How can i solve this error ? Please help ___ freebsd-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: Installing x11
David Pesalema Masikara avidavesr...@yahoo.com writes: When installing X11 I get the error message : Error code 1 I use # cd /usr/ports/x11/org # make clean isnatll stop in /usr/ports/graphics/dri. How can i solve this error ? Please help Look a little earlier in the output to see what the original problem was. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-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: Printing via USB Port
LPD Printing document is now here: http://wonkity.com/~wblock/docs/lpdprinting.pdf Feedback and error corrections welcome. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Printing via USB Port
Okay, I have the setup like you show and at least now the jobs show up in the queue, but nothing makes it to the printer. It's funny because I can change the one line in /etc/printcap to point to lpt0 instead of ulpt0 and it works. I have both parallel and USB cables connected in this test setup, but the server I want to move the printer back to only has USB. Something else that seems odd, when I rebooted and started lpd from the command line there are two instances of it showing up in the ps -ax output. Shouldn't only one be running? After reboot and restarting lpd, the job is in the queue but nothing is printing when using the USB connection. Sorry to be so much trouble. I thought this would be one of those things that would just start working. --- On Fri, 2/26/10, Warren Block wbl...@wonkity.com wrote: From: Warren Block wbl...@wonkity.com Subject: Re: Printing via USB Port To: Bill Tillman btillma...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Friday, February 26, 2010, 1:54 PM On Fri, 26 Feb 2010, Bill Tillman wrote: Your answers are usually spot on but this is one of those difficult times when the Windows and Linux guys at work laugh their asses off at me for being such a FreeBSD die-hard. That's like laughing at a chef when fast food is available. So I added the standard #!/bin/sh line to the beginning of the ps2pcl Doh. Time for me to create an article on this to avoid mistakes like that. file and nothing printed, not even error messages about what happened. This probably means it works. The ps2pcl filter expects PostScript input; it doesn't auto-format like apsfilter. So format your print jobs in PS first. Many applications do that already (OpenOffice), or there are conversion programs like enscript (print/enscript-letter) for text. % enscript testfile.txt Will format testfile.txt into PS and send it to the lp printer. This works for me here--I reconnected my printer via USB to try it. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
about the checksum
when i downloaded the freebsd ISO files is there any reason why i should downlaod the checksum files also? why would they be on the download ISO page if there isnt a reason for them being there. what is the purpose of checksum files? and do I need to download them? I got the freebsd cd ISO. do i need any others off the same page. ..Newby. ___ freebsd-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: about the checksum
they are there so you can compare the real checksum hash for the .ISO file against what you downloaded as a way to make sure you downloaded every single bit of the file or if it has been changed. -- From: Ffflee Ffflee ffflee_fff...@yahoo.com Sent: Friday, February 26, 2010 4:39 PM To: freebsd-questions@FreeBSD.org Subject: about the checksum when i downloaded the freebsd ISO files is there any reason why i should downlaod the checksum files also? why would they be on the download ISO page if there isnt a reason for them being there. what is the purpose of checksum files? and do I need to download them? I got the freebsd cd ISO. do i need any others off the same page. ..Newby. ___ freebsd-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: Printing via USB Port
On Fri, 26 Feb 2010, Bill Tillman wrote: Okay, I have the setup like you show and at least now the jobs show up in the queue, but nothing makes it to the printer. It's funny because I can change the one line in /etc/printcap to point to lpt0 instead of ulpt0 and it works. I have both parallel and USB cables connected in this test setup, but the server I want to move the printer back to only has USB. [Please don't top-post, it makes replying harder.] Some inexpensive printers don't auto-switch ports, so try disconnecting the parallel cable when testing USB. Something else that seems odd, when I rebooted and started lpd from the command line there are two instances of it showing up in the ps -ax output. Shouldn't only one be running? If you have lpd_enable=YES in rc.conf, you don't need to start lpd from the command line. There should still only be one running. Is the second one grep, maybe? After reboot and restarting lpd, the job is in the queue but nothing is printing when using the USB connection. Check the status: % lpc status lp And try restarting the printer: % lpc restart lp -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Printing via USB Port
--- On Fri, 2/26/10, Warren Block wbl...@wonkity.com wrote: From: Warren Block wbl...@wonkity.com Subject: Re: Printing via USB Port To: Bill Tillman btillma...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Friday, February 26, 2010, 4:25 PM On Fri, 26 Feb 2010, Bill Tillman wrote: Okay, I have the setup like you show and at least now the jobs show up in the queue, but nothing makes it to the printer. It's funny because I can change the one line in /etc/printcap to point to lpt0 instead of ulpt0 and it works. I have both parallel and USB cables connected in this test setup, but the server I want to move the printer back to only has USB. [Please don't top-post, it makes replying harder.] Some inexpensive printers don't auto-switch ports, so try disconnecting the parallel cable when testing USB. Something else that seems odd, when I rebooted and started lpd from the command line there are two instances of it showing up in the ps -ax output. Shouldn't only one be running? If you have lpd_enable=YES in rc.conf, you don't need to start lpd from the command line. There should still only be one running. Is the second one grep, maybe? After reboot and restarting lpd, the job is in the queue but nothing is printing when using the USB connection. Check the status: % lpc status lp And try restarting the printer: % lpc restart lp -Warren Block * Rapid City, South Dakota USA Warren, Thanks again for your valuable input. I have set up lpd printing on my old FreeBSD server at least a dozen times and it became a simple routine to do with apsfilter. Let me see if I can place all my cards in one place and perhaps we can find the bug. /etc/printcap lp:\ :lp=/dev/lpt0:\ :sh:\ :mx#0:\ :sd=/var/spool/lpd/laser:\ :if=/usr/local/libexec/ps2pcl:\ :lf=/var/log/lpd-errs: /usr/local/libexec/ps2pcl === #!/bin/sh /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 -sOutputFile=- - == I start lpd and there is only one instance of it running. But then when I did this command: lpr /tmp/ntpdate.ps This file in my /tmp directory is a postscript formatted file. The job gets locked up in the queue, nothing prints and then there are two instances of lpd running. For now I am not running lpd from /etc/rc.conf. ps -ax | grep lpd 1241 ?? Is 0:00.00 lpd 1246 ?? IE 0:00.00 lpd The USB side seems to be lost in it's own world. Again I tested the cable and the printer on the Windows box and it printed some very nice docs for me. Here is some other output of dmesg that shows the printer is out there and the system is seeing it. Why it will not print is beyond my understanding now. BigDell# dmesg | grep ulpt ulpt0: Brother HL-2040 series, class 0/0, rev 2.00/1.00, addr 3 on usbus0 ulpt0: using bi-directional mode BigDell# dmesg | grep ugen ugen0.1: nVidia at usbus0 ugen1.1: nVidia at usbus1 ugen0.2: vendor 0x058f at usbus0 ugen0.3: Brother at usbus0 BigDell# ps -ax | grep lpd 1241 ?? Is 0:00.00 lpd 1246 ?? IE 0:00.00 lpd BigDell# killall lpd BigDell# ps -ax | grep lpd BigDell# lpd BigDell# ps -ax | grep lpd 1311 ?? Ss 0:00.00 lpd BigDell# lpr /tmp/ntpdate.ps BigDell# lpq lp is ready and printing Rank Owner Job Files Total Size active root 14 /tmp/ntpdate.ps 22507 bytes BigDell# ___ freebsd-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: Printing via USB Port
On Fri, 26 Feb 2010, Bill Tillman wrote: Thanks again for your valuable input. I have set up lpd printing on my old FreeBSD server at least a dozen times and it became a simple routine to do with apsfilter. Let me see if I can place all my cards in one place and perhaps we can find the bug. I think I found it. The HL-2040 is a GDI printer, aka winprinter (aka oh no, one of those, aka I guess I didn't really want to print that after all). It won't respond to PCL, unlike the one I looked up first, the HL-2060. Based on http://beej.us/hl2040/: % cd /usr/local/libexec % cp ps2pcl ps2hl1250 Change the line in ps2hl1250 to: /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=hl1250 -sOutputFile=- - ^^ And change the if= line in the printcap to refer to ps2hl1250. (And remember, buying winprinters just encourages them to make more.) -Warren Block * Rapid City, South Dakota USA___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Printing via USB Port
--- On Fri, 2/26/10, Warren Block wbl...@wonkity.com wrote: From: Warren Block wbl...@wonkity.com Subject: Re: Printing via USB Port To: Bill Tillman btillma...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Friday, February 26, 2010, 5:38 PM On Fri, 26 Feb 2010, Bill Tillman wrote: Thanks again for your valuable input. I have set up lpd printing on my old FreeBSD server at least a dozen times and it became a simple routine to do with apsfilter. Let me see if I can place all my cards in one place and perhaps we can find the bug. I think I found it. The HL-2040 is a GDI printer, aka winprinter (aka oh no, one of those, aka I guess I didn't really want to print that after all). It won't respond to PCL, unlike the one I looked up first, the HL-2060. Based on http://beej.us/hl2040/: % cd /usr/local/libexec % cp ps2pcl ps2hl1250 Change the line in ps2hl1250 to: /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=hl1250 -sOutputFile=- - ^^ And change the if= line in the printcap to refer to ps2hl1250. (And remember, buying winprinters just encourages them to make more.) -Warren Block * Rapid City, South Dakota USA Warren, Once again many thanks, but that is one of the first things I tried. By checking ghostcript's drivers #gs -h | grep hl I found many drivers for the HL-12xx models. I have used this in my previous setup with my old parallel server. I actually tried what you suggested and it only worked when using the parallel cable, not the USB. For some reason the USB connection on this and any other FreeBSD server I connect to is DOA for printing. I run mouse and keyboard via USB. But these print jobs are lining up in the queue and just sit there no matter how many times I reconnect the printer, or reboot it or reboot the computer. And once again I'm seeing two instances of lpd running when I only launched it from the command line once, no entry in /etc/rc.conf. BigDell# ps -ax | grep lpd 1311 ?? Is 0:00.00 lpd 1329 ?? IE 0:00.00 lpd BigDell# lpq no entries BigDell# lpc status all lp: queuing is enabled printing is enabled no entries in spool area printer idle BigDell# This just don't make sense and I hope when we find it it's something we can laugh about. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
selling freebsd cd for profit
can i selling free bsd for my profit?? is it legal?? ___ freebsd-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: selling freebsd cd for profit
From owner-freebsd-questi...@freebsd.org Fri Feb 26 19:15:05 2010 Date: Sat, 27 Feb 2010 07:50:54 +0700 From: Citra Cool cc.bel...@gmail.com To: freebsd-questions freebsd-questions@freebsd.org Subject: selling freebsd cd for profit can i selling free bsd for my profit?? is it legal?? Have you read the FreeBSD license? _can_ you read the FreeBSD license? Do you have a attorney/lawyer/barrister/soliciter? Have you *asked* _your_ attorney's/lawyer's/barrister's/soliciter's opinion, after showing him/her the FreeBSD license? Be forewarned that any such action is likely, according to reliable but un- named sources cited in a recent edition of The Onion, to be regarded as a capital crime in the State of Confusion. ___ freebsd-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: Printing via USB Port
On Fri, 26 Feb 2010, Bill Tillman wrote: I found many drivers for the HL-12xx models. I have used this in my previous setup with my old parallel server. I actually tried what you suggested and it only worked when using the parallel cable, not the USB. For some reason the USB connection on this and any other FreeBSD server I connect to is DOA for printing. I run mouse and keyboard via USB. But these print jobs are lining up in the queue and just sit there no matter how many times I reconnect the printer, or reboot it or reboot the computer. And once again I'm seeing two instances of lpd running when I only launched it from the command line once, no entry in /etc/rc.conf. BigDell# ps -ax | grep lpd 1311 ?? Is 0:00.00 lpd 1329 ?? IE 0:00.00 lpd One is the daemon, the other is the spawned job trying to send the print jobs and exit. Found one more thing: http://forums.freebsd.org/showthread.php?t=10710 Try using the unlpt0 device. -Warren Block * Rapid City, South Dakota USA___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: about the checksum
On Fri, Feb 26, 2010 at 11:21 PM, Sean Cavanaugh millenia2...@hotmail.com wrote: they are there so you can compare the real checksum hash for the .ISO file against what you downloaded as a way to make sure you downloaded every single bit of the file or if it has been changed. There are many reasons for checksum files. The main one is -- IMHO -- that people often forget to download the ISO files in BINARY mode, which would clobber the file beyond all recognition. Not so much of a concern nowadays with most downloaders (browers etc...) using binary mode, but it was a big issue back in the FTP days. With a checksum file, you can verify that the ISO is an exact copy of the one you've downloaded. Just run the appropriate checksum command on your end, and compare it to the contents of the checksum file (which, btw, is tiny compared to the ISO!). If both checksums are different, don't use the ISO file, because it was corrupted, and it won't work anyway. -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
Re: premature ENOMEM
Solved!!! Peter Lei of Cisco noticed this application uses mmap rather than malloc so I could get what I wanted (go beyond 200 MB without ENOMEM) if I adjusted sysctl -w vm.max_proc_mmap to be a higher value. Thanks so much for everyone's help, brad On Fri, Feb 26, 2010 at 8:12 AM, Brad Penoff pen...@cs.ubc.ca wrote: Thanks Anton for the advice about a low kern.maxdsiz . Does that work on your machine? I tried to give instructions in the original post so that anyone can tune their machine and try to see what I am seeing. Can others try to see on their own machines if the suggestions work? I'll do anything to help (even provide machines, if need be). I'm surprised how difficult this is FreeBSD compared to Linux and Mac OS X, but I think FreeBSD will be the most performant if I can get over this hump. On my machine, I had kern.maxdsiz, kern.maxssiz, and kern.dfldsiz all set to 2147483648 to match the 2 GB on my machine; that wasn't working though. I tried to modify but had much worse results... I set this: kern.maxdsiz=100 kern.maxssiz=2147483648 kern.dfldsiz=2147483648 ... and NFS didn't load. I set this: kern.maxdsiz=0 kern.maxssiz=2147483648 kern.dfldsiz=2147483648 ... and sshd didn't load! What combination should I try or what combination did you have in mind? Please excuse my ignorance. Also, I don't understand the link you sent... was it mistyped? It seems to go to some index and not any advice on this matter... http://docs.freebsd.org/cgi/mid.cgi?200207291839.g6TIduVw055637 Thanks again for your help and ahead of time to anyone else's... I'm getting a bit desperate and I'm surprised how difficult this is to get working in FreeBSD when it was so simple in Linux and Mac OS X. The thing is, I typically use FreeBSD for the best performance but I can't even get it to run there, at the moment. Thanks, brad On Thu, Feb 25, 2010 at 10:49 PM, Brad Penoff pen...@cs.ubc.ca wrote: Greetings, I have a 32-bit machine with 2 GB running FreeBSD 8. I have a complex application that starts getting ENOMEM once the resident memory is about 200 MB. I adjusted the appropriate /boot/loader.conf and /etc/login.conf settings resulting in an increase in the limit values to around 2 GB, but still the complex application gives me ENOMEM at 200 MB. Including swap space, I should be able to handle 3 GB in an application. I need help understanding how I can enable this or why I cannot. I had this same problem on FreeBSD 6.3 about a year and a half ago, but I found an application-level work-around particular for FreeBSD (the full thread is here http://markmail.org/message/5nsld7pb25m5bfja ; but we found no general solution unfortunately ). This application-level work-around is no longer sufficient so I wanted to revisit the root of this problem I was seeing and hopefully ask this community of smart hackers to give me a hand here... I have created a simplified application that demonstrates this exact same problem and made it easy to reproduce. I was hoping that some kind and helpful person could take a look at it and help me out. It doesn't require any editing of code or anything... In the end, I just need to know how to configure my FreeBSD box with 2 GB of RAM to not give me ENOMEM for this application when it is using only 200 MB, something that never happened in the previous unresolved thread reverenced above. This simplified application has a deliberate memory leak but the goal is for it to not give ENOMEM at 200 MB (I want to be able to use about 1.5 GB). I have created a tarball... I think it may only work on a 32-bit machine. download/wget http://cs.ubc.ca/~penoff/reslim.tgz tar zxf reslim.tgz cd reslim gmake (or make on Linux) sh ./myumem.sh On my system, when this prints our an error message, in top, I only see about 200 MB of both SIZE and RES (they are a few numbers off). The goal is for SIZE to be 1.5 GB or higher; RES is up to the OS. For example, on Linux, SIZE (called VIRT) goes as high as 2.8 GB before the system just becomes slow and unusable (never saw ENOMEM). For FreeBSD, what can I change to increase the possible SIZE before I see ENOMEM? I have tried increasing /boot/loader.conf values to match my 2 GB RAM (kern.maxdsiz, kern.maxssiz, kern.dfldsiz), as well as unlimited values in /etc/login.conf, but still 200 MB seems a hard limit. Any ideas? Why is it not going beyond 200 MB? Resident memory is equal to memory size used by the app so why is it never going to disk to swap before ENOMEM comes up? Thanks a million for any help or advice you could lend. I would be more than willing to help in any way, even providing a machine to try this on (I could sponsor an emulab.net account). Anxious to hear what options exist. Thanks again, brad ___ freebsd-questions@freebsd.org mailing list
no new/current f10 emulator?!
I'm trying to ge t stuff to stream as on my ubuntu laptop. Following the Handbook, the f10 emulator fails:: r...@tao:/usr/ports/emulators/linux_base-f10# ki === linux_base-f10-10_2 compat.linux.osrelease: 2.4.2 is not supported, please use 2.6.16. *** Error code 1 IS there a way of using the f10 version of this stuff or other workarounds? thanks, gents, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
problem with booting and installing
I am using win xp on a hp laptop. I want to run bsd. So i get the cd burned and then when i reboot my system. it starts up in the usual way. i have tried setting bios settings for the boot device and nothiing seems to work. any other help please? ___ freebsd-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: no new/current f10 emulator?!
On Fri, 26 Feb 2010, Gary Kline wrote: I'm trying to ge t stuff to stream as on my ubuntu laptop. Following the Handbook, the f10 emulator fails:: r...@tao:/usr/ports/emulators/linux_base-f10# ki === linux_base-f10-10_2 compat.linux.osrelease: 2.4.2 is not supported, please use 2.6.16. *** Error code 1 IS there a way of using the f10 version of this stuff or other workarounds? Works fine here. Do you have a leftover compat.linux.osrelease setting in loader.conf or sysctl.conf? -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: no new/current f10 emulator?!
On Fri, 26 Feb 2010 18:58:49 -0800 Gary Kline kl...@thought.org wrote: I'm trying to ge t stuff to stream as on my ubuntu laptop. Following the Handbook, the f10 emulator fails:: r...@tao:/usr/ports/emulators/linux_base-f10# ki === linux_base-f10-10_2 compat.linux.osrelease: 2.4.2 is not supported, please use 2.6.16. *** Error code 1 IS there a way of using the f10 version of this stuff or other workarounds? It's saying that linux compatibility is emulating the wrong version of the linux kernel. You might try setting the sysctl compat.linux.osrelease to 2.6.16, but I think you may have to upgrade to 8.0 where 2.6.16 is the default. ___ freebsd-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: no new/current f10 emulator?!
On Fri, Feb 26, 2010 at 08:38:12PM -0700, Warren Block wrote: On Fri, 26 Feb 2010, Gary Kline wrote: I'm trying to ge t stuff to stream as on my ubuntu laptop. Following the Handbook, the f10 emulator fails:: r...@tao:/usr/ports/emulators/linux_base-f10# ki === linux_base-f10-10_2 compat.linux.osrelease: 2.4.2 is not supported, please use 2.6.16. *** Error code 1 IS there a way of using the f10 version of this stuff or other workarounds? Works fine here. Do you have a leftover compat.linux.osrelease setting in loader.conf or sysctl.conf? -Warren Block * Rapid City, South Dakota USA Nowhere I could find; the default build was = 2.4.2. With the chage, the emulator builds. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php ___ freebsd-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: no new/current f10 emulator?!
On Sat, Feb 27, 2010 at 03:49:27AM +, RW wrote: On Fri, 26 Feb 2010 18:58:49 -0800 Gary Kline kl...@thought.org wrote: I'm trying to ge t stuff to stream as on my ubuntu laptop. Following the Handbook, the f10 emulator fails:: r...@tao:/usr/ports/emulators/linux_base-f10# ki === linux_base-f10-10_2 compat.linux.osrelease: 2.4.2 is not supported, please use 2.6.16. *** Error code 1 IS there a way of using the f10 version of this stuff or other workarounds? It's saying that linux compatibility is emulating the wrong version of the linux kernel. You might try setting the sysctl compat.linux.osrelease to 2.6.16, but I think you may have to upgrade to 8.0 where 2.6.16 is the default. I reset the release number and the emulator builds. See what happens with my 7.3RC1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php ___ freebsd-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 with booting and installing
david wilson wrote: I am using win xp on a hp laptop. I want to run bsd. So i get the cd burned and then when i reboot my system. it starts up in the usual way. i have tried setting bios settings for the boot device and nothiing seems to work. any other help please? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Your post is very short on details. But reading between the lines. I think what you are saying is XP is installed in slice 1 of the hard drive and you installed Freebsd into slice 2 on the same hard drive. Now when you boot you default into xp and Freebsd is no where to be seen. You want option to select xp or Freebsd during boot process. This being the case your error was while installing Freebsd you did not select the option to install the boot manager. Reboot from the disc1 install cd. Do the install again but this time during the fdisk/bsdlabel process select option to write boot manager to the MBR. ___ freebsd-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: about the checksum
2010/2/26 Ffflee Ffflee ffflee_fff...@yahoo.com: when i downloaded the freebsd ISO files is there any reason why i should downlaod the checksum files also? why would they be on the download ISO page if there isnt a reason for them being there. what is the purpose of checksum files? and do I need to download them? I got the freebsd cd ISO. do i need any others off the same page. ..Newby. Hi http://en.wikipedia.org/wiki/Checksum http://en.wikipedia.org/wiki/File_verification 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
Re: selling freebsd cd for profit
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27/02/2010 24:50:54, Citra Cool wrote: can i selling free bsd for my profit?? is it legal?? In a word, yes -- sure you can. All you have to do is abide by the terms of the licensing. Primarily, that's the FreeBSD license which says that you can do what you like with the software and documentation, just don't deny credit to the people that actually wrote it. Some parts of the material in FreeBSD is under GPL, which means that you have to ensure source code is available for those bits: if you're redistributing the standard .iso images from the FreeBSD web sites, you can just point to the ways of getting the sources in the Handbook. Whether reselling for profit something that anyone can get for free is a viable business proposition I'll leave up to your better judgement. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuI0LsACgkQ8Mjk52CukIxh/wCfczzd3M82l1OJgXJ1hNfJ6i3Y lScAnjkDsr4/fjdEKvcMNUpCPdKjWX29 =8EjN -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