Re: SSH persistent sessions without screen?
* Chris Telting [2011-03-31 09:00:02-0700]: > Something like the screen utility. But I don't want to use screen, > I'm looking for something more automated. tmux can do this, and unlike GNU screen, can be easily scripted. Check it out, we started using it at $work early year and we had about 2 dozen people move permanently from screen (like me, they'd been using it for years) to tmux. Thomas ___ freebsd-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: FreeBSD not stable enough for Xen environments?
* Jeremy Chadwick <[EMAIL PROTECTED]> [2008-11-17 12:08:49+]: > > Intersting, I see the same in my logs, but the frequency seems to be > > much less than yours, e.g. for the month of November: > > What time counter source does this box have available? kern.timecounter.choice: TSC(-100) i8254(0) dummy(-100) kern.timecounter.hardware: i8254 > Other ideas: > Look into the "fudge" operator of ntp.conf. Yeah, I'm already fudging my local clock a bit. From my ntp.conf: # local clock server 127.127.1.0 # don't trust local clock too much fudge 127.127.1.0 stratum 10 > Try deleting your ntp driftfile. Note that if you do this, it will take > a day or two for things to "level out". It tries to figure out the > "average" skew rate your system clock has. Hmm, my drift file looks decent enough: $ cat /var/db/ntp.drift 10.047 And it's being updated regularly enough. > Then there's a very good possibility it's hardware-related. I'll ask the hosting company about it though to see if anyone has brought this up. Thomas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD not stable enough for Xen environments?
* Maxim Khitrov <[EMAIL PROTECTED]> [2008-11-17 14:47:00+]: > > I've not seen any problems with the clock on my RootBSD Xen system. > > I do run the ntpd in base and on average, my clock is usually only > > about 15ms away from "true UTC". > > That's interesting. Can you post your `ntpq -p` output here? Sure: $ ntpq -p remote refid st t when poll reach delay offset jitter == +clock.trit.net 192.12.19.20 2 u 529 1024 377 81.5542.870 6.477 +mail.honeycomb. 192.43.244.182 u 408 1024 377 44.091 10.986 8.250 *tuppy.intrepidh 64.142.103.194 2 u 413 1024 377 67.709 15.626 10.327 +clock3.redhat.c 66.187.233.4 2 u 445 1024 377 147.283 24.455 9.397 +204.34.198.40 .USNO. 1 u 409 1024 377 88.746 20.620 10.405 +tick.usno.navy. .USNO. 1 u 427 1024 377 20.848 18.916 8.212 +ntp-s1.cise.ufl .GPS.1 u 421 1024 377 45.709 18.067 9.222 LOCAL(0)LOCAL(0)10 l 18 64 3770.0000.000 0.004 This is what I pretty much used to eyeball my offset earlier. > When ntpd is running, its polling interval stays very low (around 64 > seconds) because it keeps having to reset the clock. My message log is > filled with the following: Intersting, I see the same in my logs, but the frequency seems to be much less than yours, e.g. for the month of November: Nov 1 00:08:22 zaph ntpd[678]: time reset -0.129649 s Nov 3 15:33:09 zaph ntpd[678]: time reset -0.137509 s Nov 4 03:11:51 zaph ntpd[678]: time reset +0.237734 s Nov 4 03:34:23 zaph ntpd[678]: time reset -0.150326 s Nov 4 13:05:20 zaph ntpd[678]: time reset +0.317738 s Nov 4 13:32:06 zaph ntpd[678]: time reset -0.560629 s Nov 4 13:54:35 zaph ntpd[678]: time reset +0.265391 s Nov 4 15:43:55 zaph ntpd[678]: time reset -0.163660 s Nov 7 17:31:03 zaph ntpd[678]: time reset -0.130039 s Nov 10 18:29:19 zaph ntpd[678]: time reset +0.169785 s Nov 10 19:46:26 zaph ntpd[678]: time reset -0.146554 s Nov 10 20:27:08 zaph ntpd[678]: time reset +0.891811 s Nov 10 20:53:59 zaph ntpd[678]: time reset -0.774636 s Nov 10 21:35:45 zaph ntpd[678]: time reset +0.384227 s Nov 10 22:33:46 zaph ntpd[678]: time reset -0.194131 s Nov 11 12:34:25 zaph ntpd[678]: time reset +0.433002 s Nov 11 13:01:09 zaph ntpd[678]: time reset -0.335592 s Nov 11 15:17:45 zaph ntpd[678]: time reset +0.933537 s Nov 11 16:01:42 zaph ntpd[678]: time reset -0.510371 s Nov 11 17:29:41 zaph ntpd[678]: time reset -0.133244 s Nov 11 19:16:41 zaph ntpd[678]: time reset +0.191431 s Nov 11 19:42:30 zaph ntpd[678]: time reset -0.458738 s Nov 11 20:09:16 zaph ntpd[678]: time reset +0.207999 s Nov 11 20:36:06 zaph ntpd[678]: time reset +0.143897 s Nov 14 01:29:44 zaph ntpd[678]: time reset +0.134492 s Nov 15 13:13:36 zaph ntpd[678]: time reset +0.199937 s Nov 15 14:45:09 zaph ntpd[678]: time reset -0.205131 s > And so on... Could it be a problem with the hardware on host machine? > I use the same ntp.conf file on several FreeBSD 7.1 servers, and the > VPS is the only one that has this problem. I checked on my other FreeBSD boxes (all 7.0) and none of them (VPS or otherwise) exihibit this problem. > I upgraded my VPS to 7.1 a few months ago, but I don't remember if I > had this problem when using 7. Mine is a 7.0. Thomas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD not stable enough for Xen environments?
* Redd Vinylene <[EMAIL PROTECTED]> [2008-11-14 17:32:34+]: > > depends on how they do their installs, i know of a couple hosting > > companies doing it already > > Hey! Which ones? Chiming in another rec for RootBSD as well. I've been a customer of theirs for a few months now and very pleased with their service. (Apart from being a customer, I have no other affiliation with them.) To respond to what another poster said on this thread about their clock, I've not seen any problems with the clock on my RootBSD Xen system. I do run the ntpd in base and on average, my clock is usually only about 15ms away from "true UTC". Thomas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Disk errors on installing FreeBSD 7.0
* "Snorre D. ?verb?" <[EMAIL PROTECTED]> [2008-08-07 15:29:11+]: > When I boot up with the installation DVD these error messages appear > on the screen. > > ad1: FAILURE - READ_DMA status=51 error=84 > LBA=0055347 > ad0: FAILURE - READ_DMA status=51 error=84 > LBA=0 > etc I got the same exact errors trying to install 7.0-RELEASE on two different Dell boxes. One was 4 years old, the other was brand new (3 months ago). Never was able to fix the problem. For the older one, I plugged in an external DVD drive and installed via that. For the other one, I installed via a mini-install disk, and then did a minimal network install. For the record, they both had SATA drives and the disks worked (and still work) fine after the OS was installed. It was just copying the base system off the CD that was causing errors. Thomas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: git
* Chuck Robey <[EMAIL PROTECTED]> [2008-06-03 16:46:55-0400]: > > > git-pull gives me a coredump > > > > Have you tried to clone other repositories and see if you can > > replicate this error? > > No, that's the only git repo I have now. Got a url of one that works > for you? I have extra disk to give it a try. Debian has nice list of git repositories available for cloning: http://git.debian.org/ Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: git
* Chuck Robey <[EMAIL PROTECTED]> [2008-06-03 14:31:24-0400]: > Wonder if anyone could tell me why anything I do to run git-pull gives > me a coredump? The image that gets dumped is git-fetch, if that > helps, and I was just trying to update the xorg source tree. Have you tried to clone other repositories and see if you can replicate this error? I built my git from ports and IIRC, it seemed to clone and pull the xorg tree fine (but that was about 3 weeks ago). Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Need to build a new mail server
* Patrick Baldwin <[EMAIL PROTECTED]> [2008-05-29 13:35:27-0400]: > I'm interested in both suggestions for hardware and mail servers that > would make for the best FreeBSD based mail server. A third vote for Postfix + Dovecot here. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: lockfile -- posix compliant?
* Erik Trulsson <[EMAIL PROTECTED]> [2008-01-17 02:25:11+0100]: > On Wed, Jan 16, 2008 at 08:03:29PM -0500, N.J. Thomas wrote: > > Can someone tell me if lockfile(1) is a POSIX-defined utility? > > Considering that lockfile(1) is usually installed as part of procmail Ah, gotcha. Coincidently, the RHEL 5, OpenBSD 4.1, and FreeBSD 6.2 boxes that I tested it on all happened to have procmail installed and I assumed that lockfile(1) was a POSIX util. Thanks for the heads up. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
lockfile -- posix compliant?
Can someone tell me if lockfile(1) is a POSIX-defined utility? I couldn't tell from the man page or the source code, and I seem to be having trouble locating info on the web. Jens Schweikhardt's excellent page on FreeBSD POSIX Compliance: http://people.freebsd.org/~schweikh/posix-utilities-APR-02.html doesn't list it, so I am inclined to say that it is not, but I wanted to be sure. thanks, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ntpd configuration file changes
* jekillen <[EMAIL PROTECTED]> [2007-12-12 20:42:47-0800]: > Q: When making changes to ntp.conf it is necessary to restart the > server? According to the ntpd docs, yes. The ntpd configuration docs say this: Ordinarily, ntpd reads the ntp.conf configuration file at startup time in order to determine the synchronization sources and operating modes. > Q: How is that done? On FreeBSD, it is typically done via "/etc/rc.d/ntpd restart". > (I suspect ntpd reload or restart per rc script.. along the lines of > apachectl restart or postfix reload??? Kill -HUP pid ??? ) I am > looking at FreeBSD handbook and ntp documentation and have not found > the answers. See the "Using rc under FreeBSD" section of the Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcd.html It is based on Luke Mewburn's excellent NetBSD rc.d system. See the document, "The Design and Implementation of the NetBSD rc.d system" (PDF) here, it is an excellent read: http://www.mewburn.net/luke/bibliography.html Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Now it is ntpd that can't find anything
* RW <[EMAIL PROTECTED]> [2007-11-02 14:34:05 +]: > > server 0.pool.ntp.org prefer > > server 1.pool.ntp.org prefer > > server 2.pool.ntp.org prefer > > You don't need any of the prefers. Using prefer like this simply > disables the clustering algorithm, and degrades the accuracy. Yeah, I had copied this out of my larger config file which had other servers non-essentials listed in there, I should have removed the prefer tags before giving it to OP. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Now it is ntpd that can't find anything
* jekillen <[EMAIL PROTECTED]> [2007-11-01 15:43:53 -0800]: > These are the servers I have listed: [...] > I suppose I should find ones that are reachable via ipv4. Better yet, use the NTP Pool Project. If you including the following in your ntp.conf: server 0.pool.ntp.org prefer server 1.pool.ntp.org prefer server 2.pool.ntp.org prefer That should work well. See http://www.pool.ntp.org/ for more info. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Now it is ntpd that can't find anything
* <[EMAIL PROTECTED]> [2007-10-31 16:08:10 -0800]: > > > I set up ntpd on FreeBSD 6.2 and am getting complaints from ntpd > > > that there is no route to such and such address. It gives what > > > appears to be an interface card address. > > ntpq -p > remote refid st t when poll reach delay offset jitter > == > 2610:1f8:d8:2:2 .INIT. 16 u- 6400.0000.000 4000.00 > 2001:4830:1210: .INIT. 16 u- 6400.0000.000 4000.00 > hydrogen.cert.u 164.67.62.1942 u 10 643 13.909 -261.61 2.936 > pubts2-sj.witim 64.125.78.85 2 u8 643 20.023 -256.60 2.883 > > Here are the console messages: > ntpd (706) send to(2610:1f8:d8:2:216:cbff:fea3:4b2e:) no route to host > " " " (2001:4830:1210:0;280:10ff:fe00:48b9) " > > are these ipv6 addresses? Or are they expecting authentication and > refusing connections? The last two time servers seem to be communicating fine with your ntp daemon. The bad ones look like IPv6 sites to me. What time servers do you have listed in your ntp.conf file? What is the output of "grep -i server /etc/ntp.conf"? Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Now it is ntpd that can't find anything
* jekillen <[EMAIL PROTECTED]> [2007-10-30 17:12:19 -0800]: > I set up ntpd on FreeBSD 6.2 and am getting complaints from ntpd that > there is no route to such and such address. Please post the output of "ntpq -p". Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Windows SSH client?
* Eric F Crist <[EMAIL PROTECTED]> [2007-10-24 14:12:59 -0500]: > I'm looking for a good, free, SSH client that has line/column numbers > at the bottom, similar to SecureCRT. I'm curious as to why you need the line/column numbers displayed for your terminal in an SSH client? That seems to me a completely unrelated function. Most editors (Vi, Emacs, etc.) will give you that info, but can you explain why need it as necessary component for an SSH client? Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: postfix problem
* Bill Banks <[EMAIL PROTECTED]> [2007-10-18 10:44:56 -0400]: > Im installing postfix on a server. It accept mail from my own network > but not from the outside. It said "relay access denied". Any clue. Please post the output of "postconf -n". Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
vim undo (was Re: remote [ssh] Backspace] key gives me "^?")
* Gary Kline <[EMAIL PROTECTED]> [2007-09-16 19:29:08 -0700]: > There are Lots of thing I like about vim, but after having fouled up > with the undo's and lost some critical writing or code, I went back to > what I've usedsince Bill Joy pointed me at vi. Presumably, you are talking about vi's (and vim's) habit of writing over changes that have been undone. This problem has been nullified in Vim 7 by the addition of undo branches. You can now go back to the text after any change -- even if they were undone. Another nice thing is that changes are also now timestamped. You can go backward/forwawrd in time in the buffer (e.g. ":earlier 10m" goes to the text as it was ten minutes earlier). hth, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Service providers using Quagga
* Steve Bertrand <[EMAIL PROTECTED]> [2007-09-14 03:31:24 -0400]: > I'm wondering if there are any network service providers here that run > any of their routing infrastructure within Quagga running on FreeBSD. [...] > If this is a relatively common practice out there, what size environment > do you run it in, and at what level within your network? At last years NYCBSDCON Russell Sutherland gave a talked entitled "BSD on the Edge of the Enterprise", and talked about how they used Quagga on FreeBSD servers at the University of Toronto. It was one of the better talks there. I searched th web, and found slides that he gave for the same talk at BSDCan here: http://www.bsdcan.org/2006/papers/BackToTheFuture.pdf It contains info that you may find useful. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mail server setup questions
* Jim Stapleton <[EMAIL PROTECTED]> [2007-09-04 18:03:20 -0400]: > I need a mail server to take incoming mail, and provide a pop3 (or > better yet, SSLed POP3) connection. I would second the recommendation for Postfix -- and Dovecot for POP. > Could you all suggest to me what you use and a good web site for > configuring it as it would be done in FreeBSD? The Postfix documentation is very thorough and complete, and that is all you should need. Their website has some links to various HOWTOs: http://www.postfix.org/docs.html Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
"ifconfig up" hanging on 6.1
We have some Dell PowerEdge 1950 1u rack servers with GigE NICs on them running FreeBSD 6.1. The NICs are connected to a Cisco 24 port 10/100 switch. The interfaces are down when the programs that are running on them are dormant, and whenever they receive a job, they bring the interface up. (The other NIC is always up, which is how the servers receive new job notifications.) A couple of times per day (about every hour or so on average), the server receives a job, brings up the interface, and starts processing. The thing is that occasionally, about 10% of the time, bringing up the interface doesn't seem to do anything. It's as if the network is still down. So we have to go any manually bring it up again for it to work. We assumed that it was an auto-negotiation problem with the GigE card and the switch, so we forced everything to 100Mbit, but it still occurs. What could be the problem? thanks, Thomas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How dangerous a Standard User could be to a FreeBSD box?
* VeeJay <[EMAIL PROTECTED]> [2007-01-10 13:24:22 +0100]: > How dangerous a Standard User could be to a FreeBSD box? Like another poster mentioned, it depends on a variety of factors. Three things I can suggest to help you minimize security risks from local users: - keep your machine and software packages updated - have policies and procedures in place detailing an Acceptable Use Policy (AUP) and the consequences of violating them; and use it when you have to (a lot of places have a ton of elaborate and well-written AUPs which are never enforced) - keep your user "shell" machines completely separate from your other servers (web, imap, et al.), separate boxes, separate subnet, separate passwords, etc.; this should be obvious, but a lot of people run a lot of critical services on the same machines that they allow users access to and then they are surprised when a fork bomb takes down their mail infrastructure hth, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Backing up FREEBSD
* Roger Olofsson <[EMAIL PROTECTED]> [2006-12-12 18:23:50 +0100]: > If you have a spare machine with the diskspace neeeded then you might > want to consider rsync over ssh. Rsync can do incremental backups, > which can be nice and timesaving. If you are going to go the rsync route, I recommend you check out rsnapshot, it's in /usr/ports/sysutils/rsnapshot, and their site is here: http://www.rsnapshot.org/ Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Working with DocBook on FreeBSD nothing but problems
* Rico Secada <[EMAIL PROTECTED]> [2006-09-27 16:17:20 +0200]: > [ERROR] property - "background-position-horizontal" is not implemented > yet. > > Then it just freezes. I vaguely remember this happening to me when I wasn't checked for validity against the DocBook DTD. Putting "xmllint --valid foo.xml" into the build scripts worked out nicely. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how does cron exec jobs?
* Atom Powers <[EMAIL PROTECTED]> [2006-06-07 15:48:35 -0700]: > I have a cronjob ( cfexecd -F ) that often hangs; but no matter how I > run it from the shell ( sh -c "cfexecd -F" & ) it never hangs. > > How can I simulate a cron job from the shell? Whenever you have a problem like this (ie. "foo works perfectly from the command line but not from cron"), you should always run /usr/bin/env (or /bin/env) from cron, and then manually run your script with that same environment (unsetting any envariables you need to get your shell to match that of the cron environment) -- that will show you fairly quickly what is wrong. Usually it is just a PATH issue, but sometimes it may be some missing envariable that you didn't even realize existed (that your script depended on it). Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Converting DocBook into PDF
* Rico <[EMAIL PROTECTED]> [2006-06-06 03:41:50 +0200]: > I am working on a documentation project and needs to convert some > DocBook files into several formats. > > I have installed "xmlto" amongst others and I can convert the DocBook > into XHTML, TXT but not into PDF or PS. This doesn't really help you with your xmlto problem, but I use the following toolchain to produce PDF from DocBook - write the XML file against the DocBook DTD - validate the file with "xmllint --valid --noout foo.xml" xmllint is part of libxml2 (Theoretically, this step is not necessary if you write proper XML, but xsltproc does not checks for valid XML (only well formed), and if you pass it non-valid DocBook XML, it spits out all sort of cryptic errors.) - use xsltproc to convert to HTML: xsltproc --output foo.xhtml /usr/local/share/xsl/docbook/xhtml/docbook.xsl foo.xml (xsltproc is part of libxslt) - use xsltproc to convert to FO: xsltproc --stringparam fop.extensions 1 --output foo.fo /usr/local/share/xsl/docbook/fo/docbook.xsl foo.xml - use fop to convert FO to DPF: fop foo.fo foo.pdf You can find libxml2, libxslt, fop, docbook-xml, and docbook-xsl in ports. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: vsftpd uploading rate problem
* Yuan, Jue <[EMAIL PROTECTED]> [2006-06-06 18:31:43 +0800]: > The situation is: a computer could download stuffs from my laptop via > vsftpd at a rate of 10M/s. while uploading stuffs to my laptop at a > rate of only 300K~400K :( Can you test with some other (non-ftp) protocol, and see if you get the same results? Try scp'ing a large file to and from your laptop. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sudoedit, restricting to particular folder
* Lawrence Horvath <[EMAIL PROTECTED]> [2006-06-01 22:13:39 -0700]: > well in that case what can uyou recommend for editing only zone files > and being able to run rndc, that is my main goal, i need to lock a > system so that only "rndc reload", "rndc reconfig" and editing zone > files is possible by a group of users, any suggestins? and/or how do > you do this? Restricting a group of users to run only "rndc reload" and "rndc reconfig" via sudo is trivial. sudoers(1) will explain how, and the sudoers file that comes with sudo is chock full of examples. Off the top of my head, you would do something like this: User_Alias DNSOPS= user1, user2, user3 Cmnd_Alias DNSRELOAD = /usr/sbin/rndc reload Cmnd_Alias DNSRECONF = /usr/sbin/rndc reconfig DNSOPS ALL = DNSRELOAD, DNSRECONF Don't know if that parses properly, but you get the idea. As far as editing only zone files, if you know the names of the files that they need to edit, something like this is sufficient: DNSOPS ALL = sudoedit /etc/named.conf DNSOPS ALL = sudoedit /etc/rndc.conf DNSOPS ALL = sudoedit /var/named/zone1 DNSOPS ALL = sudoedit /var/named/zone2 However, if your users need to be able to create/modify/rename files under /var/named (as you mentioned in your OP), then you will need a properly written wrapper script. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sudoedit, restricting to particular folder
* Kirk Strauser <[EMAIL PROTECTED]> [2006-05-30 16:30:45 -0500]: > > luser ALL = (root) sudoedit /home/luser/foo/* > > Why not give them root while you're at it: > luser$ cd ~/foo; ln -s /etc/master.passwd; sudoedit ~/foo/master.passwd Yikes, he's right. Don't put that in your sudoers file. I found some notes on the sudo mailing lists while Googling, that luser ALL = (root) sudoedit /home/luser/foo/ would work one day for all files in /home/luser/foo/, IIRC Todd Miller said this would come out in version 1.7, but it looks like development of sudo has stalled, so short of writing your own wrapper script (which shouldn't be terribly hard) I don't know how to solve the original problem of restricting sudoedit to a particular directly using sudo alone. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sudoedit, restricting to particular folder
* Lawrence Horvath <[EMAIL PROTECTED]> [2006-05-30 13:46:33 -0700]: > I am trying to get sudoedit to only work on a certain folder. So that > you can only sudoedit files with in the /home/named folder. The following works for me: luser ALL = (root) sudoedit /home/luser/foo/* (Sudo 1.6.8p12, FreeBSD 5.4) hth, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Sharing /usr/local/www
* Kyrre Nygard <[EMAIL PROTECTED]> [2006-05-27 11:12:19 +0200]: > > > I have a team of designers working on web 2.0 like sites. > > > > > > I have added them all to this box, now I'm wondering what's the > > > most convenient way of giving them all access to /usr/local/www? > > > CVS is your friend. > > Yeah I hear a lot of people like CVS. > > But I fail to realize how it might assist me though. Kyrre, CVS is a version control tool. A version control tool manages changes to information, sometimes among multiple people. It sounds like to me like you really need a version control tool for what you want to do. CVS is a good choice for this, Subversion is better. Yes, there might be scripts that accomplish this, but most (good) version control tools will: - allow you to manage changes to data over time - remember every change ever made to your data, allowing you to recover older versions, or see the history of how it changed - allow access across networks, which allows it to be used by people on different computers - give you the ability for various people to modify and manage (i.e. collaborate on) the same set of data from their respective locations (The above was paraphrased from "Version Control with Subversion", by Collins-Sussman, Fitzpatrick, and Pilato, v1.2, Ch 1.) You will run into this problem over and over again. Do yourself a favor and learn how to use a good version control system now, or else you will find yourself doomed to reinvent it, poorly. (Apologies to H. Spencer.) Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: upload-only ftp server
* User Gandalf <[EMAIL PROTECTED]> [2006-05-24 16:32:55 +0200]: > I looked at the ports tree and I found many ftp servers. I cannot > choose between them. Can you recommend one for me? Second the recommendation for vsftpd. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: pam_userdb.so: Where is it?
* Kyrre Nygard <[EMAIL PROTECTED]> [2006-05-10 18:18:23 +0200]: > > > Does anybody know where pam_userdb.so has gone? > > > > FreeBSD doesn't appear to have ever had it, so it hasn't "gone" > > anywhere. The thread you linked to below suggests exactly that. > > > > > > You could download the source and try and build it. > > That's a real good advice. I'll see what I can do with it ... Kyrre, More info for you, digging through the archives came up with this: http://lists.freebsd.org/pipermail/freebsd-questions/2006-April/117922.html Quoting: > > There's no pam_userdb.so available for FreeBSD. You could use > > pam_pwdfile.so, which is in the ports-collection. Users are > > added/changed e.g. through htpasswd. Works well if you have not a lot of > > accounts. > > > > a simple vsftpd.pam could look like this: > > > > authrequired /usr/local/lib/pam_pwdfile.so pwdfile /etc/vsftpd_login > > account required /usr/lib/pam_permit.so > > > Just to let you know that worked a treat hth, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FTPd recommendation?
* Noah <[EMAIL PROTECTED]> [2006-05-04 05:48:40 -0800]: > What are people using for their ftpd these days? I am looking for > something easy to initiailize, configure, and is very secure. Another vote for vsftpd: http://vsftpd.beasts.org/ Trivial to setup/configure, very secure. In addition to all of the normal security features that vsftpd offers, we turn on the pasv_min_port/pasv_max_port options to restrict the download ports, it's a nice feature. (I attended an Apache/FTP security lecture in the Bay Area a couple of years ago (2002/2003) at one of the local user groups there -- the speaker was "testing" out his talk on us before he gave it at some Usenix/SAGE conference. The ftp portion was a howto on securing wu-ftpd, but before he started, he said point blank that if you didn't need anonymous uploads, to just use vsftpd.) Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: NTP
* Aguiar Magalhaes <[EMAIL PROTECTED]> [2006-01-19 16:35:25 -0300]: > When I type "ntpdate ntp.nasa.gov" (or another server) the answer is > "no server suitable for synchronization found"... Works fine over here. Can you connect to the NTP port on that server? Try this: nc -u -v ntp.nasa.gov 123 and see if you get a connection succeeded message. Also, have you thought about using pool.ntp.org instead? Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
mysql backups (was Re: Remote backups, reading from and writing to the same file)
* Hans Nieser <[EMAIL PROTECTED]> [2006-01-13 00:25:14 +0100]: > Among the things being backed up are my mysql database tables. This > made me wonder wether the backup could possibly get borked when mysql > writes to any of the mysql tables while tar is reading from them. Yes. While MySQL is writing to the the database, it will put the files on the disk in an inconsistent state. If you happen to copy those files while they are in that state, MySQL will see a corrupted database. > Do I really have to use MySQL's tools to do a proper SQL dump or stop > MySQL (and any other services that may write to files included in my > backup) before doing a backup? Do any of the more involved > remote-backup solutions have ways of working around this? Or is it > simply not possible to write to a file while it is being read? Here are some methods that people use that I am aware of: - Turn off the MySQL db the entire time you are backing up. No new software/hardware needed, but you incur db downtime. - Use replication: have a slave that is a copy of the master, whenever you want to back up, break the replication for a little while, copy the slave, and then resume the replication. No downtime, but you will need another box for this, so you have the cost of new hardware. - Use OS snapshotting. On Linux systems with LVM, it is possible to take an exact "snapshot" of the filesystem at any point in time without too much disk usage (assuming the lifetime that the snapshot exists is relatively short). So what you do in this case is write a script that tells MySQL to write lock the entire database and flush the cache, this takes a second or two and will bring the db files on disk to a consistent state. You then take a snapshot of the filesystem, and immediately resume MySQL when you have done that. Now, you just backup off of the snapshot, destroying it when you are done. No new hardware, but you will need a snapshot capable filesystem and write the script to do this. I'm not sure exactly what snapshotting features FreeBSD has...perhaps someone else could fill in this information. Also, you will have a short period of downtime during which the MySQL db is write locked. This may or may not be acceptable for you. hth, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help with panic: vm_fault
* Brad Marsh <[EMAIL PROTECTED]> [2006-01-12 11:09:29 -0800]: > OK...in agreement, I've read that memory modules will sometimes work > in pairs, not individually Older memory/systems used to only take memory that worked in pairs, newer ones shouldn't have that problem. In the worst case, it may accept a single module, but maybe not run as fast as it would with a pair. But my memory-fu isn't up to date, and perhaps someone could correct me. > or singly, not in pairs... This should never be the case. If your memory is acceptable one module at a time, why wouldn't the system accept two? Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help with panic: vm_fault
* Brad Marsh <[EMAIL PROTECTED]> [2006-01-12 09:33:37 -0800]: > I removed both of those and put in two 512MB sticks of Kingston PC2700 > RAM - and that's when I got the panic. [...] > So my comclusion is that FreeBSD is having trouble booting with 2 > 512MB RAM sticks. The BIOS recognizes the RAM ok Before you do anything else, I strongly recommend you put in both of the new memory modules in and run memtest86+. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Uptimes, autoreboots, and package upgrades
* Louis J. LeBlanc <[EMAIL PROTECTED]> [2005-12-02 09:33:44 -0500]: > So, I know restarting is important on occasion, but my real questions > are: Does anyone use a crontab reboot to make sure their system(s) get > a regular fresh start? If so, how often - weekly, montly, bi-monthly? I think system upgrades should always be done manually, since any change could potentially corrupt an otherwise perfectly running machine. Manually, one can do a quick sanity check to make sure the upgrade went okay, and back out if it didn't. IIRC, on Windows machines the default setting is to automatically download and install OS updates, and this has only caused problems for everyone involved. I don't know any moderately competent Windows user who doesn't turn this feature off right away. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: overloaded webserver: nfs wait issue?
* Norberto Meijome <[EMAIL PROTECTED]> [2005-12-02 11:06:49 +1100]: > What's your MaxClients set to? It was set to 256, we actually lowered it to 180. > Please define your values for "lot of traffic". Running wc -l on the daily Apache access logs, I get: ~1.8million hits per day > What CPU? RAM (512MB seems a bit low nowadays)? Disks? One of the web servers is a (P4, 3GHz, 1GB RAM), the other is a (P3, 1.4GHz, 1GB RAM), they are load balanced evenly, both of them display the same error when the number of httpd processes reach MaxClients. > I dont think i can give much advice on the NFS side of things but in the > meantime I would : > - increase # of MaxClients (the default is RIDICULOUSLY small, > specially in 1.3. You will probably have to recompile with a new max. Higher than 256? > - Look at what the PHP scripts do : i.e., is there anything under your > control that can be improved? I'll ask the devs to take a look. > - You RAM seems OK ... you may want to tweak some sysctl or memory > settings in Apache (I seem to remember in 1.3 some to do with MMap, but > i could be wrong) ... or just add more RAM. Check vmstat (or systat -vm > 1) to see how much swapping is going on. Will do...thanks for the suggestions. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: overloaded webserver: nfs wait issue?
* N.J. Thomas <[EMAIL PROTECTED]> [2005-12-01 14:38:13 -0500]: > We have a website with moderately high traffic, load balanced among 3 > webservers. > > During peak traffic times however (when the volume is higher than > normal), the load shoots up to over a 100, and the site crawls to its > knees. I forgot to mention that the webservers are running FreeBSD 4.11 and Apache 1.3.x. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
overloaded webserver: nfs wait issue?
We have a website with moderately high traffic, load balanced among 3 webservers. During peak traffic times however (when the volume is higher than normal), the load shoots up to over a 100, and the site crawls to its knees. We set up a script to take snapshots of top every 20 seconds. Here is what it looks like when everthing is normal: 127 last pid: 12003; load averages: 0.93, 1.36, 1.35 up 41+04:22:14 14:00:23 243 processes: 12 running, 230 sleeping, 1 zombie Mem: 222M Active, 74M Inact, 186M Wired, 16M Cache, 111M Buf, 503M Free Swap: 2048M Total, 16M Used, 2032M Free PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 136 root 32 0 1208K 420K RUN 33.1H 7.28% 7.28% amd 11918 nobody-1 0 149M 12292K nfsrcv 0:01 3.00% 1.95% httpd 11879 nobody 2 0 149M 12292K sbwait 0:01 2.10% 1.37% httpd 11896 nobody 2 0 148M 11704K RUN 0:00 1.80% 1.17% httpd 11962 nobody 2 0 147M 10072K RUN 0:00 4.33% 1.12% httpd 11892 nobody-1 0 145M 8804K nfsrcv 0:00 1.35% 0.88% httpd 11935 nobody 2 0 149M 12284K sbwait 0:00 1.73% 0.78% httpd 11925 nobody 2 0 149M 12288K sbwait 0:00 1.08% 0.68% httpd 11894 nobody 2 0 149M 12404K sbwait 0:00 0.98% 0.63% httpd 11937 nobody 2 0 149M 12456K RUN 0:00 1.61% 0.63% httpd 11954 nobody 2 0 149M 12288K sbwait 0:00 1.88% 0.49% httpd 191 root 2 0 144M 6632K select 13:23 0.34% 0.34% httpd 11930 nobody 2 0 145M 8852K sbwait 0:00 0.62% 0.34% httpd 11872 nobody 2 0 149M 12288K sbwait 0:00 0.45% 0.29% httpd 11911 nobody 2 0 148M 11604K accept 0:00 0.45% 0.29% httpd 11893 nobody 2 0 149M 12392K sbwait 0:00 0.38% 0.24% httpd 11876 nobody 2 0 149M 12264K sbwait 0:00 0.38% 0.24% httpd 11934 nobody 2 0 149M 12292K accept 0:00 0.41% 0.20% httpd When the load shoots up, the number of http clients hits Apache's MaxClients setting, here is what top shows: last pid: 12407; load averages: 87.84, 51.91, 27.52 up 41+04:40:51 14:19:00 268 processes: 2 running, 266 sleeping Mem: 715M Active, 68M Inact, 187M Wired, 29M Cache, 111M Buf, 2100K Free Swap: 2048M Total, 272M Used, 1776M Free, 13% Inuse PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 136 root 64 0 1208K 376K RUN 33.1H 2.69% 2.69% amd 11965 nobody-1 0 149M 6892K nfsrcv 0:05 0.24% 0.24% httpd 11913 nobody-1 0 149M 8300K nfsrcv 0:05 0.20% 0.20% httpd 11878 nobody-1 0 149M 8572K nfsrcv 0:09 0.15% 0.15% httpd 11948 nobody-1 0 149M 8852K nfsrcv 0:07 0.15% 0.15% httpd 11982 nobody-1 0 149M 6764K nfsrcv 0:04 0.15% 0.15% httpd 11912 nobody-1 0 149M 4912K nfsrcv 0:06 0.10% 0.10% httpd 12060 nobody-1 0 149M 7356K nfsrcv 0:05 0.10% 0.10% httpd 11999 nobody-1 0 149M 8352K nfsrcv 0:04 0.10% 0.10% httpd 12122 nobody-1 0 149M 8296K nfsrcv 0:04 0.10% 0.10% httpd 12028 nobody-1 0 149M 8664K nfsrcv 0:04 0.10% 0.10% httpd 12267 nobody-1 0 149M 8452K nfsrcv 0:03 0.10% 0.10% httpd 12270 nobody-1 0 150M 7156K nfsrcv 0:02 0.10% 0.10% httpd 11983 nobody-1 0 149M 8256K nfsrcv 0:09 0.05% 0.05% httpd 11977 nobody-1 0 149M 5488K nfsrcv 0:06 0.05% 0.05% httpd 11952 nobody-1 0 149M 6704K nfsrcv 0:06 0.05% 0.05% httpd 11895 nobody-1 0 148M 4404K nfsrcv 0:06 0.05% 0.05% httpd 11885 nobody-1 0 149M 8348K nfsrcv 0:06 0.05% 0.05% httpd The state of all the httpd prcesses are "nfsrcv". Does this mean the bottleneck is at the NFS server that hosts the htdocs (and PHP scripts) or just that the server is low on memory? Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
busy web server: logs on separate disks?
Given a webserver under moderately high load (where the httpd log files grow at the rate of 400MB per day) and two disks, which of the following is a better option: 1. put the OS and everything on disk 1, and put the logs on disk2. 2. put everything on one drive and mirror the disks With #1, you get max performance since the second disk is pretty much a write only disk. The downside is that in case the root disk crashes, your server goes down. With #2, you get the overhead and performance of two writes instead of one, but a disk crash doesn't hurt as much -- you just run in degraded mode until it is replaced. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Which firewall?
* Sasa Stupar <[EMAIL PROTECTED]> [2005-11-17 11:15:14 +0100]: > I am about to set up a router with FBSD 5.4 for SOHO network. There > will be no servers running, only inet access for the users but I'd > like to make traffic limitation for users (download and upload). Which > firewall of the three one explained in the handbook do you recommend? pf+altq Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: pam_userdb.so not found on FreeBSD
* N.J. Thomas <[EMAIL PROTECTED]> [2005-11-14 20:36:33 -0500]: > vsftpd uses pam's pam_userdb.so module for this, but I can't find it on > this machine. Is it called something else now? To answer my own question, I was just told that pam_userdb.so is part of Linux-PAM and not part of OpenPAM (which FreeBSD uses). No virtual users for me I guess... Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
pam_userdb.so not found on FreeBSD
I'm trying to get vsftpd running with virtual users on a FreeBSD 5.4 box. vsftpd uses pam's pam_userdb.so module for this, but I can't find it on this machine. Is it called something else now? Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Crontab and GPG?
* Robert Wall <[EMAIL PROTECTED]> [2005-10-25 13:13:52 -0500]: > I'm attempting to run GPG from cron, and it's not working. I can run > the script from the command line, and all works perfectly. When I try > to run it from cron, however, it doesn't work. Run /usr/bin/env (or wherever env is located on your system) from cron and see what environment your script has. Then run your script manually and keep removing envariables until something breaks. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: setting up X -- under VMWare?
* pete wright <[EMAIL PROTECTED]> [2005-10-24 10:25:46 -0700]: > On 10/24/05, dick hoogendijk <[EMAIL PROTECTED]> wrote: > > > > > What monitor/video card parameters should I supply for XFree86-4 > > > configuration? That of my real monitor/video card or some virtual > > > VMWare one? > > > > What I always do is run a knoppix live CD under vmware. The > > generated Xorg.conf is absolutely great. > > err except that I think the default X server for 4.x is still XF86 not > x.org That's fine...we can figure the X.org to XF86 translation if it works correctly. Trying it now... Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
setting up X -- under VMWare?
I'm setting up X on a FreeBSD 4.11 machine. I've done that before, but this is the first time I'm doing it inside a VMWare virtual machine. What monitor/video card parameters should I supply for XFree86-4 configuration? That of my real monitor/video card or some virtual VMWare one? thanks, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: interesting networking problem
* Danial Thom <[EMAIL PROTECTED]> [2005-10-17 07:48:46 -0700]: > > I can connect to this site (via http) *very* intermittently. If I > > run "wget example.org", I get the page exactly, once, but if I run > > the same command immediately after, I get connection reset errors, > > e.g.: > > Why don't you look at the http headers and see > what's happening? Here they are. I'm not a web guru, so I don't really see anything out of the ordinary: $ wget -S example.org --12:07:03-- http://example.org/ => `index.html' Resolving example.org... 192.168.1.5 Connecting to example.org|192.168.1.5|:80... connected. HTTP request sent, awaiting response... HTTP/1.1 200 OK Date: Mon, 17 Oct 2005 16:09:55 GMT Server: Apache/2.0.54 (Win32) mod_ssl/2.0.54 OpenSSL/0.9.8 PHP/5.0.4 X-Powered-By: PHP/5.0.4 Connection: close Content-Type: text/html Length: unspecified [text/html] [ <=> ] 19,830 48.92K/s 12:07:04 (48.82 KB/s) - `index.html' saved [19830] $ wget -S example.org --12:07:07-- http://example.org/ => `index.html.1' Resolving example.org... 192.168.1.5 Connecting to example.org|192.168.1.5|:80... connected. HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Retrying. --12:07:08-- http://example.org/ (try: 2) => `index.html.1' Connecting to example.org|192.168.1.5|:80... connected. HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Retrying. ^C Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
interesting networking problem
[Domain name and IP addresses changed.] So there is a website, example.org, that I am trying to connect to. I can connect to this site (via http) *very* intermittently. If I run "wget example.org", I get the page exactly, once, but if I run the same command immediately after, I get connection reset errors, e.g.: $ wget example.org --09:54:48-- http://example.org/ => `index.html' Resolving example.org... 192.168.1.5 Connecting to example.org|192.168.1.5|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] [ <=>] 19,83052.46K/s 09:54:48 (52.39 KB/s) - `index.html' saved [19830] $ wget example.org --09:54:49-- http://example.org/ => `index.html.1' Resolving example.org... 192.168.1.5 Connecting to example.org|192.168.1.5|:80... connected. HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Retrying. --09:54:53-- http://example.org/ (try: 2) => `index.html.1' Connecting to example.org|192.168.1.5|:80... connected. HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Retrying. ^C If I wait couple of minutes and try again, the same thing happens... Normally I would write the whole thing off as a problem on their side, but I have access to other machines on different networks and in different cities and they both seem to have no problems accessing this page. In addition, I had a brief chat with someone on their side and they said they are not aware of any errors like this with anyone else who tries to connect to them. (They apparently block pings at the firewall -- I cannot ping them from any machine.) How can I debug this further? thanks, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
programmatically getting mounts?
Short of grepping the output of mount or df, what is the best way to programmatically get a list of mounted filesystems? I glance at sysctl shows nothing, and mounting linprocfs doesn't give a very "Linux-esque" listing -- just processes. thanks, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't execute a script
* bob self <[EMAIL PROTECTED]> [2005-09-09 18:41:35 -0400]: > 000: 2321 2f62 696e 2f73 680d 0a65 6368 6f20 #!/bin/sh..echo ^^ > 010: 2270 696e 6769 6e67 2e2e 2e2e 220d 0a"pinging".. Yup, that's your problem. This file is a DOS text file, so its end of line is a (0x0d 0x0a) instead of just (0x0a). Normally, that doesn't matter because most Unix utilities are multi-eol-format aware, but you can't have it in the shebang line because the OS interprets the extra carriage as part of the command, so it is looking for /bin/sh^M, which doesn't exist. Use a utility like dos2unix or some a decent text editor to convert this to a Unix file format and you'll be good to go. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't execute a script
* bob self <[EMAIL PROTECTED]> [2005-09-09 15:01:25 -0400]: > #!/bin/sh > echo "pinging" > #end of scripttest > > If I run "which scripttest", I get /root/bin/scripttest > > But if I try to run this test script I get "scripttest: Command not found." > > Why is that happening? I've seen something like this happen when there is a non-printing character on the shebang line (like a CTRL-G or similar). So instead of running /bin/sh, your shell tries to run "/bin/sh^G" -- which obviously doesn't exist. Can you run "xxd /root/bin/scripttest" and show us the output? If you don't have xxd on your system (it usually is packaged with Vim) you can try "od -x /root/bin/scripttest". xxd/od will show right away if there is anything funky on the shebang line that shouldn't be there. thanks, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Interrupt Storm Dell PowerEdge 1850
* John Straiton <[EMAIL PROTECTED]> [2005-08-26 15:25:40 -0400]: > While not a solution, I got this to go away by disabling the USB > ports on the system in the BIOS. I only mention it because it's the > only other "new" behaviour I'm seeing on this machine versus the > other boxes I maintain. Bad mobo perhaps? (I'm presuming the USB is intergrated into it. Under 4.11, can you use the USB ports successfully? Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /rescue/vi doesn't work without /usr (no terminal db)
* Alex Zbyslaw <[EMAIL PROTECTED]> [2005-08-25 19:22:48 +0100]: > > BUGS > > > > Most of the rescue tools work even in a fairly crippled system. > > The most egregious exception is the rescue version of vi(1), > > which currently requires that /usr be mounted so that it can > > access the termcap(5) files. > > Will ex not work? Since it's just vi without graphics it shouldn't need > a termcap (which doesn't mean it won't want one of course). What was > $TERM set to? /rescue/ex did not work, it gave the same error that /rescue/vi did, namely that the termcap/terinfo database was not found. $TERM was set to cons25 > Having said that, I can still remember a time when any sysadmin worth > tuppence would know how to use ed because that was all that worked on > a teletype :-) Yes, /rescue/ed did work, and of course I am glad that something was working, but ed is infinitely more tedious to work with than vi. But when things have gone so wrong that you actually have to use the tools in /rescue, you are generally not in the mood to deal with something as archaic as ed. =-) Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /rescue/vi doesn't work without /usr (no terminal db)
* Giorgos Keramidas <[EMAIL PROTECTED]> [2005-08-25 17:10:37 +0300]: > On 2005-08-25 10:04, "N.J. Thomas" <[EMAIL PROTECTED]> wrote: > > In the meantime, how can I run /rescue/vi without /usr? > > I don't think you can. It only needs a read-only /usr though, so if > /usr is a local filesystem you can probably get away with: > > # mount -o ro /usr Yeah, I was actually thinking of the (rare) case when /usr was not accessible. This time it was, so I got away with it. But I did find this in rescue(8) however: BUGS Most of the rescue tools work even in a fairly crippled system. The most egregious exception is the rescue version of vi(1), which currently requires that /usr be mounted so that it can access the termcap(5) files. Hopefully, a failsafe termcap(3) entry will eventually be added into the ncurses(3) library, so that /rescue/vi can be used even in a system where /usr cannot immediately be mounted. In the meantime, the rescue version of the ed(1) editor can be used from /rescue/ed if you need to edit files, but cannot mount /usr. I don't know how old this note is, but I hope the failsafe termcap will be added soon. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
/rescue/vi doesn't work without /usr (no terminal db)
I just booted into single user on a 5.4-p6 system. I needed to edit something on the root fs, but /rescue/vi wouldn't work, it complained about not finding the terminal database. I saw some mention in the archives from June about fixing this, though I don't think anything has been comitted yet. In the meantime, how can I run /rescue/vi without /usr? thanks, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: firewall on FreeBSD
* Paul Schmehl <[EMAIL PROTECTED]> [2005-06-24 12:58:51 -0500]: > I've been using pf for a few years now, and I've never had problems > understanding the syntax or how it works (but I also never do NAT, so > that might be the reason it seems easy to me.) Yes, pf is great, but doing NAT with pf is also just as easy to understand. It depends on what you are doing, but for most people using NAT is as easy turning on ip forwarding via sysctl and adding a single line to your pf.conf configuration file ("nat on $ext_if..."). Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
MIT Zephyr available on FreeBSD?
Does anyone know if the MIT Zephyr Notification System (which included the command "zwrite"), or some newer incarnation of it, is available on FreeBSD? A glance at ports didn't show anything. thanks, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Advice on backup scheme for FreeBSD 5.3 box
* steve <[EMAIL PROTECTED]> [2005-04-20 10:53:25 -0400]: > So I'm trying to figure out a scheme to avoid more than a couple hours > of downtime. Use rsnapshot: http://www.rsnapshot.org/ The closest thing to a NetApp backup that you will get, minus the US$50,000 price tag. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
firefox crashing on unknown files
Firefox is crashing on me whenever I click on a link for a file whose extension is not in the system mime.types file. (It was crashing on every non-html link before I installed the mime-support port.) I am almost positive this is happening because the default plugin is not enabled -- this is what about:plugins says: Default Plugin File name: libnullplugin.so The default plugin handles plugin data for mimetypes and extensions that are not specified and facilitates downloading of new plugins. MIME Type Description SuffixesEnabled * All types .* No How can I enable libnullplugin.so or else prevent this behavior? Stats: FreeBSD 5.3-RELEASE-p7 firefox-1.0.2 thanks, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Firefox won't start
* Fridtjof Busse <[EMAIL PROTECTED]> [2005-04-08 18:32:49 +0200]: > I just installed FreeBSD 5.4RC, everything works so fine. Just firefox > won't work (running xfce), neither the package nor the port. I can > only start it as root, under a normal user nothing happens at all. > /usr/X11R6/bin/firefox quits after a second and no firefox. Had same problem under 5.3. Tracked it down to permissions problems when I gave root a new shell (with umask 077 instead of 022). Run find on /usr and see if there are any files/dirs with perms of 600/700 that look like they should be public. (I believe in my case it was some gconf dirs.) hth, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: greetings from FreeBSD DLL Hell!
* Chuck Swiger <[EMAIL PROTECTED]> [2005-03-23 20:44:39 -0500]: > > now I seem to find myself in the FreeBSD equivalent of "DLL Hell". > > Should I just blow my system away and start from scratch? > > Oh, goodness no-- almost anything that goes wrong with a system can be > fixed without reinstalling. The key is to solve the problem the right > way. :-) Thanks for the tip! I almost blew my system away before I saw your email. The solution in this case was to delete all the packages (there were only a few that I had installed anyways), update the ports tree, and then start installing from there. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: greetings from FreeBSD DLL Hell!
* Joshua Tinnin <[EMAIL PROTECTED]> [2005-03-23 18:21:05 -0800]: > Packages are built to work with the particular release specified. Once > ports are unfrozen, right before release, they start changing again, > and updating new packages for all ports for every minor version bump in > the tree is not viable at the moment (12000+ ports), AFAIK, nor would > it be in line with freezing ports before release. Yeah, this was the one thing I didn't understand about packages. I just assumed it would do the right thing and download the latest version. > > now I seem to find myself in the FreeBSD equivalent of "DLL Hell". > > Should I just blow my system away and start from scratch? Is that > > the best course of action to take at this point? > > You don't need to reinstall the OS, but it might be simpler for you if > you deleted all the packages, with pkg_delete -a (from root). That's what I ended up doing. I deleted all my packages. installed only the ones I absolutely needed (in my case: zsh, vim, and cvsup), upgraded ports, and then went from there. Thank for your help. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: greetings from FreeBSD DLL Hell!
* <[EMAIL PROTECTED]> [2005-03-23 23:06:25 -0500]: > here is real good install guide. > http://freebsd.packards-home.net/index.php > > It has section on ports and packages. Cool, it seems like a fairly well written and mostly up to date site. I'm surprised I hadn't stumbled onto it before. Thanks for the tip. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: greetings from FreeBSD DLL Hell!
* Bob Johnson <[EMAIL PROTECTED]> [2005-03-23 22:00:58 -0500]: > On Wednesday 23 March 2005 08:16 pm, N.J. Thomas wrote: > > "pkg_add -r foo". This worked, but it went and downloaded older > > versions of various programs (i.e. Mozilla Firefox 0.9). > > By default, pkg_add uses the packages that were built for your release > (so everything is consistent). As a result, when your release gets to > be a few months old, so do the packages. Thanks for the tip. I wasn't aware that pkg_add -r was more or less tied strictly to the release version. I followed your advice and deleted all the older packages, installed portupgrade, updated the ports tree, and reinstalled everything I needed. Things seem to be okay now. > > I installed some packages with pkg_add -r (which used the > > 5.3-RELEASE versions of the software), and then installed some other > > stuff with ports, and then updated ports with cvsup and then > > installed yet some more stuff, and now I seem to find myself in the > > FreeBSD equivalent of "DLL Hell". > > What do you mean when you say you are in DLL hell? Is something > actually not working right? FreeBSD is pretty good about managing > libraries. Well, the specific problem I had was that after doign a fresh install, I installed some packages with pkg_add. Then I updated ports, and installed some more stuff. And then when I went back to use pkg_add, it complained about some program need library v1.4 but v1.6 was installed on the system (because it had been installed by ports). thanks, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
greetings from FreeBSD DLL Hell!
I installed FreeBSD 5.3-RELEASE and was installing packages via "pkg_add -r foo". This worked, but it went and downloaded older versions of various programs (i.e. Mozilla Firefox 0.9). How can I tell pkg_add to use the "5-latest" (5-STABLE? RELENG_5_3?) branch? Do I have to update my sources before I can do this? So after I installed 5.3 yesterday I installed some packages with pkg_add -r (which used the 5.3-RELEASE versions of the software), and then installed some other stuff with ports, and then updated ports with cvsup and then installed yet some more stuff, and now I seem to find myself in the FreeBSD equivalent of "DLL Hell". Should I just blow my system away and start from scratch? Is that the best course of action to take at this point? thanks, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"